Thursday, September 27, 2007

Is ploughing like software development?

Jonathan's blogged about a quote from Joe Berkovitz seemingly comparing software development to agriculture: Is ploughing like software development?

While I too wonder at this strange analogy, development is sometimes like running on a ploughed field: requiring lots of energy, getting nowhere fast, and when you look back you've just made one hell of a mess. ;)

Wednesday, September 26, 2007

Visual Studio 2005 Automation Samples

Guess I should have looked at creating a Visual Studio plugin first rather than figuring out how to convert RTF to HTML. I might not need to do that judging by the description of one of the Visual Studio 2005 Automation Samples:

Generate HTML
This sample demonstrates how to take text from the editor window and build a HTML file using this text, including font and color syntax highlighting information.

Haven't downloaded this yet, but I will do. Sounds like the Blogger code upload plugin could be quite easy to implement.

I found this page linked from the Customize and Extend Visual Studio page on MSDN.

UPDATE: Ahh, the Generate HTML sample is actually in C++, not C#. Should still be able to use it as a guide though, just need to figure out what objects to use.

Nottingham isn't that far from New York then

Driving home yesterday was an experience to say the least. Where the ring road around Nottingham meets the A610 was the scene of chaos. So much chaos that I found myself laughing at it so I didn't get annoyed with the stupidity of the people involved.

The A610 heading out of Nottingham was grid-locked completely. So much so that when the traffic lights changed to red there was still traffic on the junction, and that traffic had nowhere to go. It effectively cut off the ring road.

Normally this isn't a problem, but I think there must have been something in the water yesterday. Horns were sounded, tyres screeched, cars swerved into oncoming traffic--I particularly liked the van driver who did a racing start when the ring road's lights went green, even though 10 feet in front of him was a line of traffic that could not go anywhere.

He slammed on the brakes and swerved into another lane, cutting up a car and resulting in more horns being sounded.

I didn't want to add to all of this mayhem, so I turned around and went home another way.

I always find it curious when people get angry over things that no one has any real control over, and which aren't particularly important anyway.

Tuesday, September 25, 2007

RTF to HTML and the GData API

Finally got around to properly extracting the RTF conversion code from AutoFormatter last night. It turned out to be as easy as I thought, after last time's wasted efforts. I've had a look on Robert Verpalen's blog for some contact details, but I can't find any and the AutoFormatter post doesn't seem to allow comments.

I might have to leave a comment on another one of his other posts, but the date on the AutoFormatter post is December 2005, so I don't know if he's maintaining it now. Doesn't seem to be any posts since then about the application anyway.

I think I'll wait until I have something usable first though.

Anyway, with that extracted I downloaded the GData API SDK and tried to connect to my blog. The sample code included is very helpful, but it still took a little time to get my head around. I eventually knocked up some code that would add a new draft to my blog, so I think I have everything I need to make the plugin now.

Now I just need to learn about how to make a decent plugin.

Comics Britannia on BBC4

I watched Comics Britannia on BBC4 last night, an episode that focused on more modern comics, ones which a parent probably wouldn't want a young child to read.

I'm not what you call a comic geek, but I've read a couple of the more "adult" orientated comics (and graphic novels), so I found last night's programme very interesting.

A pleasingly large section of the programme was devoted to Alan Moore. His V For Vendetta, Watchmen and Lost Girls (which is not one I'd recommend for the easily offended) are among my favourite books of all time, so it was interesting listening to the man himself talk about his creations.

I think I got into this series a bit too late, so I'm looking forward for a repeat showing sometime soon.