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


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.

HOWTO: Parse URLs using Javascript to extract GET variables and more

Most server side languages have inbuilt capabillity of reading GET variables passed via the URL.

But in two (or more) cases, we may need to read these variabes on the client side using javascript. This might be when:

  • You need to find out what the server did/will do on recipt of a particular URL (usually the one on which you currently are)
  • You are building a dynamic AJAX based website, and you are making dynamically loaded content linkable using # in the URL (example:

I am currently building an AJAX based application on jswaf and it faces second problem, so I wrote a script for this express purpose: to parse URL like strings into BaseURL and key-value paired parameters.

The code is located here, and a demo is located here.

The code is free to borrow. Just provide credits if you do, and drop me a line if you like it, or would like to learn how to use it.