Earlier I ran some speed/accuracy tests of Beautiful Soup driven by various parsers. Python's built-in HTMLParser scored very poorly, parsing only 52% (Python 2.7.1) or 57% (3.2.2) of my test pages without raising an exception. Well, Ezio Melotti, the maintainer of HTMLParser, has been working for a while on improving HTMLParser's handling of bad HTML. Most of this code is in Python 3.2.2, so I should have been getting the benefit, but it wasn't working for me because of a semi-related bug in HTMLParser, which is fixed in the as-yet-unreleased 3.2.3.
After talking with Ezio today, I was able to monkeypatch BS4 to avoid the bug in 3.2.2. This means on Python 3, BS4 with no external parser installed will give reliability comparable to BS4+lxml (98% versus 99%). It's still about 50% slower, though, parsing about 1300 kb of HTML per second, versus 2100 kb/second for BS4+lxml.
February 06, 2012 09:55 PM

http://i26.photobucket.com/albums/c144/pacey78/nickleback.jpg
February 06, 2012 09:47 PM
man, stay fucking classy, republicans
February 06, 2012 09:47 PM
Vienna-based art collective Monochrom has released the short film Earthmoving, a prequel to their forthcoming Sierra Zulu feature film (previous post). Earthmoving was filmed on location at the UN headquarters in Vienna, Austria.
Another day at the United Nations Offices in Vienna. The Austrian Foreign Affairs Ministry invited members of the European Protocol Service, the UN Strategic Command Center for Central Europe, the United States Air Forces and a regional politician from Lower Austria to talk about the future of Soviet Unter-WHAT?!
February 06, 2012 09:43 PM
Dan The Automator fans should get goosebumps while watching this preview for his new Pillowfight project with singer Emily Wells. The upcoming album, due later this year, also features scratches by Kid Koala (who’s worked with Dan past project such at Lovage and Deltron 3030) and well as visuals by David Choe.
Wells has been previewing some Pillowfight songs during some recent shows with Kid Koala (see video below). I’m digging the mix of soulful vocals with Dan’s catchy beats. It’s somewhat reminiscent of his Handsome Boy Modelling School track with Chan Marshall of Cat Power.
February 06, 2012 09:26 PM

Fast food chain Jack in the Box is now serving the Bacon Shake, a limited edition bacon-flavored milkshake made with “real vanilla ice cream, bacon flavored syrup, whipped topping and a maraschino cherry”. It’s part of a bigger campaign called Marry Bacon which asks, “If you like bacon so much, why don’t you marry it?”. The campaign includes a bacon-centric Tumblr feed, a purchasable bacon tuxedo t-shirt and more.
via Eater
February 06, 2012 09:21 PM
Bryan of Chicago-based Coudal Partners created Red Blooded, a love story for Tracie, his wife of 14 years told using Coudal’s new hand-letterpressed product, a red Field Notes memo book.
February 06, 2012 09:01 PM

Danyelle of [dandee] designed her delightful Love Bug Valentines as a way to send her first-grade son to school with unique non-candy Valentine’s Day cards. She has included a template and full instructions on how to make these cards at home.
via Craft
February 06, 2012 08:18 PM