Simply Jonathan

This is Simply Jonathan, online writing habitat for Jonathan Holst. In here, you may find content divided into three main categories: links, notes and essays. The links are to external content of interest; the notes are small thoughts and ponderings; the essays are longer, more thought-through entries, often debating a subject thoroughly. Read more about Jonathan and this site.

Archive for March 2007

Rolling Stones - Sweet Neo Con

13 March 2007, 6:08 PM CET +0100

It’s liberty for all
‘Cause democracy’s our style
Unless you are against us
Then it’s prison without trial.

No /osx/

12 March 2007, 6:28 PM CET +0100

It worked for Zeldman, so I’ll have a shot: Why isn’t apple.com/osx/ pointing to a relevant page? I mean, sure, apple.com/macosx/ works, but it would make sense that /osx/ did so as well.

But that’s just my opinion.

Placebo - Pure Morning

12 March 2007, 4:18 PM CET +0100

A friend in need’s a friend indeed,
A friend with weed is better.

Html2css

10 March 2007, 3:35 PM CET +0100

I just started my first project at Google code: html2css, a project I’ve been working on for some weeks now.

html2css has one simple function: Turn an HTML file into a CSS file. This is a functionality I’ve become increasingly aware that I need; I often find myself in a situation where I’ve mocked up the entire HTML document, and then have to perform the tedious task of applying it all in my CSS file, which often leads to a disorganized mess.

It uses the incredible Beautiful Soup library, meaning that it can tolerate even the worst piece of HTML — it manages to produce a valid representation of a Google search.

There are two files of interest in the project (discarding the bundled beautifulsoup.py). The first one is html2css.py where most of the magic happens. The other is writecss.py which is a useful extension of html2css. It allows you to turn your HTML into CSS, respecting earlier generations from html2css. This means you can generate a CSS file for one HTML structure, add some CSS rules, modify the HTML, regenerate the CSS, and your rules will still be present, given that you haven’t modified the element they’re attached to.

This is a 0.1 release, but it should be pretty stable. Comments appreciated.

System of a Down - P.L.U.C.K.

1 March 2007, 1:22 PM CET +0100

Revolution, the only solution.