The iPad, a Canadian perspective

As one of what I imagine is a minority of Canadians I thought I’d report my thought on this device.
Read the rest of this entry »

Comments

Finding or viewing a deleted file in SubVersion (SVN)

Yes it does happen that sometimes a file is deleted either inadvertently or on purpose and you either need to get it back or you just want to see what was there.

Since I keep forgetting on how to do this I thought I’d write it down.

The first step to recovering the file is to find the version in which it existed; to do so either go go to the directory it was in (or as close as you can get to the directory it was in) and run:

svn log –verbose

Note the revision of the file you are looking for.

If you want to restore your file to your current source tree then issue an

svn up -r [revision number] filename

If you just want to look at it then just go to any temporary folder and issue an

svn export -r [revision number] repository path (in the form of http://../filename)

Not that for the export notation you could use the parent folder name to get all the files in that folder at the same time.


Comments

Using JavaScript with a Wicket LinkTree

I have to say that so far I really like Wicket, after years of developing J2EE Web application it’s a big relief to be able to develop Web application without having to maintain reams of URL or Action mappings in XML files.

Wicket offers a programming paradigm much closer to standard Java Swing instead which makes Web development much smoother.

There are a few pitfalls unfortunately as nothing is perfect but so far it’s been great.

One problem I’ve run into is when using Wickets LinkTree component (an Ajax based explorer like tree structure) is that it assumes that I always want to do an Ajax update from the server. But what if I want to run some JavaScript or simply redirect based on the clicked node. Read the rest of this entry »

Comments

Sending Javascript functions using JSON and Java

I originally got my inspiration from this article on how to send Javascript functions over JSON and most of this work here is based on it.

By default every string attribute specified inside a JSON string is bounded by double quotes which works fine most of the time except when you are trying to pass a Javascript function in which case you have a string but it needs to be without double quotes.

Read the rest of this entry »

Comments

Good Times

Was cleaning out my desk and found this….


We spent the weekend in Seattle with our friends, ate good food, visited Pikes Market, the Boeing Flight Museum, and went to the game (Green Bay at Seattle).

Le Sigh.

Pictures here.

“Remember Gary? Gary from the office, good times.”


Comments

Crying Plover

Went for a walk in Fish Creek Park in Calgary and just at the southern end of Sikome Lake we heard a bird crying.

Looked like a little plover and it sounded like this.

Comments

Coolest Bus Stop Ever…

Wish we had these…


In Italy, futuristic bus stops to blend practical, chic | Planetary Gear – CNET News

Unfortunately where I live they probably wouldn’t last fifteen minutes; notice the nice white paint and the missing glass (smashed)…


Comments

Fix sleep and network issues on Mac Leopard 10.5.7

Not sure what caused the actual problem but it seems that shortly after upgrading Leopard on my Macbook Pro to 10.5.7 my Macbook wouldn’t fall asleep properly and wouldn’t show all my shared computers in Finder.

I tried a variety of things but finally the simplest solution worked, I deleted the SystemConfiguration folder inside the /Macintosh HD/Library/Preferences folder and rebooted the computer.

This fixed both the sleep issue and the shared computers not showing up in Finder issue.

Good Luck.


Comments

It’s the content stupid


I recently powered though the new Resident Evil 5 title in about 10 hours (rounded up from 8.9) which was fairly disappointing for a $60 game. Technically the game was superb both in terms of graphics, controls, and gameplay. But the story and length of the game were severely disappointing. Not sure why but the Japanese game makers make technically great games but their stories are so convoluted I usually give up trying to follow any of it (see if you can make any sense out of Metal Gear Solid 4) and just pound my way through the levels and then I get rid of the game.

Read the rest of this entry »

Comments

Photography Equipment Tip #1

Modern cameras have become very powerful and have myriads of features to help us take better and more pictures.

Unfortunately with all that power comes significant complexity which sometimes makes it hard to use these cameras and gear effectively.

Read the rest of this entry »

Comments