17
Aug

Gah, Damn, Sod It.

   Posted by: dave   in General

Microsoft Visual Studio (up to 2008, don’t have 2010 so can’t test it) don’t support unicode correctly.
They expect to see UTF-16LE encoded text (must have the correct format BOM too).
If you present them with UTF-16BE (with the correct BOM) then they corrupt the file by assuming it’s LE encoded.
This means that a file written using perl with the :encoding(utf-16) will not be read correctly, you’ll get garbage in the editor, and the compiler will emit strange errors.
If the file is output from perl using the :encoding(utf-16le) method, then the file is *still* corrupt. However, this time it’s Perl’s fault as it’s not written out the BOM to the file.
This last point is relatively easily worked-around in perl, but it’s still bad that it’s not standards compliant, just like Visual Studio isn’t.

Gah! We can’t win.

29
Jun

Windows 7 & ipv6

   Posted by: dave   in General, Software, Techie Stuff

My windows 7 has been native ipv6 (dual stacked with legacy ip addresses) for quite some time. I’ve only just discovered how to get it to use a static IPv6 address over the autoconfigured IPv6 address (the reason is that the statically allocated ipv6 address is way more memorable than the MAC address of the windows 7′s wireless adapter).

Anyway; basically Windows 7 likes to use the autoconfigured ipv6 address in preference; we need to tell the stupid thing that the static one should be the default.
In an administrator command prompt, type:

netsh interface ipv6 show interfaces

And look for the interface name for the adapter that’s currently connecting you to the internet.

Using this name, type in the command:

netsh interface ipv6 sey interface "<interface name>" advertise=enable managed=enable

Replace <interface name> with the name you found in step 1.  Keep the quotes, lose the angle brackets.

This will tell windows that you really know what you’re doing, and it can use the ipv6 address in the network connection’s ipv6 static dialog box (which you’d already configured fully, right?) and forget about that monstrousity it auto generated from the MAC address.  Job done.

Clicky

The link gives all information required to change where windows 7 looks to find out what the status of the currently connected network is.
I wish I’d have thought of doing this earlier – it occurred to me that it *must* be sending probes out somewhere, but I never followed the thought up :(

4
Jan

Testing syntax highlighter

   Posted by: dave   in General

1
2
3
4
5
6
#include <streams>
 
int main(int argc, char * argv[])
{
   cout << "Hello World!\n";
}

Well, that works ok. Except that wordpress seems to insert a space between the stream output operator characters. And also thinks that <stream> is an HTML tag that needs closing. So it’s a bit of a nightmare really. But I think it’s workable. Not that I’m planning to put code up here, of course…
EDIT: Solved. Use the attribute ‘escaped=”true”‘ and use only HTML entities in the source. Coolio. Excellent plugin. WP-Syntax

7
Jul

Spammer accounts deleted.

   Posted by: dave   in General

Some of you may now be account-less, for which I’m sorry. A load of spammers just created 360 accounts on this blog and I’ve had to do a bulk-erase. Any of you that have had your accounts deleted by accident, I’m sorry.

12
Apr

IPv6 is here – happy days!

   Posted by: dave   in Techie Stuff

Well, ipv6 works. This may not come as a big surprise to some of you, but more specifically, I’ve got native IPv6 working on my ADSL line. Thanks to my ISP, I’ve managed to set up the ADSL modem to be bridged, and my main router uses PPPoE to connect to them to achieve connectivity.
The router is an RB750 which for 40 quid all-in is quite a bargain, by the way – and in version 5 of the OS it runs, it’ll do ipv6 over ppp! So I got the allocation from the ISP, plugged in the relevant things into the router (not forgetting the all important ::/0 default route to direct packets up the PPPoE link, thanks to Michael for the tip) and it’s all working.
ipv6.google.com resolves, connects, and displays a page.
Even better, so does http://www.ipv6porn.co.nz/

6
Apr

IPv6 on the horizon

   Posted by: dave   in Techie Stuff

In the latest of the sporadic updates, I’m preparing my home internet for IPv6 with the little routerbox. I’ve enabled PPPoE logins, and my ISP is preparing a set of IPv6 addresses to route at me. With any luck, I’ll be IPv6 enabled by next week. This site is hosted elsewhere, I’ve got no idea when they’re going to do their migration, but all my sites hosted at home will be available on the next gen internet protocol.

Oh, and advice to ZyXEL P660R-D1 ADSL modem owners: If you’re thinking of going from routing mode to bridging mode (for PPPoE clients behind the modem), do a modem reset beforehand – my device failed to work in PPPoE bridging mode until I’d factory reset it. I suspect that this was down to the fact I’d got static routing rules in the device, but I can’t be sure about that, and I am disinclined to debug the kit.

Good times!

15
Sep

New router update

   Posted by: dave   in Techie Stuff

The Routerbox 750 has arrived, and is now configured.  The packets that comprise this post are flowing through it now :D

It’s different enough from anything I’ve seen before that the specifics of it threw me for a bit, but it’s all configured and works.  And it’s way faster than the old firebrick was – I’m seeing webpages load a lot faster than they did before, it’s actually a very noticeable speedup.

The only thing I need to say to anyone getting one is that the default gateway is a pig to make work – it’s not just good enough to put in the IP address, you have to also populate the interface too.  But that done, it’ll work like a champ.

I’m a happy camper :D

10
Sep

New router

   Posted by: dave   in Techie Stuff

I’m in the market for a new router at the end of the month, I think; the one I’ve got is yonks old and it’s routing speed isn’t brilliant.  Superb web configuration, dead easy to use, but it’s throughput is limited to 10Mbit/S.  This was plenty fast enough in the days of ADSL, when 8Mbit/S was all we could get into the home, but these days it’s a little bit slow, what with line speeds being up to 21Mbit/S (on BT’s ADSL anyway).

I think I’ve narrowed the choice down to one of these routers from mikrotik.com; there’s a couple of resellers in the UK.  Couple that board with one of their wifi adapters and it’s a neat little 197Mbit/S router – should be futureproof unless I get fiber to the home at some point ;)

Ok, it’s a bit DIY, but I don’t have a problem with that.  I quite fancy a nice handmade teak box for the thing…

UPDATE: One of the UK distributors is selling the RB750 for £39 including a box, the OS, PSU, P&P and VAT. For that price, I’ve bought one.  It’s slower than the 433AH (above) but it’s still in the same ballpark.  Good enough for what I want, and cheaper if I don’t like it, and end up getting rid…

Most of you aren’t going to care about this post, you can safely ignore it, but I need a semi-permanent place to store such vital information so that I’ve got it available in future.  Sorry people ;)

In the 64 bit kernel debugging session, issue the command:

!load wow64exts.dll

Then, to switch between the 32 bit and 64 bit contexts, issue:

!sw

Simples!

5
Aug

w00t!

   Posted by: dave   in General

ADSL2+ has been enabled on my phone line (last night, interrupting a chat with a friend on MSN, grrrrr) so I’m now looking at 13.5Mbit/S download and 1.8Mbit/S upload.  For no extra cost, in fact it works out cheaper as my peak time allowance has been raised by a gigabyte.

I’m a Happy Bunny.

EDIT: The line has now stabilised at 21Mbit/S down.  And I’d misread the “up” figure before.  It’s actually 992Kbit/S.

4
Aug

Handy camera gadget

   Posted by: dave   in Photography & Cameras

For those of you with older cameras, although the affliction seems to be limited to Canon DSLRs, you may be finding the price and size of CF cards to be a bit, well, inflated.  The final nail in the coffin was that my new laptop has got an integrated SD card reader in it, and whilst I have a USB CF card reader, it’s a pain in the neck to use properly.

So, enter the CF to SD adapter.  It’s the size of a Type II CF card (the big one, with the step on the top; you know, the slot type used by the IBM microdrives), and it has a slot in the side that takes an SD card.

Twenty quid from Maplins, part number A47FF

And in the camera (Canon EOS 40D) I’ve got, it works with an 8GB  SD-HC card, despite what the staff answer to a question said.

7
Nov

“Finally!” I hear you cry.

   Posted by: dave   in General

I got bored of the plain old theme on the website.

This one seems a little more interesting.  We’ll see how long it takes me to get bored of it.

4
Oct

Tomtom GO 720 not finding mp3 files?

   Posted by: dave   in Techie Stuff

Couldn’t find this on any forum on t’internet, so thought I’d post it here just in case it helps someone.

If your tomtom go 720 won’t find MP3 files after having copied them onto either the onboard flash disk, or an SD card (IMHO the most sensible thing to do), then there’s every chance you’ve been stuffed by the new ID3 tag formatting.  The new format just simply isn’t recognised.

The solution?  Download mp3tag and use it to remove the new ID3 tag, leaving behind a version of ID3 tag no more than version 2.3; this is the version of ID3 tag that I’ve currently got, and all MP3s are recognised by the tomtom.  It’s a bit of a pain in the neck, but at least there is a solution.

2
Aug

Superconductor video

   Posted by: dave   in General

This was just too cool not to post – youtube is excellent:

30
Jun

Now, this is cool

   Posted by: dave   in General

A new toy for Dave :)

Yay, toys!

A new IP address. One of those newfangled big ones. Wahey!

18
May

Why Yahoo! Answers is broken.

   Posted by: dave   in General, Rant

The lunatics are in charge of the asylum, that’s why.

Someone asked a question wanting to know which codec they needed to import a music file into their application – they were getting an error “unknown codec”.

So; the choice of answers given:

1) A generic answer which would solve the problem for all people having this error, explaining what a codec was, and how to find out which codec would be needed for any file.

2) An answer that included the lucky guess “Ogg Vorbis”.

Guess which answer was given the “Best Answer”?  Number 2.  Huh???

It’s not an isolated incident, either.  There’s more examples of this kind of lunacy.  That’s not to say that I don’t understand why the answer got rated higher, it afterall solved the questioners problem in a quick and easy manner.  It just didn’t add anything to the value of the site; it’s meant to be a repository of questions and good answers.  Hey Ho.

Oh, and the quality of the questions leaves something to be decided, too.  Half the questioners don’t have a clue about the subject they’re asking about, yet they claim to need a desperately technical answer.  My personal favourite is:

Question Title: Should I use the uniprocessor HAL with a Quad Core (Q6600)?
Question content: Is there an easy way to switch HALs?

Erm. Where to begin? Is there an easy way to switch HALs? Why, yes, there is. It’s dead simple once you’ve read and understood the Windows DDK. Of course once you’ve done that, you’ll not be wanting to swap HALs; there’s absolutely no point, beyond wanting to artificially limit the number of cores that windows will use on the chip. That can be done so much easier with the /onecpu setting in BOOT.INI

But of course, if you put that in an answer, you’re wasting your time, even though it’s actually a pretty good answer to a dumb question.  I suspect that the best answer would be given to someone who answers with:

LOLZ, dude.  K3wln3ss for has changing HALs.  HAL FTW!!!11!!

And the number of people wanting their homework done is utterly outstanding.  I’ve seen a number of multiple choice questions up on there.  How can that not be homework?

Tags:

17
May

Alchemical unfortunateness.

   Posted by: dave   in General

Arsenic

Sulphur

Hydrogen

Astatine

Heh.

I need to get out more, really.

Number One: The electricity Meter

Number one in a (hopefully short) series of pictures.  Or to put it another way, just testing out the new gallery features in the new version of wordpress.

27
Feb

Earthquake aftermath

   Posted by: dave   in General

The email wags are at it already.  The best jokey email I’ve received so far is reproduced below for your enjoyment:

UK EARTHQUAKE APPEAL!!!

At 00:54 on Wednesday the 27th February, an earthquake measuring 5.2 on the Richter scale hit the UK, causing untold disruption and distress – Many were woken well before their Giro arrived. Several priceless collections of mementos from the Balearics and Spanish Costas were damaged. Thousands are confused and bewildered, trying to come to terms with the fact that something interesting has happened in the UK.
One resident, Donna-Marie Dutton, a 17 year old mother-of-seven said: “It was such a shock, little Chantal-Nice Blonde came running into my bedroom crying. My youngest two, Tyler-Morgan and Megan-Storm slept through it. I was still shaking when I was watching Jeremy Kyle the next morning.” Apparently though, begging, thieving, and grovelling has carried on as normal.
The British Red Cross have so far managed to import 4000 crates of Sunny Delight, to help the stricken masses. Rescue workers are still searching through the rubble and have found large quantities of personal belongings including benefit books and jewellery from Elizabeth Duke at Argos.

HOW YOU CAN HELP

£2 buys chips, scraps and blue pop for a family of four. £10 can take a family to Stockport for the day, where children can play on an unspoiled canal bank among the national collection of stinging nettles. 22p buys a Biro for filling in a spurious compensation claim.

PLEASE ACT NOW

Simply email us by return with your credit card details and we’ll do the rest! Don’t worry, we bank with a reputable UK bank (Northern Rock) so you know your money is in safe hands. If you prefer to donate cash, there are collection points available at your local branches of Argos, Iceland and Clinton Cards

Tags: