Welcome to The Emission Locus Sign in | Join | Help

Browse by Tags

Update: Encoding source files and documents as UTF-8 in VS2005

The old code was a bit tacky, using a timer to trigger the file encoding dialog. And of course it was buggy: it wouldn't work for multiple documents opening simultaneously. So I've fixed it properly by using the WindowEvents_WindowActivated event. So
Posted by john | 0 Comments
Filed under: , , ,

Attachment(s): FixFileEncoding.zip

Encoding source files and documents as UTF-8 in VS2005

I'm picky about the encoding of my source files, HTML documents, etc. Whereever possible I save as either UTF-8 or UTF-16LE, both with a BOM (byte order mark). This ensures that the document can always be read without any encoding issues. Although it
Posted by john | 1 Comments
Filed under: , , ,

Attachment(s): FixFileEncoding.zip

"Australian international airports now have even more CYA security"

The title of this post sounds like a sales pitch, but its just the morons in Australia's aviation security bureaucracy coming up with this rubbish for liquids, same as what has been done in the UK and the US: http://www.dotars.gov.au/transport/security/aviation/lag/index.aspx
Posted by john | 0 Comments
Filed under: ,

Rebuilding the blog

I'm slowly rebuilding the blog articles and associated downloads, after moving to a new ISP from my self-hosted setup. Much easier to manage given the issues I've had with Bigpond's new login system.
Posted by john | 0 Comments
Filed under:

I uninstalled IE7 within 30 minutes of installing it

Now I may not be a typical IE user, since I'm a developer, but I am more of a keyboard person than a mouse person. Frankly, whoever it was on the IE7 design team that decided to make the address and command bars immovable should be given a good beating.
Posted by john | 0 Comments
Filed under:

Tommy Emmanual is a guitar legend

I have left Australia for a while and am currently in Singapore. Last night's concert by Tommy Emmanuel at the Victoria Theatre was brilliant, and everyone thoroughly enjoyed themselves for almost 3 hours. I've been an Australian fan since the '80s and
Posted by john | 0 Comments
Filed under:

Using MSXML4 in an application installed by a non-administrator account

An application I've been working on requires MSXML4 for validating instance documents against an embedded schema, but one of the installation requirements is that it must be able to be installed by a non-administrator. The offical Microsoft installer
Posted by admin_user | 0 Comments
Filed under: ,

Issue with application manifests on XP

Someone forgot to test for this: Create an application manifest document (e.g. foo.exe.manifest ) and include it as part of your foo application. Mark the <xml> tag with the encoding="UTF-8" atribute. Compile and test your sample app; works as expected.
Posted by john | 0 Comments
Filed under: , ,

Custom Remote Desktop window sizes

Here's a good tip from Kudzu's blog : I use remote desktop a lot. But 800x600 is too small, and if I use 1024x768 then it goes full screen and its not convenient to move between host and guest easily. To compound this, I run multiple remote desktops as
Posted by john | 0 Comments
Filed under: ,

A gotcha with the SetLocalTime API

Its been a long time between posts; I've been consumed by the tail end of a major project, including a number of longer-than-expected overseas trips. Anyway, to the issue at hand: If your code calls SetLocalTime take special note of the documentation
Posted by john | 0 Comments
Filed under: , ,

Workaround for bug in FormatMessage API

The FormatMessage API appears to have a bug that causes its behaviour to not match its documentation. This occurs when the specified module does not have a MESSAGETABLE resource and both the FORMAT_MESSAGE_FROM_HMODULE and FORMAT_MESSAGE_FROM_SYSTEM flags
Posted by john | 0 Comments