Forfatterarkiv: Carsten
Avoid html escaping I18n strings in Rails 3
Update: Be careful with this method, if you have string-interpolation with user input. It might be the cause of XSS. I’ll cough up a better method, that can handle cases with and without interpolation With Rails 3 comes a shift … Læs resten
Trouble with Net::HTTP in Ruby 1.8.7 (released with Ubuntu 10.04)
I stumbled upon an error trying to work with acts_as_solr just after upgrading to Ubuntu 10.04. When trying to start the solr-daemon with rake solr:start i suddenly got an error not seen before: undefined method `closed?’ for nil:NilClass /usr/lib/ruby/1.8/net/http.rb:1060:in `request’ … Læs resten
My favorite Apache setup for a Rails application
You think 1 site equals 1 Apache Virtual Host? Think again, and read on to figure out why not. For every Rails application that I deploy into production mode, I usually creates 3 Virtual Host entries in Apache. To illustrate, … Læs resten
How to make Rails routing case-insensitive
Update 2011-03-10: Brian Marquis pointed out, that I’ve missed showing a good way to actually load the .rb file containing the middleware. This has now been added to the article. Update 2010-11-06: Rails 3 has changed its routing mechanism. One … Læs resten
The woes of libodbc-ruby1.8 and Debian + Ubuntu
Update 05-05-2010: This issue still exists on the new Ubuntu 10.04 LTS (Lucid Lynx). The dist-upgrade will override any version locks that you have made on libodbc-ruby1.8 and install version 0.9997-2 (and lock it). So after a dist-upgrade you will … Læs resten
Normalisering af databaser
Dette er en artikel, som jeg har længe haft liggende på Eksperten.dk. Siden Eksperten fik nyt design har det været fuldstændig umuligt at se tabeleksemplerne i artiklen, hvilket gør den stort set ubrugelig. Jeg har derfor flyttet over på min … Læs resten
Reclaim control of your application with Cucumber
As I’ve written earlier(danish), I’ve arrived rather late to the test-driven development-train. As a result I have a large application, developed in Rails, but without utilizing the test framework. Granted I have lately added some unit-tests, but in the whole, … Læs resten
Simple Amazon S3 file synchronize for Rails application (without the need of Capistrano)
So you have a nice Rails-app running and you want all your static assets to reside on Amazon S3? There are other good solutions on the web, but most of what I’ve seen requires that you also use Capistrano for … Læs resten
Looking forward to Ubuntu 9.10
http://www.ubuntu.com/
Cloud As A Service
Vil du virkelig være noget i IT-verdenen lige nu, så skal du helst tilbyde alle dine service-ydelser som – nåja – “as a service”. Seneste skud på stammen er “Test as-a-service”. Og så “Cloud”. Det er jo gået hen og … Læs resten