Posts tagged ruby

Oct06

Improving the load time of your application

performance loadtime ruby sinatra monk | comments

Step 0: Benchmark!

(Disclaimer: the code that follows is in no way a prescription on how to write good benchmarking code but was simply written in a minute :-)

Continue reading »

Jul21

Dtach is the way

daemon ruby background worker | comments

If you have a worker that doesn’t stop (looping endlessly and waiting for some queue to have a job), you might want to have the ability to put this worker in the background for the following reasons:

Continue reading »

May10

Lua Day 1: So near yet so far

ruby lua | comments

So far Lua is strikingly similar to ruby. This of course only appears to be the case for very simple scripts.

Some common things so far:

  1. Condition expressions accepts any value, and false / nil are the only things which are failures. 0 and ”” are both true.
Continue reading »

Apr14

uninitialized constant Delayed::Job

delayedjob rails ruby workers | comments

Just a quick shout out for those having a problem with the latest DelayedJob, this is a quick fix!