TwoFingerScroll: How to fix the “class not registered” error

This article is for you if:

  1. You face a “class not registered” error when trying to run TwoFingerScroll (or SynGestures)
  2. You have a Synaptics touchpad on your laptop

According to Internet Opinion®, this happens on 64 bit Windows systems.

There’s a really simple fix – just four steps:

  1. Ensure you’ve installed the Synaptics touchpad driver. If not, get it from Synaptics’ website.
  2. Open a command line with administrative privileges (for Windows 7 and older, or Windows 8)
  3. Run this command, and ensure it succeeds (you should see a success message):
    C:\windows\syswow64\regsvr32.exe C:\windows\system32\syncom.dll
  4. Run this command, and make sure this succeeds too:
    Cc:\windows\syswow64\regsvr32.exe C:\windows\system32\synctrl.dll

Voila!

The reason why the “class not registered” error occurs is that your Synaptic driver DLL files are not registered with windows. These drivers contain the class that TwoFingerScroll tries to find, but it fails since the driver is not registered.

These two simple commands fix the issue. Thanks to this page for helping me out with this issue!

America’s 50 Best Cities

While chomping my facebook stream today, I found this article that had an analysis of the 50 best cities of the USA, with metrics on why each city is in this list. Metrics used for the ranking included aspects like population, household income, crime rate, quality of education etc.

Immediately, I found this  lacking in one key aspect: I could not find a tabular representation of all this data! So what did I do? I did what any decent hacker would do: I mined out the data, and created a spreadsheet :)

Get it here!

“Qt will not be built with xshape support”

I was starting to fool around with Qt just when Qt v4.5 was released.

The first thing to do obviously was to download the source tarball and build it. But the first ./configure command resulted in “Qt will not be built with xshape support”, which was obviously a let-down. To make things worse, when I ignored this message and went on with “make”, the compilation failed with some compilation errors.

So I googled around, and found this:

To solve this problem, install the xorg-dev package.

This is for ubuntu/debian systems. For other distributions, the same may be available under a different package name. I don\’t really know.

And oh, I was reading this online book yesterday, and maybe it will be a great help for people to get started with – Qt 4: Introduction to Design Patterns in C++ with Qt 4

Hope this piece-o-text is a lifesaver for many a baffled Qt starters.

BUG: Timepicker does not display AM/PM on Ubuntu, Datepicker displays an arbitrary “October”

Datepicker and Timepicker Screenshot

Datepicker and Timepicker Screenshot

I recently noticed a little bug in firefox (I don’t know where this belongs, in “xulrunner” or in firefox code itself), and I dutifully report it here:

My friend built an extension for firefox, and I noticed that the timepicker control (in xul) does not display the AM/PM select, neither does it provide a 24 hour clock. (only on Ubuntu).

I live in India, and so it just shows IST instead of AM/PM (see screenshot)

This problem occurs only on Ubuntu (I have not tried other distros). The same firefox extension was displaying AM/PM correctly in Firefox when running on Windows Vista.

The same problem occurred with the datepicker control: it was displaying an arbitrary “October” between the Day number and Month number. (This too, only on ubuntu).

I have reported the bug at bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=479069

I wonder why this is hapenning.