Etichette
- android (1)
- arkon (1)
- assistenti tecnici di laboratorio informatico (2)
- automi (1)
- bestie (1)
- cakephp (2)
- camera (1)
- canon (1)
- car (1)
- cassettovariabile (1)
- celati (1)
- certificati (1)
- claxon (1)
- cpu speed (1)
- distribuzioni (2)
- dms (1)
- dvd (1)
- dvdisaster (1)
- finestre (2)
- firefox (1)
- firmware (2)
- free (1)
- genitore infame (1)
- google (1)
- grub (2)
- handbrake (1)
- heat (1)
- i3 (3)
- informatica (11)
- informatica lightscribe alien (1)
- italia (1)
- javascript (1)
- key (2)
- ldap (1)
- letteratura (1)
- lg (1)
- linux (10)
- mammi (1)
- mangiare (2)
- maxtor (3)
- md5 (1)
- mediawiki (1)
- miti. Nanni (1)
- monopolio (1)
- moodle (1)
- musica (1)
- nandina (1)
- nslug2 (3)
- odtphp (1)
- omino (1)
- open source (1)
- openoffice (2)
- pdf (1)
- php (1)
- py2exe (1)
- python (2)
- radio (1)
- raspberrypi (4)
- rompicapo (1)
- samba (1)
- scuola (2)
- simile (1)
- Sisifo (1)
- sistema (7)
- ssh (2)
- stenelli (1)
- streaming (1)
- synology (1)
- tg2 costume e società (1)
- timeline (1)
- transmission-daemon (1)
- tv (1)
- u3 system (1)
- ubuntu (3)
- ubuntu network network-manager dnsmasq cache caching (1)
- unicopuntosaldo (1)
- usb (1)
- webradio (1)
- windows (1)
- zenithink (2)
mercoledì 18 dicembre 2013
martedì 17 dicembre 2013
raspberrypi raspyfi radiouno.pls
To add to raspyfi italian RadioRai RadioUno webradio, create a .pls file in /var/lib/mpd/music/WEBRADIO/ with the following content:
[playlist]
numberofentries=1
File1=http://icestreaming.rai.it/1.mp3
Title1=RAI RadioUno
Length1=-1
version=2
[playlist]
numberofentries=1
File1=http://icestreaming.rai.it/1.mp3
Title1=RAI RadioUno
Length1=-1
version=2
To also have RadioDue and RadioTre played, change 1.mp3 into - guess - 2.mp3 and 3.mp3 respectively.
Enjoy
venerdì 29 novembre 2013
raspberrypi con usb camera PAC7311 Trust WB-3300p
Camera connected to raspberrypi was detected
#lsusb
Bus 001 Device 005: ID 093a:2608 Pixart Imaging, Inc. PAC7311 Trust WB-3300p
but motion and uvccapture complained that they can't find /dev/video0 even if I created the node:
mknod /dev/video0 c 81 0
Device can be found preloading v4l2convert
LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libv4l/v4l2convert.so motion [options here]
Had to install v4l-utils first
sudo apt-get install v4l-utils
#lsusb
Bus 001 Device 005: ID 093a:2608 Pixart Imaging, Inc. PAC7311 Trust WB-3300p
but motion and uvccapture complained that they can't find /dev/video0 even if I created the node:
mknod /dev/video0 c 81 0
Device can be found preloading v4l2convert
LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libv4l/v4l2convert.so motion [options here]
Had to install v4l-utils first
sudo apt-get install v4l-utils
venerdì 1 novembre 2013
Handbrake with ubuntu 13.10 saucy salamander
If you dare to install a snapshot:
sudo add-apt repository ppa:stebbins/handbrake-snapshots
sudo apt-get update
sudo apt-get install handbrake-gtk
sudo add-apt repository ppa:stebbins/handbrake-snapshots
sudo apt-get update
sudo apt-get install handbrake-gtk
mercoledì 21 agosto 2013
passwordless ssh - ssh-keygen isn't enough!
For backup purposes on my NAT, I set up a passwordless login using ssh.
To make the long story short, creating a pair of keys using ssh-keygen and copying the public part to ~/.ssh/authorized_keys on the remote NAT (and fixing permission: 700 for ~/.ssh/ and 600 for authorized_keys) is not enough.
I got a nasty Agent admitted failure to sign using the key. message
Found (#5) that I got to simply add the new identity using ssh-add
To make the long story short, creating a pair of keys using ssh-keygen and copying the public part to ~/.ssh/authorized_keys on the remote NAT (and fixing permission: 700 for ~/.ssh/ and 600 for authorized_keys) is not enough.
I got a nasty Agent admitted failure to sign using the key. message
Found (#5) that I got to simply add the new identity using ssh-add
domenica 19 maggio 2013
Il bello degli oggetti programmabili è che sono programmabili.
Un'alice gate 2 plus wifi e un alice wgate adeguatamente flashati (ecco una guida per il primo e una guida per il secondo, se siete pigri) fanno l'uno da modem-router adsl wifi e l'altro da repeater, perché lo zenithink c93 ha un'antenna wifi che fa abbastanza pietà.
La guida che ho seguito in parte è stata questa http://www.ilpuntotecnicoeadsl.com/forum/index.php?topic=9189.0 tranne che: non mi funzionava il dhcp relay, sicché l'ho abilitato tra 192.168.1.3 e 192.168.1.9 sul vela-repeater (che ha l'indirizzo 192.168.1.2) e tra 192.168.1.10 e 192.168.1.254 sul gate2 (che ha l'ip 192.168.1.1).
Ho messo lo stesso canale e ho impostato la sicurezza su WPA. Apparentemente con WPA2 non funzia, peccato. Ho dovuto smacchinarci un po' sopra, forse perché era WPA2 forse perché avevo lasciato Restricted il Bridge dell'Access Point, chissà, forse per via del DHCP releay che dicevo, non prendeva l'indirizzo IP.
Ultima avvertenza, il firmware telsey_asus1 pulisce realmente delle impostazioni che restano nel firmware e che portano a comportamenti anomali: flashatelo per primo.
Poi il firmware che funzionava per il wgate è stato telsey_magic_070116_0144, gli altri boh, facevano le bizze.
Buona fortuna se ci provate, io ho fatto pochi test, appena funzionava ho lasciato stare, non era mia, quindi ho poca scienza e un po' d'arte in materia
Un'alice gate 2 plus wifi e un alice wgate adeguatamente flashati (ecco una guida per il primo e una guida per il secondo, se siete pigri) fanno l'uno da modem-router adsl wifi e l'altro da repeater, perché lo zenithink c93 ha un'antenna wifi che fa abbastanza pietà.
La guida che ho seguito in parte è stata questa http://www.ilpuntotecnicoeadsl.com/forum/index.php?topic=9189.0 tranne che: non mi funzionava il dhcp relay, sicché l'ho abilitato tra 192.168.1.3 e 192.168.1.9 sul vela-repeater (che ha l'indirizzo 192.168.1.2) e tra 192.168.1.10 e 192.168.1.254 sul gate2 (che ha l'ip 192.168.1.1).
Ho messo lo stesso canale e ho impostato la sicurezza su WPA. Apparentemente con WPA2 non funzia, peccato. Ho dovuto smacchinarci un po' sopra, forse perché era WPA2 forse perché avevo lasciato Restricted il Bridge dell'Access Point, chissà, forse per via del DHCP releay che dicevo, non prendeva l'indirizzo IP.
Ultima avvertenza, il firmware telsey_asus1 pulisce realmente delle impostazioni che restano nel firmware e che portano a comportamenti anomali: flashatelo per primo.
Poi il firmware che funzionava per il wgate è stato telsey_magic_070116_0144, gli altri boh, facevano le bizze.
Buona fortuna se ci provate, io ho fatto pochi test, appena funzionava ho lasciato stare, non era mia, quindi ho poca scienza e un po' d'arte in materia
Zt-297 and arkon central headset
Long trips with kids in a car can be very painful, for all...
I got an Arkon headrest central mount like this one and both kids were quite happy (and calmer than usual)
My Zenithink c97 fits perfectly into it (but the mount can be adapted to smaller tablets).
That's all, folks
I got an Arkon headrest central mount like this one and both kids were quite happy (and calmer than usual)
My Zenithink c97 fits perfectly into it (but the mount can be adapted to smaller tablets).
That's all, folks
domenica 28 aprile 2013
martedì 9 aprile 2013
smartctl on a USB device
smartctl -t short /dev/sdb complains that the device must be specified: it is a portable USB hard disk from Samsung. I won't discuss here Samsung's choice to close the case in such a manner that the user has to tamper it if (s)he wants to connect directly to the SATA disk inside.
I just write here the way you can force smartctl to accept to do its duty:
I just write here the way you can force smartctl to accept to do its duty:
smartctl -t short -d sat,12 /dev/sdb
domenica 17 marzo 2013
Compose key, I do love you exists!
Ok, ok, i am a newbie. I should knew the trick, etc. etc. Blame me if you want, but I am happy now!
Here is the news: there is a list of compose key sequences: http://www.hermit.org/Linux/ComposeKeys.html
And here the way compose key is specified in keyboard layout under gnome/unity.
Basically, I chose ctrl-right key as a composer. Now, for example, I tap ctrl-right, and then insert, system-wide, umlaut characters by typing " and then a (result is ä)
Wow! Easy!
Here is the news: there is a list of compose key sequences: http://www.hermit.org/Linux/ComposeKeys.html
And here the way compose key is specified in keyboard layout under gnome/unity.
Basically, I chose ctrl-right key as a composer. Now, for example, I tap ctrl-right, and then insert, system-wide, umlaut characters by typing " and then a (result is ä)
Wow! Easy!
sabato 9 febbraio 2013
You are the product
Remember, when advertising is involved you the user are the product.
from http://blog.whatsapp.com/index.php/2012/06/why-we-dont-sell-ads
martedì 15 gennaio 2013
Split ape file using cue, convert to flac, add tags, rename!
Here you can find very useful infos about packages and commands to split a loseless audio .ape file and convert it to flac files.Basically, using ubuntusudo apt-get install cuetools shntool
You will also need the monkeys-audio tools package mac_3.99*.deb
In the link above it is suggested to add a repository, but it won't work with ubuntu quantal 12.10
I'd suggest to use https://launchpad.net/~flacon/+archive/ppa/+build/3698121to download a compile and debianized file that can be easily installed this way
sudo dpkg-i
Now, you will have all the tools installed.
Just docuebreakpoints *.cue | shnsplit -o flac *.ape ;
And then tag the file using the information in the cue file:
cuetag *.cue split-track*.flac ;
If you wanna rename now many split-track*.flac files this wonderful script from here will become your friend and save you the manual work (that's indeed because we love computers!!!).
#!/bin/bash
for a in *.flac; do
ARTIST=`metaflac "$a" --show-tag=ARTIST | sed s/.*=//g`
TITLE=`metaflac "$a" --show-tag=TITLE | sed s/.*=//g`
TRACKNUMBER=`metaflac "$a" --show-tag=TRACKNUMBER | sed s/.*=//g`
mv "$a" "`printf %02g $TRACKNUMBER` - $ARTIST - $TITLE.flac"
done
Terra2.blogspot ad memoriam
Non è ancora morto, ma visto che non è aggiornato da un po' e temo di perdere per sempre questo post, lo riproduco qui. Absit intentio copiae infringendae.
Caro principe Shōtoku Taishi, tanto bravo, tanto intelligente, che a sei anni sapevi già andare a cavallo, che potevi ascoltare dieci persone contemporaneamente e che ha mandato delegazioni in Cina per importare ideogrammi, architettura, buddismo e soprammobili; spiegami una cosa, come te la sei fatta sta fama di genio?
No dico, il giapponese ha tanti difetti ma non quello di essere una lingua estremamente polifonica. Ha 9 consonanti e 5 vocali; sarebbe stato sufficiente mettersi lì un pomeriggio e creare 14 simboli. C'era proprio bisogno di importare un sistema di scrittura che all'epoca contava già 20mila caratteri?
Paradossalmente, pur essendo stati inventati per tutt'altro, con i caratteri latini si potrebbe riscrivere tutta la letteratura giapponese. Mentre per scrivere in giapponese, attualmente, vengono utilizzati quattro sistemi di scrittura differenti: kanji, katakana, hiragana e... caratteri latini (per le sigle, gli acronimi, etc.). Cinque se ci mettiamo anche i numeri arabi, perché da autentico geniaccio hai importato l'unico set di caratteri che fra 20mila simboli non aveva lo ZERO.
Ok, forse inventare un alfabeto non è la cosa più banale.
Ci avete provato con l'hiragana e siete riusciti ad incasinare ulteriormente il tutto tirando fuori altri 46 simboli. 46 simboli per un linguaggio con sole 9 consonanti. Non ho parole, bravi!
Simboli che oltretutto non hanno il minimo legame estetico-logico fra di loro. Prendiamo le sillabe な(na) に(ni) ぬ(nu) ね(ne) の(no). Sarebbe stato carino disegnarle in maniera tale che si fosse potuto intuire che tutte e cinque cominciassero con la stessa consonante o almeno essere associate alla loro vocale: あ(a), い(i), う(u), え(e), お(o). Macché, manco a parlarne.
Con le altre consonanti, ovviamente, il discorso non migliora.
In compenso, ね(ne) è praticamente uguale a わ(wa) e ぬ(nu) sembra il fratello gemello di め(me). Se poi ci mettiamo dentro che per scrivere わ(wa), nella maggior parte dei casi si usa il carattere は(ha), che la sillaba を(wo) c'è ma si pronuncia sempre "o" come la vocale お(o) e che per allungare le sillabe in "o" si preferisce usare la う(u); il quadretto è completo.
Forse il tizio che ha inventato l'hiragana era anch'esso costantemente circondato da 10 persone che parlavano in contemporanea ed in quei frangenti è ovvio che creatività e logica ne risentano.
Ma era proprio poi l'alfabeto il problema principale del giapponese? Non credo proprio.
Nel giapponese metà degli aggettivi (quelli in い(i) ) possono essere declinati quasi come fossero verbi, l'altra metà invece no.
Vogliamo poi parlare delle declinazioni verbali? Non tutte ovviamente, perché altrimenti facciamo notte.
La forma TAI ad esempio. Quella che trasforma una azione del desidrio di compiere quella azione e che conseguentemente muta verbi come KAKIMASU (scrivo/scrivere) in KAKITAI (voglio scrivere). Serviva?
C'era già l'aggettivo HOSHII (si, in giapponese "voglio" è un aggettivo). Perché un aggettivo ed una declinazione per esprimere lo stesso concetto?
A dire il vero la forma TAI non è davvero una declinazione verbale poiché un verbo in TAI può essere ulteriormente declinato... ma come un aggettivo in い(i): KAKITAKATTA(volevo scrivere). Bello vero?
Ma il vero capolavoro di demenza semantica è la declinazione "potenziale", quella che prende un verbo e lo trasforma in un altro verbo che esprime la "possibilità di mettere in pratica quella azione" semplicemente variando una sillaba nella sua corrispondente che termina per "e". In pratica, grazie a questa genialata, KAKIMASU (scrivo/scrivere) diventa KAKEMASU (posso scrivere).
Peccato che KAKEMASU sia una parola usata per esprimere almeno altri cinque verbi (e NON nella loro declinazione potenziale), ovvero: "correre", "subire danni", "scommettere", "volare" e "telefonare" (ora sapete perché quando ha a che fare col giapponese il traduttore di Google diventi una delle applicazioni più comiche mai scritte).
Davvero Taishi, la grammatica nippona era già complicata di suo e, detto tra amici, sta cosa di importare 20mila ideogrammi (attualmente levitati fra i 45mila ed i 50mila) è stata una stronzata fotonica.
domenica 13 gennaio 2013
indicator-sysmonitor displays ↓0kB/s ↑0kB/s with >1 network interfaces
I have to admit that the (in)famous Lens functionalities (except the amazon-drive one) have let me try once more the ubuntu-unity user interface.
I obviously do miss gnome-extensions...
I felt indicator-sysmonitor could mitigate my blues, but its code can't properly handle the presence of 2 interfaces: in the panel net traffic was always 0kB/s in download as well in upload.
Luckly enough, indicator-sysmonitor is written in python (and it is open source)!
So take a look /usr/bin/indicator-sysmonitor: near line 278 the function _fetch_net(self) has hardcoded to use the 4th and 5th value of ifstat. But if there are more than one network interface the one has to use 8th and 9th value.
0.00 0.00 26.12 12.00 0.00 0.00 26.12 12.00
the first two values being lo the local loopback, the second pair being eth0, the third one wlan0, the last pair the total.
So if this is your case, you has to change by hand the code (reckon from 2 as awk arguments: $8 and $9 are the 7h and 8th values):
I obviously do miss gnome-extensions...
I felt indicator-sysmonitor could mitigate my blues, but its code can't properly handle the presence of 2 interfaces: in the panel net traffic was always 0kB/s in download as well in upload.
Luckly enough, indicator-sysmonitor is written in python (and it is open source)!
So take a look /usr/bin/indicator-sysmonitor: near line 278 the function _fetch_net(self) has hardcoded to use the 4th and 5th value of ifstat. But if there are more than one network interface the one has to use 8th and 9th value.
ifstat -a -n -q -S -T 0.5 1 |tail -1(which is used by indicator-sysmonitor) outputs a line very similar to the following
0.00 0.00 26.12 12.00 0.00 0.00 26.12 12.00
the first two values being lo the local loopback, the second pair being eth0, the third one wlan0, the last pair the total.
So if this is your case, you has to change by hand the code (reckon from 2 as awk arguments: $8 and $9 are the 7h and 8th values):
def _fetch_net(self):
"""It use the command "ifstat" to know the total net usage"""
total_net = subprocess.Popen(
"ifstat -a -n -q -S -T 0.5 1 | tail -1 | awk \
'{ printf(\"↓%dkB/s ↑%dkB/s\", $8, $9) }'",
stdout=subprocess.PIPE, shell=True).communicate()[0].strip()
return total_net
giovedì 10 gennaio 2013
Maxtor Axis Central boots from wrong partition
I loaded on my Maxtor Axis Central a custom image (http://home.comcast.net/~coyoteden/edamame-3.5.74.custom.bin see here and Suphammer).
For reasons I cannot explain (i think errors on filesystem or so), maxtor started to boot from /dev/sda2 loosing all the optware goodies and settings (and samba shares too!!).
I managed to tell the NAS to boot from /dev/sda1 this way:
For reasons I cannot explain (i think errors on filesystem or so), maxtor started to boot from /dev/sda2 loosing all the optware goodies and settings (and samba shares too!!).
I managed to tell the NAS to boot from /dev/sda1 this way:
~ # mxoparam -fThanks to http://forum.doozan.com/read.php?3,7531,7552,quote=1
Watchdog will be enabled next boot
~ # mxoparam -q 0
martedì 8 gennaio 2013
Softmodem on HP G72 under Linux [SOLVED]
I have been struggling one hour (or more, ehm...) in order to have the onboard software modem on my HP-G72, so I decided to leave a note for myself (goldfish syndrome) and hopefully for others.
Note that the modem capability wasn't detected by aplay -l
But lsmod gave me some interesting modules loaded
ENVIRONMENT:
Ubuntu 12.10 (kernel 3.5)
HOWTO:
(in another console)
output:
A patch to address this issue was discussed here lhttp://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg616496.html
where, btw, it seems that the error is raised only when slmodemd is started manually...
Note that the modem capability wasn't detected by aplay -l
But lsmod gave me some interesting modules loaded
snd_atiixp_modem 19044 0
snd_via82xx_modem 18601 0
snd_ac97_codec 134316 3 snd_atiixp_modem,snd_via82xx_modem,snd_intel8x0m
ENVIRONMENT:
Ubuntu 12.10 (kernel 3.5)
HOWTO:
sudo service sl-modem-manager start
sudo ulimit -l 8192 && slmodemd -c ITALY --alsa hw:0
(in another console)
sudo wvdialconf /etc/wvdial.conf
output:
Editing `/etc/wvdial.conf'.Without ulimit command the output was
Scanning your serial ports for a modem.
Modem Port Scan<*1>: S0 S1 S2 S3 S4 S5 S6 S7
Modem Port Scan<*1>: S8 S9 S10 S11 S12 S13 S14 S15
Modem Port Scan<*1>: S16 S17 S18 S19 S20 S21 S22 S23
Modem Port Scan<*1>: S24 S25 S26 S27 S28 S29 S30 S31
WvModem<*1>: Cannot get information for serial port.
ttySL0<*1>: ATQ0 V1 E1 -- OK
ttySL0<*1>: ATQ0 V1 E1 Z -- OK
ttySL0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttySL0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttySL0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttySL0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttySL0<*1>: Modem Identifier: ATI -- SmartLink Soft Modem
ttySL0<*1>: Speed 4800: AT -- OK
ttySL0<*1>: Speed 9600: AT -- OK
ttySL0<*1>: Speed 19200: AT -- OK
ttySL0<*1>: Speed 38400: AT -- OK
ttySL0<*1>: Speed 57600: AT -- OK
ttySL0<*1>: Speed 115200: AT -- OK
ttySL0<*1>: Speed 230400: AT -- OK
ttySL0<*1>: Speed 460800: AT -- OK
ttySL0<*1>: Max speed is 460800; that should be safe.
ttySL0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found a modem on /dev/ttySL0.
Modem configuration written to /etc/wvdial.conf.
ttySL0: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
error: mixer setup: Off-hook switch not found for card hw:0
SmartLink Soft Modem: version 2.9.11 May 27 2012 20:09:21
symbolic link `/dev/ttySL0' -> `/dev/pts/1' created.
modem `hw:0' created. TTY is `/dev/pts/1'
error: locked memory limit too low:
error: need 8388608 bytes, have 65536 bytes
error: try 'ulimit -l 8192'
A patch to address this issue was discussed here lhttp://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg616496.html
where, btw, it seems that the error is raised only when slmodemd is started manually...
Iscriviti a:
Post (Atom)