Ya leí varios libros de Mario Levrero y me parece apasionante. Ahora estoy leyendo La novela luminosa y desde hace unas semanas creé el usuario @mariolevrero en Twitter y todos los días twiteo frases de ese libro (por eso el script del post Twiteos Automáticos). Hace unos días se me ocurrió hacer algo más dinámico y en una tarde escribí un bot para Twitter. La idea es que si le mandas un mensaje directo a @mariolevrero, te responde con una frase tomada aleatoriamente de sus textos.
Posts Tagged: ruby
11
Dec 09
Traduciendo ISBNs
Empezamos a guardar libros en cajas para la mudanza y aproveche para jugar con todos los isbn que teniamos a nuestro alrededor. Compre un lector de codigo de barras y busque como obtener la informacion del libro a partir del isbn. Encontre isbndb que tiene una api, pero bastantes de los libros que tenemos no los encuentra (mas que nada los de Argentina).
La siguiente solucion fue hacer scraping con Mechanize. Con esto cubro por ahora el 70% de los libros procesados por el momento (unos 270).
22
Sep 09
Finding duplicate files in OS X with rudups
As an exercise in learning Cocoa I’ve developed an application to find duplicate files. The files are compared using a MD5 hash of their content. It was written in Ruby (with RubyCocoa) and the source code is at rudups’ repo at GitHub.
You can get a .dmg to install rudups
16
Sep 09
gettext tag for Webgen (quick and dirty)
If you are generating sites with webgen, when you need to add i18n to them, you have to make copies of the pages for each language. I want it something more like gettext. So I end up writing a new tag in webgen to use gettext. It’s working for me, YMMV. I’ve used webgen 0.5.10.
30
Jan 09
Installing ruby-oci8 with Oracle Instant Client 11g
While trying to use ruby-oci8 and Oracle Instant Client 11g I run into problems when compiling ruby-oci8 extensions (I was following the guide at ruby-oci8 site).
The problem seems to be the Oracle Client packages (only tried with the .rpm) (tried the same with 10g and it worked fine).
28
Jan 09
flickraw proxy support
I made a small patch to use proxies with flickraw (0.5.1). It uses the environment variable http_proxy or HTTP_PROXY (in that order) to get the proxy settings.
You can see the changes at flickraw-proxy@github.