De VPRO heeft een nieuw logo en dito huisstijl, gemaakt door het Amsterdamse bureau Thonik. Zo’n verandering gaat natuurlijk niet onopgemerkt voorbij.
Opvallend is dat mensen het hebben over de ‘nieuwe’ site en de ‘nieuwe’ tune. De website werkt al bijna een jaar op de huidige manier (met het oude logo en vormgeving), en de tune is al onveranderd sinds dat ELO het uitbracht in 1982.
Thanks to a Superuser question i asked a few weeks ago i discovered the wonderful iReader plugin for Google Chrome. It mimics Safari 5.0′s new Reader functionality almost to perfection (hopefully Apple won’t be pointing their copyright lawyers to this blogpost right now). The ‘Reader’ option in Safari gives you an uncluttered view of an article on a website without ads and nice fonts, a bit like Readability or Instapaper but with multi-page support.
It doesn’t quite render multi-page articles perfectly, such as the infamous Wired article on the death of the web. But Safari’s Reader doesn’t render that correctly too.
There’a also a beta version available for Firefox.
Sorting in Javascript using the Array.sort() function doesn’t work how i thought it did:
var foo = [3, 4, 5, 2, 1];
foo.sort(function(a,b) {
return a < b;
});
console.log(foo);
In Firefox this gives the result you expect ([1,2,3,4,5]), but in Chrome and Safari, it doesn't (and in IE too probably). When re-reading the spec at Mozilla's dev site i discovered why:
If compareFunction(a, b) is less than 0, sort a to a lower index than b. (…) If compareFunction(a, b) is greater than 0, sort b to a lower index than a.
So, the return value should not be true or false but -1 or 1. The example above should be written as: