<?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>Standard Deviations</title>
	<atom:link href="http://parand.com/say/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://parand.com/say</link>
	<description>Parand Tony Darugar: A Cruel and Petty Dictator</description>
	<lastBuildDate>Thu, 10 May 2012 02:23:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Efficiently finding large (size and dimension) images</title>
		<link>http://parand.com/say/index.php/2012/05/09/efficiently-finding-large-size-and-dimension-images/</link>
		<comments>http://parand.com/say/index.php/2012/05/09/efficiently-finding-large-size-and-dimension-images/#comments</comments>
		<pubDate>Thu, 10 May 2012 02:23:42 +0000</pubDate>
		<dc:creator>Parand</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://parand.com/say/?p=1187</guid>
		<description><![CDATA[I needed to efficiently find large images (those with dimensions greater than x). Here&#8217;s what I came up with:
First, find images whose file size is greater than 3M:
find . -name '*jpg' -size 3M &#62; /tmp/big-receipts.txt

Now, get the dimensions of each of those images using imagemagick&#8217;s identify command line utility. The key to using this thing [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to efficiently find large images (those with dimensions greater than x). Here&#8217;s what I came up with:</p>
<p>First, find images whose file size is greater than 3M:</p>
<pre>find . -name '*jpg' -size 3M &gt; /tmp/big-receipts.txt</pre>
</p>
<p>Now, get the dimensions of each of those images using imagemagick&#8217;s identify command line utility. The key to using this thing efficiently is to include the &#8220;-ping&#8221; flag (believe it or not that took me quite a while to figure out):</p>
<pre>identify -ping filename.jpg</pre>
</p>
<p>displays this type of output:</p>
<pre>/tmp/big.jpg JPEG 10200x13200 10200x13200+0+0 8-bit DirectClass 5.54MB 0.000u 0:00.000</pre>
</p>
<p>Now we can put the two together:</p>
<pre>for fname in `cat /tmp/big-receipts.txt`; do identify -ping $fname; done</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://parand.com/say/index.php/2012/05/09/efficiently-finding-large-size-and-dimension-images/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hands On With the BlackBerry Playbook: Actually Quite Nice</title>
		<link>http://parand.com/say/index.php/2012/02/27/hands-on-with-the-blackberry-playbook-actually-quite-nice/</link>
		<comments>http://parand.com/say/index.php/2012/02/27/hands-on-with-the-blackberry-playbook-actually-quite-nice/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 07:06:11 +0000</pubDate>
		<dc:creator>Parand</dc:creator>
				<category><![CDATA[Review]]></category>

		<guid isPermaLink="false">http://parand.com/say/?p=1182</guid>
		<description><![CDATA[Over the weekend I attended the Blackberry hackathon with the hopes of creating an Xpenser blackberry app. The RIM folks were nice enough to give away a Playbook to everyone who presented, so I ended up with one.

I was skeptical, to say the least. I expected a sluggish, ugly interface with a dearth of applications.
What [...]]]></description>
			<content:encoded><![CDATA[<p>Over the weekend I attended the Blackberry hackathon with the hopes of creating an <a href="http://xpenser.com/">Xpenser</a> blackberry app. The RIM folks were nice enough to give away a Playbook to everyone who presented, so I ended up with one.</p>
<p><img style="border-image: initial; border: 4px solid black;" src="http://static8.businessinsider.com/image/4ca106617f8b9a5354760400/blackberry-playbook.jpg" alt="Blackberry Playbook" width="610" height="457" /></p>
<p>I was skeptical, to say the least. I expected a sluggish, ugly interface with a dearth of applications.</p>
<p>What I got is quite nice. The blackberry has a very usable interface &#8211; it&#8217;s fast and responsive, and some of the gestures (eg. closing and switching apps) are the best I&#8217;ve seen on a tablet.</p>
<p>It comes with a nice car racing game (I surprised myself by spending a few hours playing it), and the browser is quite excellent, probably the best I&#8217;ve seen on a tablet.</p>
<p>The development environment is also rich: you can use HTML or flash as well as native SDKs.</p>
<p>It doesn&#8217;t seem to come with a built-in email app (or if it does I&#8217;ve missed it), which is very surprising given the Blackberry pedigree.</p>
<p>It&#8217;s also lacking apps and games &#8211; the app world feels a bit empty.</p>
<p>I&#8217;m surprised at how much I like the device. I just wish it had more apps.</p>
]]></content:encoded>
			<wfw:commentRss>http://parand.com/say/index.php/2012/02/27/hands-on-with-the-blackberry-playbook-actually-quite-nice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SFTP: Specifying Port, SSH key</title>
		<link>http://parand.com/say/index.php/2012/02/23/sftp-specifying-port-ssh-key/</link>
		<comments>http://parand.com/say/index.php/2012/02/23/sftp-specifying-port-ssh-key/#comments</comments>
		<pubDate>Thu, 23 Feb 2012 23:28:25 +0000</pubDate>
		<dc:creator>Parand</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://parand.com/say/?p=1179</guid>
		<description><![CDATA[This page is helpful.
Specifying port:

sftp  -v -oPort=6636 -o IdentityFile=keys/my-key.ssh my_username@sftp.somesite.com

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mkssoftware.com/docs/man1/sftp.1.asp">This page</a> is helpful.</p>
<p>Specifying port:</p>
<pre><code lang="bash">
sftp  -v -oPort=6636 -o IdentityFile=keys/my-key.ssh my_username@sftp.somesite.com
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://parand.com/say/index.php/2012/02/23/sftp-specifying-port-ssh-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Student Loans Are Killing Entrepreneurship</title>
		<link>http://parand.com/say/index.php/2012/02/15/student-loans-are-killing-entrepreneurship/</link>
		<comments>http://parand.com/say/index.php/2012/02/15/student-loans-are-killing-entrepreneurship/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 06:15:11 +0000</pubDate>
		<dc:creator>Parand</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Startup]]></category>

		<guid isPermaLink="false">http://parand.com/say/?p=1173</guid>
		<description><![CDATA[If you know me you know I&#8217;m a huge fan of entrepreneurship &#8211; instead of renting yourself out to someone else, start a business that scales. Be your own pimp.
I gave a guest lecture at UCSD recently espousing this viewpoint. You are cheap right now, I told them, so take advantage. If you wait 10 [...]]]></description>
			<content:encoded><![CDATA[<p>If you know me you know I&#8217;m a huge fan of entrepreneurship &#8211; instead of renting yourself out to someone else, start a business that scales. Be your own pimp.</p>
<p>I gave a guest lecture at UCSD recently espousing this viewpoint. You are cheap right now, I told them, so take advantage. If you wait 10 years to start a company you&#8217;ll have much higher earning power and much higher personal costs (spouse, mortgage, &#8230;) and therefore a much higher opportunity cost when starting a company.</p>
<p><strong>What about our student loans?</strong> asked one of the students.</p>
<p>Good question. I don&#8217;t have a good answer. </p>
<p>When I went to school I was able to pay my way from the third year onward. I left school with savings instead of debt. I was able to start a company immediately.</p>
<p>Today students graduate with an average debt of about $27,000 dollars.</p>
<p>That&#8217;s just awful. That means they are bound to a job for at least the first part of their career. We&#8217;re removing the option of starting a company, of producing explosive value, of growing the economy to the benefit of the whole country, for more than 60% of our graduates. </p>
<p>Think of all of the companies with billions in value created by college students. Think Facebook, Dropbox. We need these. We want these created in the US.</p>
<p>We have to get education costs under control. We can screw the young generation over to put a few extra bucks in our pockets now, but we&#8217;ll all end up paying for it when we fall behind other countries who encourage their creative young to be entrepreneurs.</p>
]]></content:encoded>
			<wfw:commentRss>http://parand.com/say/index.php/2012/02/15/student-loans-are-killing-entrepreneurship/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Dynamically Import Python Modules</title>
		<link>http://parand.com/say/index.php/2012/01/11/how-to-dynamically-import-python-modules/</link>
		<comments>http://parand.com/say/index.php/2012/01/11/how-to-dynamically-import-python-modules/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 20:33:20 +0000</pubDate>
		<dc:creator>Parand</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://parand.com/say/?p=1165</guid>
		<description><![CDATA[Here&#8217;s how you import a python module dynamically: say your module is called &#8220;mysettings&#8221; and it&#8217;s in the directory &#8220;config&#8221;. Make sure you have a __init__.py in your &#8220;config&#8221; directory and use:

mysettings = __import__("config.mysettings", fromlist=["config"])



This is equivalent to

from config import mysetings

]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how you import a python module dynamically: say your module is called &#8220;mysettings&#8221; and it&#8217;s in the directory &#8220;config&#8221;. Make sure you have a <code>__init__.py</code> in your &#8220;config&#8221; directory and use:</p>
<pre><code lang="python">
mysettings = __import__("config.mysettings", fromlist=["config"])

</code></pre>
<p>
This is equivalent to</p>
<pre><code lang="python">
from config import mysetings
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://parand.com/say/index.php/2012/01/11/how-to-dynamically-import-python-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Scan Multiple Pages Into a Single PDF on OS X</title>
		<link>http://parand.com/say/index.php/2011/11/15/how-to-scan-multiple-pages-into-a-single-pdf-on-os-x/</link>
		<comments>http://parand.com/say/index.php/2011/11/15/how-to-scan-multiple-pages-into-a-single-pdf-on-os-x/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 00:26:38 +0000</pubDate>
		<dc:creator>Parand</dc:creator>
				<category><![CDATA[HowTo]]></category>

		<guid isPermaLink="false">http://parand.com/say/?p=1161</guid>
		<description><![CDATA[My new printer has a document feeder which makes scanning of multiple pages easy, but I didn&#8217;t know how to kick off the scan on OS X. Turns out it&#8217;s quite easy:

Open the OS X Preview app
Go to the File menu and select Import From Scanner
Select your printer
Look for the &#8220;Format&#8221; option on the right [...]]]></description>
			<content:encoded><![CDATA[<p>My new printer has a document feeder which makes scanning of multiple pages easy, but I didn&#8217;t know how to kick off the scan on OS X. Turns out it&#8217;s quite easy:</p>
<ul>
<li>Open the OS X Preview app</li>
<li>Go to the File menu and select Import From Scanner</li>
<li>Select your printer</li>
<li>Look for the &#8220;Format&#8221; option on the right hand page and set it to PDF</li>
<li>Select the &#8220;Create single document&#8221; option</li>
<li>Hit the Scan button</li>
</ul>
<p>This will produce a single PDF file with all of the pages of your document, scanned into the location of your choice.</p>
]]></content:encoded>
			<wfw:commentRss>http://parand.com/say/index.php/2011/11/15/how-to-scan-multiple-pages-into-a-single-pdf-on-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Titanium Studio: How To View Android Log Messages</title>
		<link>http://parand.com/say/index.php/2011/08/15/titanium-studio-how-to-view-android-log-messages/</link>
		<comments>http://parand.com/say/index.php/2011/08/15/titanium-studio-how-to-view-android-log-messages/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 22:35:10 +0000</pubDate>
		<dc:creator>Parand</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://parand.com/say/?p=1154</guid>
		<description><![CDATA[Apparently with Titanium Studio it&#8217;s not possible to see log messages in the Titanium console.
Here&#8217;s how you see your log messages:
adb logcat &#124; grep "TiAPI"

adb is in the tools directory of your Android sdk.
]]></description>
			<content:encoded><![CDATA[<p>Apparently with Titanium Studio it&#8217;s not possible to see log messages in the Titanium console.</p>
<p>Here&#8217;s how you see your log messages:</p>
<pre><code>adb logcat | grep "TiAPI"
</code></pre>
<p>adb is in the tools directory of your Android sdk.</p>
]]></content:encoded>
			<wfw:commentRss>http://parand.com/say/index.php/2011/08/15/titanium-studio-how-to-view-android-log-messages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy way to view cookies in Chrome</title>
		<link>http://parand.com/say/index.php/2011/07/27/easy-way-to-view-cookies-in-chrome/</link>
		<comments>http://parand.com/say/index.php/2011/07/27/easy-way-to-view-cookies-in-chrome/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 21:32:31 +0000</pubDate>
		<dc:creator>Parand</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://parand.com/say/?p=1152</guid>
		<description><![CDATA[Here&#8217;s an easy way to see the cookies for the current site in Chrome:

javascript:void(document.cookie=prompt(document.cookie,document.cookie));

Via stackoveflow.
]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an easy way to see the cookies for the current site in Chrome:</p>
<pre><code>
javascript:void(document.cookie=prompt(document.cookie,document.cookie));
</code></pre>
<p>Via <a href="http://stackoverflow.com/questions/913296/how-to-see-cookie-information-of-chrome-browser" target="_blank">stackoveflow</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://parand.com/say/index.php/2011/07/27/easy-way-to-view-cookies-in-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Django: Checking If A User Is In A Group</title>
		<link>http://parand.com/say/index.php/2011/06/16/django-checking-if-a-user-is-in-a-group/</link>
		<comments>http://parand.com/say/index.php/2011/06/16/django-checking-if-a-user-is-in-a-group/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 17:59:11 +0000</pubDate>
		<dc:creator>Parand</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://parand.com/say/?p=1148</guid>
		<description><![CDATA[Adding to my earlier post on the django permission system:
You can check if a user is part of a group using this simple snippet. It will allow you to check if a user is in a group with the following template syntax:

{% if user&#124;in_group:"Friends,Enemies" %}

]]></description>
			<content:encoded><![CDATA[<p>Adding to my earlier post on the <a href="http://parand.com/say/index.php/2010/02/19/django-using-the-permission-system/">django permission system</a>:</p>
<p>You can check if a user is part of a group using <a href="http://djangosnippets.org/snippets/847/">this simple snippet</a>. It will allow you to check if a user is in a group with the following template syntax:</p>
<pre><code>
{% if user|in_group:"Friends,Enemies" %}
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://parand.com/say/index.php/2011/06/16/django-checking-if-a-user-is-in-a-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uniforms</title>
		<link>http://parand.com/say/index.php/2011/03/04/uniforms/</link>
		<comments>http://parand.com/say/index.php/2011/03/04/uniforms/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 00:18:09 +0000</pubDate>
		<dc:creator>Parand</dc:creator>
				<category><![CDATA[Etc]]></category>

		<guid isPermaLink="false">http://parand.com/say/?p=1138</guid>
		<description><![CDATA[I went to a school that required uniforms (private school in England). We were forced to be uniform.
This afternoon driving by the high school near my house I was amused to see uniforms everywhere &#8211; here a patch of girls all wearing the same types of shorts, with hair pulled back, there a group of [...]]]></description>
			<content:encoded><![CDATA[<p>I went to a school that required uniforms (private school in England). We were forced to be uniform.</p>
<p>This afternoon driving by the high school near my house I was amused to see uniforms everywhere &#8211; here a patch of girls all wearing the same types of shorts, with hair pulled back, there a group of emo kids all wearing shades of near identical clothes.</p>
<p>It&#8217;s lovely. We all need to be different in our uniform ways.</p>
]]></content:encoded>
			<wfw:commentRss>http://parand.com/say/index.php/2011/03/04/uniforms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

