Tuesday, January 22, 2008

Hi Friends
Many of us uses VLC Media Player to see our videos and even listen to mp3 files although i just use it for videos only . The reason : it's free and support almost every video file . But many of us don't use and infact don't even know about about its hidden features . One of those hidden features is that you can convert any video file and make it of your desired size . Yes , you can . Although i am still to master this trick but i can show you a glimpse of it .

  1. Open VLC Media Player
  2. Select "wizard" from file menu
  3. click on "Transcode/Save To file"
  4. Click on "select a stream" and choose the video file that you want to convert . And if you don't know , you can even stream your desktop to create a screen-cast . Just google it if you want to know more about it .
  5. Click on next
  6. Now select the appropriate Video and audio codec options . Just kep a eye on the comments and most of the time the video and audio codec don't match . so it's quite possible that audio in video will be missing in your converted file . Also please note the encapsulation method suggested for e.g. MPEG PS . Your both the video and audio codec should support a common encapsulation method .
  7. In the next options screen . Select the common encapsulation method of your audio and video codecs .
  8. In the next options screen , enter the desired name for your converted file including the extension i.e. avi . With variety of codecs you can use other extensions too .
  9. Now , in the next step , you will see vlc playing a mute audio file . Don't worry , it is not playing any file , infact it is now showing a progress bar .
  10. Taararaaaa..... complete .
If this worked for you , then please don't forget to bookmark this post and post the settings and codecs you used .

Hi friends
I just came across this new search engine for shopping , SaveBucket . Quite simple design i must say . The best feature that i really liked was that of comparing price and features . Although similar thing is also available on eBay but well then eBay is different type of website where things are sold by people , not eBay . eBay is not a store but a market place where anybody can come and open his/her shop , but it's upto you to decide to trust or not to trust that seller . While SaveBucket is like big shopping complex where only good stores are allowed to open their shops . SaveBuckets keeps a eye on the best selling products and list them on its frontpage . And even if i am not convinced of the price of any product , i can just set a email notification which will tell me if that product is available on my choice of price .

price comparison

Wednesday, January 2, 2008

Sorry if you feel this post is disgusting . But it is our foremost responsibility to teach our foreigner friends on how to use indian toilets specially if they have stop to by some small railway station for attending nature's call on their nokia damaged by indian spices . And i am honestly saying , i didn't smiled even once while writing this post . :|

Ok friends , as promised i will be sharing my knowledge of php with you , in this series , here is my first script for you

This a very simple function on how to sort a multidimentional array in php




function sort_multi_array($mult_array , $field , $sort_type="ASC_NUM")
{

$code = '';
switch($sort_type) {

case ASC_NUM:
$code .= 'return strcmp($a["'.$field.'"], $b["'.$field.'"]);';
break;
case DESC_NUM:
$code .= 'return (-1*strcmp($a["'.$field.'"], $b["'.$field.'"]));';
break;
}

$compare = create_function('$a, $b', $code);
usort($mult_array, $compare);
return $mult_array;
}

//How to use :
$data[] = array('volume' => 67, 'date' => '2008-12-30 21:20:56', 'name' => "abc");
$data[] = array('volume' => 86, 'date' => '2007-12-25 21:20:56', 'name' =>'def' );
$data[] = array('volume' => 85, 'date' => '2007-12-27 21:20:56', 'name' => 'ghi');
$data[] = array('volume' => 05, 'date' => '2008-12-02 21:20:56', 'name' => 'jkl');
$data[] = array('volume' => 86, 'date' => '1975-12-05 21:20:56', 'name' => 'mno');
$data[] = array('volume' => 67, 'date' => '2007-12-30 20:20:56', 'name' => 'rto');

$data = sort_multi_array($data ,'date' , 'DESC_NUM');
var_dump($data);



/*

it will sort the array according to 'date'

array(6) {
[0]=>
array(3) {
["volume"]=>
int(67)
["date"]=>
string(19) "2008-12-30 21:20:56"
["name"]=>
string(3) "abc"
}
[1]=>
array(3) {
["volume"]=>
int(5)
["date"]=>
string(19) "2008-12-02 21:20:56"
["name"]=>
string(3) "jkl"
}
[2]=>
array(3) {
["volume"]=>
int(67)
["date"]=>
string(19) "2007-12-30 20:20:56"
["name"]=>
string(3) "rto"
}
[3]=>
array(3) {
["volume"]=>
int(85)
["date"]=>
string(19) "2007-12-27 21:20:56"
["name"]=>
string(3) "ghi"
}
[4]=>
array(3) {
["volume"]=>
int(86)
["date"]=>
string(19) "2007-12-25 21:20:56"
["name"]=>
string(3) "def"
}
[5]=>
array(3) {
["volume"]=>
int(86)
["date"]=>
string(19) "1975-12-05 21:20:56"
["name"]=>
string(3) "mno"
}
}

/*