Monthly Archive for March, 2008

HP 2133

So Engadget has the specs on that HP 2133 we’ve all been drooling over. It looks like it’d be a great notebook companion to fill that void between laptop and phone without getting in the way. I really like the idea of having it for work since I’m often connected via a VPN leaving me with a crippled connection to the outside world.

Forcing Safari to Stick to One Window

So tuaw (The Unofficial Apple Weblog) posted a nice tip to force Safari 3.1 to truly stick to a single window (even when clicking links in gmail, for example):


defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

Amusing Awareness Test

Take it here

App:tip – 1 to n mapping of request to responses in Java

In some cases it`s useful to map a single incoming request to several responses. One such example is delegating to helper service methods. In Java, one can do this using the following basic pattern:

@Service(request = "my.request", response = "*")
public void myService(Message requestMessage, Message responseMessage) {
    String responseMessageType = "";
    if (some condition)
        responseMessageType = myServiceHelper(requestMessage, responseMessage);
    else
        responseMessageType = myOtherServiceHelper(requestMessage,responseMessage);

    responseMessage.setType(responseMessageType);
}

Obviously, the helpers above need to return a String with the appropriate message type (name). It is, of course, also possible to just set the type in the helper.

Also, the helpers should populate the data payload of the response (one reason for using this pattern).

Appcelerator Developer Network Launched!

We’ve just launched our new development community. Head over to appcelerator.org now to sign up! The Appcelerator network is, of course, powered by Appcelerator.