Simon Willison’s Weblog

Newsletter
Atom feed

Blogmarks

Filters: Sorted by date

Hacking Contributed Models. Neat Django trick using monkeypatching to make some minor tweaks to built-in contributed models such as auth or flatpages.

# 11th March 2008, 5:51 am / contrib, django, monkey-patching, python

python4ply tutorial. python4ply is a parser for Python written in Python using the PLY toolkit, which compiles to Python bytecode using the built-in compiler module. The tutorial shows how to use it to add support for Perl-style 1_000_000 readable numbers.

# 11th March 2008, 5:49 am / compilers, lexing, parsing, python, python4ply

What Sucks About Erlang. Damien Katz shares his greatest frustrations from working with Erlang on CouchDB.

# 11th March 2008, 5:45 am / couchdb, damien-katz, erlang

IE8 speeds things up. Steve Souders notes that IE8 downloads script files in parallel before executing them sequentially, giving it a significant speed boost over other browsers that download sequentially.

# 11th March 2008, 5:42 am / browsers, ie8, performance, steve-souders

Major Update to Prism (via) Mozilla’s site-specific browser tool can now use separate profiles (and hence separate cookie jars) for each instance, making it an excellent tool for protecting yourself against CSRF vulnerabilities in the web applications you rely on.

# 10th March 2008, 2:03 pm / cookies, csrf, mozilla, prism, sitespecificbrowsers

Windows Live ID Delegated Authentication. Would make life a lot simpler if they just supported OAuth, but at least they include sample code in Python, Ruby and PHP.

# 8th March 2008, 3:19 pm / live, liveid, microsoft, oauth, php, python, ruby

Windows Live Contacts API (via) I didn’t realise Microsoft already have a contacts API for Live (which presumably covers hotmail as well).

# 7th March 2008, 5:57 pm / contacts, hotmail, microsoft, portablesocialnetworks, windowslive

JavaScript in Internet Explorer 8. John Resig’s analysis. News to me: IE 8 doesn’t support the W3C event model—I had assumed that would be a priority.

# 6th March 2008, 11:59 pm / ie8, javascript, john-resig, standards

Introducing the Google Contacts Data API. Brilliant! (and about time)—now there’s no excuse for asking your users for their Gmail username and password so you can import contacts from their address book. Yahoo! and Microsoft need to catch up on this one fast.

# 6th March 2008, 11:29 pm / apis, contacts, google, microsoft, portablesocialnetworks, yahoo

Welcome to Fire Eagle! It’s launched! A service and accompanying API for saving your physical location and selectively sharing it with applications that you trust.

# 5th March 2008, 7:05 pm / api, fireeagle, location, yahoo

Internet Explorer 8 Readiness Toolkit. The new built-in development tools look similar enough to Firebug to make me very happy. Also of interest: Selectors API (for fast getElementsBySelector), CSS 2.1 support, support for XHTML style namespaces in HTML, an interesting Web Slices feature based on the hAtom microformat and 6 connections per host (up from 2) which should make Comet easier.

# 5th March 2008, 6:28 pm / comet, css, hatom, ie8, javascript, microformats, namespaces, selectors, standards

Equidistant Objects with CSS. Handy tip; I needed to do this recently and ended up setting everything using pixels. This works much better.

# 5th March 2008, 9:26 am / css

Ward Cunningham’s Visible Workings. Intriguing idea: software that explicitly reveals the underlying business logic in end-user understandable terms. I didn’t find the example very easy to comprehend but the concept is fascinating.

# 5th March 2008, 1:53 am / jon-udell, ward-cunningham

How to Do Anything Photographic (via) A huge collection of excellent looking photography tutorials by Ken Rockwell.

# 5th March 2008, 1:12 am / ken-rockwell, photography

About our maps. Why and how EveryBlock rolled their own maps.

# 5th March 2008, 1:05 am / everyblock, mapping

Acid3 is out. The third Acid test, again compiled by Ian Hickson. This one viciously tests DOM Scripting standards compliance and currently exposes flaws in every browser.

# 5th March 2008, 12:34 am / acid3, ian-hickson, javascript, standards, web-standards-project

CouchDB, XML, and E4X. Brilliant—CouchDB now enables SpiderMonkey’s E4X support, meaning CouchDB views can easily query XML documents stored inside JSON objects using E4X syntax.

# 5th March 2008, 12:31 am / christopher-lenz, couchdb, e4x, javascript, json, spidermonkey, xml

Gears 0.2 Released! New modules are HttpRequest and Timer, both for use within workers (which provide Erlang-style message passing concurrency). Particularly interesting is that the Gears HttpRequest module can be used for much cleaner Comet implementations in IE.

# 5th March 2008, 12:21 am / comet, google-gears, internet-explorer, javascript

xssinterface (via) Clever JavaScript library for implementing opt-in cross-domain messaging in JavaScript (allowing communication between pages and iframes on different domains). Uses HTML 5’s postMessage API if available, otherwise falls back on either Google Gears or a clever cookie hack.

# 5th March 2008, 12:08 am / crossdomain, html5, javascript, postmessage, xssinterface

In-Depth django-sphinx Tutorial. Another neat Django extension from the guys at Curse: easy integration with the sphinx full text search engine.

# 5th March 2008, 12:03 am / curse, david-cramer, django, python, search, sphinx-search

Google Maps Without the Scripting. Google Maps has finally added a simple API for retrieving static map images.

# 4th March 2008, 11:54 pm / google-maps, mapping, staticmaps

WhatDoTheyKnow (via) New from mySociety: a site for submitting and publically tracking Freedom of Information requests to the UK government.

# 4th March 2008, 11:38 pm / foi, government, mysociety, political-hacking, whatdotheyknow

Making bridges talk. Tom Armitage hooked Tower Bridge up to Twitter: “I am closing after the MV Dixie Queen has passed Upstream”.

# 4th March 2008, 11:07 pm / tom-armitage, towerbridge, twitter

Table-Based Layout Is The Next Big Thing. Kevin Yank points out that the inclusion of display:table in IE 8 will finally open up a powerful tool for creating CSS layouts that has so far been mostly ignored.

# 4th March 2008, 11:01 pm / css, displaytable, ie8, kevin-yank, tables

Principles and Legality. Eric Meyer notes that language about legality in Microsoft’s recent IE announcement suggests that Opera’s much criticised EU threat may have helped positively influence the result.

# 4th March 2008, 7:45 pm / eric-meyer, ie8, law, microsoft, opera, standards

ExpanDrive. Looks like this SFTP mounting application for OS X fixes the problems I’ve had with sshfs (which tends to freeze things up if you lose your network connection while using it).

# 4th March 2008, 7:32 pm / expandrive, john-gruber, sftp, ssh, sshfs

Two data streams for a happy website. Useful architectural concept for scaling: keep user-specific and generic data separate from the start, in recognition of their different caching and partitioning constraints.

# 4th March 2008, 4:40 am / caching, scaling

The real reason Google’s clicks are flat. Rich Skrenta explains that Google’s recent reduction of the clicable area in Adsense ads, while reducing click-throughs by 60%, will eventually balance out due to non-accidental click-throughs being worth more to advertisers.

# 4th March 2008, 4:34 am / adsense, clickthroughs, google, rich-skrenta

Years

Tags