Rbenv, chef and bundler

What we aim We’re trying to use rbenv in our infrastructure in order to achieve the following multiple goals: Use the latest REE ruby runtime Switch to Ruby 1.9 for chef Prepare the migration to rails 3 and Ruby 1.9 for the main web application So far, I’ve managed to install rbenv system wide on the servers using Riot Games excellent cookbook. A simple: require_recipe "rbenv" # Setup the rubies PICOR_RUBY="ree-1....

3 min

Redundancy in Amazon EC2

Redundancy in AWS EC2 This article deals with redundancy in multi-AZ setup on EC2. Deal efficiently with AZs outages. Applicable to many others deployment styles. AWS is the branch of a company everybody knows. Amazon, not only selling books, DVDs and shoes has also one of the greatest numbers of virtual servers to rent in the world. Some say that the name Cloud has been invented because of AWS. Their servers are located all around the world....

7 min

Rigor Mortis

Vous avez pas parfois l’impression qu’on se fout de vous ? Cela fait une grosse dizaine d’années que je suis sur le marché du travail, et que j’ai donc l’occasion, en tant qu’adulte responsable, de payer mes impôts et d’avoir des interactions avec des gens qui m’appellent Monsieur (et que j’appelle aussi Monsieur ou Madame, parce que je suis poli). Chacune de ces intéractions montre comment les gens vous jugent, vous apprécient, ou vous ignorent et sont toujours très intéressantes au point de vue ethnologique....

2 min

rman is clever

Well, sort of. Today, after patching one of my oracle database server against a migration issue that prevented it from shutting down clean. I finally managed to run the magic command: alter database archivelog; That would enable me to backup the database. Unfortunately, the disk space on this server is too low to allow two full backups of the database. I wanted to delete the old backup before doing the new one in rman but rman is too clever: You cannot delete the last remaining backup!...

1 min

Ruby-io-tail at version 0.0.3

The new version of ruby-io-tail will start to tail files from the end, and not from the first line available. This is useful to ensure no lines is sent twice to the Tailing application. As usual, the gem is available from: https://rubygems.org/gems/io-tail

1 min Â· map[image:http://img2.blogblog.com/img/b16-rounded.gif name:Oct url:http://www.blogger.com/profile/10969884152933508554?rel=author]

Rusty Racoon

Je me suis mis à jouer avec Rust, le nouveau langage de Mozilla. C’est un changement intéressant, moi qui suis plutôt habitué aux langages moins stricts et plus « scripts » qu’à des langages compilés et à la tête dure. Rust a plusieurs caractéristiques intéressantes, outre le fait qu’il est encore en version instable et donc pas vraiment utilisable pour autre chose que du gros bidouillage (la bibliothèque standard change encore assez rapidement, et un morceau de code qui compile un jour peut vous péter à la figure le lendemain) : Il est fortement typé, tourne sans VM,** sans GC**, et possède quelques-uns des raffinements des taxonomy: tag: [backup] langages dit fonctionnels à la mode comme Scala, avec ses types optionnels, et son pattern matching pour le typage....

4 min

Signify to GMail RSS signature Converter

Just wanted to share this small python code that naïvely converts a signify parameter file into a RSS file that can be used in GMail with the Random Signature Appender lab feature. It doesn’t support any magical option of Signify (alignment, variable replacement). However, current lab feature has limitation to 96 chars in signature. This definitively sucks. Published under the WTFPL. ´´´ import lxml.etree as et import sys import StringIO import codecs...

2 min Â· map[image:http://img2.blogblog.com/img/b16-rounded.gif name:Oct url:http://www.blogger.com/profile/10969884152933508554?rel=author]

Sortie de ruby io tail

Ruby-io-tail est une bibliothèque qui vous permet de lire automatiquement la fin d’un fichier de journal ou la sortie d’un processus, depuis Ruby en utilisant des blocks comme Ruby peut en proposer. Le code est libéré sous license GPL et la documentation en anglais est également disponible. Parmi les fonctionnalités disponibles, vous pouvez créer un groupe d’IO à suivre et appeler un seul point d’entrée qui vous rappelle à chaque nouvelle ligne à lire dans un des ces IOs....

1 min Â· map[image:http://img2.blogblog.com/img/b16-rounded.gif name:Oct url:http://www.blogger.com/profile/10969884152933508554?rel=author]

The velocity engine

We’re about to use the velocity engine soon in one of our project. The velocity engine is a java library that performs template rendering for your applications. It uses a custom language to populate the template called the VTL. We will integrate the library with one of the latest Spring version and use it to render our view automatically.

1 min Â· map[image:http://img2.blogblog.com/img/b16-rounded.gif name:Oct url:http://www.blogger.com/profile/10969884152933508554?rel=author]

Tools I use

List of software I use daily at work : AutoHotkey: Autohotkey provides a scriptable way to automate most of the management of my Windows XP. I currently use one script that enable X-Windows style window dragging/resizing. Thunderbird Firefox Google Calendar Sync QuickMonth Calendar Putty SuperCopier Launchy

1 min Â· map[image:http://img2.blogblog.com/img/b16-rounded.gif name:Oct url:http://www.blogger.com/profile/10969884152933508554?rel=author]