Category Archives: Uncategorized

Parque Oromana

Ya que esta mañana acompañaba el tiempo nos hemos animado a coger las bicis (y de paso probar mi nuevo soporte para htc hero en la bici) y dar un paseo por el parque de oromana muy cerca de mi casa.
La ruta seguida: Mapa oromana
Ver Salida Oromana en un mapa más grande
Algunas fotos: Album Oromana

Compiling PHP 5.3.x on Ubuntu (probably Debian based will work)

By some reason libc-client package in modern versions of ubuntu and debian don’t work with php 5.3.x
One solution is compile a new version of libc-client lib.

#!/bin/sh -x
## for Ubuntu 9.10
## Author: Alejandro Leiva
cd $(dirname $0)
FILE_DIR=$(cd $(dirname $0) && pwd)
apt-get install -y libxml2-dev libbz2-dev libpng-dev libjpeg62-dev libc-client2007b-dev libmysqlclient15-dev libxslt1-dev apache2-mpm-prefork apache2-prefork-dev
cd /usr/src
wget ftp://ftp.cac.washington.edu/imap/imap-2007e.tar.Z
zcat imap-2007e.tar.Z | [...]

Installing OTRS 2.4.5 on Debian Lenny

wget http://ftp.otrs.org/pub/otrs/otrs-2.4.5.tar.bz2
tar xvjf otrs-2.4.5.tar.bz2
mv otrs-2.4.5 /services/otrs
/services/otrs/bin/otrs.checkModules
# Perl dependencies.
# to update CGI to v3.38
apt-get install libcgi-pm-perl
# LWP::UserAgent | Date::Format
apt-get install libwww-perl
# Net::DNS
apt-get install libnet-dns-perl
# IO::Socket::SSL | Net::IMAP::Simple::SSL
apt-get install libio-socket-ssl-perl
# Net::LDAP
apt-get install libnet-ldap-perl
# GD stuff
apt-get install libgd-gd2-perl libgd-text-perl libgd-graph-perl
# PDF::API2
apt-get install libpdf-api2-perl
# SOAP::Lite | XML::Parser
apt-get install libsoap-lite-perl
# Add OTRS user
useradd -d /services/otrs -c ‘OTRS user’ otrs
# Add [...]

New GSOC 2009 T-shirt just arrived

That’s, this year like a mentor I received a new t-shirt from google, thanks guys!

Google Gears don’t install on Snow Leopard

I try to install Google Gears on Safari 4.0.3 on 10.6 (Snow Leopard) you can’t because this #847. It seems like Google prefer to develop Google Chrome support on osx than Google Gears pluging ;)
There’s an unofficial package here (Mailplane dude, you rocks!)

Talk: Arquitectura de un game engine 3D

El sábado 7 de Febrero tuve la oportunidad de dar una charla sobre las bases de un un game engine 3D en la asociación DeSEA a la cual pertenezco.
Dejo colgado los slides de la charla aunque no tienen mucha chicha ya que los usé más como guión que como presentación formal. Prometo aumentarla con las [...]

Compiling gettext PHP extension on Mac Os 10.5.6

This works on new MacBooks with intel architecture.
Gettext compilation.
curl -O ftp://ftp.gnu.org/gnu/gettext/gettext-0.17.tar.gz   
tar xvzf gettext-0.17.tar.gz
cd gettext-0.17/gettext-runtime/
MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS=”-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os  -pipe -no-cpp-precomp” CCFLAGS=”-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os  -pipe” CXXFLAGS=”-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os  -pipe” LDFLAGS=”-arch ppc -arch ppc64 -arch i386 -arch [...]

Electric Fence && Leopard (Mac OS X 10.5.x) && CMake

You can get Electric Fence from http://perens.com/works/software/ElectricFence/
Comment out line #33 of file.c

$ make CFLAGS=”-g -DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS”
# make install

You will have a libefence compiled and installed in your Mac OS X system.
Now add the library to your main target in your CMakeLists.txt

# Add efence link
find_library(EFENCE_LIBRARY “libefence.a”)
target_link_libraries(YOUR_MAIN_TARGET ${EFENCE_LIBRARY})

cmake and make (or build or whatever you are generating)

$ gdb [...]

Today is a great day

Yesterday I reached a milestone in my GSOC project “Replace auto* with CMake“. To compile and linking an instance of php (cli sapi)! :)
I also generated the XCode project for PHP (I’m developing now in OSX) you can see a screenshot here
This is promising =)

Sevilla PHP TestFest

Ando intentando montar el PHP TestFest (http://qa.php.net/testfest.php) en Sevilla (http://wiki.php.net/qa/testfest) esta puede ser una buena oportunidad para conocer el lenguaje a nivel de implementación y como se crean sus propios tests.
Ya he contactado con el grupo de usuarios de Sevilla (en el que me incluyo :) ) con respuesta afirmativa de algunos.
Espero que sea a [...]