Tuesday, July 15, 2008
Wednesday, July 2, 2008
Look! Better Comment-y stuff!
Only a few years (about ten) after everyone else, Blogger has, as you can see, got proper comment boxes. You have to explicitly enable them, and you have to be using the Draft control panel for the moment, but they're fine once enabled.
I've had a lot of complaints in the past over the horrors of the conventional Blogger comment posting setup, so hopefully this will be more satisfactory.
I apologise, by the way, for my recent radio silence; I just haven't really felt like blogging...
Tuesday, June 24, 2008
Wacky Amazon reviews
There's nothing quite as fun as the Amazon reviews on an even slightly controversial book. Here's a particularly good example. One K. Leyendecker, from (surprise) Texas, has copy-and-pasted the same review onto five books for children which involve homosexuality. Apparently 'Gos' (God's brother with the speech impediment?) doesn't like the gays. Funnily enough, one of the books has another negative review, from a lesbian couple who liked the pictures, but were unimpressed with the storyline.
Also amusing are the reviews on Colleen McCullough's historical novels about the late Roman Republic. Because all the negative ones are entirely at cross-purposes. "This book has naughty words in it" sits beside "There's far too much boring history in this; more sex please", "There are no admirable characters" (why is this a flaw?) sits beside "she's obsessed with Caesar", "If you want accurate historical novels about Rome, read Graves" (eh?) sits beside "It's too precise; I prefer Graves, with all his inaccuracy" (quite right; I Claudius is great but largely made up) and so on and so forth. A few people are also offended by the extreme length of the books; generally about 800 pages. It's really quite strange; the vast majority of the reviews are very positive, but there are people who seem to consider the things patently unreadable.
I love this:
I'm fairly certain she included every single Roman name ever found in any ancient document anywhere, and since this is Rome, they're all pretty much the same. You're constantly having to either turn back the page to try to remember who the ten dozen people mentioned on this page are, or simply skimming over it, assuming (usually correctly) that they are utterly irrelevant to the basic story.
Highly recommended, by the way, if you're the sort of person who isn't scared of 800 page books about people with similar names backstabbing (figuratively and occasionally literally) each other. I Claudius is shorter, but contains more incest and mad great-aunts.
Wednesday, June 18, 2008
Going back to the dark side
As I may have mentioned here before, I haven't been eating chocolate for a good while. Initially it was a health thing; eventually, though, I just found I didn't like it anymore.
So anyway, today I had a dark chocolate kitkat with my coffee. Yep, they come in dark chocolate now. There's also a 'fine dark chocolate kitkat', it seems; in this case, 'fine' means '6 fewer calories'. Well, forget that; if I'm having a kitkat, it may as well be the one with six extra calories. Actually, Nestle's website informs me, the 'fine' version is differenciated by having proper bitter dark chocolate. Hmm.
It turns out that kitkats with nice black coffee are actually lovely. Oh, dear.
If you find me in a few weeks dead and 100 stone, it may just be a chocolate overdose.
Monday, June 16, 2008
All is not lost
Well, it turns out that, even though we have of course, by rejecting the Lisbon Treaty, embarrassed ourselves in front of Europe, and screwed ourselves for the future, we have made one small gain.
Apparently, the Neo-Nazis love us! Le Pen, for instance, is overjoyed.
On the other side of the pond, I doubt America's horrible, horrible Neo-Cons are too devastated, either.
Proud to be Irish, much?
It's the end of the world as we know it...
Tesco's new advertising tells you that you're comparatively poorer than you were, and that Tesco can help you with this. It's a little scary that the economic trouble has gotten to the point where they're comfortable saying that.
Care for a Wall Fish?
Time Warner Cable is a US cable company which is bringing in expensive low-capped Internet service on a phased basis, to replace their uncapped service. I bet they're popular.
Anyway, on a whim, I decided to take a look at their price list. All a bit ho hum, except for one item. It's under installation.
"Wall Fish $75". Erm, I'm sorry, what? No explanation is offered. The Internet is unhelpful on the subject. Wikipedia tells me that it was a Roman euphemism for this:
I doubt that that is what Time Warner means, though; at any rate I hope it's not.
Sunday, June 15, 2008
Bike Sex case
That man who was caught having sex with a bicycle (eh? How does one have sex with a bicycle) in Scotland was given three years probation a few days ago. He was also placed on the Sex Offenders' Register. He was caught with the vehicle when a cleaner used the master key to unlock his bedroom door in a hostel.
Now, okay, it's weird, and he should probably have told the cleaner not to come in, but really, if a cleaner had unlocked his door when he was masturbating, or having sex with a person, would it have been an issue? Surely one has a reasonable expectation of privacy in this sort of circumstance? Is having sex with a bicycle in itself to be considered illegal? If so, why, and how on Earth are they defining sex?
Update: Apparently, he continued shagging the bike when the cleaners came in. Okay, maybe it's more reasonable then. He also referred to them as 'hens', though this may be a Scottish thing. Of course, then, his offence isn't really having sex with a bicycle, it's exhibitionism or something.
There was also an electrician who was allegedly having sex with a pavement, but that's just silly.
Saturday, June 14, 2008
Fox-News-Tastic
Fox "News" is a propaganda channel for crazed racist troglodytes, popular in America; shocking, eh?
Anyway, the wonderful Gawker has compiled some of the more amusing things that Fox I-Can't-Believe-It's-Not-News said about Barrak Obama, noted Muslim/Atheist terrorist (no, really, this is what a surprising proportion of the American population seems to believe).
Have a look. It's hilarious, or at least it would be except that you have to assume that if people think Fox is news, they will take it somewhat seriously. It runs the full gamut from racism to accusations of terrorism to incitement to murder. I'm pretty certain a lot of it would be classed as illegal hate-speech in Europe. As, possibly, it should be; it's the duty of the media not to actually lie to stupid people.
Haircut-y mishap

Lessons learned; 'fairly short' sounds pretty much like 'very short', especially when the barber (barbress? What's a female barber?) is talking to someone across the room while you say it.
Oh, well, it's actually reasonable enough; it's just shorter than I've had it for ten years or so.
Monday, June 9, 2008
iPhone!
Well, Apple announced a new iPhone today. Oh, I am excited! It looks lovely; slimmer than the old one, better battery life, faster, 3G, GPS, and, most significantly, way cheaper; Jobs alleged that it would be under $199 everywhere that it's being sold! It'll be available on the 11th of June; I'm going to be sorely tempted, I know...
Watching the stock price was quite interesting; Apple's fell throughout the keynote, then surged up when the 3G iPhone itself was announced. If you had some nerves, you could make a fair bit of money on Apple's keynotes; this is always the pattern. Research in Motion's (the Blackberry people), meanwhile, fell sharply, then recovered slightly; they're still a bit down. Not surprising; given that the new iPhone has Exchange integration and so forth, it's easy to see that it could be a threat.
There were two other interesting announcements. The first, I feel, is a terrible mistake on Apple's part. They're relaunching an enhanced .mac service at me.com, with email, calendars, photos, files and so forth syncing to the phone. The big mistake, in my mind, is that they are going to be charging for this; $99 a year. You might think that many people would be willing to pay for the convenience. Which leads me to the other interesting announcement.
One issue a lot of people had with the iPhone SDK was that you can't have apps running in the background; this would, on the face of it, make it very hard to write an app which notifies the user, or does something, when something happens. Noticing this deficiency, Apple are releasing a service which allows third parties to push messages to peoples' phones, notifying them that something has happened. With this, and the Google APIs, it seems to me that one could more or less replicate the me.com functionality with Google's services quite easily, and for free, or at least for far cheaper than Apple are doing it. Everyone already has Google accounts, too. I'd be amazed if me.com is a success.
One other thing; no video-conferencing with forward-facing camera, as was much-claimed beforehand. No loss, say I; I've never been convinced that anyone uses videoconferencing except to impress people in big corporate conference rooms, or to show dodgy Internet people their naughty bits. Exhibitionists will just have to stick to Nokia for now.
All in all, I'm really impressed... and I really want one. (an iPhone, not an exhibitionist). I supppose I could justify it to myself on the basis that I might write apps for it and sell them on the app store...
Oh, also, MacOS 10.6 is coming out in a year or so. It doesn't look terribly interesting so far, though besides the now-mandatory faster Javascript, they'll apparently be doing clever things with GPUs and many-core computers. Making a HPC bid, perhaps? Cray already have the glamour supercomputer market sewn up, I suspect...
The beginner's guide to Clojure
What is Clojure, I hear you ask? Well, as you know, in the last decade or so, Sun's Java thing has taken the world by storm. Few can deny that it is acceptably fast for most purposes, nor that it will run just about anywhere with sufficient prodding and coaxing, nor even that it has plenty of handy libraries for every occasion, and a GUI library which, while revolting, is a great deal less revolting than most other very cross-platform GUI things; I'm looking at you, TK.
The problem is that Java the Language, as opposed to Java the Virtual Machine or Java the Rather Strong Sort Of Coffee, Now Out Of Favour And Replaced By Varieties From Famine Hotspots, is really, really, amazingly bloody awful. Shockingly bad. It's like C++ with a memory manager stuffed in and most of the useful stuff sneaked out the back door. Things aren't all bad; the Java implementers are slowly adding scary things like generics, and who knows, there may be closures and multiple inheritance and unsigned integers before the decade is out! Okay, well maybe the century. Anyway, the point is that as it stands Java is unusable, except by masochistic website developers who somehow think that it being a pseudo-industry-standard forgives all, and that writing endless reams of crap again and again and again builds character, anyway.
How, then, do we get the admitted convenience of the JVM without having to wrap things in endless other things just to make them vaguely usable? Fortunately, more Java-tolerant people than I have looked into the issue, and have produced other languages targeting the JVM. Lots of them. They are legion.
Some are re-implementations of nice-ish languages, like Python, Ruby, and Common Lisp. These, sadly, tend to have one thing in common; they don't work properly. Then there are endless Schemes, as is required for any VM whatsoever, a variety of scary BASIC derivatives, frankly sick and twisted things like COBOL for the JVM, nasty things designed by XML fetishists... and then there are the oddities. Clojure is one such, as is Scala. These are effectively new languages, albeit heavily influenced by older tongues, for the JVM.
Clojure, which, I think, was the original point of this ramble, is a Lispish, brackety creature; it also has funny concurrency stuff, of which more anon. It's really quite nice, though it has its quirks.
A big problem with these funny little new languages is generally that there is no acceptable way to work with them without going mad. There's no IDE, no tools, no debugger... Fortunately, this turns out not to be the case with Clojure. There is a port of the SLIME backend (SLIME is a nice Emacs interaction mode for Common Lisp). The one tiny little problem is that nowhere on the great wide Internet, as far as I can see, is there any guide to getting this stuff set up.
Here we go, then.
First, you'll want the SVN version of Clojure. The packaged version Will Not Do for these purposes, it seems. Actually, aha, fooled you, you'll want Apache Ant first; it is a scary tool for building Java projects. Yes, of course it has plenty of XML; did you even need to ask? Get it and install it, then in your checkout, type 'ant jar'. This will cause a JAR file (a ZIP of compiled Java code) to appear before you in short order.
You'll then want to get all three things from here. One is a script to run Clojure conveniently, one is a standard Emacs mode, and the third is the SWANK backend. Set up the script, and put the other two somewhere.
Right. You will now want a .emacs file something like this:
(setq slime-lisp-implementations
'((clojure ("/Users/robertsynnott/bin/clojure") :init clojure-init)))
(add-to-list 'load-path "/Users/robertsynnott/clojure/clojure-mode/")
(require 'clojure-mode)
(add-to-list 'load-path "/Users/robertsynnott/clojure/swank-clojure/")
(require 'swank-clojure)
(add-to-list 'load-path "/Users/robertsynnott/lisp/slime/")
(require 'slime)
(set-language-environment "UTF-8")
(setq slime-net-coding-system 'utf-8-unix)
(slime-setup)
Obviously, you should substitute paths on your own system; mine has quite enough to be doing.
You may now restart Emacs, and type M-x slime. All going well, you should be presented with a Clojure REPL. You may now open a file to put stuff in; the mandated extension is '.clj', displeasing in that, to me at least, it suggests both Common Lisp and Java; Clojure is neither. Possibly I am being over-paranoid. Depending on the phase of the moon, you may or may not have to do M-x clojure-mode to get things to behave, at that point.
You now have Clojure running! Try typing '4'; you will note that you get '4' in return. This pleasing result can be replicated for even very large numbers.
What's Clojure like? Lisp-ish... mostly. There are extra types of bracket, you see. [] are for arrays and various other things; {} are for dictionaries/hash tables. A function looks like this:
(defn bla ([x] x)
([x y] (+ x y)))
You will note that there's a weird pattern matching thing going on here; (bla 4) will return 4 while (bla 4 5) will return 9. lets are similar:
(let [[a b c] [1 2 3 4]]
b)
That gives you 2; it's a little like a combination between a Common Lisp let and destructuring-bind. I actually quite like this; it looks like the sort of thing CL should have.
There are also multimethods! They're not as cabable as those in CLOS, to be sure, but a fair bit better than Java's OO system. They operate on dictionaries as objects, for some reason.
Then there are the weird concurrency things. One is a Software Transactional Memory system, meaning that it behaves a bit like a database, it seems; the other is something similar to Erlang's message passing. I like these; so much nicer than mucking around with proper threads.
There are also quite nice semantics for talking to scary ol' Java, when it becomes necessary.
I've barely scratched the surface, of course, but the online guide is well worth a look, if you're interested.
Would I actually use it? Hmm, well, now, I'm not sure. There's certainly an appeal; if I was doing something which might ordinarily call for Java, Clojure might be a nice substitute. Your mileage may vary, of course, but I'd say it's definitely worth looking into.
Sunday, June 8, 2008
Embarrassing iPhone article from CNN, and Flash musings
The iPhone is on everybody's mind right now, or at least on the minds of all us obsessive Apple followers. It seems fairly certain that a new version, probably 3G, will be released tomorrow.
Here's CNN's take (on the speculative patent-based third-generation iPhone, which they think is the fourth-generation one because the second-generation one due out tomorrow has '3G' in it, you see...). Besides the talk of noted always-just-round-the-corner vapourware Wi-MAX, there's this gem:
Just how will Apple meet expectations? Using the patent application as a guide, Apple appears to be making room on the iPhone for flash memory, which means an end to Apple's standoff with Adobe (ADBE) that's kept iPhones from easily viewing a plethora of Internet videos.Erm. Right. Having more Flash memory makes Macromedia/Adobe Flash faster, you see. The fourth-generation (fifth, or possibly nineteenth in CNN land) will have Java memory to make Sun's Java faster, and possibly Office 2009 memory to make Exchange faster.
Apple has said that Adobe's flash media player, which is on hundreds of other phones, doesn't perform up to Apple's standards for the iPhone.
Honestly, I realise that they're not a technology writer, but could they at least have someone proofread this crap?
Also, what is going on with that Flash thing, I wonder? The iPhone isn't dramatically slow, and most non-video Flash apps aren't that demanding. If I had to guess, I would say that it was more of a manifestation of Adobe's slowness to port to new platforms (no x86-64 version, yet, remember), and possibly a bit of payback for Apple's cruelly grabbing the Carbon rug from beneath their feet; the next version of Photoshop for MacOS will only be 32bit, allegedly, because Carbon (Apple's old, creaky, SDK, used by Photoshop, MS Office, MCL, various others, and for that matter, I believe, Flash) never made it into the 64bit world; they'll have to switch to Cocoa for that.
Could that be the issue with Flash-on-iPhone? iPhones don't do Carbon at all, I don't think; it's entirely possible that Adobe just didn't have a suitable plugin in time.
Words of wisdom from Fathers for Justice
Apparently the plight of fathers in the UK currently is 'the biggest breach of human rights since the Holocaust'. So sayeth madman on roof of MP's house wearing Superman costume. And they're offended that no-one takes them seriously?
Saturday, June 7, 2008
SingStar PS3
SingStar's a console kareoke game, where you have to sing along with songs, and get points based on how well you do. It's great! Well, I love it; your milage may vary.
Anyway, previously it was a PS2 only thing; there were about 30 titles, each with 20 or so songs and music videos. With their PS3 version, they've done something clever; you can download songs (with videos) for 1.49 euro. It's terribly addictive; I can't wait til the next new batch of songs turn up for it! The odd thing is that you'd expect that they'd make more money on the version where you have to buy new disks for 50 euro or so; possibly the 1.49 impulse purchase thing works out better for them.
The trouble with video blogging
Much has been made of the potential of videos on the Internet. Thousands of people do 'video blogs', and any new web framework or whatever worth its salt will have roughly 50 narrated screencasts of how to make a blog or clone Reddit or whatever.
The thing is, does anyone actually watch these? The equivalent in text is nearly always easier to follow, quicker to read, and less bloody irritating. I've never sat through a whole episode of a 'video log', or, indeed, one of the web framework videos. And yet I read lots of normal blogs, and articles on web frameworks and similar. I seriously doubt that I am alone in this.
They're more trouble for the maker as well; you need equipment, and somewhere to put the things, and I suspect they take longer to make than the equivalent would to write. Then there's the whole 'putting video of yourself talking on Internet' psychological aspect. I know I wouldn't really be able to deal with this; I can barely look at still photos of myself without vague irritation, and cringe if I ever hear my voice recorded.
Robert Scoble, noted ex-Microsoft person who blogs enthusiastically about Web 2.0 stuff, is a prolific video blogger, producing hour-long videos where he talks. Why, exactly, this is better than an audio recording of him talking, or, indeed, than the text version thereof, is unclear, but he, and many others seem to be really, really keen on the idea. He even, apparently, films the damn things in HD; quite why anyone would want the image of Scoble going on on their screen to be a higher-resolution version is unclear. Showing off would be my suspicion.
So, am I just a weird luddite? Or is it the case that no-one actually watches these things?
Thursday, June 5, 2008
Big Brother-tastic
Apparently, today is the first day of the Big Brother of the month.
One of the candidates (Luke) is, well, 20, business student, doesn't drink, doesn't smoke, wears suits all the time. I fully expect him to be pregnant and addicted to heroin by the end of it.
He is also annoyed by people who think he has a speech impediment; he says he doesn't. Erm, I'm not sure if that's the sort of thing that's for you to decide, dear.
Update: There's also a really horrendous gay. I may have to become a straight for a few months to avoid association. I mean, I'm all for tolerance, but he's sort of the gay equivalent of those straight guys who... well, actually I've never met anyone as extreme in the opposite direction. The gay equivalent of Paris Hilton, perhaps.
Wednesday, June 4, 2008
Death of a stupid-looking pseudo-car
Apparently GM is looking to offload the Hummer brand on anyone who will take it. Turns out people don't really want a 10mpg 6 tonne converted pickup truck these days, even if it does make them feel more secure about their naughty bits.
Yay! I saw one in the flesh, once or twice; absurd objects.
Argh!
So, I was sort of getting over the whole getting old thing. But apparently, it reduces your sarcasm abilities! I won't stand for that, I can tell you.
Wikia Search, and a cat
Wikia, Jimbo Wales' company, launched a search engine a while back. No-one really noticed, because it was dreadful (especially the ranking; it's pretty nonsensical), but it got a bit of publicity today, for reasons I'm not clear on.
Anyway, look what happens to the header if you search for 'cat':
It's not a bad cat, I suppose, but felines of far higher grade can be found with little effort on Google Images.
I'm not sure why anyone thought that endless tiled pictures of cats (or whatever; things turn up for quite a few searches) was a particularly sensible idea. It looks pretty dreadful, generally.
