heads up preview for iTunes
One doesn't normally have enough screen space to leave iTunes visible though, so I figured what I wanted was a heads up style panel, floating above all other applications, showing the current and upcoming songs. Something like the image on the right: Surprisingly, no such app existed. There are many heads up controllers (which I don't need since I control tracks and level from my Apple bluetooth keyboard media function keys), or artwork viewers that display the current track only. There was no alternative but to suspend my study plan for an evening and write my own. The result is heads up 'tunes. It's lightweight, nothing fancy (although I will add animation to it one day). You can download the current version at the software home page: http://mark.aufflick.com/software/heads-up-tunes/ Here's the blurb from the about box:
This is a preliminary version of heads up 'tunes. Oh, and it also sets its dock icon to the current track artwork. It's a Universal binary and has been tested on PPC (by me) and Intel (by Matt B and DB). Enjoy! 04:01 PM, 25 Oct 2008 by Mark Aufflick Permalink | Short Link | Comments (6) Man I'm sick of DoS-ing spammers
It's been months since I set up reCaptcha and since then not a single spam comment has been accepted. But the spam-bots continue and eventually end up chewing up all available threads of the web server. Grr.
Sorry to anyone unable to acces the site for a few hours this morning. I have some plans for how to beat them that I'll gradually roll out, we'll have to see who wins! (For the uninitiated, DoS means Denial of Service.) Update: I'm not winning :( 09:41 AM, 24 Oct 2008 by Mark Aufflick Permalink | Short Link | Comments (0) Stevie Wonder, Sydney 2008, Acer Arena
What a privilege it was to be at tonight's Stevie Wonder concert. Great man, great singer, great band :) The start of the night had me worried. There was way too much kick drum in the mix for the bass drivers which sounded bad itself and just exacerbated the problems with the arena echo. I kept looking at the sound engineer hoping to see him trying to resolve the situation, but no action. I had to put in my ear plugs. Mercifully though, after the solo's, where the levels of each band member was raised for their part, when the engineer reverted to the regular mix it was much better. How he didn't notice the problem before is beyond me. From then on the night was fantastic. Dancing in the aisles, singing along--awesome. Stevie's daughter did an amazing song. No encore, but Stevie promised to come back and floated the idea of doing a benefit gig for less than fully abled people. Count me in on that Stevie. 11:54 PM, 23 Oct 2008 by Mark Aufflick Permalink | Short Link | Comments (0) Using Windows Update to find class action plaintiffs
Well this is interesting. A lawyer friend of mine sent me an excerpt from the Beard Group's Class Action Reporter newsletter (subscription required) about the "Windows Vista Capable" lawsuit.
You may have heard of it - in February this year a Washington court granted class action status to a suit brought against Microsoft for "unjust enrichment" by labelling PCs as "Windows Vista Capable" which no reasonable person could bear to run Vista on. Since then, Microsoft has "repeatedly said it cannot identify the people who bought PCs under its Vista Capable marketing campaign in 2006 and early 2007". The cunning lawyers, however, have suggested that Microsoft deploy a script via Windows Update which could identify relevant PCs and alert the user of their eligibility to join the class action suit. Genius! The Microsoft lawyers must be absolutely livid. A hired "expert" has suggested that it would take Microsoft no more than a few hours to develop and QA the update. I think that is on the low side, but there's certainly not more than a few days work in it -- which is still peanuts in the context of the case. One wonders what the update would do, and who would collect the data. Make the dialog incomprehesive enough and noone will be able to join the case :) Unless, of course, they own a copy of Dealing with Windows Dialog Boxes - for Dummies. 10:22 AM, 09 Oct 2008 by Mark Aufflick Permalink | Short Link | Comments (0) Fibonacci Perl GolfThere are plenty of Perl golf O(N) implementations of Fibonacci generators (and in other languages also), but I wondered in the shower today if I could do it without either an explicit initialisation or explicit previous variables. While I feel tracking both values in a single string is kindof cheating, this is the best I have come up with so far: perl -le 'print$2while s/(\d*):?(\d*)/($1+$2||1).":$1"/e' |head -10 At 45 characters it's not a size winner (see this thread for implementations as short as 27 characters and 21 in Ruby) but I like it for a few reasons: it is complete (many other implementations skip the leading 1); it contains no initialisation (or indeed any implicit assigment operations); it uses only one state variable ($_). Update: Perl golf is addictive! I had to let go of my "no implicit assignment" rule, but here is a similar 37 character solution. A weakness this version suffers from is that since it requires both single and double quote characters it's tough to fit into a shell one liner: $_="$':".($'+$`||1),print$`while x./:/ Update 2: As pointed out on the related perlmonks thread, I can save a few chars with perl 5.10 using say: perl -E 'say$2while s/(\d*):?(\d*)/($1+$2||1).":$1"/e' |head -10 $_="$':".($'+$`||1),say$`while x./:/ 05:33 PM, 05 Oct 2008 by Mark Aufflick Permalink | Short Link | Comments (2) |
Archive
November 2011 October 2011 April 2011 March 2011 January 2011 November 2010 October 2010 September 2010 August 2010 July 2010 June 2010 May 2010 April 2010 March 2010 February 2010 January 2010 October 2009 September 2009 August 2009 July 2009 June 2009 May 2009 April 2009 February 2009 January 2009 December 2008 November 2008 October 2008 September 2008 August 2008 July 2008 June 2008 May 2008 March 2008 February 2008 January 2008 December 2007 November 2007 October 2007 September 2007 August 2007 July 2007 June 2007 May 2007 April 2007 March 2007 February 2007 January 2007 December 2006 November 2006 October 2006 September 2006 August 2006 July 2006 June 2006 May 2006 April 2006 March 2006 February 2006 January 2006 December 2005 November 2005 October 2005 September 2005 August 2005 July 2005 June 2005 May 2005 April 2005 March 2005 February 2005 January 2005 December 2004 November 2004 October 2004 September 2004 August 2004 July 2004 June 2004 May 2004 April 2004 March 2004 February 2004 January 2004 December 2003 November 2003 October 2003 September 2003 August 2003 Blog Categoriessoftware (39)..cocoa (21) ..heads up 'tunes (5) ..ruby (6) ..lisp (3) ..perl (4) ..openacs (1) mac (20) embedded (2) ..microprocessor (2) ..avr (1) electronics (3) design (1) photography (25) ..black and white (6) ..A day in Sydney (18) ..The Daily Shoot (6) food (2) Book Review (2) Notifications Request notifications
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||







When I'm listening to music I like to know what tracks are queued up. Call me a control freak.

Request notifications