<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ArvinderKang.com &#187; Programming</title>
	<atom:link href="http://arvinderkang.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://arvinderkang.com</link>
	<description>The world is my backyard.</description>
	<lastBuildDate>Thu, 29 Jul 2010 22:58:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Upload recipe using Net::SCP</title>
		<link>http://arvinderkang.com/2009/11/01/upload-recipe-using-netscp/</link>
		<comments>http://arvinderkang.com/2009/11/01/upload-recipe-using-netscp/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 23:11:58 +0000</pubDate>
		<dc:creator>Arvinder Kang</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[net-scp]]></category>
		<category><![CDATA[rake]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://arvinderkang.com/2009/11/01/upload-recipe-using-netscp/</guid>
		<description><![CDATA[Sharing a simple ruby recipe to automate uploads of static website, if rsync is giving you problems(like with my school web server). This script uses Net::SCP. Net::SCP is a pure-Ruby implementation of the SCP protocol. This operates over SSH (and &#8230; <a href="http://arvinderkang.com/2009/11/01/upload-recipe-using-netscp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sharing a simple ruby recipe to automate uploads of static website, if <a href="http://tatey.com/2009/10/29/simpler-deployment-for-jekyll-using-a-rakefile-and-rsync.html" title="Simpler deployment for Jekyll using a Rakefile and rsync">rsync</a> is giving you problems(like with my school web server). This script uses <a href="http://github.com/jamis/net-scp" title="jamis's net-scp at master - GitHub">Net::SCP</a>.</p>

<pre><code>Net::SCP is a pure-Ruby implementation of the SCP protocol. This operates over SSH (and requires the Net::SSH library), and allows files and directory trees to copied to and from a remote server.
</code></pre>

<p>This solution lies somewhere between manually uploading and fully automation using <a href="http://www.capify.org/" title="Capistrano">Capistrano</a> or <a href="http://rubyhitsquad.com/Vlad_the_Deployer.html" title="Vlad the Deployer">Vlad</a>.</p>

<script src="http://gist.github.com/223781.js"></script>
]]></content:encoded>
			<wfw:commentRss>http://arvinderkang.com/2009/11/01/upload-recipe-using-netscp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Automating Drupal workflow using Git and Drush</title>
		<link>http://arvinderkang.com/2009/10/29/automating-drupal-workflow-using-git-and-drush/</link>
		<comments>http://arvinderkang.com/2009/10/29/automating-drupal-workflow-using-git-and-drush/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 23:53:16 +0000</pubDate>
		<dc:creator>Arvinder Kang</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[automate]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[drush]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://arvinderkang.com/2009/10/29/automating-drupal-workflow-using-git-and-drush/</guid>
		<description><![CDATA[Update Nov 11, 2009: Updated the script to accept username and server name as arguments and to print syntax help if no argument is passed. It would eliminate to modify script for different servers. Drupal rocks for some things, its &#8230; <a href="http://arvinderkang.com/2009/10/29/automating-drupal-workflow-using-git-and-drush/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Update Nov 11, 2009</strong>: <em>Updated the script to accept username and server name as arguments and to print syntax help if no argument is passed. It would eliminate to modify script for different servers.</em></p>

<p>Drupal rocks for some things, its deployment sucks! As I automate my drupal workflows better, I should post them one by one.</p>

<p>Following is the my bash script recipe, for installing drupal, checking it into a git repository and replicating it remotely.</p>

<p>The second piece of puzzle should be automating MySQL backup and deployment using either Capistrano or Vlad.</p>

<p><span id="more-199"></span>
<script src="http://gist.github.com/221965.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://arvinderkang.com/2009/10/29/automating-drupal-workflow-using-git-and-drush/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Installing Scala on Snow Leopard</title>
		<link>http://arvinderkang.com/2009/09/01/installing-scala-on-snow-leopard/</link>
		<comments>http://arvinderkang.com/2009/09/01/installing-scala-on-snow-leopard/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 21:28:40 +0000</pubDate>
		<dc:creator>Arvinder Kang</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[scala]]></category>
		<category><![CDATA[snow leopard]]></category>

		<guid isPermaLink="false">http://arvinderkang.com/2009/09/01/installing-scala-on-snow-leopard/</guid>
		<description><![CDATA[These are instructions for quickly installing Scala. Scala is a general purpose language almost completely interoperable with Java, and having features of object-oriented and functional languages. I installed Scala in /usr/local , the reason for which can be found here. &#8230; <a href="http://arvinderkang.com/2009/09/01/installing-scala-on-snow-leopard/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>These are instructions for quickly installing <a href="http://www.scala-lang.org/" title="The Scala Programming Language">Scala</a>. Scala is a general purpose language almost completely interoperable with Java, and having features of object-oriented and functional languages.</p>

<p>I installed Scala in <code>/usr/local</code> , the reason for which can be found <a href="http://hivelogic.com/articles/using_usr_local/" title="Hivelogic - Using /usr/local">here</a>.</p>

<p><span id="more-195"></span></p>

<h2>Prerequisite</h2>

<p>Before starting installation, you will need **:</p>

<ol>
<li>Mac OS X 10.6 Snow Leopard </li>
<li>The latest Xcode Tools (from the Snow Leopard DVD or downloaded from Apple — the 10.5 version won’t work)</li>
<li>Confidence running UNIX commands using the Terminal</li>
</ol>

<h2>Step 1: The PATH</h2>

<p>Launch Terminal from <code>/Applications/Utilities</code> folder.</p>

<p>First lets set the PATH variable using a text editor. I use <a href="http://macromates.com/" title="TextMate — The Missing Editor for Mac OS X">Textmate</a> (hence the <code>mate</code> command). You can use Textmate, <a href="http://smultron.sourceforge.net/" title="Smultron by Peter Borg">Smultron</a> or <a href="http://www.vim.org/" title="welcome home : vim online">vim</a>.</p>

<pre><code>mate ~/.bash_profile
</code></pre>

<p>At the end of this file add(even if it is blank)</p>

<pre><code>export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/scala/scala-2.7.5.final/bin:$PATH"
</code></pre>

<p>Save and close the file. Close the Terminal. On restarting the terminal, enter following command:</p>

<pre><code>echo $PATH
</code></pre>

<p>We should be able to see <code>/usr/local/scala/scala-2.7.5.final/bin</code> as one of the paths. Note: If we were compiling scala, we would prefer its binaries to be at <code>/usr/local/bin/scala</code>. However we are taking the easier route.</p>

<h2>Step 2: Download Scala</h2>

<p>I keep all my software installers that I install away from Application folder, in a folder in home directory.</p>

<p>Make a new folder:</p>

<pre><code>mkdir ~/SourceFolder
cd ~/SourceFolder
</code></pre>

<p>Download scala IzPack Installer:</p>

<pre><code>curl -O http://www.scala-lang.org/downloads/distrib/files/scala-2.7.5.final-installer.jar
</code></pre>

<h2>Step 3: Install</h2>

<p>The installer needs administrator permission. Hence install by double click would not complete due to permissions issue.</p>

<p>On the Terminal:</p>

<pre><code>sudo java -jar scala-2.7.5.final-installer.jar
</code></pre>

<p>Type in the password when prompted. Installer GUI would start</p>

<p><img src="http://arvinderkang.com/wp-content/uploads/2009/09/scala_installer_1.png" alt="Scala Installer 1" /></p>

<p>Choose language.</p>

<p><img src="http://arvinderkang.com/wp-content/uploads/2009/09/scala_installer_2.png" alt="Scala Installer 2" /></p>

<p>Goto next.</p>

<p><img src="http://arvinderkang.com/wp-content/uploads/2009/09/scala_installer_3.png" alt="Scala Installer 3" /></p>

<p>Read and accept the license.</p>

<p><img src="http://arvinderkang.com/wp-content/uploads/2009/09/scala_installer_4.png" alt="Scala Installer 4" /></p>

<p>By default, the installer will install in <code>/usr/local/</code>. However choose <code>/usr/local/scala/</code>, otherwise the installer tends to overwrite <code>/usr/local</code>.</p>

<p><img src="http://arvinderkang.com/wp-content/uploads/2009/09/scala_installer_5.png" alt="Scala Installer 5" /></p>

<p>Scala is installer.</p>

<p>To verify, we&#8217;ll run Scala interpreter:</p>

<pre><code>scala
</code></pre>

<p>On my machine, it shows:</p>

<pre><code>Welcome to Scala version 2.7.5.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_15).
Type in expressions to have them evaluated.
Type :help for more information.

scala&gt;
</code></pre>

<p>Type <code>:quit</code> to exit from the interpreter.</p>

<p>Scala is installed on Snow Leopard.</p>

<p>&#42; The writing style of tutorial is shamelessly inspired by <a href="http://hivelogic.com/" title="Hivelogic">Hivelogic</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://arvinderkang.com/2009/09/01/installing-scala-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A simple shell trick</title>
		<link>http://arvinderkang.com/2008/08/20/a-simple-shell-trick/</link>
		<comments>http://arvinderkang.com/2008/08/20/a-simple-shell-trick/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 20:24:31 +0000</pubDate>
		<dc:creator>Arvinder Kang</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[du]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://arvinderkang.com/2008/08/20/a-simple-shell-trick/</guid>
		<description><![CDATA[Here is shell a trick that I used lately. Before moving to new system (where I enforce quotas on all home folders), I had portable home directories for all the users on my shared server storage. The old setup did &#8230; <a href="http://arvinderkang.com/2008/08/20/a-simple-shell-trick/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is shell a trick that I used lately.</p>

<p>Before moving to new system (where I enforce quotas on all home folders), I had <a href="http://www.makemacwork.com/portable-home-directories-1.htm" title="Portable Home Directories &#8212; Part 1 : Make Mac Work">portable home directories</a> for all the users on my shared server storage. The old setup did not strictly apply the quota limits on all users. Some of the users had large home folders and a couple of them logging on different systems, would fill up the whole hard disk on that system.</p>

<p>To find out how much space each user was using on the server, I ran the following command in their home directory.</p>

<pre><code>$ du -chd -1 &gt; $HOME/user_space_report.txt
</code></pre>

<p>Simple.</p>
]]></content:encoded>
			<wfw:commentRss>http://arvinderkang.com/2008/08/20/a-simple-shell-trick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git Configurations</title>
		<link>http://arvinderkang.com/2008/08/05/git-configurations/</link>
		<comments>http://arvinderkang.com/2008/08/05/git-configurations/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 21:08:24 +0000</pubDate>
		<dc:creator>Arvinder Kang</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://arvinderkang.com/2008/08/05/git-configurations/</guid>
		<description><![CDATA[I have started using Git over Subversion. Following is the list of my git configurations. Globally ignore .DS/_Store echo ".DS_Store" &#62;&#62; ~/.gitignore git config --global core.excludesfile ~/.gitignore Information about me and my email goes here. git config --global user.name "My &#8230; <a href="http://arvinderkang.com/2008/08/05/git-configurations/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have started using <a href="http://git.or.cz/" title="Git - Fast Version Control System">Git</a> over <a href="http://subversion.tigris.org/" title="subversion.tigris.org">Subversion</a>. Following is the list of my git configurations.</p>

<p><span id="more-101"></span>
Globally ignore <a href="http://en.wikipedia.org/wiki/.DS_Store" title=".DS_Store - Wikipedia, the free encyclopedia">.DS/_Store</a></p>

<pre><code>echo ".DS_Store" &gt;&gt; ~/.gitignore
git config --global core.excludesfile ~/.gitignore
</code></pre>

<p>Information about me and my email goes here.</p>

<pre><code>git config --global user.name "My name"
git config --global user.email me@olemiss.edu
</code></pre>

<p>I love colors</p>

<pre><code>git config --global color.branch auto
git config --global color.diff auto
git config --global color.interactive auto
git config --global color.status auto
</code></pre>

<p>And I love <a href="http://macromates.com/" title="TextMate — The Missing Editor for Mac OS X">TextMate</a></p>

<pre><code>git config --global core.editor "mate -w"
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://arvinderkang.com/2008/08/05/git-configurations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>curl vs wget</title>
		<link>http://arvinderkang.com/2008/08/02/curl-vs-wget/</link>
		<comments>http://arvinderkang.com/2008/08/02/curl-vs-wget/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 10:12:07 +0000</pubDate>
		<dc:creator>Arvinder Kang</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://arvinderkang.com/2008/08/02/curl-vs-wget/</guid>
		<description><![CDATA[Coming from Linux background, while working on OS X shell, I still cannot abandon my old Linux habits. A common one is trying to use wget instead of curl for downloading stuff. Just out just curiosity, I was wondering why &#8230; <a href="http://arvinderkang.com/2008/08/02/curl-vs-wget/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://arvinderkang.com/wp-content/uploads/2008/08/linux-mac.jpg" alt="Linux mac" /></p>

<p>Coming from Linux background, while working on <a href="http://www.apple.com/macosx/" title="Apple - Mac OS X Leopard">OS X</a> shell, I still cannot abandon my old Linux habits. A common one is trying to use <a href="http://www.gnu.org/software/wget/" title="GNU Wget">wget</a> instead of <a href="http://curl.haxx.se/" title="cURL and libcurl">curl</a> for downloading stuff.</p>

<p>Just out just curiosity, I was wondering why OS X supports curl, but no wget in the OS.</p>

<p>I came across <a href="http://daniel.haxx.se/docs/curl-vs-wget.html" title="curl vs Wget">this interesting page doing comparison of the two</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://arvinderkang.com/2008/08/02/curl-vs-wget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing RMagick on OS X Leopard</title>
		<link>http://arvinderkang.com/2008/08/01/installing-rmagick-on-os-x-leopard/</link>
		<comments>http://arvinderkang.com/2008/08/01/installing-rmagick-on-os-x-leopard/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 08:26:37 +0000</pubDate>
		<dc:creator>Arvinder Kang</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ImageMagick]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[RMagick]]></category>

		<guid isPermaLink="false">http://arvinderkang.com/2008/08/02/installing-rmagick-on-os-x-leopard/</guid>
		<description><![CDATA[I work with Ruby on Leopard and and I need RMagick. If you are a programmer and don&#8217;t know what RMagick is, you should know how code can melt your picture into art in Ruby:). Thanks to Onrails.org for the &#8230; <a href="http://arvinderkang.com/2008/08/01/installing-rmagick-on-os-x-leopard/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://arvinderkang.com/wp-content/uploads/2008/08/rmagick-clown.jpg" alt="Rmagick Clown" /></p>

<p>I work with Ruby on Leopard and and I need <a href="http://rmagick.rubyforge.org/" title="RMagick Download Page">RMagick</a>.</p>

<p>If you are a programmer and don&#8217;t know what RMagick is, you should know <a href="http://rmagick.rubyforge.org/portfolio2.html" title="RMagick Portfolio (page 2)">how code can melt your picture into art in Ruby:)</a>.</p>

<p><span id="more-88"></span>
Thanks to <a href="http://onrails.org/articles/2007/11/03/installing-rmagick-on-leopard-without-macports-or-fink" title="Installing RMagick on Leopard (without MacPorts or Fink)">Onrails.org for the starting script</a>, I have removed some cruft and added some spice.</p>

<p>RMagicK install tastes good with <a href="http://www.brewhighpoint.com/" title="Buy High Point Coffee">freshly brewed UpTown coffee</a>.</p>

<pre><code>#!/bin/sh
mkdir -p ~/Scripts
cd ~/Scripts
if [ -d ImageMagickInstall ]
then
# remove old ImageMagickInstall directory if it exists 
   rm -rf ImageMagickInstall
fi
cd ~/Scripts/ImageMagickInstall

curl -O http://download.savannah.gnu.org/releases/freetype/freetype-2.3.5.tar.gz
tar xzvf freetype-2.3.5.tar.gz
cd freetype-2.3.5
./configure --prefix=/usr/local
make
sudo make install
cd ..

curl -O http://superb-west.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.22.tar.bz2
tar jxvf libpng-1.2.22.tar.bz2
cd libpng-1.2.22
./configure --prefix=/usr/local
make
sudo make install
cd ..

curl -O ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
tar xzvf jpegsrc.v6b.tar.gz
cd jpeg-6b
ln -s `which glibtool` ./libtool
export MACOSX_DEPLOYMENT_TARGET=10.5
./configure --enable-shared --prefix=/usr/local
make
sudo make install
cd ..

curl -O ftp://ftp.remotesensing.org/libtiff/tiff-3.8.2.tar.gz
tar xzvf tiff-3.8.2.tar.gz
cd tiff-3.8.2
./configure --prefix=/usr/local
make
sudo make install
cd ..

curl -O http://jaist.dl.sourceforge.net/sourceforge/wvware/libwmf-0.2.8.4.tar.gz
tar xzvf libwmf-0.2.8.4.tar.gz
cd libwmf-0.2.8.4
make clean
./configure
make
sudo make install
cd ..

curl -O http://www.littlecms.com/lcms-1.17.tar.gz
tar xzvf lcms-1.17.tar.gz
cd lcms-1.17
make clean
./configure
make
sudo make install
cd ..

curl -O http://ufpr.dl.sourceforge.net/sourceforge/ghostscript/ghostscript-8.60.tar.gz
tar zxvf ghostscript-8.60.tar.gz
cd ghostscript-8.60/
./configure  --prefix=/usr/local
make
sudo make install
cd ..

curl -O http://ufpr.dl.sourceforge.net/sourceforge/ghostscript/ghostscript-fonts-std-8.11.tar.gz
tar zxvf ghostscript-fonts-std-8.11.tar.gz
sudo mv fonts /usr/local/share/ghostscript

curl -O http://internap.dl.sourceforge.net/sourceforge/imagemagick/ImageMagick-6.4.2-5.tar.gz
tar xzvf ImageMagick-universal-apple-darwin9.4.0.tar.gz
cd ImageMagick-6.4.2.2
export CPPFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --with-gs-font-dir=/usr/local/share/ghostscript/fonts
make
sudo make install
cd ..

sudo gem install RMagick
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://arvinderkang.com/2008/08/01/installing-rmagick-on-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Git remote pushing</title>
		<link>http://arvinderkang.com/2008/07/19/git-remote-pushing/</link>
		<comments>http://arvinderkang.com/2008/07/19/git-remote-pushing/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 05:09:27 +0000</pubDate>
		<dc:creator>Arvinder Kang</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://arvinderkang.com/2008/07/20/git-remote-pushing/</guid>
		<description><![CDATA[For the last half an hour I have been playing with Git. Project I&#8217;m working on my laptop is version tracked by git. However what is the fun of using version control without a remote server. As soon as I &#8230; <a href="http://arvinderkang.com/2008/07/19/git-remote-pushing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For the last half an hour <a href="http://toolmantim.com/article/2007/12/5/setting_up_a_new_rails_app_with_git" title="Setting up a new Rails app with Git">I have been playing with Git</a>. Project I&#8217;m working on my laptop is version tracked by git. However <a href="http://www.oss-watch.ac.uk/resources/versioncontrol.xml" title="OSS Watch -  What is version control? Why is it important for due diligence?">what is the fun of using version control</a> without a remote server.</p>

<p>As soon as I pushed my project directory to my remote OS X Tiger server, I got the following error.</p>

<pre>
    bash: line 1: git-receive-pack: command not found
    fatal: The remote end hung up unexpectedly
</pre>

<p>Google <a href="http://www.bluestatic.org/blog/2007/08/01/git-public-push-ing/" title="Blue Static - Blue Static Development  &raquo; Blog Archive   &raquo; Git Public push-ing Woes Resolved">comes to rescue</a>.</p>

<pre>
    Many installations of sshd do not invoke your shell as the login shell when you directly run programs; what this means is that if your login shell is bash, only .bashrc is read and not .bash_profile. As a workaround, make sure .bashrc sets up $PATH so that you can run git-receive-pack program.
</pre>

<p>Running following two lines solved the problem.</p>

<pre><code>echo export PATH=/usr/local/bin:$PATH &gt;&gt; ~/.bashrc
source ~/.bashrc
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://arvinderkang.com/2008/07/19/git-remote-pushing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What goes where? Filesystem hierarchy in Unix/Linux/OS X</title>
		<link>http://arvinderkang.com/2008/07/19/what-goes-where-filesystem-hierarchy-in-unixlinuxos-x/</link>
		<comments>http://arvinderkang.com/2008/07/19/what-goes-where-filesystem-hierarchy-in-unixlinuxos-x/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 13:03:02 +0000</pubDate>
		<dc:creator>Arvinder Kang</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[File System Hierarchy]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://arvinderkang.com/2008/07/19/what-goes-where-filesystem-hierarchy-in-unixlinuxos-x/</guid>
		<description><![CDATA[Although it is one of the first chapters one read when starting with Linux/Unix, it is always confusing where should we put what when it comes to installing stuff on Linux/OS X computers. I found a detailed reference Filesystem Hierarchy &#8230; <a href="http://arvinderkang.com/2008/07/19/what-goes-where-filesystem-hierarchy-in-unixlinuxos-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://arvinderkang.com/wp-content/uploads/2008/07/unix-filesystem-hierarchy.jpg" alt="Unix Filesystem Hierarchy" /></p>

<p>Although it is one of the first chapters one read when starting with Linux/Unix, it is always confusing where should we put what when it comes to installing stuff on Linux/OS X computers.</p>

<p>I found a detailed reference <a href="http://www.pathname.com/fhs/" title="Filesystem Hierarchy Standard">Filesystem Hierarchy standard website</a>.</p>

<p>It is also worth knowing, <a href="http://hivelogic.com/articles/2005/11/using_usr_local" title="Hivelogic - Using /usr/local">why is it important to store any new customized apps in /usr/local</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://arvinderkang.com/2008/07/19/what-goes-where-filesystem-hierarchy-in-unixlinuxos-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Git on Rails project</title>
		<link>http://arvinderkang.com/2008/07/18/using-git-on-rails-project/</link>
		<comments>http://arvinderkang.com/2008/07/18/using-git-on-rails-project/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 13:46:15 +0000</pubDate>
		<dc:creator>Arvinder Kang</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Tiger]]></category>

		<guid isPermaLink="false">http://arvinderkang.com/2008/07/18/using-git-on-rails-project/</guid>
		<description><![CDATA[After watching Linus Torvalds speaking for Git, and the popularity of Github, I am giving git a try. I have been using Subversion for a while, so things moved pretty smoothly. Steps I took to install Git on OS X &#8230; <a href="http://arvinderkang.com/2008/07/18/using-git-on-rails-project/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After watching <a href="http://www.youtube.com/watch?v=4XpnKHJAok8" title="YouTube - Tech Talk: Linus Torvalds on git">Linus Torvalds speaking for Git</a>, and the popularity of <a href="http://github.com/" title="Secure Git hosting and collaborative development &mdash; GitHub">Github</a>, I am giving <a href="http://git.or.cz/" title="Git - Fast Version Control System">git</a> a try. I have been using <a href="http://subversion.tigris.org/" title="subversion.tigris.org">Subversion</a> for a while, so things moved pretty smoothly.</p>

<p><span id="more-77"></span></p>

<p>Steps I took to install Git on OS X Tiger server are as follows (<a href="http://larrytheliquid.com/2007/12/29/compiling-git-and-git-svn-on-osx-tiger/" title="larrytheliquid  &raquo; Blog Archive   &raquo; Compiling Git and git-svn on OSX Tiger">Thanks to LarrytheLiquid</a>):</p>

<pre><code>cd /usr/local/src
</code></pre>

<p>Next lets install an XML parser dependency, Git, and it’s man pages:</p>

<pre><code>curl -O http://surfnet.dl.sourceforge.net/sourceforge/expat/expat-2.0.1.tar.gz
tar xvzf expat-2.0.1.tar.gz
cd expat-2.0.1
./configure --prefix=/usr/local
make
sudo make install
cd..

curl -O http://kernel.org/pub/software/scm/git/git-1.5.3.7.tar.gz
tar xvzf git-1.5.3.7.tar.gz
cd git-1.5.3.7
./configure --prefix=/usr/local
make
sudo make install
cd ..

curl -O http://www.kernel.org/pub/software/scm/git/git-manpages-1.5.3.7.tar.bz2
sudo tar xjv -C /usr/local/man -f git-manpages-1.5.3.7.tar.bz2
</code></pre>

<p>Add the following environment variable to whatever file your shell uses (.bash_profile for BASH):</p>

<pre><code>export MANPATH="/usr/local/man:$MANPATH"
</code></pre>

<p>One last line to add</p>

<pre><code>export PATH="/usr/local/bin:$PATH"
</code></pre>

<p>Git Installed. Check installed version.</p>

<pre><code>git --version
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://arvinderkang.com/2008/07/18/using-git-on-rails-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->