Skip to content

{ Tag Archives } Code & Demos

Avalanche Beacon Rescue Simulator

The avalanche beacon (typically known as ARVA in Europe: Appareil de Recherche de Victimes d´Avalanches) is an electronic device used to locate/be quickly located when trapped under a snow avalanche. Back in 2004 I presented an avalanche beacon rescue simulator as my Masther Thesis. The main goal was to try to better understand current rescue techniques, [...]

Also tagged

Simulador de Rescates en Avalanchas con ARVA

El ARVA (Appareil de Recherche de Victimes d´Avalanches) es un dispositivo electrónico que sirve para localizar/ser localizado rápidamente en una avalancha de nieve cuando realizamos actividades invernales con un grupo. En 2004 realicé como proyecto fin de carrera un simulador de rescates en avalanchas con ARVA, dentro de la titulación de ingeniería informática en la Universidad [...]

Also tagged

Working with Files: When Size Does Matter

Donald Knuth said that premature optimization is the root of all evil. And I cannot but completely agree. Abstracting to a higher level is always better for both the code writer and especially the code reader and maintainer. It also makes you focus on the problem you are solving. Optimization can be done later, if [...]

Also tagged , , , ,

Practicing Ruby with Google Code Jam

Google Code Jam is here again! A great opportunity to practice with the excellent exercises provided. I just took exercise A from the Qualification Round 2009. If you have a quick look at it… aren’t they asking for pattern matching? Aren’t you seeing regular expressions there? I did, they were just using “( )” instead [...]

Also tagged ,

Rakefile to download “El Quijote” audiobook

In the previous post I presented a Ruby script to download and rename “El Quijote” audiobook from a site which was far from user friendly (remember there were 126 badly named, badly ID3-tagged MP3 files to download). There was still something not solved by the script: the ID3 tags of the MP3 files. id3lib, a [...]

Also tagged , , ,

Ruby script to download “El Quijote” audiobook

Don Quixote (Don Quijote), probably the most famous Spanish text of all times, is available for free as an audiobook (in Spanish), thanks to a cultural project from the Government of Aragón (Spain). Unfortunately, someone decided that the best distribution method was to provide the users with 126 links (one MP3 file for each chapter). [...]

Also tagged ,