Archive for May, 2006

Getting to work the Sapphire Radeon X1600 on OSX x86

Monday, May 29th, 2006

Qemu-Puppy

Friday, May 26th, 2006

Unire la potenza di Qemu alla leggerezza di Puppy per avere sempre con sè una distribuzione Linux eseguibile sul pinguino o su Windows. Qemu-Puppy entra in una pendrive USB e all’occorrenza può essere avviata all’interno di un sistema ospite lasciandolo completamente intatto. Basta scaricare l’archivio tar.gz dal sito del progetto e scompattarlo in una penna di almeno 256MB. A questo punto basterà avviare “puppy.exe” se vogliamo eseguire la distro su un sistema Windows oppure “puppy.sh” se ci troviamo sotto Gnu/Linux. L’ultima versione rilasciata di qemu-puppy-1.0.9-1 è aggiornata alla nuova release Puppy Linux 1.0.9 CE.

[guida all’installazione]

Propel Howto – parte 1

Friday, May 26th, 2006

Propel è un tool php molto interessante che permette di fare quello che fa Hibernate in java : object persistence services; per farlo funzionare non è facile in quanto usando il pacchetto gentoo non è aggiornatissimo ed essendo molto giovane è un sistema che cambia continuamente e risolve molti bug ogni giorno. Procediamo per ordine:

1. Smaskeramento pacchetti

dev-php5/creole
dev-php5/jargon
dev-php5/propel
dev-php5/propel-generator
dev-php5/propel-runtime
dev-php5/phing

2. Installazione

emerge propel

3. Aggiornamento file (un backup dei file non è una cattiva idea)

cd /tmp
svn co http://svn.phpdb.org/propel/trunk
cp /tmp/trunk/generator/templates/om/php5/Peer.tpl /usr/share/php5/data/propel_generator/templates/om/php5
cp /tmp/trunk/generator/templates/conf/Control.tpl  /usr/share/php5/data/propel_generator/templates/conf/Control.tpl

4. Creazione del file di configurazione

mkdir /usr/share/php5/data/propel_generator/project/[project_name]
cd /usr/share/php5/data/propel_generator/project/[project_name]
cp /usr/share/php5/data/propel_generator/build-propel.xml .
cp /usr/share/php5/data/propel_generator/default.properties .

Ora creare i seguenti file :
[build.properties]

# The name of the project
propel.project = [project_name]
# The database driver
propel.database = mysql
propel.database.url = mysql://username:password@localhost/database_name
# serve senno cerca di scriver in ./project e non va bene!!
propel.home = /usr/share/php5/data/propel_generator/

[runtime-conf.xml]
… vedi http://propel.phpdb.org/trac/wiki/Users/Documentation/QuickStart#4 ….

5. eseguire propel nel modo corretto

5a. se non si ha uno schema.xml lo si puo creare con phing

phing -Dproject=bookstore -f build-propel.xml creole

5b. generare le classi php

propel-gen /usr/share/php5/data/propel_generator/projects/bookstore/

“People and interactions over processes and tools”…

Friday, May 19th, 2006

Chinese pearls of wisdom

Tuesday, May 16th, 2006

OSGi moves to the server side

Wednesday, May 10th, 2006

The eclipse implementation of OSGi (recently promoted to JSR 291) seems to be preparing to attack some issues that plague the JEE space. OSGi is widely used to increase modularity of your code but so far it has been relatively focused to the client side. Putting an OSGi container on the server side could tackle issues like code reuse between modules, flexible project structure and integration between modules, increasing productivity, open clear paths to structure integration etc.