Monday, June 13, 2011

Why you don't want to target the latest version of Android OS for your next Project

Wednesday, July 28, 2010

Solution: webrat's save_and_open_page and open_error_files are not opening the browser automatically

If you are using webrat's features like save_and_open_page or config.open_error_files and is not automatically opening your browser then you might need to install launchy, It fails silently, I know, it should be more informative:
sudo gem install launchy
More info about launchy:

Tuesday, July 20, 2010

Passing parameters to before_filter methods in Rails

If you have methods in your controller class that requires parameters you can still user them as filters.
def require_role(role)
#do some stuff with 'role' parameter
We can use it like this:
before_filter do |controller_instance|
controller_instance.require_role :admin
In fact, you can still use :only and :except if you need it, example:
before_filter :only => :index do |controller_instance|
controller_instance.require_role :admin
Have a nice day.

Monday, May 24, 2010

Installing Mono 2.6 (or the latests version) on Ubuntu 10.4(or the latest version)

This is a quick guide to install the latest mono runtime in your existing Ubuntu:
First of all:
  • I'm not an expert installing Mono from Sources, so this is all at your own risk.
  • Don't remove your existing Mono Runtine, you still need it.
  • I recommend you to keep your existing Mono Runtime(the one you installed via APT) side by side with the version that you are going to configure.
Here we go:
1.a using synaptic or aptitude, install the following packages:
  • autotools-dev
  • autoconf
  • libtool
  • bison
  • gettext
2. Download the Stable version right here: (is the first one from the first group, currently the name is mono-2.6.4.tar.bz2)
3. Read the instructions right from the Mono wiki(but don't execute them yet):
Note: You may want to install into a different location and not '/usr/local' in order to avoid conflict with your existing Ubuntu Mono installation, so I would recommend you to use '$HOME/mono/local' or something, just like this:
./configure --prefix=$HOME/mono/local;
4. Now you can follow the instructions.
Feel free leave a comment if you find any errors.

Wednesday, December 9, 2009

Usando un Viewbox para hacer un efecto “Fisheye” en TabControl/WPF

He creado un estilo para mis TabControl de manera que el icono de cada uno de sus TabItem aumente con el mouseover al estilo fisheye, esto es sencillo lograrlo combinando un ViewBox, el ContentPresenter del TabItem y un par de Storyboards. También uso DropShadowEffect para hacer el efecto de iluminación alrededor del iconos seleccionado.




  • No funciona en Silverlight.
  • La version minima de WPF es .NET 3.5 SP1 y la version usada para crear el ejemplo es Visual Studio 2008 y Blend3.
  • Esta optimizado para TabStripPlacement: Left
  • Libre de uso Personal y Comercial.


Disfruten :)