Programming

jQuery Wildcard Selector

This post is a reminder for me on how to do wildcard selection in jQuery.  It comes up more than you think and for some reason, I can never remember it.

I can easily hide all the divs up by doing a wildcard selection on elements with an id starting with “pnl”, like this:(…)

Regular Express For Parsing URLs

I am always looking for this one, so I am blogging it for future reference and for everyone to use. ^(?#Protocol)(?:(?:ht|f)tp(?:s?)\:\/\/|~/|/)?(?#Username:Password)(?:\w+:\w+@)?(?#Subdomains)(?:(?:[-\w]+\.)+(?#TopLevel Domains)(?:com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum|travel|[a-z]{2}))(?#Port)(?::[\d]{1,5})?(?#Directories)(?:(?:(?:/(?:[-\w~!$+|.,=]|%[a-f\d]{2})+)+|/)+|\?|#)?(?#Query)(?:(?:\?(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)(?:&(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)*)*(?#Anchor)(?:#(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)?$ There is more information on Ivan’s blog.

Shortening URLs with bit.ly’s API in .NET

Shortening URLs with bit.ly’s API in .NET

I previously wrote about shortening URLs with TinyURL’s API but my new favorite URL shortener is http://bit.ly and it also has a great API that you can use from within your .net code.  I just recently used in my twitter contest website – tweetastica. The code is also very simple.  I didn’t add all the(…)

“I Quit” 1 Year Anniversary

“I Quit” 1 Year Anniversary

It has been a year since I quit my job and decided to go independent.  I didn’t know what I was going to do, the economic outlook wasn’t good, I had two rental properties and a condo that I didn’t know how I was going to pay for.  I was armed with only hope, ambition,(…)

Testing Web Apps With Selenium, Explorer and .NET

Testing Web Apps With Selenium, Explorer and .NET

Here are the steps to run your Selenium tests against Internet Explorer. Create the tests Install Selenium IDE from http://seleniumhq.org Record your tests in Firefox using the Selenium IDE Click File > Create New Test Click the record button and create your test Click the record button to stop the test Save your test Click(…)