songclip Love Story september 28 2011

[audio:http://www.beautifulwork.org/trueangle/ls3.mp3]

Audio Recorder
: gnome-sound-recorder 2.30.0 Details : recorded as a wav file.
MP3 Conversion
: ffmpeg Details : ffmpeg -i ls3.wav -ab 320k ls3.mp3 $ffmpeg -i ls3.wav -ab 320k ls3.mp3 FFmpeg version git-6a7e074, Copyright (c) 2000-2011 the FFmpeg developers built on Mar 8 2011 09:54:27 with gcc 4.5.2 configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis libavutil 50. 39. 0 / 50. 39. 0 libavcodec 52.113. 2 / 52.113. 2 libavformat 52.102. 0 / 52.102. 0 libavdevice 52. 2. 3 / 52. 2. 3 libavfilter 1. 76. 0 / 1. 76. 0 libswscale 0. 12. 0 / 0. 12. 0 libpostproc 51. 2. 0 / 51. 2. 0 [wav @ 0xbb3800] max_analyze_duration reached Input #0, wav, from 'ls3.wav': Duration: 06:45:47.14, bitrate: 1 kb/s Stream #0.0: Audio: pcm_s32le, 22050 Hz, 1 channels, s32, 705 kb/s Incompatible sample format 's32' for codec 'libmp3lame', auto-selecting format 's16' Output #0, mp3, to 'ls3.mp3': Metadata: TSSE : Lavf52.102.0 Stream #0.0: Audio: libmp3lame, 22050 Hz, 1 channels, s16, 320 kb/s Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding size= 946kB time=48.43 bitrate= 160.0kbits/s video:0kB audio:946kB global headers:0kB muxing overhead 0.003510% $file ls2.wav ls2.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 32 bit, mono 22050 Hz $file ls3.wav ls3.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 32 bit, mono 22050 Hz $file ls3.mp3 ls3.mp3: Audio file with ID3 version 2.4.0, contains: MPEG ADTS, layer III, v2, 160 kbps, 22.05 kHz, Monaural $

songclip Love Story sep 24 2011

[audio:http://www.beautifulwork.org/trueangle/ls1.mp3]

Audio Recorder
: gnome-sound-recorder 2.30.0 Details : recorded as a wav file.
MP3 Conversion
: ffmpeg Details : ffmpeg -i ls1.wav -ab 320k ls1.mp3 $file ls1.mp3 ls1.mp3: Audio file with ID3 version 2.4.0, contains: MPEG ADTS, layer III, v2, 160 kbps, 22.05 kHz, Monaural $file ls1.wav ls1.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 32 bit, mono 22050 Hz $

songclip r.m.u.s sep 23 2011

[audio:http://www.beautifulwork.org/trueangle/last.rmus.mp3]

Audio Recorder
: gnome-sound-recorder 2.30.0 Details : recorded as a wav file.
MP3 Conversion
: ffmpeg Details : ffmpeg -i last.rmus.wav -ab 320k last.rmus.mp3 $file last.rmus.wav last.rmus.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 32 bit, mono 22050 Hz $file last.rmus.mp3 last.rmus.mp3: Audio file with ID3 version 2.4.0, contains: MPEG ADTS, layer III, v2, 160 kbps, 22.05 kHz, Monaural $

[ php ] september 21 2011

PHP Code


$con = mysql_connect("localhost","db name","password");

Code Dissection
1. $con --- Variable. All variables in PHP start with a $symbol .
2. mysql_connect() --- A PHP function .
This function help to connect to the database and get access.

resource mysql_connect ([ string $server = ini_get("mysql.default_host") [, string $username = ini_get("mysql.default_user") [, string $password = ini_get("mysql.default_password") [, bool $new_link = false [, int $client_flags = 0 ]]]]] )
Opens or reuses a connection to a MySQL server.

source : http://php.net/manual/en/function.mysql-connect.php

[ php ] 2011 september 19

PHP Code


if(post_password_required() || (!comments_open() && is_page() && $app->post->getCommentCount() < 1)) return;

Code Dissection
1. if --- Statement . Conditional Statement.
if statement - use this statement to execute some code only if a specified condition is true

2. post_password_required() --- WordPress API
post_password_required (line 558)
Whether post requires password and correct password has been provided.

return: false if a password is not required or the correct password cookie is present, true otherwise.
since: 2.7.0
bool post_password_required ([int|object  $post = null])
int|object $post: An optional post. Global $post used if not provided.

3. || --- Logical Operator. OR operator. PHP operator.
x=6
y=3
(x==5 || y==5) returns false

4. ! --- PHP/Logical/NOT operator .
x=6
y=3
!(x==y) returns true

5. comments_open --- WordPress API.
comments_open (line 772)
Whether the current post is open for comments.

return: True if the comments are open
since: 1.5.0
uses: $post
bool comments_open ([int $post_id = NULL])
int $post_id: An optional post ID to check instead of the current post.

wordpress on debian howto

Installation
1. apt-get install wordpress
2. apt-get install proftpd
3. apt-get install mysql-server-5.1

Configuration
file 1
#cat /etc/wordpress/htaccess # For rewrite rules needed for making WordPress URL friendly # See Options -> Permalinks for details and please use the defaults, # especially in mind when hosting several blogs on one machine! ## ## Configuration for a single blog hosted on / (root of the website) ## RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] ## ## Configuration for a multi-site wordpress installation using subdomains ## # #RewriteEngine On #RewriteBase / #RewriteRule ^index\.php$ - [L] ## uploaded files #RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] ## real files dealt directly #RewriteCond %{REQUEST_FILENAME} -f [OR] #RewriteCond %{REQUEST_FILENAME} -d #RewriteRule ^ - [L] ## other go through index.php #RewriteRule . index.php [L] #
file 2
#cat /etc/apache2/sites-available/50.56.90.242 ServerName 50.56.90.242 ServerAdmin ahiliation@yahoo.co.in DocumentRoot /var/www/50.56.90.242 DirectoryIndex index.php AllowOverride All Order Deny,Allow Allow from all #
1. cd /vaw/www/ 2. ln -s /usr/share/wordpress 50.56.90.242 3. a2ensite 50.56.90.242 4. /etc/init.d/apache2 restart 5 /usr/share/doc/wordpress/examples/setup-mysql -n beauty 50.56.90.242

Testing
1. open web browser...
2. http://50.56.90.242(your web site address or name )
3. carry on with the instruction on browser.

arrays.pl

A UNIX Command
$cat arrays.pl
# Simple array constructs.
@fred = ("How", "are", "you", "today?");
print "\@fred contains (@fred).\n";

$mike = $fred[1];
print "$mike $fred[3]\n";

# The array name in a scalar context gives the size.
$fredsize = @fred;
print '@fred has ', "$fredsize elements.\n";

# The $#name gives the max subscript (size less one).
print "Max sub is $#fred\n";

$perl arrays.pl
@fred contains (How are you today?).
are today?
@fred has 4 elements.
Max sub is 3
$

UNIX Explanation
Variables whose names begin with @ are arrays. If @sue is
an array,  it is  different variable from  $sue. However,
members   of  @sue   are  selected   by   $sue[$i].   The
construction $#arrname gives the maximum subscript of the
array @arrname.

source : http://sandbox.mc.edu/~bennet/perl/leccode/var2_pl.html

beautifulwork search algorithm

Functions

1. search database (also web).
2. do manual analysis of searched data.
3. create tags from data analyzed.
4. search for related data from existing tags.
5. manually use the results to develop knowledge.

Note :
It should be manually configurable and also automatically
add debian and debian related tags(key words) in the next
search.

Method

1. learn how to access data from your database.
2. connect to remote computers on web .
3. learn to use ip address , nameserver .. etc
   for connecting to a remote computer.
4. use API's to access remote filesystem to search
5. use TCP/IP and other necessary protocols to communicate
   with remote computers for access of remote database...
6. learn to access collect data from open database.