Monthly Archives: June 2013

Generating Properties Using the prop Snippet in Visual Studio 2013

Saw a very cool way to generate properties in C# code from the //build conference, just by typing the word prop, but I didn’t know what key to press after the typing prop. I tried TAB and ENTER but they

Tagged with: ,
Posted in Development

Visual Studio 2013 Preview Available for Download

Visual Studio 2013 Preview is now available for download. You can download it from here. http://www.microsoft.com/visualstudio/eng#2013-downloads You might as well get the Ultimate version for now to try it out although you may need to uninstall and reinstall if you

Tagged with:
Posted in Development

Reading XML using PowerShell

Stumbled across a very simple way to read an XML document using Powershell. This is so simple and concise. You just get the content and convert it to an XML object.  [xml]$books = Get-Content C:\Books.XML   $books.catalog.book.title  Thanks to The Scripting

Tagged with: ,
Posted in Development

Consuming JSON from External Sources using Javascript

First you need a handy function to do the GET request. function httpGet(theUrl) { var xmlHttp = new XMLHttpRequest(); xmlHttp.open(“GET”, theUrl, false); xmlHttp.send(null); return xmlHttp.responseText; } Next you simply evaluate the text. var jsonstring = httpGet(“http://data.gc.ca/data/api/…”); var jsonvalue = eval(“(“

Tagged with:
Posted in Development

The Scourge of Politics in Development

It is my dream to be able to do coding, analysis and design without any interference from politics. I naively thought that if I just focused wholly on technical things and avoided any involvement in politics that I would be

Tagged with:
Posted in News and politics

Saving Money on Windows Azure Virtual Machines

Once you set up a Windows Azure Virtual machine the costs incur on an hourly basis, but what if you don’t need the machine running 24 hours a day? What if you just need it once in a while for

Tagged with: , ,
Posted in Development