Auto resizing java applets
Short story.
Make a
Tested on firefox 3.6 using an applet with FlowLayout.
End of story.
Have a nice day
Alt+Shift doesn’t change language in KDE4
I’ve been busting my brains on this for a while. Then found the solution. In addition to setting the switching option to Alt+Shift, this setting is also relevant :
Settings -> Regional & Language -> Keyboard Layout -> Keyboard model.
My keyboard model settings was wrong. For me (Lenovo 3000 v100) it had to be Generic 104-key PC and it was set on Generic 105-key.
Building DLL on windows with MingW and QT (4.5)
Had a problem when building a dll on windows using mingw which linked against qt dlls. Use –export-all-symbols to be abe to link it to an application. All symbols were resolved except StaticMetaObject of a specific class. The class inheriting from the class in the dll was missing a virtual destructor. Adding it resolved the problem. The dll had classes with virtual methods.
QT qmake static library dependencies
I keep forgetting that static library dependencies need to be linked in the proper order. The least dependant libraries first and after them the libraries which depend on them. This order is set in the top level .pro file’s SUBDIR variable.
Disassemble Linksys router WRT54GL v1.1
Modded my linksys wrt54gl v1.1 router today to add an sd card reader.
The most annoying part was opening the chasis. Here are some detailed photos of what goes on inside. The front section is attached by 2 clips on the sides.



Amarok 1.4.10 + iPOD + RockBox Fails to transfer files
Small oddity I noticed when trying to use amarok to transfer files to my Rockbox’ed iPod. Rockbox only supports FAT32 filesystem. If the path stated in the device settings exists, and is written with different case, then amarok will report “Copying <filename> failed”. Make sure to write the path Case sensitive. For exmple if “/Music” exists, “/music” will fail. This is a problem with amarok 1.4.10. Did not test amarok 2 yet as I have not yet moved to KDE-4.
Lenovo Rescue and Recovery – Tips
I like the utilities that come with the lenovo. I especially like the system update which can install everything needed automatically on a fresh install of windows. Havn’t seen any other laptop maker do this (If you have, please let me know). I came across a couple of difficulties using the “Recue and Restore” backup utility (which has saved me time more than once). Both issues were with network backups.
No easy way to change the network drive mapping after it has been selected
Solution: This information is stored in the registry. Backup and remove “HKLM\Software\Lenovo\MND”
Error specifying the network path and login even though they can be accessed via explorer
Note: Rescue and Recovery does not accept and IP address as the url for the backup server. You must specify a hostname. If you will be using the bootable cd created with “Create Recovery Media” tool , make sure this name is resolvable using your DNS server before backing up with this method.
Volume Shadow Copy Service SDK 7.2 – Compiling sample vshadow application
Working on a backup server I started poking around with windows shadow volume options. I found a solution which combines vshadow, rsync and some scripts and batch files. I wanted something more low level and elegant. The first thing I tried to do is compile the sample vshadow application so I can start working with it to get a clue on how to modify it to my needs.
I had a couple of stumbling blocks, to one of which I only found a solution on one blog, and only managed to load that via google cache. This is the short list of things which weren’t obvious to me.
- Compiling this sample requires the Windows Server 2003 DDK. Add the paths to the atl libs in it to the project (Specifically the path with the missing atlthunk.lib)
-
error C4430: missing type specifier - int assumed
change line 29 in shadow.cpp by adding int as a return type:
extern "C" int __cdecl wmain(int argc, WCHAR ** argv)
-
unresolved external symbol "long __stdcall ShouldBlockRevert(wchar_t const *,bool *)"
This is explained at length here. The short answer is to set : Project properties -> Configuration Properties -> C/C++ -> Language -> Treat wchar_t as Built-in Type to No or add /Zc:wchar_t- to the compile command line if using makefiles.