Snakes on a Plane? No, Wifi on a Bus! Liveblogging from DC2NY

So I’m headed to NY today to show the cousin around (I wasn’t expected to go but it ended up being a last minute thing). So I have my laptop with me because the bus to NY has free Wifi on board. Cool!!

So I’m eager to test it out and see how well it works. My guess is that they are using a Verizon EV-DO wireless card hooked up to a router (something like a femto-cell). I might do some tests, but I don’t expect to do much more than just IM and browse the web. Don’t want to abuse the connection

read on

Posted at 12pm on 04/26/08 | 3 comments | Filed Under: Uncategorized

Serializing XML in .NET - UTF-8 and UTF-16

When working with xml to object mapping, most modern languages have powerful tools or libraries that serialize and deserialize objects for you automatically, or even create classes for you based on xml schema definitions (XSDs). In the .NET world, these classes reside in the System.Xml.Serialization namespace. There is plenty of documentation available on how to use it.

However, you might encounter an issue when trying to serialize your object to XML, especially if you use a StringWriter to serialize your object to an XML string instead of a file. Since .NET strings are always stored in UTF-16, your resulting xml file will have the encoding of UTF-16. One way to get around this is by creating a MemoryStream, creating a StreamWriter, and applying the UTF-8 encoding to that StreamWriter.

read on

Posted at 9am on 04/15/08 | no comments | Filed Under: Uncategorized

About

I am a software developer and consultant and am always dabbling in various technologies, generally with a web 2.0, mobile, or slightly hardware related slant. I would like to document these projects online so others can benefit from the knowledge as I have from other blogs.

I hope you find these posts to be useful, whether you too are a tech enthusiast, a food lover, or a regular user looking for some technology guidance.

Categories