APIdock + emacs integration

Inspired by the post APIdock + vim integration, and feeling jealous for a second, i’ve thought: “Hey, this can be easily done with emacs!!”

So, here you have APIdoc + emacs integration.

Just copy it to somewhere in your emacs path (i.e., ~/.emacs.d), and add this line to your ~/.emacs:

(eval-after-load ‘ruby-mode ‘(require ‘rails-apidock))

Complete script:

;; Simple function to search in Apidoc rails API ;; [...]

Catching and examining exceptions in a IRB session

When developing with Ruby, I usually spend a lot of time inside a IRB session. You can test little helper functions you are using, etc, etc.

Sometimes, you want to test one function that is not supposed to throw an exception, but is doing so. And the backtrace shows you that the error is buried very deeply in your [...]

Using msmtp with the GNOME keyring

Using msmtp with gnome keyring

If you use mutt to manage your mail, you are probably using msmtp to manage your mail delivery.

Probably you don’t like the fact that you have you store your SMTP password unencrypted in your $HOME/.msmtprc file.

Fear no more! Satoru Satoh has added support for the GNOME keyring, and, thanks to Martin Lambers, that’s already [...]

Using rtags ang gtags for coding Ruby

Boring intro

When I was a C and Java developer (not that long ago), I always used the GNU GLOBAL source code tag system gtags.

Despite it’s awful, impossible-to-find-in-google name, it’s a wonderful system to navigate around your code: find function definitions, where they are used, fast “grepping” of code, you name it.

And, most important, it’s emacs support is wonderful!!

You [...]

Listing keys used in a memcached server

Maybe this is of no use to anybody, but it was useful to me while developing some caching code, so I hope it can be useful to someone else.

This is a script will list every key that’s being used in a memcached server.

I haven’t tried it in a production server, and you sholud be careful doing it. It looks [...]