Page of Sebastian Gfeller

2010-10-27: MTV

I should really be coding, but my mind’s not up to it, so have some music:

Oh, and check out YouTube5, because we don’t really like Flash, do we?

Permalink

2010-10-17: Mehr Herbst

After the walk I visited the EPFL Learning Center for the first time and was quite impressed even though the color scheme made my gray sweater the perfect camouflage. What adds to the building’s sober atmosphere is the museum rope preventing you from climbing two slopes in the building — you’re there to learn after all.

That’s all I could come up with today, expect more as soon as I have cured my worrying.

Permalink

2010-10-09: Perl 6 experiments

It’s Saturday morning and I couldn’t think of anything to do this weekend. Or the rest of the year for that matter.

Maybe last year’s Perl 6 Advent Calendar will get me started again…

Update: With the calendar and many, many Google searches, I finally coded something: The indoor swimming pools in Geneva have somewhat erratic opening hours, and the only way to look them up is by downloading a PDF calendar from the city's web page whose location changes every month.

So I wrote a little Perl 6 script that does some screen scraping, presenting me (most of the time) with today's opening hours: piscines.pl.

For it to work, you will need the pdftotext tool from the xpdf suite (you can install only the command line tools by using ./configure --without-x. cURL is used for downloading, but feel free to use whatever command line tool you like for this (just mind the parameters). Of course you will also need a recent version of Rakudo Star.

The current implementation is still difficult to use because stuff that is specified is not yet implemented. The ability to explicitly specify types (and other constraints) and the new regex syntax make this a promising language. Also, the Whatever type is just a cool concept.

Permalink

Older entries | Newer entries