Error pushing Node.js app to Heroku

If you are building a Node.js app and have been deploying your app to Heroku and testing it there all along, you might be surprised to see this error next time you try pushing your code to Heroku with the following command… git push heroku master The error you might see is: Push rejected, failed…


Returning multiple values from a method

During your programming escapades you are sure to come across an instance when you need to return multiple values from a method.   The traditional ways of doing it are: (i) to create an object of a class, instantiate it and assign values to the object inside the method and then return the object from…


How to send email from your Windows Phone 8.1 app

As part of the API changes made in the new Windows Phone 8.1 XAML programming model, the EmailComposeTask – and several other tasks – that were available in the Microsoft.Phone.Tasks namespace in Windows Phone 8 are no longer available. Most of these have been replaced with a new way of performing the same tasks. For…


Xamarin Forms Shared project template error

The new Xamarin Forms Shared Project Template has a bug which causes the Windows Phone build to fail out of the box. You might see an error like:The ‘ProductID’ attribute is invalid – The value ‘b79569cb-1898-4dab-9173-afe40fa8559c’ is invalid according to its datatype ‘http://WPCommontypes:ST_Guid’ – The Pattern constraint failed.Note that the error message you receive might…


How to make your Windows Phone app vibrate?

There are 2 simple ways to make your Windows Phone app vibrate the device. The first method makes use of the VibrateController class in the Microsoft.Devices namespace:             VibrateController vibrateController = VibrateController.Default;            vibrateController.Start(TimeSpan.FromSeconds(2));            vibrateController.Stop(); The second method makes use of the VibrationDevice class in the Windows.Phone.Devices.Notification namespace:  …


System.UnauthorizedAccessException: Access is denied

So you are coding up your next big app and cruising along, but suddenly you face an error like the following:{System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()Fear not, my friend, this is a simple case of Missing Capabilities. For example, if you are trying to…


1 Million Downloads, Part-2, App Statistics

This is Part-2 in a series of blog posts I am writing to detail my experiences to get to 1 Million downloads on Windows Phone. In this post, for the first time ever, I will make public detailed info around my app statistics which will show you how my top apps have performed since launch….


1 Million Downloads

I am happy to report that my apps have surpassed the 1 Million download mark on Windows Phone. This is the first post in a series of blog posts I will be writing about my lessons learned, mistakes made, best practices, monetization and promotion practices, among other things, so keep an eye out! I’ve been able…


Announcing Windows Phone Day in Portland, OR

I am proud to announce the Windows Phone Day in Portland, Oregon on Saturday, May 3, 2014. Learn to make amazing Windows Phone apps at the Windows Phone Day event and you may win big for launching your apps in the store. Join Nokia Developer Ambassador Paras Wadehra & Windows Phone Development MVP Kelly White, as they provide…


Windows Phone App Promotion

Well, it has been a while since I’ve run a promotion for all of you Windows Phone developers out there, so I am giving away a Nokia Lumia 520 to one lucky developer who writes and publishes a new app in the Windows Phone store by Mar-31. This low memory device is the most popular…