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…

0

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…

0

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…

0

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…

0

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…

0

Running an async operation from a synchronous function

One of those things that you almost never need, but if you need it, you need it. I hit a scenario where in Windows Phone 8 app, I had to have a Protocol launch handler. If you are not familiar,…

0

Windows Phone 8.0 Direct3d apps don’t have access to Launch Parameters

Recently, someone asked me that if a pure C++/Direct3d application on Windows Phone 8.0 was invoked via LaunchUriAsync, how would one go about getting the Launch Parameters? The MSDN documentation seems to say that  you can use the “ProtocolActivatedEventArgs” parameter…

0

How to add a refresh method to a backbone router

While creating a simple web app, where I created an ajax powered form using backbone.js, I needed the ability to clear the form if the user hit the reset button. So, I thought how about if I just refresh the current…

0

Fall Fury Game as a Universal Windows and Windows Phone app

During Build 2014, I ported over the Fall Fury game, that was originally written for Windows Store using DirectX. Porting it over to a  Universal app was quite an experience. The game would compile and work on Windows just fine…

0