Archive / RSS
Feb 10

MySQL mayhem with Rails 2 and Windoze.

There is something very wrong with the combination of Rails 2, MySQL and Windows. The default installation of MySQL has “sql-mode” enabled by default which causes RSpec tests to fail miserably when handling dates. And these are run of the mill sort of dates too a-la TIme.now.to_s(:db). Nothing special. Disable sql-mode in the MySQL Administrator application and viola! the specs pass.

But the pain does not end here. Rails 2.2, with the installed MySQL gem (the compiled one) segfaults. Null pointer exceptions all over the place. Furthermore, if you happen to be running Rails 2.1 and you also happen to have the MySQL native gem installed, be prepared for more segfaults.

So here is the Rails 2 setup with MySQL that has worked for me:

  • Rails 2.1
  • gem uninstall mysql
  • sql-mode=”” (Turn off SQL mode in the MySQL Administrator app)

Happy coding, monkeys!


Jan 26

The Golden Age of HTTP

It actually feels like a party at the moment. A little celebration of really good design that is leading us all to distributed computing. The rules are clear and simple so its easy to communicate. Mass adoption of this set of design restrictions has allowed for the programming of really incredibly simple distributed systems. It’s a transparent and democratic system, a common language to unify all computing entities.

Jan 1

Jan 1

Jan 1

Jan 1
Polypores on a cut log Polypores on a cut log

Jan 1
“Communities, like individuals, live to be thwarted, to rise only that they may fall, thus perhaps to learn their own frailty. Anything resembling stability or success come finally in a way least expected and mocks the dreams of youth.” from ‘Ithaca’ by Henry Edward Abt

Jan 1
A Christmas chorus in Alabama

Dec 28

Dec 25

Page 1 of 8