Feed on
Posts
Comments

Category Archive for 'hacking'

If you need to copy an XML document to another filtering it from a specific element node, a good solution could be the use of XSL. The starting point is the so called "identity" template as introduced with an example in the XSLT Recommendation itself:
PLAIN TEXT
XML:

<xsl:template match="@*|node()">

    <xsl:copy>

        <xsl:apply-templates select="@*|node()"/>

    [...]

Read Full Post »

Speed up web session access

I recently solved a problem common to many heavy used web application following an idea of a friend of mine.
The problem is how to efficently manage the sessions of a web application when the number of them is high (500,000 for example) and the use of them his quite frequent (˜50,000 pages/day in my case).
A [...]

Read Full Post »

If you want to delete, for example, only .bak files throughout a directory tree you can try with the following command:

$ find . -name *.bak -exec rm {} \;

Using the same approach you can solve more complex problems. For example you can delete recursively all directories older than one week:

$ find . -mtime +7 -type [...]

Read Full Post »

Nako for kids

In vacanza in montagna con una bimba di 3 anni e mezzo e con un bimbo di due e mezzo, nelle giornate di mal tempo (per fortuna poche quest'anno) bisogna inventarsi cose divertenti che possano, almeno in parte sostituire la possibilità di correre nei prati.
Così mi sono messo a cercare se c'era un giochino da [...]

Read Full Post »

Maven & Java 1.4 under Mac OS 10.5

The version 10.5 (Leopard) of Mac OS hides under the skin some very useful tools for developers. In particular for Java developers, you can find:

Java 5 SDK (as default)
Java 1.4 SDK
Maven 2.0.6
Ant 1.7.0

These tools are sufficient to develop and build complex Java applications but in some cases, the choices made by Apple to install them [...]

Read Full Post »

PRBM-0.6.10 released

Dando per scontato che tutti sappiano che cos'è il PRBM, finalmente mi sono deciso a correggere i bachi segnalati sulla versione 0.6.9, alcuni dei quali probabilmente prensenti da molto tempo. Ecco quindi che rilascio la versione 0.6.10 (codename ''cinquina'') che va a fissare i seguenti problemi:

Le schede dei fiori importate dal raccoglitore inseriscono un errore [...]

Read Full Post »

Trac has a great module to support notification about ticket changes via email. Starting from the 0.10 version of Trac the TracNotification module has some new configuration options that give to the administrator or project manager a good control on who should be notified and when.
By the way Trac lacks, in my opinion, of [...]

Read Full Post »

Uno dei limiti che avevo su piattaforma Mac OS X nel mio lavoro quotidiano era di non poter montare directory remote via ssh integrandole nel file system del mio MacBook. Spesso mi serve questa possibilità per fare il deploy di applicazioni web su server remoti che per ragioni di sicurezza permettono l'accesso solo via ssh. [...]

Read Full Post »

phpGoogleSearch 0.2.0

Con molta soddisfazione annuncio il rilascio della versione 0.2.0 della libreria phpGoogleSearch.
Sebbene il grosso del lavoro era stato già fatto, con questa versione è stata completata la copertura delle API messe a disposizione di Google via SOAP. In particolare sono stati implementati sulla classe GoogleSearch i metodi:

doGetCachedPage
doSpellingSuggestion

Nella cartella examples ho aggiunto anche due semplici script [...]

Read Full Post »

phpGoogleSearch 0.1.0

Recentemente ho interagito spesso per lavoro con alcuni personaggi di Google su alcuni aspetti principalmente legati al servizio Google Scholar. Incuriosito però dalla possibilità di sfruttare via SOAP gli indici di Google per fonire su un proprio sito un sistema di ricerca, ho dedicato un po' tempo allo studio di quelle che vengono chiamate Google [...]

Read Full Post »

Creative Commons Attribution 3.0 Unported
Creative Commons Attribution 3.0 Unported