PageDefrag is a useful utility from SysInternals, now owned by Microsoft, that can defragment the page file (
C:\pagefile.sys), registry hives, log files and the hibernation file (
C:\hiberfil.sys). Typically these files cannot be defragmented while Windows is running since they are open for use. PageDefrag would schedule a defragmentation of these files during Windows boot time. This utility has been working well for me with Windows XP for many years now.
PageDefrag now seems to be useless with Windows 7. The PageDefrag dialog shows an empty list, where as it should have listed the above files. And if scheduled for boot time defragmentation, it gives a “
page file not found” message. Thankfully, there are no error messages on Windows 7. Vista users have seen errors. I do not see any updates to PageDefrag since its last release in 2006 and it has been many years now since Vista was released. I guess it is RIP for PageDefrag on Vista/Windows 7 then! 😦
Update: Mark Russinovich confirms that PageDefrag works only on the x86 editions of Windows XP and Server 2003. This note can be found on page 345 of the Windows Sysinternals Administrators Reference.
A while ago Gmail introduced the nice feature of being able to multi-select attachments and to view their upload progress with progress bars. But, if you are using the Flashblock addon with Firefox this feature is not available, and Gmail will show you the traditional attachment option.
To be able to use the Gmail goodness, add
mail.google.com to the Whitelist of Flashblock. You can do this in the Flashblock Options.
If you deal with long source files or complicated code in Visual Studio, the RockScroll add-in is something you should try. It has become indispensable since I started using it! 🙂
RockScroll replaces the vertical scrollbar with a zoomed out view of the source file. As you scroll through code, a rectangular purple highlight (1 above) shows which section of the file you are currently viewing. Double-click on any word in the code and all its occurrences in the source file will be marked in purple in the editor and also shown marked in red (2 above) in the scrollbar. A great tool for code navigation!
The ImageMagick basket of command-line tools can be used to do almost anything to a set of image files. But, sometimes figuring out the options to pass the tool can be too much work for a small batch operation. IrfanView, (still) the best image viewer on Windows is the next best tool for such quick operations.
- Choose File → Batch Conversion / Rename to apply batch operations.
- Rename files. All sorts of numbering can be added as prefix or suffix to the files.
- Crop, resize, rotate, flip or almost anything imaginable can be applied on the files.
LaTeX neither supports Windows fonts nor Unicode text. This makes creating documents in Indian languages with LaTeX very hard. But, there is a solution: XeTeX. It extends the TeX implementation to work with Windows fonts and Unicode text.
If you are using MikTeX on Windows, XeTeX is already included in its default installation! Here is how to obtain the Kannada PDF shown above:
- Create a
kannada.tex file with this text:
ಏನಿದು ಲಾಟೆಕ್! ಗೊತ್ತಾ ನಿಮಗೆ?
Script indicates the language (Kannada) and
Tunga is the name of a Kannada font on Windows. The Kannada text was typed using the Baraha IME transliteration software.
- Make sure to save the file as UTF-8 or any other Unicode encoding.
- Compile the file to PDF using
xelatex, which is
latex built on top of XeTeX:
$ xelatex kannada.tex
That is it, it is that simple! 🙂 To create a PDF in a different Indian language, change the respective parameters in
I like working with split editor windows when comparing code from 2 different sections of a file or different files. This is easy to do in Visual Studio (see here). It is just as easy in Eclipse too, though not obvious if you merely look through the menus.
[ To split a window, just grab hold of a tab and pull it to the side until it turns into a black arrow. ]
[ Leave it and it turns into a new window with a new tab group. ]
To have split windows with the same file: Choose Window → New Editor. That creates a new tab of the open file. Pull that tab as above to split the window.
For a horizontal split, pull the tab to the bottom of the window.
Keyboard shortcut for horizontal split:
Keyboard shortcut for vertical split:
Tried with: Eclipse Luna 4.4.1 and Ubuntu 14.04
At work I use a Logitech Quickcam IM (Model Number: V-UBB39) webcamera bought in 2006. After I installed Windows 7, I needed to reinstall the drivers for this webcam. I could not find the installation CD of this webcam. (Who keeps around installation discs in this age anyway?). Checking the Logitech website for drivers, I was surprised to see that this webcam is no longer supported! However, the Windows 7 Compatibility Center listed the Quickcam IM as compatible. Surely they must have used some driver to check the compatibility!
Google led me to some shady looking websites offering the old drivers (Quickcam 8.x) which supposedly are meant for this webcam. I tried to install them and they did not work. My suspicion is that they are meant for Windows XP and would not work on Windows 7 due to the large changes in the driver model starting from Vista. I needed a driver written for Vista or later for the Quickcam.
Giving up on finding the Windows 7 drivers for Quickcam IM, I decided to install the drivers of Logitech Quickcam Connect, since it looked the most similar to my webcam. Windows 7 warned me that there are problems with Windows 7 and Quickcam drivers! I continued, the installation went through but failed when I plugged in the webcam! 😦 The error dialog mentioned that one of the reasons for this could be due to installation by a non-Administrator. I had installed by elevating from a Standard User to Administrator. Ideally, this should work, but looks like the Quickcam developers have not put in enough effort to make this work. Sighing, I un-installed the drivers and installed again after explicitly logging into an Administrator account. The Quickcam IM webcam works now with Windows 7. 🙂
The webcam works, but the 3 years of experience with Logitech webcams has left a bad taste in my mouth. Quickcam drivers and software have always given me problems, both on Windows XP and now on Windows 7. Fixing these issues have always involved multiple trials, reboots and lots of wasted time. I really do not see why their webcams cannot function without their drivers as a generic USB webcam device to Windows, which many cheap webcams can!
It is essential to know the software version of the Motorola ROKR E6 if you like to mod it. To see the software version:
- Bring up the dialer.
WWW008W and press Call. (
W is the wait character, which can be inserted by choosing Menu → Insert → Insert Wait.)
- The software version is displayed in a dialog. The dialog disappears in a few seconds.
The version my E6 shipped with is
I do not have an iPhone or an Android cellphone, but still there is a lot one can do with cellphones available today. I use my 2-year old Motorola ROKR E6 not just for listening to podcasts, but also to catch up on technical videos (like Google Tech Talks) which are interesting, but too long (~1 hour) to watch them at my desk.
The technical specifications of most cellphones are minimal, but enough:
- The display resolution is not high. The E6 display is 240 x 320 pixels. It is pretty crappy for watching movies, but is enough to watch technical videos.
- Supports playback of 3GP video format. The E6 supports 3GP video and uses RealPlayer to play
.3gp video files. There is no restriction on the length of the videos, which is great! By tapping on the E6 RealPlayer while it is playing a video, the display switches from horizontal to vertical, which is good for videos since it is wider.
- Videos cannot be watched off the Internet. The E6 web browser is pretty rudimentary and I doubt it will play any video content on the Internet. I do not care in any case since I do not even have a data plan! 🙂
- There is support for some kind of storage device. The E6 has a SD card slot, and I currently use a 2GB SD card in it. I can copy over 3GP video files to the E6 over USB. The SD card appears as a simple USB Mass Storage device (thus, no drivers required, works like a charm everywhere).
Working with these minimal specifications, one can still enjoy any video off the Internet on the cellphone.
Download online videos
Get the Video Download Helper Firefox addon. This addon puts a button in the Firefox toolbar. When you are on a webpage which has embedded video content (like YouTube), just click on the button to download the video to a file (typically a FLV file). If you are looking at websites that offer videos in MP4, WMV, MKV or AVI formats, you can just download them directly. None of these formats or their high resolutions can be played on the cellphone, they need to be converted.
Convert videos to 3GP
Videos downloaded from the Internet are unlikely to be in the 3GP format. There are very few programs that can convert any video format you can throw at it into a 3GP file. SUPER is the best I have found for this jpb. The only output container choice which worked consistently on the E6 for me was the 3GP (Nokia/NEC/Siemens) option (see above screenshot).
Once converted to 3GP by SUPER, transfer the file to your cellphone and enjoy it on your commute! 🙂
I bought my Wacom Bamboo Fun tablet more than a year ago. And from that time until now, it has never worked with Windows applications built with GTK+ like Inkscape and GIMP. The mouse cursor would freeze up the moment it entered the application window!
There seems to be some fixes in GTK+ now to ameliorate this situation. To fix this problem for Inkscape:
- Update Inkscape to the latest version.
- Download GTK+ 2.18 or later for Windows. Unzip the setup file.
C:\Program Files\Inkscape with the same file from GTK+.
The Wacom Bamboo Fun mouse and pen should work fine with Inkscape now. Sadly, this does not fix GIMP to work with Bamboo Fun! 😦
Update: John Burnett has suggested an alternate solution that should probably work. Please see the comments below.