Using the Convert-WindowsImage.ps1 script to generate VHDs

The powershell script to convert Windows ISOs to VHDs works pretty well. However, its usage is pretty confusing and although it is documented on the page, it is buried half way through and I always struggle with it before I…

Understanding the GPIO pin out mapping for CC2540DK (SmartRF05EB + CC2540EM module)

Understanding the GPIO pin out mapping for CC2540DK (SmartRF05EB + CC2540EM module)

Developing a prototype with the CC2540DK (SmartRF05EB + CC2540EM) I hit the issue where the pin mapping from the CC2540 chip to the final breakout pin headers is extremely convoluted. Here is source of this issue: CC2540 is mounted on…

Weird black lines between sprites in Cocos2d-x

Weird black lines between sprites in Cocos2d-x

Today, while building a sample game, I noticed that there were weird black lines between my sprites. Since the sprites are exact size and I am drawing them at integer coordinates exactly, that did not make any sense. After messing…

Arduino integer overflow headscratcher

Arduino integer overflow headscratcher

I was testing out a piece of Arduino code that someone sent my way. They complained that a globalVariable value increment was not having any effect whatsoever. To better understand see the following sketch. Essentially, if all goes well, once…

Tired of entering passwords in git-bash? Read on

I have used git-bash for a long while and finally gotten sick of typing passwords all the time.. on Linux/Mac, It Just Works with the ssh-agent. Finally got bugged enough to do the research and found a solution.. See this…

Cleaning up Visual Studio C++ projects

After manually cleaning up Visual Studio C++ solutions for a long time, finally I had enough when I was trying to clean a Cocos2d-x project with its nested hierarchy of projects.. each with its own bin/debug/arm folders. So I started…