Thursday, 30 August 2012

Bigdecimal not exporting properly

When i was in need of generating my table's data into a report in excel format, i came across this issue.  I was using Spreadsheet gem for this purpose. The value of a particular cell contained lot of decimal places when i wanted it to be only 2 decimal place. After a lot of search, i found a good solution from rubyspreadsheet forum.


 amount = BigDecimal.new(".510283891298392")  
 sheet[0,4]= ("%7.2f" %amount).to_f         /*Converts the Big decimal to a value with 2 Floating points and write it to the (0,4)th cell */ 


If you want to know more, visit this link.

Friday, 24 August 2012

What happens when you hit a URL in your Browser !!

Hello all,

     In the link provided below you will find an article which would be useful to all. Many of us don't know the process that going behind the Browser when we hit an URL. This article will give some basic knowledge on that process. 

Monday, 9 July 2012

Finished my First year in the Corporate world !! 

 


Friday, 30 March 2012

Shortcut keys to play with Firefox tabs:


There are some Firefox-specific shortcut keys that will save you more time. Lets check them out: 

Ctrl+TOpen a new tab
Ctrl+WClose the current window or tab
Ctrl+Shift+TUndo close tab (re-open the last closed tab)
Ctrl+TabSwitch to the next tab
Ctrl+Shift+TabSwitch to the previous tab
Ctrl+[0-9]Switch to the 1st, 2nd, 3rd, 4th, etc. tab
/ Open the "Find Text As You Type" widget (bottom of screen)
Ctrl+GFind the next occurrence of a search phrase
Ctrl+Shift+GFind the previous occurrence of a search phrase
Ctrl+KMove cursor to the Web Search widget (top right of screen)

Hope these shortcut keys will be helpful to all. Happy Surfing :-)

Friday, 13 January 2012

English To Tamil Conversion

Type in English and press space(add space) to get converted to tamil. An useful documentation tool available in this website for typing tamil words in English.  

http://tamil.changathi.com/