<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">

  <channel>
    <title>vsbabu.org</title>
    <link>http://vsbabu.org/mt/</link>
    <description>Gluing passing thoughts to foregone conclusions</description>
    <dc:language>en-us</dc:language>
    <dc:creator>vsbabu@gmail.com</dc:creator>
    <dc:rights>Copyright 2011</dc:rights>
    <dc:date>2011-08-21T09:50:55+05:00</dc:date>
    <admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=2.661" />
    <admin:errorReportsTo rdf:resource="mailto:vsbabu@gmail.com"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>


    <item>
      <title>Quick Ref: Linux Mint 11 #1</title>
      <link>http://vsbabu.org/mt/archives/2011/08/21/quick_ref_linux_mint_11_1.html</link>
      <description>Been using Mint Katya on my new Toshiba C640 laptop that shipped with no OS installed. Fixes for some annoyances that keep bothering me. (59 Words)</description>
      <guid isPermaLink="false">1076@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>To force a filesystem check on root filesystem on next reboot, do:</p>
<blockquote><tt><pre>
sudo touch /forcefsck
</pre></tt></blockquote>

<p>To restore the gnome panel to defaults:</p>
<blockquote><tt><pre>
gconftool-2 --shutdown
rm -rf ~/.gconf/apps/panel
pkill gnome-panel
</pre></tt></blockquote>

<p>If clicking on any file location from say google chrome download list or other links gives an error <em>the requested location is not a folder</em>:</p>

<blockquote><tt><pre>
sudo apt-get remove exo-utils
</pre></tt></blockquote>
]]></content:encoded>
      <dc:subject>linux</dc:subject>
      <dc:date>2011-08-21T09:50:55+05:00</dc:date>
    </item>

    <item>
      <title>Quick Ref: SVN command line</title>
      <link>http://vsbabu.org/mt/archives/2011/08/17/quick_ref_svn_command_line.html</link>
      <description>There are times when you need to use SVN rather than GIT. Command line is actually much more easier for SVN than many other graphic tools. (92 Words)</description>
      <guid isPermaLink="false">1077@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<blockquote><tt><pre>
#make a working dir
mkdir sandbox
cd sandbox
#checkout
svn co svn://svn-repo-machine/repo/path myproject --username myusernameatsvnserver
#go to work on items
cd myproject
#pull latest from server
svn up 
#queue a file for addition
svn add newfile.c
#queue for deletion
svn delete anoldfilewedontneed.c 
#get the info on what is different in your local vs server
svn status 
#list commit comments on a file
svn log AFILESOMEONECHANGED.c 
#commit one file. * will commit all that changed.
svn ci -m "Edited this file for ..." filethatgotchanged.c 
</pre></tt></blockquote>

<p>
Now, <a href="http://blog.tplus1.com/index.php/2007/08/29/how-to-use-vimdiff-as-the-subversion-diff-tool/">configure vim as the svn diff tool</a>.</p>
</p>]]></content:encoded>
      <dc:subject>computing</dc:subject>
      <dc:date>2011-08-17T06:57:08+05:00</dc:date>
    </item>

    <item>
      <title>Git with Dropbox</title>
      <link>http://vsbabu.org/mt/archives/2011/08/14/git_with_dropbox.html</link>
      <description>Git&apos;ing with Dropbox (104 Words)</description>
      <guid isPermaLink="false">1075@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>First, check out <a href="http://vsbabu.org/mt/archives/2011/08/02/quick_start_git_for_personal_use.html">Git for personal use</a>. Extending those principles to <a href="http://www.dropbox.com/">Dropbox</a> is fairly easy.</p>

<blockquote></code>
<pre class="literal-block"> 
cd ~/Dropbox
mkdir -p gitroot/research.git &amp;&amp; cd !$
git --bare init
 
cd ~/Projects
git init
git remote add dropbox file://$HOME/Dropbox/gitroot/research.git
git add testfile.txt
git commit -m &quot;initial&quot;
git push dropbox master
 
ssh anothercomputer
cd ~/Projects
git clone -o dropbox file://$HOME/Dropbox/gitroot/research.git
cd research
ls &gt;&gt; testfile.txt
git commit -m &quot;just testing&quot;
git push dropbox master
git pull dropbox master
</pre></code> </blockquote>
<p>For the first computer, once you fill the bare repo with some stuff, you can
delete the folder and do a clone like how you did with the second computer.</p> ]]></content:encoded>
      <dc:subject>computing</dc:subject>
      <dc:date>2011-08-14T23:38:34+05:00</dc:date>
    </item>

    <item>
      <title>Quick Start: Git for personal use</title>
      <link>http://vsbabu.org/mt/archives/2011/08/02/quick_start_git_for_personal_use.html</link>
      <description>Manual is too damn long for Git. If you&apos;ve this problem, here is a quick recipe. (386 Words)</description>
      <guid isPermaLink="false">1074@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
Problem: Needed to find a way to keep my config and research files under version control which I can get to
various machines I work with and update from anywhere.
</p>

<ul>
<li>I have an OpenBSD server account (no root though)</li>
<li>I don't want to run any additional daemon process or expose it via http</li>
<li>I can download and compile source if it can be installed as a non root account</li>
<li>Transport must be via SSH</li>
<li>I don't need GUI tools, speed should be reasonable</li>
</ul>

<p>
Tried <a href="http://mercurial.selenic.com/">Mercurial</a>, <a href="http://darcs.net/">Darcs</a>, <a href="http://bazaar.canonical.com/">Bazaar</a> and <a href="http://git-scm.com/">Git</a>. <a href="http://fossil-scm.org/">Fossil</a> is also a great tool that provides wiki, version control and ticket management. Darcs is the easiest, but for some reason, extremely slow. Finally chose Git.  
Download and compile was easy. Read top 3 lines in the <tt>INSTALL</tt> file in source distribution for steps.
Rest of the steps explain how I set it up. Note that this may not be the best possible Git workflow. Merely that it works for me. Note that I've installed git in <tt>~/software/git</tt>.
</p>
]]></content:encoded>
      <dc:subject>programming</dc:subject>
      <dc:date>2011-08-02T23:50:49+05:00</dc:date>
    </item>

    <item>
      <title>Quick script to maintain a diary</title>
      <link>http://vsbabu.org/mt/archives/2010/07/30/quick_script_to_maintain_a_diary.html</link>
      <description>This is easy in bash; posting it to help people stuck in Windows XP. (212 Words)</description>
      <guid isPermaLink="false">1073@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
I like to keep my daily notes in a folder in the filesystem with filenames <tt>yyyymmdd.otl</tt>, using <a href="http://bike-nomad.com/vim/vimoutliner.html">VIM Outliner</a>. Here is a small DOS script to make a file for a day if it doesn't exist and then open it. Name it as <tt>diary.cmd</tt> and keep in your path.
</p>]]></content:encoded>
      <dc:subject>work</dc:subject>
      <dc:date>2010-07-30T11:30:28+05:00</dc:date>
    </item>

    <item>
      <title>Bicycle Diaries - I</title>
      <link>http://vsbabu.org/mt/archives/2010/05/03/bicycle_diaries_i.html</link>
      <description>After 17 years of deskbound job, decided to add some fitness activity to life. First scrum lessons learned. (1002 Words)</description>
      <guid isPermaLink="false">1072@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
Once I entered work life, physical activity was pretty much restricted to keyboard and mousing. I hate running. I like only Cricket, Badminton and Table Tennis for sports. All need others to be available. I love to swim, but in Bangalore where I stay, it is not very convenient. I used to enjoy cycling when I was in school. Some six months ago, bought one (Hercules ACT 104). Rode it on and off for 4-5 short trips. While it is enjoyable, I never stuck to a routine. Since I am on vacation now, I thought I will attack it as a 2 week project and see if I can actually do it.
</p>

<p>
If you are a fitness freak, don't bother. I am talking about 5km as a goal - if you routinely do 15km+, you might find this quite boring.
</p>]]></content:encoded>
      <dc:subject>living</dc:subject>
      <dc:date>2010-05-03T10:41:02+05:00</dc:date>
    </item>

    <item>
      <title>Simple MongoDB+Java example</title>
      <link>http://vsbabu.org/mt/archives/2010/03/02/simple_mongodbjava_example.html</link>
      <description>Starter Java code to use MongoDB. (337 Words)</description>
      <guid isPermaLink="false">1071@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
<a href="http://www.mongodb.org/">MongoDB</a> is pretty slick for ease of use and scalability. As part of figuring out how to interface with MongoDB, I wrote a simple Java class that gives you an idea about how to create a collection and do CRUD on that. See below. Quite a bit of information is available on the web, but I thought a sample that shows off all the basic things will be useful. Good link - <a href="http://blog.boxedice.com/2010/02/28/notes-from-a-production-mongodb-deployment/">notes from a production mongoDB deployment</a>
</p>]]></content:encoded>
      <dc:subject>java</dc:subject>
      <dc:date>2010-03-02T15:03:54+05:00</dc:date>
    </item>

    <item>
      <title>Cisco&apos;s new urbanism</title>
      <link>http://vsbabu.org/mt/archives/2010/02/21/ciscos_new_urbanism.html</link>
      <description>Part of Orwell&apos;s 1984 is now finally happening in 2015 (39 Words)</description>
      <guid isPermaLink="false">1070@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
Fast Company's article about <a href="http://www.fastcompany.com/magazine/142/the-new-new-urbanism.html">Cisco's vision for New Songdo</a> is a fascinating read on smart cities. Perhaps all connected, with all the apartments being able to do lot with network via <a href="http://www.openpeak.com/">great functional phones</a> feeding off <a href="http://www.simplikate.com/">mobile platforms</a>?
</p>]]></content:encoded>
      <dc:subject>computing</dc:subject>
      <dc:date>2010-02-21T11:17:41+05:00</dc:date>
    </item>

    <item>
      <title>Labelling in Outlook 2003 ala Gmail</title>
      <link>http://vsbabu.org/mt/archives/2010/02/21/labelling_in_outlook_2003_ala_gmail.html</link>
      <description>Extend Outlook 2003 to easily categorize mails. (279 Words)</description>
      <guid isPermaLink="false">1069@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
I found that moving mails into project folders, when the mails are still on an open topic takes too much time. Gmail's "label" idiom really helps in this situation. Turns out we can do that with Outlook 2003 too with some small macro work. First, see my <a href="/mt/archives/2009/06/15/outlook_2003_flags_todo_list.html">entry on how to put macros and arrange toolbar in Outlook 2003</a>. Then add the following macro to the module. Duplicate the second subroutine to as many as you've categories and then put toolbar entries for each of those. I think you should be able to do with less than 10 categories. At times you may get mails on an old subject, which you can just read and act and archive directly without tracking it.
</p>

<blockqoute><code><pre>
Sub SetCategory(strCat As String)
   Dim Item As Object
   Dim SelectedItems As Selection
   Set SelectedItems = Outlook.ActiveExplorer.Selection
   For Each Item In SelectedItems
   With Item
    .Categories = strCat
    .Save
    End With
   Next Item
End Sub

Sub SetCategoryAdmin()
    SetCategory ("Admin")
End Sub
</pre></code></blockquote>]]></content:encoded>
      <dc:subject>project_management</dc:subject>
      <dc:date>2010-02-21T11:01:21+05:00</dc:date>
    </item>

    <item>
      <title>Quick Bazaar on Windows over SSH</title>
      <link>http://vsbabu.org/mt/archives/2010/01/09/quick_bazaar_on_windows_over_ssh.html</link>
      <description>Easy notes on Bazaar+sftp (176 Words)</description>
      <guid isPermaLink="false">1068@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
Quick notes on how to set up a version control system using <a href="http://bazaar-vcs.org/">Bazaar</a> with just SFTP and Windows client.
</p>

<ul><li>Get a Unix/Linux machine that you've an account and that supports SSH.</li>
<li>Create a directory, say <tt>/home/loginid/repository</tt></li>
<li>On your Windows machine, download pageant.exe and puttygen.exe (at a minimum) from <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTy</a> site.</li>
<li>Start puttygen.exe, generate your private and public key pair. Save private key somewhere. <tt>C:\Documents and Settings\<username>\.ssh\id_rsa</tt> is a good choice. Exit puttygen.exe.</li>
<li>In your server, make a <tt>.ssh</tt> directory, create a new file called <tt>authorized_keys</tt>, paste the public key into that file without any line breaks.</li>
<li>Start pageant.exe. Right click on the icon (terminal with a hat) on the system tray, add key and choose the private key file.</li>
<li>Download and install Bazaar Windows version.</li>
<li>Start it Bzr in command line.</li>
<li>Create the remote repository like <tt>bzr init sftp://username@remote/home/loginid/repository</tt></li>
<li>Create a local directory, create a repository there too.</li>
<li>Add some files to local repository.</li>
<li>When you want to push it up to remote, do <tt>bzr push sftp://username@remote/home/loginid/repository</tt></li></ul>

<p>
For more info, <a href="http://doc.bazaar.canonical.com/bzr.2.0/en/user-guide/publishing_a_branch.html">read Bazaar doc</a>.
</p>]]></content:encoded>
      <dc:subject></dc:subject>
      <dc:date>2010-01-09T09:05:56+05:00</dc:date>
    </item>

    <item>
      <title>Do not use GET for form processing!</title>
      <link>http://vsbabu.org/mt/archives/2009/11/26/do_not_use_get_for_form_processing.html</link>
      <description>DON&apos;T. Double check your form tag for explicit method=&quot;POST&quot; (155 Words)</description>
      <guid isPermaLink="false">1067@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
I thought everyone knew this. But recently I went to a site -- that is written by really smart Unix guys -- and was shocked to find that every single form is posted via "GET". Not "POST". This includes login form, billing information form (yes, the one with your credit card#) etc. It is absolutely insecure. Yes, the server is under HTTPS, but that is of no use here.
</p>

<p>
Why is it insecure? When you do a GET all the parameters are in the URL, in plain text. And the URL gets stamped in your browser history, web server access logs (we may be able to assume that the server is reasonably secure) and more scarily, in the logs of any proxy servers that are in the route. 
</p>]]></content:encoded>
      <dc:subject>www</dc:subject>
      <dc:date>2009-11-26T18:17:45+05:00</dc:date>
    </item>

    <item>
      <title>Portable development links</title>
      <link>http://vsbabu.org/mt/archives/2009/11/12/portable_development_links.html</link>
      <description>Random links that might be useful later (20 Words)</description>
      <guid isPermaLink="false">1066@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<ul><li><a href="http://teapoci.blogspot.com/2008/02/portable-ruby-as-easy-as-ruby-did.html">Portable Ruby installation</a></li>
<li><a href="http://sites.google.com/site/devinsezer/Home/software/portable-cygwin">Portable Cygwin</a></li>
<li><a href="http://rubyforge.org/projects/flashrails">Flash Rails</a></li>
<li><a href="http://www.portablepython.com/">Portable Python</a></li>
<li><a href="http://www.pendriveapps.com/portable-java-run-java-from-a-flashdrive/">Portable JDK</a> or <a href="http://www.vasanth.in/2009/07/02/portable-eclipse-and-portable-java/">Portable Eclipse with Java</a></li>
<li><a href="http://portableapps.com/apps/development">Portable Apps - Development</a></li></ul>]]></content:encoded>
      <dc:subject>computing</dc:subject>
      <dc:date>2009-11-12T18:47:07+05:00</dc:date>
    </item>

    <item>
      <title>Wish I had this 10 years ago</title>
      <link>http://vsbabu.org/mt/archives/2009/11/09/wish_i_had_this_10_years_ago.html</link>
      <description> Pipe Viewer via IBM dW In 1995, I got into a data warehouse project and all the ETL was... (32 Words)</description>
      <guid isPermaLink="false">1065@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
<a href="http://www.ivarch.com/programs/pv.shtml">Pipe Viewer</a> via <a href="http://www.ibm.com/developerworks/aix/library/au-spunix_pipeviewer/?S_TACT=105AGX01&S_CMP=HP">IBM dW</a>
</p>
<p>
In 1995, I got into a data warehouse project and all the ETL was through some bunch of shell utilities followed by sql*loader. This certainly would've helped!
</p>]]></content:encoded>
      <dc:subject>computing</dc:subject>
      <dc:date>2009-11-09T13:14:55+05:00</dc:date>
    </item>

    <item>
      <title>SVN client over SSH to remote Unix server from Windows</title>
      <link>http://vsbabu.org/mt/archives/2009/11/05/svn_client_over_ssh_to_remote_unix_server_from_windows.html</link>
      <description>Quick notes on SVN client over SSH (470 Words)</description>
      <guid isPermaLink="false">1064@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
I needed to get a quick way to work with a personal version control system accessible from multiple computers running Linux or Windows. Ideally, I'd have liked to use <a href="http://mercurial.selenic.com/">Mercurial</a> (light, easy, no great GUI available) or <a href="http://bazaar-vcs.org/">Bazaar</a> (thicker, slower, good renaming capabilities, just about the best GUI available) or <a href="http://git-scm.com/">Git </a>(fast, not a bad GUI, portable MSYS port is pretty good). However, my hosting provider provides
only CVS or Subversion and I didn't want to install any of the above ones from source under my account. Nor do I want to run any server for this. Things should work with plain SSH. Initial approach was to
create an SVN repository on the server and then access this from my computers using SSH. I tried getting <tt>svn+ssh</tt> pull for all of these above and couldn't get to work quickly enough on my Windows XP box. Had to then settle for an SVN client. Turns out that it is little tricky. Given below are the quick steps I followed to get this working.
</p>

<p>
Just a personal preference - I don't prefer using any of the <em>Tortoise*</em>GUIs. GUI as such is fairly nice, but I don't generally like installing shell extensions on Windows. Ideal solution for me would've been the ability for any of these to init a repository on a remote filesystem by SSH - couldn't find it out though.
</p>]]></content:encoded>
      <dc:subject>programming</dc:subject>
      <dc:date>2009-11-05T19:20:41+05:00</dc:date>
    </item>

    <item>
      <title>Associate filetypes to VIM</title>
      <link>http://vsbabu.org/mt/archives/2009/11/02/associate_filetypes_to_vim.html</link>
      <description>Life saver! (23 Words)</description>
      <guid isPermaLink="false">1063@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
This has to be the best VIM tip for Windows - <a href="http://vim.wikia.com/wiki/Windows_file_associations">Windows File Associations</a>. For example:
</p>

<blockquote><tt><pre>
assoc .otl=outliner
ftype outliner=c:\tools\vim\vim72\gvim.exe --remote-silent "%1"
</pre></tt></blockquote>]]></content:encoded>
      <dc:subject>computing</dc:subject>
      <dc:date>2009-11-02T06:42:40+05:00</dc:date>
    </item>


  </channel>
</rss>


