<?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>a very omarish blog.</title>
	<atom:link href="http://omarish.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://omarish.com</link>
	<description>My name is Omar Bohsali. I like to build things.</description>
	<lastBuildDate>Thu, 26 Jan 2012 22:15:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Simple Process Timer in Python.</title>
		<link>http://omarish.com/2012/01/simple-process-timer-in-python/</link>
		<comments>http://omarish.com/2012/01/simple-process-timer-in-python/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 22:11:21 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
				<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://omarish.com/?p=298</guid>
		<description><![CDATA[Profiling code is important. In python, the easiest way to time your code is to do the following: from datetime import datetime start = datetime.now&#40;&#41; # Some long-running process end = datetime.now&#40;&#41; print &#34;process run in %s&#34; % &#40;end - start&#41; This solution works, but it can be annoying to write, and you&#8217;ll have to [...]]]></description>
			<content:encoded><![CDATA[<p>Profiling code is important.</p>
<p>In python, the easiest way to time your code is to do the following:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">datetime</span> <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">datetime</span>
start = <span style="color: #dc143c;">datetime</span>.<span style="color: black;">now</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
<span style="color: #808080; font-style: italic;"># Some long-running process</span>
end = <span style="color: #dc143c;">datetime</span>.<span style="color: black;">now</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;process run in %s&quot;</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span>end - start<span style="color: black;">&#41;</span></pre></div></div>

<p>This solution works, but it can be annoying to write, and you&#8217;ll have to remove the debug lines before you ship your code to production. Once or twice, this is okay. But doing it over and over again can get annoying.</p>
<p>Do this in one line:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">with</span> timer<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">as</span> t:
    <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Hello, world!&quot;</span>
    <span style="color: #808080; font-style: italic;"># Some long-running process.</span></pre></div></div>

<p>which returns</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">Hello world<span style="color: #66cc66;">!</span>
process run <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #ff4500;">0</span>:00:<span style="color: #ff4500;">00.001030</span></pre></div></div>

<p>It&#8217;s cleaner, and you can easily toggle it if your application is off of DEBUG mode. Code below:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">datetime</span> <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">datetime</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">time</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">class</span> timer:
    <span style="color: #ff7700;font-weight:bold;">def</span> __enter__<span style="color: black;">&#40;</span><span style="color: #008000;">self</span><span style="color: black;">&#41;</span>:
        <span style="color: #008000;">self</span>.<span style="color: black;">start</span> = <span style="color: #dc143c;">datetime</span>.<span style="color: black;">now</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">return</span> <span style="color: #008000;">self</span>
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">def</span> __exit__<span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, <span style="color: #008000;">type</span>, value, <span style="color: #dc143c;">traceback</span><span style="color: black;">&#41;</span>:
        <span style="color: #008000;">self</span>.<span style="color: black;">end</span> = <span style="color: #dc143c;">datetime</span>.<span style="color: black;">now</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;time: %s&quot;</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span><span style="color: #008000;">self</span>.<span style="color: black;">end</span> - <span style="color: #008000;">self</span>.<span style="color: black;">start</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">with</span> timer<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">as</span> t:
    <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Hello, World!&quot;</span>
    <span style="color: #dc143c;">time</span>.<span style="color: black;">sleep</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">2</span><span style="color: black;">&#41;</span></pre></div></div>

<p>or <a href="https://gist.github.com/1685386">gist</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://omarish.com/2012/01/simple-process-timer-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On The Edge of Chaos</title>
		<link>http://omarish.com/2011/10/on-the-edge-of-chaos/</link>
		<comments>http://omarish.com/2011/10/on-the-edge-of-chaos/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 18:59:17 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
				<category><![CDATA[ideas]]></category>

		<guid isPermaLink="false">http://omarish.com/?p=285</guid>
		<description><![CDATA[via Creative Emergence]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="Chaos" src="http://creativeemergence.typepad.com/.a/6a00d8345599ab69e201310f99be1c970c-800wi" alt="On the edge of chaos." width="800" height="623" /><br />
<br />
<i><a href="http://creativeemergence.typepad.com/">via Creative Emergence</a></i></p>
]]></content:encoded>
			<wfw:commentRss>http://omarish.com/2011/10/on-the-edge-of-chaos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dawson on &#8220;The Gains of Drudgery&#8221;</title>
		<link>http://omarish.com/2011/09/dawson-on-the-gains-of-drudgery/</link>
		<comments>http://omarish.com/2011/09/dawson-on-the-gains-of-drudgery/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 05:28:34 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
				<category><![CDATA[links]]></category>
		<category><![CDATA[quotes]]></category>

		<guid isPermaLink="false">http://omarish.com/?p=273</guid>
		<description><![CDATA[Came across an interesting post this morning that related to some thoughts I&#8217;ve been having about my own personal work ethic. It takes from a piece written by William James Dawson, called The Gains of Drudgery. I&#8217;ll paste the first paragraph here, the rest is after the fold. By drudgery, I mean work that in [...]]]></description>
			<content:encoded><![CDATA[<p>Came across an <a href="http://artofmanliness.com/2011/09/24/manvotional-the-gains-of-drudgery/">interesting post</a> this morning that related to some thoughts I&#8217;ve been having about my own personal work ethic. It takes from a piece written by William James Dawson, called <em>The Gains of Drudgery</em>. I&#8217;ll paste the first paragraph here, the rest is after the fold.</p>
<blockquote><p>By drudgery, I mean work that in itself is not pleasant, that has no immediate effect in stimulating our best powers, and that only remotely serves the purpose of our general advancement. Such a definition may not be perfect, but it expresses with reasonable accuracy what we usually understand by the term.</p></blockquote>
<p><span id="more-273"></span></p>
<p>Now, if this is what we mean by drudgery, it is clear that we are all drudges. We all have to do many things, day by day, which we would rather not do. Even in the callings that seem to present the most perfect correspondence between gifts and work, such as those of the writer or the artist, drudgery dogs the heels of all progress…We show some perception of these facts in our common sayings, that easy writing makes hard reading, and what costs a man little is usually worth little. But few of us have any adequate sense of the immense toil which lies behind the brilliant successes of the great artist or famous writer. And the same thing might be said of the lives of great statesmen, politicians, reformers, merchants, and memorable men in all walks of life. Examine such lives, and the amount of prolonged toil which lies behind all the glitter of public fame is enormous, and to the indolent even appalling. If any man of the Elizabethan period gives the impression of having achieved great things with a certain airy ease and instinctive facility of touch, it is Walter Raleigh. Yet it was of Raleigh that Elizabeth said, “he could toil terribly.” The same thing may be said of every great man, so that it is small wonder that we have learned to believe that genius itself is simply an infinite capacity for taking pains.</p>
<p>When a man grumbles about the drudgery of his lot, then I am entitled to conclude that he has not learned the discipline of work, and that it is native indolence rather than suppressed genius which chafes against the limitations of his environment. Browning, in his poem of The Statue and the Bust, has laid down the doctrine that it is a man’s wisdom to contend to the uttermost even for the meanest prize that may be within his reach, because by such strenuous contention manhood grows, and by the lack of it manhood decays.</p>
<p>The clerk who does not strive to be the best clerk in the office, the carpenter who is not emulous of being the best carpenter in the workshop, is not likely to achieve excellence in any other pursuit for which he imagines his superior talents better fitted….I have little faith in the youth who is always crying out against his condition, and telling an incredulous world what great things he could do if his lot were different. The boast of general talents for everything usually resolves itself into particular talents for nothing. The incompetent clerk, in nine cases out of ten, would be equally incompetent as writer, artist, or speaker. If I were adjured to help a youth to some sphere supposed to be better suited to his gifts, I should first of all need to be convinced that he had performed faithfully the duties of the inferior sphere in which he found himself. The superior talent always shows itself in the superior performance of inferior duties. It is the man who is faithful in little things to whom there is given authority over larger things. He who has never learned the art of drudgery is never likely to acquire the faculty of great and memorable work, since the greater a man is, the greater is his power of drudgery.</p>
<p>But the gains of drudgery are not seen only in the solid successes of life, but in their effect upon the man himself. Let me take in illustration a not infrequent case. Suppose a man gives up his youth to the struggle for some coveted degree, some honour or award of the scholarly life. It is very possible that when he obtains that for which he has struggled, he may find that the joy of possession is not so great as the joy of the strife. It is part of the discipline of life that we should be educated by disillusion; we press onward to some shining summit, only to find that it is but a bastion thrown out by a greater mountain, which we did not see, and that the real summit lies far beyond us still. But are we the worse for the struggle? No; we are manifestly the better, for by whatever illusion we have been led onward, it is at least clear that without the illusion we should not have stood as high as we do. So a man may either fail or succeed in gaining the prize which he covets; but he cannot help being the gainer in himself. He has not attained, but he has fitted himself for attaining. It is better to fail in achieving a great thing than to succeed in achieving a little one, and the struggle that fails is, in any case, to be preferred to the stolidity which never aspires. And why? Because the struggle is sure to develop certain great and noble qualities in ourselves. Thus, though such a man may not gain the prize he sought, he has gained a command over his chance desires, a discipline of thought, a power of patient application, a steadiness of will and purpose, which will stand him in good stead throughout whatever toils his life may know in the hidden years which lie before it. And even if he gain the prize he sought, the real prize is found not in a degree, a certificate, a brief taste of applause on a commemoration day, but in the deeper strength of soul, the wider range of wisdom, which the long discipline of unflagging effort has taught him. So true is this, that Lessing, who was among the wisest of thinkers, said, that if he had to choose between the attainment of truth and the search for truth, he would prefer the latter. The true gain is always in the struggle, not the prize. What we become must always rank as a far higher question than what we get.</p>
]]></content:encoded>
			<wfw:commentRss>http://omarish.com/2011/09/dawson-on-the-gains-of-drudgery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interesting Article from good.is on the &#8220;Information Arms Race&#8221;</title>
		<link>http://omarish.com/2011/09/interesting-article-from-good-is-on-the-information-arms-race/</link>
		<comments>http://omarish.com/2011/09/interesting-article-from-good-is-on-the-information-arms-race/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 21:42:46 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
				<category><![CDATA[business]]></category>
		<category><![CDATA[links]]></category>

		<guid isPermaLink="false">http://omarish.com/?p=261</guid>
		<description><![CDATA[[...] The rise of microtargeting is a function of new logarithms—and computers fast enough to process them—that are able to capture all this trash and turn it into gold. Over the years, the data-mining industry has become adept at recycling information about the websites we visit and the products we buy. Rumor has it that [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>[...] The rise of microtargeting is a function of new logarithms—and computers fast enough to process them—that are able to capture all this trash and turn it into gold. Over the years, the data-mining industry has become adept at recycling information about the websites we visit and the products we buy. Rumor has it that some high-end companies, including Omaha Steaks, can now make more money by selling their customer pedigrees to data-mining firms than they can from selling their product</p></blockquote>
<p>via <a href="http://www.good.is/post/the-information-arms-race">good.is</a>.</p>
<p>Interesting read. It&#8217;s a bit higher-level than I would have hoped, but it does a great job introducing some of the many ways that organizations are leveraging seemingly minute, uncorrelated data in ways that will add values to organizations.</p>
]]></content:encoded>
			<wfw:commentRss>http://omarish.com/2011/09/interesting-article-from-good-is-on-the-information-arms-race/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>There exists a continuous rail service that goes between Moscow &amp; Vladivostock. It spans 9,259km.</title>
		<link>http://omarish.com/2011/09/there-exists-a-continuous-rail-service-that-goes-from-moscow-to-vladivostock-it-spans-9259km/</link>
		<comments>http://omarish.com/2011/09/there-exists-a-continuous-rail-service-that-goes-from-moscow-to-vladivostock-it-spans-9259km/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 21:36:31 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
				<category><![CDATA[quotes]]></category>
		<category><![CDATA[travel]]></category>

		<guid isPermaLink="false">http://omarish.com/?p=249</guid>
		<description><![CDATA[And Google Maps knows about it. In fact, it recommends it if you ask for Public Transit directions between the aforementioned cities. View Larger Map Brilliant. In the words of Kurt Vonnegut, &#8221;bizarre travel plans are dancing lessons from God.&#8221; More info on the railway on Wikipedia.]]></description>
			<content:encoded><![CDATA[<p>And Google Maps knows about it. In fact, it recommends it if you ask for Public Transit directions between the aforementioned cities.</p>
<p><iframe width="600" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=d&amp;source=s_d&amp;saddr=Moscow,+Russia&amp;daddr=Vladivostok,+Primorskiy+kray,+Russia&amp;hl=en&amp;geocode=FQrEUgMd4f89AinJsNRz_Eq1RjFMz1dXzNZEPQ%3BFUQfkgIddP_cBymF1ElSupyzXzE1fpbd1ARnGA&amp;sll=49.61071,84.726563&amp;sspn=152.500759,302.695312&amp;vpsrc=6&amp;dirflg=r&amp;ttype=dep&amp;date=09%2F27%2F11&amp;time=9:10pm&amp;noexp=0&amp;noal=0&amp;sort=def&amp;mra=ls&amp;ie=UTF8&amp;t=m&amp;start=0&amp;ll=50.736455,86.484375&amp;spn=89.240391,210.585938&amp;z=2&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=d&amp;source=embed&amp;saddr=Moscow,+Russia&amp;daddr=Vladivostok,+Primorskiy+kray,+Russia&amp;hl=en&amp;geocode=FQrEUgMd4f89AinJsNRz_Eq1RjFMz1dXzNZEPQ%3BFUQfkgIddP_cBymF1ElSupyzXzE1fpbd1ARnGA&amp;sll=49.61071,84.726563&amp;sspn=152.500759,302.695312&amp;vpsrc=6&amp;dirflg=r&amp;ttype=dep&amp;date=09%2F27%2F11&amp;time=9:10pm&amp;noexp=0&amp;noal=0&amp;sort=def&amp;mra=ls&amp;ie=UTF8&amp;t=m&amp;start=0&amp;ll=50.736455,86.484375&amp;spn=89.240391,210.585938&amp;z=2" style="color:#0000FF;text-align:left">View Larger Map</a></small></p>
<p>Brilliant. In the words of Kurt Vonnegut, &#8221;bizarre travel plans are dancing lessons from God.&#8221; More info on the railway on <a href="http://en.wikipedia.org/wiki/Trans-Siberian_Railway">Wikipedia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://omarish.com/2011/09/there-exists-a-continuous-rail-service-that-goes-from-moscow-to-vladivostock-it-spans-9259km/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thin Python Cache Decorator</title>
		<link>http://omarish.com/2011/09/thin-python-cache-decorator/</link>
		<comments>http://omarish.com/2011/09/thin-python-cache-decorator/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 06:25:54 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://omarish.com/?p=251</guid>
		<description><![CDATA[def cache&#40;func&#41;: &#34;&#34;&#34; A thin middleware that caches based on function name and arguments. &#34;&#34;&#34; def _inner&#40;*args, **kwargs&#41;: a_str = &#34;&#38;amp;&#34;.join&#40;&#91;str&#40;a&#41; or None for a in args&#93;&#41; kw_str = &#34;&#38;amp;&#34;.join&#40;&#91;&#34;%s=%s&#34; for key, val in kwargs.iteritems&#40;&#41;&#93;&#41; key_name = slugify&#40;&#34;%s:%s:%s&#34; % &#40;func.__name__, a_str, kw_str&#41;&#41; cached = cache.get&#40;key_name&#41; if not cached: cached = func&#40;*args, **kwargs&#41; cache.set&#40;key_name, cached&#41; return [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">def</span> cache<span style="color: black;">&#40;</span>func<span style="color: black;">&#41;</span>:
<span style="color: #483d8b;">&quot;&quot;&quot; A thin middleware that caches based on function name and arguments. &quot;&quot;&quot;</span>
    <span style="color: #ff7700;font-weight:bold;">def</span> _inner<span style="color: black;">&#40;</span><span style="color: #66cc66;">*</span>args, <span style="color: #66cc66;">**</span>kwargs<span style="color: black;">&#41;</span>:
        a_str = <span style="color: #483d8b;">&quot;&amp;amp;&quot;</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span><span style="color: black;">&#91;</span><span style="color: #008000;">str</span><span style="color: black;">&#40;</span>a<span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">or</span> <span style="color: #008000;">None</span> <span style="color: #ff7700;font-weight:bold;">for</span> a <span style="color: #ff7700;font-weight:bold;">in</span> args<span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>
        kw_str = <span style="color: #483d8b;">&quot;&amp;amp;&quot;</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span><span style="color: black;">&#91;</span><span style="color: #483d8b;">&quot;%s=%s&quot;</span> <span style="color: #ff7700;font-weight:bold;">for</span> key, val <span style="color: #ff7700;font-weight:bold;">in</span> kwargs.<span style="color: black;">iteritems</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>
        key_name = slugify<span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;%s:%s:%s&quot;</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span>func.__name__, a_str, kw_str<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
        cached = cache.<span style="color: black;">get</span><span style="color: black;">&#40;</span>key_name<span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #ff7700;font-weight:bold;">not</span> cached:
            cached = func<span style="color: black;">&#40;</span><span style="color: #66cc66;">*</span>args, <span style="color: #66cc66;">**</span>kwargs<span style="color: black;">&#41;</span>
            cache.<span style="color: #008000;">set</span><span style="color: black;">&#40;</span>key_name, cached<span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">return</span> cached
    <span style="color: #ff7700;font-weight:bold;">return</span> _inner</pre></div></div>

<p>This is designed with django in mind, but you can replace cache.set and cache.get with any cache cache framework of your choice. Also, I use slugify because many cache frameworks don&#8217;t like spaces in cache key names. <a href="https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#slugify">Slugify</a> replaces them with dashes.</p>
<p>Usage is simple:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">@cache
<span style="color: #ff7700;font-weight:bold;">def</span> expensive_method<span style="color: black;">&#40;</span>a,b=<span style="color: #008000;">True</span><span style="color: black;">&#41;</span>:
    ...</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://omarish.com/2011/09/thin-python-cache-decorator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On Meditation</title>
		<link>http://omarish.com/2011/09/on-meditation/</link>
		<comments>http://omarish.com/2011/09/on-meditation/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 05:40:42 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://omarish.com/?p=247</guid>
		<description><![CDATA[Third, meditation can help a man “be his own man” and feel comfortable in his own skin.  That constant stream of input we face each day often carries messages of what we’re supposed to think or feel.  Talking-heads spout off opinions as if they were facts. Advertisers try to convince us that buying such-and-such product [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Third, meditation can help a man “be his own man” and feel comfortable in his own skin.  That constant stream of input we face each day often carries messages of what we’re supposed to think or feel.  Talking-heads spout off opinions as if they were facts. Advertisers try to convince us that buying such-and-such product will make us feel more virile and manly. Meditation allows us to be alone with our own thoughts and discover what we really think about the world and ourselves.</p></blockquote>
<p>via <a href="http://artofmanliness.com/2011/09/07/a-primer-on-meditation/" target="_blank">Art of Manliness</a></p>
]]></content:encoded>
			<wfw:commentRss>http://omarish.com/2011/09/on-meditation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Focus Time Hack (OSX)</title>
		<link>http://omarish.com/2011/08/focus-time-hack-osx/</link>
		<comments>http://omarish.com/2011/08/focus-time-hack-osx/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 03:41:03 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://omarish.com/?p=242</guid>
		<description><![CDATA[Block facebook and reddit on your Mac; focus longer and get work done instead. Open up a terminal, copy and paste this: sudo echo "127.0.0.1\tfacebook.com\n127.0.0.1\treddit.com" &#62;&#62; /etc/hosts]]></description>
			<content:encoded><![CDATA[<p>Block facebook and reddit on your Mac; focus longer and get work done instead.</p>
<p>Open up a terminal, copy and paste this:</p>
<pre>sudo echo "127.0.0.1\tfacebook.com\n127.0.0.1\treddit.com" &gt;&gt; /etc/hosts</pre>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://omarish.com/2011/08/focus-time-hack-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>User Interfaces that Involve Uncertainty</title>
		<link>http://omarish.com/2011/08/user-interfaces-that-involve-uncertainty/</link>
		<comments>http://omarish.com/2011/08/user-interfaces-that-involve-uncertainty/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 01:29:33 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
				<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://omarish.com/?p=236</guid>
		<description><![CDATA[I installed Marco Polo today. It seems like a useful application, but it left me wondering. What are some ways to represent decisions that involve uncertainty in user interfaces? The first mental framework that came to mind was the different types of measurement scales. An ordinal scale might make sense, but it&#8217;s hard to order things [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://dl.getdropbox.com/u/274/Static/marco-polo.png" alt="Marco Polo" /></p>
<p>I installed <a href="http://www.symonds.id.au/marcopolo/">Marco Polo</a> today. It seems like a useful application, but it left me wondering. What are some ways to represent decisions that involve uncertainty in user interfaces?</p>
<p>The first mental framework that came to mind was the different types of <a href="http://en.wikipedia.org/wiki/Level_of_measurement">measurement scales</a>. An ordinal scale might make sense, but it&#8217;s hard to order things when there might not be an inherent ordering. Ratio and Interval wouldn&#8217;t do the trick here. At the same time, this nominal scale just doesn&#8217;t work in my mind.</p>
<p>iTunes has a nice interface for building playlists.</p>
<p><img src="http://dl.getdropbox.com/u/274/Static/itunes-smart.png" alt="iTunes Smart Playlist" /></p>
<p>It&#8217;s an interface for defining and setting rules; maybe this would be more appropriate for Marco Polo&#8217;s interface? To go a little bit deeper, what does it mean to have 50% confidence that my Monitor is Color LCD?</p>
<p>I&#8217;m curious about this now. What are some other common UIs that involve making decisions based on uncertainty?</p>
]]></content:encoded>
			<wfw:commentRss>http://omarish.com/2011/08/user-interfaces-that-involve-uncertainty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Circles</title>
		<link>http://omarish.com/2011/08/google-circles/</link>
		<comments>http://omarish.com/2011/08/google-circles/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 01:28:35 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://omarish.com/?p=231</guid>
		<description><![CDATA[I started using Google Plus three weeks ago. I like it a lot; I think I&#8217;ll keep using the service. The UI works, a lot of my friends are already on it, but most importantly it solves a problem that has not yet been solved online: easy, logical information sharing. Logical information sharing. Information sharing [...]]]></description>
			<content:encoded><![CDATA[<p>I started using Google Plus three weeks ago. I like it a lot; I think I&#8217;ll keep using the service. The UI works, a lot of my friends are already on it, but most importantly it solves a problem that has not yet been solved online: easy, logical information sharing.</p>
<p><em>Logical information sharing.</em></p>
<p>Information sharing is a two-piece puzzle. It&#8217;s about the systems behind the social graph (which trust me, can probably already figure out who my Virginia friends are and separate them from my Beirut friends), but even more importantly, my experience of knowing that the system can segment my friends into groups.</p>
<p>It&#8217;s cool if a system knows who is related to whom, but that&#8217;s only half of the puzzle. I, the user, have to know about this as well, and I have to have absolute trust in the system. I have to know the boundaries of my social circles, and I need an explicit agreement with the system that shows me who is in which group. For a while, I was skeptical of the answer being a better UI, but this might just be the winning solution.</p>
<p>It&#8217;s slightly uncanny, because up until this point, my claim is that Google Plus wins because the system can segment my friends into circles. This seems strange, because with all of Facebook&#8217;s engineering talent, they have to have been able to figure out how to do this automatically. Splitting people up into groups is a problem solved by computer scientists time and time again.</p>
<p>I recall watching a friend make a Facebook list &#8211; few people do it, but those who do it tend to be engaged with the lists for the long term. My hypothesis is that once a user knows who is and is not in a specific list (or circle, as we call it now), we will see medium-to-long term increases in that user&#8217;s engagement.</p>
<p>Posting something on facebook takes me a lot of thought; I deal with some internal strife. One must &#8220;write with their audience in mind&#8221;, which is absolutely true. Google Plus lets me segment my audience, which is why I like it a lot.</p>
<p>Systems are interesting &#8211; they&#8217;re about the underlying technology, but more importantly, the involved stakeholders (in this case: end users). Up until this point, nobody has created a system that lets the user feel in control of their social circles. Algorithms can easily match this, but my premise is that it&#8217;s more importnat for the user to feel some semblance of control. A user who knows exactly who is (and perhaps even more importantly, whois not) in a social circle, is more willing to share things.</p>
<p>I used to be an avid LiveJournal user. My friends and I were active livejournal users around the time we were in middle school and early high school (ages 13-16). I downloaded my old posts and was surprised to see what I was sharing. I went into every detail of my life. Everything, from the track meets I ran in, my academic performance, down to the girls I had a crush on. Even more interesting was the fact that out of over 1,000 posts, only 20 of them had no privacy settings whatsoever.</p>
<p>Only 20. That means that 98% of my interaction with LiveJournal involved posting content to specific groups. I was comfortable sharing everything because I knew that a rant about somebody, for example, would not get into that person&#8217;s feed.</p>
<p>I felt the same way yesterday. I posted something to Google Plus, into my <em>California Social Circle</em>. These are my San Francisco friends. Nobody from Beirut. Nobody from UVa. Only people who would find it relevant. Strangely enough, I felt completely comfortable doing it. Even more interesting was I had a lot more feedback than I would have gotten if I had put it on Facebook or Twitter.</p>
<p>Interesting! Sounds like the <a href="http://en.wikipedia.org/wiki/Signal-to-noise_ratio">SNR</a> is down. Well done, Google Plus.</p>
]]></content:encoded>
			<wfw:commentRss>http://omarish.com/2011/08/google-circles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

