Begin main content

Guaranteed crash for Safari

  • Have some tabs open;
  • type something into a text box in a web page;
  • close that tab, but of course the window is still open because of the other tabs
  • Edit->Undo is still available since the Cocoa UndoManager works, by default, per window;
  • Undo ->Crash :)
  • That's something to watch out for when you break the window instance == document instance that Cocoa assumes.

    Note that this is with the Safari 3 beta - but I'd be willing to bet the same behaviour occurs in Safari 2. Can anyone confirm/deny?

09:09 AM, 27 Jun 2007 by Mark Aufflick Permalink | Comments (0)

Non-orthogonality of Perl

When it comes to switching between objects and natives, Perl OO is not quite as orthogonal (or DWIM) as I would like. For instance, assuming I have a class:

package MyArray;
...
sub push { ...}

Then I can treat an instance of that object as an object with a method push, or as a kindof array (kindof, because of course an actual array would have @ for its sigil):

# these are equivalent:
$instance->push(1);
push $instance, 1;

I don't, however, have the orthogonal behaviour with an actual array ref:

# this works:
push @$arrayref, 1;
# this doesn't:
$arrayref->push(1);
# nor, of course, does this:
@$arrayref->push(1);

What I would like is more DWIM than real orthogonality, but if Perl's not DWIM then it's nothing! I guess I'm just wishing for real native array objects like Ruby (sigh).

11:54 PM, 24 Jun 2007 by Mark Aufflick Permalink | Comments (3)

What are you *really* competing with?

Dan Bricklin (co-creator of VisiCalc) has always been a hero of mine. So many assumptions of current software come from his simple innovations. His key focus was simplicity and ease of use. I love this quote from one of his business school professors, giving him feedback on his prototype:

You're competing against the back of an envelope. It's got to be really easy to use.

-- Source: Founders at Work

What is your product competing with?

10:05 PM, 14 Jun 2007 by Mark Aufflick Permalink | Comments (0)

Syncing my google calendar to my cellphone

Better than receiving an sms, GooSync bridges between my google calendar and SyncML which means I can bi-directionally sync it with the calendar built into my SonyEricsson phone.

It works pretty well. They support Google's new auth method that means you don't need GooSync to store your details. Unfortunately they don't have that working with Google Apps domains (which I use), so I have to use their other solution which involves them storing your details in their database (apparently encrypted - although obviously reversible somehow... I think they encrypt it with your GooSync password).

The auto-config sms didn't seem to work (I received the settings, but they failed to apply on my Z800i) but it was easy to manually enter the appropriate settings. Then the first sync failed, but all subsequent sync's have worked fine. I've set my phone to sync once a day so I'll see how that goes and report back on the bandwidth used.

02:57 AM, 14 Jun 2007 by Mark Aufflick Permalink | Comments (0)

Final release candidate of JRuby

Thomas Enebo has just posted JRuby 1.0.0RC3 which sounds like the final release candidate before 1.0.

This will likely be our final release candidate before our 1.0 release. People are encouraged to try out this release to help us find any remaining showstopper issues. We have spent a lot of time over the last month squashing compatibility bugs and we have confidence that applications 'will just work' (tm)*. Please try your applications and libraries against JRuby and give us feedback.

Sources: ruby-dev mailing list, Tom's Ruminations.

I never thought I would get so excited about a technology that's even remotely Java-related ;)

02:52 AM, 03 Jun 2007 by Mark Aufflick Permalink | Comments (0)

F1 Safety Car Drivers

The BBC has a great article on F1s professional safety car drivers.

"It looks boring on the TV when the safety car comes out" Maylander tells BBC Sport. "It looks really, really slow, I know."

The thing is, it isn't.

Maylander's safety car is a Mercedes CLK 63 AMG, capable of reaching 62mph in 4.5 seconds (about twice the time it takes an F1 car), with modified brakes, tyres and aerodynamic parts; Maylander fondly describes it as "a small race car".

"The top speed I can reach, on Silverstone's long straight for example, is 155mph - but it looks like 60mph compared to the F1 cars," the German said.

It sounds pretty fun (and hair-raising), but they have so sit in the car, harnessed in, helmet on, for the whole race. And they need to be damn good drivers too - as Bernd Maylander (one of the two drivers) said, they would look pretty stupid if they went off!

10:46 PM, 01 Jun 2007 by Mark Aufflick Permalink | Comments (0)

XML

Blog Categories

software (41)
..cocoa (23)
  ..heads up 'tunes (5)
..ruby (6)
..lisp (4)
..perl (4)
..openacs (1)
mac (21)
embedded (2)
..microprocessor (2)
  ..avr (1)
electronics (3)
design (1)
photography (26)
..black and white (6)
..A day in Sydney (18)
..The Daily Shoot (6)
food (2)
Book Review (2)

Notifications

Icon of envelope Request notifications

Syndication Feed

XML

Recent Comments

  1. Mark Aufflick: Re: the go/Inbox go/Sent buttons
  2. Unregistered Visitor: How do make a button to jump to folder
  3. Unregistered Visitor: Note I've updated the gist
  4. Unregistered Visitor: umbrello is now an available port on macPorts
  5. Unregistered Visitor: Updated version on Github
  6. Unregistered Visitor: Modification request.
  7. Unregistered Visitor: Accents and labels with spaces
  8. Unregistered Visitor: Mel Kaye - additional info
  9. Unregistered Visitor: mmh
  10. Mark Aufflick: Thank you