mandag den 27. maj 2013

Formatting problems in copying code from Kindle


I use Kindle a lot, most recently I've taken to downloading book on development. But I faced problems in trying to copy the code in the books across to my development environment; the formatting, although beautiful in the book, was lost and rendered the copied text useless. I corrected the issues in notepad, but I eventually got so fed up with it that I made the below kindle-code-converter. Maybe it'll be of use to you, too.

Note that I've only just begun to collect conversion-rules - there will be times when the code doesn't format properly because you've come across a rule I haven't implemented yet. Just comment below with the problem and I'll fix it ASAP.

Here's the link to the converter:

Link to Kindle code-converter

onsdag den 8. maj 2013

Kinect Painting demo - simple setup


I went looking for a simple Kinect demo in which the user's right hand would be tracked and used as a paint-brush. I found some example projects here and there, but they were either rather elaborate with a bunch of functionality not required for a simple demo, or using third-party dll's.

So I put together my own simple thing, which I'm making available for download here.

I must confess to being not particularly impressed with the Kinect itself. The premise of the device is extraordinary, and it does function as the product description promises, but I found it slow in updating. It cannot in its present version be used as a "live" paint-application, as there will be a too noticable delay in its registrering skeleton movement. The LeapMotion device promises more and is probably the way to go for this, until a better, faster Kinect version arrives.