Generating Certificates for use with the Windows Azure Management API

February 8, 2011

Windows Azure has a great Management API that service owners may use to perform tasks such as listing storage instances, viewing web roles, and collecting service statistics. In order to use the Management API the service owner must first create a digital certificate and upload it using the Windows Azure Portal (NOTE: I am using

Firefox: This address is restricted

February 2, 2011

During some development works recently I ran into this message: The address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection. Thanks Firefox, glad for your concern, but I actually need to view content on that port. Luckily there is a simple

Watch out for Base 64 Hacks!

January 22, 2011

I recently had a client call me and tell me their site was linking to a spam site from a Google search. Turns out that searching for their company name from several major search engines took users to the spam site, however typing the URL in directly revealed the site properly. After a bit of

PHP: Autoloader

August 9, 2010

SirGecko just released the first version of their PHP Autoloader. This auto loader is great because I can use it in any of my PHP projects and no longer have to keep track of and/or require() my objects. I simply drop this auto loader into my project, setup the directories my classes are in in

Javascript: Parse Twitter Usernames, Hashtags and URIs

July 28, 2010

Twitter provides a plain-text stream of tweets. I was looking to add links to this stream for the usernames, URIs, and hashes. I wound up with the following function that hopefully you will find useful. function parseTwitter(text) { // Parse URIs text = text.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/, function(uri) { return uri.link(uri); }); // Parse Twitter usernames text =