Posted in November 2012

Generate CRUD in php

Recently, i’ve worked on an old PHP project trying to quickly add some new features to the application. As part of this task, i am supposed to write code that performs basic CRUD operations on a MySQL  table. Having achieved this like a charm using Rails, i’ve wondered if i can do scaffolding even in php. With some … Continue reading

Unix tips | Part 1

I would like to share in this series of posts all the interesting tips in UNIX i’ve came across till date. To understand read, write, execute permissions for a file The first letter – stands for a normal file, d for directory, c or b for a device, l for a link to another file. … Continue reading

Using html entities in Ruby

HTML character entities are used to display reserved characters in a web page. The entire list of character entity references can be found here. Sometimes you may want to use HTML entities inside your ruby code. This is where gem htmlentities comes into picture. This is a simple library to facilitate encoding and decoding of … Continue reading

Displaying Indian Rupee sign in rails views

The Indian Rupee sign (₹) is the currency sign for India. Though its relatively new, its been widely used to display indian currency on web. Various solutions facilitate the usage of this new symbol on web such as Webrupee trying to make it  first class citizen in the currency world. The Unicode technical committee accepted the … Continue reading

Ruby tips | Part 1

I would like to share in this series of posts all the beauty of the language Ruby i’ve come across till date. Ruby arrays is a shortcut for In this literal syntax each element of the array is separated using space.However, if your element itself has space in it we can escape that space using … Continue reading

Useful Ruby on rails Articles

Rails continues to be popular and for someone to get start a good tutorial might be the difference. Ruby on rails has a rich ecosystem with extensive documentation online. In this post find useful Ruby / Ruby on rails online resources in no particular order. I will update this post whenever i find a good … Continue reading

Rails tips | Part 1

I would like to share in this series of posts all the beauty of rails i’ve come across till date. To know different options while creating a rails application To create a rails application with a specific rails version Using to_param for SEO friendly slugs To re-load console with the data created in the session. … Continue reading