Archive for the ‘Microsoft’ Category

‘Fixing’ the slow JFileChooser on Windows XP

Friday, September 26th, 2008

Ever used a Java Swing app on Windows XP that seemed to freeze when you open a JFileChooser dialog? Apparently it’s caused by calls being made to Windows’ infamous integrated ‘compressed folders’ utility when files are recognized as archives.

The bad news is that every stable Sun JVM on Windows XP up to today suffers from this issue.
The good news that the issue has been f fixed in Java 1.6u10b07. Although I don’t presume to know the entire history of this bug, it seems a little sad to see this one was reported against release 1.4.2.

To fix on java versions predating 6u10b7, the only fix is effectively unregistering the zip folder dll from windows. Since I won’t quite use 6u10 until it’s GA and I’ve been a happy 7zip user on every OS I use for quite some time now I decided to go for the uninstall.

To unregister (and disable ‘Compressed Folders’):
regsvr32 /u %windir%\system32\zipfldr.dll

If you decide for some reason you can’t live without it and want to re-enable, execute again from a cmd :
regsvr32 zipfldr.dll

and you’ll be sending things to compressed folders before you know it :-)

New rules for dealing with windows

Saturday, June 28th, 2008

So,
after having learned my way over the years to ‘maintain’ a windows xp, I recently screwed up my windows install for good.
Should you care to repeat this, it’s very simple:
- put your pagefile on another partition (not c:\)
- reboot to linux
- format that partition containing the pagefile
TADAAA, you now have a non working windows system!

But you say, there’s a few more options:
I’ve gone through the trouble of finding out about the pagefileconfig command, which is a shitty vbs file and which basically doesn’t work from safemode since the reboot following the ‘successful creation of the pagefile’ ends up in windows hanging after the loadscreen.
So, I thought, I create a new user and try to keep stuff that’s loading to a minimum, but alas can’t get into safemode anymore even. Don’t ask me why. The shitty tools don’t tell you anything.
For the record, my disk/partition is 100% aok.
God how it’s a piece of shit OS :(

So from now on:
- I’ll buy no more software/games which don’t support linux (luckily there’s id Software, although I’ll miss Crysis & the Half-Life 2 bundle etc.) The games for windows bullshit was a major turnoff already so I’ll survive I suppose.
That’s a pretty short list right?
Basically the only reason I still have one is since I’m locked in with a few games I spent money on, my mistake. You only develop for windows? Thanks I’ll pass on your undoubtably great software & great UX

I just think it’s insane for the record how people say that winxp with sp3 is a decent OS, not to mention vista. Think of me when you’ll be adding something to the PATH in vista, by modifying a text line in a 200x100px window on your 1920×1200 screen. Or any of the zillion other places where the windows/frames are fixed size. Great job ms, great job! But hey, there’s the _awesome_ uac to make up for that. Hurray!

I’m so pissed, the time that’s gone into that install + the reason why I lost it, it’s so damn retarded…
To think that there wouldn’t have been the slightest issue on a *nix system.
Leaving me to wish you all good luck & enjoy the microsoft innovations!

PS: please game developers, don’t write for windows only. Everything I have that supports linux runs better than it did on windows. Don’t get stuck in the DirectX/Windows trap, please!

Enabling Tab completion in Windows 2000 command line

Sunday, October 14th, 2007

Well, just for future reference, to enable cmd.exe to do automatic complete (as Microsoft refers to apparently), one needs to modify following value in the registry:

To enable automatic complete for Cmd.exe, use Registry Editor (Regedt32.exe) to view the following registry key:
HKEY_CURRENT_USER/Software/Microsoft/Command Processor
Edit the CompletionChar value, and set the value of REG_DWORD to 9. Note that you do not need to restart your computer.

Obviously this was taken from Microsoft Support