Post contrassegnati da tagpython

Un post satanico - redux (aka giochiamo un po’ con le codifiche)

immagine: wikipedia

Perché se ne sentiva effettivamente il bisogno™.

show me da code

La storia di INDONESIA, abbastanza semplice per il mio cervellino, mi ha dato questa brillante idea:
Leggi il seguito di questo post »

Commenti (3)

Un post satanico

foto: Frenkieb

ah prima che vi preoccupiate (se la cosa vi preoccupa), non sto diventando satanista ma sono capitato per caso su una pagina di mathworld.

somma del quadrato dei primi 7 numeri primi

2²+3²+5²+7²+11²+13²+17² = 666

(ma 1 non è primo? secondo me andava incluso)

altra somma di potenze

Leggi il seguito di questo post »

Commenti (5)

Alex Martelli a Firenze per la Pycon2

Pycon2 banner
Pycon2, Pycon2. Il primo talk a cui ho partecipato è stato quello di Alex Martelli, über tech lead in Google.
Il titolo era “python per programmatori“. Python lo conosco (non da über python programmer) però ero curioso di sentire questo famoso Alex.

Python, Java e C[++]

Il taglio del talk era molto interessante, io venivo (tempo fa eh) dal mondo Java™ e ha fatto molti confronti sia con Java™ stesso che con C++ (che conosco ma odio profondamente).
Leggi il seguito di questo post »

Commenti (4)

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

Low cost multitouch table

Visto che sono vanesio vi linko un post che ho scritto sul blog del siti.
L’articolo si chiama Low cost multitouch table e riguarda una bellissima esperienza che ho fatto al ccc07.

Questa foto non c’entra, cioè c’entra in parte, riguarda sempre il ccc07 e mi piace molto.
eh, questa non è facile, è una palla da discoteca (quella con tutti gli specchietti) appesa tra degli alberi e con una luce puntata. È notte e i raggi di luce si confondono tra i rami e le foglie degli alberi che la circondano.

Questa invece c’entra con il titolo del post
schermo multitouch in azione con il della vita di John Conway

Le foto sono prese dal bellissimo book fotografico di ciro.

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