Thoughts and ramblings
Who cares if Steve Jobs wasn't at Macworld?
I certainly couldn’t care less and I’m getting tired of hearing so much about it on the interwebs.
No-one can deny that since coming back in ‘97, he’s turned Apple around and even though the computer market is still Microsoft’s playground, Apple’s becoming stronger and stronger with every passing month (if only the stock prices could as well!).
So now they’ve got this proven track record of creating good-looking, solid, reliable products – spearheaded by Jobs. So, when he does go, surely they’ll be fine if they just keep his mantra and way of leading? And of course, keep bringing out great products.
Redirecting Back in Rails
Often when writing Rails apps, you need to be able to redirect back to a particular page, whilst keeping GET variables in the url.
There’s a bunch of solutions out there for this kind of task, including the built in redirect_to :back but while this does work in some cases, if your needing to redirect back to an action which was two requests ago, it won’t work. You need to be able to set where it should redirect back to.
The "X-Powered-By" HTTP Header and Mod_Rails
If you’re like me and don’t like flaunting your server’s version numbers to would-be hackers, you’ll want to surpress the “X-Powered-By” and maybe also the “X-Runtime” http response headers which Mod_Rails (aka Passenger) creates. This can be done by simply enabling the Apache headers module and adding the following to your Apache config or vhost file:
Header always unset "X-Powered-By"
Header always unset "X-Runtime"I don’t know why Phusion hasn’t made it a config option to be able to suppress those headers without the need for enabling the headers module, but hopefully they will soon.
Tweaking Mod_Rails for speed and performance
I’ve recently made the switch Mongrel to Mod_Rails (aka Passenger) for hosting fluidsyntax.com and am very pleased with the results. The site is just as quick, but consumes almost half the memory under normal load – almost cutting the hosting costs in half!
One of the aspects which is so desirable about Mod_Rails is the speed with which you can deploy new sites due to the minimal configuration needed. In fact, to get a site running in the first place is pretty much as simple as just creating an apache vhost file to hook your site up. However, there are a couple of options which should be given consideration if you’re wanting to optimise your setup for your needs.
New Design, New Year's Resolutions
I’ve redesigned fluidsyntax.com in time for the new year. It’s nice to start a new year with a new, fresh design. No more random-woman-header-image, much less black, cleaner, wider and more minimal. Much better, in my opinion.
Along with the redesign, one of my New Year’s Resolutions is to start writing more techy posts. More focus on Ruby – both with Rails and other frameworks such as Sinatra, and also about server setup and optimisation.

