A A
RSS

Select Random Records Using Nhibernate

Wed, Dec 16, 2009

Comments

Selecting 5 random rows in SQL is easy select top 5 * from users order by newid() .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: [...]

Startup – ASP.NET MVC, Cloud Scale & Deployment

Wed, Aug 5, 2009

Comments

This is a second post in my startup series (first one).  Warning, this one is a lot more technical than my first one. If you have been following my blog, my company or my twitter page then you probably know that my startup – yonkly – was built with ASP.NET MVC.  In this post, I will [...]

jQuery Wildcard Selector

Sat, Jul 25, 2009

Comments Off

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;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode [...]

Regular Express For Parsing URLs

Sun, Jul 5, 2009

Comments

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 closed.I had to [...]

Startup – How To Build A Web 2.0 Business: The Risks

Sat, May 9, 2009

Comments

Startup – How To Build A Web 2.0 Business: The Risks

If you have been reading along, I probably sound like a broken record, talking about how I quit my job over a year ago and decided to go solo (here and here).  It has been a tough but fun ride so far and I have made a few mistakes and learned a lot on the [...]

Advertise Here

What I'm Doing...

Yonkly Open Source

Sign up for my newsletter

powered by MailChimp!

Cyber Identity