<?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>twi.gs &#187; Programming</title>
	<atom:link href="http://twi.gs/tags/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://twi.gs</link>
	<description>lazy confessions</description>
	<lastBuildDate>Tue, 30 Mar 2010 04:02:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Git aware bash prompt</title>
		<link>http://twi.gs/ramblings/git-aware-bash-prompt/</link>
		<comments>http://twi.gs/ramblings/git-aware-bash-prompt/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 05:44:09 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ramblings]]></category>

		<guid isPermaLink="false">http://twi.gs/?p=99</guid>
		<description><![CDATA[Browsing for something on the google earlier today, I ran across a way to set up a git branch aware bash prompt. It&#8217;s pretty slick if you are always in and out of git branches (if you&#8217;re not you should be) First download git-completion.bash http://repo.or.cz/w/git.git?a=blob_plain;f=contrib/completion/git-completion.bash;hb=HEAD I saved it as ~/.git-completion.bash. Next edit your ~/.bash_profile Add [...]]]></description>
			<content:encoded><![CDATA[<p>Browsing for something on the google earlier today, I ran across a way to set up a git branch aware bash prompt. It&#8217;s pretty slick if you are always in and out of git branches (if you&#8217;re not you should be)</p>
<p>First download git-completion.bash<br />
<a href="http://repo.or.cz/w/git.git?a=blob_plain;f=contrib/completion/git-completion.bash;hb=HEAD">http://repo.or.cz/w/git.git?a=blob_plain;f=contrib/completion/git-completion.bash;hb=HEAD</a></p>
<p>I saved it as ~/.git-completion.bash.</p>
<p>Next edit your ~/.bash_profile</p>
<p>Add<br />
<code><br />
source ~/.git-completion.bash<br />
PS1='\h:\W$(__git_ps1 "(%s)") \u\$ '<br />
</code></p>
<p>Finally <code>source ~/.bash_profile</code> to make zee changes active.</p>
<p>What results is this when you are in a git repository:<br />
<code><br />
bigtex:jason(jquery_localize) jason$ git checkout master<br />
Switched to branch "master"<br />
bigtex:jason(master) jason$ git checkout jquery_localize<br />
Switched to branch "jquery_localize"<br />
bigtex:jason(jquery_localize) jason$<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://twi.gs/ramblings/git-aware-bash-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>git 1.5.5.1 on OS X Leopard</title>
		<link>http://twi.gs/programming/git-1551-on-os-x-leopard/</link>
		<comments>http://twi.gs/programming/git-1551-on-os-x-leopard/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 05:53:01 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://twi.gs/?p=66</guid>
		<description><![CDATA[There have been a few git updates since I last made a package. Here&#8217;s the latest 1 day after it&#8217;s release. Note: It will clean up the previous install for you. Remeber to add this line to ~/.bash_profile if you haven&#8217;t already: export PERL5LIB=/usr/local/lib/perl5/site_perl/ You can download git 1.5.5.1 here: http://code.twi.gs/git-1.5.5.1.pkg]]></description>
			<content:encoded><![CDATA[<p>There have been a few git updates since I last made a package. Here&#8217;s the latest 1 day after it&#8217;s release. Note: It will clean up the previous install for you.</p>
<p>Remeber to add this line to ~/.bash_profile if you haven&#8217;t already:<br />
<code><br />
export PERL5LIB=/usr/local/lib/perl5/site_perl/<br />
</code><br />
You can download git 1.5.5.1 here: <a href="http://code.twi.gs/git-1.5.5.1.pkg">http://code.twi.gs/git-1.5.5.1.pkg</a></p>
]]></content:encoded>
			<wfw:commentRss>http://twi.gs/programming/git-1551-on-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing PIL 1.1.6 on OS X Leopard (10.5)</title>
		<link>http://twi.gs/programming/installing-pil-116-on-os-x-leopard-105/</link>
		<comments>http://twi.gs/programming/installing-pil-116-on-os-x-leopard-105/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 23:51:03 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://twi.gs/progrumming/installing-pil-116-on-os-x-leopard-105/</guid>
		<description><![CDATA[What a headache. After a couple of hours of googleing, it looks like this is the way you should install PIL on OS X: Download libjpeg: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz At the time of this writing the libjpeg homepage is down. Next compile it: tar zxvf jpegsrc.v6b.tar.gz cd jpeg-6b cp /usr/share/libtool/config.sub . cp /usr/share/libtool/config.guess . ./configure --enable-shared --enable-static [...]]]></description>
			<content:encoded><![CDATA[<p>What a headache. After a couple of hours of googleing, it looks like this is the way you should install PIL on OS X:</p>
<p>Download libjpeg: <a href="ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz">ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz</a><br />
At the time of this writing the libjpeg homepage is down.</p>
<p>Next compile it:<br />
<code><br />
tar zxvf jpegsrc.v6b.tar.gz<br />
cd jpeg-6b<br />
cp /usr/share/libtool/config.sub .<br />
cp /usr/share/libtool/config.guess .<br />
./configure --enable-shared --enable-static<br />
make<br />
sudo make install<br />
sudo ranlib /usr/local/lib/libjpeg.a<br />
</code></p>
<p>Edit: If sudo make install fails, mkdir the directories that make is trying to install the files into. There are a couple of man directories and a bin directory.</p>
<p>Now download PIL: <a href="http://effbot.org/downloads/Imaging-1.1.6.tar.gz">http://effbot.org/downloads/Imaging-1.1.6.tar.gz</a></p>
<p>and compile it<br />
<code><br />
tar xvzf Imaging-1.1.6.tar.gz<br />
cd Imaging-1.1.6<br />
sudo python setup.py install<br />
</code></p>
<p>Whew&#8230; what a mess.</p>
]]></content:encoded>
			<wfw:commentRss>http://twi.gs/programming/installing-pil-116-on-os-x-leopard-105/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>git 1.5.4.1 on os x</title>
		<link>http://twi.gs/programming/git-1541-on-os-x/</link>
		<comments>http://twi.gs/programming/git-1541-on-os-x/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 01:10:29 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://twi.gs/uncategorized/git-1541-on-os-x/</guid>
		<description><![CDATA[I didn&#8217;t really want to compile git on the Air so I used the MBP to create a package for it. This will install git in /usr/local (so it&#8217;s relatively easy to uninstall manually&#8230; sudo rm /usr/local/bin/git* &#8230; etc). This package is for Leopard. I don&#8217;t know if (and doubt) it&#8217;ll work on anything else. [...]]]></description>
			<content:encoded><![CDATA[<p>I didn&#8217;t really want to compile git on the Air so I used the MBP to create a package for it. This will install git in /usr/local (so it&#8217;s relatively easy to uninstall manually&#8230; sudo rm /usr/local/bin/git* &#8230; etc). This package is for Leopard. I don&#8217;t know if (and doubt) it&#8217;ll work on anything else.</p>
<p>The only drawback to me making this package is you need to edit (or create) ~/.bash_profile and add this line:<br />
<code>export PERL5LIB=/usr/local/lib/perl5/site_perl/</code></p>
<p>You can download git 1.5.4.1 here: <a href="http://code.twi.gs/git-1.5.4.1.pkg">http://code.twi.gs/git-1.5.4.1.pkg</a></p>
]]></content:encoded>
			<wfw:commentRss>http://twi.gs/programming/git-1541-on-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cheatsheet for Postgres</title>
		<link>http://twi.gs/programming/cheatsheet-for-postgres/</link>
		<comments>http://twi.gs/programming/cheatsheet-for-postgres/#comments</comments>
		<pubDate>Sun, 15 Apr 2007 01:53:03 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://twi.gs/phonese3/cheatsheet-for-postgres/</guid>
		<description><![CDATA[MySQL            Postgres   Description show databases;  \l         Lists all databases show tables;     \d         Lists tables of a database use db;          \c db      Connects to a database for use desc table;      \d table   Displays table definition n/a              \z object  View user/host/db permissions]]></description>
			<content:encoded><![CDATA[<p><code><br />
<strong>MySQL            Postgres        Description</strong><br />
show databases;     \l                          Lists all databases<br />
show tables;     \d                         Lists tables of a database<br />
use db;                             \c db                 Connects to a database for use<br />
desc table;            \d table        Displays table definition<br />
n/a                            \z object   View user/host/db permissions<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://twi.gs/programming/cheatsheet-for-postgres/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Writing my own blog software&#8230;</title>
		<link>http://twi.gs/programming/writing-my-own-blog-software/</link>
		<comments>http://twi.gs/programming/writing-my-own-blog-software/#comments</comments>
		<pubDate>Fri, 13 Apr 2007 01:39:38 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://twi.gs/?p=3</guid>
		<description><![CDATA[&#8230; is a bad idea. I have a thousand other things I should be working on rather than blogging, let alone developing software to let me blog with. Dreamhost happens to have wordpress as a one click install. This will work out much better I imagine. We&#8217;ll see how it goes.]]></description>
			<content:encoded><![CDATA[<p>&#8230; is a bad idea.  I have a thousand other things I should be working on rather than blogging, let alone developing software to let me blog with.  Dreamhost happens to have wordpress as a one click install.  This will work out much better I imagine.</p>
<p>We&#8217;ll see how it goes.</p>
]]></content:encoded>
			<wfw:commentRss>http://twi.gs/programming/writing-my-own-blog-software/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
