Vedana.it Tecnologia & Informazione
Howto : Install Cyanogen 7.1 RC1 (Android 2.3.4) on HTC Desire GSM (Bravo) with Android 2.2 PDF Print E-mail
Written by Martino Vedana   
Saturday, 01 October 2011 16:29

cgm7Howto : Install Cyanogen 7.1 RC1 (android 2.3.4) on HTC Desire GSM (Bravo) with Android 2.2

This is an updated version of http://wiki.cyanogenmod.com/wiki/HTC_Desire_%28GSM%29:_Full_Update_Guide based on a real upgrade on a HTC Desire GSM (Bravo).

This guide will walk you through the process of taking the HTC Desire (GSM) from stock to having the ability to flash the latest version of CyanogenMod.

 
Creare immagini dei vecchi floppy c64 con il lettore 15xx PDF Print E-mail
1541Guida CBM4WIN per dump con il cavo XM1541 ovvero:  come salvare i vostri floppy da 5 1/4 dell'amato Commodore 64/128 dall'oblio del tempo usando il vostro lettore floppy 1541 / 1571 originale Commodore ed un pc dotato di porta parallela.

Enjoy!
 
L'evoluzione di Android nel mondo PDF Print E-mail
L'evoluzione di Android nel mondo tramite un'animazione molto interessante del numero di attivazioni da ottobre 2008 a gennaio 2011
E' interessante vedere in relazione alla zona ed all'evento (ad esempio lancio di nuove versioni) come Android si stia diffondendo nel pianeta. Certamente Europa, America del nord ed estremo oriente sono il traino ma qualche timido segnale arriva anche da America del Sud ed Africa.
Germania e Regno unito guidano la classifica europea con il maggior numero di dispositivi attivati.

 
How to create a custom search plugin for Firefox PDF Print E-mail
Written by Martino Vedana   
1Do you use the search engines in Mozilla Firefox or IE7 in upper-right corner of the browser? In my opinion this facility is very useful to quickly select one and search what I'm looking for without open the main page of every serach engine!

And what if you want to give to your users the ability to search directly in your website? You can add your custom search engine plugin by develping a simple XML based configuratione File and let the user search on your website.

Let's see how to do it!

 

 
Python MP3 library organizer (ID3 tags based) PDF Print E-mail
This script is so useful to orginize a lot of mp3 files based on ID3 tags. I was thinking how to order my huge music library in a nice and quick way discarding doubled files.
Searching on the net I found this blog http://kursdnkissd.blogspot.com/2007/10/mp3-library-organizer-in-python-using.html with a nice ready to use python script.
I modified it to add some minor  fixes and a "unknown" directory param. This directory will be used when a file already exist in the target directory but with a different size; the source file will be moved to "unknown" directory with a uuid sytle filename (eg: 0e55416e-55b7-11e1-b3fe-b58549436903.mp3) for later manual renaming.
 
OrientDB e lo sviluppo di WebApp (Luca Garulli) - NoSQLday 2011 PDF Print E-mail
OrientDB e lo sviluppo di WebApp (Luca Garulli)
Talk tenuto il  25/03/2010 al NoSQLDay 2011

 
Testing MongoDB vs. MySQL with python scripting under Linux PDF Print E-mail
Written by Martino Vedana   
mongodb-mysql-postToday I'm pygoing to test two DBMS to understand which is the faster and how much in some specific cases. The focus is on simple read, write and delete of a different amount of data.
This is useful to evaluate if in a project which DBMS to use or if is better to use different DBMS's to cover different areas.
I'm going to test Oracle's MySQL and mongoDB. Why these Databases? Because the first one is the most used in small/medium web environments (and also is used in large installations like Facebook) and today can be defined the “base comparsion” to evaluate other DBMS. The second one is the most attractive DBMS in terms of popularity (the community is growing), performances (seems to be much more faster than other Relational DBMS) and features (like GridFS).
 
Creare velocemente repositories svn (shell) PDF Print E-mail
Written by Martino Vedana   
subversion_logo Se avete l'esigenza di creare frequentemente nuovi repositories svn con impostazioni uguali (ad esempio uno per ogni sito web che sviluppate) è sufficiente scrivere un semplice script bash che automatizzi i semplici comandi che vengono lanciati a mano centinaia di volte.
 
VmWare workstation 7 on ubuntu 10.10 Compiling error: gcc and kernel headers must be installed PDF Print E-mail
Written by Martino Vedana   
vmware_view_pilotToday I experienced a vmware workstation 7 modules compiling problem under Ubuntu 10.10 "maverick" beta.
The kernel structure changes frequently and the filenames might not remains the same. In my case after upgrading to Ubuntu 10.10 vmware was asking me to specify kernel headers even if they was in the same place as always.
The console error was "gcc and kernel headers must be installed" while on ui a message boxwas appearing asking for kernel header path.
Here the workaround: 
 
Android su un telefono Windows Mobile. Finalmente! Ecco la guida PDF Print E-mail
Written by Andrea Serrajotto   

Cyanogen-Logo1Ecco una guida passo-passo su come eseguire Android su un telefono Windows Mobile, un HTC HD2 brandizzato T-Mobile USA, direttamente dalla SD Card installata nel telefono.

Che Linux fosse un sistema operativo versatile lo sapevano tutti gli “addetti ai lavori” . E’ stato praticamente compilato per ogni cpu esistente.

Ora il risultato è sotto gli occhi di tutti: i telefoni di nuova generazione, che montano cpu come snapdragon, arm, etc., possono facilmente essere dotati di un sistema operativo basato su Linux: Android.

 
Installare (compilando) php 5.3 su centos 5.5 PDF Print E-mail
Written by Martino Vedana   
phpCentos5.5 ha come release stabile di php la versione 5.1 ma che fare se abbiamo bisogno di una versione più aggiornata? L'unica soluzione è compilare i sorgenti e l'operazione è molto semplice. Ecco come!
 
Rewriting di dominio ed utenti in sendmail PDF Print E-mail
Written by Martino Vedana   
logoQuando un sistema linux invia delle mail di sistema di solito invia mail del tipo root@localhost.localdomain se non è stato indicato un nome host/dominio realmente esistente. Non ci sono problemi di consegna del messaggio finchè le email vengono consegnate localmente ma se tentiamo di inviare le mail ad un indirizzo reale il server smtp (relay host) nel 99% dei casi rifiuterà di consegnare la mail (di fare il relay) anche se è attivata l'autenticazione smtp poichè il dominio indicato (localhost.localdomain) non ha un record mx valido.

Come fare allora per inviare le mail dirette a root al nostro indirizzo di posta elettronica mediante sendmail?

 
Configure sendmail to work with Gmail smtp relay PDF Print E-mail
Written by Martino Vedana   

How to use Gmail as senmail smarthost using TLS and authentication.

 
Obtain MySQL version with Python PDF Print E-mail
Written by Martino Vedana   

Here a simple example on how to obtain the MySQL version using python:

# server_version.py - retrieve and display database server version
import MySQLdb
import sys
conn = MySQLdb.connect (host = "localhost", user = "root", passwd = "", db = "mysql")
cursor = conn.cursor ()
cursor.execute ("SELECT VERSION()")
row = cursor.fetchone ()
print "server version:", row[0]
cursor.close ()
conn.close ()

To execute a different query simply change the query "SELECT VERSION()" with the new one

 
Un generatore di password Python PDF Print E-mail

Oggi vediamo un semplice script per generare delle password senza caratteri che possono generare conuzione (l,1,0,O)

Il codice è molto semplice:

 

#!/usr/bin/env python

#Import Modules
import sys
from random import Random

rng = Random()

righthand = '23456qwertasdfgzxcvbQWERTASDFGZXCVB'
lefthand = '789yuiophjknmYUIPHJKLNM'
allchars = righthand + lefthand

try:
passwordLength = int(sys.argv[1])
except:
#user didn't specify a length. that's ok, just use 8
passwordLength = 8
try:
alternate_hands = sys.argv[2] == 'alt'
if not alternate_hands:
print "USAGE:"
print sys.argv[0], "[length of password]",
print "[alt (if you want the password to alternate hands]"
except:
alternate_hands = False

for i in range(passwordLength):
if not alternate_hands:
sys.stdout.write( rng.choice(allchars) )
else:
if i%2:
sys.stdout.write( rng.choice(lefthand) )
else:
sys.stdout.write( rng.choice(righthand) )
print ""



E' sufficiente salvare lo script come passwordgen.py e da riga di comando digitare:
python password.grn.py [numerodicaratteri]
dove [numerodicaratteri] è il numero di caratteri della password da generare; se non viene specificato il parametro verrà generata una password di 8 caratteri.