вторник, 7 июля 2009 г.

irb readline support on Leopard

Written March 22, 2008 at 22:40 CET. Tagged Ruby and OS X.

The irb (Interactive Ruby) that ships with OS X Leopard does not have readline support. Instead it uses libedit.

This means that things like ⌃R for reverse history search don't work. More importantly to me, you can't use non-ASCII characters like Swedish "å", "ä" and "ö".

Compiling your own Ruby (with readline) is one solution. If you just want ctrl+R, macosxhints has another.

The solution I'm currently using is the work of jptix, a regular on the ##textmate IRC channel. He asked me to blog about it, so here it is.

Используем Google maps Directions

<%= button_to_function "как проехать", "window.open(\"http://maps.google.com/maps?saddr=#{URI.escape('москва нахимовский проспект 50')}&daddr=#{URI.escape('москва мичуринский проспект 10 ')}&hl=ru\")" %>


+ смотри plugin ym4r-gm