astradele

Archive for June, 2005

Inline skating while blind, deaf, and very dumb

Posted by GJ on June 30, 2005

After an evening of an entertaining board game (”Dune”, as in Frank Herbert), I decided to skate home. I love skating at night on the empty residential roads. It’s cool, quiet, and smooth.

I’d never taken this route home before, but roads tend to be pretty parallel, so it wasn’t hard to figure out. Near the end, however, I encountered a dead end. A grassy knoll lay between me and a parking lot that connected to the last road home.

I’ve had my inline skates for six years or so, although using them only intermittently since university. I’ve never fallen, though I’ve come close. I’m not particularly good, I just never seem to have quite taken a spill.

I’m sure you see where this is going. In a moment of impulsive recklessness, I take to the poorly illuminated grassy knoll, shoes in hand, at about midnight. I fared reasonably while limiting myself to a crab-walk. Once I decided to actually roll, however, it was much more precarious. In the end, despite making it past miscellaneous grass patches and pine needles, my fortunes ran dry and I wiped out.

It reminded me of snowboarding, actually - felt the same on a wipe out. I got off with a superifical scrape near my elbow, a long but thin cut on my shin, and a wrenched muscle by my ribs. I’m glad I did it.

Why am I glad over personal injury from recklessness? Ironically, the injurious experience made me feel younger and wiser. Younger, for daring to do something that was probably going to be deleterious to me. Wiser, because the shock of injury spurred me to reflect on myself and what I was doing, why I did it. Sounds odd, eh? I haven’t taken an injury of any sort (aside from snowboarding) in a very long time. It’s like I’d forgotten what it was like. I guess it’s invigorating, mentally and physically, to do something that has signficant risk, even if the visible outcome is negative. I had a good laugh while regaining my breath.

Before you think I went totally crazy, I would never condone completely reckless behaviour. I did consider probabilities of long term harmful effects for this “obstacle course” before letting the whimsical side take over. :)

Posted in everyday | No Comments »

Mouse Gestures in Internet Explorer

Posted by GJ on June 30, 2005

It turns out that someone implemented a Mouse Gestures for Internet Explorer plugin. It seems to work really well!

If you’re wondering what Mouse Gesturea are, the short answer is that it’s a fast way to instruct a program to do certain things, like shortcut keys on the keyboard. They’re great for programs that require your hand to be on the mouse anyway, like web browsers. The user holds down a mouse button, and draw a simple shape on the screen really fast with your mouse. The application interprets it and translates it into a command, which it then performs.

For instance, by holding down a button and making an L-shape, the browser window closes. An up-down motion asks for a page refresh. Those are the simple gestures; they let you skip the button search effort. I guess it’s like learning a sign language to instruct the computer on what to do.

You can have more complex operations. Some that I’ve found useful are: clone the current page, open up a new (blank) window, show me the web page source, blank out this image. Once you consider a large number of operations, it’s easier to remember the pictographic gesture than which of the many buttons or menu options does what you want.

I highly recommend trying it out. It may sound hokey, but it grows you on you really fast.

Posted in techie | No Comments »

Red Bull

Posted by GJ on June 29, 2005

Years after those lovely commercials (“Red Bull gives you wings!”), I finally took the opportunity to try Red Bull. For breakfast! (I was pretty tired)

My observations before opening it:

  • $4?! Who do they think they are, Starbucks?
  • The ingredients list reads like a pharmaceutical product. Taurine? My cats need that, but do I need 1000 mg of this?
  • 80mg of caffeine? Wow. Didn’t the caffeine pills I used to take (they were pretty effective) have about 100mg?

And after opening it:

  • Ugh! Cough syrup! Carbonated cough syrup!
  • Not so bad… hmm… odd, I’m only done a third of it, and my mind feels more clear.
  • Uh oh… a little restless, a little bit jittery. Maybe I shouldn’t drink the other half.
  • Maybe I should have some warm milk.

I guess my sensitivity to caffeine has moved closer to normal since university days, or else Red Bull is a lot more effective than it’s caffeine content suggests. Interesting stuff to keep in mind next time I really need it, but perhaps not for breakfast. I hear the original European contents were changed for Canadian consumption. I’m not sure why Canada seems to always get watered down versions of these hyper-caffeinated drinks.

Posted in everyday | No Comments »

XTNDConnect PC (Siemens S40, Sony Ericsson T630/T637)

Posted by GJ on June 28, 2005

The Siemens S40 and the Sony Ericsson T630 (which differs from the T637 only in GSM 850/900) have in common another characteristic other than being my latest two phones. They both come with synchronization software called XTNDConnect PC. Different versions, specific to each phone.

Now, I don’t know what the commercial version of that software is like, but the versions I used with the S40 and T630 are pretty finnicky.

  1. You have to make sure you run the installation program as the user you intend to sync the phone with (so it picks the right Outlook data file). The program will need write access to files in C:\Program Files\Common\XCPCSync. Not well behaved multi-user or minimum-rights (i.e. non-admin users) behaviour, but this is okay with most people I’m sure.
  2. It really doesn’t like being installed atop another version (or the same). This is a problem for many people, I’m sure. I think most people install new versions of software atop old ones. I know I did when changing from the S40 to T630. Always uninstall old versions of XTNDConnect before installing a new version.

#2 runs contrary to typical user behaviour (I believe), and uninstallers are known to become broken over time anyway. The bad thing about #2 is that it’s hard to determine what’s wrong once you do what #2 says not to. The error messages for XTNDConnect PC are terrible; they tend to be the same one for a variety of problems.

When I converted from my S40 to T630, I was a bad boy. Even when I uninstalled the old S40 software afterwards, the T630 version still wouldn’t install and run properly. As it turned out, the XTND version for the S40 left registry entries, and the the T630 version of XTND noticed them and silently did not replace and add to them as it should have. Had to uninstall everything, delete the registry, delete the two key directories (Program Files\XTNDConnect PC and Common Files\XCPCSync), and install the T630 software again.

And today’s event was the use of task manager to kill XTNDConnect after a snafu relating to Outlook and fighting for access with my Pocket PC (I think). Bad idea. Subsequent attempts to start XTNDConnect gave me “sync engine is already logged in for a different client”. Useful. I started looking for lock files. As it turned out, reading the help file reminded me there was a log file, and reading the log file told me one of my data files was corrupted. Oops. Although, what does this have to do with another user being logged in? Oh well. So I run the installer for the T630 XTNDConnect PC software again.

Wait, wasn’t there something about always uninstalling first?

So the installer failed to make the necessary modifications, seeing something there already and deciding to silently play it safe. XTNDConnect’s behaviour wouldn’t be so troublesome if it weren’t so tight-lipped. However, after uninstalling, and making sure the directories were pretty clean, it installed properly, and yes, actually works again.

Really… not the kind of program you want to be on the wrong side of.

Posted in techie | No Comments »

Symbolic linking on Windows

Posted by GJ on June 28, 2005

Unix users know the value of symbolic links. Interestingly, the same sort of behaviour is available on Windows (NT, 2000, and up), although I believe they’re called “reparse points” and are quite different in the details. SysInternals’ Junction lets you create and manage them.

I use them mostly for two reasons:

  • The directory I often want is buried somewhere obscure. This happens with my PDA’s mirrored directories, which end up in c:\Documents and Settings\username\My Documents\PDAname\My Documents. I point “C:\PPC” (Pocket PC) to that long mess, and when i put files in C:\PPC, I’m really putting stuff in that first directory. It’s like shorthand.
  • Sometimes an application file dialog pops up and shows you the special “My Documents” folder (no leading prefix of directories). I find that folder annoying, since the Up arrow doesn’t really do anything from there. I know what directory it’s showing me, and I want to go up one further, but I can’t. The drop down list at the top often pauses when you click on it, as it checks \network drives and similar activities. So I create a junction in “C:\Documents and Settings\username\My Documents” that points to the directory I want. Don’t have to navigate any folders or fight Windows Explorer because it treates “My Documents” as a special folder that has no parent (even though it does).

Posted in techie | No Comments »

Cha Liu

Posted by GJ on June 27, 2005

On a lark, I went to Cha Liu today. Not too far (it’s hot!) and I’ve passed by before, wondering at a dim sum shop so far from Chinatown.

Upon entering, I was struck by how much better the restaurant looked compared to its drab entrance (hole-in-the-wall door, old paint and old carpet in the stairwell). It looks like a converted bar, but very neat, nice lighting, lots of dark wood. Dishware was an interesting glazed pottery material, and not even your typical beige plastic chopsticks.

For me, a dim sum shop is judged by the “classics”: shrimp dumplings, pork dumplings, and shrimp rice noodles. Looking at the menu, the flourished descriptions seemed interesting, although their colour was dampened by the price tags nearby - $4 a dish! The reason why I had my suppresed my curiosity before.

Shrimp dumplings:
127_2755 Pork dumplings:
127_2757 Shrimp rice rolls:
127_2756

Looks good enough, eh? And thus my culinary experience began, dish after dish. Looks nice enough… a little sticky… a little soggy on the outside… good ingredients on the inside… eh <shrug>. Next… same, next… same. How disappointing. Well, at least the prices kept me from from commiting acts of gluttony, I weigh enough as is. ^_^

The dessert, however, was quite interesting. Strawberry sago:
127_2758 I’ve had this in coconut milk before, but never in what looked like strawberry syrup! It was surprisingly good. I feared it would be sickly sweet. The condensed milk was more for visual appeal than actually being detectable I think.

So after it’s been paid for, I have to wonder… how does this rank highly to be written about? Unless I got the end of day dregs (possible, it was closing time), I’d much rather take the time to travel somewhere where more of the money goes into my stomach rather than the decor. Not terrible, but at that price, I’d rather go elsewhere. In their vicinity, though, I can see how they have a captive dim sum market.

Posted in everyday | Tagged: | No Comments »

Korean grill

Posted by GJ on June 25, 2005

One of my favourite recent cookware is my Korean Grill. I basically went to “Koreantown”, pointed at what someone was using in the grocery store to cook samples, and asked for “one of those”. I like galbi/kalbi a lot.

It’s just a regular butane stove, blue flames coming out, etc. Those slits at the top expose meats to the flames, as well as catch dripping fat into a ring of water (the silver metal piece is a a ring of water. The water prevents the fat from burning and causing more smoke.

Korean grill

I’m really glad I got it since it was cheap, makes for fast cooking (basically an indoor barbecue), and it’s remarkably easy to clean considering I’m burning stuff (stiff brush, water, and soap). If an outdoor barbecue isn’t feasible, this is a good substitude for thin meats.

Posted in everyday | Tagged: | No Comments »

Zip.ca: infinite, cheap DVD rentals

Posted by GJ on June 23, 2005

I’m one of the minority that chooses not to have t.v. show access. However, I “cheat” and watch a lot of DVDs instead.

You’d think the expense would soon convince me that a monthly fee for cable or satellite was worth it. Not so, thanks to zip.ca. If you’re familiar with Netflix in the USA, that’s exactly how this works. zip.ca is based in Ottawa (Nepean), and for a flat monthly fee (C$25), they’ll send you DVDs to watch. I’m permitted to have four out at a time, and I mail the DVDs back to them before they send me the next ones I want from my list. Postage is prepaid, via Canada Post.

I’ve been with them for about 3-4 months now. There have been a few scratched discs, occasional long periods where I was wondering if they were holding out on me, but overall I’ve been quite happy with their service. It’s certainly more economical than if I went to a regular store and rented that many DVDs each month.

Not a big deal for those used to Netflix, but hey, this is Canada. Take a time machine back a few years to when NetFlix first hit the scene, that’s how zip.ca is. I’m glad the idea finally got duplicated, and it got duplicated well instead of in a slipshod way.

Posted in everyday | No Comments »

Cafe Margaux

Posted by GJ on June 21, 2005

While skating around Little Italy during the festival, I ended up at a restaurant nearby that looked pretty interesting and wasn’t crowded at all.

I do feel odd sometimes going into nice restaurants on inline skates looking quite, uh, disreputable. I decided to just go with an appetizer and an entree, since I’d be skating afterwards.

Sweet Red Pepper Soup. Looks like tomato with some butter swirled around, but it tastes pretty good!
127_2752

Ginger pork tenderloin, various vegetables, and some kind of “reduction” sauce that was quite good! The ginger where in tiny cubes on the pork, the tenderloin was bite sized (my bite sized); the sauce was good, and the ginger gave an interesting taste to the pork without being overwhelming. The veggies, well, they weren’t the highlight for my tastebuds, though they looked nice!
127_2753

Overall pretty good. The restaurant filled up fast after I got there. I’d go back to try some other interesting dishes.

Posted in everyday | Tagged: | No Comments »

Posted by GJ on June 21, 2005

I heard about JAXB from a coworker. When I first read about it, I thought it was a fascinating tool to abstract all the tedious composing and decomposing of XML documents. JAXB builds Java interfaces/classes based on an XML Schema, and handles convert between Java objects and XML documents.

From what I can tell so far, JAXB doesn’t handle extending complex types that well. For some reason, when I write complex types like this: and marshal it using the JAXB generated marhsallers, the generated document only has the Child’s properties, rather than Base+Child. So when it’s fed back through the schema, it’s wrong!

Reading the JAXB docs more thorougly, they seem to say that extensions aren’t wholly supported, but extensions for complex types are okay (yay!). On the other hand, as I tried to follow the instructions to enable it, it got increasingly burdensome the number of hoops I was jumping through just to use JAXB.

So I need to pause and consider for a moment: does JAXB still provide me with value, or is it as much work to get it working as to go it on my own? I don’t want to do custom development, but I can’t seem to get what I want: generate an object model that lets me work naturally in Java, and converts it to and from simple XML (no namespaces, etc.) to send over the wire. I feel like the JAXB implementors had a more lofty and complex goal than mine - probably handling the full XML Schema spec.

Posted in techie | No Comments »