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. <div id='pnlUsers'></div> <div id='pnlMessages'></div> <div id='pnlStatus'></div> .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ [...]
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. Related PostsFailed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be [...]
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 wanted to easily add theme support to yonkly, so that others can install it and modify its look and feel as they please. I also wanted it to be as easy as installing a theme in wordpress. I created a themes folder under the content folder Then I referenced my css file in the [...]
Here is the situation, my controller constructors take multiple interfaces as parameters. I do this in order to use constructor injection which allows me to inject the controllers with mocked objects in my unit tests. For example, my AccountController takes IEmailService, IFormsAuthentication and MembershipProvider (abstract class) as parameters. During my testing, I want to mock [...]
Saturday, July 25, 2009
Comments Off