Archive for Mai 2009

RailsWayCon here I come

In a couple of hours I’m leaving good old Karlsruhe by train to hit Berlin and RailsWayCon. This will take about 6 hours but as my buddy Marco is coming with me I think it won’t last that long. Besides that I’m going to have enough time to finally check out my personal timetable.
What [...]

web2.nullify your name

Ever wanted to see your name in famous web2.0-services’ characters? No, problem. 0write does this for you. Here’s how my company’s name and mine look like:

Cucumber, autotest and growl

Using cucumber and bdd is just fun. Shoulda have used it earlier … Sorry, I need to write that
When you use cucumber (at the beginning) you always have to run

cucumber features

in your console to run all your features. Or you specify one by running

cucumber features/session.feature

There are some more ways but have a look [...]

braid - keep track of external git and svn repositories within a git repository

Attending Euruko 2009 was great! I recommend this conference to every ruby enthusiast. The authors auf braid held a flash talk and tried to demonstrate the power of braid. Unfortunately the didn’t manage to although they typed their commands incredibly fast
Back home I gave braid a try and this tool is great. Before [...]

git-sh - a customized bash shell suitable for git work

Due to a buddy’s tip I installed git-sh from github. Git-sh is a customized bash shell for your daily work with git. It ships along with some handy shortcuts within your new git shell and it’s fully customizable:

Aliases from ~/.gitshrc
commit [...]

Upgrading to rails 2.3.2

Before today I was running on rails 2.2.2, but now I need the new rails engine feature so I had to upgrade.Ok, I would have to anyway
It wasn’t that hard.

sudo gem install rails

and renaming application.rb to application_controller.rb did everything required for my development environment. I use hoptoad for error aggregation in production, so [...]

Playing with Unit::Test, Shoulda, Factory Girl, autotest, growl and redgreen

Since my first steps with rails I was used to write rspec tests / specifications. I was never that happy about it. Can’t say exactly why. I think it was just a “personal” thing. About two weeks ago I finally gave shoulda and his buddies a try. So here’s what I have done.
Installation
First I had [...]

rubular - nice ruby regular expression editor

if you need to deal with regular expressions in ruby and you aren’t a regex pro (as I am) - or event though - check out rubular. Rubular is an online regular expression editor which may help you get your stuff done quicker. It helped me a lot so I decided to write a line [...]

MySQL utf8 - latin1 encoding foo with ruby on rails, ubuntu server and osx client

Since I set up a rake task which dumps my production database on the server and pipes it through a ssh connection into my local mysql server I had to recognize encoding problems locally. Today I said to myself: “Stop that encoding foo and get this crappy shit running correctly”
After struggling around with server side [...]

Disabling submit buttons with jquery

Submitting forms twice sometimes causes errors because resources aren’t available any more or a second request on a specific resource isn’t allowed. There are many reasons why submitting a form twice causes an error.
Some lines of jquery will help you prevent those errors:

1
2
3
4
5
6
7
$(function() {
var input=$("input:submit");
input.click(function () {
$(this).attr("disabled", true);
$(this).attr("value", "Submitting…");
});
});