FreeBSD rc scripts

January 6th, 2009

I’ve always wanted a concise practical guide to rc scripting in FreeBSD, well, here it is

Read the rest of this entry

Sometimes you will need to get a professional to log into your system to help you out. You should watch what they do, and this is the easiest way I know.

Read the rest of this entry

TMail Moves to GIT

November 23rd, 2008

Social networking here we come!

Read the rest of this entry

Funny...

November 21st, 2008

Some people think that rails is getting bloated… but through the hard efforts of core committers, the fluff and fat is getting sliced and trimmed down like a Döner kebab spit at a turkish festival…

Read the rest of this entry

I would think that

1
2
ALTER SEQUENCE sequence_name
      RESTART WITH (SELECT max(id) FROM table_name);

would work, but it doesn’t. Use:


SELECT SETVAL('sequence_name', (SELECT MAX(id) FROM table_name) + 1);

instead and you will be a lot more happier.

blogLater

Mikel

I have a bunch of HP DL 360 and DL 380 servers that I run OpenBSD on as gateways. This is how to monitor their RAID drive status and temperature status…

Read the rest of this entry

Terminator - Timeout without Mercy

September 11th, 2008

If you have been following my posts on Ruby-Talk and Ruby on Rails and even RSpec mailing list (and who wouldn’t?! I mean, aside from my mother) then you would have noticed I have been banging my head against a brick wall on the subject of System calls not being handled by the Timeout libraries in Ruby…

Read the rest of this entry

When you are coding, you should try to separate out the things that change from the things that stay the same. This isn’t my idea, but it is worth tip’n here as I just saw a really good, simple example of this…

Read the rest of this entry

Fortune...

July 8th, 2008

I got his when I logged into one of my OpenBSD boxes today. Interestingly true…

Read the rest of this entry

In my previous post (Spec Behaviour not Implementation) I went on a froth roll about why you should treat controller actions as black boxes. Here I give an all to common example of why this is good and how you can write specs that won’t break at the most trivial change.

Read the rest of this entry

This has been said a lot, and doesn’t really need repeating by someone like me, but, as this is a tips page, I should put it here.

Read the rest of this entry

Tip #26 - Start Small

June 27th, 2008

If you are getting frustrated with RSpec, then you have probably skipped a gradient. Start smaller!

Read the rest of this entry

Sometimes when you need someone to just look over your code and figure out what the heck is going on, you can turn to your best coding friend, this friend sits away in the log directory carefully collecting data waiting for your beck and call…

Read the rest of this entry

This tip is coming to you from a frustrated developer having to read someone else’s specs….

Read the rest of this entry

You would expect any professional to know their stuff, for a Ruby on Rails beginner, this is no less important.

Read the rest of this entry