Martin Ström

  • Home
  • Blog
  • Projects
  • Information
  • Tags
  • ./script/server with automatic port finder

    This is the script I’m using when I start my local Rails development server. It will automatically detect the next available port starting at the default port 3000 so I can have multiple servers running without remembering what ports that are already busy. #!/usr/bin/env ruby DEFAULT_PORT = 3000 puts (`ps aux | grep [r]uby | grep script/server`.split(”\n”).map { [...]

    Posted

    July 8, 2008

    Tags

    bash, blog, rails, ruby, terminal

  • Modernize Rails (or: get rid of Verdana)

    Tired of see the the soooo 1999-ish font “Verdana” every time you get a local error page in Rails? Now you don’t have to. With this plugin the error pages will use Arial or Helvetica instead—finally! To install: ./script/plugin install http://burnfield.com/svn/martin/rails/plugins/verdano or as svn:external: ./script/plugin install -x http://burnfield.com/svn/martin/rails/plugins/verdano I’ve moved to git so the new instructions are: [...]

    Posted

    December 29, 2007

    Tags

    rails, railsplugin, ruby

    3 comments

  • OmniFocus to iPhone bookmark exporter

    Since the iPhone lacks the possibility to export tasks from iCal I made hack/script to export all tasks from OmniFocus to a Safari bookmark and therefore be syncable with Safari. Read more in the OmniGroup forums and/or download the latest version here. Update: On request, here are some screenshots of how the todo list looks like:

    Posted

    November 9, 2007

    Tags

    blog, hack, iphone, osx, ruby, safari, script

    4 comments

  • Konst & Teknik site

    My friends over at Konst & Teknik asked me to code their web site. It’s only one page, that should show the results from Google Image searches for the word in their name, “konst” and “teknik” (”art” and “technology” in swedish). I liked the idea and also got the opportunity to do some ruby scripting [...]

    Posted

    January 11, 2006

    Tags

    ajax, css, javascript, php, projects, ruby, websites

  • Colhour as iChat picture 2.0

    This is the second version of the Colhour as iChat picture I posted the other day. The biggest improvment is that it will show both the hours and the minutes. There’re two versions of the script. The first one uses a Ruby script together with RMagick to create every image on the fly with the current [...]

    Posted

    October 28, 2005

    Tags

    applescript, colhour, ichat, osx, projects, ruby

Top