Drawing scaled Video XNA

Importing Video via the ContentPipeline can only be done with WMV video files. It’s very hard to get the video format and encoding right, there is a lot of WMV importer complaining about corrupt files etc. But if you do get ‘em right the next hurdle is to get is displayed the right way.
I’m using a SpriteBatch [...]

LedCube USB hid toggling LED

Controlling USB connections to an embedded system can be a real pain. Fortunately many suppliers also ship their product with an BSP. I’ve made some adjustments to one of the examples to enable communication between the device and an C++ program.
Using Microchip’s framework by using IDE: Visual C++, MPlab (the worst IDE ever), you can [...]

JNI UnsatisfiedLinkError solutions

Java Native Interface allows to access native C/ C++ files. When an error occurs Java throws an UnstatisfiedLinkError. Java is an OO programming language who needs help to access Native C/ C++ files, a java class file implements all functions from the C/C++ file. Via this Java class native functions can be addressed, it’s kind [...]

New Project LEDCube2009

I’m working on a new project at school. This time it’s all about an Embedded system. Programmable in C18 ( Microchip’s ripoff of regular C99? ) on the PIC 18f4550 the same device I’ve used for my PONG on glcd.
For this project I’m going to build a LED cube. Here suppose to be a boring text about LED [...]

Summer of C

After finishing my propedeuse I’ve decided to buy a programming book of C. I’ve always wanted to learn the language, and my summer will otherwise be dominated by playing games, a waste of time.
At first glance the syntax of C is a lot like Sun’s Java. Java is a language derived from C so no [...]