Wednesday 16 November 2011

get year and month out of a string using javascript

Create an array to store months names.


arrMonths= new Array()
arrMonths[0]='January'
arrMonths[1]='February'
arrMonths[2]='March'
arrMonths[3]='April'
arrMonths[4]='May'
arrMonths[5]='June'
arrMonths[6]='July'
arrMonths[7]='August'
arrMonths[8]='September'
arrMonths[9]='October'
arrMonths[10]='November'
arrMonths[11]='December'

Friday 4 November 2011

How to install libcurl binding for ruby?


How to install libcurl binding for ruby?

You can bring power of libcurl in your ruby installation via CURB. It does provide libcurl binding for your ruby program.
Steps to install

1)Make sure you've ruby and development kit installed on your system
2) Download libcurl development files.
2)Now, to install curb run the gem install command with extra options.