Written by: Theresa Kattula
You may have heard about search engine optimization (SEO) but what about Pinterest optimization? Pinterest may be sky rocketing to the top of the social media world, but is your website optimized to keep up? If your website isn’t optimized for “pinning” then your content may get left behind. One “pin” from your website has …
Written by: Lee Kohn
Here is handy comparison of the performance ReaderWriterLock and ReaderWriterLockSlim: ReaderWriterLock ReadLock -> Release Lock = 0.00014 ms WriteLock -> ReleaseLock = 0.00012 ms ReadLock -> UpgradeToWriteLock -> ReleaseLock = 0.00021 ms ReaderWriterLockSlim ReadLock -> ExitReadLock = 0.00005 ms WriteLock -> ExitWriteLock= 0.00004 ms ReadLockUpgradeable -> WriteLock -> ExitWriteLock -> ExitReadLock = 0.00009 ms So …
Written by: Lee Kohn
The other day I learned something interesting about the inner workings of ASP .Nets session state management. One of the nice features it provides is automatically making usage of the session state thread safe between the various threads which may be handling requests from the same user (with the same sessionId). Apparently the way it …
Written by: Lee Kohn
Recently I as involved with adding SSL to a site which is hosted within Microsft’s Aure platform. Overall the process went pretty smoothly having used the guide from MSDN: http://msdn.microsoft.com/en-us/library/windowsazure/ff795779.aspx The one thing it forgets to mention is that along with server certificate you also need all of the certificates along the chain of trust back …
Written by: Lee Kohn
Recently I ran into a scenario where I had a production database which contained a table with 1.4 million records in which I wanted to convert a varchar column containing numbers to a bigint column. I used a backup of the database to try out a few different methods; at first I tried simply running …
Written by: Lee Kohn
Since I’ve never particularly liked the feel of C#’s int.TryParse and bool.TryParse methods I decided to create some extension methods for strings which I feel like make the code using them much more readable: /// <summary> /// Converts a string to an int, if the string cant be parsed then null is returned /// </summary> /// …