Cupertino, Start Your Photocopiers

John Gruber at Daring Fireball has a spot-on take-down of Bill Gates’ comments about features in Mac OS X being copied from Windows. This summary at the end makes the point well enough on its own:

That seems to be their way of dealing with the fact that Apple is implementing and shipping major new features in Mac OS X far more quickly than Microsoft has been able to do with Windows. I.e., in Microsoft’s view, it’s not that Vista now offers features that appeared in Mac OS X in 2003; it’s that Mac OS X has features that Microsoft talked about in 2001.

Devilish Code

I’m a big fan of The Daily WTF, which showcases examples of bad programming that would cause a normal person to exclaim, "what the fuck?" The posts themselves are often entertaining, but the real value is generally to be found in the comments, where people often post alternative solutions that are sometimes brilliant and sometimes equally (deliberately) WTFic.

A recent article showed a piece of unnecessarily long-winded code, the effect of which was to return the given integer if it was in the range 0–3, or 0 otherwise. An alternative implementation of this was posted in the comments, with the warning that it contained "added evilness":

int getmessage (int c)
{
    return (!(c&~3))["(c&3)"]&c&3;
}

In C, &amp is the binary and operator, and ~ the binary not. So !(c&~3) will be 1 if c is in the range 0–3 and 0 otherwise. So far, so binary arithmetic.

Continue reading “Devilish Code”

Multi-Touch DOM Events

I like the mysterious promise in this email from Dave Hyatt (of Apple Safari fame) to the WHAT-WG. Someone wondered whether, now that the iPhone will support multi-touch mouse events, the DOM would be updated to support them too. This would let Web developers define for themselves the behaviour of their pages when the user clicks two or more elements at once. Essentially it would allow them to take advantage of all the information available, to make new and potentially cool interfaces. Dave Hyatt’s response?

I’ll have much more to say about this in the coming months.

Sounds like Apple might already have some ideas about this.

Digg

I can only assume, or perhaps hope, that I’m not the only person who sees entertaining or insightful things on the Web and feels the urge to find the Digg thumbs up icon. I need some sort of indicator of, "I approve of, endorse, and/or was entertained by this content," without having to think up and type a proper comment.

New Hotness in Linux Land

I’ve recently been following some Linux projects a little more closely than I had been before. There are some things that look like they might go in an interesting direction. Among them:

  • Mathusalem — A "long running task manager". This is a way to unite all sorts of progress windows into a single place. Browser downloads, email downloads, server connecting/handshaking, CD burning. That sort of thing. This project is part of Google’s Summer of Code sponsorship programme, so it should be useable by the end of the summer.
  • lowfat — A file manager of the ‘make your virtual desktop like your real desktop’ variety. It basically shows your photos’ and documents’ contents rather than representing them as icons, and you can sift through them and fling them around the place with all the wild abandon you use when using dead-tree documents. There’s a very well-narrated video of a prototype of it in use. Worth checking out, but this is very speculative stuff.

Continue reading “New Hotness in Linux Land”

Subject-Based Feed Grouping

Thinking and writing at the same time so I apologise if none of what I write makes any sense…

I’m pondering an alternative way of presenting Web feed subscriptions. Something different to the standard "There are N unread posts from feed foo". Are there any readers out there that will group unread posts based on their topic rather than on their source blog? I’m envisioning something that I can log into and see that "8 of your feeds have new entries talking about Google Calendar" (or whatever the big story of the moment happens to be). It wouldn’t necessarily be the best way to read all of your subscriptions, but it would be useful to get that sort of summary for anything that gets mentioned on more than, say, X% of your subscriptions in a short time. Like a sort of heads up on what’s the big news among all (or most, or many) of your subscriptions that you can instantly see before you start to read through all of the details.

Continue reading “Subject-Based Feed Grouping”

Full Screen QuickTime Player

My biggest complaint about Apple’s OS X has always been the lack of full screen mode in its default media player, QuickTime Player. That function—possibly the most basic function of a video player after play, pause, stop, etc.—is reserved for the Pro version of the player. Who is that for anyway? A professional video-watcher? Anyway, QuickTime Player Pro costs €30. I have to assume it comes in a solid gold crate or something.

I didn’t pay €30 for any of the other four video players on that machine, and I’m not about to pay it for QuickTime (which happens to be the worst of them all). I’ve worked around the restriction in the past by using the screen zoom feature, which lets you zoom in on any part of the screen. Unfortunately that method leaves an ugly pointer sitting in the middle of the video. The zoomed region is determined by the position of the mouse pointer so you can’t just move it out of the way.

Continue reading “Full Screen QuickTime Player”

Driver Theory Test

I’ve just passed my driver theory test, the first step to getting a driver’s licence. I have to say it’s a fantastically easy test. If you see a group of children playing on the road should you a) run them over repeatedly, reversing if necessary to ensure you’ve completely crushed them; b) drive past at the highest speed you can so that they learn the dangers of playing near a road; or c) drive slowly and be aware that they may run out in front of your car?

Continue reading “Driver Theory Test”

TODO

No, this isn’t another SoylentRed todo list. I have enough of thse already and I have no desire or time to work on Scatterbrain right now. What the title refers to is a tiny but surprisingly cool feature of kate, the KDE text editor I’m using for my current project.

I was rushing through trying to get some features written today in time for our review meeting tomorrow morning. Since I was in a hurry I wrote skeletons of much of the code and I left hooks and function prototypes all over the place with little notes reminding myself what to put there when I have more time.

Continue reading “TODO”

Commercial Software Loses Again

I’ve had disk images of Mandrake sitting on my desktop for a few weeks, waiting for me to get off my ass (proverbially and literally) to get some CDs. This has now happened, according to the exorbitant pricing of the UCD Students’ Union science shop of €1.50 per CD. I got home and eagerly (I had a slow day) launched into the process of burning these images. But I was thwarted by the dull ineptitude of Nero which utterly failed to behave in a sensible fashion. A quick Googling turned up a neat little program which does what I want, properly and without hassle. Score one more for the people writing software for free.