<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Make Love not War</title>
  <id>http://127.0.0.1</id>
  <updated>2009-04-10</updated>
  <author>
    <name>root</name>
  </author>
  <entry>
    <title>Hackers vs CarrierIQ</title>
    <link rel="alternate" href="http://127.0.0.1/2011/12/16/hackers-vs-carrieriq/"/>
    <id>http://127.0.0.1/2011/12/16/hackers-vs-carrieriq/</id>
    <published>2011-12-16</published>
    <updated>2011-12-16</updated>
    <author>
      <name>root</name>
    </author>
    <summary type="html">&lt;p&gt;Did &amp;ldquo;hackers&amp;rdquo; lose their edge in CarrierIQ case? So maybe stop labeling good engineers as &amp;ldquo;hackers&amp;rdquo;?&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;Did &amp;ldquo;hackers&amp;rdquo; lose their edge in CarrierIQ case? So maybe stop labeling good engineers as &amp;ldquo;hackers&amp;rdquo;?&lt;/p&gt;

&lt;p&gt;For the past year I was watching the rise of &amp;ldquo;hacker&amp;rdquo; label applied to software engineers. First time I saw it on &lt;a href="http://careers.stackoverflow.com/"&gt;StackOverflow&lt;/a&gt;/&lt;a href="http://news.ycombinator.com/jobs"&gt;YC&lt;/a&gt; job boards it amused me. Today it still strikes me that companies would use this word to attract &amp;ldquo;exceptional&amp;rdquo; developers. But this post is not about it. Here&amp;rsquo;s the issues:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How in hell did we have CarrierIQ installed on our mobile phones for YEARS and none of those &amp;ldquo;hackers&amp;rdquo; could track it down?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I&amp;rsquo;m sure it was not a secret and certain people knew but it takes a certain critical mass for the media to pick something up.
But what happened to all those people who used to sniff traffic with Ethereal all night long?
So why don&amp;rsquo;t we stop this lingo and start calling people properly. If you hack someones computer &amp;ndash; you are called a &amp;ldquo;hacker&amp;rdquo;, if you code well &amp;ndash; you are a &amp;ldquo;good engineer&amp;rdquo;&lt;/p&gt;

&lt;p&gt;p.s. Maybe there are almost no &amp;ldquo;exceptional&amp;rdquo; individuals left in networking area since the hype mobed to Mobile/Social/Design?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>RubyStand is A Gallery in Rails</title>
    <link rel="alternate" href="http://127.0.0.1/2011/12/08/rubystand-is-a-gallery-in-rails/"/>
    <id>http://127.0.0.1/2011/12/08/rubystand-is-a-gallery-in-rails/</id>
    <published>2011-12-08</published>
    <updated>2011-12-08</updated>
    <author>
      <name>root</name>
    </author>
    <summary type="html">&lt;p&gt;As an avid photographer I always try to keep with latest trends in areas around photography and photo management. Several months ago I decided to move my old (plain html + images) gallery of family photos to somethin more modern. I also like to customize things so I started looking at Rails gallery app and found &amp;hellip; almost nothing. What a shame I thought. So being a Rails developer and one free weekend later and you get this: &lt;a href="http://github.com/zepplock/rubystand"&gt;RubyStand&lt;/a&gt;&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;As an avid photographer I always try to keep with latest trends in areas around photography and photo management. Several months ago I decided to move my old (plain html + images) gallery of family photos to somethin more modern. I also like to customize things so I started looking at Rails gallery app and found &amp;hellip; almost nothing. What a shame I thought. So being a Rails developer and one free weekend later and you get this: &lt;a href="http://github.com/zepplock/rubystand"&gt;RubyStand&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;RubyStand is build on top of Rails3 and uses a plain file system to store photos (I plan to extend it later to support S3 to make it easier on traffix to the site).
Core RubyStand featues are&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;database free&lt;/li&gt;
&lt;li&gt;relies on plain image files on the disk&lt;/li&gt;
&lt;li&gt;defines albums as sets of images&lt;/li&gt;
&lt;li&gt;each album has title, year and a description&lt;/li&gt;
&lt;li&gt;expects thumbnails along with normal files (will be automated in future versions)&lt;/li&gt;
&lt;li&gt;can read basic metadata about albums and photos from YAML files&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I have had it deployed for my personal photos for several months and it was working flawlessly so far.&lt;/p&gt;

&lt;p&gt;&lt;a href="/images/ss4.png"&gt;&lt;img src="/images/ss4.png"/&gt;&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>OK Computer Lives</title>
    <link rel="alternate" href="http://127.0.0.1/2011/10/09/ok-computer-lives/"/>
    <id>http://127.0.0.1/2011/10/09/ok-computer-lives/</id>
    <published>2011-10-09</published>
    <updated>2011-10-09</updated>
    <author>
      <name>root</name>
    </author>
    <summary type="html">&lt;p&gt;I know the title of this post is a bit cryptic. It is not about computers but about Radiohead&amp;rsquo;s album called &amp;ldquo;Ok Computer&amp;rdquo; and &amp;ldquo;In Rainbows&amp;rdquo; and music&amp;hellip;&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;I know the title of this post is a bit cryptic. It is not about computers but about Radiohead&amp;rsquo;s album called &amp;ldquo;Ok Computer&amp;rdquo; and &amp;ldquo;In Rainbows&amp;rdquo; and music.&lt;/p&gt;

&lt;p&gt;I generally try to keep blog posts to technology but sometimes I just have to share amazing music facts and tunes.
I have always been a big fan of &lt;a href="http://RADIOHEAD.COM"&gt;Radiohead&lt;/a&gt; especially &amp;ldquo;Ok Computer&amp;rdquo; album. It had a perfect mix of slow, moody and downbeat rock which was soooo un-pop.
It was literally a biggest and brightest albums of late 90s. It also was a cornerstone of Radiohead&amp;rsquo;s music career. After &amp;ldquo;Ok Computer&amp;rdquo; they shifted into more electro-sounding music.
It is not like their music changed, they just started to use other instruments and techniques which was not to my liking.&lt;/p&gt;

&lt;p&gt;Fast-forward 11 years to 2008 and a release of double CD album &amp;ldquo;In Rainbows&amp;rdquo; which put everything back on track. The music, the melody, the acoustic guitar &amp;ndash; everything is back, tuned to perfection, spiced up by Thom&amp;rsquo;s voice.
Recently I re-listened to &amp;ldquo;In Rainbows&amp;rdquo; and tried to get more information on songs, where they came from and what they mean.
And it turns out that one of my favourite songs &amp;ldquo;Last Flowers to the Hospital&amp;rdquo; is an outtake from the &amp;ldquo;Ok Computer&amp;rdquo; sessions.
Which expianed a lot especially the resemblance of two albums and matching music styles. I highly recommend Radiohead to anyone who is not familiar with their work. Try &amp;ldquo;Ok Computer&amp;rdquo; and &amp;ldquo;In Rainbows&amp;rdquo; and you&amp;rsquo;ll like them.&lt;/p&gt;

&lt;p&gt;Here are some YouTube clips you should watch:&lt;/p&gt;

&lt;iframe width="467" height="315" src="http://www.youtube.com/embed/y6PrVmoIC1A" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;


&lt;iframe width="467" height="315" src="http://www.youtube.com/embed/9NBVYMVDSRk" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;


&lt;iframe width="467" height="315" src="http://www.youtube.com/embed/5ISR5SWtsOk" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;


&lt;iframe width="467" height="315" src="http://www.youtube.com/embed/8nTFjVm9sTQ" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;

</content>
  </entry>
  <entry>
    <title>Amazing Dribbbling</title>
    <link rel="alternate" href="http://127.0.0.1/2011/09/05/amazing-dribbbling/"/>
    <id>http://127.0.0.1/2011/09/05/amazing-dribbbling/</id>
    <published>2011-09-05</published>
    <updated>2011-09-05</updated>
    <author>
      <name>root</name>
    </author>
    <summary type="html">&lt;p&gt;There&amp;rsquo;s an interesting website that looks very useful for amateur (like myself) as well as seasoned web designers. It is called &lt;a href="http://dribbble.com"&gt;Dribbble&lt;/a&gt;&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;There&amp;rsquo;s an interesting website that looks very useful for amateur (like myself) as well as seasoned web designers. It is called &lt;a href="http://dribbble.com"&gt;Dribbble&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So what&amp;rsquo;s the idea behind the site? It is simple: you create small (400x300 pixels) &amp;lsquo;shots&amp;rsquo; of your work and post it for everyone.
Shots are small screenshots posted by members to show what they are working on. Some have called Dribbble &amp;ldquo;Twitter for creatives.&amp;rdquo; Shots are to Dribbble as tweets are to Twitter.
People post sketches, logos, web site mockups, iPhone and iPad UIs, buttons, badges, typography, wallpapers, photos and even napkin doodles.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://dribbble.com/shots/192403-MindStorm-Website"&gt;&lt;img src="http://dribbble.com/system/users/264/screenshots/192403/mindstorm.jpg"/&gt;&lt;/a&gt;
&lt;a href="http://dribbble.com/shots/211852-Idea"&gt;&lt;img src="http://dribbble.com/system/users/13307/screenshots/211852/dirt2.jpg"/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The site itself is themed around basketball with players split into &lt;a href="http://dribbble.com/members/rookies"&gt;Rookies&lt;/a&gt;, &lt;a href="http://dribbble.com/members/prospects"&gt;Prospects&lt;/a&gt;
and &lt;a href="http://dribbble.com/members/all-stars"&gt;All-Stars&lt;/a&gt;. The shots can be &amp;ldquo;rebound' meaning that the &amp;lsquo;shot&amp;rsquo; was changed based on the feedback.
Each shot can be &amp;lsquo;Liked&amp;rsquo; and commented on.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://dribbble.com/shots/257827-Livescore-iPhone-app"&gt;&lt;img src="http://dribbble.com/system/users/59028/screenshots/257827/livescore_400x300_3.jpg?1315278026"/&gt;&lt;/a&gt;
&lt;a href="http://dribbble.com/shots/125676-Battery-Statuses"&gt;&lt;img src="http://dribbble.com/system/users/15566/screenshots/125676/shot_1299526225.png?1309031566"/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The site membership is &lt;em&gt;invite only&lt;/em&gt; and you get to &amp;lsquo;draft&amp;rsquo; people you know as members.
There&amp;rsquo;s also a &amp;lsquo;PRO&amp;rsquo; membership which gives you nice statistics, ability to attach larger images, have a &amp;lsquo;Hire Me&amp;rsquo; badge next to your profile avatar and more.
There&amp;rsquo;s also a nice JSON/REST API in case you want to integrate your (or others) work with your blog.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://dribbble.com/shots/241208-Features-WIP-"&gt;&lt;img src="http://dribbble.com/system/users/20488/screenshots/241208/scms2.png?1313769805"/&gt;&lt;/a&gt;
&lt;a href="http://dribbble.com/shots/217926-Copper-Rust-Java-Beans"&gt;&lt;img src="http://dribbble.com/system/users/4536/screenshots/217926/copper_rust2.png?1311174110"/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can find my work here: &lt;a href="http://dribbble.com/zepplock"&gt;Zepplock&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Paper Taxi</title>
    <link rel="alternate" href="http://127.0.0.1/2011/08/23/paper-taxi/"/>
    <id>http://127.0.0.1/2011/08/23/paper-taxi/</id>
    <published>2011-08-23</published>
    <updated>2011-08-23</updated>
    <author>
      <name>root</name>
    </author>
    <summary type="html">&lt;p&gt;Couple of days ago I decided to find a wiki based engine for Rails 3 and make an app with the intent to store loosely connected personal knowledge base&amp;hellip;&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;Couple of days ago I decided to find a wiki based engine for Rails 3 and make an app with the intent to store loosely connected personal knowledge base.
After searching for rails3+wiki and miserably failing at it I decided to see if there are any simple rails3+cms kind of apps. I have compiled the following list:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.locomotivecms.com/"&gt;Locomotive&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://refinerycms.com/"&gt;RefineryCMS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://radiantcms.org/"&gt;RadiantCMS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://fdv.github.com/typo/"&gt;Typo&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;After trying those out for a while I realized that all of them are BLOATED. All I needed is a simple blog like way to create an article and link the article one to another&amp;hellip;&lt;/p&gt;

&lt;p&gt;That&amp;rsquo;s how &lt;a href="https://github.com/zepplock/papertaxi"&gt;Paper Taxi&lt;/a&gt; was born, featuring:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rails 3&lt;/li&gt;
&lt;li&gt;MongoDB with Mongoid&lt;/li&gt;
&lt;li&gt;Markdown style text editing with easy linking of articles&lt;/li&gt;
&lt;li&gt;Devise for authentication (only one default user)&lt;/li&gt;
&lt;li&gt;Tags for articles and tag filters&lt;/li&gt;
&lt;li&gt;Simple HTML5+CSS3 UI&lt;/li&gt;
&lt;li&gt;Russian I18n as a bonus&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Here&amp;rsquo;s an example (in Russian) site which it is used for: &lt;a href="http://vedas.vova.org"&gt;Ayurveda&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and of course some screenshots:&lt;/p&gt;

&lt;center&gt;

&lt;img src="/images/ss1.png"/&gt;
&lt;img src="/images/ss2.png"/&gt;
&lt;img src="/images/ss3.png"/&gt;

&lt;/center&gt;

</content>
  </entry>
  <entry>
    <title>Do use parentheses in Rails</title>
    <link rel="alternate" href="http://127.0.0.1/2011/08/23/do-use-parentheses-in-rails/"/>
    <id>http://127.0.0.1/2011/08/23/do-use-parentheses-in-rails/</id>
    <published>2011-08-23</published>
    <updated>2011-08-23</updated>
    <author>
      <name>root</name>
    </author>
    <summary type="html">&lt;p&gt;In this article I will explain why you should ALWAYS use parentheses in method calls&amp;hellip;&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;In this article I will explain why you should ALWAYS use parentheses in method calls.&lt;/p&gt;

&lt;p&gt;Assume you have the following code in your Rails views:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;link_to 'Articles', articles_path
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;then you decide that you need to add I18n (internationalization) to your application and you replace all strings with&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;I18n.t 'ui.articles'
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;which gives you:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;link_to I18n.t 'ui.articles', articles_path
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;See the problem? This line will not raise any exceptions. Just link to the wrong page. Very hard to catch unless you have proper tests set up.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Game of Thrones</title>
    <link rel="alternate" href="http://127.0.0.1/2011/06/27/game-of-thrones/"/>
    <id>http://127.0.0.1/2011/06/27/game-of-thrones/</id>
    <published>2011-06-27</published>
    <updated>2011-06-27</updated>
    <author>
      <name>root</name>
    </author>
    <summary type="html">&lt;p&gt;Being a big fan of fantasy literature I have been neglecting this genre for awhile. Past five years were dedicated to software engineering books and classic Russian literature. So I decided to read something epic and &lt;a href="http://www.amazon.com/Game-Thrones-Song-Fire-Book/dp/0553573403"&gt;&amp;ldquo;Game of Thrones&amp;rdquo; by George RR Martin&lt;/a&gt; did fit the bill perfectly. Especially with the series being on HBO it is getting wildly popular&amp;hellip;&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;Being a big fan of fantasy literature I have been neglecting this genre for awhile. Past five years were dedicated to software engineering books and classic Russian literature. So I decided to read something epic and &lt;a href="http://www.amazon.com/Game-Thrones-Song-Fire-Book/dp/0553573403"&gt;&amp;ldquo;Game of Thrones&amp;rdquo; by George RR Martin&lt;/a&gt; did fit the bill perfectly. Especially with the series being on HBO it is getting wildly popular.&lt;/p&gt;

&lt;p&gt;Not to spoil it for anyone I&amp;rsquo;ll say that this is not a typical &amp;ldquo;book about dragons&amp;rdquo; (in fact dragons died many years ago). Readers should expect more of a &amp;ldquo;behind the throne&amp;rdquo; story with a bit of adventuring and very rich characters. There are two more books in this trilogy &lt;a href="http://www.amazon.com/Clash-Kings-Song-Fire-Book/dp/0553381695/ref=pd_bxgy_b_text_b"&gt;A Clash of Kings&lt;/a&gt; and &lt;a href="http://www.amazon.com/Storm-Swords-Song-Fire-Book/dp/055357342X/ref=pd_bxgy_b_text_c"&gt;A Storm of Swords&lt;/a&gt; that continue the story.&lt;/p&gt;

&lt;p&gt;Here are some useful maps to help you navigate the land:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.cartographersguild.com/feature/WesterosMap.jpg"&gt;Geographical Map&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://gameofthrones.net/images/Westeros_Maps/Map_Westeros_Political.gif"&gt;Political Map&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Update: Actually, dragons actually survived&amp;hellip;&lt;/p&gt;

&lt;p&gt;And some art from HBO:&lt;/p&gt;

&lt;center&gt;

&lt;img src="http://t3.gstatic.com/images?q=tbn:ANd9GcSB-acWXwlxh0lVOffWKWcp1ayrcBe8k2YefeNh2jKy-FkGBX0j"/&gt;

&lt;img src="http://t0.gstatic.com/images?q=tbn:ANd9GcTnByXYvWgeH9-0JJIMZNt2RwpYhZdXVQJvwxOtqZ8dqIJxwkr4"/&gt;

&lt;img src="http://t1.gstatic.com/images?q=tbn:ANd9GcQHB_7V3Fxj8P50aXTlvhArN5l6p8CUvq1z9OOoZ0PgocarB0oOVQ"/&gt;

&lt;img src="http://t2.gstatic.com/images?q=tbn:ANd9GcSqX5VwAfKBk5NdmtOhd7auCD7JZ7OssRBJCKyTm2RUYg9DwQth"/&gt;

&lt;img src="http://t0.gstatic.com/images?q=tbn:ANd9GcRaETxjAagDZidtwSnnfE5D1XmIXgSNdwP1sbcYNDA_MEM93eGf5g"/&gt;

&lt;img src="http://t2.gstatic.com/images?q=tbn:ANd9GcRkJUdXDsQtVcms6L5OFxQNMowFdUCQ-GvjF6LeQDCiK1Gz8SZj"/&gt;



&lt;/center&gt;

</content>
  </entry>
  <entry>
    <title>RESTful HTTP Response Codes</title>
    <link rel="alternate" href="http://127.0.0.1/2011/06/24/restful-http-response-codes/"/>
    <id>http://127.0.0.1/2011/06/24/restful-http-response-codes/</id>
    <published>2011-06-24</published>
    <updated>2011-06-24</updated>
    <author>
      <name>root</name>
    </author>
    <summary type="html">&lt;p&gt;Recently I have been building RESTful APIs in Ruby on Rails so I decided to compile a list of HTTP Status Codes to use. This is just a guideline&amp;hellip;&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;Recently I have been building RESTful APIs in Ruby on Rails so I decided to compile a list of HTTP Status Codes to use. This is just a guideline.&lt;/p&gt;

&lt;h2&gt;Successful Responses:&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;200 (OK) &amp;ndash; everything is fine&lt;/li&gt;
&lt;li&gt;201 (Created)&amp;ndash; resource successfully created&lt;/li&gt;
&lt;li&gt;202 (Accepted) &amp;ndash; the call returned but the request was queued up. Somewhat async behavior. Unclear how to communicate error, possibly through the resource state&lt;/li&gt;
&lt;li&gt;204 (No Content) &amp;ndash; A successful DELETE&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;Unsuccessful Responses:&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;400 (Bad Request) &amp;ndash; the request could not be understood&lt;/li&gt;
&lt;li&gt;401 (Unauthorized Access) &amp;ndash; need to authenticate the client&lt;/li&gt;
&lt;li&gt;404 (Not found) &amp;ndash; the resource was not found, for requests like /resource/id&lt;/li&gt;
&lt;li&gt;415 (Unsupported Media Type) &amp;ndash; wrong content type in either &amp;ldquo;Content-Type&amp;rdquo; header or &amp;ldquo;Accept&amp;rdquo; header&lt;/li&gt;
&lt;li&gt;422 (Un-processable Entity) &amp;ndash; The request had right content type and the request was understood but the logic of the app prevented it from being complete&lt;/li&gt;
&lt;li&gt;500 (Server Error) &amp;ndash; something bad happened on the server, unexpected error&lt;/li&gt;
&lt;/ul&gt;

</content>
  </entry>
  <entry>
    <title>One blog to rule them all</title>
    <link rel="alternate" href="http://127.0.0.1/2011/06/06/one-blog-to-rule-them-all/"/>
    <id>http://127.0.0.1/2011/06/06/one-blog-to-rule-them-all/</id>
    <published>2011-06-06</published>
    <updated>2011-06-06</updated>
    <author>
      <name>root</name>
    </author>
    <summary type="html">&lt;p&gt;About two years after my last blog article I decided to continue blogging. My goal it to produce at least one meaningful article a week(!).
To prove to myself that I am on the right path I chose a new blogging platform called &lt;a href="http://cloudhead.io/toto"&gt;toto&lt;/a&gt;&amp;hellip;&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;About two years after my last blog article I decided to continue blogging. My goal it to produce at least one meaningful article a week(!).
To prove to myself that I am on the right path I chose a new blogging platform called &lt;a href="http://cloudhead.io/toto"&gt;toto&lt;/a&gt;.
It is built on top of Rails 3 and database-less. Very simple to customize and maintain. Pretty cool.&lt;/p&gt;

&lt;p&gt;Here are the advantages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No database to manage and backup&lt;/li&gt;
&lt;li&gt;Minimal external dependencies&lt;/li&gt;
&lt;li&gt;Easy to customize HTML and CSS&lt;/li&gt;
&lt;li&gt;Just copy files for backup&lt;/li&gt;
&lt;li&gt;Can be used with git to store content&lt;/li&gt;
&lt;li&gt;Rails 3&lt;/li&gt;
&lt;/ul&gt;

</content>
  </entry>
  <entry>
    <title>Counter one liner in Ruby</title>
    <link rel="alternate" href="http://127.0.0.1/2009/07/19/counter-one-liner-in-ruby/"/>
    <id>http://127.0.0.1/2009/07/19/counter-one-liner-in-ruby/</id>
    <published>2009-07-19</published>
    <updated>2009-07-19</updated>
    <author>
      <name>root</name>
    </author>
    <summary type="html">&lt;p&gt;Many times I have to make a counter that starts with 1 and monotonically incremented by 1 in Rails view. The typical example is when showing a list of things like:&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;Many times I have to make a counter that starts with 1 and monotonically incremented by 1 in Rails view. The typical example is when showing a list of things like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;7.1
7.2
7.3
....
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The nice trick is to make it in 1 line:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;li&amp;gt;7.&amp;lt;%= n = n + 1 rescue n = 1 %&amp;gt;&amp;lt;/li&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;instead of initializing &amp;ldquo;n&amp;rdquo; before the loop (which requires extra line of code).&lt;/p&gt;
</content>
  </entry>
</feed>

