srih4ri

Leaving Twitter

Leaving twitter. Quitting is a strong word. I am probably going to return to twitter someday. But for now, here is how I have been off twitter for the last...

Sprouting Seeds

Of late, growing plants in my balcony is a hobby I have picked up. Growing plants from seeds, and watch them bear fruits and flowers is immensely rewarding. Learning to...

Jekyll new post rake task

Add this to your Rakefile : task :np do note_name =ENV['note'] || 'misc' note_file = "_posts/#{Time.now.to_i}-#{note_name}.md" `touch #{note_file}` end Create a new post like so: env note="Jekyll new post rake...

Finding what’s the highest altitude you have clicked a photo at

I live at an altitude of 18m above sea level. Coming back after seeing himalayas for the first time, I was curious to see how far above did I go....

Information Overload

Today I created a Facebook account. I had deleted my previous account few months ago. I signed up and slowly started sending friend requests. Facebook does a good job of...

Turning on git autocorrect

To turn on autocorrect feature of git, run : git config --global help.autocorrect 10 After setting this, if you make a mistake in git commands, git autocorrects it. Example :...

gho - github helper

Gho (Github Open) is a shell function : In zsh : gho () { open "https://`git config --get remote.origin.url|sed -e s/.git//g|sed s,:,/,g`/$1" } Or if you’re using fish shell. (...

Setup for learning HAML

Install the gems haml , guard-haml , guard-livereload and LiveReload chrome extension Create a Guard file that will compile the haml files you create and reload html files in chrome...

debian-diaspora-notes

Quilt Really good tutorial : Quilt Tutorial - Shakthi Kannan, April 6, 2006 To know which patch you are on : quilt top To move down the series ( to...

#debian-diaspora packaging notes

Missing diff-lcs Error : /usr/lib/ruby/vendor_ruby/rspec/expectations/differ.rb:1:in `require': no such file to load -- diff/lcs (LoadError) Fix : sudo apt-get install ruby-diff-lcs

Fuzzy full text search using redis

This is my try at text search described here There is already redis running in my app as the back end for Rails Cache.The new requirement was the ability to...

Twitter bootstrap with rails 3.1 dropdown not working.

Hey that dropdown in your rails 3.1 app ,using twitter bootstrap , did not work because the bootstrap-dropdown.js was included twice , once by the require_tree in application.js and then...

Apache mod-auth-external with ruby

This http://code.google.com/p/mod-auth-external/ is useful when you need to provide http basic auth ,but authorise from an external program and not htpasswd file. The installation and confiugration outlined at http://code.google.com/p/mod-auth-external/wiki/Installation worked...

Publish that old program you wrote.

Some time ago, we(me and sooraj) were at college.I was crazy about my 1 yr old PC.Sooraj was not crazy about his 6yr old PC.He was crazy about computers that...

The computer disease

Excerpt from Surely You're Joking, Mr. Feynman! : Well, Mr.Frankel, who started this program, began to suffer from the computer disease that anybody who works with computers now knows about....

We can all fly for real.

It is a Saturday evening, I am moderately demotivated.I was looking around for some light reading like big metal chickens. Since such good things are rare ,I was at hn/twitter...

Organizing style sheets in rails application

For my first few days in rails i thought (prolly sooraj too ) thought that this was the default way stylesheets were arranged in rails : [[posterous-content:oHJekcDFylcqmCqAqEcD]] It was a small eureka...

Writing malayalam in prawn PDF

This is pretty straight forward and it works. I used  rachana from smc UPDATE : Major fail :(This wont render properly , complex scripts wont be rendered properly ,atleast not...

There are two kinds of people

There are two kinds of people , those who know things and those who don't know things . This post is for the second kind of people.Dear ones ,You don't...

Ruby I learned today.

I am new to ruby . Here is something i feel cool that i learnt today , You can mix in instance methods and class methods by include and extend...

I Linux because ,

Dear friend ,If ever you have given me that look or told me that i was crap because i used linux for my computer unlike you , here is an...

Downloading RailsCasts for rails three

wget -q -O - http://feeds.feedburner.com/railscasts | awk -F \" '/media:content/ {print $4}'| grep "rails_3"|wget -i - -c That's pretty useful . 

Migrating from one gmail account to another .

So i had this gmail ID that i once felt was uber-cool and not anymore. So i decided to move on to another gmail account , with a proper name....

A Noob's journey into Vi

I am learning vi , partly because my job demands it and partly because it is a cool editor .Things i knew already :To open a text file in vi...

My Umpteenth blogging attempt

Its just a dew days that i've noticed that i forget things , i forget things that i never thought i would . Those days at school now seem far...

Writing a journal

Ever since my chances of talking long time doing nothing has diminished I've been thinking of a way to complain about others and make observations about the universe.Thought of doing...

My First Blog Post

Hello world, Trying out posterous !