using `!#$’ to referance backward-word

2011-11-03 1 min read Bash Linux

Operating System Tablet Strategy
Image by jeffalldridge via Flickr

Here is something that I found on the commandlinefu

cp /work/host/phone/ui/main.cpp !#$:s/host/target

Ah well…its very interesting and very useful.

Some explanation:

!# – means the current command (similar to !! being the last command)

$ – represents the last parameter

:s – is used for substitution.

Enhanced by Zemanta

Some pictures from Burj Khalifa

2011-08-01 1 min read Photo

DSC_3593{.shutterset_}

 

[php]
$file = ‘/var/chroot/home/content/02/6377202/html/wp/wp-content/uploads/copper_albums/Parks_Dubai/orig_DSC_5287.jpg’;
$exif = exif_read_data(“$file”, 0, true);
$key=”EXIF“;
$exif = exif_read_data(“$file”, “$key”);
echo “[table border=”1”]”;
//foreach ($exif as $key => $section) {
//similar_text($section, ‘EXIF’, $p);
//if ( $p == 0 )
//{
foreach ($exif as $name => $val) {
echo “[tr]”;
echo “$key.$name ”;
echo “$val ”;
echo “[/tr]”;
}
//}
//}
echo “[/table]”;
[/php]

Enhanced by Zemanta

Deleting all mails in the N900 (Maemo 5) permanently

2011-06-14 2 min read Maemo N900

Well couple of days back, I checked the folder details of one of my accounts configured on the N900 (Maemo 5) and it was showing some 1000 or more emails, whereas I had only 4-5 emails in the Inbox so where are the other emails and how to I get rid of them. This was causing the mail application to become a little slower than usual so do I live with it, I decided not to do so and thus found out how to delete all the mails.

Continue reading

A Five-Way Linux Distribution Comparison In 2010

2010-07-14 0 min read Linux Uncategorized
\"Tux,
Image via Wikipedia

<a href="http://www.phoronix.com/scan.php?page=article&item=linux_2010_fiveway&num=1" target="_blank">A five way linux comparison.

A very good comparison of the most common and famous distributions of <a class="zem_slink freebase/guid/9202a8c04000641f8000000000dafbd5" title="Linux" rel="wikipedia" href="http://en.wikipedia.org/wiki/Linux">Linux. Very comprehensive and detailed. Love this guy.<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://lifehacker.com/5585048/spotify-streaming-music-player-comes-to-linux">Spotify Streaming Music Player Comes to Linux [Downloads] (lifehacker.com) <li class="zemanta-article-ul-li"><a href="http://sathyasays.com/2010/07/13/spotify-for-linux/">Spotify for Linux (sathyasays.com) <div class="zemanta-pixie"><a class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/zemified_c16.gif" alt="Enhanced by Zemanta" /><span class="zem-script more-related more-info pretty-attribution paragraph-reblog">

Continue reading