I thought there'd be a ready-made XSLT stylesheet for transforming ATOM out there, but I had absolutely no luck finding one. So, I hacked together a basic one for the purpose. Here it is:
I've only tested it with google's atom, but it ought to work with any valid atom feed. I also haven't attempted to format the dates into something more user-friendly - I'm sure XSLT has the facility, but I'll be damned if I can find it right now. Finally, only the title, url, dates and summary are exposed, but it's pretty trivial to add more.
So I hunted up a computer-readable english dictionary with frequency scores (a 0-16 scale), and devised a way to score the efficiency of a layout: group words by the digits they translate into with that layout, and multiply together their frequency scores. So, for example, two colliding words with frequency 8 would score 64 points, while a collision between a word with frequency 1 and one with frequency 15 would score only 15 points. The idea is that collisions between words with greatly different frequencies are much easier to resolve - it'll almost always be the more common word - whilst collisions between similar words are generally bad. Then, sum up all the products to get the final score.
I then seeded a Genetic Algorithm with the default keypad layout, and ran generations of randomly mutating layouts (by reassigning letters at random) then scoring them, then selecting the few layouts with the lowest scores, and ...
Posted by Nick Johnson | Filed under personalI've been a bit of an ass lately. Sorry.
It's been brought to my attention that I've frequently been less than friendly the past few weeks, culminating with the almighty row in #sporks a day or two ago. A lot of it stems from what's been going on in my life recently - moving, new job, visa problems etc - but that's no excuse. In the past few days, particularly, I've found myself snapping at the smallest things. Once or twice, nothing more than another spam arriving in my inbox was been enough to get me angry(er). Something that took no more than a second to review and delete.
Now that I'm aware of it, I'm actually feeling a hell of a lot better already. I ought to be more like my ordinary, sanguine self, hopefully. If I'm not, pull me up on it. Tell me I'm being an ass again.
Edit: Added a picture of how it looks at sunset:
Photos will be forthcoming once I'm moved in, later today.
Then, as I pull away, suitcase in tow, the officer goes "Hold on a moment". "Uh oh", I think, "now I get the half hour of going over all my documentation 5 times before they're satisfied". I return to the desk, and give him back my passport. The passport scanner is flashing "NZ Passport Alert!!!" on and off. The screen has a single line entry " Personal Marajuana Posession". I have no idea what it's talking about - I presume a name collision. He puts the passport back on the scanner, waits a couple of seconds, takes it off, hands it back, and tells me I can go. I do.