
This is a mouse that was once broken but is now healed. (A mechanical switch on the circuit board was broken; upon fixing that, the mouse works almost like-new.) I was actually quite surprised at the extreme simplicity of the actual mouse hardware - a couple of resistors, capacitors, an LED for the sensor, and the sensor chip itself. It seems to me that the costs for building such a mouse must be rather cheap indeed. In fact, I wonder now about the optical trackballs out on the market today - mine (the [Kensington Expert Mouse][kem]) is to all appearances just an upside-down optical mouse with a ball and a couple of extra buttons; would it be perhaps possible to construct my own perfectly-functioning trackball with only cheap optical mouse parts?
[kem]: http://blog.nongraphical.com/2008/08/kensington-expert-mouse-70/
Fascinating as that may seem, there are indeed [more exciting projects][mt] to attend to first.
[mt]: http://ssandler.wordpress.com/MTmini/
Here’s how to stop Firefox from automatically virus scanning all downloads after they’ve finished - something that’s been annoying me since I’ve upgraded to Firefox 3 because of the extraneous disk accesses it creates. Open up the `about:config` (open a new tab, type `about:config` in the location bar), and find the **`browser.download.manager.scanWhenDone`** value. Type in `browser` in the filter bar for quick searching. Set that value to false by double-clicking. And that’s it! What, were you expecting something more?
(originally read [here][ghacks])
[ghacks]: http://www.ghacks.net/2008/06/04/disable-automatic-virus-scanning-in-firefox-3/
[Download RemoveDuplicates.py][dl]
[dl]: http://nongraphical.com/media/uploads/RemoveDuplicates.py
One of the problems with using hybrid Windows and Linux environments is that one needs to watch closely for filesystem and file anomalies and inconsistencies. Differing end-of-line markers, for example, cause many problems when sharing files between the two operating systems. One particular problem I’ve run into is that of having duplicate files, or in other words, multiple files with the same filename. This can happen if, say, you copy a directory somewhere in Windows, then switch to Linux and use a tool such as rsync to copy that same directory over again. If the capitalization is different, Linux will not replace the old files, because Linux, unlike Windows, is case-sensitive. This will even happen, and is technically acceptable, on NTFS filesystems.
The solution I’ve come up with is this simple script, called RemoveDuplicates.py. Obviously, you need [Python][py] installed to run it, but it has no additional dependencies. Simply run it *in the directory you wish to clean*, and it should do the rest. Note that you shouldn’t use this for entire filesystems (yet), because it will use ridiculous amounts of memory if it is given a high number of files. [Download it here][dl]!
[py]: http://www.python.org/
P.S. Also, I cannot guarantee that this tool will work as intended or will be bug-free. Use wisely.