An old Planet bug resurfaces

So, I see that Planet still hasn’t fixed the bug I pointed out (and provided a patch for) in 2008. Specifically, it sorts entries by “updated” rather “published”. As a consequence, some years-old blog posts I recently re-tagged showed up as new on Planet NUUG.

Here’s the patch, although I have no idea whether it still applies:

--- __init__.py.orig    2006-07-27 02:01:54.000000000 +0200
+++ __init__.py 2008-01-28 11:38:02.000000000 +0100
@@ -924,7 +924,7 @@
         added in previous updates and don't creep into the next one.
         """
 
-        for other_key in ("updated", "modified", "published", "issued", "created"):
+        for other_key in ("published", "issued", "created", "updated", "modified"):
             if self.has_key(other_key):
                 date = self.get_as_date(other_key)
                 break

Bensinpriser

Petter Reinholdtsen skrev nylig om Bitfactorys bensinpris-app (iOS, Android) og mangelen på dokumentasjon av protokollen den bruker for å laste ned priser fra databasen deres.

Jeg har lenge lurt på hvorfor ikke Forbrukerombudet pålegger stasjoner å rapportere inn prisene slik at forbrukere kan sammenligne før de velger hvor de skal fylle. Det kan hende at de mener at det er nok konkurranse i markedet, eller at det ville være en urimelig kostnad. Sistnevnte er imidlertid ikke et holdbart argument iom. at alt er automatisert; det ville aldri være snakk om manuell innrapportering. Continue reading “Bensinpriser”

Sherlock

Having watched season 1 and the first episode of season 2 of Sherlock, I absolutely love the show, although 2×01 was very weird; very slow, very drawn-out, you think they’ve wrapped it up then discover that it was just the beginning. A bit like those games I shall not name where you play for 20 or 30 hours before you realize that was just the tutorial. Continue reading “Sherlock”