Posted by Chas in Coding
on Dec 7th, 2010 | Comments Off on XStream
I needed a way to save and recall data easily from within my Java programs. After a little googling I found XStream, which is a package that will encode an entire object into XML: String xml = xstream.toXML(myObject); and decode it when you need it: MyClass newObject = (MyClass)xstream.fromXML(xml); Wow! I suppose these XML parsers are available in all OOP languages. This is the first time I’ve seen one. I can’t believe how powerful it is. I guess the point is that you just save the state of your whole program in one go. In this blog I’m going to go through a full noob-friendly example of how to get...
Posted by Chas in 1/10 Racing
on Dec 7th, 2010 | Comments Off on Rollout Table
Posted by Chas in 1/10 Racing, Coding
on Dec 7th, 2010 | Comments Off on Introducing project Oblio
In the wee hours of Monday morning, while most of my side of the world is tucked away in bed, Europeans sit in stadiums, basking in the shimmering heat rising from black tarmac, and the unmistakable scream of 24 Formula 1 cars. That scream is turned right down on my tv. I don’t want to wake anyone, so I’ve turned all the lights off too. The flickering screen lights the room just enough to see. But I’m so awake; tonight I’m on European time. This is my first coding blog, and it’s about a software project that burrowed itself into the back of my mind some time during my undergrad years… probably while...