Martin Ström

  • Home
  • Blog
  • Projects
  • Information
  • Tags
  • Copy Paste Character

    Two weeks ago we (me and Konst & Teknik) launched copypastecharacter.com—a site to make it dead easy to copy those special characters which otherwise can be hard to find. We just pushed an update and I realized I hadn’t mentioned it here. The character you click will automatically get copied into your clipboard, thanks to the [...]

    Posted

    September 19, 2008

    Tags

    blog, javascript, konst-teknik, project, prototype

    7 comments

  • ./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

    1 comment

  • Multi-dimensional array sorter

    The other day when working on some small updates on konst-teknik.se I wanted to sort the projects in a multi dimensional way, and take the other factors than the first into account. JavaScript’s Array#sort only supports one dimensional sorting so I wrapped my own sorter. The results turned up pretty good (at least compared to the [...]

    Posted

    November 24, 2007

    Tags

    blog, javascript, konst-teknik, prototype, sorting

  • iCal & iPhone syncing in Leopard

    Looks like I’m not the only one having problems with my iCal to/from iPhone syncing. After trying almost every possible solution I found in various forums and google, I finally came up with a fix that works for me. Like many others, I suspected the subscribed calendars were the problem and the iPhone synced fine after [...]

    Posted

    November 22, 2007

    Tags

    blog, ical, iphone, osx, syncing

    1 comment

  • Mac OS X 10.5.1 and Multi-Safari

    Seems like Multi-Safari (at least 2.0.4) broke when upgrading to Mac OS X 10.5.1. I get this error: “You cannot use the application ‘Safari 2.0.4′ with this version of Mac OS X.” Luckily, I’ve found a workaround. Just launch Safari from the command line (Terminal.app that is) and it should work for you: /Applications/Safari\ 2.0.4.app/Contents/MacOS/Safari &

    Posted

    November 21, 2007

    Tags

    blog, leopard, osx, safari, webdev

  • Ajax.CachedRequest

    Recently I wanted to cache the results (responseText) from a lot of Ajax.Requests since the returning data would not change and made the roundtrip to the server unnecessary. Maybe there are others out there interested so here’s the code. It’s not very well tested except the project where it is in use so there might [...]

    Posted

    November 11, 2007

    Tags

    blog, javascript, prototype

    4 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

  • Burnfield Dark WordPress Theme issue

    I get a lot of questions on how to make the thumbails show up on theme behind this site. So I’ve updated the page with some instructions to help you all. I’ve started on the 2.0 version on the theme that will (along other features) make thumbnails easier to manage. Read more

    Posted

    August 18, 2007

    Tags

    blog, burnfield, wordpress, wordpress-theme

    2 comments

  • AppleScript to open iTerm tabs for Rails development

    Update: This script is ported (and improved) to work with OSX Leopards’ Terminal.app. I never really liked iTerm because of slow redrawing, ugly text anti aliasing and not reflowing text when resizing the window. After reading some interviews on a Rails site today and saw that a lot of people are using iTerm i wanted to give [...]

    Posted

    July 19, 2007

    Tags

    applescript, blog, iterm, osx, rails, terminal

    4 comments

  • What’s new in Prototype svn?

    Just after posting this I saw that sam tagged the 1.5.1 release in svn so I guess this means that 1.5.1 is final. Great work! There has been a lot of action the past days in the Prototype SVN; the release of 1.5.1 RC4, the new DOM and Position branches and a lot of other work. [...]

    Posted

    May 1, 2007

    Tags

    blog, javascript, prototype

    2 comments

Top