<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-29951529</id><updated>2012-02-03T06:57:38.350-08:00</updated><category term='others'/><category term='BASH'/><category term='C++'/><category term='Unix'/><category term='PHP'/><category term='screen'/><category term='running'/><category term='Firefox'/><category term='GDB'/><category term='python'/><category term='TBD'/><category term='Networking'/><category term='Putty'/><category term='skype'/><category term='VIM'/><category term='ubuntu'/><category term='Windows'/><category term='GNU'/><category term='chess'/><category term='health'/><category term='RPM'/><category term='question'/><category term='MSWORD'/><title type='text'>Jay's Blog</title><subtitle type='html'>Created to collect all trivial things which keeps bouncing out of my mind @ one place...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>52</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-29951529.post-1249888302232964065</id><published>2011-10-03T00:01:00.000-07:00</published><updated>2011-10-03T00:04:09.385-07:00</updated><title type='text'>Office Communicator 2007  - send message</title><content type='html'>It would have been nice if there was a command line way of sending message from office communicator. Googled and did not found anything. Finally created a fragile scritp using WSHShell . It is fragile but it works and saves time for me.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;option explicit&lt;br /&gt;&lt;br /&gt;' Global variable to hold the initials and name mapping.&lt;br /&gt;' Commandline may have initials in place of the name.&lt;br /&gt;dim Names&lt;br /&gt;Set Names = CreateObject("Scripting.Dictionary")&lt;br /&gt;Names.Add "C1", "Contact1"&lt;br /&gt;Names.Add "C2", "Contact2"&lt;br /&gt;Names.Add "C3", "Contact3"&lt;br /&gt;&lt;br /&gt;' Global variable used by mySendKeys function.&lt;br /&gt;dim Wsh&lt;br /&gt;set Wsh = Wscript.CreateObject("Wscript.Shell")&lt;br /&gt;&lt;br /&gt;if (Wscript.Arguments.Count &amp;lt; 1) Then&lt;br /&gt;    Wscript.Echo "Usage: m &lt;contactname&gt;"&lt;br /&gt;    Wscript.Quit(1)&lt;br /&gt;End if&lt;br /&gt;&lt;br /&gt;dim name&lt;br /&gt;name = UCASE(Wscript.Arguments(0))&lt;br /&gt;if (Names.Exists(name)) then&lt;br /&gt;    name = Names.item(name)&lt;br /&gt;end if&lt;br /&gt;&lt;br /&gt;'Wscript.echo name&lt;br /&gt;&lt;br /&gt;Wsh.Run       "communicator" ' Run communicator&lt;br /&gt;Wscript.Sleep 500                     ' Give time for communicator to open.&lt;br /&gt;mySendKeys    "{TAB}"           ' TAB&lt;br /&gt;mySendKeys    "{DOWN}"       ' Down Arrow&lt;br /&gt;mySendKeys    name                ' Search for the contact in my list.&lt;br /&gt;Wscript.Sleep 500                     ' Wait for select to happen.&lt;br /&gt;mySendKeys    "{ENTER}"      ' Enter&lt;br /&gt;Wscript.Quit(0)                          ' Success           &lt;br /&gt;&lt;br /&gt;Function mySendKeys(key)&lt;br /&gt;    wsh.AppActivate "Office Communicator"&lt;br /&gt;    wsh.SendKeys key&lt;br /&gt;End Function&lt;br /&gt;&lt;/contactname&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-1249888302232964065?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/1249888302232964065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=1249888302232964065' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/1249888302232964065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/1249888302232964065'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2011/10/office-communicator-2007-send-message.html' title='Office Communicator 2007  - send message'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-3637931146820351226</id><published>2011-09-30T04:15:00.000-07:00</published><updated>2011-09-30T04:42:29.275-07:00</updated><title type='text'>How to get rid of REMOTE HOST IDENTIFICATION HAS CHANGED message</title><content type='html'>Ever irritated by the message (see below) due to the remote host public key change (remote host was re-installed).&lt;br /&gt;&lt;br /&gt;If you are not worried about the security try these in your ~/.ssh/config .&lt;br /&gt;NOTE: This is not secure so make your call. I am working on intranet and do not worry about man in the middle attack.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;Host *&lt;br /&gt;   # Ignore Host ID changes.&lt;br /&gt;   StrictHostKeyChecking no&lt;br /&gt;   # Do not store the known hosts.&lt;br /&gt;   UserKnownHostsFile /dev/null&lt;br /&gt;   # -X option by default.&lt;br /&gt;   ForwardX11 yes&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;Irritating message:&lt;br /&gt;~$ ssh -o "StrictHostKeyChecking no" username@host.domain&lt;br /&gt;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@&lt;br /&gt;@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @&lt;br /&gt;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@&lt;br /&gt;IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!&lt;br /&gt;Someone could be eavesdropping on you right now (man-in-the-middle attack)!&lt;br /&gt;It is also possible that the RSA host key has just been changed.&lt;br /&gt;The fingerprint for the RSA key sent by the remote host is&lt;br /&gt;82:e7:bc:0c:6d:cc:3c:e2:c7:de:ee:2a:b2:af:31:f9.&lt;br /&gt;Please contact your system administrator.&lt;br /&gt;Add correct host key in /home/myacct/.ssh/known_hosts to get rid of this message.&lt;br /&gt;Offending key in /home/myacct/.ssh/known_hosts:5&lt;br /&gt;Password authentication is disabled to avoid man-in-the-middle attacks.&lt;br /&gt;Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.&lt;br /&gt;Permission denied (publickey,gssapi-with-mic,password).&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-3637931146820351226?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/3637931146820351226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=3637931146820351226' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3637931146820351226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3637931146820351226'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2011/09/how-to-get-rid-of-remote-host.html' title='How to get rid of REMOTE HOST IDENTIFICATION HAS CHANGED message'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-6043371009271325463</id><published>2011-09-27T06:58:00.001-07:00</published><updated>2011-09-27T07:04:42.837-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>inetwiz automation</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;inetwiz is a tool which I have been using in Windows XP to update the IE proxy setting.&lt;br /&gt;The manual process has been a pain and I wanted to automate it badly.&lt;br /&gt;Experimented with multiple tools - Registry updates, Python. A friend suggested to use VBS.&lt;br /&gt;The VBS did the trick and I was able to use Wscript Run, AppActivate and sendKeys method to automate the proxy update and opening the URL in internet explorer.&lt;br /&gt;&lt;br /&gt;Here is the script&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;/p&gt;&lt;pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;u&gt;&lt;/u&gt; &lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;option explicit&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;u&gt;&lt;/u&gt; &lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;' Global variable used by mySendKeys function.&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;dim Wsh&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;set Wsh = Wscript.CreateObject("Wscript.&lt;wbr&gt;Shell")&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;u&gt;&lt;/u&gt; &lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;if (Wscript.Arguments.Count &amp;lt; 2) Then&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                Wscript.Echo "Usage: i /auto|/man URL"&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                Wscript.Quit(1)&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;End if&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;u&gt;&lt;/u&gt; &lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;'WScript.Echo (Wsh.RegRead("HKCU\Software\&lt;wbr&gt;Microsoft\Windows\&lt;wbr&gt;CurrentVersion\Internet Settings\ProxyEnable"))&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;u&gt;&lt;/u&gt; &lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;if (Wscript.Arguments(0) = "/man") Then&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                ' VB Script does not support double equal.&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                ' If Proxy is not enabled, enable it.&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                if (Wsh.RegRead("HKCU\Software\&lt;wbr&gt;Microsoft\Windows\&lt;wbr&gt;CurrentVersion\Internet Settings\ProxyEnable") = 0) Then&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                              &lt;wbr&gt;  enableManProxy()&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                End if&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                Wsh.Run "iexplore " &amp;amp; Wscript.Arguments(1)&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;Elseif (Wscript.Arguments(0) = "/auto") Then&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                ' If Auto Proxy is not enabled.&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                ' VB Script does not support double equal.&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                if (Wsh.RegRead("HKCU\Software\&lt;wbr&gt;Microsoft\Windows\&lt;wbr&gt;CurrentVersion\Internet Settings\ProxyEnable") = 1) Then&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                              &lt;wbr&gt;  enableAutoProxy()&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                End if&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                Wsh.Run "iexplore " &amp;amp; Wscript.Arguments(1)&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;Else&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                Wscript.Echo "Usage: i /auto|/man URL"&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;End if&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;u&gt;&lt;/u&gt; &lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;Function enableAutoProxy()&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                ' Enable Automatic Proxy&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                Wsh.Run "inetwiz"&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                Wscript.Sleep 1000 ' Give time for application window to open.&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys "%n"    ' Alt + n&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys " "     ' Space&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys "{Tab}" ' Tab&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys " "     ' Space&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys "{Tab}" ' Tab&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys "{Tab}" ' Tab&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys " "     ' Space&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys "%n"    ' Alt + n&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys "%o"    ' Alt + 0&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys "%n"    ' Alt + n&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys " "     ' Space/Finish button&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;End Function&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;u&gt;&lt;/u&gt; &lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;Function enableManProxy()&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                Wsh.Run "inetwiz"&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                Wscript.Sleep 1000 ' Give time for application window to open.&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys "%n"    ' Alt + n&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys " "     ' Space&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys "{Tab}" ' Tab&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys " "     ' Space&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys "{Tab}" ' Tab&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys " "     ' Space&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys "%n"    ' Alt + n&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys "%n"    ' Alt + n&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys "%n"    ' Alt + n&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys "%o"    ' Alt + 0&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys "%n"    ' Alt + n&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                mySendKeys " "     ' Space/Finish button&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;End Function&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;u&gt;&lt;/u&gt; &lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;Function mySendKeys(key)&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                wsh.AppActivate "Internet Connection Wizard"&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;                wsh.SendKeys key&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;End Function&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;/p&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;u&gt;&lt;/u&gt; &lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-6043371009271325463?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/6043371009271325463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=6043371009271325463' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/6043371009271325463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/6043371009271325463'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2011/09/inetwiz-automation.html' title='inetwiz automation'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-8909257479679530634</id><published>2011-09-11T00:43:00.000-07:00</published><updated>2011-09-11T00:55:08.700-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='screen'/><category scheme='http://www.blogger.com/atom/ns#' term='GNU'/><title type='text'>Nested screen sessions</title><content type='html'>I have been using GNU screens since few years but never thought of using nested screen SESSIONS. Nested screen sessions comes handy when you want to SSH to other server from screen WINDOWS. Here is my recipe for handling nested screen sessions.&lt;br /&gt;&lt;br /&gt;* ssh jayrajput@serverA&lt;br /&gt;* screen -e ^Ee                        # Change escape character from Ctrl-A to Ctrl-E. see escape function in man screen.&lt;br /&gt;* screen -d -m -S serverA # Create a new detached  screen session named "serverA" on serverA in detached mode.&lt;br /&gt;* screen -x serverA # Attach to the "serverA" screen session.&lt;br /&gt;* Ctrl-E + c                      # create a new screen window&lt;br /&gt;* ssh jayrajput@serverB # ssh to serverB&lt;br /&gt;* screen # Run screen on serverB&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Use Ctrl-A as command leader in inner screen sessions .&lt;br /&gt;User Ctrl-E as command leader in outer screen sessions.&lt;br /&gt;&lt;br /&gt;Setting the hardstatus your .screenrc also comes handy&lt;br /&gt;&lt;br /&gt;hardstatus alwayslastline&lt;br /&gt;hardstatus string "%t"&lt;br /&gt;&lt;br /&gt;This will show the hostname in the outer screen session status. Do not know why but it does show the hostname.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-8909257479679530634?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/8909257479679530634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=8909257479679530634' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/8909257479679530634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/8909257479679530634'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2011/09/nested-screen-sessions.html' title='Nested screen sessions'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-7498023384734640174</id><published>2011-01-04T12:21:00.000-08:00</published><updated>2011-01-04T12:22:34.806-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>Continuous Ping</title><content type='html'>ping -t &lt;hostip&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is helpful when you do not want to open cmd window and execute ping command from the run prompt.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-7498023384734640174?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/7498023384734640174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=7498023384734640174' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7498023384734640174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7498023384734640174'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2011/01/continuous-ping.html' title='Continuous Ping'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-7910437436148628849</id><published>2010-12-22T08:27:00.001-08:00</published><updated>2010-12-22T08:27:40.869-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><title type='text'>Read File Names from ls -l</title><content type='html'>Command to print file names from ls -l output:&lt;br /&gt;&lt;br /&gt;ls -l | while read a b c d e f g h i ; do echo $i; done&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-7910437436148628849?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/7910437436148628849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=7910437436148628849' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7910437436148628849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7910437436148628849'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2010/12/read-file-names-from-ls-l.html' title='Read File Names from ls -l'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-7923261199668837498</id><published>2010-10-02T08:41:00.001-07:00</published><updated>2010-10-02T08:41:41.480-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='others'/><title type='text'>Learn to Live</title><content type='html'>&lt;h1 class="western"&gt;Learn to live, learn to let go &amp;amp; follow nature rule&lt;/h1&gt;&lt;p class="western"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;span&gt;I  have always wondered at the almost robotic way we function. what’s the  reason to continue a relationship or a venture when there is no emotion  or heart in it? I see no reason to go on, if there is no emotion. One  has to realise when to move on, when to let go. It’s best to live life  as an honest free spirit and challenge those who infringe upon your joy.  The conundrum of modern-day life has robbed us of compassion. We have  been drained of love and humility. It’s good to remember that life is so  easily destroyed, if we are not careful.&lt;/span&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;span&gt;Dissatisfaction,  sadness, hatred – these are the mind’s creations. You don’t need to  serve your connection with the world, if you feel let down. To tackle  that, it’s essential that you lead a normal life while trying to find  out the root cause of dissatisfied mind. This approach is both realistic  and practical and guarantees an answer to most of your deep-seated  problems.&lt;/span&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;span&gt;Being  happy depends not so much on external circumstances as on your inner  life. This means all your thoughts, perceptions, beliefs, emotions,  desires, dreams – your entire mental and emotional scene. Happiness is  about how you react inwardly to events, what you think and believe, how  you feel, how problems affect you. It may sound obvious, but like many  obvious things it’s something that is often forgotten when it matters  most. We focus almost exclusively on or external lives, on getting and  spending and having fun and then wonder why we are not happy. But it’s  when our inner lives are tranquil that we are most happiest and we call  this inner peace.&lt;/span&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;span&gt;You  can’t completely avoid problems, but you can change how you react to  them by acquiring new habits that provoke peaceful inner responses.  Training your inner life into different habits require learning skills  of thinking, feeling and managing your beliefs and desires. These are  very like the virtues many religions and philosophies advocate but if u  think of them as skill rather than virtues, you benefit from an  important and liberating shift. Instead of ‘ I must become a better  person’ you can think ‘I would lie more happily if I work on my skills’.  So the change in attitude becomes a choice, not a duty. This process is  not something u can do overnight, it’s a whole new way of life but the  reward is what we all want most – happiness. There are five main skills  who need to cultivate. &lt;/span&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;span&gt;&lt;u&gt;Mindfulness&lt;/u&gt;:-  this involves developing your ability to focus your thoughts in the  present. The problem most of us have with thought is having too much of  it – the working and non-stop mental chattering our minds are prone to.  Mindfulness is a key in our skill because as it gets stronger, it lets  you focus on your inner life and catch your habits in the act. Once you  can see how u r rolled by them, the change u r seeking often happens of  it’s own accord.&lt;/span&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;span&gt;&lt;u&gt;Compassion&lt;/u&gt;:-  most religions rightly stress compassion. As well as being a virtue in  its own right it is a practical skill that counter act negative emotions  like anger and hatred, which are terrible wreckers of happiness. Tried  the next time someone annoys you; put yourself what they might be  thinking or feeling to behave like that. Even bad people, let alone  people who just mildly annoy you, often have a mistaken view of the  world which makes them do what they do.&lt;/span&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;span&gt;&lt;u&gt;Story skills&lt;/u&gt;:-  these are very useful for problems with your inner belie system, as  they let you stand back and explore alternative versions of reality.  Believes have great power over your life because belief is something  your take as fact. Start to think of your believes as stories and it is  easier to accept that other things might be true as well. Even true  stories only select a little bit of reality we are focusing on at the  moment, no one story is the whole truth about any situation. From a  different point of view we would see a different t story, sometimes a  whole different world. This is not about make beliefs, its about  reframing situations to look at them from a different perspective.&lt;/span&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;span&gt;&lt;u&gt;Letting – go techniques&lt;/u&gt;:-  these are particularly helpful when we are unhappy not getting what we  want. Generally, we are encouraged to keep wanting and to think that  more will make us happier, whether its clothes or cars or even love. But  wanting is a treadmill; as long as you have unsatisfied want and  desires, or let go some of them. Letting-go skills also include  forgiveness, which helps hugely with one of the things you think you  want is revenge.&lt;/span&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;span&gt;&lt;u&gt;Enjoyment skills&lt;/u&gt;:-  this last group includes skills such as patience humour and especially  gratitude. You don’t have to be grateful to someone, it’s enough to  cultivate gratitude or things. Our minds naturally scan the environment  for dangers and resources, a useful mechanism when we were  hunter-gathers. But it can make us unnecessarily pessimistic – focussing  on 10% we lack rather than 90% we have cultivating enjoyment skills  will help redress the balance.&lt;/span&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="western" align="justify"&gt;&lt;span&gt;Acquiring  all his skills takes time and effort. The important thing is to  practice them until they operate without you thinking about them. Your  practice routine will be very individual because everyone needs to  prioritise different skills depending on the specific issues that you  are holding them back from being happy but keep the skills in mind and  you will constantly find new ways to try them out.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-7923261199668837498?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/7923261199668837498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=7923261199668837498' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7923261199668837498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7923261199668837498'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2010/10/learn-to-live.html' title='Learn to Live'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-6896446032062341090</id><published>2010-04-17T21:38:00.000-07:00</published><updated>2010-04-17T21:40:42.399-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='skype'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Skype automation</title><content type='html'>If you are one of the skype users like me who has to dial the Airtel access number. You know the pain and would like to automate that boring task. Here is the blog which tells more about the automation&lt;br /&gt;&lt;br /&gt;&lt;span class="z19Dle" id="col-z12tvt1aqkqmy3bnu22ddlmhzseqcvnyl04"&gt;&lt;span class="zo"&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://stevenjoseph.blogspot.com/2008/07/skype-calling-card-script.html" class="ot-anchor"&gt;http://stevenjoseph.&lt;wbr&gt;blogspot.com/2008/07&lt;wbr&gt;/skype-calling-card-&lt;wbr&gt;script.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-6896446032062341090?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/6896446032062341090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=6896446032062341090' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/6896446032062341090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/6896446032062341090'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2010/04/skype-automation.html' title='Skype automation'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-3452893931358903321</id><published>2009-11-13T10:31:00.000-08:00</published><updated>2009-11-13T10:35:30.900-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='question'/><title type='text'>Shell Standard I/O</title><content type='html'>Q: What is the difference between these two shell statements?&lt;br /&gt;&lt;br /&gt;$cmd &gt;&gt; $logFile 2&gt;&amp;amp;1&lt;br /&gt;And&lt;br /&gt;$cmd 2&gt;&amp;amp;1 &gt;&gt; $logFile&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;The first one is right and second one is wrong.&lt;br /&gt;&lt;br /&gt;first one redirects any output from the $cmd to the $logFile. The second one just redirects the output and not the STDERR to the $logFile.&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;http://www.linux-mag.com/id/5103&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-3452893931358903321?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/3452893931358903321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=3452893931358903321' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3452893931358903321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3452893931358903321'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2009/11/shell-standard-io.html' title='Shell Standard I/O'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-6610627541461753284</id><published>2009-11-01T21:01:00.000-08:00</published><updated>2009-11-01T21:05:03.748-08:00</updated><title type='text'>Moral Dilemma</title><content type='html'>Q: How to decide if an action is morally right or wrong? E.g.&lt;br /&gt;1. Taking a personal prinout using office printer?&lt;br /&gt;2. Making a phone call using office phone ?&lt;br /&gt;3. Stealing salad from the salad bar at office canteen?&lt;br /&gt;4. Keeping the IPOD nano 4 GB found on a street at halloween pary on franklin street with urself?&lt;br /&gt;&lt;br /&gt;Ans: If you can tell all your friends and family members about the action then the action should be morally right.&lt;br /&gt;1. Should be OK.&lt;br /&gt;2. Should be OK.&lt;br /&gt;3. WRONG.&lt;br /&gt;4. Dicey.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-6610627541461753284?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/6610627541461753284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=6610627541461753284' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/6610627541461753284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/6610627541461753284'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2009/11/moral-dilemma.html' title='Moral Dilemma'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-6873361226498583859</id><published>2009-10-15T07:02:00.000-07:00</published><updated>2009-10-15T07:06:56.398-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='health'/><title type='text'></title><content type='html'>It is Democracy...So why not create own phrases, sentences and syndromes like others. So here is one from me:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Finish it syndrome.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The syndrome is one in which the DIET conscious person end up eating more in following scenario:&lt;br /&gt;1. Person end up taking more cereal as he wanted to finish the contents of the cereal box. Why not use it next item it is not going to get perished.&lt;br /&gt;2. Person end up taking more serving as he did not wanted the food to be wasted. Why not use the zip- lock bags..:-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-6873361226498583859?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/6873361226498583859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=6873361226498583859' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/6873361226498583859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/6873361226498583859'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2009/10/it-is-democracy.html' title=''/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-146471487893392197</id><published>2009-10-08T19:14:00.000-07:00</published><updated>2009-10-26T20:19:35.888-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='running'/><title type='text'>Motivation for fast running</title><content type='html'>I always wanted to run fast but was never motivated. But then I found something which motivated me.&lt;br /&gt;&lt;br /&gt;I read somewhere that running fast makes your abs and who does not want to have six pack abs.&lt;br /&gt;Six pack abs are enough reason for me to be motivated for fast running.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-146471487893392197?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/146471487893392197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=146471487893392197' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/146471487893392197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/146471487893392197'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2009/10/motivation-for-fast-running.html' title='Motivation for fast running'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-7693063493854862296</id><published>2009-07-05T09:58:00.000-07:00</published><updated>2009-09-05T17:08:24.928-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='GDB'/><title type='text'>GDB handy commands</title><content type='html'>Multi-threaded&lt;br /&gt;&lt;br /&gt;info threads&lt;br /&gt;&lt;br /&gt;Signals&lt;br /&gt;&lt;br /&gt;info signals&lt;br /&gt;// To pass the signal from GDB to the process.&lt;br /&gt;handle SIGINT pass&lt;br /&gt;&lt;br /&gt;To Debug a running process using GDB&lt;br /&gt;&lt;br /&gt;gdb &lt;exe&gt; &lt;process&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-7693063493854862296?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/7693063493854862296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=7693063493854862296' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7693063493854862296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7693063493854862296'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2009/07/gdb-handy-commands.html' title='GDB handy commands'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-539599971227661044</id><published>2009-05-19T09:20:00.000-07:00</published><updated>2009-05-19T09:24:21.906-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VIM'/><title type='text'>VIM : Comments lines with a pattern in a file</title><content type='html'>The lines in a file containing a specific pattern can be commented in VIM using the :g command.&lt;br /&gt;:g command is used in following form&lt;br /&gt;:g/[patern]&lt;pattern&gt;/[cmd]&lt;cmd&gt;&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;:g/JR/normal I //&lt;br /&gt;&lt;br /&gt;explanation&lt;br /&gt;Pattern : JR&lt;br /&gt;Cmd      : normal I //&lt;br /&gt;&lt;br /&gt;"I" is used in VIM to start insert mode at the start of line and "//" is the comment character used in PHP.&lt;br /&gt;&lt;br /&gt;Enjoy VIM. Check out the help :g if you have more questions.&lt;/cmd&gt;&lt;/pattern&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-539599971227661044?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/539599971227661044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=539599971227661044' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/539599971227661044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/539599971227661044'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2009/05/vim-comments-lines-with-pattern-in-file.html' title='VIM : Comments lines with a pattern in a file'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-7980997901387798485</id><published>2009-03-30T20:32:00.000-07:00</published><updated>2009-04-03T13:14:26.553-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VIM'/><title type='text'>Toggle Comment in VIM in one line using perl</title><content type='html'>There are lot of scripts in VIM which can toggle comments for you. But interestingly there is not a one liner which I can execute on systems where I do not have my vimrc file.&lt;br /&gt;&lt;br /&gt;try this mapping&lt;br /&gt;&lt;br /&gt;:map &lt;f2&gt; F2 V:!perl -nle 'if (/^\s*\/\//) { s/\s*\/\/\s*(.*)/$1/g; print } else {print "//".$_}'^Mj&lt;br /&gt;&lt;br /&gt;You can map Alt+C or Ctrl+T something which is faster than F2&lt;br /&gt;&lt;br /&gt;This mapping will comment and uncomment the C-style comment. I have tried this on Ubuntu and VIM 7.1 and works fine for me&lt;br /&gt;&lt;br /&gt;Note: The map command may not work on copying as the VIM may not recognize the Ctrl - M character. You have to Ctrl- V and then Enter to make it work&lt;br /&gt;&lt;/f2&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-7980997901387798485?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/7980997901387798485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=7980997901387798485' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7980997901387798485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7980997901387798485'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2009/03/toggle-comment-in-vim-in-one-line-using.html' title='Toggle Comment in VIM in one line using perl'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-5988966306202693415</id><published>2009-03-13T08:08:00.000-07:00</published><updated>2009-03-13T08:11:15.343-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><title type='text'>Singleton versus Static</title><content type='html'>These are rules which I use to decide where or not my class will be a Singleton or Static:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Control over construction. Timing issues.&lt;/li&gt;&lt;li&gt;Polymorphism.&lt;/li&gt;&lt;li&gt;One versus multiple instances.&lt;/li&gt;&lt;/ol&gt; &lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;&lt;span style=";font-family:Arial;font-size:10;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-5988966306202693415?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/5988966306202693415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=5988966306202693415' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/5988966306202693415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/5988966306202693415'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2009/03/singleton-versus-static.html' title='Singleton versus Static'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-2464958992436614958</id><published>2009-03-10T19:16:00.000-07:00</published><updated>2009-03-27T06:20:36.751-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VIM'/><title type='text'>Formatting XML in VIM - xmllint --format -</title><content type='html'>XML text can be formatted in VIM by running the xmllint command over the selected text.&lt;br /&gt;&lt;br /&gt;!xmllint --format -&lt;br /&gt;&lt;br /&gt;Note the hyphen at the last.&lt;br /&gt;&lt;br /&gt;Tried searching for sorter options for --format but did not found any.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-2464958992436614958?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/2464958992436614958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=2464958992436614958' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/2464958992436614958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/2464958992436614958'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2009/03/formatting-xml-in-vim-xmllint-format.html' title='Formatting XML in VIM - xmllint --format -'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-2074853167984244637</id><published>2009-03-09T09:50:00.000-07:00</published><updated>2009-03-09T09:55:50.328-07:00</updated><title type='text'>VNC not working on locked PC</title><content type='html'>Problem:&lt;br /&gt;---------&lt;br /&gt;I found that the VNC was not working on my PC(Windows XP) when it was locked using Ctrl+Alt+Del. Interestingly it did worked when the PC was not locked.&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;---------&lt;br /&gt;While installing VNC make sure that you select the option to install it as a service so it can be seen in services.msc&lt;br /&gt;&lt;br /&gt;On installing VNC, it provides an option to install as a service. If it is not installed as an service, the VNC cannot be done on a locked PC.&lt;br /&gt;&lt;br /&gt;Reason:&lt;br /&gt;--------&lt;br /&gt;This is what as told by one of my colleagues. Seems to be logical.&lt;br /&gt;&lt;br /&gt;Windows uses API from gina.dll which provides the capabilities for locking/unlocking the workstation. API from gina.dll are accessible only by the windows services and not by other programs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-2074853167984244637?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/2074853167984244637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=2074853167984244637' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/2074853167984244637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/2074853167984244637'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2009/03/vnc-not-working-on-locked-pc.html' title='VNC not working on locked PC'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-7743462935954357525</id><published>2008-10-11T07:52:00.000-07:00</published><updated>2008-10-11T10:01:42.383-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><title type='text'>timeout</title><content type='html'>Debian has an interesting command timeout:&lt;br /&gt;&lt;br /&gt;timeout 5 tail -f /var/log/messages&lt;br /&gt;&lt;br /&gt;If you do not have timeout package installed,  perl can be used to perform the same:&lt;br /&gt;&lt;br /&gt;perl -e "alarm shift @ARGV; exec @ARGV;" 5 tail -f /var/log/messages&lt;br /&gt;&lt;br /&gt;Reference links:&lt;br /&gt;http://michael.thegrebs.com/2008/05/27/most-awesome-command-ever/&lt;br /&gt;http://www.cyberciti.biz/faq/shell-scripting-run-command-under-alarmclock/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-7743462935954357525?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/7743462935954357525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=7743462935954357525' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7743462935954357525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7743462935954357525'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2008/10/timeout.html' title='timeout'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-3434612157998694970</id><published>2008-09-17T06:24:00.000-07:00</published><updated>2008-10-25T15:07:22.659-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Networking'/><title type='text'>Ethtool - Finding the NIC to which the LAN cable is connected</title><content type='html'>How to find if it is eth01, eth02, eth03 etc to which the LAN is connected.&lt;br /&gt;Sometimes the PCI slots are not properly numbered and we cannot rely on the normal naming convention. Linux ethtool comes handy at that time to find the NIC card.&lt;br /&gt;&lt;br /&gt;Use&lt;br /&gt;&lt;br /&gt;ethtool -p &lt;nic&gt;&lt;br /&gt;&lt;br /&gt;This will glow the light on the NIC card. You can just see the glowing the NIC and guess the name.&lt;/nic&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-3434612157998694970?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/3434612157998694970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=3434612157998694970' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3434612157998694970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3434612157998694970'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2008/09/ethtool-finding-nic-to-which-lan-cable.html' title='Ethtool - Finding the NIC to which the LAN cable is connected'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-6474865430961216751</id><published>2008-09-16T18:31:00.000-07:00</published><updated>2008-09-16T18:32:59.741-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Firefox'/><title type='text'>Creating firefox extension</title><content type='html'>Try out the extension wizard to create ur own extension. More about my first extension to view the PR records is coming later :-)&lt;br /&gt;&lt;br /&gt;http://ted.mielczarek.org/code/mozilla/extensionwiz/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-6474865430961216751?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/6474865430961216751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=6474865430961216751' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/6474865430961216751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/6474865430961216751'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2008/09/creating-firefox-extension.html' title='Creating firefox extension'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-1118187896540179312</id><published>2008-08-19T12:43:00.001-07:00</published><updated>2009-10-26T09:31:39.743-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><title type='text'>Get the last column from the ls command</title><content type='html'>&lt;pre&gt;awk '{ printf $NF;$NF = "" ;printf " "$0"\n" }' | sort&lt;br /&gt;&lt;br /&gt;http://www.linuxfocus.org/English/September1999/article103.html&lt;br /&gt;&lt;br /&gt;Here is one more trick I have learned from my colleague&lt;br /&gt;&lt;br /&gt;ls -ltr | while read a b c d e f g h file; do echo $file; done&lt;br /&gt;&lt;br /&gt;The second technique looks much easy to me&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-1118187896540179312?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/1118187896540179312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=1118187896540179312' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/1118187896540179312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/1118187896540179312'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2008/08/sorting-last-column-using-awk.html' title='Get the last column from the ls command'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-1856983327606967118</id><published>2008-06-27T15:58:00.000-07:00</published><updated>2008-06-27T15:59:43.384-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><title type='text'>xargs command replace string</title><content type='html'>Using xargs command with replace string&lt;br /&gt;&lt;br /&gt;to scp files with spec pattern&lt;br /&gt;&lt;br /&gt;ls file* | xargs -n1 -i{} scp {} root@&lt;hostip&gt;:/dest&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-1856983327606967118?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/1856983327606967118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=1856983327606967118' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/1856983327606967118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/1856983327606967118'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2008/06/xargs-command-replace-string.html' title='xargs command replace string'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-7549253336364379928</id><published>2008-05-23T14:20:00.000-07:00</published><updated>2009-06-14T20:55:07.508-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chess'/><title type='text'>Petroff Defense Trap</title><content type='html'>1. e4   e5&lt;br /&gt;2. Nf3  Nf6&lt;br /&gt;3. Nxe5 Nxe4&lt;br /&gt;4. Qe2 Nf6&lt;br /&gt;5. Nc6&lt;br /&gt;&lt;br /&gt;Now the black Queen is DEAD. Black king is in check by White Queen and his queen is in attack by knight.To save check and his queen he can 5. .. Qe7 but then white can take the queen with knight at d6&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-7549253336364379928?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/7549253336364379928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=7549253336364379928' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7549253336364379928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7549253336364379928'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2008/05/petroff-defense-trap.html' title='Petroff Defense Trap'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-7870019893385173096</id><published>2008-05-23T14:09:00.000-07:00</published><updated>2008-05-23T14:14:52.626-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP Hacking 1 = 1</title><content type='html'>'1 =1 ' is classic example of SQL injection attack. For the authentication some PHP GUI saves the user id and password in database. Generally a query something like this is used to validate the user given information:&lt;br /&gt;&lt;br /&gt;SELECT * FROM users&lt;br /&gt;WHERE  user='&lt;usergivenname&gt;'&lt;br /&gt;AND passwd='&lt;usergivenpasswd&gt;'&lt;br /&gt;&lt;br /&gt;A simple hacker like me ;-) can use SQL injection attack by specifying&lt;br /&gt;User: Any&lt;br /&gt;Password: OR 1 =1&lt;br /&gt;&lt;br /&gt;This will allow me to give access to the site. Depending on the query you may need to try other variations like&lt;br /&gt;&lt;br /&gt;Password: ') OR ('1=1')&lt;br /&gt;&lt;br /&gt;The idea is to inject 1 =1 (which is true)  in SQL statement such that the WHERE clause returns TRUE.&lt;br /&gt;&lt;br /&gt;Happy Hacking...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-7870019893385173096?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/7870019893385173096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=7870019893385173096' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7870019893385173096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7870019893385173096'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2008/05/php-hacking-1-1.html' title='PHP Hacking 1 = 1'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-3086396964614608296</id><published>2008-05-08T16:40:00.000-07:00</published><updated>2010-08-27T15:30:34.930-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Putty'/><title type='text'>Putty passwordless ssh</title><content type='html'>putty accepts login and password as command line. So it can be easily used in batch to access machines without giving login and password.&lt;br /&gt;&lt;br /&gt;putty host1 -l root -pw &lt;password&gt;&lt;br /&gt;&lt;br /&gt;I use it to the server which are build frequently. The problem with the server built frequently is that you cannot exchange keys as the keys will be deleted when the server is built again.&lt;br /&gt;&lt;br /&gt;&lt;/password&gt;If you are using a linux box then sshpass can also be used for auto SSH.&lt;br /&gt;&lt;br /&gt;Here is the batch script for windows lover&lt;br /&gt;&lt;br /&gt;@echo off&lt;br /&gt;if %1 == myserver  goto myserver&lt;br /&gt;goto default&lt;br /&gt;&lt;br /&gt;:myserver&lt;br /&gt;start C:\putty -ssh mercury -l &lt;myid&gt; -pw &lt;assword&gt;&lt;br /&gt;exit&lt;br /&gt;&lt;br /&gt;:default&lt;br /&gt;start C:\putty -ssh %1 -l root -pw &lt;assword&gt;&lt;br /&gt;exit&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-3086396964614608296?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/3086396964614608296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=3086396964614608296' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3086396964614608296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3086396964614608296'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2008/05/putty-passwordless-ssh.html' title='Putty passwordless ssh'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-4899834450359958111</id><published>2008-05-08T16:34:00.000-07:00</published><updated>2008-05-08T16:38:40.285-07:00</updated><title type='text'>Vim Ctrl-r Ctrl-w</title><content type='html'>Vim Ctrl-r Ctrl-w can be used to read the word under the cursor. It is useful if you want to edit files under the cursor.&lt;br /&gt;&lt;br /&gt;:e \C-v \C-r \C-v\C-w \C-v&lt;enter&gt;&lt;br /&gt;&lt;br /&gt;I know you can use gf to go the file. But just wanted to do it using one key.:-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-4899834450359958111?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/4899834450359958111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=4899834450359958111' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/4899834450359958111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/4899834450359958111'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2008/05/vim-ctrl-r-ctrl-w.html' title='Vim Ctrl-r Ctrl-w'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-2224078447389198926</id><published>2008-05-08T16:23:00.000-07:00</published><updated>2008-05-08T16:33:19.370-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BASH'/><title type='text'>Bind command</title><content type='html'>bind command can be used to bind your key strokes with the commands. I use it frequently to access my cleartool commands.&lt;br /&gt;&lt;br /&gt;after editing a file using vi. You can check the difference with the predecessor or the version tree for the file using key-strokes Alt-d or Alt-t&lt;br /&gt;&lt;br /&gt;bind -x '"\M-d"':'cleartool diff -pred -g -options "-b" $_ &amp;amp;'&lt;br /&gt;bind -x '"\M-t"':'cleartool lsvtree -g $_ &amp;amp;'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-2224078447389198926?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/2224078447389198926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=2224078447389198926' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/2224078447389198926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/2224078447389198926'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2008/05/bind-command.html' title='Bind command'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-2711467695388480405</id><published>2008-02-07T09:49:00.000-08:00</published><updated>2009-05-15T15:10:46.907-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RPM'/><title type='text'>Handy RPM commands</title><content type='html'>&lt;span style="font-family:Courier New;"&gt;# Unpackage an ISO file.&lt;br /&gt;rpm2cpio &lt;&lt;rpmfile&gt;&gt; &lt;rpmfile&gt;&lt;rpmname&gt; | cpio -idmv&lt;br /&gt;&lt;br /&gt;# Extracting the scripts from the rpm&lt;br /&gt;&lt;/rpmname&gt;&lt;/rpmfile&gt;&lt;/rpmfile&gt;&lt;/span&gt;rpm -qp --scripts &lt;&lt;rpmfile&gt;&gt;&lt;rpmname&gt;  &lt;rpmfile&gt; &gt;&gt; /tmp/scripts&lt;br /&gt;&lt;br /&gt;# Command to find if any of the files delivered by an RPM has changed.&lt;br /&gt;rpm --verify&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/rpmfile&gt;&lt;code&gt;&lt;/code&gt;&lt;br /&gt;&lt;rpmname&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/rpmname&gt;&lt;/rpmname&gt;&lt;/rpmfile&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-2711467695388480405?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/2711467695388480405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=2711467695388480405' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/2711467695388480405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/2711467695388480405'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2008/02/handy-rpm-commands.html' title='Handy RPM commands'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-3181472242518380721</id><published>2008-02-07T09:13:00.000-08:00</published><updated>2008-02-07T09:15:29.856-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GNU'/><title type='text'>wdl</title><content type='html'>GNU working directory list is an open source utlity to easily move between the working directories. You can even set CDPATH to move effectively between the directores. But take care setting CDPATH can also cause make command to fail, if you have a top-level make file which cd into sub-dirs and does a make.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-3181472242518380721?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/3181472242518380721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=3181472242518380721' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3181472242518380721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3181472242518380721'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2008/02/wdl.html' title='wdl'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-2329192529796921025</id><published>2007-12-28T17:24:00.000-08:00</published><updated>2007-12-28T17:26:56.705-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><title type='text'>Screen Command</title><content type='html'>Unix Screen command is an indespensable command. Once you know it you cannot live without it. It is window manager. Just try it and you will find it mind blowing.&lt;br /&gt;&lt;br /&gt;A new screen can be created using&lt;br /&gt;screen.&lt;br /&gt;&lt;br /&gt;Ctrl-A c  - Create new window&lt;br /&gt;Ctrl-A A - Name a window&lt;br /&gt;Ctrl-A "  - Show all windows.&lt;br /&gt;&lt;br /&gt;Ctrl-A S split window.&lt;br /&gt;Ctrl-A tab to move to the next window.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-2329192529796921025?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/2329192529796921025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=2329192529796921025' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/2329192529796921025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/2329192529796921025'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2007/12/screen-command.html' title='Screen Command'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-8457864297624482427</id><published>2007-12-28T17:04:00.001-08:00</published><updated>2007-12-28T17:24:08.963-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Putty'/><title type='text'>Putty Title</title><content type='html'>Putty Title can be easily modified using the function wt.&lt;br /&gt;&lt;br /&gt;wt ()&lt;br /&gt;{&lt;br /&gt;echo -n "^[]2;${@}^G"&lt;br /&gt;# In all of these, ^[ is really the "escape" character.&lt;br /&gt;# You put it into a file using vi, by typing control-V and then hitting the Escape key.&lt;br /&gt;# Likewise, ^G is the control-G# character. Again, hit control-V&lt;br /&gt;# then hit control-G&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The link '&lt;a href="http://www.unix.com/unix-dummies-questions-answers/35518-name-path.html"&gt;http://www.unix.com/unix-dummies-questions-answers/35518-name-path.html&lt;/a&gt;'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-8457864297624482427?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/8457864297624482427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=8457864297624482427' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/8457864297624482427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/8457864297624482427'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2007/12/putty-title.html' title='Putty Title'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-8694541247255791774</id><published>2007-04-06T04:37:00.001-07:00</published><updated>2007-04-06T04:37:53.561-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VIM'/><title type='text'>VIM: Auto formatting.</title><content type='html'>Lines can be formatted using&lt;br /&gt;&lt;br /&gt;set tw=80&lt;br /&gt;and then the famous gq command.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-8694541247255791774?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/8694541247255791774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=8694541247255791774' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/8694541247255791774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/8694541247255791774'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2007/04/vim-auto-formatting.html' title='VIM: Auto formatting.'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-4310541796303889761</id><published>2007-01-31T23:14:00.000-08:00</published><updated>2007-01-31T23:16:45.963-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MSWORD'/><title type='text'>Word macro to export comments</title><content type='html'>' This macro will export all the comments in the word doc to a new word doc.&lt;br /&gt;' U can save the word doc as .txt.&lt;br /&gt;' Change the extension to .csv&lt;br /&gt;' Open the doc with excel and u have exported your comments to excel&lt;br /&gt;Sub ExportComment()&lt;br /&gt;Dim s As String   &lt;br /&gt;Dim cmt As Word.Comment   &lt;br /&gt;Dim doc As Word.Document       &lt;br /&gt;For Each cmt In ActiveDocument.Comments      &lt;br /&gt;         s = s &amp; cmt.Initial &amp;amp; cmt.Index &amp; "," &amp;amp; cmt.Range.Text &amp; vbCr   &lt;br /&gt;Next   &lt;br /&gt;Set doc = Documents.Add   &lt;br /&gt;doc.Range.Text = s&lt;br /&gt;End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-4310541796303889761?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/4310541796303889761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=4310541796303889761' title='17 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/4310541796303889761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/4310541796303889761'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2007/01/word-macro-to-export-comments.html' title='Word macro to export comments'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>17</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-9119347987524337918</id><published>2007-01-31T21:46:00.000-08:00</published><updated>2007-01-31T21:47:32.950-08:00</updated><title type='text'>Word macro for requirement table</title><content type='html'>Need word macro to parse a doc and get all the requirements in one table&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-9119347987524337918?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/9119347987524337918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=9119347987524337918' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/9119347987524337918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/9119347987524337918'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2007/01/word-macro-for-requirement-table.html' title='Word macro for requirement table'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-7597289673281769285</id><published>2007-01-31T21:45:00.000-08:00</published><updated>2007-01-31T21:46:48.269-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TBD'/><title type='text'>Word macro for comments</title><content type='html'>Need word macro to export comments from word into an excel sheet&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-7597289673281769285?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/7597289673281769285/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=7597289673281769285' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7597289673281769285'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7597289673281769285'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2007/01/word-macro-for-comments.html' title='Word macro for comments'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-5446487332359169105</id><published>2007-01-31T21:44:00.000-08:00</published><updated>2007-01-31T21:45:22.158-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TBD'/><title type='text'>Indentaion techniques in VIM</title><content type='html'>Need to explore indenatation techniques in VIM.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-5446487332359169105?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/5446487332359169105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=5446487332359169105' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/5446487332359169105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/5446487332359169105'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2007/01/indentaion-techniques-in-vim.html' title='Indentaion techniques in VIM'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-4291766595234116558</id><published>2007-01-05T07:16:00.000-08:00</published><updated>2007-01-05T07:19:39.343-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MSWORD'/><title type='text'>MSWORD: Macro to add cross reference</title><content type='html'>Sub CreateCR()&lt;br /&gt;' CreateCR Macro&lt;br /&gt;' Macro recorded 1/5/2007 by Jay&lt;br /&gt;' This macro converts selection copy to a cross reference - numbered item&lt;br /&gt;&lt;br /&gt;Selection.Copy   &lt;br /&gt;Dim crossref   &lt;br /&gt;crossref = Selection   &lt;br /&gt;'MsgBox (crossref)&lt;br /&gt;Dim pNumberedItem    &lt;br /&gt;pNumberedItem = ActiveDocument.GetCrossReferenceItems(wdRefTypeNumberedItem)     For i = 1 To UBound(pNumberedItem)    &lt;br /&gt;'MsgBox (pNumberedItem(i))    &lt;br /&gt;If Selection = Trim(pNumberedItem(i)) Then           &lt;br /&gt;Selection.InsertCrossReference ReferenceType:="Numbered item", _        ReferenceKind:=wdNumberNoContext, ReferenceItem:= i, _       &lt;br /&gt;InsertAsHyperlink:=True, IncludePosition:=False       &lt;br /&gt;Exit For    &lt;br /&gt;End If    &lt;br /&gt;Next i&lt;br /&gt;End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-4291766595234116558?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/4291766595234116558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=4291766595234116558' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/4291766595234116558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/4291766595234116558'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2007/01/msword-macro-to-add-cross-reference.html' title='MSWORD: Macro to add cross reference'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-7637800920724422034</id><published>2006-12-31T02:17:00.000-08:00</published><updated>2006-12-31T02:18:27.276-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>Windows: Adding button to IE</title><content type='html'>run gpedit.msc&lt;br /&gt;go to Windows Settings InternetExplorerMaintenance&lt;br /&gt;Browser User Interface Browser ToolBar Customizations&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-7637800920724422034?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/7637800920724422034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=7637800920724422034' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7637800920724422034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/7637800920724422034'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2006/12/windows-adding-button-to-ie.html' title='Windows: Adding button to IE'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-8317360908191379141</id><published>2006-12-28T13:13:00.000-08:00</published><updated>2006-12-28T13:14:18.571-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MSWORD'/><title type='text'>MSWORD: Link for creating keyboard shortcuts</title><content type='html'>&lt;a href="http://www.oreilly.com/pub/h/2546"&gt;http://www.oreilly.com/pub/h/2546&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-8317360908191379141?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/8317360908191379141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=8317360908191379141' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/8317360908191379141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/8317360908191379141'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2006/12/msword-link-for-creating-keyboard.html' title='MSWORD: Link for creating keyboard shortcuts'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-3921157992818347704</id><published>2006-12-28T13:10:00.000-08:00</published><updated>2006-12-28T13:12:11.972-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>Windows: BookMarkelet to fill taxi requests</title><content type='html'>javascript:function jay(){var F = document.forms;var x=F[0].PURPOSE; x.options[x.selectedIndex].text='Late Stay';var y=F[0].LOC_TYPE; y.options[y.selectedIndex].text='Plot - 17';F[0].CHARGENO.value = 'STKL002',F[0].TO_PLACE.value='Gurgaon Patel Nagar',F[0].l_tele_no.value='9818203631';} jay();&lt;br /&gt;&lt;br /&gt;You can find more information about book markelets from wikipedia&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-3921157992818347704?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/3921157992818347704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=3921157992818347704' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3921157992818347704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3921157992818347704'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2006/12/windows-bookmarkelet-to-fill-taxi.html' title='Windows: BookMarkelet to fill taxi requests'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-1405882075475090860</id><published>2006-12-28T05:27:00.000-08:00</published><updated>2006-12-28T07:10:00.104-08:00</updated><title type='text'>VIM: Auto commenting for function closing braces</title><content type='html'>You can use the following code to perform auto commenting. Put this in your .vimrc file.&lt;br /&gt;This script will add the following comment after }//&lt;br /&gt;}// end &lt;function/class&gt;&lt;br /&gt;&lt;br /&gt;" abbrevation for doing commenting at end of functin curly bracket end "}"&lt;br /&gt;" use }// to comment the code&lt;br /&gt;iab }// ^[:call CurlyBracket()^MA&lt;br /&gt;&lt;br /&gt;function CurlyBracket()&lt;br /&gt;    let l:my_linenum = line(".")&lt;br /&gt;    let l:linenum    = searchpair('{', '', '}', 'bW')&lt;br /&gt;    let l:line       = getline(l:linenum - 1)&lt;br /&gt;    let l:str        = strpart( line, 4 )&lt;br /&gt;    sil exe ":" . l:my_linenum&lt;br /&gt;    sil exe "normal a} // end " . str&lt;br /&gt;endfunction&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-1405882075475090860?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/1405882075475090860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=1405882075475090860' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/1405882075475090860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/1405882075475090860'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2006/12/vim-auto-commenting-for-function.html' title='VIM: Auto commenting for function closing braces'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-1091277294223505257</id><published>2006-12-26T13:13:00.000-08:00</published><updated>2006-12-26T13:15:15.629-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VIM'/><title type='text'>VIM: vimrc function to set file name</title><content type='html'>This function replaces the existing file name with the name of the file stored in register %.&lt;br /&gt;The file should have the file name after "Module" word for this function to work properly.&lt;br /&gt;&lt;br /&gt;function! ReadFileName()   &lt;br /&gt;      let l:linenum  = search("^// *[Mm]odule","w")   &lt;br /&gt;      let l:filename = getreg("%")   &lt;br /&gt;      let l:newline  = '// Module :  '.filename   &lt;br /&gt;      sil exe ":call setline( linenum, newline)"&lt;br /&gt;endfunction&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-1091277294223505257?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/1091277294223505257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=1091277294223505257' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/1091277294223505257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/1091277294223505257'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2006/12/vim-vimrc-function-to-set-file-name.html' title='VIM: vimrc function to set file name'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-9208823453794275674</id><published>2006-12-26T13:10:00.000-08:00</published><updated>2006-12-26T13:12:56.090-08:00</updated><title type='text'>VIM: moving quickly between split windows</title><content type='html'>Have following maps in your vimrc to frequently move between splitted windows:&lt;br /&gt;&lt;br /&gt;:map [ctrl-v][ctrl-up arrow]       :wincmd k [ctrl-v]enter&lt;br /&gt;:map [ctrl-v][ctrl-down arrow]  :wincmd j [ctrl-v]enter&lt;br /&gt;:map [ctrl-v][ctrl-left arrow]      :wincmd h [ctrl-v]enter&lt;br /&gt;:map [ctrl-v][ctrl-right arrow]   :wincmd l [ctrl-v]enter&lt;br /&gt;&lt;br /&gt;To resize windows&lt;br /&gt;:map [ctrl-v][+] :[ctrl -w]+ [ctrl-v]enter&lt;br /&gt;:map [ctrl-v][-] :[ctrl -w]- [ctrl-v]enter&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-9208823453794275674?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/9208823453794275674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=9208823453794275674' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/9208823453794275674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/9208823453794275674'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2006/12/vim-moving-quickly-between-split.html' title='VIM: moving quickly between split windows'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-8816477056176156431</id><published>2006-12-26T13:08:00.000-08:00</published><updated>2006-12-26T13:10:01.826-08:00</updated><title type='text'>VIM: Indentation tip</title><content type='html'>map F10 ==j&lt;br /&gt;and then just press F10 to indent your complete file&lt;br /&gt;You should be having following set for having proper indentation&lt;br /&gt;set ts=4&lt;br /&gt;set sw=4&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-8816477056176156431?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/8816477056176156431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=8816477056176156431' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/8816477056176156431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/8816477056176156431'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2006/12/vim-indentation-tip.html' title='VIM: Indentation tip'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-5580394957374002361</id><published>2006-12-26T13:07:00.000-08:00</published><updated>2006-12-26T13:08:39.778-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><title type='text'>UNIX: Passwordless authentication</title><content type='html'>You can have passwordless authentication using the information in the given site&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.unixwiz.net/techtips/putty-openssh.html"&gt;http://www.unixwiz.net/techtips/putty-openssh.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-5580394957374002361?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/5580394957374002361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=5580394957374002361' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/5580394957374002361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/5580394957374002361'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2006/12/unix-passwordless-authentication.html' title='UNIX: Passwordless authentication'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-1687667966977462027</id><published>2006-12-26T12:42:00.000-08:00</published><updated>2006-12-26T13:03:05.751-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MSWORD'/><title type='text'>MSWORD: Macro for Document Map</title><content type='html'>Word Macro to toggle Document Map using [control - D]. You can map this macro with [control-D] and then can hide/unhide document map using [control-D]. Remember that document maps are major reason for crash while saving doc, so take care that you unhide it while saving docs.&lt;br /&gt;&lt;br /&gt;Sub DocumentMap()&lt;br /&gt;&lt;br /&gt;If (ActiveWindow.DocumentMap) Then&lt;br /&gt;ActiveWindow.DocumentMap = False&lt;br /&gt;Else&lt;br /&gt;ActiveWindow.DocumentMap = True&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-1687667966977462027?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/1687667966977462027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=1687667966977462027' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/1687667966977462027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/1687667966977462027'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2006/12/msword-macro-for-document-map.html' title='MSWORD: Macro for Document Map'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-3563696449922901652</id><published>2006-12-26T09:22:00.000-08:00</published><updated>2006-12-26T09:25:28.986-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VIM'/><title type='text'>VIM: Getting names of file in the current directory</title><content type='html'>File names in the current directory can be obtained by key strokes: [control -x] +[control-f]&lt;br /&gt;&lt;control-x&gt;&lt;control-f&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-3563696449922901652?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/3563696449922901652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=3563696449922901652' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3563696449922901652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3563696449922901652'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2006/12/vim-getting-names-of-file-in-current.html' title='VIM: Getting names of file in the current directory'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-3381350617241836065</id><published>2006-12-26T09:16:00.000-08:00</published><updated>2006-12-26T09:27:07.415-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><title type='text'>UNIX: watch command</title><content type='html'>Watch command is pretty helpful if you want to continuously view the output of a command.&lt;br /&gt;example:&lt;br /&gt;&lt;br /&gt;watch --interval=10 mpstat&lt;br /&gt;&lt;br /&gt;This shows the output of mpstat command every 10 secs in a window.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-3381350617241836065?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/3381350617241836065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=3381350617241836065' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3381350617241836065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/3381350617241836065'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2006/12/watch-command-to.html' title='UNIX: watch command'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-8881353901000873986</id><published>2006-12-24T22:44:00.000-08:00</published><updated>2006-12-26T09:21:00.442-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VIM'/><title type='text'>VIM: Word Completion</title><content type='html'>Word Completion in VIM can be achieved by&lt;br /&gt;Control - x + Control - p&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-8881353901000873986?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/8881353901000873986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=8881353901000873986' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/8881353901000873986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/8881353901000873986'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2006/12/vim-word-completion.html' title='VIM: Word Completion'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-816742172630354142</id><published>2006-12-24T03:39:00.000-08:00</published><updated>2006-12-26T09:21:49.272-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VIM'/><title type='text'>VIM: File register %</title><content type='html'>Vim stores the name of the file in the register %&lt;br /&gt;We can get the name of the file by keystrokes &lt;control-r&gt;+%&lt;ctrl-r&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-816742172630354142?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/816742172630354142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=816742172630354142' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/816742172630354142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/816742172630354142'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2006/12/vim-tip.html' title='VIM: File register %'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29951529.post-584376663251410396</id><published>2006-12-24T03:06:00.000-08:00</published><updated>2006-12-24T03:07:40.566-08:00</updated><title type='text'>Brutal attack by fate on 22nd June</title><content type='html'>I guess I will fill this later in my life.....for the time being keeping you people guessing ..;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29951529-584376663251410396?l=jayrajput.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayrajput.blogspot.com/feeds/584376663251410396/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29951529&amp;postID=584376663251410396' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/584376663251410396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29951529/posts/default/584376663251410396'/><link rel='alternate' type='text/html' href='http://jayrajput.blogspot.com/2006/12/brutal-attack-by-fate-on-22nd-june.html' title='Brutal attack by fate on 22nd June'/><author><name>Jay Rajput</name><uri>http://www.blogger.com/profile/05956219045828397977</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://photos1.blogger.com/blogger/1606/3203/1600/Jay.jpg'/></author><thr:total>0</thr:total></entry></feed>
