Tuesday, April 12, 2011

Day 2

Somehow it feels we've been here for a looong time. But I still don't have that feeling of being in another country - I'm pretty sure that I just took an extraordinarily roundabout route to the gold coast.

We had our early wake up call for the first day, for breakfast in Goofy's Kitchen.

Did I say breakfast? Then what the hell were those peperoni pizzas and hot dogs doing there? And how did anyone conceive of a peanut and jelly pizza? And that glass of orange juice I ordered - I'm sorry waiter but you seem to have brought me a bucket. And no - I don't need it refilled.

We had many characters come by for photos - and I must say Cinderella was very cute. Some to think of it, so was Aladdin.

Back from breakfast and the girls got ready for their first workshop and performance as Disneyland. Having seen them off, Suzy, Connick and I caught a taxi to the local Target for a spot of shopping. We bought a couple of cheap phones to keep in touch. Cell phones mind you - but certainly very mobile. Is there something wrong in the world when for $20 you can buy a phone, have unlimited calls to mobiles (sorry, cells) for 10 days, and then throw it away. At least we're here for a bit longer, so we might buy some more credit (sorry, airtime) and make it really worthwhile for the phone company.

Connick bought a Nerf gun - because he assured us it was ever so much cheaper than at home.

We also stocked up on cheap cereals, snacks and bottled water (24 bottles for $4 ... bargain). I don't recommend the US version of Cheerios. Very bland compared to our Australian 4 grain Cheerios.

We caught a bus back, and found that by appearing a little clueless and failing to have correct change, the driver waved us through on a vastly reduced fare. So, not entirely dissimilar to the tactic I employ when using trams in Melbourne.

The girls' first performance at Disneyland put a tear in most of our eyes. I blame the long flight and lack of sleep for leaving us in an emotionally fragile state. Imagine being 13 and dancing at Disneyland! Imagine being 13 and doing ANYTHING at Disneyland! I wouldn't suggest that dancing troupes on slightly obscure stages are big crowd pullers at Disneyland - but we did hear some very positive comments from a few of the non-parents who stopped by to watch.

In the afternoon, we hit the rides. But Monday was a very busy day. We decided to start using fast passes. For those who don't know, every two hours you can get a fast pass ticket for one ride. The ticket allocates a time, usually a couple of hours later, when you can walk straight to the front of the queue. You return at that time and walk smugly past the regular queuers.

What you don't expect is to find that the fast pass will have you return more than 7 hours later!

The wait times seem to have a lot to do with the rate of, what the Disney folk like to call. "technical difficulties". During our first two days at Disneyland, I have experienced most of the good rides having "technical difficulties".

Our fast pass ride on the Soaring Over California ride was a long wait - because the ride had been experiencing "technical difficulties". It is nonetheless a very cool ride.

I had my own "technical difficulty" on the California Screamin' rollercoaster - when I forgot to remove my splendid hat. Actually, I did remove my hat. I removed it by thrusting my head forward through the air at a rather cracking pace. Still waiting for it to turn up in lost and found (my splendid hat, that is - not my splendid head).

We had tea in a Mexican restaurant in Downtown Disney, then raced back to the park for the 9:30 fireworks display. We were running late, but lucky for us so were the fireworks. Due to - you guessed it - technical difficulties.

When it did start, we were becoming quite impressed - what with Tinkerbell flying across the sky and all. That was until the show came to an abrupt and unexpected halt - followed by an announcement that "we're sorry that fireworks show can not continue due to technical difficulties".

Suzy and I raced across to Space Mountain - one of the rides we'd been unable to get a fast pass for due to "technical difficulties". Another feature of the rides is that for those without a fast pass, there's always a sign telling you how long the wait will be. It turns out these signs are not always very accurate. A 25 minute estimated wait time was pretty close to one hour in real time. And that's adjusting for the time dilation effect caused by the speed of the rollercoaster.

When Jesamine, Rachel and I turned up for our 11:15pm fast pass on the Indiana Jones ride, it became a long wait as they sorted out some "technical difficulties". Suzy had also had a long wait for this ride earlier while they addressed some "technical difficulties". Luckily for the attendant and fellow queuers, we had two insane 13 year old girls to to liven things up. Jesamine and Rachel were in fine form, keeping everyone amused with their "Ossie" accents and refusal to give a straight answer to even the simplest question.

"So, are you sisters?"
"We're twins"
"Really?"
"Yes. We're born 11 days apart."
"What?"
"Well, we're mostly twins - but also mostly not twins"

Much merriment ensued.

Anyway, it made for a late night, as we eventually got on the ride and left Disneyland some time after midnight.


And can I just say before closing - the weather here is unbelievable. Warm days with clear blue skies. And still neither mosquito nor fly to be seen
.

For those not on Facebook - we salute you

I know that some people are not on Facebook, and I applaud your efforts to resist change and maintain your own privacy. On the other hand, uploading photos to a blog is time-consuming and tedious compared to Facebook.

I've put on five photos here - but I make no promises that I'll be putting many more on. Facebook just makes it soooo much easier.


About to head through customs

In the departure lounge

At Goofy's kitchen for breakfast

Sunday, April 10, 2011

US trip - Day 1

It really is quite something just what you can fit into a single day - particularly when you cross time zones (try not to cross time zones - they can be very unforgiving). It's quite something else
just how much time can be spent queuing!

It began for us as 5am this morning - or was it yesterday morning - when every phone and ipod started beeping to wake us up from our Tullamarine motel. It was Sunday10 April in Melbourne.

And the lord said unto the intrepid travellers "let there be queues". And lo there were queues. We queued for the bus, we queued for our boarding passes, we queued at customs, and we queued to board the plane. Suzy was held up at security as she attempted to smuggle some illegal hair product through in hand luggage. She was then pulled aside when boarding for an allegedly random security check. Random my sweet buttocks. She's got shifty eyes or my name isn't Max Power.

Here's a funny thing. Whilst boarding, we heard call for a Mr Einstein, who was apparently running late for his plane. Not a name you hear too often, but I like to imagine he boarded the plane to much sarcastic calling of "Well done Einstein." or "Bit of trouble finding the plane Einstein?". Perhaps one of the better read passengers could weave a cutting reference around the relativity of time.

So, anyway, we boarded Hudson Fysh, the QANTAS A380, and made for the skies.Well, just the one sky actually. The one you see when you look up.

This was my first international flight, and at the risk of sounding very Dale Kerrigan, I'll fill you in on the movies I watched. Freakonomics, The Deer Hunter, The Fighter, Annie Hall. I also watched a bit of stand-up comedy from Arj Barker and Jimeoin, and listened to a bit of music. I must say I'm impressed with the breadth of music available. I was even able to find some Charles Mingus and Oscar Peterson.

I tried to sleep, and I managed a couple of short naps, but nothing substantial. I also availed myself of the free Scotch & Coke on a couple of occasions.

Connick, made no attempt to sleep, and interrupted me frequently with chat requests (I was across the aisle from the rest of the family). Jesamine and Rachel didn't sleep much either.

So we landed at LAX a little after 7am LA time and did some more queueing. We queued our way off the plane, queued our way through border security, queued at the carousel for our bags, and queued at customs to reassure that we wouldn't be bringing anything nasty into the USA. A highlight for some whilst queuing at border security was seeing Nathan from Packed to the Rafters - or at least the actor who plays him. When I say "a highlight for some", I mean for those who have the faintest idea who he is. I thought he looked a bit like Jamie Oliver.

Having made our way through the various stages of security, we queued for us bus, which carried us to Anaheim, and then queued for our room keys to check into the motel.

By the time we settled into our motel (Howard Johnsons) Suzy failed in the plan to stay awake and get our bodies onto LA time. I could easily have succumbed, but the kids and I decided to head over to Disneyland. We've got 6 day tickets, and if we didn't got today we wouldn't get another chance to use that sixth day.

We stopped at McDonalds for lunch on the way. And queued. I've been to some pretty average McDonalds stores on Australia, but never anything that comes close to the wait at Anaheim. There were three (I think) couples in front of me when I joined the queue, but it was over 20 minutes before I was served - and then had to wait off to the side to get our meals. I gathered some interesting distinctions from this experience.
  1. Over here, they call hamburgers "sandwiches". You can have the "meal" or the "sandwich".
  2. In Australia when you order a meal, you specify small large or medium, which dictates the size of the accompanying fries and drink. Here there is only one size - and it's big.
  3. The menu items are numbered, so ordering is more like in the stereotypical Chinese restaurant. "Can I have a Big Mac" will draw a blank stare - until they realise that "oh, you'd like a number 1?" (tee hee)
  4. I saw no evidence that the Happy Meal has any place in American Culture.
  5. And perhaps strangest of all - you can not order a cheese burger. Item 2 on the menu is "two cheeseburgers" - and that's what you get.
And so we crossed the road into Disneyland. There's a lot to look at, but there is a pretty narrow band of years in which kids can get excited about Mickey's Toon Town - and probably narrower now that we have Movieworld in Queensland.

Rides, however, can serve all ages - and so ...

we queued. Until the last two rides the day, I don't belive there was a ride for which we queued less that 30 minutes. And when a ride lasts about 20 seconds, that can be a painful trade-off.

We started with Gadget's Go Coaster. We then rode the Matterhorn bobsleds (which had just broken down when we first queued for them an hour earlier), the teacups (because they spin), the Indiana Jones Adventure (the favourite so far), the Pirates of the Carribean, and the Big Thunder Mountain Railroad.

We then crossed over into California Adventure Park, specifically to ride the Tower of Terror - because Jesamine kept spotting it from a distance.

Connick hated the ride, as he kept repeating to me through clenched teeth and look of sheer terror throughout. But upon getting off decided it wasn't so bad after all. It's a poor trade-off though between queueing time and ride time.

We headed over to California Screamin', and the queue looked manageable, but Connick was not keen, and we were all so damned tired - so we decided to head back to the motel and see if Suzy had roused. Taking a wrong turning on the way out, we stumbled across the Grizzly River Rafting ride - which had no wait and offered a chance to rest our legs. That was enough encouragement so around we went, getting pretty wet in the process. With very few people still waiting to ride, we stayed on for a second round, and subsequently headed home thoroughly drenched.

Turns out Suzy has woken and tried to track us down - which was never going to work - but she did queue 45 minutes for the Ferris Wheel.

So, back to the motel, and we just headed out for a buffet tea. Now I know that you don't tip for fast food, and I know that you tip around 15% for table service, but we found ourselves out of our depth deciding how best to depart a buffet. Suzy tried questioning another customer, but it turns out he was recently landed from New Zealand, so not much help.

In the end we left $2 on the table and scarpered.

So there we have it. Day One. I've now been pretty much on the go for 34 hours, and it's time for bed. We've got a 5:30am wake-up call in the morning for our breakfast with Goofy.

I'm currently listening to the relentless and VERY load reports of fireworks over the road at Disneyland - but that's not going to wake the kids, who had well and truly crashed by 9pm LA time (2pm Melbourne time)

Good night.

Wednesday, March 2, 2011

VBA Dialogue Box for Excel

This is not my usual sort of blog post - and of the very few people who occasionaly visit, probably all would be advised to move on. This is me sharing a technique I've developed for creating user forms in VBA - which I typically use to create Excel tools.

The problem I'm trying to solve is - how to incorporate user input into a function.

For example, let's imagine you've got a spreadsheet with a table of data containing three columns: names, ages, and addresses. You want to create a list of all the people older than age n. Not hard to do by sorting the data by age, copying the group meeting the criteria, and pasting that subset of data to another sheet. But what if your data gets updated regularly and you want to recreate this list each time? And what if you want a colleague of questionable competence to be able to do it while you're off saving the world? And what if you'd like to be able to change the value of n each time you run the process? Chances are you'll want a macro, or a function, or a program, or a script, or whatever you choose to call it, to automate this task.

If you're competent with VBA and know something of Excel's object libraries, you'll know how to create a loop to iterate through the rows in your data list and copy the data to another location where [age] > n. If you don't know how to do this, your competence with Google should lead in the
right direction. But how do you tell the function where to find n?


If you're using Excel, the simple answer is to collect the data in cells, and use sheet.Cells(row, col) to read the input. This works, but one of the reasons I use Excel a lot is its flexibility - but what you typically want with functions is control. What happens when someone inserts a new row? How does VBA know where to look for input data now? (I actually have another solution to this problem, which I might post later)

Most programs use some form of dialogue box to collect user input -at least the ones I write do. And here's how it's done ...


STEP 1 - CREATE A FORM
Insert a user form. At a minimum, you'll need:
1 label
1 input control (e.g. textbox)
2 command buttons

Here's mine ...



I've named the controls:
Text Box - txtAge
"CANCEL" Button - cmdCancel
"DONE" Button - cmdDone
(I don't care what the label is called, because I won't be referring to it in code)

STEP 2 - CREATE SOME OBJECT CLASSES
The tricky bit is passing information from the form back to the program - or at least to do it in a way that doesn't make you feel dirty and corrupted. Sure, you could write to global variables, but the form is an object and shouldn't need to know about global variables.

The way I control communication between the form and the calling function is by passing objects to the form, and having the form write to those objects.

So, what is the information we wish to pass? In this case, the program needs to know the value that is entered into the textbox, and which button was pressed to close the form.

You could create one object class with attributes for each piece of information you want to pass. I prefer to use an "OK" object with a single Boolean value to deal with the Done/Cancel information, because I can reuse this class for any other similar forms I create.

So, insert a class module or two. Here's the code from mine:



    OK Class


    Private mblnOK As Boolean

    Public Property Let Value(bln As Boolean)
        mblnOK = bln
    End Property

    Public Property Get Value() As Boolean
        Value = mblnOK
    End Property


    Age Class

    Private mintAge As Integer

    Public Property Let Value(intVal As Integer)
        mintAge = intVal
    End Property

    Public Property Get Value() As Integer
        Value = mintAge
    End Property



STEP 3 - ADD SOME PROPERTIES TO THE FORM
Now add some properties to the user form based on those object classes. Note that the Property Set functions specify that the objects are passed "ByRef". I'm pretty sure this is the default method of passing objects anyway - but it doesn't hurt to be sure. Here's the code:


    Private mAge As VBAProject.Age
    Private mOK As VBAProject.OK

    Public Property Set Age(ByRef obj As VBAProject.Age)
        Set mCalls = obj
    End Property

    Public Property Get Age() As VBAProject.Age
        Set Age = mAge
    End Property

    Public Property Set OK(ByRef OK As VBAProject.OK)
        Set mOK = OK
    End Property

    Public Property Get OK() As VBAProject.OK
        Set OK = mblnOK
    End Property


STEP 4 - LET THE FORM UPDATE THE OBJECTS
Use the Click event of the DONE button to update the object values. (The CANCEL button is a simple Unload Me)


    Private Sub cmdDone_Click()
        mAge.Value = txtAge
        mOK.Value = True
        Unload Me
    End Sub


STEP 5 - CREATE THE CODE TO LAUNCH THE FORM
With all the pieces in place, now it's simply a matter of creating some instances of the objects, loading an instance of the form, passing the objects to the form, and displaying the form. Note the use of vbModal, which tells VBA to halt processing this function until the form has been closed. I also use a Cleanup: subroutine just to be tidy. I'm pretty sure VBA is smart enough to release resources once my objects go out of scope, but it doesn't hurt to be explicit in tidying up.


    Public Sub Launch()

        Dim frm As frmAge
        Dim objAge As VBAProject.Age
        Dim objOK As VBAProject.OK

        Set frm = New frmAge
        Load frm
        Set objAge = New VBAProject.Age
        Set frm.Calls = objCalls
        Set objOK = New VBAProject.OK
        objOK.Value = False
        Set frm.OK = objOK
        frm.Show vbModal
        If Not objOK.Value Then GoTo Cleanup

            Do some stuff with the age value
            ...
            ...

    Cleanup:
        Set objOK = Nothing
        Set objCalls = Nothing
        Set frm = Nothing

    End Sub

And there you have it - my somewhat long winded but tidy implementation of a dialogue box in VBA.

Monday, February 21, 2011

Virgil Donati

Late last year I went to a Virgil Donati clinic in Melbourne. Not that I do too much drumming these days, but it was a shot of nostalgia because I used to drive to Melbourne regularly in my younger days to see Virgil playing with various bands at the Grainstore on King St (now a strip bar ... or so I hear)

Apparently Virgil forgot to stop practising. The somewhat ironic thing I find is that the more technically proficient a musician becomes, and the more they push boundaries, the less accessible their music becomes. Which is to say, it is accessible, or understandable, to fewer people. Virgil has taken to this to such a level that I'm not sure he understands himself what the hell he's doing. I'm not too proud to admit that some of it sounded like complete bollocks to me. Anyone can make a drum solo sound like a crippled goat falling backwards down a spiral staircase - well, almost anyone - but it takes decades of unrelenting practice to do it on purpose ... and be specific about how many flights of stairs, the breed of goat, and a medical diagnosis of its disability.

At one point he was playing 5 beats with his left hand, 6 beats with his right foot, 7 beats with his left foot ... and folding a map with his right hand!

Tuesday, February 8, 2011

What's with all the words?

I dropped my car off today for a service. During the short wait for the courtesy bus, I glanced below the T.V. to see a laminated sign upon one of the cabinet doors, which read "KIDS TOYS ENCLOSED".

Isn't that just a little too formal - and unnecessarily wordy.

Putting aside the missing apostrophe - and to be honest, I can't recall whether it really was missing, I'm just guessing it was because I've seen so many unnecessary apostrophes inserting themselves into plural word forms that I can only assume they've come from somewhere - as I was saying, putting aside the missing apostrophe, I would have assumed kid's toys. Adult toys is a term with a very specific meaning and not something I would expect to find within the waiting area.

Enclosed? Said toys were certainly not visible. The sign was on a cabinet door. Had I a desire to locate some toys to occupy and engage the mind, body and spirit of a youngling, I reckon I'd have fathomed the meaning without being beaten about the sensibilities by all this talk of enclosures.

Wouldn't "TOYS" have been, not only sufficient, but in some way more engaging?

Saturday, February 5, 2011

Jesamine's bed

I'm not known for finishing things. In fact I'm somewhat renowned for NOT finishing things. Nonetheless, yesterday I finished building Jesamine's bed. Re-building actually. I made Jesamine a four-poster bed about ten years ago (to match the cot that I made her when she was but a wee baby). The bed was made entirely from recycled timber - and just scrap packing timber at that!

Anyway, many months ago I pulled it apart to change it from a single to a double. This meant making it an eight-poster (because that was the easiest way to make it wider).

I did a quick 3D model in Blender to plan out how I was going to make it ...



My planning didn't avoid a couple of "challenges" along the way. I forgot that I'd originally made the bed head higher than the foot. I also found in putting it together that I'd originally (accidentally) made the side rails along the top 1 inch shorter than the bottom rails. Now I know why it had never gone together well as a single bed!

The biggest challenge was when I tried to assemble it all myself, resulting in falling and crashing and breaking and undoing of quite a bit of work.

This time around Jesamine helped me to assemble it (Jesamine also did most of the staining and lacquering of the new components).

And here it is - all finished ..
.