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
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.