<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Gahooa Perspective &#187; Engineering</title>
	<atom:link href="http://blog.gahooa.com/category/engineering/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gahooa.com</link>
	<description>Thoughts on Life, Engineering, Technology, Business, and more...</description>
	<lastBuildDate>Fri, 23 Jul 2010 07:09:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.gahooa.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/167b7031b951e9f11655a8ef27c12d71?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>The Gahooa Perspective &#187; Engineering</title>
		<link>http://blog.gahooa.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.gahooa.com/osd.xml" title="The Gahooa Perspective" />
	<atom:link rel='hub' href='http://blog.gahooa.com/?pushpress=hub'/>
		<item>
		<title>How to checkout and track a remote git branch</title>
		<link>http://blog.gahooa.com/2010/07/09/how-to-checkout-and-track-a-remote-git-branch/</link>
		<comments>http://blog.gahooa.com/2010/07/09/how-to-checkout-and-track-a-remote-git-branch/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 18:16:08 +0000</pubDate>
		<dc:creator>Jason Garber</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[git branch]]></category>
		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://blog.gahooa.com/?p=239</guid>
		<description><![CDATA[One of those really handy things to remember&#8230;  When git &#8220;tracks&#8221; a branch, it basically sets up an entry in .git/config which tells git what to do with push and pull.  For example: I had a remote branch called Task/Round3.3. I wanted to work on it locally, but have push and pull work right. So [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=239&subd=gahooa&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>One of those really handy things to remember&#8230;  When git &#8220;tracks&#8221; a branch, it basically sets up an entry in .git/config which tells git what to do with push and pull.  For example:</p>
<p>I had a remote branch called Task/Round3.3.</p>
<p><strong>I wanted to work on it locally, but have push and pull work right.</strong></p>
<p>So I ran this:</p>
<pre><span style="color:#0000ff;">git checkout -b Task/Round3.3 --track origin/Task/Round3.3</span></pre>
<p>To which git said:</p>
<pre><span style="color:#0000ff;">Branch Task/Round3.3 set up to track remote branch refs/remotes/origin/Task/Round3.3.
Switched to a new branch "Task/Round3.3"</span></pre>
<p>And in .git/config, these lines were added:</p>
<pre><span style="color:#0000ff;">[branch "Task/Round3.3"]
remote = origin
merge = refs/heads/Task/Round3.3</span></pre>
<p>Now, when I checkout Task/Round3.3, I am able to say `git pull` and `git push`, and it will do the &#8220;right thing&#8221;&#8230;</p>
<br /> Tagged: <a href='http://blog.gahooa.com/tag/git/'>git</a>, <a href='http://blog.gahooa.com/tag/git-branch/'>git branch</a>, <a href='http://blog.gahooa.com/tag/version-control/'>version control</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gahooa.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gahooa.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gahooa.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gahooa.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gahooa.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gahooa.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gahooa.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gahooa.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gahooa.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gahooa.wordpress.com/239/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=239&subd=gahooa&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.gahooa.com/2010/07/09/how-to-checkout-and-track-a-remote-git-branch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gahooa</media:title>
		</media:content>
	</item>
		<item>
		<title>MySQL, PostgreSQL, Oracle, SQL Server &#8212; Order by RAND ?</title>
		<link>http://blog.gahooa.com/2010/07/08/mysql-postgresql-oracle-sql-server-order-by-rand/</link>
		<comments>http://blog.gahooa.com/2010/07/08/mysql-postgresql-oracle-sql-server-order-by-rand/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 16:40:54 +0000</pubDate>
		<dc:creator>Jason Garber</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Random Records]]></category>

		<guid isPermaLink="false">http://blog.gahooa.com/?p=236</guid>
		<description><![CDATA[Great howto on grabbing a selection of random records from a few different databases here: http://www.petefreitag.com/item/466.cfm Tagged: Database, Random Records<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=236&subd=gahooa&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Great howto on grabbing a selection of random records from a few different databases here:</p>
<p><a href="http://www.petefreitag.com/item/466.cfm">http://www.petefreitag.com/item/466.cfm</a></p>
<br /> Tagged: <a href='http://blog.gahooa.com/tag/database/'>Database</a>, <a href='http://blog.gahooa.com/tag/random-records/'>Random Records</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gahooa.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gahooa.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gahooa.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gahooa.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gahooa.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gahooa.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gahooa.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gahooa.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gahooa.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gahooa.wordpress.com/236/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=236&subd=gahooa&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.gahooa.com/2010/07/08/mysql-postgresql-oracle-sql-server-order-by-rand/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gahooa</media:title>
		</media:content>
	</item>
		<item>
		<title>git add -u</title>
		<link>http://blog.gahooa.com/2010/05/16/git-add-u/</link>
		<comments>http://blog.gahooa.com/2010/05/16/git-add-u/#comments</comments>
		<pubDate>Mon, 17 May 2010 03:22:13 +0000</pubDate>
		<dc:creator>Jason Garber</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[version control]]></category>
		<category><![CDATA[scm]]></category>
		<category><![CDATA[git add]]></category>

		<guid isPermaLink="false">http://blog.gahooa.com/?p=228</guid>
		<description><![CDATA[Here is a nice little tidbit I ran across some time ago&#8230;  Ever delete a bunch of files from a git working copy, and then had to go in and tell git that you meant to delete them?  For example: [jason@dc40 AppStruct]$ git status # On branch master # Changed but not updated: # (use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=228&subd=gahooa&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a nice little tidbit I ran across some time ago&#8230;  Ever delete a bunch of files from a git working copy, and then had to go in and <strong>tell</strong> git that you meant to delete them?  For example:</p>
<pre>[jason@dc40 AppStruct]$ git status
# On branch master
# Changed but not updated:
#   (use "git add/rm ..." to update what will be committed)
#
#       deleted:    Python/AppStruct/Application.py
#       modified:   Python/AppStruct/Database/PostgreSQL.py
#       deleted:    Python/AppStruct/Date.py
#       deleted:    Python/AppStruct/JSON.py
#       deleted:    Python/AppStruct/Util.py
#       deleted:    Python/AppStruct/__init__.py
#
# Untracked files:
#   (use "git add ..." to include in what will be committed)
#
#       Python/AppStruct/NewFile.txt
no changes added to commit (use "git add" and/or "git commit -a")</pre>
<p>Previously, the way to handle this would be:</p>
<pre>   git rm ...
   git rm ...
   git rm ...
   git rm ...
   git rm ...
   git add ...
   git add ...</pre>
<p><strong>Rather, isn&#8217;t this easier?</strong></p>
<pre>   git add -u
   git add .</pre>
<hr />From the <a href="http://www.kernel.org/pub/software/scm/git/docs/git-add.html">man page for git-add</a>:</p>
<blockquote><p>&#8211;update | -u<br />
Only match  against already tracked files in the index rather than the working tree. That means that it will never stage new files, but that it will stage modified new contents of tracked files and that it will remove files from the index if the corresponding files in the working tree have been removed.</p></blockquote>
<br /> Tagged: <a href='http://blog.gahooa.com/tag/git/'>git</a>, <a href='http://blog.gahooa.com/tag/git-add/'>git add</a>, <a href='http://blog.gahooa.com/tag/scm/'>scm</a>, <a href='http://blog.gahooa.com/tag/version-control/'>version control</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gahooa.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gahooa.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gahooa.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gahooa.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gahooa.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gahooa.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gahooa.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gahooa.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gahooa.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gahooa.wordpress.com/228/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=228&subd=gahooa&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.gahooa.com/2010/05/16/git-add-u/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gahooa</media:title>
		</media:content>
	</item>
		<item>
		<title>New Wooden Gun Project</title>
		<link>http://blog.gahooa.com/2010/04/24/new-wooden-gun-project/</link>
		<comments>http://blog.gahooa.com/2010/04/24/new-wooden-gun-project/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 19:25:28 +0000</pubDate>
		<dc:creator>Jason Garber</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[.45]]></category>
		<category><![CDATA[3D modeling]]></category>
		<category><![CDATA[SolidWorks]]></category>
		<category><![CDATA[Thompson]]></category>
		<category><![CDATA[Thompson Machine Gun]]></category>
		<category><![CDATA[Toy Gun]]></category>

		<guid isPermaLink="false">http://blog.gahooa.com/?p=218</guid>
		<description><![CDATA[In our workshop, we have been designing a new toy wooden gun model in SolidWorks.  This is inspired by the classic Thompson Machine Gun from the early 1900&#8242;s in the US. We will probably make it out of maple or walnut, and either paint or stain it. Tagged: .45, 3D modeling, SolidWorks, Thompson, Thompson Machine Gun, Toy [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=218&subd=gahooa&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>In our workshop, we have been designing a new toy wooden gun model in SolidWorks.  This is inspired by the classic Thompson Machine Gun from the early 1900&#8242;s in the US.</p>
<p>We will probably make it out of maple or walnut, and either paint or stain it.</p>
<p><a href="http://gahooa.files.wordpress.com/2010/04/thompson-render-2.jpg"><img class="alignnone size-full wp-image-220" title="Thompson-Render-2" src="http://gahooa.files.wordpress.com/2010/04/thompson-render-2.jpg?w=700&#038;h=310" alt="" width="700" height="310" /></a></p>
<p><a href="http://gahooa.files.wordpress.com/2010/04/thompson-render-1.jpg"><img class="alignnone size-full wp-image-219" title="Thompson-Render-1" src="http://gahooa.files.wordpress.com/2010/04/thompson-render-1.jpg?w=700&#038;h=364" alt="" width="700" height="364" /></a></p>
<br /> Tagged: <a href='http://blog.gahooa.com/tag/45/'>.45</a>, <a href='http://blog.gahooa.com/tag/3d-modeling/'>3D modeling</a>, <a href='http://blog.gahooa.com/tag/solidworks/'>SolidWorks</a>, <a href='http://blog.gahooa.com/tag/thompson/'>Thompson</a>, <a href='http://blog.gahooa.com/tag/thompson-machine-gun/'>Thompson Machine Gun</a>, <a href='http://blog.gahooa.com/tag/toy-gun/'>Toy Gun</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gahooa.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gahooa.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gahooa.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gahooa.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gahooa.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gahooa.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gahooa.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gahooa.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gahooa.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gahooa.wordpress.com/218/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=218&subd=gahooa&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.gahooa.com/2010/04/24/new-wooden-gun-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gahooa</media:title>
		</media:content>

		<media:content url="http://gahooa.files.wordpress.com/2010/04/thompson-render-2.jpg" medium="image">
			<media:title type="html">Thompson-Render-2</media:title>
		</media:content>

		<media:content url="http://gahooa.files.wordpress.com/2010/04/thompson-render-1.jpg" medium="image">
			<media:title type="html">Thompson-Render-1</media:title>
		</media:content>
	</item>
		<item>
		<title>TypeError: list indices must be integers</title>
		<link>http://blog.gahooa.com/2010/03/08/211/</link>
		<comments>http://blog.gahooa.com/2010/03/08/211/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 22:50:46 +0000</pubDate>
		<dc:creator>Jason Garber</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Tuple]]></category>
		<category><![CDATA[TypeError]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[python error]]></category>

		<guid isPermaLink="false">http://blog.gahooa.com/?p=211</guid>
		<description><![CDATA[You start your day, happily working with dictionaries&#8230;Life is good. &#62;&#62;&#62; mydict = {'key-a': 'value-a', 'key-b': 'value-b'} &#62;&#62;&#62; mydict['key-a'] 'value-a' All of a sudden, storm clouds appear. Your dictionary variable accidentally gets assigned a list, and life is no longer good! &#62;&#62;&#62; mydict = {'key-a': 'value-a', 'key-b': 'value-b'} &#62;&#62;&#62; mydict['key-a'] 'value-a' &#62;&#62;&#62; mydict = [] [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=211&subd=gahooa&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>You start your day, happily working with dictionaries&#8230;Life is good.</p>
<pre class="brush: python;">
&gt;&gt;&gt; mydict = {'key-a': 'value-a', 'key-b': 'value-b'}
&gt;&gt;&gt; mydict['key-a']
'value-a'
</pre>
<p>All of a sudden, storm clouds appear.  Your dictionary variable <strong>accidentally </strong>gets assigned a list, and life is no longer good!</p>
<pre class="brush: python;">
&gt;&gt;&gt; mydict = {'key-a': 'value-a', 'key-b': 'value-b'}
&gt;&gt;&gt; mydict['key-a']
'value-a'
&gt;&gt;&gt; mydict = []
&gt;&gt;&gt; mydict['key-a']
Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
TypeError: list indices must be integers
</pre>
<p>The error message <strong>&quot;TypeError: list indices must be integers&quot;</strong> is generated when you attempt to use a non-int for a index inside the [] operator.</p>
<p>By the way, almost the same message is used if you do this with a tuple:</p>
<p><code>TypeError: tuple indices must be integers</code></p>
<br /> Tagged: <a href='http://blog.gahooa.com/tag/list/'>list</a>, <a href='http://blog.gahooa.com/tag/python/'>Python</a>, <a href='http://blog.gahooa.com/tag/python-error/'>python error</a>, <a href='http://blog.gahooa.com/tag/tuple/'>Tuple</a>, <a href='http://blog.gahooa.com/tag/typeerror/'>TypeError</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gahooa.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gahooa.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gahooa.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gahooa.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gahooa.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gahooa.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gahooa.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gahooa.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gahooa.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gahooa.wordpress.com/211/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=211&subd=gahooa&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.gahooa.com/2010/03/08/211/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gahooa</media:title>
		</media:content>
	</item>
		<item>
		<title>Great article on Python super, __mro__, and attributes</title>
		<link>http://blog.gahooa.com/2010/02/20/great-article-on-python-super-__mro__-and-attributes/</link>
		<comments>http://blog.gahooa.com/2010/02/20/great-article-on-python-super-__mro__-and-attributes/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 21:59:33 +0000</pubDate>
		<dc:creator>Jason Garber</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Perspective]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Python attributes]]></category>
		<category><![CDATA[Python super()]]></category>
		<category><![CDATA[Python __mro__]]></category>

		<guid isPermaLink="false">http://blog.gahooa.com/?p=207</guid>
		<description><![CDATA[I highly recommend reading this excellent writeup on Python super(), python __mro__, python attributes, and more. It is Copyright © 2005-2009 Shalabh Chaturvedi http://www.cafepy.com/article/python_attributes_and_methods/python_attributes_and_methods.html#method-resolution-order Tagged: Python, Python attributes, Python super(), Python __mro__<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=207&subd=gahooa&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I highly recommend reading this excellent writeup on Python super(), python __mro__, python attributes, and more.</p>
<p>It is Copyright © 2005-2009 Shalabh Chaturvedi</p>
<p><a href="http://www.cafepy.com/article/python_attributes_and_methods/python_attributes_and_methods.html#method-resolution-order">http://www.cafepy.com/article/python_attributes_and_methods/python_attributes_and_methods.html#method-resolution-order</a></p>
<br /> Tagged: <a href='http://blog.gahooa.com/tag/python/'>Python</a>, <a href='http://blog.gahooa.com/tag/python-attributes/'>Python attributes</a>, <a href='http://blog.gahooa.com/tag/python-super/'>Python super()</a>, <a href='http://blog.gahooa.com/tag/python-__mro__/'>Python __mro__</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gahooa.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gahooa.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gahooa.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gahooa.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gahooa.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gahooa.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gahooa.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gahooa.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gahooa.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gahooa.wordpress.com/207/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=207&subd=gahooa&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.gahooa.com/2010/02/20/great-article-on-python-super-__mro__-and-attributes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gahooa</media:title>
		</media:content>
	</item>
		<item>
		<title>git scm tip</title>
		<link>http://blog.gahooa.com/2010/02/20/git-scm-tip/</link>
		<comments>http://blog.gahooa.com/2010/02/20/git-scm-tip/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 21:56:55 +0000</pubDate>
		<dc:creator>Jason Garber</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Perspective]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[scm]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://blog.gahooa.com/?p=204</guid>
		<description><![CDATA[You may be aware of git add . But did you know this: git add . adds all the files. Use with care (only after git status, for example). git add -u . adds and deletes all KNOWN files. This is great if you added and removed or renamed files. Tagged: git, scm, tip, version [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=204&subd=gahooa&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>You may be aware of <strong>git add .</strong></p>
<p>But did you know this:</p>
<pre class="brush: plain;">
git add .
</pre>
<p>adds all the files.  Use with care (only after git status, for example).</p>
<pre class="brush: plain;">
git add -u .
</pre>
<p>adds and deletes all KNOWN files.</p>
<p>This is great if you added and removed or renamed files.</p>
<br /> Tagged: <a href='http://blog.gahooa.com/tag/git/'>git</a>, <a href='http://blog.gahooa.com/tag/scm/'>scm</a>, <a href='http://blog.gahooa.com/tag/tip/'>tip</a>, <a href='http://blog.gahooa.com/tag/version-control/'>version control</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gahooa.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gahooa.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gahooa.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gahooa.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gahooa.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gahooa.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gahooa.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gahooa.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gahooa.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gahooa.wordpress.com/204/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=204&subd=gahooa&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.gahooa.com/2010/02/20/git-scm-tip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gahooa</media:title>
		</media:content>
	</item>
		<item>
		<title>Python 3 bytes indexing returns integers!</title>
		<link>http://blog.gahooa.com/2009/12/31/python-3-bytes-indexing-returns-integers/</link>
		<comments>http://blog.gahooa.com/2009/12/31/python-3-bytes-indexing-returns-integers/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 17:22:04 +0000</pubDate>
		<dc:creator>Jason Garber</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[bytes]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[python 3]]></category>

		<guid isPermaLink="false">http://blog.gahooa.com/?p=196</guid>
		<description><![CDATA[While converting a bunch of werkzeug code to Python 3.1, I ran into an issue with one of the bytes objects that was previously a string. The line of code in question was originally this: if value and value[0] == value[-1] == b'&#34;': ... If value is something, and the first and last characters are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=196&subd=gahooa&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>While converting a bunch of <a href="http://werkzeug.pocoo.org/">werkzeug</a> code to  Python 3.1, I ran into an issue with one of the <strong>bytes</strong> objects that was previously a string.</p>
<p>The line of code in question was originally this:</p>
<pre>
<pre class="brush: python;">
if value and value[0] == value[-1] == b'&quot;':
   ...
</pre>
</pre>
<p>If value is something, and the first and last characters are a quote character, then&#8230;</p>
<p>However, as it turns out, the <strong><a href="http://docs.python.org/py3k/library/functions.html#bytes">bytes object</a></strong> is actually a list of integers in the range of 0-255.</p>
<p>So when you use an indexing operation on a byte, you actually get an integer back.  For example:</p>
<pre>
<pre class="brush: python;">
&gt;&gt;&gt; x = b'Hello World'
&gt;&gt;&gt; x[0]
72

&gt;&gt;&gt; x = 'Hello World'
&gt;&gt;&gt; x[0]
'H'
</pre>
</pre>
<p>Big difference, eh?</p>
<br /> Tagged: bytes, Python, python 3 <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gahooa.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gahooa.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gahooa.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gahooa.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gahooa.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gahooa.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gahooa.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gahooa.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gahooa.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gahooa.wordpress.com/196/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=196&subd=gahooa&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.gahooa.com/2009/12/31/python-3-bytes-indexing-returns-integers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gahooa</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Author a *simple* jQuery plugin</title>
		<link>http://blog.gahooa.com/2009/12/21/how-to-author-a-simple-jquery-plugin/</link>
		<comments>http://blog.gahooa.com/2009/12/21/how-to-author-a-simple-jquery-plugin/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 19:20:01 +0000</pubDate>
		<dc:creator>Jason Garber</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery Plugin]]></category>

		<guid isPermaLink="false">http://blog.gahooa.com/?p=185</guid>
		<description><![CDATA[I use jQuery as the JavaScript library for most projects. It&#8217;s terribly convenient for selecting elements and processing them. However, jQuery is not JavaScript, and there is a lot of things it cannot do. Rather than writing a separate set of functionality outside of jQuery, why not simply extend it on an application-per-application basis? It [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=185&subd=gahooa&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I use jQuery as the JavaScript library for most projects. It&#8217;s terribly convenient for selecting elements and processing them.</p>
<p>However, jQuery is not JavaScript, and there is a lot of things it cannot do. Rather than writing a separate set of functionality outside of jQuery, why not simply extend it on an application-per-application basis? It really is that easy. Perhaps if you get some functionality that is <strong>good enough</strong>, you will want to convert them into a formal plugin and post it to <a href="http://plugins.jquery.com/">http://plugins.jquery.com/</a>&#8230;</p>
<p><strong>Here is the document that explains, in depth, how to author plugins.</strong><br />
<a href="http://docs.jquery.com/Plugins/Authoring">http://docs.jquery.com/Plugins/Authoring</a></p>
<p>Here is an example at a very simple plugin that I whipped together while learning about plugins&#8230; It&#8217;s designed to accept an object of data, and apply it to any of the elements whose name attribute match the key of the data.</p>
<pre class="brush: jscript;">
jQuery.fn.populate = function(Data) {
   this.each(function() {
      if (this.name in Data)
      {
         switch(this.type)
         {
            case 'text': this.value = Data[this.name]; break;
            case 'checkbox': this.checked = Data[this.name]; break
         }
      }
   });
   return this;
};
</pre>
<p>To call it&#8230; Select all input elements of the #Login form, and populate them with the passed data.</p>
<pre class="brush: jscript;">
$('#Login :input').populate({ FirstName: 'sammy', LastName: 'jones' });
</pre>
<p>The <strong>.fn</strong> attribute of the <strong>jQuery</strong> object is where you attach new methods. The <strong>this</strong> member of those functions is set to the current <strong>jQuery</strong> object. The function <strong>must return</strong> the current jQuery object (self) unless explicitly stated otherwise.</p>
<p>Iterating through the elements of the current jQuery object should be done with <strong>this.each(&#8230;)</strong>.</p>
<p>All in all, it&#8217;s very simple, and very powerful to be able to nest custom functionality into the jQuery object within a given application.</p>
<p><strong>Read more at: </strong><a href="http://docs.jquery.com/Plugins/Authoring"></a></p>
<br /> Tagged: JavaScript, jQuery, jQuery Plugin <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gahooa.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gahooa.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gahooa.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gahooa.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gahooa.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gahooa.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gahooa.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gahooa.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gahooa.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gahooa.wordpress.com/185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=185&subd=gahooa&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.gahooa.com/2009/12/21/how-to-author-a-simple-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gahooa</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery mouseout vs. mouseleave</title>
		<link>http://blog.gahooa.com/2009/12/18/jquery-mouseout-vs-mouseleave/</link>
		<comments>http://blog.gahooa.com/2009/12/18/jquery-mouseout-vs-mouseleave/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 19:30:02 +0000</pubDate>
		<dc:creator>Jason Garber</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.gahooa.com/?p=175</guid>
		<description><![CDATA[Hello! jQuery has a mouseout and a mouseleave event. The main difference is in how they handle child elements. Mouseout fires when the pointer moves into or out from child element, while mouseleave doesn&#8217;t. This was causing a slight problem of having some menu&#8217;s close when the mouse encountered a link or other child element [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=175&subd=gahooa&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p id="_mcePaste">Hello!</p>
<p id="_mcePaste">jQuery has a <strong>mouseout </strong>and a <strong>mouseleave </strong>event.  The main difference is in how they handle child elements.  <strong>Mouseout </strong>fires when the pointer moves into or out from child element, while <strong>mouseleave </strong>doesn&#8217;t.</p>
<p id="_mcePaste">This was causing a slight problem of having some menu&#8217;s close when the mouse encountered a link or other child element <strong>within </strong>the menu, it was triggering the mouseout event of the menu.</p>
<p>The fix, was to convert to <strong>mouseleave</strong>.</p>
<pre>   $("#Nav1_Content &gt; p").mouseleave(CloseTopMenuArea);</pre>
<p><a href="http://docs.jquery.com/Events/mouseout">http://docs.jquery.com/Events/mouseout</a></p>
<br /> Tagged: Events, JavaScript, jQuery <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gahooa.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gahooa.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gahooa.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gahooa.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gahooa.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gahooa.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gahooa.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gahooa.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gahooa.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gahooa.wordpress.com/175/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=175&subd=gahooa&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.gahooa.com/2009/12/18/jquery-mouseout-vs-mouseleave/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gahooa</media:title>
		</media:content>
	</item>
	</channel>
</rss>