Riding The Breeze

Jump to content

Additional information

Categories


Posts filed in ‘Computer’


Get last day of the month with Ruby

Feb 2007
08

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

Dec 2006
07

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:


Names

Nov 2006
16
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 …

Oct 2006
08

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

Sep 2006
26

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 By Steve Fink the setup was fast and easy.

Just 2 advices:

1) Be sure that in your xorg.conf under Section Device you have

Driver "nvidia"

and not

Driver "nv"

dunno why but this was my default value.

2) If the second monitor do not works set the horizontal resolution to twice the monitor resolution.
For example, my monitor has 1280×1024 and I had to set the resolution to 2560×1024.


Paging

Credits

Template designed by praegnanz.de.