Monday, August 31, 2009

Best feature of Snow Leopard - Dashcode 3

There's an amazing rapid application development tool for the web bundled with Snow Leopard called Dashcode. I always thought it was for making dashboard widgets, but it seems to have broadened its focus.

You drag and drop your user interface in Dashcode, choosing from a decent array of nice looking widgets.

Screen shot 2009-08-31 at 6.53.39 PM.png


To connect to a back end server, you create "dataSource" objects which have a nice interface for setting the query strings and then automatically parse either returned xml or json.

Screen shot 2009-08-31 at 6.56.05 PM.png


Objects in the UI, such as the value of fields or the animation or visibility of the activityIndicator are key:value bound in a way similar to Cocoa's Interface builder (by drag and drop linking the little dot at the right of the fields).

Here's the onClick() code for the Calculate button:


function calculateClickHandler(event)
{
amountField = document.getElementById("amountTextField");
rateField = document.getElementById("rateTextField");
resultField = document.getElementById("resultTextField");
var dataSource = dashcode.getDataSource("calculatorDataSource");
dataSource.setValueForKeyPath(rateField.value, "parameters.rate");
dataSource.setValueForKeyPath(amountField.value, "parameters.amount");
}


On the web it looks like this:

Screen shot 2009-08-31 at 6.58.35 PM.png


The back end that does the calculation is just this:


#!/usr/bin/env python

import cgi
import cgitb
cgitb.enable() # errors to the browser

def main():
form = cgi.FieldStorage()
rate = form["rate"].value
amount = form["amount"].value
result = float(rate) * float(amount)
response = ' { "result": %s }' % (result)

print "Content-Type: text/json"
print # blank line, end of headers
print response

main()


(My host doesn't have the json module installed so I've done the json printing manually for now).

I'm still coming to grips with all this but the design UI is magnificent and the concept of webservices as "datasources" with key value coding is just fantastic. While developing you can point it at an xml or json service and you get a wonderful structure inspector that lets you drill down and choose which parts get linked to parts of your UI.

It looks like Dashcode will deploy your app to MobileMe but I haven't figured this out yet, for now I'm getting it to ftp to a Dreamhost service which works rather smoothly. (I hope Dashcode supports sftp soon!)

Other great things in Snow Leopard


  • Column selection in Preview

  • The display colour just looks more vivid

  • Speed - particularly Safari

  • Cisco VPN client

  • Andale Mono font

  • The extra disk space I got back

  • Screen shot date and time stamps



I've had a few crashes today, mostly while printing in Pages, but I blame the Sharp printer driver which does all sorts of bad things according to Console.app.

Dashcode = Awesome.

Friday, August 28, 2009

Snow Leopard in Sydney

I'm waiting for the Chatswood Apple store to open.



They have stock and might open up a little early.

The staff are being briefed by the looks of it.



Here's the staff preparing to open the door:



And here's the queue:



The store opened half an hour early for us, very kind. They applauded as we ran in. The mystery guy waiting said he wanted the Exchange integration so I said I wanted the Cisco VPN. Ben just wanted a new Tee shirt.

Update

Back at the office now, installing on my laptop.

It took 47 minutes to upgrade from Leopard. I got 23Gb of extra space as a result of the install. All seems to be working smoothly so far.

Two issues

I had Mail crash after our internet connection was interrupted and more annoyingly I don't seem to be able to print at home to our HP LaserJet 1022n Printer any more.

Screen shot 2009-08-28 at 5.55.32 PM.png


Found the driver at HP and all is well again.

The Cisco VPN client is outstanding. Easy to configure and really fast to connect - certainly better than the official client from Cisco I've had to use in the past. (It was so bad there was an application that just gave users a better user interface to the same underlying code).

Negative trash count

Noticed a negative remaining count when emptying the trash. I guess the Finder re-write left a few minor bugs around.

Negative Trash.png


The thermometer progress was fine so no real drama.

MacPorts

I noticed that mysql5-server hadn't started after the upgrade. It seems that MacPorts, which needed to be upgraded to 1.8 to run, now builds in 64 bit mode by default (the default in Snow Leopard). The problem is that some existing libraries (zlib in the case of MySQL) were 32 bit.

Still working this through but I think the best approach might be to uninstall MacPorts and build it all freshly.

Old libraries

I'm running in to a bunch of issues relating to libraries I've built in the past that are 32 bit and the fact that under Snow Leopard python 2.6 runs 64 bit by default. (You can set an environment variable to make it switch to 32 bit but that would be a shame - man python for more).

The error message is clear and I go and delete the old library and rebuild.

Everything is getting there, I've installed the 64 bit MySQL server and got python-mysqldb running now.

Sometimes, for a developer, a clean install might be more straight forward.

Thursday, August 27, 2009

Bring on Snow Leopard

I'm queuing at the local Apple store in the morning, always nice to get an operating system update.



Will post a review after a bit of use.

Saturday, August 22, 2009

Blue mountains amateur radio Winterfest

Dropped in to the BMARC annual "Winterfest" today and the new venue seems to have worked out very nicely.

DSC02904.jpg


Inside there were displays of old equipment and new equipment available for sale. A wonderful collection of morse keys were on show.

DSC02900.jpg


My favourite club, the NSW Home Brew club had a table manned by John VK2ASU and Peter VK2EMU.

DSC02915.jpg


Outside there was "trash and treasure" on display to pick through.

DSC02909.jpg


Congratulations to the organisers for a very professional "fest", it was great to catch up with some radio friends and look at all the bits and pieces on display. I did not buy a spectrum analyser or 6kHz - 2GHz signal generator.

Monday, August 17, 2009

TomTom for iPhone in Australia review

tomtom icon.PNGI have used a TomTom navigator in the car for a year or so and I'm pretty happy with it in most respects. Having said that, I want fewer gadgets and the car navigator has a few disadvantages - it's flat mostly, it is left in the car and risks being a target for a break-in, having to select the suburb before choosing the street is annoying (as sometimes the street isn't in the suburb people give you).

When TomTom for iPhone in Australia appeared in the store this morning I didn't hesitate to purchase it, even for AU$99. The download is 157.1Mb, which seems modest given that the maps are built in. I'll give my existing hard TomTom to my wife so it's not really a duplication.

Choosing a destination involves choosing the major city, like Sydney, and then searching for the street which is an improvement. The map is no-where near as nicely designed as Google maps.

IMG_0427.PNG


When you pan the map it erases and completely re-draws, which is a step backwards from the browser based Google Map. I'm assuming at this point that the routing algorithm is the same as their other devices so probably pretty good but we're hitting the road shortly and I'll report back soon.

IMG_0428.PNG


Obviously I'm now in the market for a car mount with charger.

In Use

The Australian "Ken" voice sounds loud and clear through the iPhone speaker. The interface is familiar to users of the normal TomTom devices. Route re-calculation is really fast.

When you turn the phone on its side, the screen re-orients to that format as you'd expect.

The biggest disappointment is that there are no computer synthesised voices so there is no pronunciation of street names. This is a significant disadvantage compared to the "hard" units and I hope it will be fixed in a software update.

During operation the screen stays lit and the iPhone feels warm so my guess is that a car power source will be needed for full time use. Position updates are very frequent and I feel that the GPS hardware in the iPhone is possibly better than in a hard unit.

Thursday, August 13, 2009

Neighbour with a valve fettish

I've discovered a local resident who loves old telephones and radios with valves. Over the weekend he called on 80m and I dropped in to see the latest gadgets.

A "coffin" radio:

IMG_1986.jpg


Magic eye for tuning:

IMG_1987.jpg


Spares:

IMG_1989.jpg


Rob's an amazing chap, I very much enjoy my visits.

IMG_1990.jpg


He's the only person I know who doesn't use the internet. I'm sure he was pleased to receive a printed phone book last week.

Damn you Sensis - stop the phone books

phone book.jpgOnce again, despite my repeated attempts to halt delivery, the phone books turned up again.

In 2007 I formally opted out through Sensis's call centre and then again through their web site. The books came again in 2008. The so called "Green Office" program is a sham.

We never use the printed phone book. It will go - still wrapped - into the paper re-cycling again.

Update: It's 2011 and I'm pleased to report that instead of receiving a phone book I just received a card saying that they had received my request not to get it.


They go on to say that my request will be honoured for three years and then they'll revert to delivering books again unless I let them know again.

So, good on you Sensis at last.

Saturday, July 25, 2009

AeroPress coffee press review

use.jpgI love everything about coffee, the cafes, the smell, the buzz, the different equipment, and yes.. even the drink.

This week I purchased an Aerobie AeroPress coffee press from RedcliffeTech in Queensland. They posted it the next day and this morning I collected it from the post office.

The product promises to make the smoothest, richest, purest coffee in the fastest time.

Compared to a standard coffee press where a porous plunger pushes the coffee grounds down after they have transferred their flavour into the hot water, this system uses air pressure to force the water through the grounds, then through a fine paper filter and in to your cup.

The other important difference is that they urge you to use water that is just 80 degrees C rather than boiling and they go so far as to suggest sticking a thermometer into the kettle to know when to stop heating the water.

parts.jpgYou get lots of parts with this gadget, including a redundant stirrer (I have a spoon already), a funnel for delivering the coffee grounds into the tube (again redundant), a coffee scoop, and a good number of thin paper filters.

The plunger part has a soft rubber-like end on it that makes an air-tight seal as you push it down. My guess is that this is the part that will wear out in the end. All parts are very solid and for the money I think it's good value.

Taste

The coffee is very smooth and there's much less bitterness than the same coffee plunged in a traditional plunger. I'm not sure how much of this is due to the lower temperature - I'll certainly try this with my old plunger too.

The instructions are designed for an American taste where they make a very strong brew compared to what I like, interestingly they advise against just adding more water to the press to make it weaker, rather they suggest adding extra water to the cup and this does seem to do the trick.

It's a bit more fiddly than a simple plunger and it's a little difficult to get the filter paper out for cleaning.

All in all I'm very happy with the AU$62.15 it cost (including delivery).

Update: a comment from the importer

Hi Peter,

Great blog post, I started to write a comment but decided to write directly to you instead. I didn't want to come across as if I was "correcting" you, especially as my first impressions were similar to yours.

I've been using my original AeroPress for 3.5 years now, 3 times a day on average. Like you I initially thought both the stirring paddle and funnel were unnecessary. However if you grind your own beans and pour directly into the mixing chamber you'll find that the funnel is perfect and very useful. Also the paddle is exactly the right length (and shape) to mix the coffee and water without accidentally hitting and tearing the paper filter. The square shape of the paddle ensures you get all of the coffee mixed in.

So far I have only replaced two or three plunger seals in 3.5 years, mine still works great. The part I do occasionally replace for customers is the basket that holds the filter. For some reason it seems to get thrown out accidentally from time to time?

One of the interesting things about the Aeropress is that it's a great platform to experiment with. It lends itself nicely to changing variables and methods. That's probably why it appeals to Geeks (like us) so much. There's a really interesting discussion on the Coffee Geek forum that you might find interesting:

http://coffeegeek.com/forums/coffee/machines/195166

It's a huge thread but there's lots of good information there.

When you clean your AeroPress you can just basically rinse it under the tap. The first step is to twist off the filter cap, you can easily peel off the paper filter now. After you eject the used grinds into the bin just use hot water to rinse everything off.

By the way, you can reuse the paper filters. They're quite strong and you can just rinse them off. I use a filter about six times before replacing it.

Also the AeroPress is available from thirty-some retail outlets in Australia.

www.aeropress.com.au/index.php?main_page=where_to_buy

I'm sure you'll continue to enjoy your AeroPress and I hope you do a follow up post after living with it for a while. If you ever have any questions just let me know.

Regards,

Curtis Arnold

RedcliffeTech

www.AeroPress.com.au

www.CoffeePress.com.au

- Thanks Curtis for writing in and being so informative.

Friday, July 24, 2009

Victorian fires aftermath

Visited friends in Melbourne last week and saw first hand the aftermath of the fires near Healesville. These folks stayed and successfully defended their mud brick house but they were somewhat traumatised by the experience.

The fire came right up to the house as you can see.

fire.jpg

The flames were double the height of the trees as the front approached.

One, rather morbid, observation was that cars containing people who had died could be seen at a distance because they often had hand prints visible on the inside of the windscreen.

My friends were very prepared and we'd often talked about the fire plan. Next time I think they won't stay.

Tuesday, July 21, 2009

Improved antenna tower

Mark climbing ladder.jpgMy antenna support is pretty dodgy. It comprises a netball hoop stand on a balcony, a piece of TV tube U-bolted to that, and finally a long telescopic pool cleaner pole. The whole arrangement is rather loosely guyed.

Having said all that, it's stayed up for over a year and I get excellent reports for my signal on 80m.

It was time to get something more elegant and so I turned to the web to enquire about getting a mast installed at the peak of the roof.

Dave, VK3ASE, had recommended a Hills Teletower and a quick call to a friendly local installer Digitel and we are away.

Attaching guys.jpg


Tower up.jpgMark is friendly and efficient and quite understanding about my needs not including a TV antenna. Rather I have a pulley mounted just below the top guy ring on a 20 foot Hills Teletower with a loop of line through it so I can hoist my balun up without difficulty.

The whole project cost $605 which seems reasonable to me and reduces my anxiety on windy nights when I often listen for my current arrangement to fall down.

Mark admitted that he "had a bit of a chuckle" as he approached the house and saw my current system. I can recommend Digitel to hams in need of some extra height.

Over the weekend I'll de-commission the netball/pool pole and switch over to the new support. Now we just need some sun spots.

Update

I was going to wait for the weekend to switch my dipole over but couldn't sit still with the tower beckoning.

It's magnificent.

Tower up final.jpg

Had a bit of trouble getting everything on the right side of the guy wires but in the end it's up nice and high and is much more stable than the old arrangement.

80m seems quieter than before and much less RF gets into the shack which is always good. A wise investment I think.

Update 2

Had a contact this evening on the home brew net with VK2ZTM Tim and VK2EMU Peter. Both gave me excellent reports. I could barely hear Peter but I heard him say I was "booming in".

Tuning around, the band seems less noisy and I'm hearing lots of stations. Unfortunately my daughter reports that I'm getting in to the TV which I didn't before, might have to do some work on that.

Monday, July 20, 2009

DAB+ Digital radio so good it picks up the moon!



See the ABC web site for more. Also they have a page about digital radio.

Update

The broadcast has begun - a re-construction of the mission to the moon. Tune in to 206.325MHz and set your crystal set to 80kbps AAC.

Sunday, July 19, 2009

What's the problem with Bluray player firmware?

Stuck in a Bluray disk today and was greeted with this:

Bluray fail.jpg


I have had disks take a minute or more before loading the opening menu so I guess it's good that they give a warning.

Naturally, I went to the update site for new software but why does Sony only make update firmware as Windows .exe files? These images get burnt to a CD for the upgrade so surely an .ISO image would work for all platforms?

I've filled in their web site feedback form and will report back if I get a response.

A room without a view

First time I've experienced this, I stayed in a room in Melbourne with no external window.

P1040316.JPG


It was nice, with kitchen and all (although it looked like no-one had ever cooked there).

P1040315.JPG


There is a curtain and behind it a window but it looks out to a little space in a corridor.

The only drawback for me was that there was no AM radio reception in there.

Sailing day in Melbourne aboard Mark Twain



A little windy and cold but a great day. Shot on an iPhone.

Friday, July 17, 2009

On the road with a 3G dongle modem

Picture 2.pngTravelling at the moment and this time I've bought a USB wireless internet dongle from Telstra.

The network has good coverage but here in Melbourne I've found that sometimes the signal is good but data just doesn't seem to get through, same on my phone.

What lets it down, on the Mac anyhow, is the software. "Telstra Turbo Connection Manager" is an amateur attempt to wrap the modem's low level functions in a graphical interface. Topping up obviously uses SIMToolkit and is barely workable. It took me four attempts just to top up - kept timing out.

To create the network on the Mac is touch and go, sometimes it works but often it just gets confused. I think it remembers the index of the device it's using and several times it's tried to connect using the Bluetooth interface.

Telstra warning.png


Right now, (very early morning), ping times are about 800ms, during the day it was over 2s.

Of course all this wouldn't be necessary if my iPhone still tethered..

Wednesday, July 15, 2009

Digital Radio in Sydney gets a signal boost

DRP.pngLast night I noticed that the ABC digital radio stations (transmitted by Broadcast Australia near Chatswood) had jumped up in strength. Clearly there was antenna work going on because the signal was going on and off during the evening.

This morning the signal is good, full bars with the antenna up and reasonably listenable with the antenna down.

One thing, you don't want to set your watch by the pips on digital radio, the delay between the analog and digital versions of the feed is about four seconds. Presumably some of this is the receiver's buffering for error correction. Perhaps the days of the time signal are coming to an end - after all there's a clock in the radio anyhow.

Sunday, July 12, 2009

Lovely long weekend in the Blue Mountains

My dear wife organised a weekend away at a "bed and breakfast" at Blackheath in the Blue Mountains. My Internet addiction was suppressed to some extent by the fantastic views just down the road at Govett's Leap.

Govett's Leap.jpg


We did a few walks, looked a lots of "old wares" as they call them, and ate too much yummy hand made food.

Quiche.jpg


Having my phone point out when new mail arrived was probably a bad idea but it did spare me of anxiety about the rest of the world.

Interestingly I turned iPhone tethering on and a few seconds later the option disappeared! Presumably new settings got pushed out by Telstra. Further investigation is required but this could have been very distressing if I was relying on it for a presentation or something.

Tuesday, July 07, 2009

Unable to read old, crummy, CDRs

This is scary. I remember, some years back, finding that old floppy disks I'd stored had become unreadable after a few years, but this is the first time I've seen it with optical disks.

can't read.png


This disk was burnt in October 1999. I've tried two CD readers and will try more, but so far this isn't looking good. The videos on this CD are irreplaceable, well the original might be somewhere on VHS cassette.

To be fair, these were budget Princo blanks, but the disk still looks good and it's been well stored.

princo.jpg


Got the disk to mount in a laptop, but copying is not going well.

Picture 1.png


I'm going to keep uploading my valuable files to the cloud, it's safer than around here.

Anyone else finding they can't read their old optical disks? What is the lifespan of CDRs?

Wednesday, July 01, 2009

Hey Apple, what's with these huge minor updates?

Today there was a small update to iPhoto from Apple. Even though it was a small fix the download was over 100Mb!

Picture 1.png


Now, while I have a good internet connection, and the download didn't take too long, but it still costs me money:

Picture 2.png


But really, not so long ago, there were installers that could make a diff between a current version and the new version that just contains an efficient difference between the two.

How about getting back to those efficient days again?