Ubuntu 9.04 tips&tricks - SQLite performance
Di qualche giorno fa un interessante articolo uscito su Phoronix.com che compara, usando la suite Phoronix (scarica qui), le performance della ultima nata in casa Ubuntu (Jaunty) e quelle di Mac OS X 10.5.6
Ubuntu 9.04 vs. Mac OS X 10.5.6 Benchmarks
Ad essere onesti MAC OS X sembra molto performante; tra le aree in cui Ubuntu in effetti è più indietro c’è il 2D e il 3D (problemi noti con chip Intel), encoding audio ed anche un problema di performance con SQLite
SQLite è alla base di mooltissime applicazioni OpenSource, vedi Firefox, Exaile, f-spot etc. etc.
there is a serious performance regression that adversely affects SQLite’s performance in the Linux 2.6.26 through 2.6.29 kernels. Ubuntu 9.04 is using the Linux 2.6.28 kernel and is impacted by this serious bug. Fortunately, it is corrected in the Linux 2.6.29 kernel and later, but unless manually switching to a newer kernel, users will need to wait for Ubuntu 9.10.
Come puntualizzato questo problema è una regression nel kernel 2.6.28 che “monta” Jaunty ed è stato corretto nel treno 2.6.29; il problema è che il 2.6.29 sarà disponibile con Karmic 9.10

SQLite performances
Per chi volesse aggiornare il kernel Ubuntu è possibile scaricare il .deb QUI; ho installato personalmente il 2.6.29.3 (linux-image-2.6.29-02062903-generic_2.6.29-02062903_i386.deb) e confrontato i risultati di Phoronix test suite con il vecchio e il nuovo kernel (solo per le performance di sqlite)
NB: ho usato la versione 1.8.1 per i test, l’articolo di Phoronix usa la 2.0 che è in beta
Kernel 2.6.28-12-generic
giovanni@alligatore:~$ phoronix-test-suite list-tests | grep sqlite
sqlite - SQLite [VERIFIED, FREE]
giovanni@alligatore:~$giovanni@alligatore:~$ phoronix-test-suite system-info
====================================
Phoronix Test Suite v1.8.1 (SELBU)
System Information
====================================Hardware:
Processor: Intel Pentium M 1.86GHz @ 1.86GHz (Total Cores: 1), Motherboard: Dell Latitude D510, Chipset: Intel Mobile 915GM/PM/GMS/910GML + ICH6M, System Memory: 2005MB, Disk: 60GB FUJITSU MHV2060A + 120GB MK1234GAX, Graphics: Intel Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)Software:
OS: Ubuntu 9.04, Kernel: 2.6.28-12-generic (i686), Desktop: GNOME 2.26.1, Display Server: X.Org Server 1.6.0, Display Driver: intel 2.6.3, OpenGL: 1.4 Mesa 7.4, Compiler: GCC 4.3.3, File-System: ext3, Screen Resolution: 1024×768giovanni@alligatore:~$
giovanni@alligatore:~$ phoronix-test-suite benchmark sqlite
[...]
Current Description: This is a simple benchmark of SQLite. At present this test profile just measures the time to perform a pre-defined number of insertions on an indexed database.====================================
SQLite (Run 1 of 3)
====================================
Test-Time: 115.325220108 Seconds====================================
SQLite (Run 2 of 3)
====================================
Test-Time: 112.609052896 Seconds====================================
SQLite (Run 3 of 3)
====================================
Test-Time: 121.753247023 Seconds####################################
SQLite:
Test Target: Default Test Directory115.325220108 Seconds
112.609052896 Seconds
121.753247023 SecondsAverage: 116.56 Seconds
####################################
Kernel 2.6.29-02062903-generic
giovanni@alligatore:~$ uname -a
Linux alligatore 2.6.29-02062903-generic #02062903 SMP Mon May 11 14:20:34 UTC 2009 i686 GNU/Linux
giovanni@alligatore:~$giovanni@alligatore:~$ phoronix-test-suite benchmark sqlite
[...]
====================================
SQLite (Run 1 of 3)
====================================
Test-Time: 41.2630438805 Seconds====================================
SQLite (Run 2 of 3)
====================================
Test-Time: 40.514111042 Seconds====================================
SQLite (Run 3 of 3)
====================================
Test-Time: 41.2442479134 Seconds####################################
SQLite:
Test Target: Default Test Directory41.2630438805 Seconds
40.514111042 Seconds
41.2442479134 SecondsAverage: 41.00 Seconds
###################################
Le prestazioni con il nuovo Kernel sono triplicate; si passa dai 116.56s ai 41s di media ( il test è ripetuto tre volte)
Provare per crededre :)
Linux - Get your freedom
What Does It Mean To Be Free? - “We’re Linux” contest winner
What does it mean to be free?
Free is being able to choose,
To choose your own space to be in,
To form your surroundings in a way
that will make you take the best out of you.Free is to say no,
It is to be able to choose your limits
to stretch them to a place only you can create
and change them when you feel they no longer fit you.Free,
is to say whatever you want,
to whomever you want,
and however you want.Free,
is to know that you have a different option.Do you know you have a different option?
Linux - Get your freedom
Come Sbloccare il Samsung Omnia i900
Antefatto
In seguito ad una richiesta di cambio operatore ed una conseguente offerta di retention accettata, ci ritroviamo tra le mani un Samsung Omnia i900 brandizzato Fastweb e purtroppo lockato.
Le SIM di altri operatori sono inutilizzabili, non è possibile telefonare se non con la scheda “di appoggio” Fastweb
Soluzione
Dopo aver letto di improbabili aggiornamenti di firmware e aver ricevuto riposte negative dagli esperti di settore (”nun se po’ fa… nun ce sta er software”)

Samsung Omnia i900
googlando mi sono in battuto in un post sul forum di modaco.com
La soluzione è banale e soprattutto FUNZIONA!!
La riporto a beneficio di chiunque si è incastrato nel mio stesso problema.
Innanzitutto è necessario inserire nell’Omnia la scheda di “appoggio” dell’operatore che ha lockato il tel, nel mio caso Fastweb.
Recuperare poi in questa pagina l’ MNC (Mobile Network Code) e l’MCC (Mobile Contry Code) relativi all’operatore in questione (sezione Italy).
Nel caso di Fastweb i numeri richiesti sono quelli di H3G, Fastweb è un MVNO (Mobile Virtual Network Operator)
codice: 22299
A questo punto non resta che inserire la scheda Fastweb e seguire i seguenti passi
- digitare il codice *7465625*638*#
- vi sarà chiesto di inserire il codice MNC/MCC, ovvero 22299 ed il nuovo codice NCK (Network Code Key) necessario per lo sblocco ;)
Io ho inserito 12345678, ma credo possa essere inserito un qualsiasi numero - digitare ora il codice #7465625*638*# (Attenzione!! diverso da quello del punto 1)
- inserire l’NCK settato al punto 2 (12345678) per sbloccare la SIM
A questo punto mettete la vostra SIM e riuscirete a telefonare :)
Enjoy!
[UPDATE]
Ecco una lista esaustiva di codici per telefoni Samsung
http://mymindleaks.com/technology/hack-samsung-mobile-codes/
Wordpress Upgrade
Come da oggetto ho aggiornato Wordpress alla versione 2.7.1
Le istruzioni di upgrade (io avevo la 2.6.2) sono disponibili QUI
Come al solito l’upgrade è veramente facile, comunque è sempre consigliato un bel backup dei file e soprattutto del DB.
L’interfaccia di amministrazione ha subito un pesante restiling e le prime impressioni sono molto positive; il menù di amministrazione tutto sul lato sinistro consente di accedere facilmente e velocemente a tutte le funzionalità.
Tutte le estensioni che avevo (flickr photoalbum, all in one SEO pack, tag cloud) sono compatibili con la nuova versione.
Ottimo!
Songbird, l’iTunes made in Mozilla
UPDATE: rilasciata la versione 1.0.0, qui il deb di Erich Wilhelm
Già da un po’ di giorni al posto di Banshee sto usando Songbird
Songbird™ is a desktop Web player, a digital jukebox and Web browser mash-up. Like Winamp, it supports extensions and skins feathers. Like Firefox®, it is built from Mozilla®, cross-platform and open source.
In effetti l’impostazione è proprio quella di iTunes, ma oltre ad essere OpenSource il player è multi piattaforma (Linux, Mac, Winzozz) ed estendibile (Estensioni).
Una lista più esaustiva di tutte le funzionalità si può trovare sul sito
http://getsongbird.com/features/
Per chi volesse provare la versione 1.0.0 RC3 potete trovare il .deb (a cui ho contribuito anche io) per Ubuntu/Debian sul sito di Erich Wilhelm
http://unterhund.wordpress.com/2008/12/03/songbird-1-final-linux-installer/
http://unterhund.wordpress.com/2008/11/26/quick-songbird-1-rc3-linux-installer-update/
Nella configurazione della figura sono installate le seguenti estensioni
Questo il link alla pagina della community
Interessante anche questo post dal blog di Songbird, Performance Improvements for 1.0
Enjoy
Ntlmaps: usare un proxy Microsoft con Linux
Purtroppo le vicende lavorative mi costringono ad usare un proxy Micro$oft ISA Server per accedere ad Internet, il che implica l’autenticazione via NTLM (protocollo proprietario Microsoft) con DOMINIO\USER & PASSWORD
Ho trovato dei grossi problemi nella configurazione di questi parametri su Ubuntu (Impostazioni -> Proxy di rete) e più in generale su Gnome (versione 2.24); infatti sembra proprio che l’autenticazione NTLM non va a buon fine (o almeno funziona parzialmente solo con alcuni programmi, ad es. Firefox) e dunque il sistema è a tutti gli effetti non connesso (no aggiornamenti automatici etc etc)
La soluzione semplice e iperfunzionale si chima ntlmaps, un proxy NTLM che consente l’autenticazione su Proxy Microsoft (ISA) interamente scritto in Python. Riporto alcune delle caratteristiche principali direttamente dalla home page del progetto
* supports NTLM authentication via parent proxy server (Error 407 Proxy Authentication Required)
* supports NTLM authentication at web servers (Error 401 Access Denied/Unauthorized)
* supports translation of NTLM scheme to standard “Basic” authentication scheme
* supports the HTTPS ‘CONNECT’ method for transparent tunnelling through parent proxy server
* has ability to change arbitrary values in client’s request headers
* supports unlimited number of client connections
* supports connections from external hosts
* supports HTTP 1.1 persistent connections
* stores user’s credentials in config file or requests password from a console during the start time
* supports intelligent failure detection and failover between multiple upstream proxies
L’installazione su Ubuntu è immediata, infatti ntlmaps è presente nel repository Universe e può essere installato con Synaptic o da riga di comando con il seguente (con Universe abilitato)
sudo apt-get install ntlmaps
La configurazione è altrettanto semplice, infatti basta editare il file /etc/ntlmaps/server.cfg e settare i seguenti parametri per una configurazione base
PARENT_PROXY: <ip del proxy Microsoft>
PARENT_PROXY_PORT: <porta del Proxy Microsoft>
NT_DOMAIN: <Dominio utente>
USER: <Username di cominio>
PASSWORD: <Password di dominio>
Nella configurazione di default il Proxy locale ascolta sulla porta 5865, ma può essere modificata cambiando nel file il parametro LISTEN_PORT.
Dopo ogni modifica è necessario riavviare il server ntlmaps con il comando
sudo /etc/init.d/ntlmaps restart
A questo punto non resta che settare come Proxy Locale l’indirizzo 127.0.0.1 porta 5865 ed il gioco è fatto!
Tag Cloud
beppe grillo cisco Dynamips/Dynagen firefox foto freedom Immagini immersioni ipod just4fun Linux Manutenzione micro$oft ntlmaps Proxy Server open source samsung omnia Screwdriver snowboard songbird Subacquea Ubuntu viaggi wine youtubeCategorie
- Blog (4)
- Manutenzione (3)
- Linux (20)
- Dynamips/Dynagen (2)
- ntlmaps Proxy Server (1)
- Ubuntu (10)
- M$ (3)
- Networking (2)
- Screwdriver (2)
- Subacquea (9)
- Immagini (8)
- Web (19)
- YouTube / Video (6)










