Migration Code Validator

Ecco un buon modo per validare il codice php durante la migrazione da php4 a php5 find /source/directory -name \*.php -o -name \*.inc | xargs -n1 php -ddisplay_errors=1 -derror_reporting=8191 -l

March 18, 2007 · 1 min · 30 words ·  Yoghi

Prolog joke

Couple of years ago I tried to write something in prolog. I thought about doing the classical syllogism about Socrates (the one about mortality) but in a sudden illumination I wanted to recreate a classical sketch from the movie Monty Python and the Holy Grail (1975). So the requirements to “get” the jokes are that you are a geek, and that you love the Pythons (which is a syllogism by itself). Knowing some Prolog doesn’t hurt. ...

Web Services poster

A nice PDF poster with all gazillion WS standards. They can even send it to you for the price of shipping. More info here, courtesy of innoQ.

FON, of course

Yes, now I’am a fonero.

March 12, 2007 · 1 min · 5 words ·  Yoghi

IMified, aggregate your web services via your instant messenger

Imified is an instant messenger bot that works on the AIM, MSN, GoogleTalk/Jabber (Yahoo IM currently offline) networks and offers access to a growing number of web applications (Wordpress, Blogger, GoogleCalendar, MovableType and others), as well as productivity tools like notes, reminders, and todo’s. Pretty slick.

Creative use of Flash and 3D

Every time I see something innovative and creative as this I get the urge to take my degrees and throw them in the trash. Only thinking outside the box can take us to another level of human to computer interaction. The good news is that it seems that we’ll see some frameworks on the desktop that will allow us to do similar stuff as well (WPF, Core Animation, Flash).

Wow

I own a Radeon X1600, it’s a medium priced/performance card from ATI that belongs to the X1000 family and whose driver support is coming up gradually since last year. I’ve been waiting for the new drivers that should be out this year with the support for AIGLX for quite some time now and I said to myself enough is enough. I already knew that XGL was a quick and dirty fix and the latest drivers don’t hide that they contain some support for it so I said to myself “what the heck, let’s try this sucker”. I’ve tried it several times before but it always failed. This time however, bingo, following the XGL Gentoo HOWTO things went smoothly, even Beryl installed quite well. I suppose because finally things were getting more stable and official. All I can say is… Wow. ...

GoF crossword puzzle

Check your knowledge of the GoF design patters by doing this crossword puzzle.

Delay Tolerant Network [ebuild]

Il mio primo ebuild (link) ha richiesto solo un paio d’ore; provo a descrivere quello che ho fatto. Ho sistemato l'header dell'ebuild # ========================================================================== # ***************** Sigmalab Portage Overlay (02/26/07) ***************** # ***************** For more info go to ***************** # ========================================================================== # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $inherit eutilsDESCRIPTION="Disruption Tolerant Networking (DTN)" HOMEPAGE="http://www.dtnrg.org" SRC_URI="http://www.dtnrg.org/docs/code/${PN}_${PV}.tgz"LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~x86" Le varie Keyword sono ben descritte sulla documentazione di gentoo. Ricordare di mettere ~x86 se lo si vuole ridistribuire in quanto indica l'instabilità dell'ebuild La seconda parte è data dalle dipendenze e dalle possibili use flag: IUSE="oasys" DEPEND=">=dev-lang/tcl-8.0.0 >=sys-libs/db-4.2.52_p4-r2" Anche qui nulla di nuovo, in depend la sintassi è la stessa dei package del portage; nel mio caso ho anche specificato la versione esatta, ma potrebbe non essere necessario. Da notare invece che alcune dipendenze possono essere necessarie solo se una specifica flag è attiva in quel caso guardate questo esempio: mysql? ( >=dev-db/mysql-3.23.49 ) Passiamo ora alle variabili globali INSTALLDIR="/usr/local/bin/" S=${WORKDIR}/${PN}_${PV} Attenzione solo alcune variabili sono modificabili, altre sono readonly! (vedi qui) come compilare il pacchetto src_compile() { cd ${S} ./configure -C --verbose || die "configure problem" emake || die "compile problem" } Questo codice è utile se usate gli autotools; e ora la parte difficile installare tutto secondo logica src_install() { emake DESTDIR={D} install || die "install problem"# il demone dobin daemon/dtnd keepdir /etc/dtn insinto /etc/dtn doins daemon/dtn.conf dtn/dtn.conf# per salvare i bundles e i db keepdir /var/tmp/dtn keepdir /var/tmp/dtn/bundles keepdir /var/tmp/dtn/db# installo le librerie base keepdir /usr/include/dtn insinto /usr/include/dtn doins applib/*.h if use oasys ; then keepdir /usr/include/dtn/oasys insinto /usr/include/dtn/oasys doins oasys/*.h fi ...

February 27, 2007 · 3 min · 513 words ·  Yoghi

Steampunk Keyboard Modification

Here's another nice keyboard modification, Jules Verne style.