Thursday, March 01, 2007

Announcing Southwest Fox 2007

Southwest Fox 2007

October 18-21, 2007
Arizona Golf Resort and Conference Center in Mesa, Arizona

http://swfox.net

It is our pleasure to announce the fourth annual Southwest Fox Conference, presenting the latest in Microsoft Visual FoxPro development techniques, new changes in VFP 9.0 SP2, Sedna Components, and interop with other technologies with sessions from some of the best and the brightest VFP speakers.

This highly acclaimed and popular conference is the perfect venue for VFP developers interested in learning more about VFP, further refining their software development skills, learning how to better run a consulting firm or IT department, and being a better software craftsman. To this end, there will be sessions available in the following tracks:

1) Working with Sedna and SP2:
This track will cover the new features and changes introduced in Sedna and in VFP 9 Service Pack 2.

2) Extending VFP (including VFPX, COM, etc.):
Sessions in this track will cover technologies that extend VFP's capabilities, such as those in VFPX.

3) Reviewing VFP Fundamentals:
This track will appeal to those newer to VFP, whether they are just moving up from earlier versions of FoxPro, or coming from other languages, or are new to a specific area of VFP.

4) Integrating VFP (with SQL Server, .NET, etc.):
Sessions in this track will look at using VFP together with other products, including back-end servers, Automation servers, and .NET.

5) Managing the Software Business:
This track will offer business advice to VFP developers, including managing clients, the software development process, and so forth.

The call for speakers will go out shortly and the initial speakers and their sessions will be published when registration opens on May 1st.

If you are interested in more details for the conference you can send them to info@swfox.net.

You will also notice that Southwest Fox is under new management. After three very successful years under Bob Kocher's management, Southwest Fox is now being organized by Visual FoxPro MVPs Rick Schummer, Doug Hennig and Tamar E. Granor. We look forward to continuing the great traditions of Southwest Fox, and building on some new ones too.

More details can be found at www.swfox.net.

We look forward to seeing you in Arizona in October!

Saturday, February 24, 2007

In the Land Down Under

After a really long Tuesday (up at 6 am, a one-hour afternoon flight to Calgary, a three-hour evening flight to Los Angeles, and a fourteen-hour overnight flight to Sydney), I arrived in beautiful, warm Australia Thursday morning. Craig Bailey was at the airport to pick up me and Rick Schummer, whose flight arrived an hour before mine, and take us to the hotel. After a shower and a change of clothes, the three of us took a train across the Sydney Harbor Bridge to the Central Business District (CBD), Sydney's downtown area. We went to the top of the Sydney Tower for some incredible views of the city and harbor area:



We then walked a bit around the downtown area and made our way to the Circular Quay area, home to ferries (with destinations throughout the harbor), the world-famous Sydney Opera House, and The Rocks, a wonderfully preserved section of the oldest part of Sydney (Craig is on the left and Rick on the right):



The Queen Elizabeth 2, one of the largest passenger ships in the world, was docked in the harbor, and in fact left Sydney while we dined at Doyle's, a fabulous seafood restaurant located right beside where the ship was docked, that evening:

Rick and I were both pretty jet-lagged after dinner, so we called it an early night; I was asleep by 9 pm.

Of course, I was up the next day at 5 am. I spent a few hours catching up on email, then Rick and I caught a train to Circular Quay and book a ferry to Taronga Zoo. We found a great visitor information center, probably the best one I've ever seen, in The Rocks area while waiting for the ferry. Taronga Zoo is an incredible zoo, easily as beautiful as the San Diego Zoo, but with an even better location, as I'm sure you'll agree from this picture taken from the zoo looking back to the Sydney Harbor:

Here's a picture of one of the many koalas:


Here's Rick with a very friendly wallaby (similar to a kangaroo but smaller):


After spending a few hours at the zoo, we caught the ferry back to Circular Quay, but via Watson's Bay, so we got a great view of the entire harbor, including getting caught in the middle of a sailboat race (one sailboat missed us by only a few feet!).

We then caught the train to the Olympic Park, where the 2000 Olympic Games were held. The park is used daily for a wide variety of activities, including concerts, conferences and trade shows, and athletic training. The Aquatic Center was amazing; this picture is of just part of it:


We headed back to the CBD and after a futile search through The Rocks for a Thai restaurant, had dinner at a Chinese restaurant and called it a night.

Saturday we had to get up early, which hasn't been a problem at all so far given the jet lag, and joined a tour group going to the Blue Mountains. The Blue Mountains are similar to the Grand Canyon, only lush and green (and blue, which comes from vaporized eucalyptus oil from the million of eucalyptus trees). I didn't take a lot of pictures there because I went there after OzFox 2004, but Rick did, and I'm sure he'll post some on his blog. After a hour going down the world's steepest railway, wandering in the rainforest, and back up a cable car, the bus took a long, winding, and somewhat white-knuckle road to Jenolan Caves. After a quick lunch, especially for Rick, whose food seemed to take forever to be served, we join the Lucas Cave tour. It was an amazing 90 minutes lead by a very knowledgeable and fun guide named Ian. Here are a couple of pictures:


After a long ride back to Sydney, Rick and I had some very good Greek food (after yet another fruitless search for Thai!) and headed back to our hotel.
We had three fabulous days of sightseeing, but now it's time to get to work; OzFox starts today (Sunday), so Rick and I went over our keynote this morning and tested our laptops with the projector. I also went over my sessions one last time and now it's time to meet the attendees and start the conference.

Tuesday, February 20, 2007

My New Toy -- Followup

My new system is all set up and ready to go to OzFox. It's way faster than my old system, Vista is fun and attractive, and you can't beat a 17" widescreen display. I even hooked up my 20" LCD monitor, which was the main display when my old laptop was docked, as a second monitor. I very quickly got used to having 3500 horizontal pixels to work with!

Some of the work in setting up the new system had nothing to do with the new system; it was fixing file paths. I had C: and D: partitions on my old system, with only system files on C: and everything else, including applications, on D:. The logic was that if I needed to rebuild my system, I'd reinstall the operating system on C: but all of my files on D: would be untouched. Of course, I never ended up doing that, and had to live with a relatively small C: partition which required me to clean up every year or so to eliminate out of disk space errors. I decided to stick with a single partition on the new system and put all of the non-application files from the former D: partition into one folder hierarchy so all the relative paths would stay the same. Of course, absolute paths are different, so it took me a while to go through all of my projects, locating all of the files from places like the VFP home directory and FFC folder, and fixing paths to include files in various places.

The other thing that took a while that I wasn't expecting is changing from using Outlook for calendar, Outlook Express for email, and FeedDemon for RSS feeds to using Outlook 2007 for all of that. The hardest part was getting messages out of Outlook Express and into Outlook. There may be an easier way, but I didn't find it after a couple of hours of dorking around. I ended up exporting from Outlook Express and importing into Outlook on the old system, then exporting from that Outlook and importing into Outlook on the new system. I really like Outlook 2007 and don't know why I stuck with Outlook Express for so long.

The only slight glitch so far is that Dell installs a cut-down version of Roxio for CD and DVD burning. One of the drivers that comes with Roxio, the Sonic Solutions DLA driver, isn't compatible with Vista, so at startup, a "this driver is blocked due to compatibility issues" alert comes up, followed by a Program Compatibility Assistant dialog. Clicking OK once is bad enough, but for some reason, the alert and dialog would come up seven times on system start. Even worse, if I stuck a DVD in the drive, the alert/dialog combination would come up continuously until I removed the disc. This quickly became a huge PITA.

Fortunately, Google helped me find the solution at http://forums.support.roxio.com/index.php?showtopic=17098. It does require a couple of restarts, but 10 minutes later, I'm good to go.

Friday, February 09, 2007

My New Toy

Now that Windows Vista is officially shipping, I decided it was time for a new laptop. It arrived yesterday, so I'm both excited (woohoo, a new toy!) and chagrined (goodbye three days of my life while I get this sucker set up). It's a Dell Inspiron 9400 loaded with:
  • Intel Core 2 Duo T7200 2.0 GHz processor
  • 17" widescreen WUXGA display with 256 MB ATI Radeon video card
  • 2 GB (667 MHz) RAM
  • 100 GB 7200 RPM drive
  • DVD burner
  • SD card reader and a bazillion other ports
  • Two 9-cell batteries
  • Vista Business
  • Some junk I don't want but Dell feels is necessary to install, like Norton Internet Security one-month trial subscription

I've been playing with Vista on my home system (which is also relatively new; I replaced my aging Compaq with a new Dell desktop a couple of months ago) for about a month and like it a lot (the subject of another posting).

I'm very anal about setting up a new system (those of you who know me would suggest I'm anal about everything), so I spent a couple of hours this morning documenting in great detail exactly how I'm going to set up the new system, with special attention to what comes off my old system and onto my new one. It isn't as easy as you think; obviously, I can simply move files from one to the other, but what about all of the little settings you've configured over the years, like:

  • Browser favorites
  • Demo themes
  • Windows Explorer settings, like whether to display file extensions (yes) and show hidden files (yes)
  • Desktop and Taskbar customization
  • Network and printer settings
  • File associations (I like to associate DLL and OCX files with RegSvr32 so I can just double-click to register them)

and a hundred others. Fortunately, I've been mostly documenting system customization as I go, so I just needed to update the document and go over the various folders on my old system to decide what to move, what to throw away, and what to archive and not move.

I'm also breaking Rick Schummer's law (which I adopted years ago) of never installing or otherwise changing your system a month before a conference. I'm planning on taking the new laptop to OzFox, which is only a couple of weeks away, and you can't get much more "changish" than to replace the whole freakin' system. Normally, I wouldn't do anything so foolhardy, but Rick and I are doing the keynote, part of which is to show the very cool Vista Toolkit Craig Boyd has been working on for Sedna, and it's kind of hard to show it without Vista. However, I do have a couple of ideas to make this work:

  • Test the hell out of the new machine, including every part of every presentation (which I would normally do anyway just before a conference) and how it works with a projector.
  • Bring my old laptop as well as the new one just in case.

After I finished the documentation, I started the actual configuration stuff. I had some trouble connecting to our domain until I remembered about that #%$^$ Norton Internet Security; disabling it took care of that. I then did all of the other settings stuff and started on the file transfer.

I'm copying files from the old one (which I'm typing this on) to the new one right now; the progress meter says it'll take another 5 hours (yikes, there are 73,063 files to copy), so I guess it's Miller time a little early today. Tomorrow, the really boring job starts: installing all the applications I need. I don't have 100 apps like Rick -- in fact, I have exactly 45 (thus proving the anal attribute) -- but it'll still take a couple of days because some of them, including SQL Server, Office, and Visual Studio, are real heavyweights.

No pain, no gain -- I'm really looking forward to getting this done so I can play with my new toy.

Friday, February 02, 2007

Creating Gradient Images the Fast and Easy Way

I've been trying to spiff up some forms lately. One way to make an attractive form is to use some graphic elements. I particularly like gradient images, as illustrated in this screen shot (the gradient appears banded in this image but not in the actual form):



So, how to create a gradient image of the desired size and color? Although I could do it dynamically using the VFPX GDIPlusX library as described by Cesar Chalom in various posting on his excellent blog, I decided to simply create an image file and use it as the Picture property of an Image object.

With some help from Cesar's blog, I created a simple program, CreateGradient.PRG, that generates a gradient image with the specified file name, size, and colors. The code is self-explanatory. Note that it expects the GDIPlusX class libraries are in the VFP path.
lparameters tcFileName, ;
tnHeight, ;
tnWidth, ;
tnColor1, ;
tnColor2
local lnColor1, ;
lnColor2, ;
lnMode, ;
lnFormat, ;
loSystem, ;
lcExt, ;
loBitmap, ;
loRect, ;
loGfx, ;
loGradBrush

* Ensure the parameters were passed.

if vartype(tcFileName) <> 'C' or empty(tcFileName) or ;
vartype(tnHeight) <> 'N' or vartype(tnWidth) <> 'N'
error 11
return .F.
endif vartype(tcFileName) <> 'C' ...

* If colors weren't passed, prompt for them.

if pcount() < 4
lnColor2 = getcolor(rgb( 0, 128, 255))
lnColor1 = getcolor(rgb(255, 255, 255))
else
lnColor1 = tnColor1
lnColor2 = tnColor2
endif pcount() < 4

* This assumes a horizontal gradient. Set lnMode to a different
* value for other types.

lnMode = 0


* Create a GDIPlusX System object.

loSystem = newobject('xfcSystem', 'System.vcx')
with loSystem.Drawing

* Determine the image type from the file extension.

lcExt = upper(justext(tcFileName))
do case
case lcExt = 'PNG'
lnFormat = .Imaging.ImageFormat.Png
case lcExt = 'BMP'
lnFormat = .Imaging.ImageFormat.Bmp
case lcExt = 'GIF'
lnFormat = .Imaging.ImageFormat.Gif
case inlist(lcExt, 'JPG', 'JPEG')
lnFormat = .Imaging.ImageFormat.Jpeg
case lcExt = 'ICO'
lnFormat = .Imaging.ImageFormat.Icon
case inlist(lcExt, 'TIF', 'TIFF')
lnFormat = .Imaging.ImageFormat.Tiff
case lcExt = 'WMF'
lnFormat = .Imaging.ImageFormat.Wmf
otherwise
error 11
return .F.
endcase

* Create a bitmap and a rectangle of the desired size.

loBitmap = .Bitmap.New(tnWidth, tnHeight)
loRect = .Rectangle.New(0, 0, tnWidth, tnHeight)

* Create a graphics object.

loGfx = .Graphics.FromImage(loBitmap)
loGfx.Clear(.Color.White)

* Create a linear gradient brush.

loGradBrush = .Drawing2D.LinearGradientBrush.New(loRect, ;
.Color.FromRgb(lnColor1), .Color.FromRgb(lnColor2), lnMode)

* Fill the rectangle with the gradient brush.

loGfx.FillRectangle(loGradBrush, loRect)

* Save the image to the specified file.

loBitmap.Save(tcFileName, lnFormat)
endwith
return
Thanks to Craig Boyd, Bo Durban, and Cesar for all the work they've done on this incredible library!

Conferences, Conferences, and More Conferences

I'm going to have a very hectic schedule starting later this month. I'm going to three conferences in four weeks (speaking at two of them), then another two in two weeks in May. Here's the schedule:

OzFox 2007: Feb 20 - 28 (the conference isn't that long but I'm taking a few days for sightseeing). I'm doing three presentations at this conference (see the conference Web site for details).

Home for 2 days (just enough time for jet lag to really set in!)

Synergy 2007: Mar 3 - 6. This conference is for AccountMate resellers. I'm doing a presentation on Stonefield Query for AccountMate plus Jeff Zinnert and I have a booth there.

Home for 5 days

MVP Summit: Mar 12 - 15. Fortunately, no presentation, but it'll be great meeting with the VFP team again.

Home for 6 weeks or so (whew!)

Advisor DevCon on Microsoft Visual FoxPro: May 5 - 11. Jeff and I will have a booth plus I'm doing four sessions:
  • Developing Visual FoxPro Applications for Windows Vista
  • Best Practices for Vertical Application Development
  • Installing Visual FoxPro Applications Using InnoSetup
  • Integrate RSS and Visual FoxPro
Home for 2 days

Sage Insights: May 14 - 17 (although I'll likely stretch this because it's in Orlando and we're planning a family vacation around the conference). It's the annual conference for resellers of Sage Software. We'll have a 10 x 20 booth with my business partner Mickey Kupchyk and Stonefield Query National Account Managers Jeff Zinnert and Chris Hodgins, showing the following products:
  • Stonefield Query for SalesLogix
  • Stonefield Query for ACT!
  • Stonefield Query for Timberline (a new product we'll be launching at the conference)
  • Stonefield Query for Simply Accounting
  • ACCPAC Query for Sage Accpac ERP
  • ACCPAC Query for Sage Pro ERP
  • ACCPAC Query for Sage BusinessVision (another new product)
  • Stonefield Query SDK for resellers wanting to customize one of the other products
Having eight products to show will keep us hopping. Plus, I'm doing a presentation called "ACCPAC Query: Empowering Partners to Deliver a Customized Reporting Solution," which shows Sage business partners how they can use the SDK to customize ACCPAC Query (also applicable to Stonefield Query) for their customers.

Wow! Five conferences in a span of about three months. I'll have a ton of air miles before summer even starts.

Tuesday, January 30, 2007

OzFox Rocks!

As Craig Bailey has blogged, it's unfortunate that Craig Boyd had to pull out of OzFox. I'm bummed about it, not only because of the reason, but I was also looking forward to hanging out with Craig for several days. However, I'm also excited that Rick Schummer has stepped up to fill the void. Rick's been a good friend for years and is a great speaker, so while we'll miss Craig, the conference will still have a great set of sessions. Rick and I are going to do the keynote together in Craig's place. The two of us combined don't have the energy level of Craig (I remember whispering to him to breathe during the Southwest Fox 2006 keynote), but I think it'll be a great session anyway -- we'll be showing cool features in Sedna, including the Vista Toolkit Craig's been working on for Microsoft.

If you haven't registered for OzFox yet, hurry and do so before the cost goes up on Thursday. As anyone who attended the one in 2004 can tell you, this is a don't-miss conference. The energy and excitement levels were off the charts last time, and looking over the speaker and session list, I fully expect it to be the same this time.

Wednesday, January 24, 2007

Finding the Paths for Special Folders

Storing an application's data files in the correct place has gotten trickier under Windows Vista. Most developers simply write to INI files stored in the application folder (usually C:\Program Files\Some Folder) and store the data files in a Data subdirectory of that folder. While Microsoft strongly discouraged this practice in the past, now it's enforced; even if you're logged in as an administrator, writes to certain protected resources, such as C:\Program Files or the HKEY_LOCAL_MACHINE hive in the Registry, fail.

This would break most "legacy" apps (anything written before Vista), so to prevent that, they're run in XP compatibility mode. Through a process called virtualization, writes to protected resources are redirected by the operating system to somewhere else. For example, trying to write to a file in C:\Program Files\Some Folder causes that file to be created or updated in C:\Users\username\AppData\Local\VirtualStore\Program Files\Some Folder instead.

While it's great that Microsoft prevents our applications from breaking, this really just a short-term solution. It's better to revisit where your data is stored and use one of the preferred locations, such as C:\ProgramData for global settings and C:\Users\username\AppData\Local for user-specific data. The problem is that your shouldn't used a hard-coded location for these paths, especially if some users are on Vista and some on XP. Instead, use Windows API functions to determine those locations.

SpecialFolders.PRG is a wrapper for these functions. It returns the appropriate values regardless of whether the application is running in Vista or XP. See the comments in the header for a description of what parameters to pass. This code doesn't handle all special folders, only the more common ones, but it could easily be updated to support other folders as well.
*==============================================================================
* Program: SpecialFolders.PRG
* Purpose: Determine the path to the specified special folder
* Author: Doug Hennig
* Last revision: 01/24/2007
* Parameters: tuFolder - the folder to get the path for. Specify
* the CSIDL value of the desired folder (which can
* be obtained from:
* http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/enums/csidl.asp
* or use one of the following strings:
* "AppData": application-specific data
* "CommonAppData": application data for all users
* "Desktop": the user's Desktop
* "LocalAppData": data for local (nonroaming)
* applications
* "Personal": the My Documents folder
* Returns: The path for the specified folder or blank if the
* folder wasn't found
* Environment in: None
* Environment out: Error 11 occurs if tuFolder isn't specified
* properly
* Notes: This code was adapted from:
* http://msdn2.microsoft.com/en-us/library/aa140088(office.10).aspx
* Support for other CSIDLs can easily be added
*==============================================================================

lparameters tuFolder
local lcPath, ;
lnFolder, ;
lcFolder, ;
lnPidl, ;
lnPidlFound, ;
lnFolderFound

* Define the CSIDLs for the different folders.

#define CSIDL_APPDATA 0x1A
* Application-specific data:
* XP: C:\Documents and Settings\username\Application Data
* Vista: C:\Users\username\AppData\Roaming
#define CSIDL_COMMON_APPDATA 0x23
* Application data for all users:
* XP: C:\Documents and Settings\All Users\Application Data
* Vista: C:\ProgramData
#define CSIDL_DESKTOPDIRECTORY 0x10
* The user's Desktop:
* XP: C:\Documents and Settings\username\Desktop
* Vista: C:\Users\username\Desktop
#define CSIDL_LOCAL_APPDATA 0x1C
* Data for local (nonroaming) applications:
* XP: C:\Documents and Settings\username\Local Settings\Application Data
* Vista: C:\Users\username\AppData\Local
#define CSIDL_PERSONAL 0x05
* The My Documents folder:
* XP: C:\Documents and Settings\username\My Documents
* Vista: C:\Users\username\Documents

* Define some other constants.

#define ERR_ARGUMENT_INVALID 11
#define MAX_PATH 260
#define NOERROR 0
#define SUCCESS 1

* Test the parameter.

do case

* If it's numeric, assume it's a valid CSIDL; if not, the API function will
* return a blank string.

case vartype(tuFolder) = 'N'
lnFolder = tuFolder

* An invalid data type or empty folder name was passed.

case vartype(tuFolder) <> 'C' or empty(tuFolder)
error ERR_ARGUMENT_INVALID
return ''

* If a string was passed, convert it to the appropriate CSIDL.

otherwise
lcFolder = upper(tuFolder)
do case
case lcFolder = 'APPDATA'
lnFolder = CSIDL_APPDATA
case lcFolder = 'COMMONAPPDATA'
lnFolder = CSIDL_COMMON_APPDATA
case lcFolder = 'DESKTOP'
lnFolder = CSIDL_DESKTOPDIRECTORY
case lcFolder = 'LOCALAPPDATA'
lnFolder = CSIDL_LOCAL_APPDATA
case lcFolder = 'PERSONAL'
lnFolder = CSIDL_PERSONAL
otherwise
error ERR_ARGUMENT_INVALID
return ''
endcase
endcase

* Declare the API functions we need.

declare long SHGetSpecialFolderLocation in shell32 long hWnd, long nFolder, ;
long @ ppidl
declare long SHGetPathFromIDList in shell32 long Pidl, string @ pszPath
declare CoTaskMemFree in ole32 long pvoid

* Initialize the variables the API functions will update.

lcPath = space(MAX_PATH)
lnPidl = 0

* Get the path of the specified folder.

lnPidlFound = SHGetSpecialFolderLocation(0, lnFolder, @lnPidl)
if lnPidlFound = NOERROR
lnFolderFound = SHGetPathFromIDList(lnPidl, @lcPath)
if lnFolderFound = SUCCESS
lcPath = left(lcPath, at(chr(0), lcPath) - 1)
endif lnFolderFound = SUCCESS
endif lnPidlFound = NOERROR
CoTaskMemFree(lnPidl)
lcPath = alltrim(lcPath)
return lcPath

Automatically Sizing ListView Columns

I use the Microsoft ListView ActiveX control a fair bit. It has several benefits over display-only grids, including multiple row selection and easy support for images. I usually try to avoid having a horizontal scroll bar if possible, so I size the ListView and its columns so the data nicely fits. However, one thing that messes that up is when a vertical scroll bar appears, which automatically happens when there are more rows than the ListView can display. In that case, if you've sized the columns so they exactly fit the width of the ListView, you get a horizontal scroll bar because the vertical scroll bar takes away some of the width of the ListView that was used by columns.

To deal with this, I decided it was better to initially size one of the columns larger than it needs to be to display its data (if possible), then make it narrower if a vertical scroll bar appears. The only problem: how do you know when the vertical scroll bar is visible? There isn't any property indicating that, so I decided to take a brute force method to figure it out.

The following code assumes the ListView is named oList and has two columns, the second of which will be resized after loading the list. There are a couple of "magic" numbers here: 1 is the height of a grid line in the ListView and 22 is the height of the column headers. The code determines whether a vertical scroll bar appears by calculating the height of each item (the height of the font plus the grid line), multiplying by the number of rows, and adding the height of the column headers. If that's greater than the height of the ListView, there's a vertical scroll bar, so the column width is adjusted, accounting for the width of the ListView, the width of the first column, the width of the ListView border, and the width of the vertical scroll bar.
with This.oList
llScroll = .ListItems.Count * ;
(fontmetric(1, .Object.Font.Name, .Object.Font.Size) + ;
fontmetric(5, .Object.Font.Name, .Object.Font.Size) + 1) + ;
22 > .Height
.ColumnHeaders.Item(2).Width = .Width - ;
.ColumnHeaders.Item(1).Width - sysmetric(4) - ;
iif(llScroll, sysmetric(7), 0)
endwith
Adjust this code as necessary if you have more than two columns or want to resize a different column or more than one column.

Thursday, January 11, 2007

Tag, I'm It

I've been tagged by Alex Feldstein, so it's my turn to tell five things about me that you may not know.

1. I'm lucky to be alive. A nasty combination of curiosity and clumsiness have been my downfall, literally, countless times. Here are a few:

  • When I was very young (three and younger), I nearly killed myself many times. I swallowed a penny, which my mother luckily poked down just as I passed out. I climbed onto a box which I stacked on a stool which I placed on a chair to get into my parent's liquor stash and had a couple of glugs of whiskey. I placed two nails in my mouth and played elephant, trying to poke my tusks into an electrical outlet. I wanted to iron shirts like my mom did, but forgot to take my shirt off first. The folks in the ER got to know me pretty well.

  • I've broken a number of bones, including my right humerus (which wasn't funny), left wrist, and the joint in my right thumb, all of which while doing somewhat dumb things.

  • I've had three concussions, one pretty serious (unconscious for several hours). The first two were playing football, the last only a few years ago while watersliding (OK, that one's kind of embarrassing).

  • While swimming at the bottom of a waterfall, I was pulled into a very wicked set of rapids. I emerged about 400 meters later with bruises that lasted four months.

2. I have a Master's degree, sort of. After graduating with a Bachelor of Science degree in Biochemistry, I joined the Biology department of the University of Dallas at Texas as a PhD candidate. However, after a year and a half studying molecular genetics, I came to the realization that most university professors (which I figured I'd be one day) were really just managers -- they manage graduate students who do the real science and spend most of their time filling out grant applications and attending meetings. Since I'd owned a computer for about four years at this point (1982), I decided to find a job in the computer field and that was the end of my academic career. However, I discovered some years later that I'd completed enough courses to qualify for a non-thesis Master of Science degree, but by that time, it was too late to apply.

3. I love sports. I loved football in elementary school, playing every day, even during blizzards in the winter. I also swam a lot, and took diving classes. I started wrestling in high school and liked it, although I wasn't very good (if you've ever met me, you know upper body strength isn't a forte). I continued playing a lot of football (not organized -- I tried it once and didn't care for the brutal mentality of my coach). I ran cross-country and track (400 m, 4x100 m, and 4x400 m) in 12th grade and was fairly successful (3rd in the city in the 400 and set city records in the 4x100 and 4x400). In college, I started scuba diving (which I haven't done since then), played a lot of floor hockey (which I was also good at, thanks to being fast), and played football a couple of times a week. After college, I took up cross-country skiing, which I did for a few years. Currently, I play racquetball twice a week (I took it up twenty years ago this year) and golf about a dozen times in the summer. I took a snowboarding lesson last weekend with my son and loved it, so I'm expecting to add that to my regular list of sports.

4. I don't like hockey. OK, that's not completely true -- I watch one game a year or so. I'm one of the only able-bodied Canadian males who never played ice hockey. Even Calvin Hsia plays hockey and he's from Hawaii! It comes down to the fact that I can hardly skate. It seems completely anti-Canadian, but it just wasn't something I got into as a kid.

5. I was a disco king. I was in the Canadian Reserves (a communications squadron) during college in the late 70s and we had dances once a month or so. My girlfriend at the time wanted to do the disco thing, so we practiced a lot in her living room. We got pretty good and won a couple of dance contests. Fortunately, there are no pictures of me in my white suit (that I'm aware of), but I'm not afraid to admit that I still like disco music to this day.

OK, here are the people I'm tagging:

John Koziol
Ted Roche
Craig Boyd
Ken Levy
Cesar Chalom