Fixing 'SQL exception: Incorrect string value' on TeamCity with MySQL database

Friday, October 21, 2011 7 comments
I found myself getting this error from TeamCity when trying to run some tests that contained non latin characters on the test name (actually a feature step) :

SQL query: INSERT INTO test_names (ID, TEST_NAME) VALUES (?, ?) SQL exception: Incorrect string value: '\xCE\xA4\xCE\xB1 \xCE...' for column 'test_name' at row 1

The problem was that the MySQL database that TeamCity was using had been set up with 'latin1' character set. I run this script on the database to alter all the tables and convert them to utf8 and everything worked like a charm afterwards :

xkcd all time classics

Monday, October 17, 2011 3 comments

Some handy Rails test helpers

Thursday, October 13, 2011 4 comments
Extracted and packaged some handy test helpers for Rails into a gem : evelpidon_test_helpers. Not much but it does saves us a lot of repetition.

More helpers will to be added soon!

RIP Steve and Richie

It's a really sad month for the technology community. First it was Steve and now it's Richie.


Breadcrumbs on Rails

Here's a short list of existing libraries for easy breadcrumb generation/management in Rails sites/projects :

So far, crummy is winning since it's the simplest one that actually works, but simple-navigation looks pretty interesting with much wider compatibility (Sinatra, Padrino, etc) and with more generic feature set.

Thanks to all of the authors for saving me (and all of us) time from actually re-implementing the same thing again and again!

Mocking/stubbing a method that's included from “instance.extend(DecoratorModule)”

Sunday, October 9, 2011 4 comments

I use a decorator module that get's included in a model instance (through the "extends" method). So for example :
module Decorator
  def foo
class Model < ActiveRecord::Base
class ModelsController < ApplicationController
  def bar
    @model = Model.find(params[:id])
Then I would like in the tests to do the following (using Mocha) :
test "bar" do
  get :barend 
Is this possible somehow, or do you have in mind any other way to get this functionality???

Stack Overflow question

RubyConf 2011 : The &block party

Saturday, October 8, 2011 1 comments
Some photos from the excellent &block party!

For the record, the bands that were playing were :

Steve Jobs (I will always remember...)

Your time is limited, so don’t waste it living someone else’s life. Don’t be trapped by dogma — which is living with the results of other people’s thinking. Don’t let the noise of others’ opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.

The official Fraudpointer blog: Fraudpointer for Google Apps™

Friday, October 7, 2011 5 comments
The official Fraudpointer blog: Fraudpointer for Google Apps™: The official announcement of Fraudpointer integration with Google Apps! More technical details soon live (and at the 7th Athenian Ruby Meetup!)