Skip to content

Monthly Archives: February 2006

Freedom languages

What, pray tell, is a “freedom language”? Freedom languages are those languages that put the individual programmer at the center of their philosophical world. They work hard to remove any language constructs that reduce programmer freedom, and add the most powerful constructs available. Many are post-modern languages and most tend to be [...]

My 1000th delicious item

I just noticed that my 1000th delicious item is Python On Lisp project. Isn’t the destiny coming towards me ?

It’s coming

E, episode nine (Distributed Computing)

There’s no much to write about E’s concurrency model after you read this enlightment (from E in a Walnut):

Multiple threads form the basis of conventional models of concurrent programming. Remarkably, human beings engage in concurrent distributed computing every day even though people are generally single threaded ([...]).

How do we simple creatures pull off the feat [...]

Writing a Widget Using Cairo and PyGTK 2.8, Part 2

I wrote a Python version of this C-based article.

/writing-a-widget-using-cairo-and-pygtk-28-part-2

GuidaTV goes Atom1.0

Hello, fellows Italian readers. I finished the first working version of guidatv.py. I transformed the tv guide to an atom 1.0 feed. So your favourite news reader can eat it.

You can find the (hopefully) once-a-day updated feed here: http://www.oluyede.org/files/guidatv

If you want the full code, let me know

Italian tvguide (or why Python is wonderful)

I wrote a simple script (for the italian guys) to scrape the content of an Italian tvguide website, all in less than 40 lines.

40 lines to me means Python and its tools are wonderful!

The script is very simple:

Builds the URI based on the today date with the datetime module. Retrieves the page with the [...]

HTML Stripper

I’m writing a scraper for an ill-formed HTML page (it uses the beautiful BeautifulSoup tool). At the end of the process I need to strip all the HTML away from a string. So I remembered the gorgeous HTML Sanitizer written by Mark Pilgrim for his feedparser.

Two minutes of customization after and I have htmlstripper.py.

It strips [...]

Delicious api is (partially) broken

Try these simple steps:

Open this page Confirm that posts/all actually returns all posts and the optional tag argument is used as a filter Open this link http://del.icio.us/api/posts/all. Fill in your delicious account info.

At this point the page has to be full of your posts data [...]

E, episode eight (Interfacing to Java)

Since E sits on top of the JVM is capable of using quite everything the Java world exposes.

Package access

We can import a class from the underlying Java virtual machine with the import statement, and speak to the Java object much as we would speak to an E object

[code lang="javascript"]

create a single vector with a direct [...]