<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
 <title>Sai Charan</title>
 <link href="http://saicharan.in/atom.xml" rel="self"/>
 <link href="http://saicharan.in"/>
 <updated>2012-02-21T21:42:35-08:00</updated>
 <id>http://saicharan.in/</id>
 <author>
   <name>Sai Charan</name>
   <email>me@saicharan.in</email>
 </author>

 
 <entry>
   <title>Anyconnect VPN on Ubuntu x64</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2012/02/04/anyconnect-vpn-on-ubuntu-x64/"/>
   <updated>2012-02-04T12:16:28-08:00</updated>
   <id>http://saicharan.in/blog/2012/02/04/anyconnect-vpn-on-ubuntu-x64</id>
   <content type="html">&lt;p&gt;Connecting to the VPN website to launch Anyconnect installer was not helping -- either with Firefox, nor with Chrome. The Applet kept loading to eternity with no installation. Chanced upon &lt;a href=&quot;http://blog.mattwoodward.com/installing-cisco-anyconnect-on-64-bit-ubuntu&quot;&gt;http://blog.mattwoodward.com/installing-cisco-anyconnect-on-64-bit-ubuntu&lt;/a&gt;, which suggested that on Firefox, I disable the IcedTea-Web plugin for Java Applets -- and it worked. After the disable, I was given a link to download the installer for 'Linux _x86_64' platforms, which when run installed the VPN without any further hassle.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Quest for a good Antivirus</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2012/01/26/quest-for-a-good-free-antivirus-/"/>
   <updated>2012-01-26T11:55:41-08:00</updated>
   <id>http://saicharan.in/blog/2012/01/26/quest-for-a-good-free-antivirus-</id>
   <content type="html">&lt;p&gt;I have long been a loyal customer of Norton Internet Security product -- and I can vouch for its comprehensive, effective protection. However, when my most recent subscription expired, due to my Grad-student budget I decided to try other alternatives that I had access to via other subscriptions, or free software.&lt;/p&gt;

&lt;p&gt;My ISP, Charter Inc. provides its users a security solution titled &lt;a href=&quot;http://www.myaccount.charter.com/customers/supportgeneral.aspx?pagetype=1&quot;&gt;'Charter Security Suite'&lt;/a&gt; which in turn is an offering from F-Secure. While I have been skeptic of anything other than Symantec/Mc Afee/Zone Alarm, I decided to give it a try. After all, F-Secure is a for-profit organization and I must be paying for it indirectly (by paying my ISP).&lt;/p&gt;

&lt;p&gt;It turns out to be quite noisy. I have grown used to Norton silently making decisions for me based on its &lt;a href=&quot;http://www.symantec.com/about/profile/universityresearch/sharing.jsp&quot;&gt;Symantec WINE&lt;/a&gt;. But being an early adopter, I occasionally did manually choose my trust levels with Norton. The Charter Security Suite on the other hand, asked me if I trusted Google Talk, Yahoo Messenger and nearly every other prevalent software out there.&lt;/p&gt;

&lt;p&gt;And, curiously, this antivirus was not the first program to startup. It usually started after quite a few software that connect to the Internet were up and running -- bad, right?&lt;/p&gt;

&lt;p&gt;And then there was that fiasco with one software update -- Charter's suite asked me if I trusted the exact same binary about 30 times! That was the limit.&lt;/p&gt;

&lt;p&gt;I had the free &lt;a href=&quot;http://windows.microsoft.com/en-US/windows/products/security-essentials&quot;&gt;Microsoft Security Essentials&lt;/a&gt; running on my parent's PCs and they never mentioned it nor was there any incident of virus on their systems - a good thing. So I decided to try it. Install was a breeze and the quick scan completed in under 15 minutes without affecting my system performance. Nice!&lt;/p&gt;

&lt;p&gt;But I was not comfortable with no firewall on my Windows PC -- enter &lt;a href=&quot;http://www.zonealarm.com/security/en-us/zonealarm-pc-security-free-firewall.htm&quot;&gt;Zone Alarm&lt;/a&gt;. I had used it a master's student and remember being very satisfied with it. The download size (~150MB) was a bit of a brow-riser, but the install and setup was fantastic. Funnily, I kept waiting for ZoneAlarm to pop-up and ask me to set up something -- but good thing I was disappointed there. I then dug into the settings to find all in good shape -- software that I trusted was already trusted; no pesky pop-ups.&lt;/p&gt;

&lt;p&gt;So that is my current setup - Microsoft Security Essentials and ZoneAlarm Firewall - both free &amp;amp; so far so good.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Reading on the Internet</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/11/01/reading-on-the-internet/"/>
   <updated>2011-11-01T14:52:19-07:00</updated>
   <id>http://saicharan.in/blog/2011/11/01/reading-on-the-internet</id>
   <content type="html">&lt;p&gt;I tend to have this belief that one spends a fair amount of your time reading on the internet. If that is true now or in foreseeable future, you may want to read on.&lt;/p&gt;

&lt;p&gt;There has been a fair amount of work on making the world a more readable place. Of these, three tools are on my radar: &lt;a href=&quot;http://readability.com&quot;&gt;http://readability.com&lt;/a&gt;, &lt;a href=&quot;http://instapaper.com&quot;&gt;http://instapaper.com&lt;/a&gt; and Safari's Reader mode.&lt;/p&gt;

&lt;p&gt;Readability.com specializes in making your reading experience a good one: it removes clutter, ads and all that and shows you just text. And renders it beautifully at that. They have a paid app and also a free bookmarklet that lets you do this.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://Instapaper.com&quot;&gt;http://Instapaper.com&lt;/a&gt; is basically a reading list (read later option) that you can access from any browser with a native iPad/iPhone/iPod paid app. However, my interest in this is mostly the bookmarlket that cleans up the text.&lt;/p&gt;

&lt;p&gt;On the heels of Instapaper and Readability, Apple released a browser in-built 'Reader' mode. Simply click on the reader button in the far end of the address bar for web-pages that are 'readable' and you are presented with a fantastic clean view of the content. So far, my favorite has been readability.com's bookmarklet, but now I find myself doing all my reading in Safari browser (available even for PC). See this for what I mean: &lt;a href=&quot;http://www.apple.com/safari/whats-new.html#gallery-read-reader&quot;&gt;http://www.apple.com/safari/whats-new.html#gallery-read-reader&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Very easy on the eyes and zero distraction. Highly Recommended.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Default runlevel on CentOS</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/10/26/default-runlevel-on-centos/"/>
   <updated>2011-10-26T08:20:18-07:00</updated>
   <id>http://saicharan.in/blog/2011/10/26/default-runlevel-on-centos</id>
   <content type="html">&lt;p&gt;A reminder to self (this should work for all BSD-like systems, including Fedora &amp;amp; RHEL) &amp;mdash;&lt;/p&gt;

&lt;p&gt;Edit /etc/inittab as root. The number after the first colon after id is the default runlevel.&lt;/p&gt;

&lt;pre class=&quot;brush: shell&quot;&gt;
id:3:initdefault:
&lt;/pre&gt;


&lt;p&gt;BTW, I prefer runlevel 3 (no GUI).&lt;/p&gt;

&lt;p&gt;Reference: &lt;a href=&quot;http://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-boot-init-shutdown-sysv.html&quot;&gt;http://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-boot-init-shutdown-sysv.html&lt;/a&gt;&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Ubuntu 11.10, PuTTy, tmux &amp; UTF-8</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/10/17/ubuntu-1110-putty-tmux-utf8/"/>
   <updated>2011-10-17T01:46:22-07:00</updated>
   <id>http://saicharan.in/blog/2011/10/17/ubuntu-1110-putty-tmux-utf8</id>
   <content type="html">&lt;p&gt;After the upgrade today, firing up a tmux session via PuTTy with my usual &quot;Session Settings &gt; Translation &gt; Remote Character Set&quot; pointing to &quot;ISO-8859-6:1999 (Latin/Arabic)&quot;, I found that line drawings were all messed up: the lines were drawn with the 'a' like characters, instead of lines. It occured to me that the newly updated Ubuntu ncursesw libraries and/or tmux may have fixed something. Promptly switching to 'UTF-8' as the remote character set brought back the good looking line-drawings.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Gitweb with 'side-by-side' diff</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/10/09/gitweb-with-sidebyside-diff/"/>
   <updated>2011-10-09T23:20:40-07:00</updated>
   <id>http://saicharan.in/blog/2011/10/09/gitweb-with-sidebyside-diff</id>
   <content type="html">&lt;p&gt;Bonus: Simultaneously scroll left and right files with overflow.&lt;/p&gt;

&lt;p&gt;Dependencies: &lt;a href=&quot;http://jquery.com/&quot;&gt;jQuery&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Usage: Simply include jQuery in gitweb/gitweb.cgi (within the head tag).&lt;/p&gt;

&lt;p&gt;Future work: Going by &lt;a href=&quot;http://kerneltrap.org/mailarchive/git/2009/6/11/4701&quot;&gt;this thread&lt;/a&gt; on kerneltrap.org, 'side-by-side' diff appears to have been on the team's TODO list and never gotton around to being implemented. So, except for the simultaneous scrolling, I intend to port this to Perl and hope to get it integrated into Gitweb core. Simultaneous scrolling needs to be done in Javascript and the fact that external dependencies are &lt;a href=&quot;http://kerneltrap.org/mailarchive/git/2009/6/11/4701&quot;&gt;frowned upon&lt;/a&gt;,&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Note that we frown upon introducing extra dependencies for gitweb, unless they are optional, and best detected automatically.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;scrolling needs to be handled separately in gitweb.js (the currently implementation depends on &lt;a href=&quot;http://jquery.com&quot;&gt;jQuery&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Screenshot: &lt;a href=&quot;/images/side-by-side-diff-with-scroll.jpg&quot;&gt;&lt;img src=&quot;/images/side-by-side-diff-with-scroll.jpg&quot; alt=&quot;Gitweb side-by-side diff&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Gist: &lt;a href=&quot;https://gist.github.com/1274726&quot;&gt;https://gist.github.com/1274726&lt;/a&gt;&lt;/p&gt;

&lt;script src=&quot;https://gist.github.com/1274726.js&quot;&gt; &lt;/script&gt;

</content>
 </entry>
 
 <entry>
   <title>Richard Stallman &amp; Steve Jobs</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/10/08/richard-stallman--steve-jobs/"/>
   <updated>2011-10-08T12:24:16-07:00</updated>
   <id>http://saicharan.in/blog/2011/10/08/richard-stallman--steve-jobs</id>
   <content type="html">&lt;p&gt;Richard Stallman &lt;a href=&quot;http://stallman.org/archives/2011-jul-oct.html#06_October_2011_(Steve_Jobs)&quot;&gt;wrote&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Steve Jobs, the pioneer of the computer as a jail made cool, designed to sever fools from their freedom, has died.&lt;/p&gt;

&lt;p&gt;As Chicago Mayor Harold Washington said of the corrupt former Mayor Daley, &quot;I'm not glad he's dead, but I'm glad he's gone.&quot; Nobody deserves to have to die - not Jobs, not Mr. Bill, not even people guilty of bigger evils than theirs. But we all deserve the end of Jobs' malign influence on people's computing.&lt;/p&gt;

&lt;p&gt;Unfortunately, that influence continues despite his absence. We can only hope his successors, as they attempt to carry on his legacy, will be less effective.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;When I first read it, I was shocked. Somehow, my respect and admiration for Steve, and the news of his demise seemed to confuse the whole thing. Perhaps, I thought, Stallman did not wait 'the appropriate amount of time' after Jobs' passing - but hey, what is the appropriate amount of time? As &lt;a href=&quot;http://daringfireball.net/2011/10/thoughts_and_observations_iphone_4s&quot;&gt;Gruber&lt;/a&gt; put it, '...life goes on.'&lt;/p&gt;

&lt;p&gt;I could sense a fringe thought that I seemed to be actively fending away: that there was some truth in Stallman's words; and that he was being very respectful in what he said. But then, I could not place my thoughts - like I mentioned earlier, I seemed to be in a limbo of sorts.&lt;/p&gt;

&lt;p&gt;And then there was light! Dave Winer, the guy credited with inventing RSS, first tweeted &lt;a href=&quot;https://twitter.com/#!/davewiner/status/122417111640453121&quot;&gt;this&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Stallman's epitaph for Jobs is appropriate and respectful. http://r2.ly/7f3u&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;and followed up with &lt;a href=&quot;http://scripting.com/stories/2011/10/08/stallmanSteve.html&quot;&gt;this&lt;/a&gt;. And I seem to agree - Stallman was right; and appropriately respectful too. Brilliant, well thought out &amp;amp; effectively communicating piece of writing from Dave.&lt;/p&gt;

&lt;p&gt;To relate with the concluding paragraph from Stallman, it helps to be familiar with Apple's 'Think Different' ad campaign. A transcript of it is here: &lt;a href=&quot;http://saicharan.in/blog/2011/10/06/heres-to-the-crazy-ones/&quot;&gt;http://saicharan.in/blog/2011/10/06/heres-to-the-crazy-ones/&lt;/a&gt;&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Here's to the Crazy Ones</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/10/06/heres-to-the-crazy-ones/"/>
   <updated>2011-10-06T18:56:06-07:00</updated>
   <id>http://saicharan.in/blog/2011/10/06/heres-to-the-crazy-ones</id>
   <content type="html">&lt;p&gt;&lt;a href=&quot;http://www.loopinsight.com/&quot;&gt;The Loop&lt;/a&gt; linked to a &lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;amp;v=8rwsuXHA7RA&quot;&gt;video&lt;/a&gt; on Youtube and titled it &lt;a href=&quot;http://www.loopinsight.com/2011/10/06/steve-jobs-narrates-the-crazy-ones/&quot;&gt;'Steve Jobs narrates The Crazy Ones'&lt;/a&gt;. Here is a transcription (puctuation &amp;amp; emphasis is as I inferred, listening):&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Here is to the crazy ones. The misfits. The rebels. The trouble makers. The round pegs in the square holes; the ones who see things differently. They're not fond of rules and they have &lt;em&gt;no&lt;/em&gt; respect for the status quo. You can quote them, disagree with them; glorify or vilify them. About the only thing you &lt;strong&gt;can't&lt;/strong&gt; do is ignore them - because they change things. They push the human race forward. While some may see them as the crazy ones, we, see genius. Because people who are crazy enough to think they can change the world, are the ones &lt;em&gt;who do&lt;/em&gt;.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;And the video:&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;iframe width=&quot;160&quot; height=&quot;120&quot; src=&quot;http://www.youtube.com/embed/8rwsuXHA7RA?showinfo=0&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Steve on Courage, Heart and Intuition</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/10/06/steve-on-courage-heart-and-intuition/"/>
   <updated>2011-10-06T01:50:10-07:00</updated>
   <id>http://saicharan.in/blog/2011/10/06/steve-on-courage-heart-and-intuition</id>
   <content type="html">&lt;p&gt;...have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Remembering Steve Jobs</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/10/06/remembering-steve-jobs/"/>
   <updated>2011-10-06T00:38:16-07:00</updated>
   <id>http://saicharan.in/blog/2011/10/06/remembering-steve-jobs</id>
   <content type="html">&lt;p&gt;In his commencement address at Stanford, &lt;a href=&quot;http://apple.com/stevejobs&quot;&gt;Steve Jobs&lt;/a&gt; said (&lt;a href=&quot;http://news.stanford.edu/news/2005/june15/jobs-061505.html&quot;&gt;Stanford News&lt;/a&gt;)-&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Remembering that I'll be dead soon is the most important tool I've ever encountered to help me make the big choices in life. Because almost everything — all external expectations, all pride, all fear of embarrassment or failure - these things just fall away in the face of death, leaving only what is truly important. Remembering that you are going to die is the best way I know to avoid the trap of thinking you have something to lose. You are already naked. There is no reason not to follow your heart.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;In the light of this, as &lt;a href=&quot;http://twitter.com/roshnimo&quot;&gt;@roshnimo&lt;/a&gt; &lt;a href=&quot;https://twitter.com/krtgrphr/status/121736094776700928&quot;&gt;notes&lt;/a&gt;, it feels a tad foolish to mourn. &lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Texnic Center error 'pdflatex.exe: Could not Initialize GUI'</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/09/04/texnic-center-error-pdflatexexe-could-not-initialize-gui/"/>
   <updated>2011-09-04T17:02:07-07:00</updated>
   <id>http://saicharan.in/blog/2011/09/04/texnic-center-error-pdflatexexe-could-not-initialize-gui</id>
   <content type="html">&lt;p&gt;Another note to self &amp;mdash;&lt;br/&gt;
This error only means that MikTeX was &lt;a href=&quot;http://www.latex-community.org/forum/viewtopic.php?f=31&amp;amp;t=310#p1043&quot;&gt;unable to find and/or install some missing packages&lt;/a&gt;. To fix this (on Windows), run 'mo.exe' from the command prompt and choose 'Yes' for 'Install missing pacakges on-the-fly'. ('Ask me first' did not work for me).&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>quote: You want to know how to do it</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/09/03/quote-you-want-to-know-how-to-do-it/"/>
   <updated>2011-09-03T10:01:34-07:00</updated>
   <id>http://saicharan.in/blog/2011/09/03/quote-you-want-to-know-how-to-do-it</id>
   <content type="html">&lt;p&gt;You wanna know how you do it?&lt;/p&gt;

&lt;p&gt;Here's how, they pull a knife, you pull a gun. He sends one of yours to the hospital, you send one of his to the morgue. That's the Chicago way.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Jekyll feature: Retain Modified Time Stamp</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/09/02/jekyll-feature-retain-modified-time-stamp/"/>
   <updated>2011-09-02T12:54:03-07:00</updated>
   <id>http://saicharan.in/blog/2011/09/02/jekyll-feature-retain-modified-time-stamp</id>
   <content type="html">&lt;p&gt;To ease publishing via Jekyll, I needed to push via FTP to my hosting provider. I decided to the perl utility from sourceforge: &lt;a href=&quot;http://sourceforge.net/projects/ftpsync/&quot;&gt;ftpsync&lt;/a&gt;. However, running it made me notice that Jekyll always regenerated all files and obviously, they had a 'now' timestamp. This was basically throwing off the FTPSync utility which ended up pushing the entire site, defeating the very purpose of the utility.&lt;/p&gt;

&lt;p&gt;So, I made a two line fix that handles static pages and _posts/ as follows: The time stamp of the markdown/static page is copied to the published post page. So, even though Jekyll regenerates the entire site, the timestamps are adjusted to prevent unnecessary push via tools like FTPSync. Note that other pages will still have the 'now' timestamp.&lt;/p&gt;

&lt;p&gt;The diff can be &lt;a href=&quot;https://github.com/scharan/jekyll/compare/handle-modified-timestamps#diff-0&quot;&gt;viewed here&lt;/a&gt;. Feedback/suggestions welcome in comments.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>URL Selection in Putty</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/09/01/url-selection-in-putty/"/>
   <updated>2011-09-01T15:26:22-07:00</updated>
   <id>http://saicharan.in/blog/2011/09/01/url-selection-in-putty</id>
   <content type="html">&lt;p&gt;Finally! Used &lt;a href=&quot;http://tech.arantius.com/select-urls-in-putty&quot;&gt;this&lt;/a&gt; article to fix the partial URL selection problem with PuTTy. In addition to ':', I also 'set to class 2' the characters: '?' &amp;amp; '#'.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Tributes to Steve Jobs</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/08/25/tributes-to-steve-jobs/"/>
   <updated>2011-08-25T11:15:00-07:00</updated>
   <id>http://saicharan.in/blog/2011/08/25/tributes-to-steve-jobs</id>
   <content type="html">&lt;p&gt;Here are a few more reflections from people I read:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://daringfireball.net/2011/08/resigned&quot;&gt;John Gruber&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://scripting.com/stories/2011/08/25/thanksSteve.html&quot;&gt;Dave Winer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://pogue.blogs.nytimes.com/2011/08/25/steve-jobs-reshaped-industries/&quot;&gt;David Pogue&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.marco.org/2011/08/24/steve-jobs-resigns-as-apple-ceo&quot;&gt;Marco Arment&lt;/a&gt; closes with -&lt;/li&gt;
&lt;/ul&gt;


&lt;blockquote&gt;&lt;p&gt;Steve, if for some crazy reason you're reading this:&lt;/p&gt;

&lt;p&gt;You've defined a generation and changed the world.&lt;/p&gt;

&lt;p&gt;Thank you.&lt;/p&gt;

&lt;p&gt;We wish you the best.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;May be I'll add a few more as they pop up.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>When GOD called Vic Gundotra</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/08/25/when-god-called-vic-gundotra/"/>
   <updated>2011-08-25T10:10:00-07:00</updated>
   <id>http://saicharan.in/blog/2011/08/25/when-god-called-vic-gundotra</id>
   <content type="html">&lt;p&gt;Being an Apple fanboy, I enjoyed this piece. It is interesting that after Steve Jobs resigned, many such stories have surfaced.&lt;/p&gt;

&lt;p&gt;Vic Gundotra &lt;a href=&quot;https://plus.google.com/107117483540235115863/posts/gcSStkKxXTw&quot;&gt;recalls&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Steve laughed. He said, &quot;Vic, unless the Caller ID said 'GOD', you should never pick up during services&quot;. [...]&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;and concludes -&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;But in the end, when I think about leadership, passion and attention to detail, I think back to the call I received from Steve Jobs on a Sunday morning in January. It was a lesson I'll never forget. CEOs should care about details. Even shades of yellow. On a Sunday.&lt;/p&gt;

&lt;p&gt;To one of the greatest leaders I've ever met, my prayers and hopes are with you Steve.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Nice!&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>When Steve Held Open the Door</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/08/25/when-steve-held-open-the-door/"/>
   <updated>2011-08-25T09:40:00-07:00</updated>
   <id>http://saicharan.in/blog/2011/08/25/when-steve-held-open-the-door</id>
   <content type="html">&lt;p&gt;&lt;a href=&quot;http://tumblr.davidcairns.org/post/9359368094/so-steve-jobs-has-left-his-role-as-apples-ceo&quot;&gt;David Cairns&lt;/a&gt; writes:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Anyway, I knew the distance pretty well, so when I sensed that I was reaching the other side of the quad, I opened my eyes and looked down and Steve was holding the door for me, grinning to himself. I have no idea how long he had been holding it, though it was probably only a couple seconds, long enough to cause him to smile at my basking in the open air.&lt;/p&gt;

&lt;p&gt;Those couple seconds probably cost Apple $1.4bn.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Must have quite an experience!&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Static Blog Using Jekyll</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/08/24/static-blog-using-jekyll/"/>
   <updated>2011-08-24T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2011/08/24/static-blog-using-jekyll</id>
   <content type="html">&lt;p&gt;This is what it took me to migrate from WordPress to Jekyll:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Import blog using the wordpressdotcom importer.&lt;/li&gt;
&lt;li&gt;Use Disqus WP plugin to export comments into Disqus.&lt;/li&gt;
&lt;li&gt;Generate static pages (include Disqus code in Jekyll template).&lt;/li&gt;
&lt;li&gt;Add search functionality.&lt;/li&gt;
&lt;li&gt;Add personal pages (about/search/rss).&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Done! (A preview is available &lt;a href=&quot;http://aws.saicharan.in&quot;&gt;here&lt;/a&gt;.)&lt;/p&gt;

&lt;p&gt;Update:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Adding tags was a lot more effort. A little help from &lt;a href=&quot;https://gist.github.com/143571#gistcomment-7054&quot;&gt;this gist&lt;/a&gt; saved the day.&lt;/li&gt;
&lt;li&gt;Adding pages for year, month and day was a ton more effort. I modified archive.rb from &lt;a href=&quot;https://github.com/josegonzalez/josediazgonzalez.com/_plugins&quot;&gt;josegonzalez&lt;/a&gt; and also customized his _layout/archive_*.html&lt;/li&gt;
&lt;li&gt;Added an error handler with some JS to show my own custom error page.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;You can find the sources here: &lt;a href=&quot;https://github.com/scharan/scharan.github.com&quot;&gt;https://github.com/scharan/scharan.github.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Update:&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I also modified &lt;a href=&quot;https://github.com/metajack/jekyll/blob/master/emacs/jekyll.el&quot;&gt;metajack's jekyll.el&lt;/a&gt; to add a date: header (with date &amp;amp; time) on publish: &lt;a href=&quot;https://gist.github.com/1171592&quot;&gt;https://gist.github.com/1171592&lt;/a&gt;. The gist:&lt;/p&gt;

&lt;script src=&quot;https://gist.github.com/1171592.js?file=jekyll.el&quot;&gt;&lt;/script&gt;

</content>
 </entry>
 
 <entry>
   <title>Migrating to Jekyll</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/08/22/migrating-to-jekyll/"/>
   <updated>2011-08-22T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2011/08/22/migrating-to-jekyll</id>
   <content type="html">Ah! The joy of &lt;a title=&quot;markdown&quot; href=&quot;http://daringfireball.net/projects/markdown/&quot; target=&quot;_blank&quot;&gt;markdown&lt;/a&gt;! I preferred to write text, not markup. As @gruber states at the opening, markdown allows me write simply. However, it was painful to blog with this workflow:
&lt;ul&gt;
	&lt;li&gt;write in markdown&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://daringfireball.net/projects/markdown/dingus&quot; target=&quot;_blank&quot;&gt;convert to HTML&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;copy paste the HTML to blog editor&lt;/li&gt;
	&lt;li&gt;publish&lt;/li&gt;
&lt;/ul&gt;
It was just too painful. Enter &lt;a href=&quot;http://jekyllrb.com&quot; target=&quot;_blank&quot;&gt;Jekyll&lt;/a&gt;. I first came across &lt;a href=&quot;http://www.allthingsdistributed.com/2011/08/Jekyll-amazon-s3.html&quot; target=&quot;_blank&quot;&gt;Jekyll&lt;/a&gt; here on &lt;a href=&quot;http://allthingsdistributed.com&quot; target=&quot;_blank&quot;&gt;allthingsdistributed.com&lt;/a&gt;. &lt;a href=&quot;http://tom.preston-werner.com/&quot; target=&quot;_blank&quot;&gt;Tom Preston-Werner&lt;/a&gt; (Jekyll's author) notes &lt;a href=&quot;http://tom.preston-werner.com/2008/11/17/blogging-like-a-hacker.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;, he needed something simpler - so he wrote Jekyll.

I liked my new &lt;a title=&quot;munich theme&quot; href=&quot;https://github.com/scharan/munich&quot; target=&quot;_blank&quot;&gt;munich theme&lt;/a&gt;, and so wrote my own &lt;a href=&quot;https://github.com/scharan/scharan.github.com/blob/master/index.html&quot; target=&quot;_blank&quot;&gt;index.html&lt;/a&gt;, &lt;a href=&quot;https://github.com/scharan/scharan.github.com/blob/master/_layouts/default.html&quot; target=&quot;_blank&quot;&gt;default.html&lt;/a&gt;, &lt;a href=&quot;https://github.com/scharan/scharan.github.com/blob/master/_layouts/post.html&quot; target=&quot;_blank&quot;&gt;post.html&lt;/a&gt; and &lt;a href=&quot;https://github.com/scharan/scharan.github.com/blob/master/css/munich.css&quot; target=&quot;_blank&quot;&gt;css&lt;/a&gt;. You can see the work in progress here: &lt;a href=&quot;http://aws.saicharan.in&quot; target=&quot;_blank&quot;&gt;aws.saicharan.in&lt;/a&gt;.
</content>
 </entry>
 
 <entry>
   <title>SaveURI has a new home!</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/08/18/saveuri-has-a-new-home/"/>
   <updated>2011-08-18T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2011/08/18/saveuri-has-a-new-home</id>
   <content type="html">On Github: &lt;a href=&quot;https://github.com/scharan/saveuri&quot; target=&quot;_blank&quot;&gt;https://github.com/scharan/saveuri&lt;/a&gt;
</content>
 </entry>
 
 <entry>
   <title>Persisting/restoring ssh-agent across screen/tmux sessions</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/08/15/persistingrestoring-ssh-agent-across-screentmux-sessions/"/>
   <updated>2011-08-15T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2011/08/15/persistingrestoring-ssh-agent-across-screentmux-sessions</id>
   <content type="html">As a heavy user of screen and now of tmux, I find it annoying that each time I disconnect the terminal and reconnect and then reattach to screen/tmux, I find that inside the screen/tmux sessions, SSH_AUTH_SOCK variable is stale: it does not point anymore to the 'current' agent.pid file. So, here is a script to fix that: &lt;a href=&quot;https://github.com/scharan/Goodies/blob/master/ssh-agent-restore&quot;&gt;https://github.com/scharan/Goodies/blob/master/ssh-agent-restore&lt;/a&gt;
</content>
 </entry>
 
 <entry>
   <title>'gitweb' setup without root access</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/08/14/gitweb-setup-without-root-access/"/>
   <updated>2011-08-14T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2011/08/14/gitweb-setup-without-root-access</id>
   <content type="html">&lt;strong&gt;Setting up gitweb on a machine with no root access:&lt;/strong&gt;
&lt;br /&gt;
&lt;br /&gt;

&lt;div&gt;First, set up lighttpd:&lt;/div&gt;
&lt;div&gt;Download from &lt;a href=&quot;http://www.lighttpd.net/download&quot;&gt;http://www.lighttpd.net/download&lt;/a&gt;&lt;/div&gt;

&lt;pre class=&quot;brush:shell&quot;&gt;
  $ mkdir -p ~/usr
  $ tar -xvf lighttpd-*; cd !$;
  $ ./configure --prefix /home/&amp;lt;you&amp;gt;/usr
  $ make
  $ make install ## lighttpd is now at ~/usr/sbin/
&lt;/pre&gt;
&lt;br /&gt;

&lt;div&gt;- Now, if all is well, you should be able to run git instaweb in your local git repository.&lt;/div&gt;
&lt;div&gt;- If you see a message like base-docroot not found at /PATH/TO/SOME/WHERE, then it probably did not find that directory.&lt;/div&gt;
&lt;div&gt;To resolve this, you can do one of two things:&lt;/div&gt;
&lt;div&gt; 1. Find the directory named gitweb/ that contains index.cgi, gitweb.cgi and static/ and run&lt;/div&gt;

&lt;pre class=&quot;brush:shell&quot;&gt;  $ git config --get instaweb.gitwebdir &quot;/PATH/TO/gitweb/&quot; (I figured this from /usr/bin/git-instaweb)&lt;/pre&gt;
&lt;br /&gt;

&lt;div&gt; 2. Emulate a local install&lt;/div&gt;

&lt;pre class=&quot;brush:shell&quot;&gt;
  $ mkdir -p ~/www/static
  $ git config --get instaweb.gitwebdir &quot;/home//www&quot;
  $ scp ssh://my-ubuntu-machine-with-sudo-access:/usr/share/gitweb/* ~/www/
  $ scp ssh://my-ubuntu-machine-with-sudo-access:/usr/share/gitweb/static/* ~/www/static
  $ cd git-repo; git instaweb;
&lt;/pre&gt;
&lt;br /&gt;

&lt;div&gt;  - If it instead start and you then see an error like: 404 Not found, the folder exists but&lt;/div&gt;
&lt;div&gt;  - the index.cgi file is not found, simply do step 2 above.&lt;/div&gt;
&amp;nbsp;
&lt;br /&gt;

&lt;div&gt;&lt;strong&gt;Setting up highlight (on a machine with no root access):&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;- Download hightlight from here: &lt;a href=&quot;http://www.andre-simon.de/zip/download.html&quot;&gt;http://www.andre-simon.de/zip/download.html&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;     $ tar -xvf hightlight*; cd !$;&lt;/div&gt;
&lt;div&gt;     $ make&lt;/div&gt;
&lt;div&gt;     $ edit 'makefile'&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px; white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;

&lt;pre class=&quot;brush:shell&quot;&gt;
       # Destination directory for installation (intended for packagers)
       DESTDIR =
       # Root directory for final installation
       PREFIX = /home/csgrads/scharan/usr # or something appropriate.
       $ make install
       $ PATH=$PATH:~/usr/bin/:
&lt;/pre&gt;
&lt;br /&gt;

&lt;div&gt;- Download lua from here: &lt;a href=&quot;http://www.lua.org/ftp/lua-5.1.4.tar.gz&quot;&gt;http://www.lua.org/ftp/lua-5.1.4.tar.gz&lt;/a&gt;&lt;/div&gt;

&lt;pre class=&quot;brush:shell&quot;&gt;
     $ make linux
     $ Edit makefile to point INSTALL_TOP to ~/usr/local
&lt;/pre&gt;
&lt;br /&gt;

&lt;div&gt; - Edit ~/www/gitweb.cgi: enable highlight feature (you gotta grep for it).&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Vonage Usage: Python Script</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/08/09/vonage-usage-python-script/"/>
   <updated>2011-08-09T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2011/08/09/vonage-usage-python-script</id>
   <content type="html">&lt;p&gt;This eases checking international minutes used with a Vonage World plan &lt;a href=&quot;http://saicharan.in/work/vonage.py&quot; target=&quot;_blank&quot;&gt;http://saicharan.in/work/vonage.py&lt;/a&gt;. Just put in your vonage username/password in the script. You would also want to&lt;/p&gt;

&lt;pre class=&quot;brush: shell&quot;&gt;$ sudo pip install libxml2dom&lt;/pre&gt;


&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Further, to avoid manual check, here is a crontab entry to automatically check usage at 6 AM everyday. It then emails you if you have overshot the usage (defaults to 3000 mins/month). My mail.sh is available on: &lt;a href=&quot;https://github.com/scharan/Goodies/blob/master/mail.sh&quot; target=&quot;_blank&quot;&gt;Github&lt;/a&gt;.&lt;/p&gt;

&lt;pre class=&quot;brush: shell&quot;&gt;0 6 * * * vonage.py 1&amp;gt;/tmp/vonage-mail; ret=$?; if [ $ret -ne 0 ]; then mail.sh &quot;Vonage Usage: $ret&quot; /tmp/vonage-mail; fi&lt;/pre&gt;


&lt;p&gt;&lt;/p&gt;

&lt;p&gt;The script:&lt;/p&gt;

&lt;script type=&quot;text/javascript&quot; src=&quot;http://gist-it.appspot.com/github/scharan/Goodies/raw/master/vonage.py&quot;&gt;&lt;/script&gt;


&lt;!--script src=&quot;https://gist.github.com/1137615.js&quot;&gt; Vonage Usage Gist &lt;/script--&gt;

</content>
 </entry>
 
 <entry>
   <title>Readability for Chrome: Save to Instapaper</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/08/08/readability-for-chrome-save-to-instapaper/"/>
   <updated>2011-08-08T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2011/08/08/readability-for-chrome-save-to-instapaper</id>
   <content type="html">&lt;p&gt;I love readability (readability.com) for the clutter free reading experience. As a student, I prefer freebies. Instapaper does a great job of reading lists - and its free too. I wanted to combine the Readability's 'Read Later' shortcut (shift + `) to save to Instapaper. Turns out, its easy:&lt;/p&gt;

&lt;p&gt;On Windows, goto:
%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Extensions\oadggleneidfmbhhedlildjnpgcggmch\1.6_0\js&lt;/p&gt;

&lt;p&gt;On Ubuntu Linux, goto:
~/.config/chromium/Default/Extensions/oadggleneidfmbhhedlildjnpgcggmch/1.6_0/js/&lt;/p&gt;

&lt;p&gt;Replace the contents of 'save.js' with the script below. &lt;del datetime=&quot;2011-08-13T03:10:26+00:00&quot;&gt;You will have to replace with the string that follows instapaper.com/j/ in your personal bookmarklet - sorry, its a wee little bit more effort.&lt;/del&gt; Found a way to avoid user specific token. This works out of the box.&lt;/p&gt;

&lt;script type=&quot;text/javascript&quot; src=&quot;http://gist-it.appspot.com/github/scharan/Goodies/raw/master/save.js&quot;&gt;&lt;/script&gt;


&lt;p&gt;&lt;/p&gt;

&lt;!--pre class=&quot;brush: javascript&quot;&gt;(function(){var d=document,z=d.createElement('scr'+'ipt'),b=d.body,l=d.location;try{if(!b)throw(0);d.title='(Saving...) '+d.title;z.setAttribute('src',l.protocol+'//www.instapaper.com/j/ms9ZEqYS9JfG?u='+encodeURIComponent(l.href)+'&amp;amp;t='+(new Date().getTime()));b.appendChild(z);}catch(e){alert('Please wait until the page has loaded.');}}());&lt;/pre--&gt;


&lt;p&gt;&lt;/p&gt;

&lt;p&gt;That piece of code is and adaptation from Instapaper's 'Read Later' bookmarklet: &lt;a href=&quot;http://www.instapaper.com/extras&quot;&gt;http://www.instapaper.com/extras&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now simply disable/re-enable the Readability plugin, open (or reload if already open) the page you wish to 'read later' and hit (shift + `) keys. If you are logged in with Instapaper, you should see the Saved! popup on the top left. Else, you will be prompted to login and then Instapaper saves your bookmark, returning you to the page you were on.&lt;/p&gt;

&lt;p&gt;Neat!&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Indian Almanac Bookmarklet</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/08/08/indian-almanac-bookmarklet/"/>
   <updated>2011-08-08T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2011/08/08/indian-almanac-bookmarklet</id>
   <content type="html">&lt;p&gt;Traditional events require fairly strict observances throughout the year. For this, I tend to rely on the online service: &lt;a href=&quot;http://mypanchang.com&quot; target=&quot;_blank&quot;&gt;http://mypanchang.com&lt;/a&gt;. Though I bookmarked the page, it is error prone in that you will be always be shown the date that you bookmarked. Instead, it would be of immense help to view today's almanac. So, here is my bookmarklet for showing today's almanac for Los Angeles. You can edit it to show your city's almanac by looking at the URL for your city from here: &lt;a href=&quot;http://www.mypanchang.com/selectyourcity2011.html&quot; target=&quot;_blank&quot;&gt;http://www.mypanchang.com/selectyourcity2011.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Bookmarklet: &lt;a href=&quot;javascript: function panchangam(){var d = new Date(); var day=d.getDate(); var month=d.getMonth(); var year = d.getFullYear();location.href='http://www.mypanchang.com/phppanchang.php?'+'&amp;amp;yr='+year+'&amp;amp;cityhead=Los Angeles, CA&amp;amp;cityname=LosAngeles-CA'+'&amp;amp;monthtype=0&amp;amp;mn='+month+'#'+day};panchangam();&quot;&gt; LA South Indian Almanac &lt;/a&gt;&lt;/p&gt;

&lt;script type=&quot;text/javascript&quot; src=&quot;http://gist-it.appspot.com/github/scharan/Goodies/raw/master/almanac.js&quot;&gt;&lt;/script&gt;


&lt;p&gt;&lt;/p&gt;

&lt;!--pre class=&quot;brush: javascript&quot;&gt;javascript: function panchangam(){var d = new Date(); var day=d.getDate(); var month=d.getMonth(); var year = d.getFullYear();location.href='http://www.mypanchang.com/phppanchang.php?'+'&amp;amp;yr='+year+'&amp;amp;cityhead=Los Angeles, CA&amp;amp;cityname=LosAngeles-CA'+'&amp;amp;monthtype=0&amp;amp;mn='+month+'#'+day};panchangam();&lt;/pre--&gt;

</content>
 </entry>
 
 <entry>
   <title>Texnic Center and Adobe Reader X</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/05/04/texnic-center-and-adobe-reader-x/"/>
   <updated>2011-05-04T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2011/05/04/texnic-center-and-adobe-reader-x</id>
   <content type="html">&lt;p&gt;After I upgraded to Adobe Reader X, Texnic center started throwing up an error:&quot;[DocOpen(&quot;%bm.pdf&quot;)][FileOpen(&quot;%bm.pdf&quot;)] Cannot execute the command.&quot;&lt;/p&gt;

&lt;p&gt;Digging up a little on Adobe DDE, I found a solution here: &lt;a href=&quot;http://forums.adobe.com/message/3301219#3301219&quot;&gt;http://forums.adobe.com/message/3301219#3301219&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the fix:
Build &amp;gt; Define Output Profiles &amp;gt; Choose 'LaTeX =&amp;gt; PDF' &amp;gt; Viewer tab. In three locations where 'acroview' is the value, change it to 'acroviewR10' and you are good to go!&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>gContactSync bug</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/04/12/gcontactsync-bug/"/>
   <updated>2011-04-12T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2011/04/12/gcontactsync-bug</id>
   <content type="html">&lt;p&gt;Found a weird behavior with gContactSync 0.3.2 Thunderbird plugin- on both Windows and Linux (Fedora 14), the sync stops after 111 contacts. Poked around the internet and found that there were no documented bugs on this.&lt;/p&gt;

&lt;p&gt;Decided to fix it for myself cos I found that it &lt;em&gt;really&lt;/em&gt; syncs all the contact information to Thunderbird, including the photo.&lt;/p&gt;

&lt;p&gt;gContactSync has a nice 'verbose log' feature for debugging information - but was not of much help since the log stopped after 111 contacts.&lt;/p&gt;

&lt;p&gt;Next tool for me was the 'Error Console' in Thunderbird. Not surprisingly, I found an error on line 181 in content/GContact.js, that read &quot; 'type' not defined&quot; :&lt;/p&gt;

&lt;pre class=&quot;brush:&quot;javascript&gt;
181 type = type.substring(type.indexOf(&quot;#&quot;) + 1); 
182 return new com.gContactSync.Property(arr[i].childNodes[0].nodeValue, 
183                                                                        type); 
&lt;/pre&gt;


&lt;p&gt;Darn! Just as a test, I simply pre-pended 'if(type)' to line 181, resulting in:&lt;/p&gt;

&lt;pre class=&quot;brush:&quot;javascript&gt;
181 if(type) type = type.substring(type.indexOf(&quot;#&quot;) + 1); 
182 return new com.gContactSync.Property(arr[i].childNodes[0].nodeValue, 
183                                                                        type); 
&lt;/pre&gt;


&lt;p&gt;It worked! Not really got a chance to investigate what happens/does not happen when 'type' is NOT defined, but things seem to work for now. I also submitted this here: &lt;a href=&quot;http://www.pirules.org/extensions/submit_error.php&quot;&gt;http://www.pirules.org/extensions/submit_error.php&lt;/a&gt;&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Mapping Win key in Fedora (14)</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/04/08/mapping-win-key-in-fedora-14/"/>
   <updated>2011-04-08T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2011/04/08/mapping-win-key-in-fedora-14</id>
   <content type="html">Learnt/inferred a few things here [correct me via comments if I am wrong conceptually; note that these have worked for me] -
&lt;ul&gt;
	&lt;li&gt;Win key is called/referred to as the 'super key'&lt;/li&gt;
	&lt;li&gt;You may have to get xmodmap to explicitly recognize the key.&lt;/li&gt;
	&lt;li&gt;You can get the keycode for any key using 'xev' command, as discussed here: &lt;a href=&quot;http://forums.fedoraforum.org/showpost.php?s=9af5fdea1041e19ff96815fb3470f904&amp;amp;p=913923&amp;amp;postcount=9&quot; target=&quot;_blank&quot;&gt;http://forums.fedoraforum.org/showpost.php?s=9af5fdea1041e19ff96815fb3470f904&amp;amp;p=913923&amp;amp;postcount=9&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Once you find out the keycode for you Win key, you can get xmodmap to 'recognize' it as noted in &lt;a href=&quot;http://forums.fedoraforum.org/showpost.php?s=9af5fdea1041e19ff96815fb3470f904&amp;amp;p=913308&amp;amp;postcount=3&quot; target=&quot;_blank&quot;&gt;http://forums.fedoraforum.org/showpost.php?s=9af5fdea1041e19ff96815fb3470f904&amp;amp;p=913308&amp;amp;postcount=3&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Then, configure Win+key combinations via System &amp;gt; Preferences &amp;gt; Keyboard Shortcuts.&lt;/li&gt;
&lt;/ul&gt;
</content>
 </entry>
 
 <entry>
   <title>SaveURI Updated for Firefox 4</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2011/03/31/saveuri-updated-for-firefox-4/"/>
   <updated>2011-03-31T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2011/03/31/saveuri-updated-for-firefox-4</id>
   <content type="html">&lt;p&gt;Made some time to update the firefox extension at &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/saveuri/&quot;&gt;https://addons.mozilla.org/en-US/firefox/addon/saveuri/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It was a more than a minor compatibility break. I have submitted the new version for review. But for those of you wish to test it for me, here is a link: &lt;a href=&quot;http://saicharan.in/beta/saveuri/saveuri-0.3.3-fx.xpi&quot;&gt;http://saicharan.in/beta/saveuri/saveuri-0.3.3-fx.xpi&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Warning: This has not yet been approved by a Mozilla reviewer - for testing only!&lt;/p&gt;

&lt;p&gt;Instructions: If your Firefox browser saves the file rather than install it, simply drag and drop the file to the browser window and restart your browser!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update: &lt;/strong&gt;The extension has been approved and is now available at &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/saveuri/&quot;&gt;https://addons.mozilla.org/en-US/firefox/addon/saveuri/&lt;/a&gt; Thanks everyone for the geek-joy!&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>while(*a++ == *b++)</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2010/05/11/whilea-b/"/>
   <updated>2010-05-11T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2010/05/11/whilea-b</id>
   <content type="html">Among the most elegant implementations is the string copy function (assuming you have allocated enough memory in the dest buffer):
&lt;pre class=&quot;brush: cpp&quot;&gt;//Assuming for elegance you don't have to return the number of bytes copied.
void strcpy(char* src, char* dest){
while(*dest++ = *src++);
}&lt;/pre&gt;
But I have often wondered what happens at the assembler such *s gets you only a single byte/character. So here is a simple program that explores this - but in string compare:
&lt;pre class=&quot;brush: cpp&quot;&gt;int main(){
    char *a=&quot;String One&quot;, *b=&quot;String Two&quot;;
    while(*a++==*b++);
return 0;
}&lt;/pre&gt;
I compiled this with 'gcc -S' option and got the following assembly code:
&lt;pre class=&quot;brush: plain&quot;&gt;        .file	&quot;testpointer.c&quot;
	.def	___main;	.scl	2;	.type	32;	.endef
	.section .rdata,&quot;dr&quot;
LC0:
	.ascii &quot;a\0&quot;
LC1:
	.ascii &quot;b\0&quot;
	.text
.globl _main
	.def	_main;	.scl	2;	.type	32;	.endef
_main:
	pushl	%ebp
	movl	%esp, %ebp
	andl	$-16, %esp
	subl	$16, %esp
	call	___main
	movl	$LC0, 8(%esp)
	movl	$LC1, 12(%esp)
L2:
	movl	8(%esp), %eax
	movb	(%eax), %dl
	movl	12(%esp), %eax
	movb	(%eax), %al
	cmpb	%al, %dl
	sete	%al
	incl	8(%esp)
	incl	12(%esp)
	testb	%al, %al
	jne	L2
	movl	$0, %eax
	leave
	ret&lt;/pre&gt;
Line 24: &quot;cmpb %al, %dl&quot; says it all. compare &lt;strong&gt;Lower&lt;/strong&gt; &lt;strong&gt;Byte&lt;/strong&gt; of register 'a' and register 'd'. Now I can be in peace ;)

References:

&lt;a href=&quot;http://www.codeguru.com/cpp/cpp/cpp_mfc/tutorials/article.php/c9415&quot;&gt;http://www.codeguru.com/cpp/cpp/cpp_mfc/tutorials/article.php/c9415&lt;/a&gt;

&lt;a href=&quot;http://www3.itu.edu.tr/~kesgin/mul06/intel/instr/sete_setz.html&quot;&gt;http://www3.itu.edu.tr/~kesgin/mul06/intel/instr/sete_setz.html&lt;/a&gt;

&lt;a href=&quot;http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/www.artofasm.com/DOS/ch09/CH09-6.html#HEADING6-83&quot;&gt;http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/www.artofasm.com/DOS/ch09/CH09-6.html#HEADING6-83&lt;/a&gt;
</content>
 </entry>
 
 <entry>
   <title>Efficient Substr implementation</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2010/05/10/efficient-substr-implementation/"/>
   <updated>2010-05-10T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2010/05/10/efficient-substr-implementation</id>
   <content type="html">I came up with this implementation of substring method. Anyone got ideas to make it more terse &lt;em&gt;and&lt;/em&gt; more efficient?
&lt;pre class=&quot;brush: cpp&quot;&gt;bool substring(const char* str, const char* substr){
	const char *currentString = str, *backTrackString = str, *currSubstr = substr;
	while( strlen(backTrackString) &amp;gt;= strlen(substr) ){
		while( *currSubstr &amp;amp;&amp;amp; *currentString++ == *currSubstr++);
		if( !*currSubstr ) return true;
		currentString = backTrackString++;
		currSubstr = substr;
	}
	return false;
}&lt;/pre&gt;
In particular, can we do without atleast one of the local variables - while still being as efficient or better? A more basic question - so you think this is efficient?
</content>
 </entry>
 
 <entry>
   <title>Binary Search Tree</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2010/05/10/binary-search-tree/"/>
   <updated>2010-05-10T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2010/05/10/binary-search-tree</id>
   <content type="html">The following code tests if the input binary tree is, in fact, a Binary Search Tree. This was as terse as I could get it. Any got more terse code? Suggestions/comments welcome.
&lt;pre class=&quot;brush: cpp&quot;&gt;bool IsBST(TreeNode* node){
	if( !node ) return true;// trivially true.
	if( node-&amp;gt;left )
		if( node-&amp;gt;left-&amp;gt;val &amp;gt; node-&amp;gt;val ) return false; //fail early
	if( node-&amp;gt;right )
		if( node-&amp;gt;right-&amp;gt;val &amp;lt; node-&amp;gt;val ) return false; //fail early

	return ( IsBST(node-&amp;gt;left) &amp;amp;&amp;amp; IsBST(node-&amp;gt;right) ); //recursively test subtrees
}&lt;/pre&gt;
Update: &lt;span style=&quot;text-decoration: line-through;&quot;&gt; Notice the tail recursion? Its super-efficient! &lt;/span&gt;

Update-update: Thanks to Kartik (see comments below) for pointing out that the last line is NOT tail-recursive.

Yet another update: The algorithm is does NOT check for IsBST(). The criterion of root being greater than all right children and smaller than left children is not always checked. See &lt;a href=&quot;http://en.wikipedia.org/wiki/Binary_search_tree&quot;&gt;http://en.wikipedia.org/wiki/Binary_search_tree&lt;/a&gt; for more details.
</content>
 </entry>
 
 <entry>
   <title>With Great Power Comes Great Responsibility</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2010/05/07/with-great-power-comes-great-responsibility/"/>
   <updated>2010-05-07T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2010/05/07/with-great-power-comes-great-responsibility</id>
   <content type="html">I was working on a remote FreeBSD system and issued a sudo command. I really liked what the 'preamble' to the password: prompt was -

&lt;code&gt;
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:&lt;/code&gt;

&amp;nbsp;

&lt;code&gt;#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.&lt;/code&gt;

Password:

&amp;nbsp;

With great power comes great responsibility - and my mind instantly went to this story: &lt;a href=&quot;http://www.justpasha.org/folk/rm.html&quot;&gt;http://www.justpasha.org/folk/rm.html&lt;/a&gt;

Hail Unix!
</content>
 </entry>
 
 <entry>
   <title>JS e-mail Validator</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/11/19/js-e-mail-validator/"/>
   <updated>2009-11-19T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2009/11/19/js-e-mail-validator</id>
   <content type="html">NOTE: I have avoided character classes to aid understanding for newbies. Wizards, bear with the verbosity!

Came up with this nice little email validator JS regexp. Someone got something shorter?
&lt;pre class=&quot;brush: javascript&quot;&gt;function validateEmail( email ){
var emailRe = new RegExp(&quot;^[a-zA-Z]+([a-zA-Z0-9_]*.[a-zA-Z0-9_]+)*@([a-zA-Z0-9_]+.[a-zA-Z0-9_]+)*$&quot;,'i');
return( emailRe.test( email ) );
}&lt;/pre&gt;
Does this miss any cases? Try it out here:

&lt;input id=&quot;email&quot; type=&quot;text&quot; value=&quot;Email&quot; /&gt; &lt;button onclick=&quot;validateEmail( getElementById('email').value );return false;&quot;&gt; Validate email! &lt;/button&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
    function validateEmail( email ){ var emailRe = new RegExp(&quot;^[a-zA-Z]+([a-zA-Z0-9_.][a-zA-Z0-9_]+)+@([a-zA-Z0-9]+([.a-zA-Z0-9_])+)$&quot;,'i'); alert( emailRe.test( email ) ? &quot;Valid&quot; : &quot;Invalid email&quot; ); }
 &lt;/script&gt;&lt;strong&gt;Update: &lt;/strong&gt;This script allowed '*' in the email ID. The correct re would be:
&lt;pre class=&quot;brush: javascript&quot;&gt;var emailRe = new RegExp(&quot;^[a-zA-Z]+([a-zA-Z0-9_].[a-zA-Z0-9_]+)+@([a-zA-Z0-9_]+.[a-zA-Z0-9_]+)+$&quot;,'i');&lt;/pre&gt;
&lt;strong&gt;Bug again!&lt;/strong&gt; The '.' character outside the character class [] matches *ANY* single character. This, however, definitely works!
&lt;pre class=&quot;brush: javascript&quot;&gt;var emailRe = new RegExp(&quot;^[a-zA-Z]+([a-zA-Z0-9_.][a-zA-Z0-9_]+)+@([a-zA-Z0-9]+([.a-zA-Z0-9_])+)$&quot;.'i');&lt;/pre&gt;
The test code now does not permit '*' in the email ID.
</content>
 </entry>
 
 <entry>
   <title>Interesting recursion problem</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/11/12/interesting-recursion-problem/"/>
   <updated>2009-11-12T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2009/11/12/interesting-recursion-problem</id>
   <content type="html">Found this interesting recursion problem on StackOverflow.
&lt;a href=&quot;http://stackoverflow.com/questions/1705374/how-to-capture-a-string-into-variable-in-a-recursive-function&quot;&gt;http://stackoverflow.com/questions/1705374/how-to-capture-a-string-into-variable-in-a-recursive-function&lt;/a&gt;
&lt;pre class=&quot;brush: cpp&quot;&gt;int resultSize( vector&amp;lt; vector&amp;lt;string&amp;gt; &amp;gt; vector ){
    int x=1;
    for( int i=0; i&amp;lt;vector.size(); i++ )
       x *= vector[i].size();
    return x;
}

vector&amp;lt;string&amp;gt; enumAll(const vector&amp;lt; vector &amp;gt; allVecs ){
    //__ASSERT( allVecs.size() &amp;gt; 0 );
    vector result;
    if( allVecs.size() == 1 ){
        for( int i=0 ; i&amp;lt; allVecs[0].size(); i++){
	    result.push_back( allVecs[0][i] );
        }
    return result;
    }
    const vector&amp;lt; vector&amp;lt;string&amp;gt; &amp;gt; tempVector(allVecs.begin()+1, allVecs.end() );
    vector tempResult = enumAll( tempVector );// recurse
    int size = resultSize( tempVector );
    for( int i=0; i&amp;lt;allVecs[0].size(); i++ ){
       for( int j=0; j&amp;lt;size; j++){
          //enumAll on each tempVector is called multiple times. Can be optimzed.
          result.push_back( allVecs[0][i] + tempResult[j] );
        }
    }
}&lt;/pre&gt;
Also see the other solution by Young which solves this problem using tail-recursion.

It is interesting problem in itself to transform a plain recursion into tail-recursion. The general method to do this is to eliminate the need for any processing post recursion. For this, one needs to pass all the data as parameters. This is pretty obvious when comparing the two solutions. Plain recursion takes only one parameter, while tail-recursion takes a lot more parameters.

In my view, the advantage of plain recursion is pedagogy: it is very easy to follow the algorithm - the divide and conquer is so very obvious! With tail-recursion, we manually do a lot of book-keeping. This part is not so obvious in the present example.

Plain recursion:
&lt;a href=&quot;http://stackoverflow.com/questions/1705374/how-to-capture-a-string-into-variable-in-a-recursive-function/1723192#1723192&quot;&gt;http://stackoverflow.com/questions/1705374/how-to-capture-a-string-into-variable-in-a-recursive-function/1723192#1723192&lt;/a&gt;

Tail Recursion:
&lt;a href=&quot;http://stackoverflow.com/questions/1705374/how-to-capture-a-string-into-variable-in-a-recursive-function/1707808#1707808&quot;&gt;http://stackoverflow.com/questions/1705374/how-to-capture-a-string-into-variable-in-a-recursive-function/1707808#1707808
&lt;/a&gt;
</content>
 </entry>
 
 <entry>
   <title>Stackoverflow Teacher Badge</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/11/11/stackoverflow-teacher-badge/"/>
   <updated>2009-11-11T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2009/11/11/stackoverflow-teacher-badge</id>
   <content type="html">Yay! Just got the stackoverflow teacher badge! Yay!
&lt;iframe src=&quot;http://stackoverflow.com/users/flair/162471.html&quot; frameborder=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;no&quot; width=&quot;210&quot; height=&quot;60&quot;&gt;&lt;/iframe&gt;
</content>
 </entry>
 
 <entry>
   <title>Metaprogramming is not magic</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/11/03/metaprogramming-is-not-magic/"/>
   <updated>2009-11-03T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2009/11/03/metaprogramming-is-not-magic</id>
   <content type="html">I have always wondered why I like programming languages like Lisp etc. Sort of found an answer here:

&quot;Metaprogramming is not magic. It is simply another tool in the prepared programmer's toolbox. It's awfully nice when that tool is also part of the programming language we use. Otherwise, we are limited in what we can say conveniently in our programs by the somewhat arbitrary lines drawn between real and meta.&quot;

Source: &lt;a href=&quot;http://www.cs.uni.edu/~wallingf/blog/archives/monthly/2009-11.html#e2009-11-02T18_59_40.htm&quot;&gt;http://www.cs.uni.edu/~wallingf/blog/archives/monthly/2009-11.html#e2009-11-02T18_59_40.htm&lt;/a&gt;
</content>
 </entry>
 
 <entry>
   <title>What I read, am reading and want to read</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/10/12/what-i-readam-reading-and-want-to-read/"/>
   <updated>2009-10-12T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2009/10/12/what-i-readam-reading-and-want-to-read</id>
   <content type="html">This is a list for my reference. It will be a &quot;live&quot; post and act as my SPOC for reading.

In progress:
- Beautiful Code
- Code Complete 2
- The Pragmatic programmer
- Structure and Interpretation of Computer programs

Done:
- The Lost Symbol
- The mythical man-month
- Joel on Software
- More Joel on Software
- make (O'Rielly)

Wishlist:
- Coders at work by Peter Siebel
- The Innovator's Dilemma
- Elements of Style
- Godel, Escher &amp;amp; Bach
- The story of Civilization by Will &amp;amp; Durant
- Paradigms Of Artificial Intelligence Programming by Peter Norvig
- The design of everyday things
- Founders at work
- The Brothers Karamazov
</content>
 </entry>
 
 <entry>
   <title>Why hitting 'reload' speeds up page rendering</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/08/17/why-hitting-reload/"/>
   <updated>2009-08-17T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2009/08/17/why-hitting-reload</id>
   <content type="html">This is a response to David Pogues' tweet question: &lt;a href=&quot;http://twitter.com/Pogue/status/3332520918&quot; target=&quot;_blank&quot;&gt;http://twitter.com/Pogue/status/3332520918 &lt;/a&gt;

The 'rendering' or 'drawing-model' of a browser is based on HTML. Each visual in HTML element is defined by a HTML 'tag'. For browsers to display/render the page, they need some a certain amount of HTML tags to be available. So when you are faced with a blank page, it means that the browser is waiting for the HTML.

Now, when you hit the reload button, remember that a part of the page has already been downloaded to the browser. Instead of discarding this info, the browser merely spits it out onto the window (thus displaying the page partially) and requests for the page once again. Now that a part of the page is already displayed (even if only partially), the user believes that the page has rendered rather quickly.

If you hit the stop button, however, you will be stuck with a blank page. By hitting stop, you are telling the browser 'dont bother to try and render this page'. By hitting reload, you are still showing interest. Another way to observe progressive rendering is while the page is loading ( the browser shows a blank or a partially rendred page), go to File &amp;gt; Work Offline (in Firefox). You will see the page quickly render the partial page that was succuessfully downloaded. It is a sort of 'best-effort' service.

&lt;strong&gt;Related concept: &lt;/strong&gt;Progressive rendering. Jeff Atwood's take on the 'Lost Art of Progressive Rendering': &lt;a href=&quot;http://www.codinghorror.com/blog/archives/000444.html&quot;&gt;http://www.codinghorror.com/blog/archives/000444.html&lt;/a&gt;
This means that browsers don't need to really download the entire page before it can be displayed to the user. But, this depends on how the page has been desinged: &lt;a href=&quot;http://www.vbulletin.org/forum/showthread.php?t=161099 &quot; target=&quot;_blank&quot;&gt;http://www.vbulletin.org/forum/showthread.php?t=161099&lt;/a&gt;.
</content>
 </entry>
 
 <entry>
   <title>Deleting files</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/08/06/deleting-files/"/>
   <updated>2009-08-06T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2009/08/06/deleting-files</id>
   <content type="html">In my quest for speeding up automated, no-questions asked deletion of the corrupt dev SDKs (which go upto 25 GB), I discovered this:
&lt;code&gt;
&amp;gt; rmdir /S /Q .
&lt;/code&gt;
I even timed it this time: about an hour to delete a 25 GB SDK. And no questions asked. The above command does not write any output to the console! While this can be quite disconcerting initially, it does save a lot of computation time and resources ( I/O is the most expensive operation, remember? ).

Earlier on, I used to use &amp;gt; del /s /f /q *. . But that used to delete only the files and not the directories. Deleting the directories manually was another pain. Also, this command had the habit of “informing the user” of what it is deleting – and would take about 3 to 4 hours!

Do let me know if you find some faster way to delete the SDK!!
</content>
 </entry>
 
 <entry>
   <title>HN Submit button</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/07/12/hn-submit-button/"/>
   <updated>2009-07-12T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2009/07/12/hn-submit-button</id>
   <content type="html">I have been attempting to add &quot;share&quot; functionality to my website. Initially, I used the Digg button (&lt;a href=&quot;http://digg.com/tools/integrate&quot; target=&quot;_blank&quot;&gt;http://digg.com/tools/integrate&lt;/a&gt;) and Reddit button (&lt;a href=&quot;http://www.reddit.com/button&quot; target=&quot;_blank&quot;&gt;http://www.reddit.com/button&lt;/a&gt;).

Next I wanted to add &lt;a title=&quot;Hacker News&quot; href=&quot;http://news.ycombinator.com/news&quot; target=&quot;_blank&quot;&gt;Hacker News&lt;/a&gt; button. But there was none. But then again, there was this bookmarklet (&lt;a href=&quot;http://ycombinator.com/bookmarklet.html&quot; target=&quot;_blank&quot;&gt;http://ycombinator.com/bookmarklet.html&lt;/a&gt;). So I created the required HTML to get the required functionality, just using the bookmarklet:
&lt;pre class=&quot;brush: html&quot;&gt;&amp;lt;a href=&quot;javascript:window.location=%22http://news.ycombinator.com/submitlink?u=%22+encodeURIComponent(document.location)+%22&amp;amp;t=%22+encodeURIComponent(document.title)&quot;&amp;gt; Submit &amp;lt;/a&amp;gt;&lt;/pre&gt;
Then I thought of making a Hacker News submit button, just like Reddit and Digg. So I decided to read the sources and build the HN button based on that.  Man, Digg's JS was such mess (yes, it was the minified version, but still, far too many lines of code). Reddit's was a great deal simpler, easy-to-read and intuitive. Check them out: &lt;a href=&quot;http://digg.com/tools/diggthis.js&quot; target=&quot;_blank&quot;&gt;http://digg.com/tools/diggthis.js&lt;/a&gt; and &lt;a href=&quot;http://www.reddit.com/button.js&quot; target=&quot;_blank&quot;&gt;http://www.reddit.com/button.js.&lt;/a&gt;

So I modelled the HN button based on Reddits' Javascript. Here it is: &lt;a href=&quot;http://saicharan.in/work/hn.js&quot; target=&quot;_blank&quot;&gt;http://saicharan.in/work/hn.js&lt;/a&gt; OR &lt;a href=&quot;https://github.com/scharan/Goodies/blob/master/hn.js&quot; target=&quot;_blank&quot;&gt;https://github.com/scharan/Goodies/blob/master/hn.js&lt;/a&gt;

To use it, simply include the following line:
&lt;pre class=&quot;brush:html&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://saicharan.in/work/hn.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;
Here is the code:
&lt;script type=&quot;text/javascript&quot; src=&quot;http://gist-it.appspot.com/github/scharan/Goodies/raw/master/hn.js&quot;&gt;&lt;/script&gt;

&lt;strong&gt;Update:&lt;/strong&gt; This article briefly made it to the front page of HN! I saw it at #19!. Here are the comments from HN: &lt;a title=&quot;HN Button &lt;&lt; Comments from HN&quot; href=&quot;http://news.ycombinator.com/item?id=700053&quot; target=&quot;_blank&quot;&gt;http://news.ycombinator.com/item?id=700053&lt;/a&gt;
</content>
 </entry>
 
 <entry>
   <title>GMail: Automatic Message Translation</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/07/12/gmail-autmatic-message-translation/"/>
   <updated>2009-07-12T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2009/07/12/gmail-autmatic-message-translation</id>
   <content type="html">This morning GMail surprised me yet again. Opening an email, I saw a new functional bar: Translate this message: From:&amp;lt;Language&amp;gt; To:&amp;lt;Language&amp;gt;.

I tried out the machine translation from English to Hindi. It was amazing. Took under 2 second (yes, to send the request to the servers, do the translation and to render the translated text on the browser window).

There was also that pretty helpful (right-)side bar: &quot;Translate this conversation&quot;.
Pretty neat translation. And very seamless user experience too! Man I am blown away.
</content>
 </entry>
 
 <entry>
   <title>Redirecting blogger traffic</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/07/06/redirecting-blogger-traffic/"/>
   <updated>2009-07-06T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2009/07/06/redirecting-blogger-traffic</id>
   <content type="html">Having moved to my own domain, I was monitoring traffic to my site on Google Webmasters site. I notices that Google still returned results from my blogger-hosted domain. I wanted people to be redirected to my new domain.

Here is what I did:
&lt;ul&gt;
	&lt;li&gt; Blogger &amp;gt; Settings &amp;gt; Publishing &amp;gt; Advanced Settings. Chose to redirect to my sub-domain blog.saicharan.in&lt;/li&gt;
	&lt;li&gt;In my domain management cpanel &amp;gt; Subdomains, created blog.saicharan.in and added the home directory as my blog directory.&lt;/li&gt;
	&lt;li&gt;Using the wordpress admin interface, I changed the structure of my blog permalinks to be of blog/year/month/date/title.&lt;/li&gt;
&lt;/ul&gt;
Now come the interesting part. While wordpress provided me text to add in my .htaccess, it did not provide the code for redirection. Google helped me add the following line in my .htaccess file that did the trick!

&lt;code&gt; RedirectMatch permanent ^/[0-9]{4}/[0-9]{2}/([a-z0-9]+) http://saicharan.in/blog/$1 &lt;/code&gt;

That did the trick. Thanks to BlogBloke!

References:
&lt;a href=&quot;http://www.blogbloke.com/migrating-redirecting-blogger-wordpress-htaccess-apache-best-method/&quot; target=&quot;_blank&quot;&gt;http://www.blogbloke.com/migrating-redirecting-blogger-wordpress-htaccess-apache-best-method/&lt;/a&gt;
</content>
 </entry>
 
 <entry>
   <title>Default runlevel on Ubuntu</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/07/01/default-runlevel-on-ubuntu/"/>
   <updated>2009-07-01T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2009/07/01/default-runlevel-on-ubuntu</id>
   <content type="html">Changing the default runlevel on ubuntu was quite different from that of RedHat/Fedora. Ubuntu has no inittab. Instead, I had to rename the S30gdm* and S30kdm* files in /etc/rc2.d/ to KS30gdm* and KS30kdm* (the renaming is just like in fedora).
</content>
 </entry>
 
 <entry>
   <title>.bash_profile in ubuntu</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/07/01/bash_profile-in-ubuntu/"/>
   <updated>2009-07-01T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2009/07/01/bash_profile-in-ubuntu</id>
   <content type="html">I updated my .bash_profile in my ubuntu instance but the changes were not getting reflected in my shell.

A bit of searching revealed that I have to instead add a new .sh file in /etc/profile.d/ that contained the necessary aliases and updates to my PATH etc. It appears like Ubuntu auto runs all .sh files in /etc/profile.d/ whenever a login session is created.

.bash_profile was a lot more personal customization. Wonder how I could this personal customization in ubuntu. Any one any ideas? Let us know via comments.

@update: Thanks to manoj for pointing out .bashrc (had forgotton about it). .bashrc does help with personalizing the environment.
</content>
 </entry>
 
 <entry>
   <title>Ubuntu sshd</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/06/30/ubuntu-sshd/"/>
   <updated>2009-06-30T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2009/06/30/ubuntu-sshd</id>
   <content type="html">&lt;code&gt;#sudo apt-get install openssh-server&lt;/code&gt;
Done! Simple as that.

Ref: &lt;a href=&quot;http://www.cyberciti.biz/tips/howot-install-ubuntu-linux-ssh-server.html&quot; target=&quot;_blank&quot;&gt;http://www.cyberciti.biz/tips/howot-install-ubuntu-linux-ssh-server.html&lt;/a&gt;
</content>
 </entry>
 
 <entry>
   <title>ld terminated with signal 9</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/06/30/ld-terminated-with-signal-9/"/>
   <updated>2009-06-30T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2009/06/30/ld-terminated-with-signal-9</id>
   <content type="html">Been trying to build substantial amout of code on linux vmware image. Three times the build has failed with &lt;strong&gt;&quot;ld terminated with signal 9&quot;.&lt;/strong&gt; A simple google revlealed that I might have run out of swap space!

So I run &lt;strong&gt;sudo swaon -s &lt;/strong&gt;and get nothing atall!

Then a google for &quot;&lt;strong&gt;turning on swap space&quot;&lt;/strong&gt; got me to do the following:

&lt;code&gt; # sudo dd if=/dev/zero of=/moreswap bs=1M count=512 &lt;/code&gt;
That creates a 512 MB file named moreswap filled with zeros.

&lt;code&gt;
# sudo mkswap /moreswap
# sudo swapon /moreswap
&lt;/code&gt;
Appended the following line to &lt;code&gt; /etc/fstab &lt;/code&gt; to make this change permanent.
&lt;code&gt; /moreswap none swap sw 0 0 &lt;/code&gt;

Worked like a charm!

Ref: &lt;a href=&quot;http://www.linux.com/archive/feature/113956&quot; target=&quot;_blank&quot;&gt;http://www.linux.com/archive/feature/113956&lt;/a&gt;
</content>
 </entry>
 
 <entry>
   <title>Hello WordPress! My new home online!</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/06/19/hello-world/"/>
   <updated>2009-06-19T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2009/06/19/hello-world</id>
   <content type="html">Migrated to Wordpress. In about 5 seconds. Yup. I am as impressed with the 5-second install as I am with this import feature.

The Dashboard &amp;gt; Tools &amp;gt; Import &amp;gt; Blogger option is fantastic. Once with WordPress, I guess I will stay with it for a real long time!

Three cheers to WordPress :)
</content>
 </entry>
 
 <entry>
   <title>CVS, ViewVC integration with Google Prettify</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/03/19/cvs-viewvc-integration-with-google-prettify/"/>
   <updated>2009-03-19T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2009/03/19/cvs-viewvc-integration-with-google-prettify</id>
   <content type="html">Been wanting to do this for long: browse SVN/CVS via a web interface. Ofcourse, it is a solved problem. But I wanted this set up for my own local CVS repos.&lt;br /&gt;&lt;br /&gt;ViewVC to the rescue.&lt;br /&gt;&lt;br /&gt;Prerequisites: Python2.x, Apache2.0+, CVS, CVS/SVN Python Bindings.&lt;br /&gt;&lt;br /&gt;Detailed installation process:&lt;br /&gt;1. ViewVC:&lt;br /&gt;I have CVSNT on my workstation. So I downloaded ViewVC-1.0.7  from &lt;a href=&quot;http://www.viewvc.org/download.html&quot;&gt;http://www.viewvc.org/download.html&lt;/a&gt; (spcecifically, version 1.0.7 from&lt;a href=&quot;http://viewvc.tigris.org/servlets/ProjectDocumentList?folderID=6004&quot;&gt; http://viewvc.tigris.org/servlets/ProjectDocumentList?folderID=6004&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;To install ViewVC, first unpack it to some folder, run 'python viewvc-install' from the command line, with the current directory as the unpacked directory. I chose all the defaults values when prompted.&lt;br /&gt;&lt;br /&gt;Next, I configured viewvc to pick up my repositories by editing the &lt;install-dir&gt;/viewvc.conf file. I changed the cvs_roots and cvsnt_exe_path variables.&lt;br /&gt;&lt;br /&gt;2. SVN Python bindings for ViewVC:&lt;br /&gt;ViewVC is written in python and &lt;a href=&quot;http://www.blogger.com/tigris.org&quot;&gt;tigris.org&lt;/a&gt; provides python bindings to talk to the CVS/SVN repository. This can be got from &lt;a href=&quot;http://subversion.tigris.org/getting.html#windows%20http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100&quot;&gt;subversion.tigris.org Documents Area.&lt;/a&gt; Be sure to download the version appropirate for your version of python. Simply run the installer. You will be asked to point the installer to the Apache installation directory.&lt;br /&gt;&lt;br /&gt;3. mod_python:&lt;br /&gt;You will need to download the mod_python for Apache if you dont have it already. You can check the &lt;apache-install-dir&gt;/modules/ directory. Look for mod_python.so file. If it is not here, download it from here: &lt;a href=&quot;http://www.apache.org/dist/httpd/modpython/win/3.3.1/&quot;&gt;http://www.apache.org/dist/httpd/modpython/win/3.3.1/&lt;/a&gt; I used this: &lt;a href=&quot;http://www.apache.org/dist/httpd/modpython/win/3.3.1/mod_python-3.3.1.win32-py2.5-Apache2.2.exe&quot;&gt;http://www.apache.org/dist/httpd/modpython/win/3.3.1/mod_python-3.3.1.win32-py2.5-Apache2.2.exe&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;4. Configuring Apache.&lt;br /&gt;Edit the httpd.conf file to add the following:&lt;br /&gt;a) &lt;code&gt;LoadModule python_module modules/mod_python.so&lt;/code&gt;&lt;br /&gt;b) &lt;code&gt;ScriptAlias /viewcvs &quot;C:/Program Files/viewvc-1.0.7/bin/mod_python/viewvc.py&quot; &lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;location&amp;gt;&lt;br /&gt;AddHandler python-program .py&lt;br /&gt;PythonPath &quot;[r'c:\\Program Files\\viewvc-1.0.7\\bin\\mod_python']+sys.path&quot;&lt;br /&gt;PythonHandler apache&lt;br /&gt;PythonDebug On&lt;br /&gt;AddDefaultCharset UTF-8&lt;br /&gt;&amp;lt/location&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;NOTE: The above will work if you have chosen the defaults while installing ViewVC.&lt;br /&gt;&lt;br /&gt;Done! Goto: http://your-machine/viewcvs.&lt;br /&gt;&lt;br /&gt;However, I got an error when I did this: &quot;ImportError: No module named apache&quot;&lt;br /&gt;&lt;br /&gt;So, I tried the alternate approach:&lt;br /&gt;A) Copy &amp;lt;viewvc-install-dir&amp;gt;/bin/cgi/*.cgi to &amp;lt;apache-install-dir&amp;gt;/cgi-bin/&lt;br /&gt;B) Add the following line to the &amp;lt;apache-install-dir&amp;gt;/conf/httpd.conf file:&lt;br /&gt;ScriptAlias /viewvc /cgi-bin/viewvc.cgi&lt;br /&gt;C) Restart Apache.&lt;br /&gt;&lt;br /&gt;Done! Go to: http://localhost/cgi-bin/viewvc.cgi&lt;br /&gt;It works for me!! I wish I could fix the other method too.&lt;br /&gt;&lt;br /&gt;Good. Now that it works, I should be happy. But I was not :( When I 'view' a source file, it does not do the syntax highlighting (I use CVS with C++/C projects and I was not getting the syntax highlighting for these languages). So what do I do? Wanted to integrate some open source syntax highlighters. I dug thru' the code of viewvc.py and from there went on to find the place where the markup is done. (search the code base for view_markup function. I use &lt;a href=&quot;http://sourcenav.sourceforge.net/download.html&quot;&gt;RedHat sourcenavigator&lt;/a&gt; to browse and read code). They seemed to be using some PHP code to get the job done. However, I remembered I was very happy with Google's Prettify (any code you browse on code.google.com has probably used Google prettify to syntax highlight the code). So I decided to use it.&lt;br /&gt;&lt;br /&gt;Also, using the Google Pettify is quite simple:&lt;br /&gt;A) Add the following lines to the &quot;head&quot; section:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;link href=&quot;[docroot]/prettify/prettify.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot; /&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;[docroot]/prettify/prettify.js&quot; &amp;gt; &amp;lt; /script &amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;B) Add &quot;onload=prettyPrint()&quot; attribute to the &quot;body&quot; tag.&lt;br /&gt;C) Put your code in &amp;lt;pre class=&quot;prettyprint&quot;&amp;gt; or &amp;lt;code class=&quot;prettyprint&quot; &amp;gt;tags.&lt;br /&gt;D) Done!&lt;br /&gt;&lt;br /&gt;It took quite some reading of the ViewVC python code to figure out simple ways to do it. Here is my story:&lt;br /&gt;I read thru the ViewVC python code and found that there was a header and footer being used for each page. Then there was a template for markup and each of the different views that ViweVC supports. Then I stumbled upon the EZT class (EaZyTemplates). Just what I needed to integrate with Google Prettify!! So I found the templates being loaded by ViewVC. They are loacated under &amp;lt;viewvc-install-dir&amp;gt;/templates/. Here are my modifications:&lt;br /&gt;1. Download Google Prettify from: http://code.google.com/p/google-code-prettify/&lt;br /&gt;2. Unzip it. Copy the src folder to &amp;lt;viewvc-install-dir&amp;gt;/templates/docroot/&lt;br /&gt;3. I renamed the src folder to prettify (just to help me later)&lt;br /&gt;4. Add the following lines to &amp;lt;viewvc-install-dir&amp;gt;/templates/include/header.ezt, in the &quot;head&quot; section:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;link href=&quot;[docroot]/prettify/prettify.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot;/&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;%5Bdocroot%5D/prettify/prettify.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;also, modify the body tag to: &amp;lt;body onload=&quot;prettyPrint()&quot;&amp;gt;&lt;br /&gt;5. Modify &amp;lt;viewvc-install-dir&amp;gt;/templates/markup.ezt:&lt;br /&gt;Change this: &amp;lt;div id=&quot;vc_markup&quot;&amp;gt;&amp;lt;pre&amp;t;[markup]&amp;lt;/pre&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;to: &amp;lt;div id=&quot;vc_markup&quot;&amp;gt;&amp;lt;pre class=&quot;prettyprint&quot;&amp;gt;[markup]&amp;lt;/pre&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;Done!.&lt;br /&gt;&lt;br /&gt;Have fun! And post your questions as comments.&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>NS2 nam error</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/03/02/ns2-nam-error/"/>
   <updated>2009-03-02T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2009/03/02/ns2-nam-error</id>
   <content type="html">I have been bothered by this error while running ns/nam for a long time now. Finally found that tk needed patching :( Here is the error that I got and the solution that helped me fix it.&lt;br /&gt;&lt;br /&gt;Error:&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;[root@localhost]# nam: &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;[code omitted because of length]&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;: no event type or button # or keysym&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;while executing&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;&quot;bind Listbox &lt;mousewheel&gt; {&lt;/mousewheel&gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;%W yview scroll [expr {- (%D / 120) * 4}] units&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;}&quot;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;invoked from within&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;&quot;if {[tk windowingsystem] eq &quot;classic&quot; || [tk windowingsystem] eq &quot;aqua&quot;} {&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;bind Listbox &lt;mousewheel&gt; {&lt;/mousewheel&gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;%W yview scroll [expr {- (%D)}] units&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;}&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;bind Li...&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And, I got the solution to this on:&lt;a href=&quot;http://forums.fedoraforum.org/showthread.php?t=206795&quot;&gt; http://forums.fedoraforum.org/showthread.php?t=206795.&lt;/a&gt;&lt;br /&gt;Essentially you need to patch tk8.4.18 with the patches from: &lt;a href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=225999&quot;&gt;http://bugs.gentoo.org/show_bug.cgi?id=225999&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Details of how to patch are available at: &lt;a href=&quot;http://forums.fedoraforum.org/showpost.php?s=a2bb89875669ff26ed61cd371399a517&amp;amp;p=1131049&amp;amp;postcount=3&quot;&gt;http://forums.fedoraforum.org/showpost.php?s=a2bb89875669ff26ed61cd371399a517&amp;amp;p=1131049&amp;amp;postcount=3&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Google default language</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/03/02/google-default-language/"/>
   <updated>2009-03-02T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2009/03/02/google-default-language</id>
   <content type="html">Each time I use Google from office, Google responds in Thai. I fixed that by going to &lt;a href=&quot;www.google.com/ncr&quot;&gt;www.google.com/ncr&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Now onwards, I hope to always get results in English :) Btw, if you happen to clear your cookies, you should go to &lt;a href=&quot;www.google.com/ncr&quot;&gt;www.google.com/ncr&lt;/a&gt; again.&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>My Reading List</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2009/02/17/my-reading-list/"/>
   <updated>2009-02-17T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2009/02/17/my-reading-list</id>
   <content type="html">Very frequently my friends ask for my reading list. So I decided to follow the &lt;a href=&quot;http://en.wikipedia.org/wiki/Don%27t_repeat_yourself&quot;&gt;DRY&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Single_responsibility_principle&quot;&gt;SRP&lt;/a&gt; principles to help them and help myself. Hence this blog entry. Here goes:

My favourite tech blogs/sites:

Programming blogs:
1. &lt;a href=&quot;http://codinghorror.com/&quot;&gt;codinghorror.com&lt;/a&gt;
2. &lt;a href=&quot;http://blog.objectmentor.com/&quot;&gt;blog.objectmentor.com&lt;/a&gt; (this along with its original site at &lt;a href=&quot;http://butunclebob.com/&quot;&gt;butunclebob.com&lt;/a&gt;)
3. &lt;a href=&quot;http://thedailywtf.com/&quot;&gt;thedailywtf.com&lt;/a&gt;
4. &lt;a href=&quot;http://c2.com/&quot;&gt;c2.com&lt;/a&gt; --&amp;gt; Advanced stuff. Really interesting though. It takes some time to follow their style of expression - but is definitely worth a shot.
5. &lt;a href=&quot;http://www.reddit.com/&quot;&gt;Reddit.com&lt;/a&gt; In particular, &lt;a href=&quot;http://www.reddit.com/r/programming/&quot;&gt;http://www.reddit.com/r/programming/&lt;/a&gt; &amp;amp; &lt;a href=&quot;http://www.reddit.com/r/technology/&quot;&gt;http://www.reddit.com/r/technology/&lt;/a&gt;

Programming + Technology + Perspectives (my favourite pass-times):
0. &lt;a title=&quot;Hacker News&quot; href=&quot;http://news.ycombinator.com&quot; target=&quot;_blank&quot;&gt;news.ycombinator.com&lt;/a&gt;
1. &lt;a href=&quot;http://steve-yegge.blogspot.com/&quot; target=&quot;_blank&quot;&gt;steve-yegge.blogspot.com&lt;/a&gt;
2. &lt;a href=&quot;http://paulgraham.com/&quot; target=&quot;_blank&quot;&gt;paulgraham.com&lt;/a&gt;
3. &lt;a href=&quot;http://joelonsoftware.com/&quot; target=&quot;_blank&quot;&gt;joelonsoftware.com&lt;/a&gt;
4. &lt;a href=&quot;http://norvig.com/&quot; target=&quot;_blank&quot;&gt;norvig.com&lt;/a&gt;
5. &lt;a href=&quot;http://googleblog.blogspot.com/&quot; target=&quot;_blank&quot;&gt;googleblog.blogspot.com &lt;/a&gt;
6. &lt;a href=&quot;http://ted.com/&quot; target=&quot;_blank&quot;&gt;TED.com&lt;/a&gt; - My personal favorite for advances in human thought and creativity!

Tech News:
1. &lt;a href=&quot;http://digg.com/&quot;&gt;digg.com&lt;/a&gt;
2. &lt;a href=&quot;http://slashdot.org/&quot;&gt;slashdot.org&lt;/a&gt;

Management: ( Yeah, I am interested in &lt;span style=&quot;font-style: italic;&quot;&gt;Genuine&lt;/span&gt; management! )
1. &lt;a href=&quot;http://sethgodin.typepad.com/&quot;&gt;sethgodin.typepad.com&lt;/a&gt;

PS: I will update this post as my reading list changes (Yes. that includes additions &lt;span style=&quot;font-weight: bold;&quot;&gt;and&lt;/span&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt; &lt;/span&gt;deletions as well. For deletions, I will keep the links, but the text will be struck off like &lt;del&gt;this&lt;/del&gt;).
&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp;amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Creating DLLs with MinGW</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2008/09/17/creating-dlls-with-mingw/"/>
   <updated>2008-09-17T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2008/09/17/creating-dlls-with-mingw</id>
   <content type="html">This morning, I was asked how to use existing C code in C++ code. So I took the route of converting the C code into a DLL and then linking to it from the C++ code. So I had to figure out how to do this using MinGW on Windows. Here is an account of my experiments (distilled ofcourse!):&lt;br /&gt;There are three things you need to do:&lt;br /&gt;1. Convert the existing into a DLL.&lt;br /&gt;2. Include the header of the DLL in the sources where you wish to use the library.&lt;br /&gt;3. Build your code, linking against your DLL.&lt;br /&gt;&lt;br /&gt;Here are the steps:&lt;br /&gt;a) For this, you need to add the following code to the header file containing the declarations of the functions that are to be used:&lt;br /&gt;&lt;br /&gt;#ifdef __cplusplus&lt;br /&gt;#define cppfudge &quot;C&quot;&lt;br /&gt;#else&lt;br /&gt;#define cppfudge&lt;br /&gt;#endif&lt;br /&gt;&lt;br /&gt;#ifdef BUILD_DLL&lt;br /&gt;// the dll exports&lt;br /&gt;#define EXPORT __declspec(dllexport)&lt;br /&gt;#else&lt;br /&gt;// the exe imports&lt;br /&gt;#define EXPORT extern cppfudge __declspec(dllimport)&lt;br /&gt;#endif&lt;br /&gt;&lt;br /&gt;b) Front of each function that you want to use from the DLL, prepend the word EXPORT. For example:&lt;br /&gt;EXPORT int hello(void);&lt;br /&gt;&lt;br /&gt;c) Create the create the object code using the following command:&lt;br /&gt;&gt;gcc -c -DBUILD_DLL TestDLL.c, where TestDLL.c is the source file.&lt;br /&gt;&lt;br /&gt;d) Next, use the object code to create the DLL with the following command:&lt;br /&gt;&gt;gcc -shared -o TestDLL.dll TestDLL.o -Wl,--out-implib,TestDLL.a, Note that TestDLL has to be replaced with whatever is the actual DLL name.&lt;br /&gt;&gt;Creating library file: TestDLL.a (This is the output of the command)&lt;br /&gt;&lt;br /&gt;e) Now, compile the actual file (note that this file should include the TestDLL.h header)&lt;br /&gt;&gt;gcc Main.cpp -o Main.exe TestDLL.dll&lt;br /&gt;&lt;br /&gt;f) Done! Run the executable:&lt;br /&gt;&gt;Main.exe&lt;br /&gt;Hello World!&lt;br /&gt;&lt;br /&gt;&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://sites.google.com/site/scharan20/Home/DLL.zip?attredirects=0&quot;&gt;Here &lt;/a&gt;are the files that I have used to test these things. I have tested them on Windows XP using MinGW32. I have used the following link for reference: http://www.emmestech.com/moron_guides/moron2.html&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Global C++ Exception Handler</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2008/07/29/global-c-exception-handler/"/>
   <updated>2008-07-29T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2008/07/29/global-c-exception-handler</id>
   <content type="html">Just found out that many C++ compilers provide the &lt;code&gt;std::set_terminate() &lt;/code&gt;function for catching any unanticipated exceptions. Read here for more: &lt;a href=&quot;http://www.extinguishedscholar.com/wpglob/?p=176&quot;&gt;http://www.extinguishedscholar.com/wpglob/?p=176&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>C/C++ resources online</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2008/06/11/cc-resources-online/"/>
   <updated>2008-06-11T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2008/06/11/cc-resources-online</id>
   <content type="html">The following is a continually updated list of my personal favorites for C/C++ reference:&lt;br /&gt;&lt;br /&gt;C:&lt;br /&gt;C-FAQs: &lt;a href=&quot;http://c-faq.com/index.html&quot;&gt;http://c-faq.com/index.html&lt;/a&gt;&lt;br /&gt;Overflows in C: &lt;a href=&quot;http://www.fefe.de/intof.html&quot;&gt;http://www.fefe.de/intof.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;C++:&lt;br /&gt;Stanford Library: &lt;a href=&quot;http://cslibrary.stanford.edu/&quot;&gt;http://cslibrary.stanford.edu&lt;/a&gt;&lt;br /&gt;C++ Coding Conventions(CERN):  &lt;a href=&quot;http://pst.web.cern.ch/PST/HandBookWorkBook/Handbook/Programming/CodingStandard/c++standard.pdf&quot;&gt;http://pst.web.cern.ch/PST/HandBookWorkBook/Handbook/Programming/CodingStandard/c++standard.pdf&lt;/a&gt;&lt;br /&gt;C++ Casting: &lt;a href=&quot;http://www.cs.umd.edu/class/sum2003/cmsc311/Notes/BitOp/cast.html&quot;&gt;http://www.cs.umd.edu/class/sum2003/cmsc311/Notes/BitOp/cast.html&lt;/a&gt; &amp;amp; &lt;a href=&quot;http://www.nacs.uci.edu/dcslib/sun/compilers/c-plusplus/c%2B%2B_ug/Cast.new.doc.html&quot;&gt;http://www.nacs.uci.edu/dcslib/sun/compilers/c-plusplus/c%2B%2B_ug/Cast.new.doc.html&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Wrong Characters being Displayed</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2008/06/10/wrong-characters-being-displayed/"/>
   <updated>2008-06-10T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2008/06/10/wrong-characters-being-displayed</id>
   <content type="html">Had this problem with my keyboard layout getting changed just too often. The problem was as follows: Off and on, my keyboard was behaving erratically. It would mis-behave and then come back to normal. I suspected a change of keyboard layout - I had this problem earlier on my Linux Box and RI pointed out that my keyboard layout was UK English!&lt;br /&gt;&lt;br /&gt;So, I too started off searching google for this, and things were mostly pointing to IME/Languages. When I opened the Regional Language Options in the Control Panel, the language bar popped up. I noticed that the language was set to Finnsh. Once I changed that to English, another icon appeared next to it - the Keyboard icon. It was in Finnish. So I changed it to English and all was well. But then I was wondering how these settings were changing so often. SO I went to the Regional Language Options in the Control Panel. Went to the languages tab and clicked on the Details button. From there, I selected the Finnish Language and Keyboard settings. At the bottom there is a Key Settings button. That was the major culprit. Click that button and you will see that Alt+Shift is assigned to &quot;Switch between input Languages&quot; option. I simply removed that key-binding to avoid un-intended switching between languages.&lt;br /&gt;&lt;br /&gt;Also, I use the alt+shift combo often in my work - so that was the probem! Now we know! So change your keyboard settings and get back to efficient mode.&lt;br /&gt;&lt;br /&gt;One last advice. If you ever face such a problem, make the language bar visible: Control Panel &gt; Regional Language Options &gt; Details &gt; Language Bar Button &gt; Show Language Bar. Once you see the language bar, you can know at once if your keyboard layout is the problem.&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>ThinkPad T60 TouchPad Scroll in Office 2007</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2008/06/10/thinkpad-t60-touchpad-scroll-in-office-2007/"/>
   <updated>2008-06-10T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2008/06/10/thinkpad-t60-touchpad-scroll-in-office-2007</id>
   <content type="html">Found this link on Google. It was reported as on the day of posting as a possibly problematic site. But I went on and found the info in that site very useful. So here is the link:&lt;br /&gt;&lt;a href=&quot;http://www.lvlolvlo.net/2007/02/11/office-2007-on-a-thinkpad-ultranav-support-for-scrolling-fix/&quot;&gt;http://www.lvlolvlo.net/2007/02/11/office-2007-on-a-thinkpad-ultranav-support-for-scrolling-fix/&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>VirusRemoval.vbs Windows Script Host</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2008/03/27/virusremoval-vbs-windows-script-host/"/>
   <updated>2008-03-27T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2008/03/27/virusremoval-vbs-windows-script-host</id>
   <content type="html">Atlast! Got rid of that damn warning.&lt;br /&gt;&lt;br /&gt;msconfig did not show up this thing. No amount of standard registry scans helped me find this. I looked at the standard Run, RunOnce &amp;amp; Shell hives under HKLM/Software/Microsoft/Windows/CurrentVersion/. Just no use. No entries that were tell-tale traces of this VirusRemoval.vbs.&lt;br /&gt;&lt;br /&gt;But done at last! Took some patient Google-searching though. Some kind soul had provided the entire code of the VirusRemoval.vbs script file at:&lt;br /&gt;&lt;a href=&quot;http://www.thinkdigit.com/forum/showthread.php?t=71097&quot;&gt;http://www.thinkdigit.com/forum/showthread.php?t=71097&lt;/a&gt;. Looking at the code was enough to tell me where the virus had made entries in the registry.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Goto: HKLM/Software/Microsoft/WindowsNT/CurrentVersion/Winlogon. Under that, you will find a key called Userinit. Double click that key. A dialog box will open up with a string parameter. Edit that to remove just the offending entry. &lt;span style=&quot;font-weight: bold;&quot;&gt;Warning: &lt;/span&gt;If you are not sure what the offending entry is, DONOT modify the key. Please post back the contents of the key here, and we could work out something!&lt;br /&gt;&lt;br /&gt;After cleaning up my registry, the value of Userinit for me is: C:\WINDOWS\system32\userinit.exe&lt;br /&gt;&lt;br /&gt;Good Luck!&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Install RPMs on Ubuntu</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2008/03/19/install-rpms-on-ubuntu/"/>
   <updated>2008-03-19T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2008/03/19/install-rpms-on-ubuntu</id>
   <content type="html">Check this link. It describes the use of a tool called 'alien' to install RPMs on Ubuntu linux!&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://theunixgeek.blogspot.com/2008/03/why-i-switched-back-to-ubuntu.html#c2746545558233032385&quot;&gt;http://theunixgeek.blogspot.com/2008/03/why-i-switched-back-to-ubuntu.html#c2746545558233032385&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>yum ntfs-3g</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2008/02/16/yum-ntfs-3g/"/>
   <updated>2008-02-16T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2008/02/16/yum-ntfs-3g</id>
   <content type="html">To install ntfs support for Fedora linux, use the following as root:

yum install fuse fuse-libs ntfs-3g

reference: http://www.mjmwired.net/resources/mjm-fedora-f7.html#ntfs
&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp;amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Adobe Reader Commenting Not Allowed</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2008/02/06/adobe-reader-commenting-not-allowed/"/>
   <updated>2008-02-06T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2008/02/06/adobe-reader-commenting-not-allowed</id>
   <content type="html">At last!
Wanted to allow my prof. to be able to comment the pdf files that my LaTeX produces. But, even though I was NOT setting any such restrictions in LaTeX, the Adobe Reader always showed that Commenting was not allowed. After a Google search, I got this post in the Adobe Forums: http://www.adobeforums.com/webx/.3c05f5b1

In short: You cannot comment unless explicitly permitted. For this, you need to get to Adobe Acrobat (not the reader), and set the permission from: Commenting &amp;gt; Enable for Commenting in Adobe Reader.

Then you will be allowed to comment or markup :)

Update: If you don't mind a few additions of Foxit, you might want to try Foxit reader(&lt;span style=&quot;font-size: -1;&quot;&gt;&lt;span class=&quot;a&quot;&gt;www.foxitsoftware.com&lt;/span&gt;&lt;/span&gt;) for commenting your PDF documents without any of the above hassle.
</content>
 </entry>
 
 <entry>
   <title>WIndows Script Host: Unable to open file</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2008/02/04/windows-script-host-unable-to-open-file/"/>
   <updated>2008-02-04T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2008/02/04/windows-script-host-unable-to-open-file</id>
   <content type="html">For quite some time a lot of my friends kept getting a windows script host error whenever they tried to open a drive. It says: Windows Script Error: Unable to find file: &quot;....vbs&quot;.

Spending some time on google led me to this site:
http://www.mydigitallife.info/2007/04/19/unable-to-open-hard-or-usb-flash-drive-with-windows-script-host-cannot-find-script-file-autorunvbs-error/

All we need to do is to either delete the autorun.inf file there or modify the content in to get rid of the offending startup file info. To delete the file:

del:\autorun.inf /f /s /q /a

To modify the file, first remove its hidden-file attribute: (see http://forums.techarena.in/showthread.php?t=717194)
&lt;strong&gt;attrib&lt;/strong&gt; -s -h -r:\autorun.inf

Go ahead and edit this file now.
</content>
 </entry>
 
 <entry>
   <title>TeXnicCenter and Adobe Reader 8.0</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2008/02/04/texniccenter-and-adobe-reader-8-0/"/>
   <updated>2008-02-04T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2008/02/04/texniccenter-and-adobe-reader-8-0</id>
   <content type="html">I recently upgraded my Adobe Reader to version 8. The new interface is cool and all that, but I had an issue with using TeXnicCenter. Whenever I view a compiled document from TeXnicCenter, and then closed the Adobe reader or recompiled the file (causing adobe reader to close the document), the Adobe reader was crashing. A Google search yielded the following link which is very useful. It is almost a text-book type of solution which just works!

http://dikkie.net/2007/02/16/texniccenter-and-adobe-reader-80/
</content>
 </entry>
 
 <entry>
   <title>Why is switch case better than if else if?</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2008/01/28/why-is-switch-case-better-than-if-else-if/"/>
   <updated>2008-01-28T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2008/01/28/why-is-switch-case-better-than-if-else-if</id>
   <content type="html">Why is switch case better than else if? Or is it?
Here is some code I got into trouble with:
.
.
.
if(dim==0){
...//do lots of things
...return;
}
doSomeCommonThingsHere();
if(dim==3)
...doSomething3();
else if(dim==4)
...doSomething4();
else if(dim==5);
...doSomething5();
doSomeMoreCommonSomethings();
.
.
.
See anything?

I did not, initially. The semi colon after else if(dim==5). How I unearthed the bug? GDB was crashing. So no debugger to help me:( I figured out that only the dim==5 case was working well - and that none of the cases above it were working correctly. So I considered moving one of the earlier case code to the end to see if I can figure out the problem. While moving the code I accidentally noticed the semi-colon. Man! Computers are dumb - or was it me dumb?

Now did say switch case might have been better? Maybe. Because we are &lt;span style=&quot;font-style: italic;&quot;&gt;taught&lt;/span&gt; to put the break; statement at the end of each case to prevent it from falling-through right? What if I forgot to put the break; ? I guess it is easier to &quot;find&quot; a missing break than a missing ;. Did you see the semi-colon after missing?

Now why did I use such a large number of if-else-if statements? I was using &quot;Incremental development&quot;. I did not see the other cases coming in hordes. Shortsighted you might say, but I did not even intend to do the other cases in the first place. WOW! How easily changing requirements can screw up such wonderfully working code. Screw the changing requirements. Now you see how difficult is the job of a designer - he has to really think of extensibility - see extensibility in a new light?

Consider for a moment the above code. I was actually telling the computer to do things wrong!!! When will these computers learn to understand (:D) Or will they ever?
</content>
 </entry>
 
 <entry>
   <title>MinGW GProf with Eclipse 3.3 (Europa )</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2007/09/14/mingw-gprof-with-eclipse-3-3-europa/"/>
   <updated>2007-09-14T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2007/09/14/mingw-gprof-with-eclipse-3-3-europa</id>
   <content type="html">To use MinGW gprof with Eclipse, in the project settings, under complier, enable the gprof option. Further, in the Linker section, under command line, add -pg to your list. Build the program. Run the program and check that the gmon.out file has been created.

You can run gprof as follows:
gprof.exe.

You can run gprof from within eclipse by configuring the external tools:
1. Open the external tools dialog
2. Double click on program to create a new program configuration
3. Give this profile a name, eg. gprof
4. In the location text box, give the FULL path to the grpof command
5. In the working directory, choose: ${workspace_loc:/path/to/executable}
6. Arguements: ${file_prompt} ${GMON}, where GMON has been assigned the path to the gmon.out file using the variables button.

References:
1.&lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/systems/topic/com.ibm.aix.cmds/doc/aixcmds2/gprof.htm&quot;&gt;http://publib.boulder.ibm.com/infocenter/systems/topic/com.ibm.aix.cmds/doc/aixcmds2/gprof.htm&lt;/a&gt;
2.&lt;a href=&quot;http://gcc.gnu.org/ml/fortran/2006-11/msg00217.html&quot;&gt;http://gcc.gnu.org/ml/fortran/2006-11/msg00217.html&lt;/a&gt;
</content>
 </entry>
 
 <entry>
   <title>ब्लोग्गीं, और हिंदी मे!</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2007/04/18/%25e0%25a4%25ac%25e0%25a5%258d%25e0%25a4%25b2%25e0%25a5%258b%25e0%25a4%2597%25e0%25a5%258d%25e0%25a4%2597%25e0%25a5%2580%25e0%25a4%2582-%25e0%25a4%2594%25e0%25a4%25b0-%25e0%25a4%25b9%25e0%25a4%25bf%25e0%25a4%2582%25e0%25a4%25a6%25e0%25a5%2580-%25e0%25a4%25ae%25e0%25a5%2587/"/>
   <updated>2007-04-18T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2007/04/18/%e0%a4%ac%e0%a5%8d%e0%a4%b2%e0%a5%8b%e0%a4%97%e0%a5%8d%e0%a4%97%e0%a5%80%e0%a4%82-%e0%a4%94%e0%a4%b0-%e0%a4%b9%e0%a4%bf%e0%a4%82%e0%a4%a6%e0%a5%80-%e0%a4%ae%e0%a5%87</id>
   <content type="html">हेल्लो वर्ल्ड!
गूगल ki गूढ़ विल से हिंदी मे ब्लोग करना बहुत आसान हैं। इस फेतुरे के लिए शुक्रिया!!! लव यू गूगल! कीप उप थे गूढ़ वर्क!

Please excuse my rustic hindi...I was just experimenting :) If you are unable to read the Hindi correctly, then please read this article on enabling Indic fonts for various OSs: &lt;a href=&quot;http://en.wikipedia.org/wiki/Wikipedia:Enabling_complex_text_support_for_Indic_scripts&quot;&gt;http://en.wikipedia.org/wiki/Wikipedia:Enabling_complex_text_support_for_Indic_scripts&lt;/a&gt;
</content>
 </entry>
 
 <entry>
   <title>Routing and Remote Access Service Fails!</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2007/01/27/routing-and-remote-access-service-fails/"/>
   <updated>2007-01-27T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2007/01/27/routing-and-remote-access-service-fails</id>
   <content type="html">This afternoon, we were suddenly unable to browse the internet. Suspicious about the proxy server being down, I checkout from our main browsing computers. I was able to ping the students proxy.
A little more digging up led me to figure out that there was something wrong with our lab router that handles the internet traffic to the student's proxy; the main browsing systems bypass the router.
I disabled the routing service and set it up again. Though the routing service itself did not throw up any error, the event log had logged the error message. I was unable to browse even from the router itself. Also, the IIS server on the router also failed.
I restarted the system thinking it might help - but to no avail!
Checking the event log revealed that the Routing and Remote Access service had thrown up an error - Unable to add the internal adapter to the routing service - incorrect parameter. Looking at the event log messages for a few hours earlier, I hit upon a message saying that a duplicate name had been detected on the network. I then realized that this was quite likely since our server had a name Dell1, which was quite possible to be duplicated over the network since there were a plethora of Dell machines springing up here. So I renamed our machine and restarted - Bingo! it was running like a good ol' boy!
Lesson to be learnt: Event log &lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;is &lt;/span&gt;Holy Grail!.
</content>
 </entry>
 
 <entry>
   <title>Now, thats a Palindrome...</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/12/16/now-thats-a-palindrome/"/>
   <updated>2006-12-16T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/12/16/now-thats-a-palindrome</id>
   <content type="html">Now &lt;span style=&quot;font-style: italic;&quot;&gt;that&lt;/span&gt; is a palindrome:

A man, a plan, a canoe, pasta, heros, rajahs, a coloratura, maps, snipe, percale, macaroni, a gag, a banana bag, a tan, a tag, a banana bag again (or a camel), a crepe, pins, Spam, a rut, a Rolo, cash, a jar, sore hats, a peon, a canal -- Panama!

From &lt;em&gt;Common Lisp, the Language (2nd ed)&lt;/em&gt;.

And now, &lt;a href=&quot;http://www.norvig.com/&quot;&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;this&lt;/span&gt;&lt;/a&gt; is a geek: &lt;a href=&quot;http://www.norvig.com/pal2.html&quot;&gt;http://www.norvig.com/pal2.html&lt;/a&gt; and this &lt;span style=&quot;font-style: italic;&quot;&gt;is&lt;/span&gt; a palindrome: &lt;a href=&quot;http://www.norvig.com/pal1txt.html&quot;&gt;http://www.norvig.com/pal1txt.html&lt;/a&gt;

Read more at the &lt;a href=&quot;http://googleblog.blogspot.com/2004/06/man-plan-pointless-program.html&quot;&gt;Google Blog&lt;/a&gt;.
</content>
 </entry>
 
 <entry>
   <title>Subclipse Proxy Configuration</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/12/14/subclipse-proxy-configuration/"/>
   <updated>2006-12-14T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/12/14/subclipse-proxy-configuration</id>
   <content type="html">Whew! That was a real big deal.

I wanted to checkout the newly open-sourced &lt;a href=&quot;http://code.google.com/p/google-web-toolkit/source&quot;&gt;Google Web Toolkit&lt;/a&gt; using &lt;a href=&quot;http://www.eclipse.org/&quot;&gt;Eclipse&lt;/a&gt; via the &lt;a href=&quot;http://subclipse.tigris.org/&quot;&gt;Subversion plugin&lt;/a&gt;. I work behind a proxy and have a choice of three proxies offering varying capabilities and restrictions - some require authentication while others don't. When I tried checkout, I was in for a real surprise - I was getting an error message saying &lt;span style=&quot;font-weight: bold;&quot;&gt;Error 407: Proxy authentication required&lt;/span&gt;. Since I did not set any proxy in the first place, I was wondering how a proxy was picked up and why I was not being &lt;span style=&quot;font-style: italic;&quot;&gt;prompted&lt;/span&gt; for authentication!

When I searched the Eclipse preferences dialog for SVN, I did not find any place where I can set up a proxy. Also, I wondered if Subclipse had somehow chosen to use my Windows default proxy configuration. So, I went to Control Panel &amp;gt; Internet Connection &amp;gt; Connections &amp;gt; LAN Settings. Nope, the default proxy that I had configured for my windows was different from the one that Subclipse was using - the default proxy did not require authentication while Subclipse was trying a proxy that required authentication. Exasperating!

Just wanted to be sure which proxy was being used. As usual, the &lt;a href=&quot;http://www.ethereal.com/&quot;&gt;Ethereal&lt;/a&gt; network protocol analyzer came to my rescue. I figured out that by default, Subclipse had chosen a proxy that needed authentication (I am yet to find out how it found the proxy address in the first place!) and had not prompted me for authentication. Then, a search through Eclipse help led me to this link: &lt;a href=&quot;http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.2&quot;&gt;http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.2.&lt;/a&gt;

In short, I had to edit the registry to set my proxy - call that user friendly??? Well, since most of the time people who check out code are geeks, may be I should excuse this!!! Here is where I had to go:
HKCU\Software\Tigris.org\Subersion\Servers\Global\http-proxy-host and http-proxy-port values. Once I set up the proxy there, all worked well.

Whew!!! Breathe easy now :)
</content>
 </entry>
 
 <entry>
   <title>Testing the RAM for defects on Windows</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/29/testing-the-ram-for-defects-on-windows/"/>
   <updated>2006-11-29T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/29/testing-the-ram-for-defects-on-windows</id>
   <content type="html">Somebody had asked me to look at some problem being created by Ulead DVD Factory 10.0. The error reported was some failure to read a memory location. This message repeated for Nero also, after a few days.
I suspected faulty RAM, after seeing the log. The message was EXCEPTION_ACCESS_VIOLATION. But, I did not know the right tools for testing the RAM. So, a Google Search led me to the following tools:
1) &lt;a href=&quot;http://www.memtest86.com/&quot;&gt;MemTest&lt;/a&gt;
2) Microsoft's &lt;a href=&quot;http://oca.microsoft.com/en/windiag.asp&quot;&gt;Windows Memory Diagnostic&lt;/a&gt;.

I did not test Memtest, but I used the Microsoft solution. It was easy to use, but the UI is not for the layman.

Notes:
- Please keep a floppy disk handy. If you are one of those forward looking geeks, and do not have a floppy drive, you need to have a CD writer. Check out the details provided &lt;a href=&quot;http://oca.microsoft.com/en/windiag.asp#quick&quot;&gt;here&lt;/a&gt; for working with a CD.
- After you run the program and have created a floppy, boot from the floppy.
- To run Advanced Diagnostic tests, hit the T button on your keyboard.
</content>
 </entry>
 
 <entry>
   <title>Sorting Algorithms : A visual treatment</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/20/sorting-algorithms-a-visual-treatment/"/>
   <updated>2006-11-20T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/20/sorting-algorithms-a-visual-treatment</id>
   <content type="html">Check out this link at: &lt;a href=&quot;http://netlib.bell-labs.com/cm/cs/pearls/sortanim.html&quot;&gt;http://netlib.bell-labs.com/cm/cs/pearls/sortanim.html&lt;/a&gt;
It is from the &lt;a href=&quot;http://netlib.bell-labs.com/cm/cs/pearls/&quot;&gt;Programming Pearls&lt;/a&gt; site. Gives some insight into the working of the algorithm. Check the behaviour of different algorithms on different inputs. However, it would be more helpful if we also have some control over the speed; this will help the visualization better!

Let me see if I can fix that recipe (ofcourse, I will start with the &lt;a href=&quot;http://netlib.bell-labs.com/cm/cs/pearls/SortAnim.java&quot;&gt;SortAnim.java&lt;/a&gt; provided at the &lt;a href=&quot;http://netlib.bell-labs.com/cm/cs/pearls/&quot;&gt;site&lt;/a&gt;).
</content>
 </entry>
 
 <entry>
   <title>Eclipse Update behind a proxy</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/18/eclipse-update-behind-a-proxy/"/>
   <updated>2006-11-18T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/18/eclipse-update-behind-a-proxy</id>
   <content type="html">Updating Eclipse from behind a proxy was quite counter-intuitive for me; or was it??? I had expected to find the proxy setting in the same window where the updater hooks up to the internet. Unfortunately, with Eclipse, it was under Window &amp;gt; Preferences &amp;gt; Install/Update &amp;gt; Use HTTP Proxy...
But this option of not having to hunt around the eclipse site for the plug-ins is a real killer concept. Saves a lot of time too. One up to the &lt;a href=&quot;http://www.eclipse.org/&quot;&gt;Eclipse&lt;/a&gt;project.
</content>
 </entry>
 
 <entry>
   <title>Installation of Sun Studio 10 on Sun Solaris Machine</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/16/installation-of-sun-studio-10-on-sun-solaris-machine/"/>
   <updated>2006-11-16T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/16/installation-of-sun-studio-10-on-sun-solaris-machine</id>
   <content type="html">1. First uninstall the existing version by typing:
&lt;pre class=&quot;ScreenText&quot;&gt;&lt;kbd class=&quot;UserType&quot;&gt; - cd /var/sadm/prod/&lt;/kbd&gt;&lt;kbd class=&quot;Filename-Command&quot;&gt;com.sun.studio_10&lt;/kbd&gt; - Run the batch uninstaller. - Further info on uninstalling can be found at: &lt;a href=&quot;http://docs.sun.com/source/819-0485/remove.html&quot;&gt;http://docs.sun.com/source/819-0485/remove.html&lt;/a&gt;&lt;/pre&gt;
2. Next, put the Tar file in the directory in which you wish to install. Untar it. Keep the tar file in the same directory as the installer file.
3. Run the installer and follow instructions.
</content>
 </entry>
 
 <entry>
   <title>Windows XP Pro: Network access: logon failure</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/windows-xp-pro-network-access-logon-failure/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/windows-xp-pro-network-access-logon-failure</id>
   <content type="html">Windows XP Pro: Network access: logon failure: the user has not been granted the requested logon type at this computer

Solutions:
0) Start &amp;gt; Control Panel &amp;gt; Administrative Tools &amp;gt; Local Security Policy &amp;gt; Local Policies &amp;gt; User Rights Assignment:
- Goto : Deny Access to this Computer from the Network
- Remove the user name to whom you wish give permission to access the computer over the network.
1) Just run the network setup wizard and turn on file and printer sharing. If that does not help, try the next link:
2) &lt;a href=&quot;http://www.experts-exchange.com/Operating_Systems/Windows_Server_2003/Q_21072962.html?qid=21072962&quot;&gt;http://www.experts-exchange.com/Operating_Systems/Windows_Server_2003/Q_21072962.html?qid=21072962&lt;/a&gt;
3) &lt;a href=&quot;http://www.experts-exchange.com/Operating_Systems/Windows_Server_2003/Q_21072962.html&quot;&gt;http://www.experts-exchange.com/Operating_Systems/Windows_Server_2003/Q_21072962.html&lt;/a&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp;amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Windows : Autorun is Disabled?</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/windows-autorun-is-disabled/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/windows-autorun-is-disabled</id>
   <content type="html">Here is a solution for the Geeks; it modifies the Windows registry:
&lt;pre&gt;  1. Start RegEdit (regedt32.exe).2. Go to HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/Cdrom.3. Edit the Autorun value to '1' to enable autorn, and '0'   to disable autorun.4. Close RegEdit.&lt;/pre&gt;
NOTE: You may have to restart the system.

A simpler solution (not guaranteed to work if autorun has been disabled in the registry, as in my case) is:
&lt;pre&gt;  1. Right-click on the drive.2. Choose properties.3. Choose Autoplay.4. Choose the action you want to take for various file types.&lt;/pre&gt;
</content>
 </entry>
 
 <entry>
   <title>VMWare : SSH access to RH9 from Windows using PuTTY</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/vmware-ssh-access-to-rh9-from-windows-using-putty/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/vmware-ssh-access-to-rh9-from-windows-using-putty</id>
   <content type="html">Refer to my &lt;a href=&quot;http://sricharan-log.blogspot.com/2006/11/vmware-internet-access-from-guest-vm.html&quot;&gt;previous post&lt;/a&gt; regarding setting up Internet access via RH9 Guest OS. Make sure you have similar settings. Then, just change the firewall settings to allow incoming SSH connections.

Nothing else needs to be done.
</content>
 </entry>
 
 <entry>
   <title>VMWare : Sharing Files by Connecting to Windows from Linux</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/vmware-sharing-files-by-connecting-to-windows-from-linux/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/vmware-sharing-files-by-connecting-to-windows-from-linux</id>
   <content type="html">Check out this link from VMWare Documentation: &lt;a href=&quot;http://www.vmware.com/support/gsx3/doc/running_fileshare_lin2win_gsx.html#1089626&quot;&gt;http://www.vmware.com/support/gsx3/doc/running_fileshare_lin2win_gsx.html#1089626&lt;/a&gt;
</content>
 </entry>
 
 <entry>
   <title>VMWare : Internet / FTP / Telnet Access to Linux Guest from Windows Host</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/vmware-internet-ftp-telnet-access-to-linux-guest-from-windows-host/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/vmware-internet-ftp-telnet-access-to-linux-guest-from-windows-host</id>
   <content type="html">1) After installing VMWare workstation or VMWare Player, find out the IP Subnet of the VM Network Adapter named VMNet8. This is the VMAdapter that is used for NAT connectivity.
2) Set up the Linux host's IP address to be in the same IP Subnet as VMNet8. Just make sure that you donot use the IP addresses subnet.1 OR subnet.2 Subnet.1 is used by VMNet8 while subnet.2 is used as the IP of the NAT Gateway. (Refer to VMWorkstation documentation for more details).
4) Set the default Gateway to subnet.2
3) Set up VMWare to use Ethernet in NAT mode.
4) Done.
</content>
 </entry>
 
 <entry>
   <title>VMWare : Internet access from Guest VM (RedHat 9)</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/vmware-internet-access-from-guest-vm-redhat-9/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/vmware-internet-access-from-guest-vm-redhat-9</id>
   <content type="html">&lt;ul&gt;
	&lt;li&gt;You donot need to create any internet sharing in windows etc. VMWare will take care of that for you.&lt;/li&gt;
	&lt;li&gt;To set up internet access from the guest VM, set the VM to use NAT for ethernet.&lt;/li&gt;
	&lt;li&gt;Set the IP address to the same segment as that of VMNet8. (just make sure that it is not .2).&lt;/li&gt;
&lt;/ul&gt;
Now you can access the Internet from the Guest VM!
</content>
 </entry>
 
 <entry>
   <title>VMWare : Do's &amp; Donts</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/vmware-dos-donts/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/vmware-dos-donts</id>
   <content type="html">&lt;ul&gt;
	&lt;li&gt;VMWare by default creates two Vitual Network Adapters: VMNet1 &amp;amp; VMNet8.&lt;/li&gt;
	&lt;li&gt;VMNet1 is useful for host-only connection.&lt;/li&gt;
	&lt;li&gt;VMNet8 is for NAT access.&lt;/li&gt;
	&lt;li&gt;Donot change the IP domains which are assigned by default. You could wreck the DHCP, DNS &amp;amp; Routing domian that VMWare creates.&lt;/li&gt;
	&lt;li&gt;To change these settings, please use: Edit &amp;gt; Virtual Network Settings &amp;gt; NAT.&lt;/li&gt;
	&lt;li&gt;By default, the IP Address .2 with the VMNet8 segment, is the IP address of VMWare's DNS &amp;amp; router.&lt;/li&gt;
&lt;/ul&gt;
</content>
 </entry>
 
 <entry>
   <title>Using Minix on VMWare</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/using-minix-on-vmware/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/using-minix-on-vmware</id>
   <content type="html">&lt;ul&gt;
	&lt;li&gt;There is nothing special that you need to do incase you need to run Minix on VMWare. Infact, you can download the VMWare ready image of Minix from here. Only, this image is not allowing ftp access to VMWare. After much effort, I found an image file for Minix 2.0.4 which was consolidated. The website is so confusing. It does not specify clearly what needs to be downloaded and they have lots of things there too!!!&lt;/li&gt;
	&lt;li&gt;To allow ping to work, just set up NAT as described &lt;a title=&quot;VMWare&quot; href=&quot;http://sricharan-log.blogspot.com/2006/11/vmware-internet-access-from-guest-vm.html&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;Read &lt;a href=&quot;http://groups-beta.google.com/group/comp.os.minix/browse_thread/thread/0d6ca6030eba125a&quot;&gt;this post&lt;/a&gt; or &lt;a href=&quot;http://sricharan-log.blogspot.com/2006/11/minix-ftp-tlenet-access.html&quot;&gt;this post&lt;/a&gt; to enable FTP and Telnet access to Minix.&lt;/li&gt;
&lt;/ul&gt;
</content>
 </entry>
 
 <entry>
   <title>Samba Server Setup</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/samba-server-setup/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/samba-server-setup</id>
   <content type="html">Check if the Samba server is installed: You can check this by going to Main Menu &amp;gt; System Settings &amp;gt; Server Settings &amp;gt; Services. Then, look for a service named smb. If it is present, that means, the Samba server is installed. If it is not started, start it up.

If you donot have the Samba server installed on your system, you should install it from the RedHat 9 CDs. The server along with the GUI to configure Samba are present on CDs 1, 2 &amp;amp; 3.
&lt;pre&gt;- Insert CD1.- Go to the CDROM and navigate to RedHat &amp;gt; RPMS.Here, look for a file called samba*.rpm. Install it.- Insert CD2. Navigate to RedHat &amp;gt; RPMS.Install a package called redhat-config-samba*.- Insert CD3. Navigate to RedHat &amp;gt; RPMS.Install a package called samba-swat*&lt;/pre&gt;
NOTE: &lt;strong&gt;SWAT&lt;/strong&gt; is a browser based configuration tool for Samba. It talks be default on port 901. So, to use this, httpd should be running on Linux and the firewall should not block this port.) We will use the GUI rather than SWAT for configuration.
&lt;ul&gt;
	&lt;li&gt;Go to the command prompt and type: /usr/bin/redhat-config-samba (it is in /usr/bin folder).&lt;/li&gt;
	&lt;li&gt;Login as root.&lt;/li&gt;
	&lt;li&gt;You will get a screen similar to the one shown here.&lt;/li&gt;
	&lt;li&gt;Go to Preferences &amp;gt; Server Settings. The default settings are shown here. I had to keep the group to something different from what was the Workgroup on my Windows system. Give a nice description; this is what people from other systems will see as the title for the Server (eg. In Windows, in the My Network Places, Show Work Group Computer, this is what will be seen.)&lt;/li&gt;
	&lt;li&gt;On the Security tab,&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;- set the Authentication Mode to User.- set the Encrypted Password to Yes.- set Guest account to the user for whom you are setting up this share.(I donot as yet know how to allow for anonymous shares...)- click OK.&lt;/pre&gt;
&lt;ul&gt;
	&lt;li&gt;Go to Preferences &amp;gt; Samba Users.&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;- click add.- Select the Unix username for the user whom you want topermit to use the share. When he logs in, he will be takent to his homedirectory unless some other shared folder has been specified.- If the user is logging in from Windows, provide his Windows username&lt;/pre&gt;
(this simplifies authentication and hepls to map Windows users to Linux users, I think so, I am not sure about this part).
&lt;pre&gt;- Provide a password (preferrably different from his Linux login password).- click OK.&lt;/pre&gt;
&lt;ul&gt;
	&lt;li&gt;Click Add, and add a shared folder to allow access from outside the Linux machine.&lt;/li&gt;
	&lt;li&gt;To access this share from Windows, Go to My Network Places &amp;gt; View Workgroup Computers &amp;gt; Microsoft Windows Networks. Go to the appropriate workgroup that you had specified earlier. Here you will find the Samba Server with the description you provided earlier. Open this Samba and there you go!!!&lt;/li&gt;
&lt;/ul&gt;
Now someone please tell me how to access the Windows Shares from Linux. Any help would be appreciated. :)

UPDATE: Okay, just discovered that File &amp;amp; Printer Sharing must be enabled on Windows for accessing the Shared Files! For this, please run the Network Setup Wizard with appropriate options!!!
</content>
 </entry>
 
 <entry>
   <title>Networking Lessons</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/networking-lessons/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/networking-lessons</id>
   <content type="html">Subnets, Non-routable IPS:
Learner's Perspective - &lt;a href=&quot;http://www.easydesksoftware.com/news/news28.htm&quot;&gt;http://www.easydesksoftware.com/news/news28.htm&lt;/a&gt;

Admin's Perspective - &lt;a href=&quot;http://www.pku.edu.cn/academic/research/computer-center/tc/html/TC0000.html&quot;&gt;http://www.pku.edu.cn/academic/research/computer-center/tc/html/TC0000.html&lt;/a&gt;
Admin's Perspective - &lt;a href=&quot;http://www.pku.edu.cn/academic/research/computer-center/tc/html/TC0305.html&quot;&gt;http://www.pku.edu.cn/academic/research/computer-center/tc/html/TC0305.html&lt;/a&gt;
</content>
 </entry>
 
 <entry>
   <title>Network Access across a router</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/network-access-across-a-router/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/network-access-across-a-router</id>
   <content type="html">This document recapitulates the tasks that were needed to be done by us to enable access between the online and offline systems in the lab at my hostel:

1) First set up a DNS ( with a domain name say ssshcc.edu )
- Set up the forward and reverse lookup zones
2) Set up the DNS machine to act as the router also between the two segments.
3) For each computer on the online and offline segments, change the primary DNS suffix of the computer to the DNS domain name ( as specified in step 1 )
- Right Click My Computer &amp;gt; Properties
- Computer Name
- Change
- More
- Type in the new Primary DNS Suffix
4) For each machine in the online and offline segements, make sure that the guest account is allowed network access.
- Start &amp;gt; Control Panel &amp;gt; Local Security Policy &amp;gt; Local Policy &amp;gt; User Rights Assignment &amp;gt; Deny Logon over Network
- Remove the Users whom you wish to allow network access (if the name is in the list)
5) Make sure that the default gateways and Primary and Secondary DNServers are correctly entered in the Network Configuration.
6) In the lab, i.e., in the SSSHCC, the online systems donot have guest login interactively, but we want the guest users from the offline segement to be able to access the online systems. For this, we enable the Guest user account on the Online systems, but prevent their Interactive Login as follows:
- Start &amp;gt; Control Panel &amp;gt; Local Security Policy &amp;gt; Local Policy &amp;gt; User Rights Assignment &amp;gt; Deny Logon Locally
- Add Guest user.
7)Here, you can choose the custom list and add the required IPs or choose then Any computer option as required.
8) One last setting: The windows firewall by default allows only computers on the same segment to access each other. This needs to be changed:

It is like this: Port 445 (which is what windows uses for file and printer sharing) by default accepts connections only from computers on the same subnet as itself. This behaviour can be changed as described in the document: &lt;a href=&quot;https://docs.google.com/View?docid=ajgs46pc346b_9dxvvjc&quot;&gt;https://docs.google.com/View?docid=ajgs46pc346b_9dxvvjc&lt;/a&gt;.
You can find Microsoft's description of the solution(KB840634) at&lt;a href=&quot;http://support.microsoft.com/kb/840634&quot;&gt; http://support.microsoft.com/kb/840634&lt;/a&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp;amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Minix - FTP &amp; Tlenet Access</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/minix-ftp-tlenet-access/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/minix-ftp-tlenet-access</id>
   <content type="html">I had a problem accessing my Minix VMWare guest OS, via FTP or Telnet. Here is how the problem was solved...

A little bit of history:
Yesterday, I had to set up a RedHat 9 Guest OS for one of my faculty members. I realized that even though telnet was installed and running, I was unable to access it even locally!!! Then I realized that I had to edit the 'telnet' file in /etc/xinetd.d to allow incoming telnet connections (inspite of changes to the firewall configuration to allow incoming telnet connections).

Back to present:
So I realized that perhaps something similar needs to be done even with Minix (after all, it is a variant of Unix and must have similar security features!!!). But, when I went to the /etc folder in Minix, I found no xinetd.d folder. Looking around, I found the serv.access file. Guessing that it must be the right place to look, I opened it. Bingo!
There it was. Only, I had to decipher how the entires should look like in that file. Ever so helpful, a comment asked me to man serv.access. Also, I looked at the /usr/adm/log file. It was all there - all those access denied messages...

Initially, my /etc/serv.access file was like this:

# /etc/serv.access
# 2006-05-21
# See the serv.access(5) man pages to learn how to edit this file
# to make your system safe on the network.
# this is insecure! replace with something more specific asap
telnet ftp: +* log;

# this is better, keep outsiders out

# telnet ftp: +*.local log;

# this records all unsuccessful access attempts in/usr/adm/log

*: -* log;

After a reading the man page and a little tinkering, I changed the line &quot;telnet ftp: +* log;&quot; to &quot;telnet ftp: + log;&quot;. i.e., I just removed the *. May be very insecure, but it does the job for me. Perhaps one could add an IP address or a range of IPs to enhance security (as described in the man page).

One another word:
This might be very helpful on the VMWare front:

I am still using NAT. I had to just set the IP address of my Minix to be on the same subnet as VMNet8 (which is the default subnet on which VMWare does NAT-ing). Also, the default gateway on the guest OS - Minix - had to be set to VMNet8-subnet-.2 ( The .2 IP is the gateway across which VMWare does NAT).

Thats it!!!. All works fine now...
</content>
 </entry>
 
 <entry>
   <title>Matlab license manager error: Solaris 10</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/matlab-license-manager-error-solaris-10/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/matlab-license-manager-error-solaris-10</id>
   <content type="html">If the Sun Machine is not properly shut down when Matlab (license) server is running, you will be unable to start matlab after the reboot. You will get an error -15.
To trouble shoot, I did the following:
- I knew that lmstart command present int $MATLAB/etc directory starts the matlab license manager.
- To start the license manager (i.e., to run the lmstart command), you need to be logged in as a non-root user.
- So, I tried to start the license manager.
- I got a message saying that I needed to delete some files: /var/tmp/lm_*.log and /var/tmp/lm_*.dat
- For this you need to log in as root.
- Once this is done, run lmstart again.
- Done.
&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp;amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Linux : Mounting a USB device - made simpler</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/linux-mounting-a-usb-device-made-simpler/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/linux-mounting-a-usb-device-made-simpler</id>
   <content type="html">1) At the terminal, log in as root.

2) Open the /etc/fstab file for editing.

3) Append the following entry to the file: /dev/sda1 /mnt/usb autofs
0 0

4) Start &amp;gt; System Tools &amp;gt; Disk Management

5) Select the device to be mounted and mount.

NOTES:

1) /dev/sda1 is the name of the device whose file system you want to mount at /mnt/usb (this too is your choice!)

2) autofs tells the mount command that the filesystem type should (attempted to) be detected automatically. If you want, you can explicitly specify a file system.

3) In the options, DONOT specify the kudzu option. The kudzu option will cause /etc/fstab to be updated when the usb device is unmounted or unplugged. Thus, the entry will vanish after this. For more information regarding kudzu, use man kudzu at the terminal.

4) In the options, please specify user and NOT owner. If you donot specify user, the DiskManagement will not show the USB device if this is launched by a non-root user (by default). The GUI for DiskManagement is actually a command called usermount that reads from /etc/fstab and displays a list. Hence, if user is NOT specified, the device will not show up in the list. Further, the user option indicates that ANY user can mount this device!!!

5) For convinience, the DiskManagement can be added to the launcher panel (Start &amp;gt; System Tools. Right Click on DiskManagement and click on Add to Launcher Panel)
</content>
 </entry>
 
 <entry>
   <title>FTP Server on Windows 2003 Server R2</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/ftp-server-on-windows-2003-server-r2/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/ftp-server-on-windows-2003-server-r2</id>
   <content type="html">We had set up IIS on Windows 2003 server. Along with HTTP, we also had to set up FTP server to allow our staff members to be able to upload info to their respective folders.
The initial set up worked, but it was readonly, inspite of the folder permission being write. Then, I checked out that if I logged in as admin, I could create folders! So, I went to check out the folder permissions for the admin account. It was exactly as I had configured the staff account (FULL CONTROL), except that the permission were only for the current folder. For the staff account permissions, I had chosen to give full control to &quot;This folder, and subfolders and files(as intuition and common sense would have served anyone). But, I must confess that I donot fully understand the NTFS permissions structure. So, I changed the staff permissions to this folder only and bingo! it worked.
</content>
 </entry>
 
 <entry>
   <title>Excellent, free iCal Calendars</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/excellent-free-ical-calendars/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/excellent-free-ical-calendars</id>
   <content type="html">This is a log of my adventures with iCal Calendar clients and format.
I tried Outlook Calendar &amp;amp; Google Calendar. Both were good. But, when I tried Google Calendar, it was in the offing and so I could not get much out of it. It was good but was accessible only when on the net.

So, I hit upon &lt;a class=&quot;external text&quot; title=&quot;http://www.ipi.fi/~rainy/index.php?pn=projects&amp;amp;project=rainlendar&quot; href=&quot;http://www.ipi.fi/%7Erainy/index.php?pn=projects&amp;amp;project=rainlendar&quot; rel=&quot;nofollow&quot; target=&quot;_new&quot;&gt;Rainlander&lt;/a&gt;. It was good, it integrated with Outlook and also understood the iCal format. But, I wanted to fill out just one calendar and use it on any client - both application and web-based. So, I filled out the Google Calendar (whew, that took really long!). Then, I realized that I could not actually use it anywhere else at that stage of development of Google Calendar.

So, I again filled out the Outlook calendar (because I had read this time that I can use the &lt;a class=&quot;external text&quot; title=&quot;http://outlook2ical.sourceforge.net&quot; href=&quot;http://outlook2ical.sourceforge.net/&quot; rel=&quot;nofollow&quot; target=&quot;_new&quot;&gt;outlook2ical&lt;/a&gt; utility, which is free!!!). Bingo, I used the outlook2ical utility and could export my Outlook calendar to the iCal format which is widely supported.

Next, I experimented with &lt;a class=&quot;external text&quot; title=&quot;http://phpicalendar.com&quot; href=&quot;http://phpicalendar.com/&quot; rel=&quot;nofollow&quot; target=&quot;_new&quot;&gt;phpicalendar&lt;/a&gt; using the .ics file that I exported with outlook2ical utility. It is cool and easy to use (as long as I had XAMPP with me, I had nothing to worry!)
</content>
 </entry>
 
 <entry>
   <title>Changing the default command for RedHat8 Launch Panel</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/changing-the-default-command-for-redhat8-launch-panel/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/changing-the-default-command-for-redhat8-launch-panel</id>
   <content type="html">For accessing the Windows Network using Samba, only Nautilus seemed to be understanding the smb:// protocol. I did not want to each time start a terminal and type nautilus to start Nautilus. So, I wanted to add a launch panel icon. I could not find a way to add and configure a new icon. So I dragged the Help icon from the Main Menu and modified its Properties to run the command /usr/bin/nautilus. But this by default opened my home directory. I wanted it to open smb://Hostname. I had experimented earlier at the terminal and found that nautilus took as its command line arguements the location to be opened. So, I changed the command to /usr/bin/nautilus smb://Hostname. This worked well for me. But, I wanted some more sophistication. I wanted to log in directly since smb:// (like &lt;a class=&quot;external free&quot; title=&quot;ftp://&quot; href=&quot;ftp:///&quot; rel=&quot;nofollow&quot; target=&quot;_new&quot;&gt;ftp://&lt;/a&gt;), takes the username and password separated by a colon followed by @ and the hostname. So, I changed the command to /usr/bin/nautilus smb://User Name:Password@Hostname. Nut, commandline did not parse the space separated user name (which Windows allows). So, as an additional change, using my instincts from my working with Linux, I enclosed the User Name within single quotes. This worked well. Similar strategy is also required to be used with the password if it contains spaces. Remember that while typing the username and password in the address bar of nautilus or at the Properties panel of the Launch Panel, the Password in NOT masked. So, it is at your risk that you do this.

So, all said and done, here is how the command looked at the end of the experimental session:
&lt;pre&gt;/usr/bin/nautilus smb://'User Name':'Pass word'@Hostname&lt;/pre&gt;
</content>
 </entry>
 
 <entry>
   <title>C Tidbit</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/c-tidbit/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/c-tidbit</id>
   <content type="html">The assignment operator returns something! In the case of a character, it returns the character that was assigned. So, it is useful to write code this way:

while ((to[i] = from[i]) != '\0')
</content>
 </entry>
 
 <entry>
   <title>Adding a Favicon</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/11/15/adding-a-favicon/"/>
   <updated>2006-11-15T00:00:00-08:00</updated>
   <id>http://saicharan.in/blog/2006/11/15/adding-a-favicon</id>
   <content type="html">Check out this Wiki article : http://en.wikipedia.org/wiki/Favicon
</content>
 </entry>
 
 <entry>
   <title>The Best GDB tutorial....</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/04/20/the-best-gdb-tutorial/"/>
   <updated>2006-04-20T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2006/04/20/the-best-gdb-tutorial</id>
   <content type="html">Once again, GDB comes to my rescue. Preparing for some exam, I need to debug. I need some advanced debug commands. Man pages are too long and do not provide examples. So, where do I go? To where I always went for GDB. To &lt;a href=&quot;http://www.dirac.org/linux/gdb/&quot;&gt;Peter Jay Salzman's web site tutorial ofcourse&lt;/a&gt;!
It seems to have been recently updated and it is great. Very technical and yet understandable too! - a rare combination. It is still under massive reconstruction as the web site puts it, but still great to go.
You can find his homepage &lt;a href=&quot;http://www.dirac.org/p/&quot;&gt;here&lt;/a&gt; and his usful linux notes &lt;a href=&quot;http://www.dirac.org/p/linux/&quot;&gt;here&lt;/a&gt;.
He seems to use all those things that I am interested in (kind of one-stop for me!), except that I use Matlab while he prefers Mathematica. His LaTeX links are &lt;a href=&quot;http://www.dirac.org/tex/&quot;&gt;here&lt;/a&gt;. And &lt;a href=&quot;http://www.dirac.org/hackers/&quot;&gt;here&lt;/a&gt;is his list of hackers (both good and bad as he puts it.)
&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp;amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>What the hell is that service?</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/04/16/what-the-hell-is-that-service/"/>
   <updated>2006-04-16T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2006/04/16/what-the-hell-is-that-service</id>
   <content type="html">Two days ago, my system became damn slow. Then, I started looking at the processes and services running. Then, I Googled them and found these amazing sites:

&lt;a href=&quot;http://www.liutilities.com/&quot;&gt;http://www.liutilities.com&lt;/a&gt;
&lt;a href=&quot;http://www.processlibrary.com/&quot;&gt;http://www.processlibrary.com&lt;/a&gt;
&lt;a href=&quot;http://www.auditmypc.com/&quot;&gt;http://www.auditmypc.com&lt;/a&gt;

For my own quick reference, here is the list of the processes that were running on my machine; now, most of them are scrapped. BTW, my machine is now like a tuned string, waiting to be played with.
*) Bonjour: Apple Computer's
*) vptray : Symatec AV VirusProtectionTray
*) qttask : QuickTime Task
*) cftmon :The cftmon.exe process is a component used in MsOffice to perform language related functions. It is closely tied to the 'Language Bar' present in MsOffice, so if you use the Language Bar you should leave this process running. If, on the other hand, you do not use the language bar, you should terminate this process to free up system resources.
*) igfxtray.exe is a process which allows you to access the Intel Graphics configuration and diagnostic application for the Intel 810 series graphics chipset. This program is a non-essential system process, and is installed for ease of use via the desktop tray.
*) Intel hotcommand hkcmd.exe is installed alongside Intel multimedia devices and allows configuration and diagnostic options for these devices. This program is non-essential process to the running of the system, but should not be terminated unless suspected to be causing problems.
*) vsmon.exe is a processs associated with the ZoneAlarm personal firewall. It is used to monitor Internet traffic and generate alerts depending on the security rules configured by the user.
*) Adobelmsvc.exe is a process which belongs to Adobe Acrobat. This program is non-essential process to the running of the system, but should not be terminated unless suspected to be causing problems.
*) mdnsresponder.exe is a process associated with &quot;Bonjour for Windows&quot; software. It is used by ITunes for music sharing. This is a non-essential process. Disabling or enabling this is down to user preference.
*) mdm.exe is associated with Microsoft Windows process debugging system. It allows the user to debug Internet Explorer errors by using a script interface tool. This is a non-essential process. Disabling or enabling this is down to user preference. Note: is also a process which is registered as the Win32.Lydra.a information stealing Trojan. This Trojan allows attackers to access your computer, personal data and information. It is a registered security risk and should be removed immediately.
*) AcroTray.exe is the Acrobat Assistant used when you print your documents to a PDF. While converting documents to a PDF this process should not be removed.
*) Adobelm_Cleanup.0001 is a process which belongs to Adobe Acrobat. This program is non-essential process to the running of the system, but should not be terminated unless suspected to be causing problems.
*) lsass.exe is a system process of the Microsoft Windows security mechanisms. It specifically deals with local security and login policies. This program is important for the stable and secure running of your computer and should not be terminated.
*) Scrss.exe is a process which is registered as the HacDef-R Trojan. This Trojan allows attackers to access your computer, stealing passwords, Internet banking and personal data. It is a registered security risk and should be removed immediately.
*) smss.exe is a process which is a part of the Microsoft Windows Operating System. It is called the Session Manager SubSystem and is responsible for handling sessions on your system. This program is important for the stable and secure running of your computer and should not be terminated.
*) PSNGive.exe is a process associated with the lite version of Post-it Note from 3M.

References:
http://www.auditmypc.com
http://www.processlibrary.com
http://www.liutilities.com
&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp;amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Lookout - Outlook!!</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/04/16/lookout-outlook/"/>
   <updated>2006-04-16T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2006/04/16/lookout-outlook</id>
   <content type="html">Here is where I again had a hell lot of problems. I wanted to make a birthday calendar and export it in the standard iCal format to my Google Calendar etc, as iCal was hailed on the web as the defacto standard for calendars.
I started with Sunbird 0.3a1. Thinking that I could export things in iCal format, I filled in all the birthdays I wanted to. And, then I found that all I had done was a waste. It only allowed me to export selected items as iCal. Thinking that maybe the default format for the calendar is iCal, I looked in my profile directory and bingo! nothing like *.ical, *.vsc or *.vcal. Then the Mozilla Foundation's documentation told me that from this version of sunbird, the default file format was .sdb, some SQLite format. Gone waste was my effort.
Lesson #1: Always look for the existance of the features you need in the s/w you choose.

So, what do I do? Google it ofcourse!
This is what Google yielded and had some good reviews too: &lt;a href=&quot;http://outlook2ical.sourceforge.net/&quot;&gt;http://outlook2ical.sourceforge.net/&lt;/a&gt;
It was some VB script. Things went cool till I exported the calendar and imported it into Sunbird. The recurring events which were supposed to recur every year once were recurring every day for a month! Give up?
Lesson #2: Never trust feature description. Check out the features ur self.

What next?
I wanted to somehow get this b'day business running, so I filled out the calendar in Outlook (for the simple reason that it was faster to add in Outlook than in Sunbird, donno why). Then, I bumped into this: &lt;a href=&quot;http://www.rainlendar.com/&quot;&gt;http://www.rainlendar.com&lt;/a&gt;. A very cute utility that seamlessly integrates with Outlook (oh my God!), reads from and understands iCal files! Thought this was a jackpot. Installed the software and loved its interface and cool features. Under the config &amp;gt; Plugins, i checked the Outlook option and refreshed the rainlendar on my desktop, it began showing the bithdays on the CORRECT days and onMouseOver(), it displayed the subject and description in a pop-up!
Cute piece of work.

Next, I wanted to take this calendar of outlook to my workplace. How?
I chose Calendar. Then I said File &amp;gt; Archive. I saved only the Calendar to an archive.pst (which was non-empty (~256 kb) ). Then I closed Outlook and made another copy of this file.
Next, on my Win XP with Outlook 2003, I found the archive of the current Outlook files here C:\Documents and Settings\%USER_NAME%\Local Settings\Application Data\Microsoft\Outlook\Outlook.pst
Just to see if I can import, I changed the name of the file from Outlook.pst to OldOutlook.pst. As expected, Outlook did not open saying it could not find the file Outlook.pst; but, it gave me file open dialog where I chose the archive.pst. Then agagin it gave some error and closed. The next time I opened Outlook, it opened, but there was nothing there. So, I decided to import the stuff. I chose File &amp;gt; Import and Export &amp;gt; Import from another file or program &amp;gt; Personal Files Folder (.pst).
Here I chose the backup file of the Outlook.pst that I had made earlier (did not want to take any chances with my calendar!). Then, I chose to import the calendar and hit the Finish button. Done!
I opened my calendar on the left tab and yo! the birthdays were there!!!

Okay, so much so far, but not good enough for me to export to iCal yet. Anyone ne ideas? Please lemme know.
&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp;amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Installing Mandrake Linux</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/04/16/installing-mandrake-linux/"/>
   <updated>2006-04-16T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2006/04/16/installing-mandrake-linux</id>
   <content type="html">The other day, my one of my friends had a problem installing Mandrake Linux. On first thougts, I thought I would get an image aided tutorial ready, but then, I checked out the all resourceful Google and found these. The second link is classic:
&lt;a href=&quot;http://member.melbpc.org.au/%7Eparsonsd/linux/Mandrake10_Install.html&quot;&gt;http://member.melbpc.org.au/~parsonsd/linux/Mandrake10_Install.html&lt;/a&gt;
&lt;a href=&quot;http://www.mandrake.tips.4.free.fr/install100.html&quot;&gt;http://www.mandrake.tips.4.free.fr/install100.html&lt;/a&gt;

So, happy Mandraking!
&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp;amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Firefox extension updated!</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/04/12/firefox-extension-updated/"/>
   <updated>2006-04-12T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2006/04/12/firefox-extension-updated</id>
   <content type="html">At last! The &lt;a href=&quot;http://sricharan-log.blogspot.com/2006/04/new-firefox-extension.html&quot;&gt;SaveURI&lt;/a&gt; 0.1 for firefox is ready! Now I can breathe easy. It is available &lt;a href=&quot;http://scharan20.googlepages.com/SaveURI-0.1-fx.xpi&quot;&gt;here&lt;/a&gt;. Try it and post your comments.
As I said earlier, this extension is useful for &quot;remembering&quot; the URL of every page that you visited and saved. This is still in beta as it has only just been submitted to &lt;a href=&quot;https://addons.mozilla.org/developers/main.php&quot;&gt;Mozilla Foundation&lt;/a&gt; for review.
Cheers! Now I can do something else while I wait for the review. :)

Update:
Yesterday, the Firefox 1.5.0.1 running on my system said I needed to upgrade, on saying go ahead, it checked my extensions for compatibility and said SaveURI is incompatible with 1.5.0.2! Anyway, later, I downloaded FF 1.5.0.2 from &lt;a href=&quot;http://getfirefox.com/&quot;&gt;Get Firefox&lt;/a&gt; and installed it. Then, I installed the SaveURI extension and it works just right!
Any ideas? &lt;a href=&quot;mailto:scharan20@gmail.com&quot;&gt;Buzz me&lt;/a&gt;.

Update:
This morning (20th April), SaveURI 0.3 was ready. Queued it up for approval at the MDC. Waiting for their approval. If you want to try it, it is available &lt;a href=&quot;http://scharan20.googlepages.com/SaveURI-0.3.0.1-fx.xpi&quot;&gt;here&lt;/a&gt;. Try it and let me know.
&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp;amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Welcome!</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/04/10/welcome/"/>
   <updated>2006-04-10T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2006/04/10/welcome</id>
   <content type="html">Welcome to my (b)log.
Here, I will be recording my experiments with Computers &amp;amp; Computing.
&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp;amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Post-it notes for the PC</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/04/10/post-it-notes-for-the-pc/"/>
   <updated>2006-04-10T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2006/04/10/post-it-notes-for-the-pc</id>
   <content type="html">That is one hell of a software for forgetfulls like me. You can cover your desktop with post-its and even set off an alarm on specific notes!. Terrific! You can download the lite version from &lt;a href=&quot;http://dw.com.com/redir?pid=10508740&amp;amp;merid=59813&amp;amp;amp;mfgid=59813&amp;amp;ltype=dl_dlnow&amp;amp;lop=link&amp;amp;edId=3&amp;amp;siteId=4&amp;amp;oId=3040-2351_4-10508740&amp;amp;ontId=2351_4&amp;amp;destUrl=http://www.download.com%2F3001-2351_4-10508740.html&quot;&gt;here&lt;/a&gt;. You can try the newest version for 30 days from &lt;a href=&quot;http://www.3m.com/us/office/postit/digital/digital_notes.html&quot;&gt;here&lt;/a&gt;. Beware! version 4.2 needs .Net framework 1.1. You can get that &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=262d25e3-f589-4842-8157-034d1e7cf3a3&amp;amp;displaylang=en&quot;&gt;here&lt;/a&gt;.
The maker is father of paper-post-its -- &lt;a href=&quot;http://www.3m.com/&quot;&gt;3M.&lt;/a&gt;Three cheers to 3M!
&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp;amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>New Firefox Extension</title>
   <author>
     <name>Sai Charan</name>
     <email>me@saicharan.in</email>
     <uri>http://saicharan.in</uri>
   </author>
   <link href="http://saicharan.in/blog/2006/04/10/new-firefox-extension/"/>
   <updated>2006-04-10T00:00:00-07:00</updated>
   <id>http://saicharan.in/blog/2006/04/10/new-firefox-extension</id>
   <content type="html">Today, SaveURI- a firefox extension that I wrote is ready. It was a litte difficult to get things going, but it was fun.

By the way, this extension simply saves the URI or URL of every page that you save so that you don't have to search for the parent site link. This was a problem I had for long, especially when I was doing my master's project. The links were just not available on any of the pages that I had saved. I needed them all for my report references. I am glad I could solve my own problems.
You can download the extension &lt;a href=&quot;http://scharan20.googlepages.com/SaveURI.xpi&quot;&gt;here&lt;/a&gt;. Just be careful if you are using the CustomizeGooogle extension as SaveURI is in the test phase and WILL clash with the latter extenssion.
&lt;div class=&quot;blogger-post-footer&quot;&gt;My experiments with Computers, Computing, Programming &amp;amp; Software.&lt;/div&gt;
</content>
 </entry>
 
 
</feed>

