<?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>Just2us</title>
	<atom:link href="http://blog.just2us.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.just2us.com</link>
	<description>discuss on technology &#38; application development</description>
	<lastBuildDate>Sat, 20 Apr 2013 05:00:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Use Simple Terms &#8211; Otherwise you are just talking to yourself</title>
		<link>http://blog.just2us.com/2013/04/use-simple-terms-otherwise-you-are-just-talking-to-yourself/</link>
		<comments>http://blog.just2us.com/2013/04/use-simple-terms-otherwise-you-are-just-talking-to-yourself/#comments</comments>
		<pubDate>Sat, 20 Apr 2013 05:00:51 +0000</pubDate>
		<dc:creator>samwize</dc:creator>
				<category><![CDATA[whatever]]></category>

		<guid isPermaLink="false">http://blog.just2us.com/?p=916</guid>
		<description><![CDATA[I was reading TIMES on an article about IMF chief Christine Lagarde.
Lagarde is a lawyer by training, and it is kind of misfit for a lady to work in the finance industry, with so many men. But it is not [...]]]></description>
				<content:encoded><![CDATA[<p>I was reading TIMES on an article about IMF chief Christine Lagarde.</p>
<p>Lagarde is a lawyer by training, and it is kind of misfit for a lady to work in the finance industry, with so many men. But it is not just about her background or gender.</p>
<p>At times, she cannot understand the opaque language that the ministry of finance, or the central-bank governor, or whoever is using.</p>
<p>It turned out to be an advantage for her.</p>
<p>She said this to them:</p>
<p style="padding-left: 30px;">&#8220;Stop it. You&#8217;ve lost me. You have to use simple terms that people out on the street will understand, otherwise you are just talking to yourselves.&#8221;</p>
<p><a href="http://blog.just2us.com/wp-content/uploads/2013/04/url.jpeg"><img class="aligncenter size-full wp-image-917" alt="children talk tin can" src="http://blog.just2us.com/wp-content/uploads/2013/04/url.jpeg" width="506" height="337" /></a></p>
<p>How true is that.</p>
<p>Applying the concept to product development, we have to write content in simple language that most people can understand, otherwise we are just writing for ourselves, not the users.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.just2us.com/2013/04/use-simple-terms-otherwise-you-are-just-talking-to-yourself/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google April Fools Joke 2013</title>
		<link>http://blog.just2us.com/2013/04/google-april-fools-joke-2013/</link>
		<comments>http://blog.just2us.com/2013/04/google-april-fools-joke-2013/#comments</comments>
		<pubDate>Mon, 01 Apr 2013 12:29:27 +0000</pubDate>
		<dc:creator>samwize</dc:creator>
				<category><![CDATA[Interesting]]></category>

		<guid isPermaLink="false">http://blog.just2us.com/?p=908</guid>
		<description><![CDATA[Google takes April Fools day very seriously.
This year, they joked on Google Nose, Treasure Map, shutting down of Youtube, and website visitors from outer space.




&#160;
]]></description>
				<content:encoded><![CDATA[<p>Google takes April Fools day very seriously.</p>
<p>This year, they joked on <a href="http://www.google.com/landing/nose/index.html">Google Nose</a>, <a href="https://www.youtube.com/watch?feature=player_embedded&amp;v=_qFFHC0eIUc">Treasure Map</a>, <a href="https://www.youtube.com/watch?feature=player_embedded&amp;v=H542nLTTbu0">shutting down of Youtube</a>, and <a href="https://twitter.com/samwize/status/318637188118097921">website visitors from outer space</a>.</p>
<p><iframe src="http://www.youtube.com/embed/VFbYadm_mrw" height="360" width="640" allowfullscreen="" frameborder="0"></iframe></p>
<p><iframe src="http://www.youtube.com/embed/_qFFHC0eIUc" height="360" width="640" allowfullscreen="" frameborder="0"></iframe></p>
<p><object width="640" height="360" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/H542nLTTbu0?hl=en_US&amp;version=3" /><param name="allowfullscreen" value="true" /><embed width="640" height="360" type="application/x-shockwave-flash" src="http://www.youtube.com/v/H542nLTTbu0?hl=en_US&amp;version=3" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object></p>
<p style="text-align: center;"><a href="http://blog.just2us.com/wp-content/uploads/2013/04/BGwG1ZqCMAAlLId.png"><img class="aligncenter  wp-image-912" alt="Google Analytics ISS" src="http://blog.just2us.com/wp-content/uploads/2013/04/BGwG1ZqCMAAlLId.png" width="659" height="527" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.just2us.com/2013/04/google-april-fools-joke-2013/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Blog Theme</title>
		<link>http://blog.just2us.com/2013/04/new-blog-theme/</link>
		<comments>http://blog.just2us.com/2013/04/new-blog-theme/#comments</comments>
		<pubDate>Sun, 31 Mar 2013 17:12:09 +0000</pubDate>
		<dc:creator>samwize</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://blog.just2us.com/?p=903</guid>
		<description><![CDATA[After 4 years since Just2us.com appeared in the blogosphere, I updated the (WordPress) theme today!
It&#8217;s a long overdue update, considering that the Internet moves at such tremendous speed. What I see as a nice blog template 4 years ago, it&#8217;s unfortunately [...]]]></description>
				<content:encoded><![CDATA[<p>After <a href="http://blog.just2us.com/2009/05/just2uscom-is-here/">4 years</a> since Just2us.com appeared in the blogosphere, I updated the (WordPress) theme today!</p>
<p>It&#8217;s a long overdue update, considering that the Internet moves at such tremendous speed. What I see as a nice blog template 4 years ago, it&#8217;s unfortunately out of fashion after a mere months.</p>
<p>A reminiscent of the old days:</p>
<p><a href="http://blog.just2us.com/wp-content/uploads/2013/03/Deniart-theme.png"><img class="aligncenter size-large wp-image-904" alt="Deniart theme" src="http://blog.just2us.com/wp-content/uploads/2013/03/Deniart-theme-1024x900.png" width="550" height="483" /></a></p>
<p>I selected this <a href="http://themeid.com/responsive-theme/">Responsive theme</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.just2us.com/2013/04/new-blog-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2013 Jan Posts from samwize.com</title>
		<link>http://blog.just2us.com/2013/02/2013-jan-posts-from-samwize-com/</link>
		<comments>http://blog.just2us.com/2013/02/2013-jan-posts-from-samwize-com/#comments</comments>
		<pubDate>Mon, 04 Feb 2013 16:04:25 +0000</pubDate>
		<dc:creator>samwize</dc:creator>
				<category><![CDATA[whatever]]></category>

		<guid isPermaLink="false">http://blog.just2us.com/?p=887</guid>
		<description><![CDATA[These are recent posts from samwize.com:


How to replicate iOS Crash feedback from Apple


iOS Developer Tips 2013


It takes 18 weeks to build a mobile app


iOS Devices Cheat Sheet


7 iOS Custom Popup Views


Phewtick API &#8211; Message to any user you want


How to [...]]]></description>
				<content:encoded><![CDATA[<article>These are recent posts from <a href="http://samwize.com/">samwize.com</a>:</p>
<ol>
<li>
<h4><a href="http://samwize.com/2013/01/22/how-to-replicate-ios-crash-feedback-from-apple/">How to replicate iOS Crash feedback from Apple</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2013/01/18/ios-developer-tips-2013/">iOS Developer Tips 2013</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2013/01/14/it-takes-18-weeks-to-build-a-mobile-app/">It takes 18 weeks to build a mobile app</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2013/01/11/ios-devices-cheat-sheet/">iOS Devices Cheat Sheet</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2012/12/06/7-ios-custom-popup-views/">7 iOS Custom Popup Views</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2012/11/29/phewtick-api-message-to-any-user/">Phewtick API &#8211; Message to any user you want</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2012/11/28/how-to-migrate-svn-to-git/">How to migrate SVN to Git</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2012/11/26/tips-on-making-ios-app-icons/">Tips on making iOS App Icons</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2012/11/25/create-async-test-with-ghunit/">Create Async Test with GHUnit</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2012/11/23/app-engine-unused-discounted-instance-hour/">App Engine Unused Discounted Instance Hour</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2012/11/22/warning-do-not-use-base-internationalization-in-ios-5/">WARNING: Do not use Base Internationalization in iOS 5</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2012/11/21/gae-or-dotcloud/">GAE or Dotcloud?</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2012/11/14/ios-adhoc-distribution-with-the-new-xcode/">iOS Adhoc Distribution with the new Xcode</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2012/11/13/which-ad-network-to-use-in-ios/">Which Ad Network to use in iOS?</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2012/11/12/python-unit-testing-with-nosetests/">Python Unit Testing with nosetests</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2012/11/06/my-custom-localization-and-genstrings/">My Custom Localization and genstrings</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2012/11/05/what-is-pythons-lambda-and-closure/">What is Python’s Lambda and Closure</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2012/11/04/ios-accessibility-guide-for-developers/">iOS Accessibility Guide for Developers</a></h4>
</li>
<li>
<h4><a href="http://samwize.com/2012/11/03/the-mythical-team-month/">The Mythical Team-Month</a></h4>
</li>
</ol>
<p>Grand Total Posts Count: 32 + 19 = 51</p>
</article>
]]></content:encoded>
			<wfw:commentRss>http://blog.just2us.com/2013/02/2013-jan-posts-from-samwize-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>October Posts in samwize.com</title>
		<link>http://blog.just2us.com/2012/11/october-posts-in-samwize-com/</link>
		<comments>http://blog.just2us.com/2012/11/october-posts-in-samwize-com/#comments</comments>
		<pubDate>Sat, 10 Nov 2012 04:22:47 +0000</pubDate>
		<dc:creator>samwize</dc:creator>
				<category><![CDATA[whatever]]></category>

		<guid isPermaLink="false">http://blog.just2us.com/?p=882</guid>
		<description><![CDATA[&#160;
Total Posts Count: 17!
Common Git Usage
OCT 30 &#8211; Some of my most common git commands and settings



iOS Guide to Multiple Device Resolutions
OCT 29 &#8211; More screen resolutions with iPhone 5



Wifi Scanner for Mac OSX (Mountain Lion)
OCT 28 &#8211; Do you know Mountain Lion [...]]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<article>Total Posts Count: 17!</p>
<h1><a href="http://samwize.com/2012/10/30/common-git-usage/">Common Git Usage</a></h1>
<p><time datetime="2012-10-30T21:35:00+08:00" pubdate="">OCT 30 &#8211; Some of my most common git commands and settings</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/29/ios-guide-to-multiple-device-resolutions/">iOS Guide to Multiple Device Resolutions</a></h1>
<p><time datetime="2012-10-29T23:23:00+08:00" pubdate="">OCT 29 &#8211; More screen resolutions with iPhone 5</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/28/wifi-scanner-for-mac-osx-mountain-lion/">Wifi Scanner for Mac OSX (Mountain Lion)</a></h1>
<p><time datetime="2012-10-28T10:05:00+08:00" pubdate="">OCT 28 &#8211; Do you know Mountain Lion comes with it&#8217;s own Wifi stumbler?</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/25/simple-get-post-afnetworking/">Simple GET/POST AFNetworking</a></h1>
<p><time datetime="2012-10-25T00:32:00+08:00" pubdate="">OCT 25 &#8211; AFNetworking, the iOS networking most popular choice</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/24/good-strategy-bad-strategy/">Good Strategy, Bad Strategy</a></h1>
<p><time datetime="2012-10-24T22:02:00+08:00" pubdate="">OCT 24 &#8211; A book on &#8220;Strategy&#8221;</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/23/error-application-executable-missing-required-architecture/">Error: Application Executable Missing Required Architecture</a></h1>
<p><time datetime="2012-10-23T22:20:00+08:00" pubdate="">OCT 23 &#8211; The most common error during iOS binary upload</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/22/updating-app-for-iphone-5/">Updating App for iPhone 5</a></h1>
<p><time datetime="2012-10-22T01:14:00+08:00" pubdate="">OCT 22 &#8211; Things to do for the new iPhone 5</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/19/why-i-hate-scala/">Why I hate Scala</a></h1>
<p><time datetime="2012-10-19T21:44:00+08:00" pubdate="">OCT 19 &#8211; Hate on the language</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/18/scala-tutorial-part-ii/">Scala Tutorial (Part II)</a></h1>
<p><time datetime="2012-10-18T22:14:00+08:00" pubdate="">OCT 18 &#8211; Tutorial II</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/15/scala-plus-play-development-guide/">Scala + Play! Development Guide</a></h1>
<p><time datetime="2012-10-15T16:02:00+08:00" pubdate="">OCT 15 &#8211; Tutorial I</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/11/the-lean-startup/">The Lean Startup</a></h1>
<p><time datetime="2012-10-11T00:08:00+08:00" pubdate="">OCT 11 &#8211; Book review of this awesome startup book</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/09/configure-your-local-environment-for-scala-on-heroku/">Configure your local environment for Scala on Heroku</a></h1>
<p><time datetime="2012-10-09T00:35:00+08:00" pubdate="">OCT 09 &#8211; Scala + Heroku</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/07/a-short-scala-tutorial-for-java-developers/">A short Scala tutorial for Java Developers</a></h1>
<p><time datetime="2012-10-07T21:10:00+08:00" pubdate="">OCT 07 &#8211; Scala getting started for Java Dev</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/04/how-to-setup-ghunit-with-cocoapods/">How to setup GHUnit with CocoaPods</a></h1>
<p><time datetime="2012-10-04T23:21:00+08:00" pubdate="">OCT 04 &#8211; Unit testing</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/03/sentestingkit-does-not-support-wait-for-blocks/">SenTestingKit does not support wait for blocks</a></h1>
<p><time datetime="2012-10-03T00:21:00+08:00" pubdate="">OCT 03 &#8211; Not too good with blocks support</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/02/app-store-changes-in-ios6/">App Store Changes in iOS6</a></h1>
<p><time datetime="2012-10-02T22:22:00+08:00" pubdate="">OCT 02 &#8211; Changes to watch out for your App Store description, keywords, etc</time><br />
<footer></footer>
</article>
<article>
<h1><a href="http://samwize.com/2012/10/01/unit-tests-with-cocoapods/">Unit Tests with CocoaPods</a></h1>
<p>OCT 01 &#8211; Setting up unit tests when using CocoaPods</p>
</article>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.just2us.com/2012/11/october-posts-in-samwize-com/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>This blog has migrated to samwize.com</title>
		<link>http://blog.just2us.com/2012/09/this-blog-has-migrated-to-samwize-com/</link>
		<comments>http://blog.just2us.com/2012/09/this-blog-has-migrated-to-samwize-com/#comments</comments>
		<pubDate>Fri, 21 Sep 2012 16:16:46 +0000</pubDate>
		<dc:creator>samwize</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://blog.just2us.com/?p=875</guid>
		<description><![CDATA[I have started a new blog at samwize.com, powered by a new, nicer &#38; better blogging framework.
Read on why I made the switch: http://samwize.com/2012/09/10/switched-from-wordpress-to-octopress/
Most of my blog posts will be published on samwize.com from now on. As for just2us.com, I will [...]]]></description>
				<content:encoded><![CDATA[<p>I have started a new blog at <a href="http://samwize.com">samwize.com</a>, powered by a new, nicer &amp; better blogging framework.</p>
<p>Read on why I made the switch: <a href="http://samwize.com/2012/09/10/switched-from-wordpress-to-octopress/">http://samwize.com/2012/09/10/switched-from-wordpress-to-octopress/</a></p>
<p>Most of my blog posts will be published on samwize.com from now on. As for just2us.com, I will find another purpose (but existing posts will remain here).</p>
<p>What&#8217;s posted on samwize.com in the last 2 weeks:</p>
<article>
<ul>
<li><a href="http://samwize.com/2012/09/21/i-bought-samwize-dot-com-for-99-cents/">I bought samwize.com for 99 cents</a></li>
<li><a href="http://samwize.com/2012/09/20/how-to-write-getter-slash-setter-for-static-variables/">How to write Getter/Setter for static variables</a></li>
<li><a href="http://samwize.com/2012/09/18/non-ascii-character-in-python-file/">Non-ASCII Character in Python File</a></li>
<li><a href="http://samwize.com/2012/09/15/paros-a-mitmproxy-with-gui-for-sniffing-http-traffic/">Paros &#8211; a mitmproxy with GUI for sniffing HTTP traffic</a></li>
<li><a href="http://samwize.com/2012/09/14/adding-and-using-custom-font-in-ios/">Adding and Using Custom Font in iOS</a></li>
<li><a href="http://samwize.com/2012/09/13/sphinx-documentation-for-python/">Sphinx – Documentation for Python</a></li>
<li><a href="http://samwize.com/2012/09/12/hide-all-my-files-in-macs-finder/">Hide “All My Files” in Mac’s Finder</a></li>
<li><a href="http://samwize.com/2012/09/11/how-to-setup-octopress-on-github-pages/">How to setup Octopress on Github Pages</a></li>
<li><a href="http://samwize.com/2012/09/10/switched-from-wordpress-to-octopress/">Switched WordPress to Octopress</a></li>
</ul>
</article>
<article>
<footer></footer>
</article>
]]></content:encoded>
			<wfw:commentRss>http://blog.just2us.com/2012/09/this-blog-has-migrated-to-samwize-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>setuptools &#8211; Python tool to distribute and install your SDK/package</title>
		<link>http://blog.just2us.com/2012/09/setuptools-python-tool-to-distribute-and-install-your-sdkpackage/</link>
		<comments>http://blog.just2us.com/2012/09/setuptools-python-tool-to-distribute-and-install-your-sdkpackage/#comments</comments>
		<pubDate>Mon, 10 Sep 2012 01:39:10 +0000</pubDate>
		<dc:creator>samwize</dc:creator>
				<category><![CDATA[whatever]]></category>

		<guid isPermaLink="false">http://blog.just2us.com/?p=854</guid>
		<description><![CDATA[setuptools is a tool to download, build, install, upgrade, and uninstall Python packages &#8212; easily!
If you just need to install other people&#8217;s packages, this is NOT for you. All you need is pypi and knowing the command

pip install some-package

setuptools is [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://peak.telecommunity.com/DevCenter/setuptools#developer-s-guide">setuptools</a> is a tool to download, build, install, upgrade, and uninstall Python packages &#8212; easily!</p>
<p>If you <em>just</em> need to install other people&#8217;s packages, this is NOT for you. All you need is pypi and knowing the command</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">pip <span style="color: #c20cb9; font-weight: bold;">install</span> some-package</pre></td></tr></table></div>

<p>setuptools is for the other way round. It is for developers who want to distribute their SDK/library/packages to those &#8220;pip install&#8221; developers. There are 2 steps.</p>
<p>&nbsp;</p>
<h2>Step 1) setup.py</h2>
<p><a href="http://pypi.python.org/pypi/setuptools">Install setuptools</a>. For Mac, it basically downloading and running the egg.</p>
<p>Afterwhich, create a setup.py in the root of your Python project.  A basic template looks like this:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span>
<span style="color: #ff7700;font-weight:bold;">from</span> setuptools <span style="color: #ff7700;font-weight:bold;">import</span> setup<span style="color: #66cc66;">,</span> find_packages
&nbsp;
setup<span style="color: black;">&#40;</span>
    name <span style="color: #66cc66;">=</span> <span style="color: #483d8b;">&quot;just2us&quot;</span><span style="color: #66cc66;">,</span>
    version <span style="color: #66cc66;">=</span> <span style="color: #483d8b;">&quot;0.0.1&quot;</span><span style="color: #66cc66;">,</span>
    author <span style="color: #66cc66;">=</span> <span style="color: #483d8b;">&quot;Junda Ong&quot;</span><span style="color: #66cc66;">,</span>
    author_email <span style="color: #66cc66;">=</span> <span style="color: #483d8b;">&quot;junda@just2us.com&quot;</span><span style="color: #66cc66;">,</span>
    description <span style="color: #66cc66;">=</span> <span style="color: #483d8b;">&quot;Python SDK for Just2us&quot;</span><span style="color: #66cc66;">,</span>
    license <span style="color: #66cc66;">=</span> <span style="color: #483d8b;">&quot;MIT&quot;</span><span style="color: #66cc66;">,</span>
    keywords <span style="color: #66cc66;">=</span> <span style="color: #483d8b;">&quot;awesome stuff&quot;</span><span style="color: #66cc66;">,</span>
    url <span style="color: #66cc66;">=</span> <span style="color: #483d8b;">&quot;http://www.just2us.com&quot;</span><span style="color: #66cc66;">,</span>
    install_requires <span style="color: #66cc66;">=</span> <span style="color: black;">&#91;</span><span style="color: #483d8b;">&quot;requests&quot;</span><span style="color: black;">&#93;</span><span style="color: #66cc66;">,</span>
    packages <span style="color: #66cc66;">=</span> find_packages<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: #66cc66;">,</span>
    classifiers <span style="color: #66cc66;">=</span> <span style="color: black;">&#91;</span>
        <span style="color: #483d8b;">&quot;Intended Audience :: Developers&quot;</span><span style="color: #66cc66;">,</span>
        <span style="color: #483d8b;">&quot;License :: OSI Approved :: MIT License&quot;</span><span style="color: #66cc66;">,</span>
        <span style="color: #483d8b;">&quot;Programming Language :: Python&quot;</span><span style="color: #66cc66;">,</span>
        <span style="color: #483d8b;">&quot;Programming Language :: Python :: 2.7&quot;</span><span style="color: #66cc66;">,</span>
        <span style="color: #483d8b;">&quot;Topic :: Software Development :: Libraries :: Python Modules&quot;</span><span style="color: #66cc66;">,</span>
    <span style="color: black;">&#93;</span><span style="color: #66cc66;">,</span>
<span style="color: black;">&#41;</span></pre></td></tr></table></div>

<p>As you can see, setup() basically describes various things about your package, such as:</p>
<ul>
<li>meta eg. author email</li>
<li>required dependencies</li>
<li><a href="http://pypi.python.org/pypi?%3Aaction=list_classifiers">classifiers</a></li>
</ul>
<div>
<p>With that, you can install your Python package. This is usually what you do when you manually install from source.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">python setup.py <span style="color: #c20cb9; font-weight: bold;">install</span></pre></td></tr></table></div>

<p>&nbsp;</p>
</div>
<h2><strong>Step 2) Upload to Python CheeseShop</strong></h2>
<p>But instead of setting up manually, you could make use of Python CheeseShop (pipy) to distribute and setup your package for the Python community. This is the part which connects to pip install.</p>
<p>Firstly, register an account. (Take note: I failed registration a few times, without receiving the validation email. I think that is because of password too short/weak.) The registration is command line based:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">python setup.py register</pre></td></tr></table></div>

<div>
<p>The Python Cheese Shop provides an <a href="http://pypi.python.org/pypi/an_example_pypi_project">example</a> of a pypi project to be uploaded.</p>
</div>
<div>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">bdist_egg upload <span style="color: #660033;">--identity</span>=<span style="color: #ff0000;">&quot;Andrew Carter&quot;</span> <span style="color: #660033;">--sign</span> <span style="color: #660033;">--quiet</span>
bdist_wininst <span style="color: #660033;">--target-version</span>=<span style="color: #000000;">2.4</span> register upload <span style="color: #660033;">--identity</span>=<span style="color: #ff0000;">&quot;Andrew Carter&quot;</span> <span style="color: #660033;">--sign</span> <span style="color: #660033;">--quiet</span>
sdist upload <span style="color: #660033;">--identity</span>=<span style="color: #ff0000;">&quot;Andrew Carter&quot;</span> <span style="color: #660033;">--sign</span></pre></td></tr></table></div>

<p>&nbsp;</p>
</div>
<h2>Versioning</h2>
<p>As a bonus, you might want to understand the difference on prerelease and postrelease versions:</p>
<ul>
<li>prerelease
<ul>
<li>1.2rc1 (same as 1.2c1)</li>
<li>1.2rc &lt; 1.2</li>
</ul>
</li>
<li>postrelease
<ul>
<li>1.2-r2943 (as in revision 2943)</li>
<li>1.2-r2943 &gt; 1.2</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.just2us.com/2012/09/setuptools-python-tool-to-distribute-and-install-your-sdkpackage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sphinx &#8211; Documentation for Python</title>
		<link>http://blog.just2us.com/2012/09/sphinx-documentation-for-python/</link>
		<comments>http://blog.just2us.com/2012/09/sphinx-documentation-for-python/#comments</comments>
		<pubDate>Sat, 01 Sep 2012 11:40:25 +0000</pubDate>
		<dc:creator>samwize</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://blog.just2us.com/?p=848</guid>
		<description><![CDATA[Python is a wonderful language also because of the awesome tools that are available.
One of which is Sphinx. It is like markdown, but even more powerful, with cross referencing of pages and autogeneration of doc for python code.
Start with installing [...]]]></description>
				<content:encoded><![CDATA[<p>Python is a wonderful language also because of the awesome tools that are available.</p>
<p>One of which is <a href="http://sphinx.pocoo.org/">Sphinx</a>. It is like markdown, but even more powerful, with cross referencing of pages and autogeneration of doc for python code.</p>
<p>Start with installing Sphinx.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">sudo</span> easy_install <span style="color: #660033;">-U</span> Sphinx</pre></td></tr></table></div>

<p>Create sphinx docs in your project.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>project<span style="color: #000000; font-weight: bold;">/</span>docs<span style="color: #000000; font-weight: bold;">/</span>
$ sphinx-quickstart</pre></td></tr></table></div>

<p>Write your documentation (eg. quick start guide) in your index.rst. Sphinx uses reStructured Text (a kind of text formatting).  Refer to this <a href="http://thomas-cokelaer.info/tutorials/sphinx/rest_syntax.html">quick tutorial</a> and a <a href="https://github.com/ralsina/rst-cheatsheet">handy cheatsheet</a>.</p>
<p><a href="http://sphinx.pocoo.org/markup/inline.html#cross-referencing-syntax">Cross reference</a> your documentation. You can across to arbitrary location with :ref:`my-label-name ` or across files with :doc:`my-doc-name`</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="html" style="font-family:monospace;">.. _my-reference-label:
&nbsp;
Section to cross-reference
--------------------------
&nbsp;
This is the text of the section.
&nbsp;
It refers to the section itself, see :ref:`my-reference-label`.</pre></td></tr></table></div>

<p>Finally, generate the HTML files.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span> html</pre></td></tr></table></div>

<p>Lastly, Sphinx can automatically generate your module and classes, using your docstrings. That way, you can write your documentation in your python files (and not again in Sphinx doc). To do that, you have to edit Sphinx conf.py to add the path to your modules to sys.path.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;"># Load the source for autodoc</span>
<span style="color: #dc143c;">sys</span>.<span style="color: black;">path</span>.<span style="color: black;">insert</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">0</span><span style="color: #66cc66;">,</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">abspath</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">os</span>.<span style="color: black;">getcwd</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #483d8b;">'..'</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<p>With that, you can automatically generate doc for a class.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="html" style="font-family:monospace;">.. automodule:: mymodule.something
&nbsp;
.. autoclass:: MyClass
    :members:</pre></td></tr></table></div>

<p>This is a short introduction guide to Sphinx. There&#8217;s obviously more, with cases of authors writing books using Sphinx!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.just2us.com/2012/09/sphinx-documentation-for-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tips for Developers Upgrading to Mountain Lion</title>
		<link>http://blog.just2us.com/2012/08/tips-for-developers-upgrading-to-mountain-lion/</link>
		<comments>http://blog.just2us.com/2012/08/tips-for-developers-upgrading-to-mountain-lion/#comments</comments>
		<pubDate>Sat, 04 Aug 2012 02:22:22 +0000</pubDate>
		<dc:creator>samwize</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://blog.just2us.com/?p=841</guid>
		<description><![CDATA[If you are a developer using Python for any purposes (warning: you could be using without knowing), do take heed.
Mountain Lion Kills Python
As discussed in my previous post, upgrading to Mountain Lion will cause many of Python packages not to [...]]]></description>
				<content:encoded><![CDATA[<p>If you are a developer using Python for any purposes (warning: you could be using without knowing), do take heed.</p>
<p><a href="http://blog.just2us.com/2012/07/mountain-lion-kills-my-python/">Mountain Lion Kills Python</a></p>
<p>As discussed in my previous post, upgrading to Mountain Lion will cause many of Python packages not to work. I have found out that /Library/Python/2.7/site-packages/ was cleared! The site-packages directory stores all the third party libraries that you have installed eg. virtualenv, django, pip, mysql, etc..</p>
<p>I have yet to understand the reason for Apple doing that warehouse clearance..</p>
<p>However, a tip for you:</p>
<p>If you are upgrading to Mountain Lion, backup /Library/Python/2.7/site-packages/ to Desktop first. After upgrading, you can copy site-packages back.</p>
<p>&nbsp;</p>
<p><em>UPDATE:</em></p>
<p>I also encountered missing path to mysql and mysql_config commands. Somehow PATH got altered. Here&#8217;s the fix:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="shell" style="font-family:monospace;">export PATH=$PATH:/usr/local/mysql/bin/</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.just2us.com/2012/08/tips-for-developers-upgrading-to-mountain-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mountain Lion kills my Python</title>
		<link>http://blog.just2us.com/2012/07/mountain-lion-kills-my-python/</link>
		<comments>http://blog.just2us.com/2012/07/mountain-lion-kills-my-python/#comments</comments>
		<pubDate>Tue, 31 Jul 2012 00:45:28 +0000</pubDate>
		<dc:creator>samwize</dc:creator>
				<category><![CDATA[whatever]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[pitfall]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://blog.just2us.com/?p=832</guid>
		<description><![CDATA[I upgraded my Mac OS X to Mountain Lion (10.8) shortly after it was released.
Although I don&#8217;t believe it is worth upgrading, I still decided to be on &#8216;technology edge&#8217;.
Everything seems fine after about 2 hours of downloading and installing.. [...]]]></description>
				<content:encoded><![CDATA[<p>I upgraded my Mac OS X to Mountain Lion (10.8) shortly after it was released.</p>
<p>Although I don&#8217;t believe it is worth upgrading, I still decided to be on &#8216;technology edge&#8217;.</p>
<p>Everything seems fine after about 2 hours of downloading and installing.. until the first kill.</p>
<p>I was working on Python and ran some commands. I did a pip install, and I got an error:</p>
<p><strong><cite class="aligncenter">pkg_resources.DistributionNotFound: pip==1.1</cite></strong></p>
<p>And virtualenv is also throwing error:</p>
<p><strong><cite class="aligncenter">ImportError: No module named virtualenvwrapper.hook_loader</cite></strong></p>
<p>After some googling, it can be easily fixed (thanks god) with:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="shell" style="font-family:monospace;">sudo easy_install pip
sudo pip install virtualenv virtualenvwrapper</pre></td></tr></table></div>

<p>It seems like the Python site-packages were all gone too..</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.just2us.com/2012/07/mountain-lion-kills-my-python/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.181 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2013-04-27 03:43:19 -->
