Jun 15

Changing MainPage.xaml in a Windows Phone application

Last week I was trying to add some launch page logic to a windows phone application (*word dice* cough cough) where users will see the ‘help page’ the very first time they launch the application and the homepage on every other launch. If there’s any iOS developers out there you would know that is simple enough to do since you just have to initialize and push a different ViewController. However in windows phone Continue reading

Oct 29

TextBox hidden under keyboard in Windows Phone

I recently came across a ‘bug’ in the Windows Phone SDK that makes it difficult to scroll down to the ‘next’ element in a form because the keyboard is covering 90% of the text box. Here is a screenshot of what I’m talking about:

I tried finding help on the AppHub Community Forum however the suggestions didn’t fix my problem and weren’t very future proof if i decide to add Text Boxes. Due to my background in flex and my noob silverlight skills, it did help me think of my own implementation as to how i could go about doing this. Here’s how I did it… Continue reading

Oct 16

Conditional printf debug statements in C based programming languages

One of the first things people learn to do when learning to program is how to write an ‘Hello World’ application. For many programming languages this involves writing the iconic sentence to a console window. Its amazing how the same fundamental concepts from the ‘Hello World’ application can extend into hardcore application debugging. At university we called this ‘printf debugging’. However in the real world, its important to remember that having too many unnecessary logging statements in production applications can impact performance. In compiled programming languages there are ways to automatically remove all ‘printf debugging’ statements. Here is how to do it on C, C++ and Objective C… Continue reading

Feb 01

Controlling Skype via Terminal on a Mac

UPDATE: Windows users should check out my other project, skype4cmd.

Recently Manoj Vekaria asked me if I know how he could send SMS’s via Skype from within one of his PHP scripts. After digging around we found that while there is PHP support for windows, however it doesnt work on OS X since there is no COM interface.

There is a framework that Skype provides for cocoa, that doesn’t seem to compile ‘out of the box’ on Intel machines. Fortunately there is light at the end of the tunnel for Mac developers. Continue reading