Voglia di Linux

avventure e soddisfazioni usando software libero

Archive for luglio, 2007

La fine di Thunderbird & Co

without comments

Google sta lavorando per far funzionare le sue app sul web anche offline.

Google Gears si chiama l’estensione per Firefox e Explorer ed č in beta.

(E no, qui si rimane fedele alla cose che hai in completamento in mano te.)

Written by ste

luglio 27th, 2007 at 11:52 pm

Posted in Applicazioni

Ransomware

without comments

L’ultima novitĂ  della fronte dei virus: Quelli che ti cifrano certi file e per avere la chiave per decifrargli dovresti pagare.

E no, una volta cifrato non è che l’antivirus aggiornato ti aiuta.

Written by ste

luglio 24th, 2007 at 12:26 am

Posted in addio a windows

Opera

without comments

Nella vita bisogna provare tutto. Per installare il browser Opera in Kubuntu aprire un terminale:

wget http://opera.eurenet.net/linux/920/final/en/i386/shared/opera_9.20-20070409.6-shared-qt_en_i386.deb

sudo aptitude install libqt3-mt

sudo dpkg -i opera_9.20-20070409.6-shared-qt_en_i386.deb

E’ un po carico di roba degli sponsor, ma una grafica bella e funzioni da scoprire. Importa pure i Bookmarks di Konqueror, non solo quelli di Mozilla (sono in ~/.mozilla/firefox/*.default/ e in ~/.kde/share/apps/konqueror/ ) e non sta sempre fisso in memoria con 18% come il compagno Firefox, al massimo arriva a 14%.
Per farlo parlare italiano:

wget http://www.opera.com/download/lng/920/ouw920_it.lng

Spostare il file in ~/.opera e selezionarlo dal menu preferences —> language –>details

Le file di lingue si trovano tutti qui.

Written by ste

luglio 21st, 2007 at 4:08 pm

Posted in Applicazioni

Quello che hai sempre pensato di Windows

without comments

E’ semplice: Avere il codice chiuso non si sa cosa fa davvero. Nei tempi della caccia ai (futuri) terroristi|pedofili|*i questo fa troppo gola alla NSA e compagni.

Secondo Duncan Campbell, giornalista investigativo e produttore televisivo, le versioni successive al Windows 95 conterrebbero driver alquanto sospetti che una volta decompilati hanno rivelato delle routine crittografiche accessibili mediante due chiavi: una in possesso degli sviluppatori Microsoft e l’altra?
Uno di questi driver, secondo gli specialisti coinvolti da Campbell risulta essere ADVAPI.dll.

Written by ste

luglio 20th, 2007 at 11:02 pm

Posted in addio a windows

Convertire m4a

without comments

Ignoravo l’esistenza di questa formato. Amarok non nč ha problemi a parte il fatto che non puň editare i tag. Per convertirli in mp3 (perdendo qualitŕ e spazio…) la ricerca ha sfruttato uno script che converte tutti i files di una cartella da *.m4a a *.mp3, passando per *.wav. Si perdono i tag, ovviamente.

#!/bin/bash

#
# $Id: aac2mp3,v 1.2 2005/08/22 15:32:34 rali Exp $
#

#
# Convert one or more AAC/M4A files to MP3. Based on a script example
# I found at: http://gimpel.gi.funpic.de/Howtos/convert_aac/index.html
#

ME=`basename ${0}`

AAC2WAV=”/usr/bin/mplayer”
WAV2MP3=”/usr/bin/lame”

EXT=”m4a”
BITRATE=”192″

do_usage() { # explanatory text
echo “usage: ${ME} [-b nnn] [-e ext] [-f] [-c] [-r] [-v] [-h] [file list]”
echo ” Convert music from AAC format to MP3″
echo ” -l /path/app Specify the location of lame(1)”
echo ” -m /path/app Specify the location of mplayer(1)”
echo ” -b nnn bitrate for mp3 encoder to use”
echo ” -e ext Use .ext rather than .m4a extension”
echo ” -f Force overwrite of existing file”
echo ” -c Delete original AAC|M4A file(s)”
echo ” -s Keep intermediate .wav file(s)”
echo ” -v Verbose output”
echo ” -h This information”
exit 0
}

do_error() {
echo “$*”
exit 1
}

file_overwrite_check() {
if [ "$FORCE" != "yes" ]
then
test -f “${1}” && do_error “${1} already exists.”
else
test -f “${1}” && echo ” ${1} is being overwritten.”
fi
}

create_wav() { # use mplayer(1) to convert from AAC to WAV
file_overwrite_check “${2}”

test $VERBOSE && echo -n “Creating intermediate WAV file”

${AAC2WAV} -really-quiet -ao pcm “${1}” -ao pcm:file=”${2}”
if [ $? -ne 0 ]
then
echo “”
echo “Conversion to WAV (${AAC2WAV}) failed.”
do_cleanup
do_error “Exiting”
fi

test $VERBOSE && echo “. OK”
}

create_mp3() { # use lame(1) to convert from WAV to MP3
file_overwrite_check “${2}”

test $VERBOSE && echo -n “Creating output MP3 file”

${WAV2MP3} -h -b ${BITRATE} -S “${1}” “${2}”
if [ $? -ne 0 ]
then
echo “”
echo “Conversion to MP3 (${WAV2MP3}) failed.”
do_cleanup
do_error “Exiting”
fi

test $VERBOSE && echo “. OK”
}

do_cleanup() { # Delete intermediate and (optionally) original file(s)
test $VERBOSE && echo -n “Deleting intermediate file”
test ${SAVEWAV} || rm -f “${2}”
test ${RMM4A} && rm -f “${1}”
test $VERBOSE && echo “. OK”
}

do_set_bitrate() {
test $VERBOSE && echo -n “Setting output bitrate to: $1 kbps”
BITRATE=$1
test $VERBOSE && echo “. OK”
}

GETOPT=`getopt -o l:m:b:e:cfhrv -n ${ME} — “$@”`
if [ $? -ne 0 ]
then
do_usage
fi

eval set — “$GETOPT”

while true
do
case “$1″ in
-l) LAME=$2 ; shift ; shift ;;
-m) MPLAYER=$2 ; shift ; shift ;;
-b) do_set_bitrate $2 ; shift ; shift ;;
-e) EXT=$2 ; shift ; shift ;;
-f) FORCE=”yes” ; shift ;;
-c) RMM4A=”yes” ; shift ;;
-s) SAVEWAV=”yes” ; shift ;;
-v) VERBOSE=”yes” ; shift ;;
-h) do_usage ;;
–) shift ; break ;;
*) do_usage ;;
esac
done

test -f $LAME || do_error “$LAME not found. Use \”-l\” switch.”
test -f $MPLAYER || do_error “$MPLAYER not found. Use \”-m\” switch.”

if [ $# -eq 0 ]
then # Convert all files in current directory
for IFILE in *.${EXT}
do
if [ "${IFILE}" == "*.${EXT}" ]
then
do_error “No files with extension ${EXT} in this directory.”
fi

OUT=`echo “${IFILE}” | sed -e “s/\.${EXT}//g”`

create_wav “${IFILE}” “${OUT}.wav”
create_mp3 “${OUT}.wav” “${OUT}.mp3″
do_cleanup “${IFILE}” “${OUT}.wav”

done
else # Convert listed files
for IFILE in “$*”
do
test -f “${IFILE}” || do_error “${IFILE} not found.”

OUT=`echo “${IFILE}” | sed -e “s/\.${EXT}//g”`

create_wav “${IFILE}” “${OUT}.wav”
create_mp3 “${OUT}.wav” “${OUT}.mp3″
do_cleanup “${IFILE}” “${OUT}.wav”
done
fi
exit 0

Salvarlo in ~/bin con nome “m4a2mp3, renderlo eseguibile. Bisogna avere installato mplayer. Navigare nella cartella > aprire un terminale (F4) > m4a2mp3

Esiste anche l’ottimo soundconverter, che perň qui s’impalla di una bellezza quando tocca o scrive un *.m4a

Written by ste

luglio 8th, 2007 at 5:00 pm

Posted in trucchi

Html2opml

without comments

Quando si dice la potenza dello scripting…trovato per caso uno script per la shell che genera una lista in html a partire dal file opml di akregator. L’originale pecca di codifica e per questo l’ho modificato in modo che genera una pagina html completa. Magari editare il percorso per l’immagine del feed. Ecco il risultato.

Written by ste

luglio 1st, 2007 at 10:52 am

Posted in trucchi