Posted on 24. Mai 2009, 12:11, by Stefan, under
General.
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 [...]
Posted on 22. Mai 2009, 21:22, by Stefan, under
General.
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:
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 [...]
Posted on 17. Mai 2009, 18:17, by Stefan, under
Technology.
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 [...]
Posted on 15. Mai 2009, 11:09, by Stefan, under
Technology.
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 [...]
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 [...]
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 [...]
Tags:
autotest,
factory,
girl,
growl,
redgreen,
Ruby,
ruby on rails,
shoulda,
test,
thoughtbot,
unit 1 Comment |
Read the rest of this entry »
Posted on 4. Mai 2009, 21:26, by Stefan, under
Ruby.
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 [...]
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 [...]
Posted on 4. Mai 2009, 16:58, by Stefan, under
Javascript.
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…");
});
});