Oct06
Improving the load time of your application
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 »there is noise in silence
Oct06
(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 »Jul22
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
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:
Apr14
Just a quick shout out for those having a problem with the latest DelayedJob, this is a quick fix!
Apr11
If you have recently been keeping up to date with Ruby, and have tried using multiple versions at the same time, you're most probably using RVM to manage these different versions.
Continue reading »Apr06
I've recently been following chris neukirchen's coding conventions by the letter. All of them are really good. But one of the most interesting and probably opinionated convention he advocates is this:
Continue reading »Feb24
Our experience so far with rails 3 has been pretty good. Some of the modules and internals of rails were renamed, but so far we haven't experienced anything that changed drastically. Most of the stuff still have some parallelisms.
Continue reading »Feb23
We're building a very simple app, and we decided to start with Rails3. Here is our stack so far:
Jan30
Do you hate managing cron configurations manually? How about maintaining different cron configs for every Rails application you might possibly have?
Say hello to a ruby gem called whenever. It basically allows you to configure your cron jobs in ruby. An example to illustrate:
Continue reading »Dec12
I've seen code before that do the following:
collection = [ var ].flatten # where var might or might not be an array
This idiom is better expressed using
Continue reading »Nov04
I have been very interested and locked to background processing ever since I've employed it. I have tried Starling, Delayed::Job, beanstalk, ActiveMessaging, ZeroMQ, and RabbitMQ. Here's a quick rundown:
Continue reading »Sep28
From wikipedia:
Murphy's law is an adage that broadly states: "Anything that can go wrong will go wrong."
Today, we relaunched recomed. We planned to include SSL in the login page, contact importer, password reset, edit profile (anything with sensitive information basically).
Continue reading »Sep25
I've been working for over a year at recomed.com, which basically is a social network for doctors that aids people in potentially finding the right doctor for their needs.
Continue reading »Sep24
Have you ever run into the problem in Rails Metal where AJAX Requests just choke? When you try and debug the error response, it would stupidly reply "parseerror".
Continue reading »Aug19
I ran into this error earlier, and I got to tell you, this is really one puzzling error message.
Basically I have the code in my routes that does this:
Continue reading »Jun09
If you're using acts_as_solr and not disabling it on your tests, or want to enable or disable it selectively, try my fork of mattmatt-acts_as_solr on http://github.com/cyx/acts_as_solr.
In a nutshell, you put this in your test_helper:
Continue reading »Apr28
Since Rails 2.3 is the only Ruby 1.9 compatible version of rails, and shoulda hasn't yet made the move to support Rails 2.3, I'm gonna play a little waiting game and try and let the guys at thoughtbot update shoulda.
Continue reading »Apr27
Since I'm slowly (but surely) making the move to ruby 1.9 each day, I discovered that starling doesn't work with ruby 1.9, and most probably, it never will.
The guys at twitter have moved to kestrel for a time now, so I guess that's the best move for me as well. Considering switching to an entirely different queue server with a different protocol will incur too much overhead as of this moment.
Continue reading »Apr23
Marcel Molina just upgraded his copy on github.
Check it out here
Apr16
I've been trying to update to ruby 1.9. So far here are some notes:
I patched it myself. here it is:
http://github.com/cyx/aws-s3
Found a Ruby 1.9 compatible version at
Continue reading »