<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>be present now</title>
	
	<link>http://durdn.com/blog</link>
	<description>modern alchemy for joyful living.</description>
	<lastBuildDate>Sun, 01 Nov 2009 20:24:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/durdn" /><feedburner:info uri="durdn" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>how to setup pinax with nginx</title>
		<link>http://feedproxy.google.com/~r/durdn/~3/qJe_cojUERE/</link>
		<comments>http://durdn.com/blog/2009/10/07/how-to-setup-pinax-with-nginx/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 00:38:44 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[django]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pinax]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[flup]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://durdn.com/blog/?p=66</guid>
		<description><![CDATA[Tonight I spent sometime getting Pinax &#8211; Django swiss army knife &#8211; to work on nginx via fastcgi on my Ubuntu 9.10 box. Here is a step by step guide. First of course we need to install nginx, pretty easy with Ubuntu: sudo apt-get install nginx Create a new file called &#60;appname&#62; in /etc/nginx/sites-available/ like [...]]]></description>
			<content:encoded><![CDATA[<p>Tonight I spent sometime getting <a href="http://pinaxproject.com">Pinax</a> &#8211; <a href="http://www.djangoproject.com/">Django</a> swiss army knife &#8211; to work on <a href="http://wiki.nginx.org/Main">nginx</a> via fastcgi on my <a href="http://www.ubuntu.com/testing/karmic/beta">Ubuntu 9.10</a> box. Here is a step by step guide.</p>
<p>First of course we need to install nginx, pretty easy with Ubuntu:</p>
<p><code>sudo apt-get install nginx</code></p>
<p>Create a new file called &lt;appname&gt; in /etc/nginx/sites-available/ like the following:</p>
<pre>
upstream djangoserv {
    server 127.0.0.1:8801;
}

server {
    listen   80;
    server_name  alkemic;

    access_log  /var/log/nginx/appname.access.log;

    location ^~ /site_media/  {
        alias /home/nick/dev/projects/pinax07/appname/site_media/;
        autoindex on;
    }
    location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov)   {
        #access_log   off;
        expires      30d;
    }

    location / {
        # host and port to fastcgi server
        fastcgi_pass 127.0.0.1:8801;
        fastcgi_param PATH_INFO $fastcgi_script_name;
        fastcgi_param REQUEST_METHOD $request_method;
        fastcgi_param QUERY_STRING $query_string;
        fastcgi_param SERVER_NAME $server_name;
        fastcgi_param SERVER_PORT $server_port;
        fastcgi_param SERVER_PROTOCOL $server_protocol;
        fastcgi_param CONTENT_TYPE $content_type;
        fastcgi_param CONTENT_LENGTH $content_length;
        fastcgi_pass_header Authorization;
        fastcgi_intercept_errors off;
    }
}
</pre>
<p>Link it to sites-enabled so that we know it&#8217;s going to be started up (meanwhile you want to remove the default one):</p>
<p><code>sudo ln -s /etc/nginx/sites-available/appname /etc/nginx/sites-enabled/</code></p>
<p>Startup nginx with:</p>
<p><code>sudo /etc/init.d/nginx start</code></p>
<p>Activate your pinax installation (change the path to where you have installed your Pinax virtual environment):</p>
<p><code>source /home/nick/dev/projects/pinax07/bin/activate</code></p>
<p>Install <a href="http://trac.saddi.com/flup">flup</a> (required to have manage.py run as fastcgi) in your virtual env:</p>
<p><code>pip install flup</code></p>
<p>Symlink all the static assets into the site_media folder:</p>
<p><code> css -&gt; /home/nick/dev/projects/pinax07/appname/media/css/<br />
img -&gt; /home/nick/dev/projects/pinax07/appname/media/img<br />
js -&gt; /home/nick/dev/projects/pinax07/appname/media/js<br />
pinax -&gt; ../../lib/python2.6/site-packages/pinax/media/default/pinax/<br />
snd -&gt; /home/nick/dev/projects/pinax07/appname/media/snd<br />
swf -&gt; /home/nick/dev/projects/pinax07/appname/media/swf<br />
</code></p>
<p>Launch the python fastcgi process:</p>
<p><code> python ./manage.py runfcgi method=threaded host=127.0.0.1 port=8801<br />
</code><br />
Or:</p>
<p><code>python ./manage.py runfcgi method=prefork host=127.0.0.1 port=8801</code></p>
<p>Note that you might need to move your development environment to use a proper db like MySQL because otherwise the app will have problems finding your sqlite db file.</p>
<p>You should have now your app running on the blazing fast nginx.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdurdn.com%2Fblog%2F2009%2F10%2F07%2Fhow-to-setup-pinax-with-nginx%2F';
  addthis_title  = 'how+to+setup+pinax+with+nginx';
  addthis_pub    = 'durdn';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<img src="http://feeds.feedburner.com/~r/durdn/~4/qJe_cojUERE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://durdn.com/blog/2009/10/07/how-to-setup-pinax-with-nginx/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://durdn.com/blog/2009/10/07/how-to-setup-pinax-with-nginx/</feedburner:origLink></item>
		<item>
		<title>how many times did I listen to this?</title>
		<link>http://feedproxy.google.com/~r/durdn/~3/yujpM1ertd0/</link>
		<comments>http://durdn.com/blog/2009/09/14/how-many-times-did-i-listen-to-this/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 13:56:25 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[music therescues cant stand the rain mp3 thesixtyone]]></category>

		<guid isPermaLink="false">http://durdn.com/blog/?p=59</guid>
		<description><![CDATA[addthis_url = 'http%3A%2F%2Fdurdn.com%2Fblog%2F2009%2F09%2F14%2Fhow-many-times-did-i-listen-to-this%2F'; addthis_title = 'how+many+times+did+I+listen+to+this%3F'; addthis_pub = 'durdn';]]></description>
			<content:encoded><![CDATA[<p><object><embed src="http://www.thesixtyone.com/site_media/swf/song_player_embed.swf?song_id=59687&#038;artist_username=therescues" type="application/x-shockwave-flash" wmode="transparent" width="310" height="120"></embed></object></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdurdn.com%2Fblog%2F2009%2F09%2F14%2Fhow-many-times-did-i-listen-to-this%2F';
  addthis_title  = 'how+many+times+did+I+listen+to+this%3F';
  addthis_pub    = 'durdn';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<img src="http://feeds.feedburner.com/~r/durdn/~4/yujpM1ertd0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://durdn.com/blog/2009/09/14/how-many-times-did-i-listen-to-this/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://durdn.com/blog/2009/09/14/how-many-times-did-i-listen-to-this/</feedburner:origLink></item>
		<item>
		<title>I love staring at branches and shuffle, reorder and squash commits</title>
		<link>http://feedproxy.google.com/~r/durdn/~3/MvU76yLkHfg/</link>
		<comments>http://durdn.com/blog/2009/08/16/i-love-staring-at-branches-and-shuffle-reorder-and-squash-commits/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 20:49:53 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[branch]]></category>
		<category><![CDATA[dvcs]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://durdn.com/blog/?p=48</guid>
		<description><![CDATA[I don&#8217;t know what it is. Maybe it&#8217;s inherent to human nature to strive for and to create order. Maybe it&#8217;s just me. But I love staring at branches and I love cleaning up my commit history until it shines. This is of course possible and encouraged with git and it&#8217;s only possible if you [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know what it is. Maybe it&#8217;s inherent to human nature to strive for and to create order. Maybe it&#8217;s just me.</p>
<p>But I love staring at branches and I love cleaning up my commit history until it shines. This is of course possible and encouraged with <a href="http://git-scm.com/">git</a> and it&#8217;s only possible if you haven&#8217;t shared your code with anyone else publicly (pushed to a shared remote repository). So how does a shuffling cleaning frenzy look like? Here: (The screen-shot below is from <a href="http://gitx.frim.nl/">GitX</a> just for eye candy).</p>
<p><a href="http://durdn.com/blog/wp-content/uploads/2009/08/Picture-3.png"><img class="alignnone size-full wp-image-49" title="staring at branches" src="http://durdn.com/blog/wp-content/uploads/2009/08/Picture-3.png" alt="staring at branches" width="432" height="351" /></a></p>
<p>How do I work? Before I share my work with other developers I commit stuff to local branches furiously and in very small increments, I branch away like crazy. Then after a while I realize things are messy and commits are not elegantly divided per feature. So I stop coding and start cleaning the history of commits until they fit into a clean list of recognizable units of work. At that point I can merge the work back into the mainline, say the master branch or some shared topic branch.</p>
<p>Tools of the trade ? <a href="http://www.kernel.org/pub/software/scm/git/docs/git-branch.html">git branch</a>, <a href="http://www.kernel.org/pub/software/scm/git/docs/git-reset.html">git reset</a>, git cherry-pick and the very powerful <a href="http://www.kernel.org/pub/software/scm/git/docs/git-commit.html">git commit &#8211;interactive</a>.</p>
<p>If you&#8217;re wondering why I like git and why I don&#8217;t use x (where x could be svn, hg, bzr or perforce) a good collection of reasons can be found at <a href="http://whygitisbetterthanx.com/">Why Git is Better Than X</a> .</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdurdn.com%2Fblog%2F2009%2F08%2F16%2Fi-love-staring-at-branches-and-shuffle-reorder-and-squash-commits%2F';
  addthis_title  = 'I+love+staring+at+branches+and+shuffle%2C+reorder+and+squash+commits';
  addthis_pub    = 'durdn';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<img src="http://feeds.feedburner.com/~r/durdn/~4/MvU76yLkHfg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://durdn.com/blog/2009/08/16/i-love-staring-at-branches-and-shuffle-reorder-and-squash-commits/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://durdn.com/blog/2009/08/16/i-love-staring-at-branches-and-shuffle-reorder-and-squash-commits/</feedburner:origLink></item>
		<item>
		<title>link dump from a conversation: entrepreneurs, social media, cool products, random awesomeness</title>
		<link>http://feedproxy.google.com/~r/durdn/~3/EH-hXnlRfDI/</link>
		<comments>http://durdn.com/blog/2009/07/22/link-dump-from-a-conversation-entrepreneurs-social-media-cool-products-random-awesomeness/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 16:26:17 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[linkdump]]></category>
		<category><![CDATA[startup]]></category>
		<category><![CDATA[link dump video entrepreneur social media sorapot tim f]]></category>
		<category><![CDATA[seedcamp]]></category>

		<guid isPermaLink="false">http://durdn.com/blog/?p=44</guid>
		<description><![CDATA[Every once in a while I have wonderful conversations about life, technology and everything. Many times I end up talking about a myriad of topics. For example today I had lunch with Jonathan Greenwood (you should follow him on twitter here) and learned a great deal about many interesting things. I am always intrigued and [...]]]></description>
			<content:encoded><![CDATA[<p>Every once in a while I have wonderful conversations about life, technology and everything. Many times I end up talking about a myriad of topics. For example today I had lunch with <a href="http://jonathangreenwood.wordpress.com/">Jonathan Greenwood</a> (you should follow him on twitter <a href="http://twitter.com/opentrail">here</a>) and learned a great deal about many interesting things. I am always intrigued and delighted to rediscover that not everyone has my same brain, interests, browsing habits. Not everyone keeps track closely of the same spaces and same people I do.</p>
<p>So here is a random mesh of interesting links that I recurrently mention in my conversations, the common thread being &#8211; well it&#8217;s quite a broad one I&#8217;ll admit &#8211; entrepreneurship, social media, cool people and products, online videos, friends. You might have seen some of these already, but then again, maybe not.</p>
<h3>Seedcamp</h3>
<p><a href="http://seedcamp.com">Seedcamp</a> is a Micro seed fund that invests in start-up companies. I want to participate in the August selection round with my friend <a href="http://twitter.com/nocivus">nocivus</a>.</p>
<h3>Vibram 5 fingers</h3>
<p><a href="http://www.vibramfivefingers.com/">The product site</a></p>
<p><a href="http://www.vibramfivefingers.com/"></a>Tim Ferris <a href="http://www.fourhourworkweek.com/blog/2009/05/07/vibram-five-fingers-shoes/">review</a></p>
<h3>Gary Vaynerchuk inspiring videos</h3>
<p>&#8220;The&#8221; online wine guy and entrepreneur Gary Vaynerchuk, pioneer of video blogging is quite a personality. Totally love him:</p>
<ul>
<li>His video blog on wine is <a href="http://tv.winelibrary.com/">here</a></li>
<li>Personally I liked <a href="http://vaynermedia.com/gary-vaynerchuk-keynote-at-big-omaha.html">this</a> of his keynotes. All his other keynotes <a href="http://vaynermedia.com/keynotes.html">here</a>.</li>
</ul>
<h3>The story of Parrot Secrets</h3>
<p>The <a href="http://www.cringely.com/2009/03/parrot-secrets/">story </a>of Parrot Secrets, fascinating recount about a very simple (though controversial) e-book business.</p>
<h3>Sorapot, a cool teapot</h3>
<p><a href="http://www.sorapot.com/">Sorapot</a>, the teapot developed by a young designer and manufactured in China. <a href="http://vimeo.com/5383223">Good video interview</a> by Kevin Rose from digg.</p>
<h3>Paul Graham essays</h3>
<p><a href="http://www.paulgraham.com/articles.html">Really insightful essays about startups and innovation</a>.</p>
<p><a href="http://www.paulgraham.com/avg.html">This</a> is one of the first I read and it made a deep impression on me, years ago.</p>
<h3>Tim Ferris on improving your blog</h3>
<p>Video of <a href="http://www.fourhourworkweek.com/blog/2009/06/29/how-to-build-a-high-traffic-blog-without-killing-yourself/">Tim Ferris giving advice on improving your blog</a>, very practical and analytical as always.</p>
<h3>Diggnation</h3>
<p>Kevin Rose&#8217;s <a href="http://revision3.com/diggnation/">video show</a> about popular news stories on <a href="http://digg.com">digg</a>.</p>
<h3>Two guys and a beer</h3>
<p>Pedro <a href="http://www.vimeo.com/channels/tgab">picked up video blogging</a>. Non politically correct, alcohol consumption, cursing. Promising!</p>
<h3>Geeky and Entrepreneur news sources that I visit daily</h3>
<p><a href="http://news.ycombinator.com">http://news.ycombinator.com</a></p>
<p><a href="http://programming.reddit.com">http://programming.reddit.com</a></p>
<h3>Equalway</h3>
<p>Mirko Calvaresi&#8217;s <a href="http://www.equalway.org">site </a>about grassroots italian buying groups &#8211; in Italian.</p>
<h3>By the way</h3>
<p>You should follow me on twitter <a href="http://twitter.com/durdn">here</a>.</p>
<p>*<a href="http://dustincurtis.com/you_should_follow_me_on_twitter.html">lol</a>*</p>
<p>Wow that&#8217;s a few links and videos. Enjoy and take your time.  I&#8217;ll be delighted if you want to chat about any of the above or if you found anything interesting.</p>
<p>And if you are any of the people mentioned above and are reading this, you rock and are an inspiration for me.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdurdn.com%2Fblog%2F2009%2F07%2F22%2Flink-dump-from-a-conversation-entrepreneurs-social-media-cool-products-random-awesomeness%2F';
  addthis_title  = 'link+dump+from+a+conversation%3A+entrepreneurs%2C+social+media%2C+cool+products%2C+random+awesomeness';
  addthis_pub    = 'durdn';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<img src="http://feeds.feedburner.com/~r/durdn/~4/EH-hXnlRfDI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://durdn.com/blog/2009/07/22/link-dump-from-a-conversation-entrepreneurs-social-media-cool-products-random-awesomeness/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://durdn.com/blog/2009/07/22/link-dump-from-a-conversation-entrepreneurs-social-media-cool-products-random-awesomeness/</feedburner:origLink></item>
		<item>
		<title>how to integrate compass into your default pinax project</title>
		<link>http://feedproxy.google.com/~r/durdn/~3/hxI4pIfp9gQ/</link>
		<comments>http://durdn.com/blog/2009/07/02/how-to-integrate-compass-into-your-default-pinax-project/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 03:33:38 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[960]]></category>
		<category><![CDATA[blueprint]]></category>
		<category><![CDATA[compass]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[haml]]></category>
		<category><![CDATA[pinax]]></category>
		<category><![CDATA[sass]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://durdn.com/blog/?p=43</guid>
		<description><![CDATA[Lately I&#8217;ve been really impressed and experimented joyfully with Compass and Sass. They make css/layout design fun again for me. Even if the whole tool chain is in Ruby you don&#8217;t have to touch any Ruby to use them &#8211; don&#8217;t misunderstand me: I like Ruby and I&#8217;ve been a Rails early adopter; my brain [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I&#8217;ve been really impressed and experimented joyfully with<br />
<a href="http://compass-style.org/">Compass</a> and <a href="http://haml.hamptoncatlin.com/docs/">Sass</a>. They make css/layout design fun again for me. Even if the whole tool chain is in Ruby you don&#8217;t have to touch any Ruby to use them &#8211; don&#8217;t misunderstand me: I like Ruby and I&#8217;ve been a Rails early adopter; my brain is very well tuned in with Python, that&#8217;s all -.</p>
<p>Compass makes the creation of a semantic layout using any of the<br />
popular css frameworks (<a href="http://blueprintcss.org/">blueprint</a>, <a href="http://960.gs">960</a>, etc.) a breeze.</p>
<p>There&#8217;s ton of documentation around, for example <a href="http://blog.carbonfive.com/2009/03/html/compass-960-semantics">this</a> is what got me into it a while ago.</p>
<p>So today after a furious coding spree I achieved what I wanted. I integrated Compass into a default <a href="http://pinaxproject.com">Pinax</a> project.</p>
<p>To prove that I could quickly change the layout in an elegant way I tried to alter the default theme to have the menus vertically aligned instead than horizontally.</p>
<p>I know people love pretty pictures and screenshots so here is a taste of the end result:</p>
<p><a href="http://durdn.com/vertical-menu-pinax-theme.png"><img class="alignnone" src="http://durdn.com/vertical-menu-pinax-theme.png" alt="default theme of pinax with vertical menus" width="476" height="267" /></a></p>
<p>And another one:</p>
<p><a href="http://durdn.com/vertical-menu-pinax-theme-2.png"><img class="alignnone" src="http://durdn.com/vertical-menu-pinax-theme-2.png" alt="vertical menu in pinax theme" width="446" height="206" /></a></p>
<p>And if you find any of this interesting be my guest and peruse the newly created <a href="http://github.com">github</a> project:</p>
<ul>
<li>The <a href="http://github.com/durdn/pinax-compass-integration/tree/master">master</a> just plugs in Compass without changing anything in the default theme. You can alter the layout by working in the media/sass folder and running compass -u in the media folder.</li>
<li>The <a href="http://github.com/durdn/pinax-compass-integration/tree/vertical">vertical</a> branch includes the changes needed to come up with the vertical menu you see above. By looking into the media/sass/base.sass file you should see how to use Compass directives to include a 960 grid into Pinax.</li>
</ul>
<p>Please note, this is nothing fancy nor hard, but I expect this integration to be a life/time saver in all my next projects.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdurdn.com%2Fblog%2F2009%2F07%2F02%2Fhow-to-integrate-compass-into-your-default-pinax-project%2F';
  addthis_title  = 'how+to+integrate+compass+into+your+default+pinax+project';
  addthis_pub    = 'durdn';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<img src="http://feeds.feedburner.com/~r/durdn/~4/hxI4pIfp9gQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://durdn.com/blog/2009/07/02/how-to-integrate-compass-into-your-default-pinax-project/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://durdn.com/blog/2009/07/02/how-to-integrate-compass-into-your-default-pinax-project/</feedburner:origLink></item>
		<item>
		<title>my desktop during an intense coding session using xmonad</title>
		<link>http://feedproxy.google.com/~r/durdn/~3/gXuMaHgD_UE/</link>
		<comments>http://durdn.com/blog/2009/07/01/my-desktop-during-an-intense-coding-session-using-xmonad/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 11:40:22 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[editors]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[compass]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[pinax]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[screenshot]]></category>
		<category><![CDATA[tiling]]></category>
		<category><![CDATA[wm]]></category>
		<category><![CDATA[xmonad]]></category>

		<guid isPermaLink="false">http://durdn.com/blog/?p=42</guid>
		<description><![CDATA[Here is what a coding session of mine looks like when I am in full swing. This is specifically the coding screen. That&#8217;s a 1920&#215;1600 resolution screen-shot . I obviously also have a browsing screen not shown. In the image above I am immersed into integrating Compass into Pinax (full post on that will follow). [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Here is what a coding session of mine looks like when I am in full swing. This is specifically the coding screen. That&#8217;s a 1920&#215;1600 resolution screen-shot <img src='http://durdn.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . I obviously also have a browsing screen not shown.</p>
<p style="text-align: left;"><a href="http://durdn.com/coding-session-xmonad.png"><img src="http://durdn.com/coding-session-xmonad.png" alt="coding session using xmonad" width="500" height="400" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;">In the image above I am immersed into integrating <a title="Compass" href="http://compass-style.org">Compass</a> into <a href="http://pinaxproject.com">Pinax</a> (full post on that will follow).</p>
<p style="text-align: left;">When developing under Linux (<a title="Ubuntu" href="http://ubuntu.com">Ubuntu 9.04</a> at the moment) I have settled for a long time now on the ultra-productive tiling window manager <a title="Xmonad" href="http://xmonad.org">Xmonad</a>. Nothing I tried beats it. My fingers and my brain now are one with the keyboard short-cuts and the concept of mouse-less zen.</p>
<p style="text-align: left;">Yes I use <a href="http://www.vim.org/">vim</a> extensively and yes I use <a href="http://en.wikipedia.org/wiki/GNU_Screen">screen</a> with the new ubuntu <a href="http://arstechnica.com/open-source/news/2009/04/ubuntu-brings-advanced-screen-features-to-the-masses.ars">screen-profiles</a>. It rocks.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdurdn.com%2Fblog%2F2009%2F07%2F01%2Fmy-desktop-during-an-intense-coding-session-using-xmonad%2F';
  addthis_title  = 'my+desktop+during+an+intense+coding+session+using+xmonad';
  addthis_pub    = 'durdn';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<img src="http://feeds.feedburner.com/~r/durdn/~4/gXuMaHgD_UE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://durdn.com/blog/2009/07/01/my-desktop-during-an-intense-coding-session-using-xmonad/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://durdn.com/blog/2009/07/01/my-desktop-during-an-intense-coding-session-using-xmonad/</feedburner:origLink></item>
		<item>
		<title>vim mind share soaring: roundup of 10 vim articles, recent and older gems</title>
		<link>http://feedproxy.google.com/~r/durdn/~3/kyrrxce9gok/</link>
		<comments>http://durdn.com/blog/2008/11/26/vim-mind-share-soaring-roundup-of-10-vim-articles-recent-and-older-gems/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 19:29:30 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[editors]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[guides]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[roundup]]></category>
		<category><![CDATA[textmate]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://durdn.com/blog/?p=40</guid>
		<description><![CDATA[Am I the only one to notice that there is a lot of vim love in the airwaves recently? I saw the trend very clearly, spanning from reddit to news.yc and let me say that the material that came up recently is very good; those neat posts prompted me to improve my vimrc dramatically and [...]]]></description>
			<content:encoded><![CDATA[<p>Am I the only one to notice that there is a lot of <a href="http://www.vim.org/">vim</a> love in the airwaves recently?</p>
<p>I saw the trend very clearly, spanning from <a href="http://www.reddit.com/r/programming/search?q=vim">reddit</a> to <a href="http://news.ycombinator.com">news.yc</a> and let me say that the material that came up recently is very good; those neat posts prompted me to improve my vimrc dramatically and I really like what I learned.</p>
<p>In this installment, instead than annotating my vimrc (another one? not that interesting, I&#8217;ll refrain) , I want to compile a roundup of the best vim articles I saw recently.</p>
<p>I&#8217;ll also add a few classics that changed me from a hater to a vim lover and will conclude with some minor tips out of my bag.</p>
<p>So here we go with the roundup.</p>
<h3>Recent Vim Articles Roundup</h3>
<p>Jamis Buck</p>
<p style="padding-left: 30px;"><a href="http://weblog.jamisbuck.org/2008/11/17/vim-follow-up">Vim Follow Up</a></p>
<p style="padding-left: 30px;"><a href="http://weblog.jamisbuck.org/2008/10/10/coming-home-to-vim">Coming Home To Vim</a></p>
<p style="padding-left: 30px;">Jamis Buck switches back to vim from a period using <a href="http://macromates.com/">TextMate</a> and talks about his experience and his configuration. Many useful tips in there.</p>
<p>Stephen Bach</p>
<p style="padding-left: 30px;"><a href="http://items.sjbach.com/319/configuring-vim-right">Configuring Vim Right</a></p>
<p style="padding-left: 30px;">Sensible defaults for your vimrc, recommended.</p>
<p>Learnr dev blog</p>
<h1><a href="http://blog.learnr.org/"></a></h1>
<p style="padding-left: 30px;"><a href="http://blog.learnr.org/post/59098925/configuring-vim-some-more">Configuring Vim Some More</a></p>
<p style="padding-left: 30px;">Some additional configuration options that totally make sense and I incorporated in my config too.</p>
<p>Swaroop C H</p>
<p style="padding-left: 30px;"><a href="http://www.swaroopch.com/notes/Vim">A byte of vim</a></p>
<p style="padding-left: 30px;">A new free e-book on vim, worth reading. Covers also advanced topics like writing your own plug-ins.</p>
<p style="padding-left: 30px;"><a href="http://www.swaroopch.com/blog/effective-vim/">Effective Vim</a></p>
<p>This ends the recent vim trend spotting. But there are some older links that are worth sharing in my opinion.</p>
<h3>Older Vim Gems</h3>
<p>Jonathan McPherson</p>
<p style="padding-left: 30px;"><a href="http://jmcpherson.org/editing.html">Efficient Editing With Vim</a></p>
<p style="padding-left: 30px;">This is a true gem, an intermediate level tutorial that will convert you from a beginner vim user to a way more proficient one.<a href="http://jmcpherson.org/editing.html"><br />
</a></p>
<p>Jerry Wang</p>
<p style="padding-left: 30px;"><a href="http://www.jerrywang.net/vi/vitutor1.html">vi for smarties</a></p>
<p style="padding-left: 30px;">Very good beginners guide to vim.<a href="http://www.jerrywang.net/vi/vitutor1.html"><br />
</a></p>
<p><span style="font-family: arial;">David Rayner</span></p>
<p style="padding-left: 30px;"><a href="http://www.rayninfo.co.uk/vimtips.html?dupe=with_honor">best of vim tips</a></p>
<p style="padding-left: 30px;">Raw tips from a very long time vi/vim user</p>
<h3>Vim is also great for Python development, 3 ideas&#8230;</h3>
<p style="padding-left: 30px;"><a href="http://blogs.warwick.ac.uk/dwatkins/entry/vim_omnicomplete_awesomeness/">vim omnicomplete awesomeness</a></p>
<p style="padding-left: 30px;"><a href="http://blog.sontek.net/2008/05/11/python-with-a-modular-ide-vim/">How to make vim a modular Python IDE</a></p>
<p style="padding-left: 30px;"><a href="http://technotales.wordpress.com/2007/10/03/like-slime-for-vim/">How to replicate SLIME in vim</a></p>
<h3><strong>Finally a few tips from myself</strong></h3>
<p><strong>vimperator</strong>: If you&#8217;re a heavy vim user you might want to checkout the great Firefox extension <a href="http://vimperator.org/trac/wiki/Vimperator">vimperator</a>. You&#8217;ll find yourself browsing mouse-less with familiar vim keystrokes in a matter of minutes. I love it.</p>
<p><strong>viPlugin for Eclipse</strong>: If you&#8217;re a Java developer (been there, done that) and you&#8217;re stuck with <a href="http://www.eclipse.org/">Eclipse</a>, you definitely want to have <a href="http://www.satokar.com/viplugin/">viPlugin</a>. It makes the Eclipse experience something much more pleasurable for one who has vi keystrokes embedded in the fingers.</p>
<p><strong>cool color scheme</strong>: If you&#8217;ve seen &#8220;<a href="http://media.rubyonrails.org/video/rails_take2_with_sound.mov">some</a>&#8221; screen-casts and you have just a subterranean <a href="http://macromates.com/">TextMate</a> envy and you can&#8217;t stop thinking at that cool color-scheme, well think no more, you can use <a href="http://www.vim.org/scripts/script.php?script_id=1794">this one</a> or my <a href="http://durdn.com/vibrantink-durdn.vim">humbly tweaked version</a>.</p>
<p>For <a href="http://delicious.com">delicious</a> users <a href="http://delicious.com/durdn/vim?setcount=50">here is the page</a> of my bookmarks that made me notice the trend.</p>
<h3>Ending note</h3>
<p>For full disclosure I have to say that I have been &#8211; and still am sometimes &#8211; an <a href="http://www.gnu.org/software/emacs/">Emacs</a> user. One of the rebel ones daring enough to use <a href="http://www.delorie.com/gnu/docs/emacs/viper.html">Viper</a> mode. So now you know.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdurdn.com%2Fblog%2F2008%2F11%2F26%2Fvim-mind-share-soaring-roundup-of-10-vim-articles-recent-and-older-gems%2F';
  addthis_title  = 'vim+mind+share+soaring%3A+roundup+of+10+vim+articles%2C+recent+and+older+gems';
  addthis_pub    = 'durdn';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<img src="http://feeds.feedburner.com/~r/durdn/~4/kyrrxce9gok" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://durdn.com/blog/2008/11/26/vim-mind-share-soaring-roundup-of-10-vim-articles-recent-and-older-gems/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
<enclosure url="http://media.rubyonrails.org/video/rails_take2_with_sound.mov" length="54364199" type="video/quicktime" />
		<feedburner:origLink>http://durdn.com/blog/2008/11/26/vim-mind-share-soaring-roundup-of-10-vim-articles-recent-and-older-gems/</feedburner:origLink></item>
		<item>
		<title>idea for a useful tool for a web entrepreneur/developer</title>
		<link>http://feedproxy.google.com/~r/durdn/~3/Pll2LcyAJEU/</link>
		<comments>http://durdn.com/blog/2008/11/21/idea-for-a-useful-tool-for-a-web-entrepreneurdeveloper/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 10:52:51 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[colinux]]></category>
		<category><![CDATA[designer]]></category>
		<category><![CDATA[idea]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[webapp]]></category>

		<guid isPermaLink="false">http://durdn.com/blog/?p=39</guid>
		<description><![CDATA[This is the scenario I was thinking about: I want to interact with a graphic designer remotely, who is very very good with Photoshop and HTML/CSS but who might have trouble setting up the Linux environment needed to run my web app. What I would like to build (or find if it already exists) is [...]]]></description>
			<content:encoded><![CDATA[<p>This is the scenario I was thinking about: I want to interact with a graphic designer remotely, who is very very good with Photoshop and HTML/CSS but who might have trouble setting up the Linux environment needed to run my web app.</p>
<p>What I would like to build (or find if it already exists) is a custom CD that when inserted into a Windows or Mac OSX box does the following:</p>
<ul>
<li>Start a virtualbox/vmware instance with my Linux distribution of choice.</li>
<li>Inside the virtual machine the web app is started automatically in debug mode.</li>
<li>Proper networking is in place so that the web app is accessible to the host operating system on a specified port.</li>
<li>The template/media folder of my web app is shared via SMB with the host OS.</li>
</ul>
<p>This way the graphic designer could work on the templates/design of the application having (almost) zero knowledge of the technology behind and no access to the code.</p>
<p>I have already developed a solution like this for myself using <a href="http://colinux.org/">colinux</a>. But the process required quite some fiddling and was all but automatic. <img src='http://durdn.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Automated is the keyword.</p>
<p>That&#8217;s it.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdurdn.com%2Fblog%2F2008%2F11%2F21%2Fidea-for-a-useful-tool-for-a-web-entrepreneurdeveloper%2F';
  addthis_title  = 'idea+for+a+useful+tool+for+a+web+entrepreneur%2Fdeveloper';
  addthis_pub    = 'durdn';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<img src="http://feeds.feedburner.com/~r/durdn/~4/Pll2LcyAJEU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://durdn.com/blog/2008/11/21/idea-for-a-useful-tool-for-a-web-entrepreneurdeveloper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://durdn.com/blog/2008/11/21/idea-for-a-useful-tool-for-a-web-entrepreneurdeveloper/</feedburner:origLink></item>
		<item>
		<title>testing out tuttivisti widgets</title>
		<link>http://feedproxy.google.com/~r/durdn/~3/NOeikWlQ5mo/</link>
		<comments>http://durdn.com/blog/2008/11/19/testing-out-tuttivisti-widgets/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 23:40:14 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[startup]]></category>
		<category><![CDATA[goodies]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tuttivisti]]></category>
		<category><![CDATA[viral]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://durdn.com/blog/?p=38</guid>
		<description><![CDATA[One of the first things I implemented for tuttivisti &#8211; to add just a hint of viral marketing to the project &#8211; was a widget that you can import on your own blog, maybe on the sidebar, to show the latest movies you either want to see or just watched. Let me test it here [...]]]></description>
			<content:encoded><![CDATA[<p>One of the first things I implemented for <a href="http://tuttivisti.com">tuttivisti</a> &#8211; to add just a hint of viral marketing to the project &#8211; was a widget that you can import on your own blog, maybe on the sidebar, to show the latest movies you either want to see or just watched. Let me test it here for you (and for me <img src='http://durdn.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ):</p>
<p><script src="http://tuttivisti.com/goodies/widgets/nick/widget.js?num_movies=8&amp;movies_per_row=4" type="text/javascript"></script></p>
<p>How does it work? Just go to the <a href="http://tuttivisti.com/goodies/">goodies page</a> (well login first) select how many columns and how many movies you want to show, click preview, copy the short Javascript snippet into your blog, website, myspace,etc. and you&#8217;re done.</p>
<p>I don&#8217;t think anybody is using this yet, but it&#8217;s understandable, tuttivisti has only a little above 100 users at the moment, most of whom never came back.</p>
<p>We&#8217;ll see if adding the next level of viral-ity will improve things: think posting your movies to twitter, pwnce, plurk, friendfeed, facebook, etc&#8230; <img src='http://durdn.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . I&#8217;ll try. I think I&#8217;ll start from twitter this week. Pinax supports it out of the box (together with openmicroblogging which is way cool).</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdurdn.com%2Fblog%2F2008%2F11%2F19%2Ftesting-out-tuttivisti-widgets%2F';
  addthis_title  = 'testing+out+tuttivisti+widgets';
  addthis_pub    = 'durdn';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<img src="http://feeds.feedburner.com/~r/durdn/~4/NOeikWlQ5mo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://durdn.com/blog/2008/11/19/testing-out-tuttivisti-widgets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://durdn.com/blog/2008/11/19/testing-out-tuttivisti-widgets/</feedburner:origLink></item>
		<item>
		<title>a webapp in 1 week (part 2): the source of data</title>
		<link>http://feedproxy.google.com/~r/durdn/~3/2z_MIcNwgAM/</link>
		<comments>http://durdn.com/blog/2008/11/18/a-webapp-in-1-week-part-2-the-source-of-data/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 16:20:25 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[freebase]]></category>
		<category><![CDATA[semanticweb]]></category>
		<category><![CDATA[webapp]]></category>

		<guid isPermaLink="false">http://durdn.com/blog/?p=36</guid>
		<description><![CDATA[In the first installment of this series I&#8217;ve spoken about a set of technologies that can speed up the time to market quite a bit. Read about it here if you missed it. This time I want to talk about where to get the content for your niche web app &#8211; if you need a [...]]]></description>
			<content:encoded><![CDATA[<p>In the first installment of this series I&#8217;ve spoken about a set of technologies that can speed up the time to market quite a bit. Read about it <a href="http://durdn.com/blog/2008/11/09/tools-for-rapid-prototyping-a-webapp-in-1-week/">here</a> if you missed it.</p>
<p>This time I want to talk about where to get the content for your niche web app &#8211; if you need a source of content, that is.</p>
<p><strong>Leverage the Semantic Web</strong></p>
<p>I apologize if you all know it and I am late to the news. But really, the semantic web is alive and here and I think one of its most promising incarnations is <a href="http://freebase.com">Freebase</a>.</p>
<p>What is Freebase?</p>
<p>Take the whole of Wikipedia, in it&#8217;s unstructured &#8211; well I should say semi-structured &#8211; mass of data, structure it properly creating schemas on schemas of semantic relations amongst articles, and expose a <a href="http://www.freebase.com/make">clean API</a> on top of it. Keep the openness part, allow anyone to create new domains (called <a href="http://www.freebase.com/view/guid/9202a8c04000641f8000000004f382c7">bases</a>) and to contribute structured content by hand or programmatically. That is freebase as I understand it.  <strong>Beautiful</strong>.</p>
<p><strong>How did I use it</strong></p>
<p>So the secret is out, that&#8217;s exactly what I used to present cool thumbnails and basic movie data for my tiny <a href="http://tuttivisti.com"></a><a href="http://tuttivisti.com">tuttivisti</a> &#8211; now at the second week of life (check it out by the way, the new release is out).</p>
<p>Let me go into deeper depth here because I realize the audience requires it.</p>
<p>The Freebase folks have <a href="http://www.freebase.com/make">extensive documentation</a> on how to interact with their service. In addition to that they publish two very nice <a href="http://www.python.org">Python</a> libraries, <a href="http://code.google.com/p/freebase-suggest/">freebase-suggest</a> and <a href="http://code.google.com/p/freebase-python/">freebase-python</a>. The first to add a cool, jquery based autocompletion dropdown to your forms, the second to query Freebase programmatically from a Python program.</p>
<p><strong>freebase-suggest example</strong></p>
<p>Using the freebase-suggest library is very easy. To achieve this:</p>
<p><a href="http://durdn.com/blog/wp-content/uploads/2008/11/autocompletion.png"><img class="alignnone size-full wp-image-37" title="tuttivisti autocompletion" src="http://durdn.com/blog/wp-content/uploads/2008/11/autocompletion.png" alt="" width="500" height="183" /></a></p>
<p>I just had to add this jquery snippet to the bottom of the page:<br />
<code><br />
&lt;script type="text/javascript"&gt;<br />
var options = {<br />
soft: false,<br />
ac_param: {<br />
type: '/film/film',<br />
category: 'instance',<br />
disamb: '1',<br />
limit: '10'<br />
}<br />
};<br />
</code></p>
<p><code> $('#searchbox')<br />
.freebaseSuggest(options)<br />
.bind('fb-select', function(e, data) {<br />
$('#searchbox').val(data.name);<br />
$('#freebase_id').val(data.id);<br />
$('#freebase_image_id').val(data.image.id);<br />
$('#search_movie_form').submit();<br />
return false;<br />
});<br />
&lt;/script&gt;<br />
</code></p>
<p>And mark the text input of the search with id=&#8221;searchbox&#8221;.</p>
<p>The freebase-python library is also very easy to use and I encourage you to take a look at the documentation, here.</p>
<p>So in conclusion, before your app gains traction and your content is produced by your users, leverage the Semantic Web if you can, use freebase!</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdurdn.com%2Fblog%2F2008%2F11%2F18%2Fa-webapp-in-1-week-part-2-the-source-of-data%2F';
  addthis_title  = 'a+webapp+in+1+week+%28part+2%29%3A+the+source+of+data';
  addthis_pub    = 'durdn';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<img src="http://feeds.feedburner.com/~r/durdn/~4/2z_MIcNwgAM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://durdn.com/blog/2008/11/18/a-webapp-in-1-week-part-2-the-source-of-data/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://durdn.com/blog/2008/11/18/a-webapp-in-1-week-part-2-the-source-of-data/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic Page Served (once) in 0.391 seconds --><!-- Cached page served by WP-Cache -->
