Terminal Keyboard Macro

Find yourself typing the same thing repeatedly in the Terminal app on OS X?  Wish you could keyboard macro something that works regardless of what shell, sub-shell, or program you’re in?  Well you can. I’ve been doing a bit of Erlang programming lately and got tired of having to change working directories so that I […]

Erlang syntax highlighting for BBEdit/TextWrangler

Coding in Erlang on OS X?  Using BBEdit or TextWrangler?  Wish you could have syntax highlighting for your .erl and .hrl files?  Well you can! Paul Guyot developed an Erlang Language Module for BBEdit/TextWrangler that you can find over at Google Code. Download, read the README, plonk the module in the right directory, relaunch your editor.  Easy.

YAWS json vs json2

Have a Erlang YAWS project that uses the json/json2 modules?  Notice some weirdness after upgrading to json2?  Yep , me too. In the original json you might do something like this: case json:decode_string(JSONdata) of {ok, {struct, Data}} -> [Field1,Field2] = [ proplists:get_value(X, Data) || X <- [field1,field2] ], in order to access the values in […]

Basic Directory Display in YAWS/Erlang

When setting up a web server for the first time what I always want to do is get a script working that just does basic things like show the contents of the directory on the server.  It helps me orient myself to the new language/software. Here’s my version of the Erlang code block that you […]

Installing 64-bit Erlang on a MacMini

A heads-up for those installing Erlang on an Intel MacMini… Let’s start by supposing you have Mac OS X Snow Leopard happily installed and updated on an Intel MacMini: $ uname -a Darwin MacMini.local 10.5.0 Darwin Kernel Version 10.5.0: Fri Nov 5 23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_I386 i386 Further, you have a recent version of Xcode […]