Simon Willison’s Weblog

Newsletter
Atom feed

Blogmarks

Filters: Sorted by date

Styling File Inputs with CSS and the DOM. Clever hack to style the un-stylable: set the opacity of the file input to 0, then use a bit of JavaScript to make sure the (now invisible) browse button is always under the mouse.

# 10th September 2007, 11:58 pm / css, fileinput, opacity, shauninman

The Tale of the Mechanical Virus. “What I had discovered, in essence, was a mechanical virus. It infects Mac laptops and speads via the DVI adapters.”—I really hope this isn’t why my DVI adapter is on the blink.

# 9th September 2007, 12:11 pm / apple, dvi, mac, mechanicalvirus, virus

django-sphinx (via) More code from Curse Gaming; this time a really nice API for adding Sphinx full-text search to a Django model.

# 9th September 2007, 12:35 am / cursegaming, david-cramer, django, full-text-search, orm, python, search, sphinx-search

wikimarkup (via) “MediaWiki markup in Python”. I’ve always suspected that MediaWiki was like Perl; the only thing that can parse MediaWiki is MediaWiki. Not sure how faithful this Python port is but I’d love my theory to be proved wrong.

# 9th September 2007, 12:33 am / cursegaming, david-cramer, mediawiki, perl, python, wikimarkup, wikis

Advanced Django. Slides from my hour long tutorial at PyCon UK this morning. Most of the material was adapted from OSCON, but I also added a new section covering newforms.

# 8th September 2007, 1 pm / django, newforms, pyconuk, pyconuk2007, python, slides, slideshare, my-talks, tutorial

Google Maps API gets clickable polylines and polygons. Interesting explanation of how they optimised calculating the distance to the nearest point on a polyline.

# 8th September 2007, 12:58 pm / algorithms, googelmaps, google, javascript, polygons, polylines

Corrupt countries were more likely to support the OOXML document format. “We used the 2006 CPI index (Corruption Perceptions Index) as a measure of corruption.”—a statistical study by Electronic Frontier Finland.

# 7th September 2007, 11:30 pm / corruption, effi, finland, microsoft, ooxml

Protoscript (via) JavaScript tool designed for easy prototyping of JS interactions; powered by YUI and jQuery.

# 7th September 2007, 10:55 pm / bill-scott, javascript, jquery, libraries, protoscript, prototyping, yui

HTTPOnly cookie support in Firefox. Five years after the bug was filed, HTTPOnly cookie support has gone in to the Mozilla 1.8 branch. This is a defence in depth feature that has been in IE for years—it lets you set cookies that aren’t available to JavaScript, and hence can’t be hijacked in the event of an XSS flaw.

# 6th September 2007, 6:27 am / brad-fitzpatrick, firefox, httponly, internet-explorer, javascript, mozilla, security

Opera 9.5 (Kestrel). The latest Opera alpha includes a bunch of CSS3 features (including an almost full implementation of CSS3 Selectors) as well as the ability to use SVG for scalable background images.

# 4th September 2007, 10:49 am / anne-van-kesteren, browsers, css3, opera, opera95, releases, selectors, svg

Django on Jython: What I’ve done until now. It’s not quite there yet (the new Jython is Python 2.2 with a few 2.3 features; Django requires 2.3 at least) but it’s looking pretty promising.

# 4th September 2007, 2:53 am / django, java, jython, python

Primary & Secondary Actions in Web Forms. Fascinating results from an eye tracking study on the placement of “Submit” and “Cancel” buttons—one layout was a whole six seconds slower than the others. Luke Wroblewski’s “Web Form Design Best Practices” book looks like it will be excellent.

# 4th September 2007, 2:52 am / design, eyetracking, formdesign, forms, luke-wroblewski, usability

CouchDb: Some Context. CouchDb developer Jan Lehnardt wrote up detailed notes on slides from a presentation he gave back in June, explaining most of what’s interesting about CouchDb (although without the new JavaScript function query language).

# 4th September 2007, 2:31 am / couchdb, jan-lehnardt, javascript, nonrelational, slides

Imaginary numbers. “We would like to back up our survey with an equation from an expert to work out which celebrity has the sexiest walk, with theory behind it”—Ben Goldacre provides inside information on how PR firms invent science to back up their campaigns.

# 3rd September 2007, 6:22 pm / badscience, ben-goldacre, pr, science

Amazon EC2 Basics For Python Programmers. Detailed introduction and tutorial from James Gardner.

# 3rd September 2007, 6:20 pm / amazon, ec2, james-gardner, python, tutorial

How much is that standard in the window, the one with the lovely tale? “The real loser in this could be ISO’s reputation itself.” Simon Wardley summarises the embarrassing shenanigans surrounding ISO’s rubber stamping of Microsoft’s OOXML.

# 3rd September 2007, 4:49 pm / iso, microsoft, office, ooxml, simon-wardley, standards

CouchDB: Thinking beyond the RDBMS. CouchDB is a fascinating project—an Erlang powered non-relational database with a JSON API that lets you define “views” (really computed tables) based on JavaScript functions that execute using map/reduce. Damien Katz, the main developer currently works for MySQL and used to work on Lotus Notes.

# 3rd September 2007, 9:48 am / couchdb, damien-katz, databases, erlang, javascript, json, lotusnotes, mapreduce, mysql

Freebase developer documentation. The JSON API and particularly the query language are fascinating.

# 3rd September 2007, 2:38 am / api, freebase, json

Freebase. Out of closed beta, although you still need an invite code to contribute. I hope they drop the JavaScript requirement for viewing content on the site.

# 3rd September 2007, 2:35 am / freebase, inaccessible, javascript

Obviously, it’s not Obvious. “It was obvious to us that FeedBurner was a very powerful concept around which an ecosystem could flourish. It wasn’t obvious to most other people until they actually saw several examples of people using FeedBurner in powerful ways.”

# 3rd September 2007, 2:09 am / dick-costolo, entrepreneurship, feedburner, obvious

calendar.timegm() (via) An “unrelated but handy function” that converts a time.gmtime() in to a corresponding Unix timestamp. I’ve been hand-rolling this one for years; never thought to look in calendar.

# 3rd September 2007, 1:54 am / calendar, datetime, python, sam-ruby, time, timezones, unixtimestamp

It Is Estimated That NBC Could Not Have Screwed This iTunes Thing Up Any Worse. NBC’s request that Apple “stiffen anti-piracy provisions” is down-right scary.

# 3rd September 2007, 1:42 am / apple, john-gruber, macos, microsoft, nbc

Sam Ruby: 2to3. Sam’s report on an attempt to port the Universal Feed Parser to Python 3.0. The 2to3 tool does most of the work, but it seems the unicode changes can be pretty tricky.

# 3rd September 2007, 1:38 am / 2to3, feedparser, python, python3, sam-ruby, unicode

Django vs feedparser on dates. Some useful tips in the comments. I find Python’s timezone stuff endlessly frustrating: I know it can do what I want, but it always takes me a ridiculously long time to figure out the necessary incantations.

# 2nd September 2007, 10:17 am / datetime, django, feedparser, python, timezones

Wikipedia trust colouring (with demo) (via) “The text background of Wikipedia articles is colored according to a value of trust, computed from the reputation of the authors who contributed the text, as well as those who edited the text.”

# 1st September 2007, 1:42 am / kevin-gamble, trust, ucsc, wikipedia

What’s New in Python 3.0. They’re definitely taking advantage of the break in backwards compatibility—lots of niggling inconsistencies are finally being cleaned up.

# 1st September 2007, 1:41 am / python, python3

Webistrano. Web based interface for managing Capistrano deployments. Cal recommends having a “deploy to live site” button in his book; this looks like an easy way to build that.

# 31st August 2007, 11:05 pm / cal-henderson, capistrano, deployment, webistrano

Python 3.0a1 released. Wow, that was a pretty fast turnaround. Betas are planned for 2008, with a final release scheduled for August.

# 31st August 2007, 8:36 pm / python, python3

They promised us jetpacks, too. Ben Hammersley points out that the recent flying car story has done the rounds many times before. I’m sure I remember it from my childhood.

# 31st August 2007, 10:28 am / ben-hammersley, flyingcar, moller

Years

Tags