Sun, 14 Feb 2010

Svalentino di domenica


la cosa migliore e' poter leggere postsecret fresco fresco

Posted at: 11:35 | permalink permalink | add to del.icio.us add to del.icio.us | comments Comments (1)

Fri, 14 Aug 2009

silent rules with automake 1.11

It seems that automake 1.11 made it into unstable and, besides other features, that means silent rules like linux does since quite some time.
For the impatient, in configure.ac:


AM_INIT_AUTOMAKE
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

Then after a round of automake/configure the make invocation will be like

make[3]: Entering directory `foo'
CXX source1.lo
CXX source2.lo
CCLD lib1.la
[...]

Credit note: the autotools mythbuster guide

Posted at: 23:40 | permalink permalink | add to del.icio.us add to del.icio.us | comments Comments (6)

Sat, 28 Feb 2009

mozilla ubiquity commands for debian

I'm an avid user of mozilla ubiquity but I couldn't find any commands related to debian to replace those of yubnub. So, prodded by zack I've produced some like bts or pts.
The command feed is located at ubiquity-commands (don't be scared by the "this-code-can-be-evil" subscription page) with the actual code maintained under ubiquity-commands.git.
Note that there's *much* room for improvement so it would be nice to have a common set of commands for the various debian web resources.

Posted at: 15:49 | permalink permalink | add to del.icio.us add to del.icio.us | comments Comments (2)

Thu, 26 Feb 2009

you don't control your hardware, proprietary drivers do (rant)


Trying to associate with 00:1c:58:10:1d:30 (SSID='ALMAWIFI' freq=2417 MHz)
Associated with 00:1c:58:10:15:b0
^^^^^^^^^^^^^^^^^ WTF?

In other words, my broadcom card won't let me choose the access point to connect to, instead the driver picks one for you (my guess: the one with the best signal) except that autentication on that AP doesn't work.
I'm fine with machines trying by default to be smarter than me, I'm less fine when there's no way to convince said machine to do something supposedly not smart.

Posted at: 14:07 | permalink permalink | add to del.icio.us add to del.icio.us | comments Comments (0)

Wed, 11 Feb 2009

in anticipo


tanto per essere chiari:





from http://www.eatdrinksnort.com/valentines-day-2008/1/

Posted at: 18:29 | permalink permalink | add to del.icio.us add to del.icio.us | comments Comments (2)

Sun, 28 Dec 2008

come ti italianizzo la storia

ieri (27/12) alle 13 si guardava il tg2 (vabbe', comunque il video e' disponibile su raiclick) e c'era la notizia del medico californiano che usava il grasso della liposuzione umana per farci del carburante (circa minuto 27 del video), la notizia su corriere.it.
Il tg2 chiosa con "(il medico scappa in sudamerica) finalmente LONTANO DALLA MAGISTRATURA della california" (l'enfasi e' mia), in buona fede uno potrebbe pensare che si italianizza un po' la storia e vabbe', in mala fede invece si potrebbe pensare che il messaggio da far passare e' "uno infrange la legge, la magistratura indaga dunque e' colpa della magistratura".
Fa inoltre un po' strano guardare il tg sul computer, c'e' il rischio di rendersi conto di cosa dicono.

Posted at: 12:01 | permalink permalink | add to del.icio.us add to del.icio.us | comments Comments (0)

Sat, 13 Dec 2008

don't exit bash on /etc with uncommitted changes

As explained before by Zack, it might happen that you co-administer a machine and have /etc under some VCS (which you should anyway by using etckeeper).
There are a few problems like detecting the identity of the committer and don't leave /etc with uncommitted changes so I recently came up with a slighly different solution than the one we thought two years ago (besides switching from bzr to git).
Take committer name/email from ~/.gitconfig of the user owning the tty or GIT_CONFIG or GIT_CONFIG_LOCAL if they are set.
Trap a function on shell's EXIT rather than loop on .bash_logout which applies only to login shell.
The resulting code to be put in /root/.bashrc:


git_functions="/path/to/git-etc-common"

# export GIT_* variables
if [ -f "$git_functions" ]; then
. "$git_functions"
git_export_env
fi

case $- in
*i*) # interactive shell
check_uncommitted(){
if [ -f "$git_functions" ]; then
. "$git_functions"
if ! git_etc_status; then
echo "Uncommitted changes to /etc found, please commit them"
bash -$-
fi
fi
}
trap check_uncommitted EXIT
;;
esac

Where git-etc-common is to be found here.

Posted at: 12:28 | permalink permalink | add to del.icio.us add to del.icio.us | comments Comments (1)

Wed, 10 Dec 2008

RSSes for NEW available on ftp-master

The two RSS feeds previously at http://people.debian.org/~filippo/NEW_rss/ have been moved to a more proper location on ftp-master and the script (tools/queue_rss.py) merged into dak thanks to ganneff.

JFTR the script scans a directory with .changes files (which happens to be NEW in this case) and generates the said feeds, it is not tied to ftp-master and requires python-pyrss2gen and python-debian.

Posted at: 22:06 | permalink permalink | add to del.icio.us add to del.icio.us | comments Comments (0)

Fri, 28 Nov 2008

remote notification with irssi

I, like many others leave an IRC client always connected on a remote machine and my client of choice is irssi.
One good feature of graphical clients like xchat is the message notification when someone addresses you, which has the nice property to turn IRC from "pull" mode (you have to watch for notifications) to "push" mode (you get notified).
Notifications was the feature I missed the most from irssi so I hacked a solution:
Grab interesting messages from irssi and push them through an ssh tunnel, read them on the local machine and finally display them using libnotify. Implementation results follow:
- rnotify.pl is a script for irssi which pushes interesting messages to a local port
- notify-remote is a shell script to read messages on stdin and display them through notify-send
- esaurito the shell script to put it all together

Posted at: 17:05 | permalink permalink | add to del.icio.us add to del.icio.us | comments Comments (2)

Tue, 22 Jul 2008

ecce informazione

incappo per caso da reddit in questo link bimbe rom annegate - the independent che in effetti e' piuttosto grave (traduzione con google).
Cerco la notizia su repubblica, cosa trovo? Questo: http://www.repubblica.it/2008/07/sezioni/cronaca/napoli-annegate/napoli-annegate/napoli-annegate.html

Una lieve differenza di interpretazione, ma piccola eh.

update 27/07: claudio mi segnala che l'articolo in effetti c'e' nell'edizione di napoli http://napoli.repubblica.it/dettaglio/Annegano-due-bimbe-nomadi-tra-lindifferenza-dei-bagnanti/1490454 e la cosa diventa leggermente meno grave, nemmeno di troppo considerando la differenza di titoli

Posted at: 19:58 | permalink permalink | add to del.icio.us add to del.icio.us | comments Comments (4)