Archivio perEnglish

edit textbox teh 1337 way!!1! (aka vim and Firefox)

So you edit everything with vim (this comic strip is amazing). But I bet you don’t edit Firefox textbox with it.

vim and Firefox

If you want to please your nerdcore needs you can install mozex.
Leggi il seguito di questo post »

Commenti (2)

MacBook Santa Rosa + iSight + Cheese / skype(beta) / ekiga

Oh my gosh! iSight works with everything (cheese, ekiga, skype2 beta)

It works!

super mini howto

I don’t know the exact steps I have just done but you can try to:
Leggi il seguito di questo post »

Commenti

Random wallpaper for Gnome

I really love the comic strips of this site: http://pbfcomics.com/
This simple bash script replace your background image with a random strip from the website:

#!/bin/bash
gconftool -s /desktop/gnome/background/picture_options -t string "centered"
while true; do
    wget -q http://pbfcomics.com/`curl -s http://pbfcomics.com/?comic=random | sed -n 's/.*id="topimg" src="([^"]*)".*/1/p'` -O - > current
    gconftool -s /desktop/gnome/background/picture_filename -t string "$PWD/current"
    sleep 1800
done

If you have any enhancement you are welcome ;)

Commenti (2)

WordPress alternative stats

Greasemonkey LogoI don’t like flash too much Flash, “probably” because of this.

I like wordpress.com because it is free, it runs wordpress (!) and many other reasons, but a thing I don’t understand is why the stats page uses a flash application instead of a simple, ordinary image. And before my iBook deserted me, I wasn’t able even to see my stats!

That’s why, some weeks ago, I coded wp-stats replacer. The script is very very simple and is an attempt to use the Google Chart API.

example

In the next picture (click for larger) you can see what the script does.
plain vs flash

conclusion

This script is only a simple prototype, I would like to expand it to visualize multiple and different stats.
You can download the script from box.net.
Any advice?

Commenti (6)

Pythonic Markov Decision Process (MDP)

I’ve been studying a subject called probabilistic methods for decisions.
In this course there are a lot of interesting topics like Bayesian Networks (BN), inference and querying in BNs, probabilistic reasoning over time etc. and, in the book (Artificial Intelligence: A Modern Approach - Russell, Norvig) there are a lot of interesting pseudocode ;) to implement.

The simplest algorithm to implement is -IMHO- the Value-Iteration algorithm and my goal is to reproduce the graph that shows the evolution of the utilities shown in Figure 17.5.

MDP example
(image source)

Leggi il seguito di questo post »

Commenti

Pythonic function series

Let’s start with a simple python snippet. (ah, first of all, why am I writing in English? Because I’m a dunce at English and I hope this blog will help).

This week Prof. Kuhn talked to us about the “function series“. I’m not here to explain the theory behind this subject (well… I’m not able to do this) but I’ll try and give you my pythonic experience for the “function series”. I’m a Informatics student and, as anyone in Computer Science, I’m lazy.

There is too much work to draw manually 2 or 3 functions. My computer can do this better and faster, and with python even cooler ;)

One of the examples Prof. Kuhn showed us was: f_n(x)=\frac{x-n}{x^2+3n^2}
The goal of this example is to draw those function series.
Leggi il seguito di questo post »

Commenti