sabato 11 dicembre 2010

Pubblico dormitorio gratuito

Stazione Ostiense: si dorme gratis! Scegli il muro, sistema la coperta, accendi la radiolina o la sigaretta e... sogni d'oro!

Ultra Spazzatura Napoli

Foto come queste riempiranno le enciclopedie del prossimo secolo, con la dicitura: vedevano le partite in diretta via satellite, si illudevano di vincere al poker e alle scommesse su internet, pensavano di essere i più furbi e abili quando si trattava di fare un sorpasso, erano convinti di sapere tutto sulle donne... Ma sui servizi essenziali (come la raccolta dell'immondizia), come si vede dalla foto, non li batteva nessuno.

Per la cronaca, da quando è iniziata questa ennesima periodica "crisi munnezza", i più lesti ne hanno approfittato per liberarsi di rifiuti speciali e ingombranti (per i quali normalmente si pagherebbe parecchio). I meno lesti ci hanno provato beccandosi qualche multa (al Comune non mancano mai le idee per trasformare ogni crisi in opportunità).

P.S.: a pochissimi chilometri, a Scafati, non si vedeva nemmeno una cartaccia per strada (strade piene di buche ma senza munnezza). Chissà perché.

venerdì 10 dicembre 2010

Disperato amore

L'Europa finanzia la Cina (coi nostri soldi)

Si chiama "Banca di Investimento Europea", ma... finanzia la Cina!

Eh sì, l'imprenditoria europea è ricca e straricca mentre la Cina, poverina, non riesce a vendere cineserie in Italia e in Europa...

Leggiamo sul sito ufficiale dell'EIB:

The European Investment Bank (EIB) has granted a EUR 500 million loan to the People’s Republic of China (PRC) for projects supporting climate change mitigation. The Climate Change Framework Loan II (CCFLII) was signed by Mrs. Magdalena Álvarez Arza, Vice-President of the EIB and by Vice-Minister of Finance Li Yong, in Beijing today.


La European Investment Bank (EIB) ha garantito un prestito di 500 milioni di euro alla Repubblica Popolare Cinese (PRC) per progetti di supporto alla mitigazione del riscaldamento globale. Questo secondo prestito (CCFL II) è stato firmato dalla vicepresidente dell'EIB e dal viceministro delle finanze cinese a Pechino il 3 dicembre 2010.

giovedì 9 dicembre 2010

E poi dicono che mi lamento sempre

Una certa Megaditta Punto Com vende una costosa soluzione hardware.
 
Per provarla, si può scaricare la versione emulata (con limitazioni incluse a bordo)... dunque già significa che la loro soluzione hardware è un PC con un software dentro.
 
La Famosa Versione Emulata è un enorme file ZIP di parecchie centinaia di megabytes che contiene un enorme file OVA (lungo un megabyte in meno: dunque era inutile comprimere con ZIP).
 
Il formato OVA (Open Virtualmachine Archive) è standard ma non è leggibile da Virtualbox 3 (occorre la versione 4, che però è ancora in beta e non ho ancora installato). Magicamente quel file risulta illeggibile anche da VMware Player, poiché nel tentare di aprirlo lamenta un parametro command-line "-t" imprevisto.
 
Grazie al Mio Migliore Amico (Google) vengo a sapere che le OVA non le fa la gallina ma è solo un file TAR rinominato e non compresso, per cui si può scompattare con tar xvf filename.ova da cui magicamente esce un file .VMDK (VMware DisK) ed un file OVF.
 
Il file OVF è in realtà un XML con le properties per avviare il VMware ma tentare di aprirlo con VMware Player tira fuori magicamente lo stesso errore del "-t" (e nel file in questione non c'è traccia di alcun "-t").
 
Creo allora una nuova macchina virtuale con Linux e 1Gb RAM, con un hard disk virtuale dal nome "prova.vmdk": prima di avviare la macchina virtuale elimino il PROVA.VMDK e rinomino il famoso VMDK in PROVA.VMDK. Risultato: funziona, alla faccia di quei provoloni. Sono proprio curioso di vedere questo minuscolo eseguibile che costituisce la "soluzione hardware" in questione... :D
 
 

mercoledì 8 dicembre 2010

martedì 7 dicembre 2010

Un nuovo spettro s'aggira per l'Europa...

Un nuovo spettro s'aggira per l'Europa: no, non è il proibizinismo ma peggio: è la sgrammaticatura incontenibile!!

domenica 5 dicembre 2010

Horresco referens!

1) il secondo rotolino (cfr. foto dei giorni scorsi) è stato ritrovato a terra! (Per rispetto al rotolino, non oso spostarlo). Per la cronaca, avevo sistemato io il rotolo nel dispenser. Quale onore: il rotolino avanzato è ancora lì!

2) sportine spazzatura: ora sono tre (la terza appesa al muro). Caso interessante: quando sta per riempirsi una, immediatamente viene inaugurata la successiva. A far compagnia alle altre. Il coperchio è lì a terra da almeno tre giorni (l'ultimo a coprire la pattumiera ero stato io).

3) gran finale: il caffè avanzato è prossimo all'orlo. Succede, quando hai una caffettiera da quattro tazzine e consumi l'equivalente di una sola tazzina, rifacendo per quattro caffè ogni volta. I produttori di caffè ringraziano.

Notare anche lo spaghetto cotto sotto la caffettiera. Sì, è normale che la caffettiera sia abbandonata lì nell'angolo. Altri residui di spaghetti cotti sono nel lavello (sempre da ieri).

No, non mangio spaghetti da varie settimane.

sabato 4 dicembre 2010

Quando gatto Jacopo non c'è, i topi ballano!

1) accumulo di rotolini!
2) scontrino McDonald gettato in salotto!
3) piatti da lavare con messaggino sgrammaticato!

venerdì 3 dicembre 2010

Ultimo grado di giudizio

La corte di cassazione

Beagleboard xM power in my hands!

I received my Beagleboard xM: yay!! Below, I will describe exactly what happened here in the last hours.
 
For the impatient: just look to bold text.


First, an RS232 port for debugging. I have a spare USB-to-rs232 adapter. After plugging it, I saw a new entry in /dev/serial/by-id pointing to ttyUSB0 so I started minicom in a Terminal and setup it to 115200/8/N/1 using port /dev/ttyUSB0 and connected the 9-pin "Cannon" connector to the Beagleboard xM (note: I did not yet power the Beagleboard!)

I also wanted to see some video output (if available): I plugged in the Beagleboard xM my great DLP Pico Projector.

Then I powered up the Beagleboard (using an USB cable). LEDs lit, but nothing appears on the DLP. A few random bytes on the serial port and then a "Cannot open /dev/ttyUSB0!!" message. It appears that my USB-to-RS232 adapter doesn't like my local USB hub. Unplug and replug it directly to my Linux tablet, verify that it is again /dev/ttyUSB0 and restart minicom being sure that is configured for 115200 on that port.

Woah! it boots! text appars in the minicom window:

Texas Instruments X-Loader 1.4.4ss (Aug 19 2010 - 02:49:27)                 
Beagle xM Rev A                                                             
Reading boot sector                                                         
Loading u-boot.bin from mmc

A few seconds after, it starts Linux kernel. I see that the X-Loader says it's a "xM Rev A" while the actual label on my Beagleboard xM says "B" instead. Maybe this is a "will-be-fixed-on-next-xloader-release" thing...

I also see that my version has 256Mb spare NAND-flash, like my three Beagleboard C2/C4; not all Beagleaboard xM have the extra NAND (I did not expect a "xM rev B" having 256Mb NAND). I welcome this feature, as it will leave me doing some extra experiments.

Alas, my Beagleboard continuously reboots after some 40-45 seconds Linux kernel started. This happens also after disconnecting the DLP Pico. I grabbed a "two-headed" USB-to-USBmini cable but then I got no messages after "Uncompressing Linux...done, booting the kernel".

Next, I used two 5V batteries and the "two-headed" cable, and I finally got the login prompt. The "continuous reboot problem" (here happened at about 40 seconds of the kernel logging output) is actually a low power condition.
Just switch to an external 5V stabilized power supply or juicy 5V batteries.

I tried some hardware (another USB-to-RS232 adapter, an Huawei UMTS modem, an Hercules webcam, etc) but did not get the corresponding entries under /dev even if the kernel sent the correct syslog messages. The "demo image" on the 4Gb microSD supplied with the Beagleboard xM is a actually a... "demo image!" (that 4Gb microSD has some 3735Mb free unformatted space). Time to try some other Linux distribution... and a good power supply! So I gave the "halt" command but... the heartbeat LED continued flashing even after the kernel says "system halted" :-)

Add to wish-list: the heartbeat LED should stop flashing after the "system halted" kernel message.


Then I downloaded the Ubuntu 10.10 for ARM (the preinstalled image). Download and guidelines are on wiki.ubuntu.com "Maverick 10.10 install". It worked flawless. Then, after reboot, I see:

Texas Instruments X-Loader 1.4.4ss (Sep 30 2010 - 14:44:32)                 
Beagle xM Rev A                                                             
...
U-Boot 2010.09-rc1 (Sep 23 2010 - 11:20:00)
                                       
OMAP3630/3730-GP ES2.0, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz
OMAP3 Beagle board + LPDDR/NAND
...
Beagle xM Rev A
Die ID #6b
...
...
## Booting kernel from Legacy Image at 80000000 ...

At the first boot it worked some minutes to resize the default 2Gb to a full 4Gb partition (automatically rebooting soon after). Then it started the graphical environment.

I found a few problems:
1) it didn't enable serial port for debugging (after "Loading kernel... OK" nothing more appeared)
2) it didn't support correctly the DLP Pico projector (see photo above: only "first quarter" of the screen)
3) it did not configure xM ethernet port
4) it did not have native development tools
5) it did not have neither setserial nor minicom
All of these were solved: read below.
 
Currently I tested an Huawei E156G (works, and it worked also on old Angstrom one year ago on a Beagleboard C2), an Hercules Classic Webcam (yay! it did not work on Ubuntu 9.10 for x86, it now works on Ubuntu 10.10 both on ARM and on x86; stream and camorama came in handy!), a Netgear Navilock GPS NL302U (it is seen as a PL2303 USB serial), and even a Silicon Power 4Gb USB pen-drive :) without problems.
 
 
Problem 1: solved!
 
Use another Linux PC to access the Beagleboard xM root filesystem on the microSD, and create the file /etc/init/ttyS2.conf containing these lines:

# my ttyS2 getty configuration file:

start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]

respawn
exec /sbin/getty -8 115200 ttyS2
 
 
Be sure to have this parameter when loading the kernel (must edit boot.scr: see below)
 
console=ttyS2,115200n8 serialtty=console
 
Problem 2: solved, but...

DLP Pico projector expects 640x480 video (actually it is a 480x320 pixels physical resolution, I wonder if it can be driven to original resolution instead of adapting a 640x480 input).
 
Ubuntu Netbook for ARM processors expects a screen a little larger than 640x480; it will work at 640x480 but icons/menus alignment will be a bit less than elegant.
 
You must change the OMAP framebuffer mode for DVI port to 640x480 with 24 bits per pixel at 60 Hz refresh. That is, the bootargs for Linux kernel will have to contain this parameter instead of the "1280x720" one:
 
omapfb.mode=dvi:640x480MR-24@60

Read here (Ubuntu/ARM editing boot.scr) to know how to change it.
 
Note: by default Ubuntu Netbook Remix does not install an ssh server. I had to manually command apt-get install openssh-server to enter via ssh instead of RS232 terminal.
 
 
Problem 3: solved!
 
For some unknown reason, the Ethernet port of the Beagleboard xM is called usb0 instead of eth0 (already signaled on Launchpad). While this is not a big deal (just ifconfig it or configure NetworkManager and it'll work), there is another problem: its "MAC" (Medium Access Control unique address: the 48-bit address uniquely identifying its hardware) is casually chosen by the Linux kernel at every reboot/reload. Maybe it could be assigned based on the unique die-ID of the Beagleboard (the one printed in the output messages at boot before loading Linux).
 
Add to wish-list: the Linux kernel should call "eth0" the Beagleboard xM ethernet port (instead of "usb0"), assigning it an unique MAC-address (or letting the user choose one). On my Nokia N900, for example, I created an /etc/modprobe.d/g_nokia.conf (the usbnetworking module of the N900) containing a fake MAC:
options g_nokia host_addr=f7:f7:f7:f7:f7:f7
allowing me to use NetworkManager feature to select different route/DNS/address ("Wired / Device MAC address") when the N900 is connected to my Linux PC ("f7 f7 f7..."). I expect this feature soon ported (if not already) to Ubuntu as well.
 
 
Problem 4: solved!
 
Trying to install gcc shows this funny message ("pentium" builder on an Ubuntu/ARM distro? heh!):
 
The program 'gcc' is currently not installed.  You can install it by typing:
apt-get install pentium-builder
You will have to enable the component called 'universe'
 
The Angstrom distribution, instead, had all native development software/libraries available (that is: you can edit and compile Beagleboard software using the Beagleboard CPU and diskspace).
 
Solved, solved! After a large 120+Mb network upgrade (apt-get update && apt-get upgrade) I was able to do apt-get install gcc g++ and verify that they can natively compile C/C++ sources in ARM-executables ready to use.
 
 
Problem 5: solved!
 
A number of programs, while not strictly x86-dependent, is not part of the Ubuntu/ARM 10.10 Maverick (Netbook Remix) Linux distribution, most notably: gpsd, minicom, setserial, motion, cnetworkmanager...
 
Solved! The "universe" component was disabled by default (the Ubuntu/ARM Netbook Remix only allowed Canonical supported software, no community-supported packages). Just launch Synaptic package manager from System / Preferences menu, and then enable "universe" in the Preferences / Repositories. Then click on the "Reload" key on the left (or use sudo apt-get update on command-line).
 
I had an old gpsd compiled in the Angstrom Linux and it worked OK with my Netgear Navilock NL-302U GPS. The NL302U has an USB port featuring a PL2303 interface (working under Linux since ages). To use it in Ubuntu, I had to disable the /usr/bin/modem_manager (which tries to use every serial port as a modem): I renamed it to .bak and rebooted (you can only kill -9 it but at next reboot it would restart...).
 
If you don't like to use synaptic, if you want to see if your favorite software is available in Ubuntu/ARM Netbook Remix, you can apt-cache search it. For example:
apt-cache search postgresql
 
and then you can:
apt-get install postgresql
 
If still some programs appear "installable" but "not locatable", for example:
 
root@beagleboardxm:~# cnetworkmanager
The program 'cnetworkmanager' is currently not installed.  You can install it by typing:
apt-get install cnetworkmanager
You will have to enable the component called 'universe'
root@beagleboardxm:~# apt-get install cnetworkmanager
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package cnetworkmanager
root@beagleboardxm:~#
 
Then it means you did not yet enable that "repository universe" thing explained above.
 
 
Final notes.
 
1) To have my Beagleboard run my command-line software at every boot, I just modified the /etc/rc.local script (beware: it is executed with root privileges). You can also use the System / Preferences / StartupApplications to choose graphical programs to start at boot. Also remember to disable the password check after screen sleep (System / Preferences / PowerManagement / ACPower / PutDisplayToSleep:NEVER; remember also System / Preferences / Screensaver / Activate and Lock options) if you plan to do some interaction without a keyboard. Example: after plugging in a webcam, I added a script which does streamer -s 640x480 -o grabbedimage.jpeg and then parsed the grabbed image, and called the script from the rc.local file. I could even add the command: DISPLAY=:0.0 eog -f img.jpeg to show it in the full-screen DVI output of the Beagleboard (remember to kill the eog when you don't need anymore!).
 
2) Maintenance: I installed vino-server to access the graphical desktop of the Beagleboard when no monitor is connected. I can then access it either with Remote Desktop Viewer (vinagre) from Linux, or with TightVNC for Windows XP. Beware: it is quite slow, especially when using wifi instead of ethernet. Using ssh -X lets you use X11 software on a remote desktop (that is: program runs on the Beagleboard but its graphical output goes via ethernet to your Linux PC from where you were connecting): this is quite faster than using a "remote desktop" solution. The ssh -X solution is especially good if the Beagleboard was set with 640x480 screen (which is somewhat little for a Netbook Remix featuring the Unity desktop); for example, the gnome-screensaver-preferences panel doesn't fit in the 640x480 with standard-sized fonts of the default installation.
 
3) RAM usage: apparently the full Ubuntu/ARM Netbook Remix works well in 256Mb RAM, because aven after some work, I saw more than 200-250Mb free RAM. 512Mb RAM may be too little for an OSX or Windows installation, but appear to be reasonably large for any Linux system (at least you don't open 45 tabs in your latest Firefox browser!)
 
4) Disk speed: while the supplied Kingston 4Gb microSD is decent, it is a pain in the ass to work with the graphical environment. The 130+ Mb packages update took a lot of time. Most of the time the system is busy waiting for the microSD to complete read/write.
 
5) Disk usage: after some extra installations (browsers, libraries, and so on) I see about 1.4Gb free space out of the "almost 4Gb" microSD supplied with the xM. I will backup the microSD using gunzip < /dev/sdf >microsdimage.gz on my Linux PC (this operation is not good to do on a mounted microSD partition!).
 
I am quite happy with Ubuntu 10.10 on my Beagleboard xM. While it appears a bit slower than Angstrom Linux on Beagleboard C4 (because Angstrom is optimized for ARMv7, while Ubuntu/ARM is optimized for ARMv4 level and doesn't feature graphical acceleration drivers and DSP stuff), it has practically all bells and whistles found in the Angstrom (when I will need performance, I will try Angstrom again).

Una rapina!

Qualcuno, dopo aver rapinato un negozio, ha ripulito accuratamente i cassetti del registratore di cassa e ne ha lasciato i resti all'entrata della stazione della metropolitana. Magari è stato avvistato e registrato dalla videsorveglianza.

giovedì 2 dicembre 2010

Bus vuoto al capolinea?

L'autobus è pronto a partire ma l'autista no perché ha un piccolo bisognino urgente!

Capodoglio a motore

Diego mi segnala questa spettacolosa invenzione: motore a 4 tempi 1500cc, propulsione a pinne (anziché ad eliche), 80 km/h emerso e 50 km/h in immersione, biposto (un posto avanti e uno dietro), profondità massima utile 1,5 metri.

Prezzi decenti: tra i 65 e gli 85mila pesos più un 5-8% di spese di spedizione.

Delazione partecipativa

Altra geniale invenzione: si invitano gli automobilisti a fare delazioni contro chi fa il proprio onesto lavoro ed è già controllatissimo da GPS satelliti internet videsorveglianze timer etc.

Propongo una piccola modifica al sistema: installare su quel numero di telefono una segreteria telefonica che faccia una fragorosa pernacchia al delatore chiamante e ne pubblichi su internet in tempo reale l'orario e il numero telefonico.

mercoledì 1 dicembre 2010

Traversando l'oscuro budello...

Due supplì: quattro euro? E che è, Capri?

Incredibile prezzario: i supplì che un chilometro più giù costano 80 centesimi, qui li vendevano a due euro! Prezzi da capogiro!

"Te ne devi comprare tutte supposte!"

Malumore popolare

Chiedono - con un po' di ritardo - le dimissioni del prossimo presidente del Partito Democratico.