Blog
424 Blog articles in total, showing 311 to 320
-
Scala — Day One
Tate compares Scala to Edward Scissorhands in his metaphorical introduction to the chapter. What I’ve seen of the language so far certainly made me feel it was a little on the odd side. Its just near enough to Java that it feels wrong when it works more Rubyishly or more Lispishly. The first …
- Published:
-
Prolog — Day Three
My fears of a mega hardcore third day of prolog were not realised, and I actually had some proper fun this time round. Mr. Tate is absolutely right that making a sudoku solver the prolog way is almost magical. I’ve written sudoke solvers in perl before. And believe me it ain't pretty. With …
- Published:
-
Review — Gwatkin Yarlington Mill Medium Farmhouse Cider
With today's cider I’m heading back west to the traditional heartlands of ciderism in Herefordshire. For it is in those heartlands that Gwatkin cider is made. On Moorhampton Park Farm in fact. Of Yarlington Mill apples Yarlington Mill is a c …
- Published:
-
December 2011 Reading
Another Christmas gift from me old man, this is a 2005 novel which was made into a film last year. I’ve not seen the film. But the book is wonderful, a dystopian sci-fi, by turns tender and twisted. Ishiguro riffs on the fragilit …
- Published:
-
Prolog — Day Two
Day Two was challenging. Like really hard. My imperative mindset is finding the declarative approach to coding frankly odd. When things do work it feels almost magical. And in at least one of the solutions I just chanced upon the implementation by fiddling round pretyy randomly rather than having a …
- Published:
-
Prolog — Day One
Its been a long time since I finished the Io section of my Seven Languages in Seven Weeks Journey. I realize that. Probably six months. That is doubleplus ungood. In my defence I must remind readers that I said at the outset that I might not do these on seven consecutive weeks. I’m just stret …
- Published:
-
Review — Tutts Clump Cider
Tim Wale is a cidermaker from West Berks who has a mission “To establish Real Cider and Perry at the forefront of English drinks, even if it takes the rest of my lifeâ€. Well, I am certainly down with that. And even more excited th …
- Published:
-
Vegan Mushroom, Tofu, and Sweetcorn Pie
This is a winter dish that’s perfect for consuming while lying round on the sofa watching crap movies on a foggy day. The main tricks are shoving in a load of tarragon, and also a little bit of tahini to thicken up the sauce. I served it up with some steamed red and green cabbage. If yo …
- Published:
-
UK Postcode Lookup — My First Drupal7 Module
Update 2012-02-26 I updated this module in a few ways. It now uses the Drupal presave hook rather than the form_alter hook -- meaning that if there is a postcode and no lat/long it will always look up your postcode. That is a much better way to do it in my opinion. I’ve also changed the defau …
- Published:
-
MySQL tip: Counting total number of rows even when LIMIT is set
Pagination is a pain in the arse, right? That's one of the lovely things about using an ORM or something to do it for you. But that isn't always possible, so at some point you'll need to use a LIMIT on your select. Now, MySQL has a nice little feature called SQL_CALC_FOUND_ROWS which puts the num …
- Published: