Deleting Files on Windows

Over the past few days I’ve been writing a program to create static HTML pages from Wikipedia XML dumps (long story – actual program and more info to come in a few more days…)

The program creates a lot of subdirectories in the process, and a lot of these happen to be in Unicode.

99.9% of the time this is fine. Windows is happy. I’m happy. Everybody’s happy. The 0.1% has been a particular folder ‘Cuisine of Israel’ which, for the past day, I’ve been unable to delete. I  get the following message:

Cannot delete Cuisine of Israel : Cannot find the specified file.

Make sure you specify the correct path and file  name.

It took some searching on Google, and this Groups page for me to find the answer:

  1. Open a command line (Start > Run > Type cmd and press Enter)
  2. Navigate to the folder above the one you want to delete
  3. Type dir /x to see the MS-DOS 8.3 filenames. In my case it was CUISIN~1
  4. Type (eg. for me:) rmdir /s CUISIN~1 and confirm the delete.
  5. The folder should now be removed.

It should be a similar process for files (except, using del instead of rmdir).

Apparently Windows has a problem with certain characters. In this case I think there was a Unicode space character of some kind in the file. Windows wasn’t capable of dealing with it, and gave the error message.

Make sure you’re deleting the right directory. This solution provided without warranty – please back up your files, etc. etc. Use at your own risk.

technorati tags:, , ,

Scheveningen

I’m currently staying in a hotel in an area of The Hague called Scheveningen. It’s a very nice, splendid beach resort on the North Sea coast of the city. Very tourist heavy, as given away by the abundance of hotels – apparently the area attracts many German tourists on their summer break.

Scheveningen is quite a tricky word to pronounce correctly – there’s nothing quite like it in the English language, because the ‘Sch’ at the start requires a sort of choking. It is widely known that the town name was used as a shibboleth in World War II to identify German spies. German speakers pronounce the Sch differently from the Dutch, so were easy to identify.

For the record, it seems that English speakers also have trouble with it 🙂

Hopefully when I move to a flat next week I’ll still be close to this lovely seaside area. it’s definitely worth walking along the beach in the evenings, although for a non-native the sight of an open air urinal in the middle of the street was a bit of a suprise.

I had a few problems putting pictures on my phone onto the Internet earlier, including one of the pier, but should have this sorted soon. Can’t wait to get a proper camera over here and to go exploring!

technorati tags:, ,

Hallo

Hello from the Netherlands! First few days were great, although unbelieveably hot – something like 32 degrees C here. Wearing a suit in this weather is not advised!

I will post more soon – at the moment I’m on a wifi connection in the hotel restaurant with limited battery. In a few day’s time I’m hoping to get a flat with a more permenant connection, so stay tuned.

The new work is great. A nice mixture of friendly, helpful people from all over Europe.

Thanks for all your comments and emails – I promise I’ll post more soon, including photos (although my cameraphone’s a bit rubbish, and I won’t be back in the UK for a few weeks to pick up the camera).

Widsets

Widsets is a nice little applet from Nokia. As the name (rather unsubtlely) suggests, it’s a set of widgets which you can customise with things like your favourite RSS feeds, weather, sports results and other little gems.

Although developed by Nokia, the system is built upon Java so enjoys a wide-ranging support. It works fine on my Sony Ericsson v600i.

The bandwidth utilisation is minimal, and the presentation is great. It’s well worth a visit.

Flock

Been using Flock for about a month now. It’s very good; highly recommended. The browser is built on Firefox and comes with a decent RSS reader, Flickr & PhotoBucket support built-in and blogging capability (from where I’m writing this).

Blogged with Flock

Canals

Last weekend I returned from the most peaceful, relaxing holiday I’ve had in a long time. It featured water, bridges, locks, sunshine, cows, tunnels, aqueducts and far too many ducks for one week – and I loved it!

MacclesfieldLlangollen AngloWelsh baseFour of us travelled from New Mills to Llangollen. It’s a mostly uphill route, with plenty of locks to keep us occupied (I think we had about 20 on the third day – Bosley, just south of Macclesfield has a lot of locks). Unfortunately we didn’t fare too well with the weather at the front of the week – during the 20-lock day we managed to get drenched in heavy rain, including a few short bursts of hail. Still, it was great fun.

Macclesfield was the only real encounter with anything urban and industrial – a few waterside factories, presumably from a time when canals were used for more than pleasure.

Driving a 56′ boat is less easy than it looks. It’s amazing how unresponsive the steering on a 16 ton piece of floating wood and metal is when you’re trying to avoid another craft, or the crazy narrow bridges. Moreso on a strong current and when two crafts meet. The wake of each craft – even when both slow down – has the effect of sucking them towards each other, although towards the end I started using this to my advantage.

I guess as with most things this is something that comes with a decent amount of practise – I couldn’t help but notice the number of paint scratches on other (non-hire) boats, so I’m guessing we’re not alone here!

There are rules to the canal, as you might expect to retain some sense of order – pass on the right; give way to boats coming downstream; try to save water in locks. These all make sense (I assume passing on right comes from international water convention), and a great deal of common sense is required too. After the first couple of days we picked up a great deal of confidence, which I think helped enormously. I can’t help but feel that it must be frustrating for regular and permanent canal-goers when coming across a ‘newbie’ though, particularly if they do something fairly unfortunate like empty a lock without checking for downstream boats – not us, honest! (although we did encounter a couple who did this and weren’t too popular).

Mind you, the atmosphere on the canal is great. Everybody greets you with a smile and a warm welcome, and there is plenty of help and support all round. Part of the pleasure of the canal is in meeting a variety of characters. At one particularly awkward junction (offhand I think it was the Shropshire and Trent & Mersey junction at Middlewich) we had five craft waiting to turn into a lock. In what I like to think is a typically British mannerism everybody patiently queued and chatted while we worked our way through the congestion.
Although we’d stocked up on staple food, like beans and rice, we often kept an eye out for pubs. I guess being used to the naval Portsmouth one-pub-per-sailor density we were a bit suprised by the apparant lack of waterside pubs, but this didn’t put us off finding them.

One particular pub search led us into a field full of sheep. It was somewhere on the Llangollen canal. We passed the pub, assuming there’d be convenient mooring on the other side. Unfortunately there was a marina, with about 600 yds of private moorings. Continuing on we found a mooring immediately beyond the marina, but then discovered that the marina had locked gates blocking our path (fair enough) and the tow path had subsided (more of a problem). The walk was worth it, and we got our pub lunch and a nice walk through the countryside too.

There are plenty of features and scenic locations on the canals, and the modest engineer inside me was also fascinated with trivial things like flood control and lift bridges. The two highlights have to have been the two amazing aqueducts on the Llangollen canal.
The Pontcysyllte Aqueduct: Wow – just wow. I believe this is either the longest or the highest aqueduct in the British Isles at least. The photo from Wikipedia does this structure much more justice than mine.

Chirk Aqueduct was similarly interesting and picturesque. After crossing the aqueduct we were met with a bilingual ‘Welcome to Wales’ sign and a 460 yd tunnel. There’s not much point showing you the tunnel since, well, it was pitch black.
Chirk Canal and Railway AqueductWelcome to Wales

So concludes our fantastic holiday on the water. It’s definitely worth taking a canal holiday if you want a reasonably relaxing break (not too relaxing – there are locks and bridges after all!). Hope for good weather and just enjoy yourself! We did, and I’m already looking forward to the next one.

See also: Our Captain for the journey, Chris has also written his perspective of the canal holiday.
Postscript: Looks like we picked the right week to go. Just two days after we got off the boat they closed part of the Llangollen canal because of a breach!

3D Displays

More from Urban Screens (a site dedicated to large displays in urban spaces – added to my aggregator today) – this time, it’s about 3D and almost-holographic displays. There seem to be two major competitors in this apparantly growing, and certainly interesting commercial sector.

hellio-front-small.jpgIO2 Technology have developed a projector system that renders images in ‘thin air’. It’s not true 3D – the projection itself is 2D, but the effect looks interesting nonetheless. Depending on exactly how they’re doing that projection (I have a few unqualified ideas) perhaps projecting several 2D layers will give a true 3D effect?

Fogscreen is another option (perhaps working in a similar way – IO2 are quite vague). Here the image is projected onto a screen of “dry fog” – 100% water apparantly (if somebody knows how that isn’t a contradiction let me know). The system creates a screen of 1.5m by 2m – roughly 2.5metres diagonal, if my in-head Pythagoras is correct. Fogscreen can also become interactive, should you want. Fogscreen is supposed to be ‘free from turbulence’, but the video [WMV] on their site shows there might be some – particularly if you insist on waving your hand through the fog!