Doing a little research for an article about “log4j”:http://logging.apache.org/log4j/ configuration in Java webapps, I decided to use “Maven”:http://maven.apache.org/ as a sidekick. “I already pointed out earlier”:http://blog.nofail.de/2010/01/buildr-the-build-system-that-doesnt-suck/ that my favourite build tool is “buildr”:http://buildr.apache.org/. The reason I chose Maven is that it has “archetypes”:http://maven.apache.org/guides/introduction/introduction-to-archetypes.html and that there is a deprecated guide for using such an archetype […]
Author: phoet
Migrating to Rails 3 for Heroku Bamboo
Recently there were some interesting “updates to the Heroku infrastructure”:http://blog.heroku.com/archives/2010/3/5/public_beta_deployment_stacks/, giving the opportunity to migrate “my personal Rails 2 website”:http://www.phoet.de/ to “Rails 3 (beta)”:http://weblog.rubyonrails.org/2010/2/5/rails-3-0-beta-release/. Having an app with only a single model “for caching data”:http://blog.nofail.de/2010/02/simple-db-caching-for-heroku/, there is no worry about database migration. A nice opportunity for starting out new: rvm use 1.9.1 gem install rails […]
noSQL – Rails models with SOAP
Using a DB is a natural thing for a Rails developer. Since Rails is a database driven application framework, that does not come as a big surprise. But there are times where environmental constraints do not allow the freedom to use the weapon of choice… Imagine a legacy Java SOA landscape that provides tons of […]
Simple DB caching for Heroku
Heroku is a great platform. I like the style of the page, I appreciate the documentation and you can start up for free! One thing that I miss a lot is decent caching. The readonly filesystem eats up a lot of flexibility. I played around with HTTP caching and Herokus Varnish works really well. The […]
Writing your own DSL with Ruby
I am a big fan of Ruby. There are so many beautiful libraries out there and most of them are based on some kind of domain specific language. Take builder as an example: Builder::XmlMarkup.new.person { |b| b.name(“Jim”); b.phone(“555-1234”) } #=> Jim555-1234 Generating XML in this manner is pretty cool! There is no crazy XML editor […]