Categories
Development

Encoding Help Needed.

Here’s the plan: There’s an XML file that contains plain text data. [Attempt 1]: Use PHP and some simple parsing to convert the data to look pretty.[Results]: Crazy characters like “Joan Miró” and “peoples’” [Attempt 2]: Use C# to parse the XML and output the file.[Results]: Crazy characters like “Joan Miró” and “peoples’” After a […]

Categories
Development

Language/IDE Comparisons, Part 1.

Every once in a while, I’ll post up some new headaches, awesome-ness, or just differences that have come up for me using Java(1.4.2)/Eclipse (3.1.2) and C#(1.0)/Visual Studio 2003. Here are some to start: IDE Features:-Eclipse’s refactoring and perspectives are really helping me fly through the code and find what I need to find. -Visual Studio […]

Categories
Development

Learning XPath.

So I need to parse some XML for my SDP project (C# windows application). I know you can parse XML with the regular .NET Xml class, but I saw XPath. It’s bad ass. It navigates through your XML file with ease. Check out the sample: //Load the XML documentXmlTextReader(“trafficInfo.xml”);XmlDocument doc = new XmlDocument();doc.Load(new XmlTextReader(“trafficInfo.xml”)); //Create […]

Categories
Development

C# and C++.

So I’ve been doing C# for a while. This ACM competition we’re practicing for is AWESOME, but it’s in C++! C# babys programmers and abstracts the really hardcore stuff away from the users, which is good, but it has version 2.0 coming out and the version 3.0 features are already being published. C++ doesn’t have […]