Railstation Tracks 61
Geschreven op 20-05-2013, door Peter Dierx
Extend Ruby String Class
Geschreven op 13-05-2013, door Peter Dierx
The capitalize method in the ruby string class isn't working out for me. It capitalizes the first character which is good but it downcases the rest of the string and that is not what I want.
Railstation Tracks 60
Geschreven op 07-05-2013, door Peter Dierx
Railstation Tracks 59
Geschreven op 29-04-2013, door Peter Dierx
Railstation Tracks 58
Geschreven op 24-04-2013, door Peter Dierx
Railstation Tracks 57
Geschreven op 20-04-2013, door Peter Dierx
Importing CSV into SQLite
Geschreven op 18-04-2013, door Peter Dierx
It seamed so easy the moment I started. Importing a CSV file into a SQLite database. On the contrary. CSV stands for comma-separated values which is pretty simple. But being Dutch and having price columns with values and comma's in it, not such a good idea. It's better to have tab-separated values. And here comes the trouble.
Railstation Tracks 56
Geschreven op 15-04-2013, door Peter Dierx
Geschreven op 07-04-2013, door Peter Dierx
Ruby Code with Thunder
Thor is a framework on steroids that replaced Rake for me two years ago. It's fast and easy to pass options to a task, which was cumbersome in Rake at the time. And it also has the option to make your tasks globally available. So let's start.
Geschreven op 05-04-2013, door Peter Dierx
For Rails & Sinatra
Middleware is a layer between your application and Rack. It intercepts a request and you can do something with that request and then pass it on to your application or not.