I've been working on a library to bring arel-like functionality to Go.
Git hooks may need to execute deployment actions they have no permissions for. Messaging provides a simple way to bridge that gap.
Latest revision: 2014-01-12
The RPC example that comes with the AMQP gem has all the dangly callback stuff on the outside; I thought I’d try to hide some of the loose ends. It’s pretty much standard EM+Fiber magic. I might try to further improve on it later on.
I’m using thin for several apps on my server, and the default init.d
script only knows how to restart all of them at once, which obviously can sometimes be too drastic, so I hacked up a gentler version:
Some template hackery to dynamically collect arguments to a callback.
This post has been rewritten.
A syntax shortcut to match the head of a string.
Suppose you’re running an Erlang application (ejabberd
, for instance). It’s been up for months and months but then you try to use a remote control script (like ejabberdctl
) and it fails, probably saying things like “nodedown”, indicating it cannot communicate with the Erlang node; yet the application itself is apparently running just fine. Running out of ideas, you run epmd -names
and, to your horror, it shows an empty list.