Category Archives: Development
When adding RestSharp via NuGet to WP7 project, you will probably receive the following error:
File or assembly name ‘Newtonsoft.Json, Version=126.96.36.199, Culture=neutral, PublicKeyToken=30AD4FE6B2A6AEED’, or one of its dependencies, was not found.
I just wanted to share this small code sample for embedding HTML5 canvas fully inside the browser window. The simplest HTML looks like this:
<!DOCTYPE HTML> <html> <head> </head> <body> <canvas id="myCanvas" style=""> </canvas> </body> </html>
Special thanks to John Sheenan who pointed out an error in my code. First of all, calling
Dispatcher.BeginInvoke is redundant since the callback action will be invoked on the main thread.
Secondly, there is a powerful deserialization feature in RestSharp. Create a simple class that will correspond to the deserialized JSON object: Read the rest of this entry
First step is creating an application in API Console and selecting services that you will be using. In this example, we will use the Tasks API. Once you create your project with the appropriate settings, you will need
client_secret which is available on the API Access page. Read the rest of this entry
Sprite Sheet Packer (at codeplex.com) is an excellent little utility for packing all sprites in a single large texture. It is very simple to use, simply add all the files that need to be packed and select destination file path and type. Transparency will be preserved for PNG images. For preventing issues when using mipmaps, you can add the padding around each image. Read the rest of this entry