mercoledì 30 dicembre 2009

martedì 1 dicembre 2009

BRING THE BOYS BACK HOME!!!






..ma sI continua ad inviare nuove truppe in una guerra scatenata da prove riconosciute INFONDATE !!!!!!!!!!!!


sabato 31 ottobre 2009

Learning Erlang

Apache CouchDB ~ Ubuntu

"Ubuntu 9.10 Karmic Koala has just been released. This is big news as this version includes Apache CouchDB, used as a replicable database by desktop apps. This means CouchDB will be on over 10 million desktops" [from Damien Katz]

Erlang tutorial

mercoledì 7 ottobre 2009

oRestE: a REST interface to your databases with Erlang



oRestE gives you a fast way to expose your database with a restful interface

oRestE is built on top of ERLANG (Introduction), MOCHIWEB and WEBMACHINE (webmachine.pdf)

oRestE it is light, stable and fast! thanks to ERLANG/OTP and MOCHIWEB

venerdì 25 settembre 2009

Some Reasons for Loving Google Apps



A quick presentation about why people & employees & IT managers & companies should love and adopt Google Apps instead of other old style Intranets (MS Sharepoint, Sap Portal, .. that require the (not user friendly) programmers's actions checkin/checkout) and Email Suites (MS Exchange)

sabato 5 settembre 2009

La triste storia dei sacchetti di plastica

La triste storia degli inoffensivi sacchetti di plastica che addirittura ci „regalano“ i commessi dei supermercati...

Guardate questa presentazione

martedì 4 agosto 2009

Ewg: Erlang Wordlist Generator

logo

Ewg is a Wordlist generator written in Erlang.

Thanks to this simple project I have been improving my knowledge in Erlang/OTP and Git.

I love functional programming and learning more and more... ;-)

domenica 7 giugno 2009

Connecting to a database with a webService (cxf) deployed (osgi) in Servicemix

1) Install and start ServiceMix 4.0

2) Add necessary bundles

features/install cxf-osgi


osgi/install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-dbcp/1.2.2_3/


osgi/install -s wrap:mvn:org.springframework/spring-jdbc/2.5.6/


osgi/install -s wrap:mvn:mysql/mysql-connector-java/5.1.6



...

See details in this gooole document or download test-wsdl-first-osgi.zip

Howto sharing (osgi style) a database connection in Servicemix4 / FuseEsb4

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:camel-osgi="http://activemq.apache.org/camel/schema/osgi"
xmlns:osgi="http://www.springframework.org/schema/osgi"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://activemq.apache.org/camel/schema/spring
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
http://activemq.apache.org/camel/schema/osgi
http://activemq.apache.org/camel/schema/osgi/camel-osgi.xsd">

<bean id="moodleDS">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url"
value="jdbc:mysql://localhost:3306/moodle" />
<property name="username" value="root" />
<property name="password" value="" />
</bean>

<osgi:service id="moodleDSOsgiService" ref="moodleDS" interface="javax.sql.DataSource" />

</beans>

See my Google Document for details!

venerdì 5 giugno 2009

ISTAT is moving from SAS to R

"Istat [..] helps to develop 'R Project', a statistical open source application. "We have donated software libraries to R, and are moving away from using SAS, the proprietary alternative to R. We contributed to the statistical application Adamsoft, which is being developed at the Caspur computing-lab, just two kilometres away from our institute."

Vaccari says adopting open source requires institutes to make adjustments in their organisational culture. "It changes how people work, from 'I'm important because I'm a bottleneck, to I'm important because I share things'."

Read it!

sabato 30 maggio 2009

Connecting to a database with a webService (cxf) deployed (jbi) in Servicemix


Introduction


Apache ServiceMix at the moment doesn't have a JBI component for connecting to a database (servicemiix-jdbc is in the roadmap): in the meanwhile you have to use servicemix-cxf or servicemix-bean.

This example (cxf-wsdl-first-jdbc.zip, cxf-wsdl-first.pdf)  is built on top of the example cxf-wsdl-first and can be deployed in apache servicemix 4.0 as JBI sa package.

lunedì 13 aprile 2009

Ruby Wordlist Generator (ruby-wg)



After many years I've updated my Wordlist Generator project! I've seen in several forums that some people still use my old perl script wg.pl

The new ruby project is hosted at http://code.google.com/p/ruby-words-generators/

ruby-wg can be used to generate wordlist for the famous password cracker John the Ripper

venerdì 27 febbraio 2009

Berlusconi si autotasserà?

Obama per cercare di far uscire gli Stati Uniti dalla crisi tasserà i piu' ricchi. In Italia farà altrettanto Berlusconi? Autotassandosi? Oppure farà aumentare il divario tra ricchi e poveri come sta accadendo ormai da un po' di anni?

Google si unisce alla battaglia della UE contro Internet Explorer

L'Antitrust della Comunita' Europea continua la sua battaglia contro Microsoft e Google dara' il suo contributo. Leggete qui'

giovedì 8 gennaio 2009

Microsoft Tax and Apple tax

Microsoft dice che ogni volta che si compra un Mac si paga una tassa ad Apple. Ma si puo' dire analogamente che ogni volta che si compra un pc con installato windows, si paga una tassa a Microsoft. Con Linux e OpenOffice la stragrande maggioranza degli utenti di computer potrebbero risparmiare la Microsoft tax e per di piu' non avere piu' problemi di virus!!!!

mercoledì 7 gennaio 2009

L'inverno miete vittime tra i senza tetto mentre la chiesa sta a guardare?

Ogni anno il freddo dell'inverno miete vittime tra i senzatetto.

Possibile che la chiesa, con tutti i beni immobili che ha distribuiti sul terrirorio, non riesca a dare rifugio a quei disperati senza abitazione? Almeno nei mesi piu' freddi?

A Roma repubblica.it dice "Il freddo fa tre vittime in pochi giorni a Roma due barboni morti nella notte". Sapete se il fastoso Vaticano organizza qualcosa per i senza tetto?!?!?!

Lentamente muore

Lentamente muore

Lentamente muore chi diventa schiavo dell'abitudine, ripetendo ogni
giorno gli stessi percorsi, chi non cambia la marca, chi non
rischia e cambia colore dei vestiti, chi non parla a chi non conosce.

Muore lentamente chi evita una passione, chi preferisce il nero su
bianco e i puntini sulle "i" piuttosto che un insieme di emozioni,
proprio quelle che fanno brillare gli occhi, quelle che fanno di uno
sbadiglio un sorriso, quelle che fanno battere il cuore davanti
all'errore e ai sentimenti.

Lentamente muore chi non capovolge il tavolo, chi è infelice sul
lavoro, chi non rischia la certezza per l'incertezza, per inseguire un
sogno, chi non si permette almeno una volta nella vita di fuggire ai
consigli sensati. Lentamente muore chi non viaggia, chi non legge, chi
non ascolta musica, chi non trova grazia in se stesso. Muore lentamente
chi distrugge l'amor proprio, chi non si lascia aiutare; chi passa i
giorni a lamentarsi della propria sfortuna o della pioggia incessante.

Lentamente muore chi abbandona un progetto prima di iniziarlo, chi non
fa domande sugli argomenti che non conosce, chi non risponde quando gli
chiedono qualcosa che conosce.

Evitiamo la morte a piccole dosi, ricordando sempre che essere vivo
richiede uno sforzo di gran lunga maggiore del semplice fatto di
respirare.
Soltanto l'ardente pazienza porterà al raggiungimento di una splendida
felicità.

(P. Neruda)

lunedì 5 gennaio 2009

N queens solution with erlang

8queens

"The eight queens puzzle is the problem of putting eight chess queens on an 8×8 chessboard such that none of them is able to capture any other using the standard chess queen's moves. The queens must be placed in such a way that no two queens would be able to attack each other. Thus, a solution requires that no two queens share the same row, column, or diagonal. The eight queens puzzle is an example of the more general n queens puzzle of placing n queens on an n×n chessboard, where solutions exist only for n = 1 or n ≥ 4... " [Wikipedia]

Below my solution using ERLANG (very strong for concurrent programming, used by Ericsson, Facebook, Amazon,Google,..) with List comprehensions and suggestions from other sites.

Lawyer

* Lawyer: "Doctor, before you performed the autopsy, did you check for a pulse?"
* Witness: "No."
* Lawyer: "Did you check for blood pressure?"
* Witness: "No."
* Lawyer: "Did you check for breathing?"
* Witness: "No."
* Lawyer: "So, then it is possible that the patient was alive when you began the autopsy?"
* Witness: "No."
* Lawyer: "How can you be so sure, Doctor?"
* Witness: "Because his brain was sitting on my desk in a jar."
* Lawyer: "But could the patient have still been alive nevertheless?"
* Witness: "Yes, it is possible that he could have been alive and practicing law somewhere."