Sunday, October 30, 2005
Our suburb's local heros (IGA) have a nasty habit of stocking the milk in the fridge such that the best-before date faces inwards. Only once have the dates been facing out; which probably means some customer had turned them all around before I came along. It's so bloody irritating! It would be better if they do not display the newer stock until the old one has been sold out. But please face the dates outwards! I know it's weird that we should be concerned about a one or two day difference in best-before dates. It's just something we pick up after experiencing having to clear the fridge of some really sour milk! That said it is also strange that milk would instantly turn bad at the stroke of mid-night! :)
DST
My weekend has been shortened by DST! Now, think of the poor honours students who have to hand in their thesis tomorrow! Imagine working through the night and seeing the clock skip one hour! "Argh!"
Thursday, October 27, 2005
A test in itself
Testing email blog. Will the lines be chopped off at 70-80 characters by the email client and then blogger starts inserting line breaks all over the place or will this wrap nicely? To test this, I would need to have a really long paragraph of text. What would be a good paragraph to test this with? Wait a minute! This paragraph is already long enough! Wow! What a coincidence. Duality of purpose: (1) to inform readers what this post is about, and (2) to be the test case of itself. How remarkable!
Why did it get stuck as a draft???
Why did it get stuck as a draft???
Sunday, October 23, 2005
Civic to Hackett via Ainsle Reserve
Today I went looking for the Mt Ainsle reserve track from Civic to Hackett. Lesson one: maps are no more reliable than rough guides! Or I read it wrong. Either way, finding the track was more straightforward than I thought. Literally! Just go straight down Donaldson Street!
When I reached the track, I immediately recognised the place. That was where I was riding yesterday on one of my random rides into the reserve. So there was an "ah ha" moment there.
Statistics
From: McDonald's Cooyong St
To: Hackett Shops
Distance: 5.14 kilometers
Riding Time: 15 minutes and 33 seconds
Average Speed: 19.8 kilometers per hour
Maximum Speed: 43 kilometers per hour
When I reached the track, I immediately recognised the place. That was where I was riding yesterday on one of my random rides into the reserve. So there was an "ah ha" moment there.
Statistics
From: McDonald's Cooyong St
To: Hackett Shops
Distance: 5.14 kilometers
Riding Time: 15 minutes and 33 seconds
Average Speed: 19.8 kilometers per hour
Maximum Speed: 43 kilometers per hour
Darwin was right!
What's all this about Darwin being wrong?
... *checks watch*...
Gee... Darwin was right!
Good night.
<jin ibook 01:21 AM> uname -srmp; date
Darwin 7.9.0 Power Macintosh powerpc
Sun Oct 23 01:21:44 EST 2005
... *checks watch*...
Gee... Darwin was right!
Good night.
Saturday, October 22, 2005
Climbing Hills
Riding up steep hills with loose rocky surfaces is difficult! Today, I met another incline which I failed to scale without stalling. When you're climbing a steep incline, it's about balancing between more rear traction or front traction. Leaning too far front causes the rear to slip. Too far back and the front starts to float making steering difficult. Unfortunately, on a steep incline, the middle ground between too far front/back is remarkably small.
One thing I learnt today is how to resume climbing on an incline after a stall. It used to be that when I got on to the bike, the weight was all wrong, with too much power into the rear and too little weight, resulting in a series of slips and stalls, never starting. Solution? Apply a some rear brakes when climbing onto the bike!
Lastly, the best part about climbing these inclines is going down! Wheeeee......!
One thing I learnt today is how to resume climbing on an incline after a stall. It used to be that when I got on to the bike, the weight was all wrong, with too much power into the rear and too little weight, resulting in a series of slips and stalls, never starting. Solution? Apply a some rear brakes when climbing onto the bike!
Lastly, the best part about climbing these inclines is going down! Wheeeee......!
Sunday, October 16, 2005
Tools I wish I had for developing UML State Machines
The recent post about diagram drawing tools (Xfig and Dia, and I also tried Omni Graffle) started because I want to develop a state machine for the software I'm working on. But as I remove states, or discover new states (or realise I forgot some state), diagram drawing tools become cumbersome. Lines and boxes all over the place! To insert a state in the middle of all these, you may have to reroute existing lines. Sometimes you add the new lines and delete the old ones; and forget to delete some. Sometimes you do it the other way and forget to add some. Double check, triple check, quadruple check, ... it never ends! And when you think it's ended, there's always the nagging feeling, "did I break something?"
How nice would it be if I had some kind of state machine specification language of the form:
While it is straight forward enough to use a similar style for the actual code, what would be nice is to have something that converts that into a diagram. Much like how you markup your document using LaTeX and let the LaTeX engine handle the rest. The philosophy being authors should focus on writing the document, not what font it should be in, where to put page breaks, what the page width is, etc. Similarly, I would like to focus on adding, removing, or modifying states and transitions in the state diagram, not deciding where to put a box or how to route a transition line, and where to squeeze in the signal label for each transition.
All that sounds difficult for a machine to handle though. Moreover there's the problem of the diagram changing too radically from one change to the next such that the author has to re-orientate to make sense of the updated diagram.
How about a "red ink" concept? Take the current state of the diagram, use "red ink" to add a new state, add new transition lines (just use red ink link two states with a straight line!), delete old lines, and then update. The software can then do some animated magic to morph from the old diagram into the new one with as little restructuring as possible. Animated morphing is important so the author can be re-oriented from old to new diagrams. This would be an interactive and incremental approach to building state machines. And it could apply to other diagram drawing tools too. Hmm... it would be a really cool application for a tablet PC.
If only...
How nice would it be if I had some kind of state machine specification language of the form:
goto AtDinnerTable(); /* starting state */
state AtDinnerTable() {
entry:
printf("%d is at the dinner table\n", self.id);
eat_potatos_signal(n):
goto EatPotatos(n);
}
state EatPotatos(n) {
entry:
for i = 1 to n:
printf("%d: Potato number %d\n", self.id, i);
printf("%d using fork fetch a potato to plate.\n", self.id);
printf("%d eat potato.\n", self.id);
goto AtDinnerTable();
}
While it is straight forward enough to use a similar style for the actual code, what would be nice is to have something that converts that into a diagram. Much like how you markup your document using LaTeX and let the LaTeX engine handle the rest. The philosophy being authors should focus on writing the document, not what font it should be in, where to put page breaks, what the page width is, etc. Similarly, I would like to focus on adding, removing, or modifying states and transitions in the state diagram, not deciding where to put a box or how to route a transition line, and where to squeeze in the signal label for each transition.
All that sounds difficult for a machine to handle though. Moreover there's the problem of the diagram changing too radically from one change to the next such that the author has to re-orientate to make sense of the updated diagram.
How about a "red ink" concept? Take the current state of the diagram, use "red ink" to add a new state, add new transition lines (just use red ink link two states with a straight line!), delete old lines, and then update. The software can then do some animated magic to morph from the old diagram into the new one with as little restructuring as possible. Animated morphing is important so the author can be re-oriented from old to new diagrams. This would be an interactive and incremental approach to building state machines. And it could apply to other diagram drawing tools too. Hmm... it would be a really cool application for a tablet PC.
If only...
iPod Decision!
I just placed an order for the iPod Shuffle! Yes... I know... you think I should've gotten the Nano. Well, since I've placed the order, I have to disagree. I reasoned that the only relevant advantage of the Nano over the Shuffle is the ability to see what's playing and to choose what to play. The rest, address book, slide shows, blah blah, are just garbage. If I want to see what's playing, I'll do that on iTunes. It's not like I'm a chronic public transport commuter and have nothing to do for periods of time during the day. Choose what to play, I have that on iTunes... and it's almost always on party shuffle mode anyway. So I'm not that kind of person. Shuffle has advantages over the Nano too. Cheaper, lighter, can tahan pocket treatment, pause/play/hold all using one button. Ok. Can't wait 2-7 Business days + 1 more weekend day!
Saturday, October 15, 2005
Man being arrested
I moved into a new office recently. Actually, this is my first office. Previously I had been squatting in a colleague's office. The timing was just perfect. He left for half a year and I moved in. He came back and I left. I come back and he leaves again. And then when he comes back, yet again, I move into my new office. And he moves too. There's a big reshuffle in the department. But that's not the point of this blog!
So the view from this new office is great. I get to see someone getting arrested right outside my window. I took lots of pictures just incase there was police brutality. There was none. As far as I can tell through watching this scene (like a silent movie really!), the man was very cooperative and the police were polite; even though the man's companions seemed to be quite hostile.
Ahh... police are such nice people I wouldn't mind be arrested myself. Ha ha!
So the view from this new office is great. I get to see someone getting arrested right outside my window. I took lots of pictures just incase there was police brutality. There was none. As far as I can tell through watching this scene (like a silent movie really!), the man was very cooperative and the police were polite; even though the man's companions seemed to be quite hostile.
Ahh... police are such nice people I wouldn't mind be arrested myself. Ha ha!
Wednesday, October 12, 2005
iPod indecision
iPod... iPod... iPod... which iPod am I? iPod -- too big. iPod Nano -- too flimsy, too delicate, iPod shuffle -- no screen. "Nice song. What is it? Where's the screen!"
Another approach. Where will I use an iPod? I've been cycling with a little FM radio and the iPod would replace that. That means I don't need a screen. And it's gotta be tough enough to be placed in a pocket with keys, mobile phone, and coins. Am I a Shuffle?
I would also like to plug use it in the car. While no screen means no distraction from driving, it means that the passengers will all be saying "you should have gotten a Nano!"
... to which I should reply, "you get the nano if you want the screen! Driver no need screen!"
Shuffle with its cryptic user interface consisting of a repertoire of press/press-hold sequences and flashing/glowing LEDs is like the command line interface compared to the GUI on the Nano/iPod. I must say that appeals to me. No need to wade through menus and sub-menus. Know what you want and just preform the right sequence without looking. The spartan set of functionality on the shuffle makes this easy!
Not helping...
Next approach. The 2GB Nano will cost about $90 more than the 1GB Shuffle. What will I get for this $90?
What additional intrinsic cost is there?
I was going to buy the shuffle yesterday. But the Apple shop says I needed to buy online to get the education price. But that's the Apple shop on campus! Strange. I did buy my iBook there at education price.
Then at night, I decided that I'd buy the Nano. But in the morning, I changed my mind again. Argh.... this is driving me nuts! At this rate, I might be using the FM radio for quite awhile more!
Another approach. Where will I use an iPod? I've been cycling with a little FM radio and the iPod would replace that. That means I don't need a screen. And it's gotta be tough enough to be placed in a pocket with keys, mobile phone, and coins. Am I a Shuffle?
I would also like to plug use it in the car. While no screen means no distraction from driving, it means that the passengers will all be saying "you should have gotten a Nano!"
... to which I should reply, "you get the nano if you want the screen! Driver no need screen!"
Shuffle with its cryptic user interface consisting of a repertoire of press/press-hold sequences and flashing/glowing LEDs is like the command line interface compared to the GUI on the Nano/iPod. I must say that appeals to me. No need to wade through menus and sub-menus. Know what you want and just preform the right sequence without looking. The spartan set of functionality on the shuffle makes this easy!
Not helping...
Next approach. The 2GB Nano will cost about $90 more than the 1GB Shuffle. What will I get for this $90?
- calendar / address book, blah blah (no need)
- music library browsing
- know what song is being played
- 1 GB more!
- faster recharge (about 1hr faster)
What additional intrinsic cost is there?
- less battery life if screen is used much (can you switch it off?)
- less pocket friendly.
- heavier (oh please.. just about 40 grams!)
- need to bring cable to link to USB port
I was going to buy the shuffle yesterday. But the Apple shop says I needed to buy online to get the education price. But that's the Apple shop on campus! Strange. I did buy my iBook there at education price.
Then at night, I decided that I'd buy the Nano. But in the morning, I changed my mind again. Argh.... this is driving me nuts! At this rate, I might be using the FM radio for quite awhile more!
Sunday, October 09, 2005
Trees falling over in Canberra!
I'm on my ride home from uni and on the opposite side of the canal are three fallen trees. I ride home, take the camera and drive out to take some shots of these trees. Below is one victim of what? What caused the trees to fall over?
Here's the biggest of the three trees.
Here's the biggest of the three trees.
Man was it big news! |
Wednesday, October 05, 2005
AIST Super Cluster
The Advanced Industrial Science and Technology (AIST) campus in Tsukuba is home to the AIST Super Cluster. Unlike the Earth Simulator, this cluster is housed in a normal building. So cluster nodes are secured at the top as shown in the photo so they don't fall over in an earthquake! That really gives you a sense of security when you are beside the machine! Seriously!
More details about the AIST Super Cluster here.
More details about the AIST Super Cluster here.
Apple in the Ginza
The Apple store in Ginza, like many of the other big brands, is a building. And it's a building that definitely matches its product line. The silver skin with the white glowing Apple logo, just like the PowerBooks!
Inside, the building features glass elevators; REAL glass elevators! Watching the counterweight rising and falling, and the gears closing the door was a treat. Like how Apple fought against two-button mouses for years, Apple lifts do not have buttons! They just go up, and then go down, and then go up, and down... stopping at every floor. Who needs buttons! Maybe they'll relent and introduce lift buttons in a few years time like how they recently introduced Mighty Mouse.
Note that Mighty Mouse has a smooth outer shell with no physically distinct left/right mouse buttons. The mouse detects which button is pressed because it can sense which part of the mouse was touched. That's the problem... to right click, you need to lift up your left finger. Otherwise it will default as a left click. This also means you cannot do a "left+right" click. Not so mighty afterall!
Inside, the building features glass elevators; REAL glass elevators! Watching the counterweight rising and falling, and the gears closing the door was a treat. Like how Apple fought against two-button mouses for years, Apple lifts do not have buttons! They just go up, and then go down, and then go up, and down... stopping at every floor. Who needs buttons! Maybe they'll relent and introduce lift buttons in a few years time like how they recently introduced Mighty Mouse.
Note that Mighty Mouse has a smooth outer shell with no physically distinct left/right mouse buttons. The mouse detects which button is pressed because it can sense which part of the mouse was touched. That's the problem... to right click, you need to lift up your left finger. Otherwise it will default as a left click. This also means you cannot do a "left+right" click. Not so mighty afterall!
DIAgrams, XFIGures, and FINK
I'm in need of a system independent (meaning just Mac and Linux) method for drawing diagrams. I like Dia because it's easy to use. However, that's probably just because I've been using it for about 4 years now. Every diagram I've every drawn in my documents since I started using LaTeX in 2002 has been done using Dia. In fact, even the diagrams I put into OpenOffice Impress slides were done using Dia. Since I could modify one Dia file and export it for both the presentation and the document. (Will try LaTeX slides soon, OpenOffice takes ages to load, and you can't "make" them off central EPS image repositories automatically)
Now, I also have an iBook G4 running OS X Panther. With CVS, I am able to work on one CVS Root located on my staff account. This is great for keeping all your work synchronized at one location (moreover staff directories are backed up). Unfortunately Dia doesn't run on my iBook, that is, while there is one central copy of the project, the source file for diagrams (using Dia) is only editable on the Linux machines. What does work on the Linux machines and the iBook is XFig. This, to me at least, has a relatively cumbersome interface. That said, XFig does have its fans. So I tried using it for awhile but gave up.
I know some of you might be thinking, "but you can get Dia off Fink on the Mac." Last time I tried "fink install dia", it asked if I wanted to install the 108 dependencies, to which I replied "yes", waited half a day, and then it ran into an error. I don't even want to imagine what half baked packages were in "/sw".
Yet, that's the beauty of Fink: everything is in "/sw". Today, I renamed "/sw" to "/sw.oldfink" (just incase I need it back) and installed Fink again (a newer version 0.7.2) and will try Dia again soon. This time, I'll go for the "binary" option if any (Dia on Fink is still "unstable").
Now, I also have an iBook G4 running OS X Panther. With CVS, I am able to work on one CVS Root located on my staff account. This is great for keeping all your work synchronized at one location (moreover staff directories are backed up). Unfortunately Dia doesn't run on my iBook, that is, while there is one central copy of the project, the source file for diagrams (using Dia) is only editable on the Linux machines. What does work on the Linux machines and the iBook is XFig. This, to me at least, has a relatively cumbersome interface. That said, XFig does have its fans. So I tried using it for awhile but gave up.
I know some of you might be thinking, "but you can get Dia off Fink on the Mac." Last time I tried "fink install dia", it asked if I wanted to install the 108 dependencies, to which I replied "yes", waited half a day, and then it ran into an error. I don't even want to imagine what half baked packages were in "/sw".
Yet, that's the beauty of Fink: everything is in "/sw". Today, I renamed "/sw" to "/sw.oldfink" (just incase I need it back) and installed Fink again (a newer version 0.7.2) and will try Dia again soon. This time, I'll go for the "binary" option if any (Dia on Fink is still "unstable").
Monday, October 03, 2005
Wing Oxy Bar
Here's an "Oxygen Bar" in the Ginza area of Tokyo. People pay to breath scented oxygen! Here, oxygen is marketed like juice bars. The hardware sort of looks like the scent sprays for car interiors you can get a petrol kiosk (usually adjacent to the self-service vacuum cleaners).
Wing Oxy Bar
Wing Oxy Bar
Sunday, October 02, 2005
The Earth Simulator
One of the highlights of our trip to Japan was a visit to the Earth Simulator. This was once number one on the Top500, before BlueGene came along. Still, it is an impressive machine. (More images where this came from.)
The Earth Simulator
Buildings in the area have to deal with earthquakes...
Building Suspension!
Access into the computer is via a bridge. The stub end is connected to the computer, and in the event of an earth quake, the rest of it is designed to detach and fall off. So in the event of an earth quake, one of the safest places to be is in the computer!
Bridge into the computer
The Earth Simulator
Buildings in the area have to deal with earthquakes...
Building Suspension!
Access into the computer is via a bridge. The stub end is connected to the computer, and in the event of an earth quake, the rest of it is designed to detach and fall off. So in the event of an earth quake, one of the safest places to be is in the computer!
Bridge into the computer
Taking a break from cycling
One of the first thing we did in Tsukuba was to rent bicycles. The bicycle shown in the picture is called "The Ninomiya House Bicycle". Ha ha. It's a three speed machine with a Shimano Nexus gear mechanism that is built into the the rear axle. And although it looks like crap, and weighs a ton, it seems that it's Japan's favourite bicycle design! Almost all cyclist ride a bike like that. And they ride it really slow, with the seat set as low as possible (mine's as high as possible, any more and it'll pop off). Bike rental cost 2000 Yen for a month. Not bad at all.
Taking a break from cycling
Taking a break from cycling
Ninomiya House
Our accomodation needs in Tsukuba Japan over the three week period were met by the tranquility of Ninomiya House. It's a relatively new place and is beautifully designed. Much better than the apartments in Hackett! Each room has a bed, sofa-bed, ensuite bathroom, medium sized fridge (not a bar fridge), stove unit with grill, washing machine, television (extra cost for cable), airconditioning, in-floor heating, dryer (built into ventilation unit in bathroom), vacuum cleaner, iron with ironing board, telephone, and fax-machine. But NO INTERNET CONNECTION :( !
Ninomiya House -- At the back is a FARM, in the middle of Tsukuba!
The Library -- Voted most popular place for being the only location in Ninomiya House with Internet access!
View of Tsukuba from Ninomiya House -- On the lower right, we have ANOTHER FARM!
Hi-tech Toilet
More photos...
Ninomiya House -- At the back is a FARM, in the middle of Tsukuba!
The Library -- Voted most popular place for being the only location in Ninomiya House with Internet access!
View of Tsukuba from Ninomiya House -- On the lower right, we have ANOTHER FARM!
Hi-tech Toilet
More photos...