Archive for the 'Computer' Category

MSSQL | Convert unix timestamp to date

Tuesday, April 24th, 2007

select dateadd(ss, {field_name}, '19700101')

Ruby on Rails cheat sheet

Thursday, March 15th, 2007

All the commands you need in one page RoR cheat sheet

Get last day of the month with Ruby

Thursday, February 8th, 2007

last_day_of_the_month = (Date.parse(year_to_process + "-" + (month_to_process.to_i + 1).to_s + "-01") – 1).mday().to_s rescue "31" The final rescue is due to catch the error when month_to_process is 12.

XUL tools

Thursday, December 7th, 2006

My interest for XUL is groving every day. Today I started to develop a Thunderbird Extension. Nothing special, just want to explore the XUL world. Here some usefull links: Getting started with Extension development Extension Developer's Extension Set of tool to make the extension developing easier and faster provided by Ted Mielczarek. I suggest The [...]

Names

Thursday, November 16th, 2006

Table friends | Stores data Model Friend | Data validation & relationships like belongs_to or belongs_to Controller friend | Says what to do and where to do it

Ops …

Sunday, October 8th, 2006

Oh no ! It happend again !! The sysadmin turned on the gpc_magic_quotes and you got the DB full of \' Here a fast way to get back the correct values. UPDATE table_name SET field_name = REPLACE(field_name,'\"',"")

Ubuntu Dual Monitor Setup

Tuesday, September 26th, 2006

Hello, I'm finally on Ubuntu, Dapper drake The setup was really easy. I don't have any strange device connected to the PC. The only thing that didn't work immediately was the dual monitor; I have a Nvidia 7600GS with dual DVI output with 2 BenQ FP93G. Thanks to this great tutorial Dual Monitors TwinView HowTo [...]

Yes !