Happy Independence Day

2010-08-15 1 min read Uncategorized

Happy Independence Day to all.

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/DSCN1316.jpg"><img class="size-medium wp-image-2374" title="Independence Day Celebration in School" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/DSCN1316-300x205.jpg" alt="Independence Day Celebration in School" width="300" height="205" /><div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=a412647a-18c4-4f00-a62f-93de0d55329f" alt="Enhanced by Zemanta" /><span class="zem-script more-related pretty-attribution">

tee to a file descriptor

2010-08-13 1 min read Bash Linux

tee to a file descriptor

1
$ tee >(cat &#8211; >&2)

the tee command does fine with file names, but not so much with file descriptors, such as &2. This uses process redirection to tee to the specified descriptor.

In the sample output, it’s being used to tee to stderr, which is connected with the terminal, and to wc -l, which is also outputting to the terminal. The result is the output of bash –version followed by the linecount

Continue reading

gphotoframe Free digital photo frame for your desk.

2010-08-11 2 min read Fedora GNOME Photo

First install the gphotoframe application with the command :

sudo yum install gphotoframe

and if you want gnome-screensaver compatibility then install the package gphotoframe-gss also.

Gnome Photo Frame is a photo frame gadget for the <a class="zem_slink" title="GNOME" rel="homepage" href="http://www.gnome.org/">GNOME Desktop. Let&#8217;s see how this works.. run the command gphotoframe from a terminal:

Here is what you will see :

<a href="http://blog.amit-agarwal.com/wp-content/uploads/2010/08/Screenshot-gphotoframe.png"><img class="size-medium wp-image-1880" title="Screenshot-gphotoframe" src="http://blog.amit-agarwal.com/wp-content/uploads/2010/08/Screenshot-gphotoframe-300x227.png" alt="Screenshot-gphotoframe" width="300" height="227" />

Don&#8217;t panic on seeing the blank/black page. You need to add the source first. So <a class="zem_slink" title="Mouse (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Mouse_%28computing%29">right click on the window and go to preferences:

Continue reading

\[Solution\] Solaris issue with wget not resolving Domain name (DNS name lookup failure)

2010-08-09 2 min read Solaris

Today I was working with <a class="zem_slink" title="Solaris (operating system)" rel="homepage" href="http://oracle.com/solaris">Solaris and after I had set up the <a class="zem_slink" title="NIS+" rel="wikipedia" href="http://en.wikipedia.org/wiki/NIS%2B">NIS+, <a class="zem_slink" title="Name server" rel="wikipedia" href="http://en.wikipedia.org/wiki/Name_server">DNS server, IP Address and completing the basic setting. I was using the pkg-get util from the freesunware.com

The utility was using wget and it was failing constantly. From the looks of it, it was very clear that the wget utility was unable to find the <a class="zem_slink" title="IP address" rel="wikipedia" href="http://en.wikipedia.org/wiki/IP_address">IP address from the name. <a class="zem_slink" title="Name resolution" rel="wikipedia" href="http://en.wikipedia.org/wiki/Name_resolution">Name resolution was not happening, while dig and <a class="zem_slink" title="Nslookup" rel="wikipedia" href="http://en.wikipedia.org/wiki/Nslookup">nslookup was able to do the DNS lookup.

Continue reading

Nature

2010-08-07 0 min read

Best Mobile Internet Browser (Opera Mini vs. SkyFire)

2010-08-07 3 min read Bash Linux

Showdown: Best Mobile <a class="zem_slink" title="Internet" rel="wikipedia" href="http://en.wikipedia.org/wiki/Internet">Internet Browser (<a class="zem_slink" title="Opera Software" rel="homepage" href="http://www.opera.com">Opera Mini vs. <a class="zem_slink" title="Skyfire" rel="homepage" href="http://www.skyfire.com">SkyFire) mobile internet browsersDo you browse the web on your mobile device? As <a class="zem_slink" title="Mobile phone" rel="wikipedia" href="http://en.wikipedia.org/wiki/Mobile_phone">cell phones get faster connection speeds, processors, bigger screens and better applications, it’s getting easier and easier to go online with them. Add in the fact that most websites have a mobile version now and it makes this an even simpler process.

Continue reading

when you press f9 'paste' is on , press f9 again and 'paste' is off, and so forth (works in insert-mode and command-mode)

2010-08-02 1 min read Bash Linux

<a class="zem_slink" title="Vim (text editor)" rel="homepage" href="http://www.vim.org/">vim&#8217;s pastetoggle: when you press f9 &#8217;paste&#8217; is on , press f9 again and &#8217;paste&#8217; is off, and so forth (works in <a class="zem_slink" title="Insert key" rel="wikipedia" href="http://en.wikipedia.org/wiki/Insert_key">insert-mode and command-mode) $ nmap :set paste!:set paste? Sets as paste toggle, with visual confirmation of state

* View this command to comment, vote or add to favourites * View all commands by Vilemirth

commandlinefu.com

by David Winterbottom (codeinthehole.com)

Continue reading
Older posts Newer posts