• Ubuntu, mysql and rails

    I just upgraded my work laptop to Ubuntu Natty Narwhal, and then I found all my rails projects broken. Whenever I tried to run up a rails server, I got this:

    $ rails server
    => Booting WEBrick
    => Rails 3.0.3 application starting in development on
    => Call with -d to detach
    in `mysql_connection': undefined method `init' for Mysql:Class (NoMethodError)

    (followed by a huge stacktrace). Googling didn’t help much, because every time anyone has asked about this on a forum, all of the answers are specific to Macs.

    It turns out that the problem is that the mysql gem includes native code, which is built when you install the gem. And my existing mysql gem had been built against mysql libraries that are now, since my upgrade, out of date. So the fix turns out to be maddeningly simple. First, get rid of the gem that doesn’t work:

    $ gem uninstall mysql

    Next, get hold of the developer API libraries for mysql:

    $ sudo apt-get install libmysqlclient16-dev

    And finally, download and rebuild the gem again:

    $ gem install mysql

    Simples. I just hope this quick note saves you the hours of trawling through forums that I had to endure this morning.

  • Article: Virtual Panel: Specification by Example, Executable Specifications, Scenarios and Feature Injection

    In the last couple of years terms like Specification by Example, Executable Specifications and Feature Injection have showed up quite frequently in the community, often in relation to Behaviour Driven Development (BDD) or tools like Cucumber or SpecFlow. InfoQ have talked to some of the leading experts in this domain about what these practices are and how they relate to BDD. By Jon Arild Tørresdal
  • Eclipse Marketplace Passes One Million Installs

    The Eclipse Marketplace passed 1 million installations this week. The marketplace provides a centralised location where users can discover plug-ins for Eclipse, and open-source and commercial vendors can publish information about their plug-ins. InfoQ caught up with Ian Skerrett, VP of Marketing and Ecosystem at the Eclipse Foundation, to find out more. By Alex Blewitt
  • Presentation: A Tale of Three Trees

    Scott Chacon explains the internal mechanisms used by Git to do version control based on three trees –head, index, work–, and some of its commands, especially ‘reset’. By Scott Chacon
  • Adobe Will No Longer Develop Flash for Mobile Browsers

    Adobe has decided to stop developing Flash for mobile browsers. They will focus instead on creating tools for native applications using AIR and HTML5 ones. By Abel Avram