Snakes on a... oh, who cares?
As usual, substitute nails it.
The personal website of Piers Cawley
(they/him)
—
FolkSinger, photographer, carer and occasional programmer.
As usual, substitute nails it.
“Good news! Those lovely people at Fotango, grateful for the use of the photo of their MD I took, have offered to pay for a EuroStar ticket to Brussels for EuroOSCON.”
It may not be a nice theme, but it’s my theme. Look! There are adverts again!
I just realised something about the workings of new style Typo Sidebars: it’s just an application of the Parameter Object design pattern; the render_sidebar
helper method takes a Sidebar
parameter object and produces a chunk of HTML. The fact that we persist the parameter object using ActiveRecord is almost beside the point - the persistence is more important to the render_sidebars
method than anything else.
I’ll let you into a secret. You can tell when I’ve done a big svn up
on this blog simply by looking at the theme. If it’s all black and white and sans serif, then it’s a racing certainty that I’ve just done an upgrade which has broken my usual custom theme.
I was going to save this until I’d rejigged my blog to a three column layout and had left everyone mystified by how I’d managed to get sidebars on both sides. But, let’s be honest here, it’s going to be ages before I do that. So, I shall spill the beans preemptively.
Typo Sidebar’s are now controller free!
Guess who couldn’t sleep?
Many thanks to Paul Ingles who has just written a fantastic article about writing a Typo sidebar in a test driven way.
We’re in the process of doing up our house. Which means that there’s a bunch of stuff that we need to get rid of that’s not really good enough to ebay, but a wee bit too good/big to chuck in the bin.
Just in case you’ve been caught by it, the recent instability of this site doesn’t appear to be because of typo and rails bugs, but because the hard disk at my hosting services appears to be in the process of going bad. Hopefully it’ll be resolved soon.
This made me laugh a lot.
I was just about to start writing a multimethod system for ruby when I realised how much I miss Perl tools like Module::Starter. CPAN has a whole suite of tools which make it at least as easy to do the Right Thing when setting up your project than it is to succumb to ad hockery. Start your project using Module::Starter, and you get a sensibly laid out that works well with standard Perl build/installation tools, a stub of your module, with the various boilerplate bits of the documentation filled in, a test directory, README, etc…
I’m still in two minds about going to EuroOSCON this year. That’s not quite true. I want to go, but I can’t afford to go. I certainly can’t afford to pay for my own ticket, and if I could I would probably have put it towards a Macbook Pro.
Well, today’s been fun. For appropriate values of fun. I’ve fought shy of doing politics in this blog so I’m not going to rant about the evils of theism, nationalism, Bush, Blair, Hizbullah, Israeli foreign policy, eejits who plot to blow up aeroplanes or any of the other things you’d expect a soggy liberal like me to get exercised about. Life’s too short.