Opening files w/sudo in Emacs

Links — kevin on January 30, 2009 at 11:35 am

C-c C-f /sudo::

Works like a charm in Aquamacs! You’ll need to install tramp for this to work:

Read more about it here.

Singletons: They’re Ugly in FP, too

Links — kevin on January 12, 2009 at 1:34 pm

http://www.planeterlang.org/en/planet/article/Async_or_Sync_Log_in_Erlang_-_Limit_the_Load_of_Singleton_Process/

Singletons. Seems like they’re rarely a good idea. Ever.

Pragmatically Scaling Erlang

Links — kevin on November 4, 2008 at 10:06 am

Excellent series of articles by Richard Jones detailing the work required to scale a Comet server written (mostly) in Erlang out to 1 million connections.

Part 1
Part 2
Part 3

JSON For Erlang

Links — kevin on October 31, 2008 at 6:02 am

http://www.erlang-projects.org/Public/news/ejson/view

There’s also the mochijson module in mochiweb but this looks useful in situations where the entirety of mochiweb might be overkill.

Error -12

Links — kevin on October 15, 2008 at 7:17 am

When ejabberd or Jabberlang return “error: -12″ this means they cannot load their native library drivers. Normally this means they can’t find expat_erl.so.

To fix:

  1. Verify the drivers exist in the priv directory of the Jabberlang or ejabberd applications, depending on which one you’re using.
  2. Verify the path, returned by ejabberd:get_so_path(), exists and is readable by the user the Erlang process is running under.
  3. Make sure the shared library has been built for the appropriate platform. In other words, make sure you’re not loading a Linux shared library on OS X, for example.

May Google find this so someone else doesn’t experience the pain I did yesterday.

Reflective Record Access

Links — kevin on September 25, 2008 at 11:32 am

OMG! Reflective record access by Ulf Wiger: http://www.trapexit.org/forum/viewtopic.php?t=6385&sid=a64a45192821687eddb69fe3ae466383

Now records behave much more like how I’ve always thought they should without the mind-bendingly ugly syntax.

Formlets

Links — kevin on September 17, 2008 at 7:23 am

Hmm. Interesting reading: http://groups.inf.ed.ac.uk/links/formlets/

Hot Swapping Code in Erlang

Links — kevin on September 12, 2008 at 7:58 am

Dominique Boucher on the pitfalls of hot code swapping: http://theschemeway.blogspot.com/2008/09/hot-code-swapping-pitfalls-in-erlang.html

Mitchell Hashimoto on the basics of hot code swapping: http://spawnlink.com/articles/rules-of-hot-code-swapping/

Optimizing Erlang

Links — kevin on August 29, 2008 at 1:31 pm

The indomitable Joel Reymont write his first article on optimizing Erlang:

http://www.wagerlabs.com/blog/2008/08/optimizing-erlang-a-death-match-of-arrays-vs-tuples.html

Great Lispy Bits Batman!

Links — kevin on August 18, 2008 at 11:30 am

Via reddit:

Symbolics Lisp document dump

Next Page »
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License. | Kevin’s Link Blog