Indent TabItem in WPF Application

A question arose on my lunchbreak: how do you indent the first TabItem in a TabControl in WPF? Say, to put a logo or button on the same line as the tab headers.

This is a three-minute solution, so it may not be optimal, but…

Continue reading


Unfinished Proj

My last post looked back on some of my unfinished projects. At the time of its writing, I was in a retrospective mood, and not just because it was the end of the year.

After five years with the same company, I left my position at the end of the year. Three weeks into the new year, it’s too early to say how things will work out, but I know it was the right move. Still, I look back to see a lot of unfinished business: proofs-of-concept, prototypes for products that never materialized, pet projects perpetually on the back-burner, and so forth.

Sadly, I won’t get to see them finished.

I enjoyed working both in the THINC realm and in the growing MTConnect realm. Most of my posts in this blog were about one or the other. Since my new job is in a different field, unfortunately it seems unlikely that I’ll be able to continue working with either.

To the folks who visited this blog either for THINC or for MTConnect, thank you for visiting. I’m always open to answering questions or providing quick code examples for either technology. (My ability to answer questions about THINC may be limited, as all of my documentation and libraries now reside with my former company.)

As for this blog, time will tell what direction it moves from here.


Unfinished Proj – MTConnect

(As the year 2013 comes to an end, I’m looking back at some of my unfinished projects from the past year. This article is about projects related to MTConnect.)

In the past year, I have written about MTConnect quite a few times. And I’m not a paid shill or anything. After so many years in the machine tool industry, dealing with islands of isolated proprietary data, the openness of the MTConnect standard is very exciting, particularly since it has the backing of so many industry giants.

Not all of my projects are what I would consider finished, though.

Continue reading


How Big is a Pie Plate?

This morning my wife decided to bake a couple of apple pies. Her recipe called for a 9-inch pie plate, but all we have are 8-inch flimsy aluminum plates that are bent out-of-round.

Given that the 9-inch pie plate calls for six to eight apples, how many apples should we cut to fill the 8-inch pie plate? I’ll get a pen and paper…
Continue reading


Checking the installed THINC API version

From time to time, I need an easy way to check the installed THINC API version on an Okuma P200 control. 

The problem is that the assembly version numbers don’t always reflect Okuma’s “official” release version number for the installation package. In fact, the Command API and Data API assemblies from the same release usually have different version numbers. 

Credit goes to Casey at Okuma for letting me know a simple way of checking the THINC API version as it’s listed on the installation package. The information is stored in the Windows registry, in the uninstall information, so just search HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall for the THINC-API entry.

Continue reading


Whose Line Is It Anyway?

“Good evening and welcome to Whose Line Is It Anyway! the show where everything is made up, and the points don’t matter!”

While I don’t remember the first time I saw Whose Line Is It Anyway, I know that for quite awhile I was only aware of the American version, hosted by Drew Carey.

My roommates watched countless Whose Line? episodes throughout college. The show and its improv comedy sketches were comic relief from a long day of classes. At some point, the TV station (I forget if it was Comedy Central or ABC Family) began interspersing a few episodes of the original British show. It was older, and different, but still funny.

Sometime after I graduated, Whose Line? ended its run. Years passed. The show’s cast moved on to other projects.

So when I heard that, like a zombie, Whose Line? was coming back, and moreover, that it was coming to the original zombie network itself, UPN the WB Network the CW Network, I wondered how this reanimated Whose Line would fare. Zombies can get pretty ugly, after all…
Continue reading


From VB to C#

Although the shop I work for is primarily a VB.NET shop, I’ve recently developed a couple of small projects in C#. I’ve developed in both VB and C# in the past, and although my background and preference lies with VB, I’m grateful for the opportunity to maintain a certain level of proficiency in C# as well.

Switching between languages sometimes makes me aware of idiosyncrasies in my own coding style. Here are a few things I noticed in switching from VB.NET to C# in my most recent projects.
Continue reading