<?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>Blog from the Loft &#124; PK Shiu Personal Blog &#187; python</title>
	<atom:link href="http://www.pkshiu.com/loft/archive/tag/python/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pkshiu.com/loft</link>
	<description>Thoughts without walls</description>
	<lastBuildDate>Sun, 05 Feb 2012 01:50:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>How to Find a iPad 2 using Python</title>
		<link>http://www.pkshiu.com/loft/archive/2011/03/how-to-find-a-ipad-2-using-python</link>
		<comments>http://www.pkshiu.com/loft/archive/2011/03/how-to-find-a-ipad-2-using-python#comments</comments>
		<pubDate>Mon, 21 Mar 2011 13:12:44 +0000</pubDate>
		<dc:creator>PK</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.pkshiu.com/loft/?p=1088</guid>
		<description><![CDATA[I did not buy the version 1 iPad because an iPad without a front facing camera just does not seem right. At iPad 2 launch day, I was going to go stand in line (as I did for my iPhone 3GS) for one, as my office is about a mile away from the Boston Apple [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><a href="http://www.pkshiu.com/loft/wp-content/uploads/2011/03/ipad2_white_wide.jpg"><img class="aligncenter size-full wp-image-1097" title="iPad 2 White" src="http://www.pkshiu.com/loft/wp-content/uploads/2011/03/ipad2_white_wide.jpg" alt="" width="600" height="165" /></a>I did not buy the version 1 iPad because an iPad without a front facing camera just does not seem right. At iPad 2 launch day, I was going to go stand in line (as <a href="http://www.pkshiu.com/loft/archive/2008/07/my-new-iphone-3g">I did for my iPhone 3GS</a>) for one, as my office is about a mile away from the Boston Apple Store. However real work got in the way.</p>
<p>I did not anticipate the demand for this thing. I guess a lot of people were like me, skipping the iPad 1 and waited for the iPad 2. I did place an order order days after, which is of course too late.</p>
<p>Python to the rescue! Someone posted the links to check for stock on the Target mobile site. I threw together a quick python script, using <a href="http://www.crummy.com/software/BeautifulSoup/" target="_blank">BeautifulSoup</a> (Don&#8217;t you love BeautifulSoup ?) to scrape the site. Saturday night, I found a 32G black iPad 2 available in a Target close by ! I drove over almost first thing Sunday morning, only to find that the two that they had in stock was already purchased by someone who got there, waited for the store to open, at 8am.</p>
<p>Lesson here? Programming is easy. Actually getting up in the morning and driving over to wait in line is, well, a bit overkill. I think I will just wait for the online shipment.</p>
<p>Meanwhile, you can try out the <a href="http://www.pkshiu.com/loft/wp-content/uploads/2011/03/ipad.txt">python program here</a>. Rename to .py for running.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pkshiu.com/loft/archive/2011/03/how-to-find-a-ipad-2-using-python/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jacob Kaplan-Moss on DevOps</title>
		<link>http://www.pkshiu.com/loft/archive/2010/12/jacob-kaplan-moss-on-devops</link>
		<comments>http://www.pkshiu.com/loft/archive/2010/12/jacob-kaplan-moss-on-devops#comments</comments>
		<pubDate>Fri, 10 Dec 2010 13:43:32 +0000</pubDate>
		<dc:creator>pk</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[meetup]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.pkshiu.com/loft/?p=1017</guid>
		<description><![CDATA[Jacob gave a talk at the Boston Django Meetup this month on the topic of DevOps &#8212; The role of the developer and the role of sysadmin are merging, and it is a good thing. This idea certainly resonate with me. I started my career as a DevOps by necessity &#8212; I worked with a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.jacobian.org/">Jacob</a> gave a talk at the <a href="http://www.meetup.com/djangoboston/">Boston Django Meetup</a> this month on the topic of DevOps &#8212; The role of the developer and the role of sysadmin are merging, and it is a good thing. This idea certainly resonate with me. I started my career as a DevOps by necessity &#8212; I worked with a new and proprietary mini-computer, the <a href="http://en.wikipedia.org/wiki/Stratus_Technologies">Stratus</a>. The OS was designed to be a developer&#8217;s OS. All the operation support tools are designed for used by developers. It was a great OS to work with. When I moved to the *nix world, I met Ben, still one of the best sysadmin I know, who actually introduced me to Python. The world has come full cycle now. With utility computing and browser based clients, small team with small budgets launch large scale, fast growing web applications, developers need to be their own sysadmin as well.</p>
<p>This is the video of Jacob&#8217;s talk. I was a little bit late and missed a few minutes at the beginning.</p>
<p><iframe src="http://player.vimeo.com/video/17672519" width="400" height="300" frameborder="0"></iframe>
<p><a href="http://vimeo.com/17672519">Jacob Kaplan-Moss on DevOps at Boston Django Meetup 2010</a> from <a href="http://vimeo.com/pks">PK Shiu</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pkshiu.com/loft/archive/2010/12/jacob-kaplan-moss-on-devops/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>2010 May Boston Python Meetup Videos</title>
		<link>http://www.pkshiu.com/loft/archive/2010/05/2010-may-boston-python-meetup-videos</link>
		<comments>http://www.pkshiu.com/loft/archive/2010/05/2010-may-boston-python-meetup-videos#comments</comments>
		<pubDate>Mon, 24 May 2010 14:54:25 +0000</pubDate>
		<dc:creator>pk</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[meetup]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.pkshiu.com/loft/?p=882</guid>
		<description><![CDATA[Here are the videos for the Boston Python Meetup in May, on &#8220;Testing&#8221;. Two speakers were Marshall Weir on &#8220;Testing, Where Do I Start?&#8221; and Stephan Richter on &#8220;How to Test the Hard Stuff&#8221;. The videos are pretty long. I ran out of SD space at the end so missed a little bit of info [...]]]></description>
			<content:encoded><![CDATA[<p>Here are the videos for the<a href="http://python.meetup.com/181/calendar/13402161/"> Boston Python Meetup</a> in May, on &#8220;Testing&#8221;. Two speakers were Marshall Weir on  &#8220;Testing, Where Do I Start?&#8221; and Stephan Richter on &#8220;How to Test the Hard Stuff&#8221;.</p>
<p>The videos are pretty long. I ran out of SD space at the end so missed a little bit of info at the end. There were constructions at NERD with banging and buzzing. It is amazing that we got even this much usable audio from it.</p>
<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=11963043&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=11963043&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object>
<p><a href="http://vimeo.com/11963043">Boston Python Meetup 2010 May Part 1</a> from <a href="http://vimeo.com/pks">PK Shiu</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>Part I.</p>
<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=11980200&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=11980200&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object>
<p><a href="http://vimeo.com/11980200">Boston Python Meetup May 2010 Part II</a> from <a href="http://vimeo.com/pks">PK Shiu</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>Part II</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pkshiu.com/loft/archive/2010/05/2010-may-boston-python-meetup-videos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SyntaxHighlighter plugin for WordPress</title>
		<link>http://www.pkshiu.com/loft/archive/2008/12/syntaxhighlighter-plugin-for-wordpress</link>
		<comments>http://www.pkshiu.com/loft/archive/2008/12/syntaxhighlighter-plugin-for-wordpress#comments</comments>
		<pubDate>Sun, 28 Dec 2008 22:03:25 +0000</pubDate>
		<dc:creator>pk</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/12/syntaxhighlighter-plugin-for-wordpress</guid>
		<description><![CDATA[It has only been years, but I finally decided to install a syntax highlighter plugin for this blog. A quick search pointed me to SyntaxHighlighter 1.1.1., downloaded it, unzipped into the plugin directory, and activated it. Took all of 2 minutes. Should have done this earlier ! How watch out for some useful code samples [...]]]></description>
			<content:encoded><![CDATA[<p>It has only been years, but I finally decided to install a syntax highlighter plugin for this blog. A quick search pointed me to <a href="http://wordpress.org/extend/plugins/syntaxhighlighter/">SyntaxHighlighter 1.1.1</a>., downloaded it, unzipped into the plugin directory, and activated it. Took all of 2 minutes. Should have done this earlier !</p>
<p>How watch out for some useful code samples in future postings.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pkshiu.com/loft/archive/2008/12/syntaxhighlighter-plugin-for-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix Python source code to use spaces instead of tabs</title>
		<link>http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs</link>
		<comments>http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs#comments</comments>
		<pubDate>Mon, 08 Dec 2008 03:38:15 +0000</pubDate>
		<dc:creator>pk</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs</guid>
		<description><![CDATA[What if someone gave you a Python source file that is indented using tabs? If you are using emacs, the following will let you convert it back to using spaces: # That&#8217;s it! Technorati Tags: django, python]]></description>
			<content:encoded><![CDATA[<p>What if someone gave you a Python source file that is indented using tabs? If you are using emacs, the following will let you convert it back to using spaces:</p>
<pre class="brush: bash; title: ; notranslate">
# first set the buffer tab width to 4 (or whatever you like)
M-x set-variable &lt;return&gt; tab-width &lt;return&gt; 4

# then mark the entire file
C-x h

# do untabify to convert:
M-x untabify &lt;return&gt;
</pre>
<p># That&#8217;s it!<br />
<!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/django" rel="tag">django</a>, <a href="http://www.technorati.com/tag/python" rel="tag">python</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>We love Python (the language)</title>
		<link>http://www.pkshiu.com/loft/archive/2007/12/we-love-python-the-language</link>
		<comments>http://www.pkshiu.com/loft/archive/2007/12/we-love-python-the-language#comments</comments>
		<pubDate>Mon, 24 Dec 2007 17:20:23 +0000</pubDate>
		<dc:creator>pk</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2007/12/we-love-python-the-language</guid>
		<description><![CDATA[I don&#8217;t read the xkcd comics each day. I save them up. So here it is, if you have missed it &#8212; about Python, our fav. programming language on xkcd.]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t read the xkcd comics each day. I save them up. So here it is, if you have missed it &#8212; about Python, our fav. <a href="http://xkcd.com/353/" target="_blank">programming language on xkcd</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pkshiu.com/loft/archive/2007/12/we-love-python-the-language/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

