<feed xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://www.w3.org/2005/Atom" xml:lang="en-AU">
    <title>Michael Freidgeim's Blog</title>
    <link rel="self" type="application/xml" href="http://geekswithblogs.net/mnf/Atom.aspx" />
    <subtitle type="html">MS .Net Development</subtitle>
    <id>http://geekswithblogs.net/mnf/Default.aspx</id>
    <author>
        <name>Michael Freidgeim</name>
        <uri>http://geekswithblogs.net/mnf/Default.aspx</uri>
    </author>
    <generator uri="http://subtextproject.com" version="Subtext Version 0.0.0.0">Subtext</generator>
    <updated>2012-05-15T22:20:41Z</updated>
    <entry>
        <title>"Read It Later Pro" has been ruined into Pocket, but RIL Free is still usable.</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/mnf/archive/2012/05/15/read-it-later-pro-has-been-ruined-into-pocket-but.aspx" />
        <id>http://geekswithblogs.net/mnf/archive/2012/05/15/read-it-later-pro-has-been-ruined-into-pocket-but.aspx</id>
        <published>2012-05-15T22:13:1710:00:00</published>
        <updated>2012-05-15T22:20:41Z</updated>
        <content type="html">&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;span&gt;I loved RIL Pro for iPad and used it every day, but about a month ago I was forced to upgrade to new version, named &lt;a href="http://help.getpocket.com/"&gt;Pocket&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;span&gt;The new version has so many problems, that it's almost unusable.&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;div&gt;The main issue is that iPad app doesn't show many of the saved links. &lt;/div&gt;&lt;div&gt;I've posted my opinion that it would be better to have  Pocket as a new separate application and recommend users to install it side by side with RIL Pro and try before replace&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span&gt;at Pocket forum &lt;/span&gt; APR 20, 2012 &lt;/div&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;span&gt;&lt;a href="http://help.getpocket.com/customer/portal/questions/290569-auto-update-to-pocket-wasn-t-a-god-idea" data-mce-href="http://help.getpocket.com/customer/portal/questions/290569-auto-update-to-pocket-wasn-t-a-god-idea"&gt;http://help.getpocket.com/customer/portal/questions/290569-auto-update-to-pocket-wasn-t-a-god-idea&lt;/a&gt; .It's still unanswered.&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;span&gt;I found that there a many other threads that report different issues with a new version and I've posted a few comments, supporting suggestions to fix the issues, that were broken by the Pocket.(e.g. &lt;a href="http://help.getpocket.com/customer/portal/questions/286093-i-ve-lost-items"&gt;here&lt;/a&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;span&gt; Pocket agents answered only a  small number of questions, and many of their answers&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;were unreasonable- like "We removed this feature because it is not convenient for our future plans"&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;span&gt;Example of this is still stored in &lt;a href="http://webcache.googleusercontent.com/search?q=cache:d82fRjlYWLYJ:help.getpocket.com/customer/portal/questions/282273-refund-required-for-digest-+&amp;amp;cd=2&amp;amp;hl=en&amp;amp;ct=clnk&amp;amp;gl=au"&gt;Google cache &lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;span&gt;24Apr I've &lt;a href="http://webcache.googleusercontent.com/search?q=cache:OdgkHRhtq0MJ:help.getpocket.com/customer/portal/questions/300216-please-restore-ril-pro-in-appstore+&amp;amp;cd=1&amp;amp;hl=en&amp;amp;ct=clnk&amp;amp;gl=au"&gt;posted a request&lt;/a&gt; to restore RIL Pro in AppStore until they will fix the problems in pocket.&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;span&gt;&lt;/span&gt;From 27 April they introduced moderation on the public forum and stopped show new posts.&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;Actually &lt;span&gt;"moderation" is not a correct work, it's converted the &lt;/span&gt;&lt;span&gt;forum into Q&amp;amp;A site, where they show only posts with answers that they like.&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;span&gt;&lt;/span&gt;Furthermore they removed many discussion threads that existed on the forum before the "moderation".&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;When I pointed to this in email, the answer was un-reasonable-that their forum is actually not a forum, but "a &lt;span&gt;helpful support site where users can get their questions answered"&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;In fact users post public questions and do not see them posted for a week or forever.&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;For couple of my questions I received email starting with the words&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;span&gt;    "An agent has responded to your question (Link to Question&amp;lt;&lt;/span&gt;&lt;a href="http://readitlater.assistly.com/customer/portal/questions/306173-sync-in-ril-free-stopped-working" target="_blank" data-mce-href="http://readitlater.assistly.com/customer/portal/questions/306173-sync-in-ril-free-stopped-working"&gt;http://readitlater.assistly.com/customer/portal/questions/306173-sync-in-ril-free-stopped-working&lt;/a&gt;&lt;span&gt;&amp;gt;)."&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;span&gt;But the link is not working, because they deleted the discussion from the forum.&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;At the beginning of May Pocket support answered that the  "&lt;span&gt;known issue with a partial list sync" is addressed and will be in the next upgrade.&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;span&gt;Despite the statement in upgrade notes, &lt;/span&gt;next upgrade didn't help with the problem(at least for me).&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;Support  replied to me, that  "&lt;span&gt;it seems as though a&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;em&gt;&lt;strong&gt;small&lt;/strong&gt;&lt;/em&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;handful of users are still experiencing this sync discrepancy."&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;27Apr I've reported that "&lt;a href="http://webcache.googleusercontent.com/search?q=cache:XgM0LfwwlVkJ:help.getpocket.com/customer/portal/questions/306173-sync-in-ril-free-stopped-working+&amp;amp;cd=1&amp;amp;hl=en&amp;amp;ct=clnk&amp;amp;gl=au"&gt;Sync in RIL Free stopped working&lt;/a&gt;" and it was on forum at least until 6 May(according Google cache)&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;span class="il"&gt;10 May I received a reply via email(but post has been removed from the forum)&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;font color="#006400"&gt;&lt;strong&gt;&lt;span class="il"&gt;"The&lt;/span&gt;&lt;span&gt; fix is &lt;/span&gt;&lt;span class="il"&gt;to&lt;/span&gt;&lt;span&gt; log out of Read It Later Free, and then log back in. Although your local cache will be cleared, &lt;/span&gt;&lt;span class="il"&gt;the&lt;/span&gt;&lt;span&gt; app will go through your list and re-download your items."&lt;/span&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;div dir="ltr"&gt; It was the first useful advice after introducing Pocket. Now I am able to use RIL Free. With all it's limitation RIL Free is in much more workable conditions, than Pocket. It shows all articles that I've saved and it allowed to rename titles. The only feature from RIL Pro, that I really missing, is the ability to filter only untagged articles.&lt;/div&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" dir="ltr"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" dir="ltr"&gt;So now I can read all my saved articles in &lt;font color="#006400"&gt;&lt;strong&gt;RIL Free&lt;/strong&gt; &lt;/font&gt;and wait until they will fix the Pocket.&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" dir="ltr"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" dir="ltr"&gt;The conclusion I've had is that the Pocket company doesn't respect their customers, and I should not rely on their products too much. However the application is quite convenient, and I am familiar with it, so I will continue to use it. &lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" dir="ltr"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" dir="ltr"&gt;The company's  behaviour reminds me how Google changed layout of iGoogle tabs and&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://groups.google.com/group/google_web_search_help-personalizing/browse_thread/thread/dad1756deccbae18/24fe849f9ce936eb?hl=en#24fe849f9ce936eb" data-mce-href="http://groups.google.com/group/google_web_search_help-personalizing/browse_thread/thread/dad1756deccbae18/24fe849f9ce936eb?hl=en#24fe849f9ce936eb"&gt;ignored hundreds of complains&lt;/a&gt;. Note that recently (4 years later) Google returned to layout similar to original.&lt;/div&gt;&lt;br class="Apple-interchange-newline" /&gt;&lt;img src="http://geekswithblogs.net/mnf/aggbug/149630.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/mnf/comments/149630.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/mnf/comments/commentRss/149630.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/mnf/services/trackbacks/149630.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Links about SQL PIVOT</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/mnf/archive/2012/05/12/links-about-sql-pivot.aspx" />
        <id>http://geekswithblogs.net/mnf/archive/2012/05/12/links-about-sql-pivot.aspx</id>
        <published>2012-05-12T19:34:2610:00:00</published>
        <updated>2012-05-12T19:34:46Z</updated>
        <content type="html">&lt;p&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;One of my colleagues asked how to create SQL query to show results as columns of a row, that actually stored in multiple rows in the table. Other co-worker suggested to use cursor to manually generate required rows.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;I’ve found a few links about SQL PIVOT.  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;It is easy to start with&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.kodyaz.com/articles/t-sql-pivot-tables-in-sql-server-tutorial-with-examples.aspx"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://www.kodyaz.com/articles/t-sql-pivot-tables-in-sql-server-tutorial-with-examples.aspx&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;or &lt;/span&gt;&lt;a href="http://programmingsolution.net/post/SQL-Server-Pivot-Converting-Rows-to-Columns-with-Dynamic-Query.aspx"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://programmingsolution.net/post/SQL-Server-Pivot-Converting-Rows-to-Columns-with-Dynamic-Query.aspx&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;More detailed are articles written by &lt;/span&gt;&lt;a href="http://www.sqlmag.com/author/5779340/ItzikBenGan"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Georgia; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;Itzik Ben-Gan&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Georgia; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;&lt;/span&gt;&lt;a href="http://www.sqlmag.com/article/tsql3/pivot-or-unpivot-your-data"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://www.sqlmag.com/article/tsql3/pivot-or-unpivot-your-data&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;and&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.sqlmag.com/content1/topic/pivot-or-unpivot-your-data/catpath/tsql3/page/2compaslightly"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://www.sqlmag.com/content1/topic/pivot-or-unpivot-your-data/catpath/tsql3/page/2compaslightly&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;  &lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 51); font-family: Georgia; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;How to use Pivoting Without Aggregation is described in&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 24px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;a href="http://www.sqlmag.com/article/tsql3/pivoting-without-aggregation"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://www.sqlmag.com/article/tsql3/pivoting-without-aggregation&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/mnf/aggbug/149592.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/mnf/comments/149592.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/mnf/comments/commentRss/149592.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/mnf/services/trackbacks/149592.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Log JavaScript errors to the server.</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/mnf/archive/2012/04/25/log-javascript-errors-to-the-server.aspx" />
        <id>http://geekswithblogs.net/mnf/archive/2012/04/25/log-javascript-errors-to-the-server.aspx</id>
        <published>2012-04-25T11:55:2010:00:00</published>
        <updated>2012-04-25T12:01:51Z</updated>
        <content type="html">&lt;p&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Some time ago I found &lt;/span&gt;&lt;a href="http://stackoverflow.com/questions/546990/automatic-feedback-on-javascript-error"&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;debugging - Automatic feedback on JavaScript error - Stack Overflow&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;.  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;and the discussion has&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;  links to &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;&lt;a href="http://james.newtonking.com/archive/2006/05/02/Logging-JavaScript-Errors-To-ASP.NET.aspx"&gt;Logging JavaScript Errors To ASP.NET&lt;/a&gt;(&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Unfortunately the link to download in the post is broken).&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;and &lt;span style="border-width: 0px; font: 13px/17px Arial, &amp;quot;Liberation Sans&amp;quot;, &amp;quot;DejaVu Sans&amp;quot;, sans-serif; margin: 0px; padding: 0px; text-align: left; color: rgb(68, 68, 68); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; vertical-align: baseline; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-image: initial;" class="comment-copy"&gt;custom control to help log JavaScript errors by sending error information to the server -&lt;a style="border-width: 0px; margin: 0px; padding: 0px; color: rgb(74, 107, 130); font-size: 13px; text-decoration: none; vertical-align: baseline; cursor: pointer; background-color: transparent; border-image: initial;" href="http://www.thecodepage.com/post/JavaScript-Error-Notifications.aspx" rel="nofollow"&gt;thecodepage.com/post/JavaScript-Error-Notifications.aspx&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;I’ve downloaded solution from  &lt;/span&gt;&lt;a href="http://www.thecodepage.com/file.axd?file=JSErrorNotifier.zip"&gt;&lt;span style="color: rgb(0, 51, 153); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;JSErrorNotifier.zip&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;. When I wanted to include dll into my solution dependencies,  I decided to rename WebControls.DLL to more descriptive &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;JSErrorNotifier.DLL.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;I also decided to rename default namespace to be the same as DLL name.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;It wasn’t a good idea, because control stopped to work. It took me some time and I had to call  &lt;/span&gt;&lt;span style="color: rgb(0, 128, 128); font-family: &amp;quot;Courier New&amp;quot;; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(213, 222, 237);"&gt;StreamHelper.EnsureWebResourceValid &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;function from my old post &lt;/span&gt;&lt;a href="http://geekswithblogs.net/mnf/archive/2006/05/26/79669.aspx"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Check that embedded resource exist before calling ClientScript.RegisterClientScriptResource or GetWebResourceUrl&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;to do all consistent changes for namespace renaming.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;Finally when I made control working again, I found that it doesn’t work in IE 9. After another half an hour of debugging I found that for my IE9 onerror &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;event is not fired &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;even for example from MS documentation&lt;/span&gt;&lt;br /&gt;&lt;a href="http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/onerrorEX.htm"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/onerrorEX.htm&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;It worked on other browsers and on IE8, but on IE9 you need to &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;disable script debugging in Internet Explorer (Tools, Internet Options, Advanced). The  same happens if IE9 changed to IE7 or IE8 mode.(Actually I’ve noticed that Developer Tools Browser mode IE7 or IE8 do not emulate correctly native script engine of older IE versions)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;However native IE8 on XP fires onerror regardless if debugging is enabled or disabled&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;.&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;I hope that not too many IE9 users with enabled debugging will have  JS errors in our application.&lt;/span&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/mnf/aggbug/149410.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/mnf/comments/149410.aspx</wfw:comment>
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/mnf/comments/commentRss/149410.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/mnf/services/trackbacks/149410.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Case-insensitive Contains extension for list of strings</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/mnf/archive/2012/04/18/case-insensitive-contains-extension-for-list-of-strings.aspx" />
        <id>http://geekswithblogs.net/mnf/archive/2012/04/18/case-insensitive-contains-extension-for-list-of-strings.aspx</id>
        <published>2012-04-18T22:29:2910:00:00</published>
        <updated>2012-04-18T22:29:29Z</updated>
        <content type="html">&lt;span style="font:/normal &amp;quot;Times New Roman&amp;quot;; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none;" class="Apple-style-span"&gt;&lt;div style="background-color: transparent;"&gt;&lt;b style="font-weight: normal;" id="internal-source-marker_0.7624624292366207"&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;I wanted to have case-insensitive Contains method for list of strings.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: transparent;"&gt;&lt;b style="font-weight: normal;"&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Overload &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/bb352880.aspx"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Enumerable.Contains&amp;lt;TSource&amp;gt; Method (IEnumerable&amp;lt;TSource&amp;gt;, TSource, IEqualityComparer&amp;lt;TSource&amp;gt;)&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(63, 82, 156); font-family: Verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; expects custom &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms132151.aspx"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;IEqualityComparer &lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(63, 82, 156); font-family: Verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;class.&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;I was about to create my own &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;class IgnoreCaseEqualityComparer : IEqualityComparer&amp;lt;string&amp;gt;,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;but then found &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.stringcomparer.create.aspx"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;StringComparer.Create Method&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;, that allow to use standard class.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;public static bool ContainsString(this &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;IEnumerable&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&amp;lt;string&amp;gt; collection, string toFind, bool ignoreCase = true)&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;{&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;return collection.Contains(toFind, &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;StringComparer&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;.Create(CultureInfo.InvariantCulture, ignoreCase));&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/span&gt;&lt;img src="http://geekswithblogs.net/mnf/aggbug/149361.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/mnf/comments/149361.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/mnf/comments/commentRss/149361.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/mnf/services/trackbacks/149361.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Select tool to minimize JavaScript and CSS size</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/mnf/archive/2012/04/15/select-tool-to-minimize-javascript-and-css-size.aspx" />
        <id>http://geekswithblogs.net/mnf/archive/2012/04/15/select-tool-to-minimize-javascript-and-css-size.aspx</id>
        <published>2012-04-15T20:08:0810:00:00</published>
        <updated>2012-04-15T20:08:08Z</updated>
        <content type="html">&lt;span style="font:/normal &amp;quot;Times New Roman&amp;quot;; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none;" class="Apple-style-span"&gt;&lt;div style="background-color: transparent;"&gt;&lt;b style="font-weight: normal;" id="internal-source-marker_0.3939065288286656"&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;There are multiple ways and techniques how to combine and minify JS and CSS files.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;The good number of links can be found in &lt;/span&gt;&lt;a href="http://stackoverflow.com/questions/882937/asp-net-script-and-css-compression"&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://stackoverflow.com/questions/882937/asp-net-script-and-css-compression&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;and in &lt;/span&gt;&lt;a href="http://www.hanselman.com/blog/TheImportanceAndEaseOfMinifyingYourCSSAndJavaScriptAndOptimizingPNGsForYourBlogOrWebsite.aspx"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;http://www.hanselman.com/blog/TheImportanceAndEaseOfMinifyingYourCSSAndJavaScriptAndOptimizingPNGsForYourBlogOrWebsite.aspx&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;There are 2 major approaches- do it during build or at run-time.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;In our application there are multiple user-controls, each of them required different JS or CSS files, and they loaded dynamically in the different combinations. We decided that loading all JS or CSS files for each page is not a good idea, but for each page we need to load different set of files.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Based on this combining files on the build stage does not looks feasible.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;After Reviewing  different links I’ve decided that &lt;/span&gt;&lt;a href="http://www.codethinked.com/squishit-the-friendly-aspnet-javascript-and-css-squisher"&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;squishit &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;should fit to our needs.&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; &lt;/span&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://www.codethinked.com/squishit-the-friendly-aspnet-javascript-and-css-squisher&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Different limitations of using SquishIt.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;We had some browser specific CSS files, that loaded conditionally depending of browser type(i.e IE and all other browsers). We had to put them in separate bundles,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;For Resources and AXD files we decide to use &lt;/span&gt;&lt;a href="http://madskristensen.net/post/Optimize-WebResourceaxd-and-ScriptResourceaxd.aspx"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Calibri; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;HttpModule and HttpHandler created by &lt;/span&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;Mads Kristensen&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;To GZIP html we are using wwWebUtils.GZipEncodePage() &lt;/span&gt;&lt;a href="http://www.west-wind.com/weblog/posts/2007/Feb/05/More-on-GZip-compression-with-ASPNET-Content"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://www.west-wind.com/weblog/posts/2007/Feb/05/More-on-GZip-compression-with-ASPNET-Content&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; Just swap the order of which encoding you apply to start by asking for deflate support and then GZip afterwards.&lt;/span&gt;&lt;br /&gt;&lt;h2 dir="ltr"&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 24px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Additional tips about SquishIt.&lt;/span&gt;&lt;/h2&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Use CDN: &lt;/span&gt;&lt;a href="https://groups.google.com/group/squishit/browse_thread/thread/99f3b61444da9ad1"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;https://groups.google.com/group/squishit/browse_thread/thread/99f3b61444da9ad1&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Support intellisense and generate bundle in codebehind &lt;/span&gt;&lt;a href="http://tech.kipusoep.nl/2010/07/23/umbraco-45-visual-studio-2010-dotless-jquery-vsdoc-squishit-masterpages/"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://tech.kipusoep.nl/2010/07/23/umbraco-45-visual-studio-2010-dotless-jquery-vsdoc-squishit-masterpages/&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2 dir="ltr"&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 24px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Links about other Libraries that were considered&lt;/span&gt;&lt;/h2&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;A few links from &lt;/span&gt;&lt;a href="http://stackoverflow.com/questions/5288656/which-one-has-better-minification-between-squishit-and-combres2"&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://stackoverflow.com/questions/5288656/which-one-has-better-minification-between-squishit-and-combres2&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;.Net 4.5 will have out-of-the-box tools for JS/CSS combining.&lt;/span&gt;&lt;br /&gt;&lt;a href="http://weblogs.asp.net/scottgu/archive/2011/11/27/new-bundling-and-minification-support-asp-net-4-5-series.aspx"&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://weblogs.asp.net/scottgu/archive/2011/11/27/new-bundling-and-minification-support-asp-net-4-5-series.aspx&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; . It suggests default bundle of subfolder, but also seems supporting similar to &lt;/span&gt;&lt;a href="http://www.codethinked.com/squishit-the-friendly-aspnet-javascript-and-css-squisher"&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;squishit&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; explicitly specified files.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/aspnet/combres2.aspx"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://www.codeproject.com/KB/aspnet/combres2.aspx&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;  config XML file can specify expiry etc&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="https://github.com/andrewdavey/cassette"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;https://github.com/andrewdavey/cassette&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://stackoverflow.com/questions/7026029/alternatives-to-cassette&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Dynamically loaded JS files requireJS &lt;/span&gt;&lt;a href="http://requirejs.org/docs/start.html"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://requirejs.org/docs/start.html&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.west-wind.com/weblog/posts/2008/Jul/07/Inclusion-of-JavaScript-Files"&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://www.west-wind.com/weblog/posts/2008/Jul/07/Inclusion-of-JavaScript-Files&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://jquery-howto.blogspot.com/2009/01/minimize-and-pack-your-javascript-code.html"&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Pack and minimize your JavaScript code size&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://developer.yahoo.com/yui/compressor/"&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;YUI Compressor&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; (from Yahoo)&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.crockford.com/javascript/jsmin.html"&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;JSMin&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; (by Douglas Crockford)&lt;/span&gt;&lt;br /&gt;&lt;a href="http://dojotoolkit.org/docs/shrinksafe"&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;ShrinkSafe&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; (from Dojo library)&lt;/span&gt;&lt;br /&gt;&lt;a href="http://dean.edwards.name/packer/"&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Packer&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; (by Dean Edwards)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.telerik.com/products/aspnet-ajax/scriptmanager.aspx"&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;RadScriptManager&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;  &amp;amp; RadStyleSheetManager -fromTeleric(not free)&lt;/span&gt;&lt;br /&gt;&lt;h2 dir="ltr"&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 24px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Tools to optimize performance:&lt;/span&gt;&lt;/h2&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;PageSpeed tools family&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt; &lt;/span&gt;&lt;a href="http://code.google.com/intl/ru/speed/page-speed/download.html"&gt;&lt;span style="color: rgb(0, 0, 153); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://code.google.com/intl/ru/speed/page-speed/download.html&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;v&lt;/span&gt;&lt;img src="http://geekswithblogs.net/mnf/aggbug/149331.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/mnf/comments/149331.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/mnf/comments/commentRss/149331.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/mnf/services/trackbacks/149331.aspx</trackback:ping>
    </entry>
    <entry>
        <title>ReplaceBetweenTags function with delegate to describe transformation</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/mnf/archive/2012/04/15/replacebetweentags-function-with-delegate-to-describe-transformation.aspx" />
        <id>http://geekswithblogs.net/mnf/archive/2012/04/15/replacebetweentags-function-with-delegate-to-describe-transformation.aspx</id>
        <published>2012-04-15T13:01:0210:00:00</published>
        <updated>2012-04-15T13:01:02Z</updated>
        <content type="html">&lt;p&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;I've created a function that allow to replace content between XML tags with data, that depend on original content within tag, in particular to MAsk credit card number.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;The function uses MidBetween extension from &lt;a id="CategoryEntryList_ascx_EntryStoryList_Entries_ctl20_TitleUrl" title="Click To View Entry." href="http://geekswithblogs.net/mnf/articles/84942.aspx"&gt;&lt;font color="#a30000"&gt;My StringHelper class&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt; &lt;/span&gt;/// &amp;lt;summary&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;/summary&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;param name="thisString"&amp;gt;&amp;lt;/param&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;param name="openTag"&amp;gt;&amp;lt;/param&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;param name="closeTag"&amp;gt;&amp;lt;/param&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;param name="transform"&amp;gt;&amp;lt;/param&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;example&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;// mask &amp;lt;AccountNumber&amp;gt;XXXXX4488&amp;lt;/AccountNumber&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;///requestAsString  = requestAsString.ReplaceBetweenTags("&amp;lt;AccountNumber&amp;gt;", "&amp;lt;/AccountNumber&amp;gt;", CreditCard.MaskedCardNumber);&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;///mask cvv&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;///requestAsString = requestAsString.ReplaceBetweenTags("&amp;lt;FieldName&amp;gt;CC::VerificationCode&amp;lt;/FieldName&amp;gt;&amp;lt;FieldValue&amp;gt;", "&amp;lt;/FieldValue&amp;gt;", cvv=&amp;gt;"XXX");&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;/example&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;public static string ReplaceBetweenTags(this string thisString, string openTag, string closeTag, &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Func&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&amp;lt;string, string&amp;gt; transform)&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;{&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;//See also http://stackoverflow.com/questions/1359412/c-sharp-remove-text-in-between-delimiters-in-a-string-regex&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;string sRet = thisString;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;string between = thisString.MidBetween(openTag, closeTag, true);&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;if (!&lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;String&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;.IsNullOrEmpty(between))&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;sRet=thisString.Replace(openTag + between + closeTag, openTag + transform(between) + closeTag);&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;return sRet;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;}&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;public static string ReplaceBetweenTags(this string thisString, string openTag, string closeTag, string newValue)&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;{&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;//See also http://stackoverflow.com/questions/1359412/c-sharp-remove-text-in-between-delimiters-in-a-string-regex&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;string sRet = thisString;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;string between = thisString.MidBetween(openTag, closeTag, true);&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;if (!&lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;String&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;.IsNullOrEmpty(between))&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;sRet = thisString.Replace(openTag + between + closeTag, openTag + newValue + closeTag);&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;return sRet;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/mnf/aggbug/149328.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/mnf/comments/149328.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/mnf/comments/commentRss/149328.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/mnf/services/trackbacks/149328.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Code style Tip: Case insensitive string comparison</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/mnf/archive/2012/04/15/code-style-tip-case-insensitive-string-comparison.aspx" />
        <id>http://geekswithblogs.net/mnf/archive/2012/04/15/code-style-tip-case-insensitive-string-comparison.aspx</id>
        <published>2012-04-15T12:34:0410:00:00</published>
        <updated>2012-04-15T12:34:04Z</updated>
        <content type="html">&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Good&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;if (&lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;String&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;.Compare(myString, ALL_TEXT, &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(0, 255, 0);"&gt;StringComparison&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(0, 255, 0);"&gt;.OrdinalIgnoreCase&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;) == 0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;                               &lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;                                        &lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;return true;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;                               &lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;OK(not obvious what true means)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;if (&lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;String&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;.Compare(myString, ALL_TEXT,&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(0, 255, 0);"&gt; &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(0, 255, 0);"&gt;true&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;) == 0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;                               &lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;                                        &lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;return true;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;                               &lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;BAD: (non null safe)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;if (myString.&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 0, 0);"&gt;ToLower()&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;==ALL_TEXT&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 0, 0);"&gt;.ToLower()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;                               &lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;                                        &lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;return true;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;                               &lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;img src="http://geekswithblogs.net/mnf/aggbug/149327.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/mnf/comments/149327.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/mnf/comments/commentRss/149327.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/mnf/services/trackbacks/149327.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Dump an arbitrary object To Html String</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/mnf/archive/2012/04/14/dump-an-arbitrary-object-to-html-string.aspx" />
        <id>http://geekswithblogs.net/mnf/archive/2012/04/14/dump-an-arbitrary-object-to-html-string.aspx</id>
        <published>2012-04-14T14:50:0510:00:00</published>
        <updated>2012-04-14T14:55:10Z</updated>
        <content type="html">&lt;p&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;For debugging purposes me and my collegue wanted to dump details of the arbitrary object, and created function that uses &lt;/span&gt;&lt;a href="http://www.linqpad.net/"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;LINQPad &lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Dump functionality (thanks to &lt;/span&gt;&lt;a href="http://stackoverflow.com/a/6035014/52277"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://stackoverflow.com/a/6035014/52277&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; and original &lt;/span&gt;&lt;a href="http://linqpad.uservoice.com/forums/18302-linqpad-feature-suggestions/suggestions/447166-make-dump-extension-method-available-in-visual-s"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://linqpad.uservoice.com/forums/18302-linqpad-feature-suggestions/suggestions/447166-make-dump-extension-method-available-in-visual-s&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; discussion)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    public static string DumpToHtmlString&amp;lt;T&amp;gt;(this T objectToSerialize)&lt;br class="kix-line-break" /&gt;        {&lt;br class="kix-line-break" /&gt;            string strHTML = &lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;""&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;;&lt;br class="kix-line-break" /&gt; &lt;br class="kix-line-break" /&gt;            try&lt;br class="kix-line-break" /&gt;            {&lt;br class="kix-line-break" /&gt;                var writer = LINQPad.&lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Util&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;.CreateXhtmlWriter(true);&lt;br class="kix-line-break" /&gt;                writer.Write(objectToSerialize);&lt;br class="kix-line-break" /&gt;                strHTML = writer.ToString();&lt;br class="kix-line-break" /&gt;            }&lt;br class="kix-line-break" /&gt;            catch (&lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Exception&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; exc)&lt;br class="kix-line-break" /&gt;            {&lt;br class="kix-line-break" /&gt;                &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Debug&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;.Assert(false, &lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"Investigate why ?"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; + exc);&lt;br class="kix-line-break" /&gt;            }&lt;br class="kix-line-break" /&gt; &lt;br class="kix-line-break" /&gt;            return strHTML;&lt;br class="kix-line-break" /&gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;font face="Arial"&gt;You will need to add the linqpad executable as a reference in your project.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;&lt;span style="font: 14px/18px Arial, &amp;quot;Liberation Sans&amp;quot;, &amp;quot;DejaVu Sans&amp;quot;, sans-serif; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;&lt;span class="Apple-converted-space"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;TO DO similar in plain text ,look at &lt;/span&gt;&lt;a href="https://github.com/ServiceStack/ServiceStack.Text"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;https://github.com/ServiceStack/ServiceStack.Text&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; StringExtensions , e.g. JsonSerializer/CsvSerializer &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;or &lt;/span&gt;&lt;a href="http://objectdumper.codeplex.com/"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://objectdumper.codeplex.com/&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/mnf/aggbug/149319.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/mnf/comments/149319.aspx</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/mnf/comments/commentRss/149319.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/mnf/services/trackbacks/149319.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Disable messages from SQL Server “Login failed for user” in Event log</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/mnf/archive/2012/04/14/disable-messages-login-failed-for-user-in-event-log.aspx" />
        <id>http://geekswithblogs.net/mnf/archive/2012/04/14/disable-messages-login-failed-for-user-in-event-log.aspx</id>
        <published>2012-04-14T14:14:0710:00:00</published>
        <updated>2012-04-25T11:45:13Z</updated>
        <content type="html">&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;I’ve noticed multiple messages from SQL Server in EventLog on my machine&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors. [CLIENT: 10.222.25.129]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;I’ve found that there are machines of my co-workers, but they were not sure, which processes tried to access my SQL server.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;I’ve tried a few things and finally in SQL Server Configuration Manager disabled tcp, as it was suggested in&lt;/span&gt;&lt;br /&gt;&lt;a href="http://blogs.msdn.com/b/psssql/archive/2010/03/09/what-spn-do-i-use-and-how-does-it-get-there.aspx"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://blogs.msdn.com/b/psssql/archive/2010/03/09/what-spn-do-i-use-and-how-does-it-get-there.aspx&lt;/span&gt;&lt;/a&gt;&lt;img src="http://geekswithblogs.net/mnf/aggbug/149318.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/mnf/comments/149318.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/mnf/comments/commentRss/149318.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/mnf/services/trackbacks/149318.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Specify Linq To SQL  ConnectionString explicitly</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/mnf/archive/2012/04/14/specify-linq-to-sql--connectionstring-explicitly.aspx" />
        <id>http://geekswithblogs.net/mnf/archive/2012/04/14/specify-linq-to-sql--connectionstring-explicitly.aspx</id>
        <published>2012-04-14T13:44:2110:00:00</published>
        <updated>2012-04-14T13:44:21Z</updated>
        <content type="html">&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;When modifying Linq to  Sql data model in Visual Studio 2010,  it re-assigns ConnectionString that is available on developer’s machine. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Because the name can be different on different machines, Designer often replace it with something like ConnectionString1, which causes errors during deployment.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;It requires developers to ensure that ConnectionString stays unchanged.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;More reliable way is to use context constructor with explicit ConnectionString name instead of parameterless default constructor&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;GOOD:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;  &lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(0, 255, 0);"&gt;var ctx = new MyModelDataContext(Settings.Default.ConnectionString);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Not good:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; &lt;/span&gt;&lt;span style="color: rgb(31, 73, 125); font-family: Calibri; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;        &lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;var ctx = new &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;MyModelDataContext&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); font-family: Calibri; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;();&lt;/span&gt;&lt;img src="http://geekswithblogs.net/mnf/aggbug/149317.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/mnf/comments/149317.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/mnf/comments/commentRss/149317.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/mnf/services/trackbacks/149317.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Do not expose enum in WCF response </title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/mnf/archive/2012/04/14/do-not-expose-enum-in-wcf-response.aspx" />
        <id>http://geekswithblogs.net/mnf/archive/2012/04/14/do-not-expose-enum-in-wcf-response.aspx</id>
        <published>2012-04-14T12:18:0610:00:00</published>
        <updated>2012-04-14T12:18:06Z</updated>
        <content type="html">&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;We had a backward compatibility problem in WCF client, when in Service application a new value was added to one of enums. We discussed different ways to avoid this backward compatibility issues, and I found recommendation do not expose enum in wcf response in &lt;/span&gt;&lt;a href="http://stackoverflow.com/a/788281/52277."&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://stackoverflow.com/a/788281/52277.&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;It is still required to create new versions of our service interfaces to replace each enum fields with string field, that expects only documented values, and describe, what should be default behavior, if field has an unexpected value.&lt;/span&gt;&lt;img src="http://geekswithblogs.net/mnf/aggbug/149315.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/mnf/comments/149315.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/mnf/comments/commentRss/149315.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/mnf/services/trackbacks/149315.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Visual Studio 10 crashed when tried to open  one of solutions</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/mnf/archive/2012/04/14/visual-studio-10-crashed-when-tried-to-open--one.aspx" />
        <id>http://geekswithblogs.net/mnf/archive/2012/04/14/visual-studio-10-crashed-when-tried-to-open--one.aspx</id>
        <published>2012-04-14T10:49:0610:00:00</published>
        <updated>2012-04-14T10:49:06Z</updated>
        <content type="html">&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Visual Studio 10 crashed when I tried to open  one of my solutions. Closing Visual Studio and rebooting the machine didn’t help.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;The error message that was logged(see below), didn’t give any useful ideas.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Finally It was fixed after I’ve &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(0, 255, 0);"&gt;deleted &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;MySolution.&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(0, 255, 0);"&gt;suo&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; file, which was quite big, and also Resharper folders.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Log Name:      Application&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Source:        Application Error&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Event ID:      1000&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Task Category: (100)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Level:         Error&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Keywords:      Classic&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;User:          N/A&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Description:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Faulting application name: devenv.exe, version: 10.0.40219.1, time stamp: 0x4d5f2a73&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Faulting module name: msenv.dll, version: 10.0.40219.1, time stamp: 0x4d5f2d48&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Exception code: 0xc0000005&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Fault offset: 0x00355770&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Faulting process id: 0x1dc0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Faulting application start time: 0x01cd1836888599f4&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Faulting module path: c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\msenv.dll&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Report Id: 9924b2f9-844e-11e1-bc19-782bcba513ea&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Event Xml:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&amp;lt;Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;  &amp;lt;System&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Provider Name="Application Error" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;EventID Qualifiers="0"&amp;gt;1000&amp;lt;/EventID&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Level&amp;gt;2&amp;lt;/Level&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Task&amp;gt;100&amp;lt;/Task&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Keywords&amp;gt;0x80000000000000&amp;lt;/Keywords&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;TimeCreated SystemTime="2012-04-12T03:21:31.000000000Z" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;EventRecordID&amp;gt;401998&amp;lt;/EventRecordID&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Channel&amp;gt;Application&amp;lt;/Channel&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Security /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;  &amp;lt;/System&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;  &amp;lt;EventData&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Data&amp;gt;devenv.exe&amp;lt;/Data&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Data&amp;gt;10.0.40219.1&amp;lt;/Data&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Data&amp;gt;4d5f2a73&amp;lt;/Data&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Data&amp;gt;msenv.dll&amp;lt;/Data&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Data&amp;gt;10.0.40219.1&amp;lt;/Data&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Data&amp;gt;4d5f2d48&amp;lt;/Data&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Data&amp;gt;c0000005&amp;lt;/Data&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Data&amp;gt;00355770&amp;lt;/Data&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Data&amp;gt;1dc0&amp;lt;/Data&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Data&amp;gt;01cd1836888599f4&amp;lt;/Data&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Data&amp;gt;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe&amp;lt;/Data&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Data&amp;gt;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\msenv.dll&amp;lt;/Data&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;    &amp;lt;Data&amp;gt;9924b2f9-844e-11e1-bc19-782bcba513ea&amp;lt;/Data&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;  &amp;lt;/EventData&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&amp;lt;/Event&amp;gt;v&lt;/span&gt;&lt;img src="http://geekswithblogs.net/mnf/aggbug/149314.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/mnf/comments/149314.aspx</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/mnf/comments/commentRss/149314.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/mnf/services/trackbacks/149314.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Translate jQuery UI Datepicker format to .Net Date format</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/mnf/archive/2012/04/14/translate-jquery-ui-datepicker-format-to-.net-date-format.aspx" />
        <id>http://geekswithblogs.net/mnf/archive/2012/04/14/translate-jquery-ui-datepicker-format-to-.net-date-format.aspx</id>
        <published>2012-04-14T10:40:5110:00:00</published>
        <updated>2012-04-14T14:19:43Z</updated>
        <content type="html">&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;I needed to use the same date format in client jQuery UI Datepicker and server ASP.NET code. The actual format can be different for different localization cultures.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;I decided to translate &lt;/span&gt;&lt;a href="http://docs.jquery.com/UI/Datepicker/$.datepicker.formatDate"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Datepicker format&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; to &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;.Net Date format&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; similar as it was asked to do opposite operation in &lt;/span&gt;&lt;a href="http://stackoverflow.com/questions/8531247/jquery-datepickers-dateformat-how-to-integrate-with-net-current-culture-date"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://stackoverflow.com/questions/8531247/jquery-datepickers-dateformat-how-to-integrate-with-net-current-culture-date&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Note that replace command need to replace whole words and order of calls is important&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Function that does opposite operation (translate  &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;.Net Date format&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; to&lt;/span&gt;&lt;a href="http://docs.jquery.com/UI/Datepicker/$.datepicker.formatDate"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Datepicker format&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;) is described in &lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/Articles/62031/JQueryUI-Datepicker-in-ASP-NET-MVC"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;http://www.codeproject.com/Articles/62031/JQueryUI-Datepicker-in-ASP-NET-MVC&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;/// &amp;lt;summary&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// Uses regex '\b' as suggested in //http://stackoverflow.com/questions/6143642/way-to-have-string-replace-only-hit-whole-words&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;/summary&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;param name="original"&amp;gt;&amp;lt;/param&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;param name="wordToFind"&amp;gt;&amp;lt;/param&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;param name="replacement"&amp;gt;&amp;lt;/param&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;param name="regexOptions"&amp;gt;&amp;lt;/param&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;static public string ReplaceWholeWord(this string original, string wordToFind, string replacement, &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;RegexOptions&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt; regexOptions = &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;RegexOptions&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;.None)&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;{&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;string&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;pattern = &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;String&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;.Format(&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;@"\b&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;{0}&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;\b"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;, wordToFind);&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;string ret=&lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Regex&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;.Replace(original, pattern, replacement, r&lt;/span&gt;&lt;span style="color: rgb(43, 145, 175); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;egexOptions&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;);&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;return ret;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;summary&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// E.g "DD, d MM, yy" to ,"dddd, d MMMM, yyyy"&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;/summary&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;param name="datePickerFormat"&amp;gt;&amp;lt;/param&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;remarks&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// Idea to replace from http://stackoverflow.com/questions/8531247/jquery-datepickers-dateformat-how-to-integrate-with-net-current-culture-date&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;///From http://docs.jquery.com/UI/Datepicker/$.datepicker.formatDate to http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;///Format a date into a string value with a specified format.&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;///d - day of month (no leading zero)&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;---.Net the same&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;///dd - day of month (two digit)&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;---.Net the same&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;///D - day name short&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;---.Net "ddd"&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;///DD - day name long&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;---.Net "dddd"&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;///m - month of year (no leading zero)&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;---.Net "M"&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;///mm - month of year (two digit)&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;---.Net "MM"&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;///M - month name short&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;---.Net "MMM"&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;///MM - month name long&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;---.Net "MMMM"&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;///y - year (two digit)&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;---.Net "yy"&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;///yy - year (four digit)&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;---.Net "yyyy"&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;/// &amp;lt;/remarks&amp;gt;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;public static string JQueryDatePickerFormatToDotNetDateFormat(string datePickerFormat)&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;{&lt;br class="kix-line-break" /&gt; &lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;string sRet = datePickerFormat.ReplaceWholeWord(&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"DD"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;, &lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"dddd"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;).ReplaceWholeWord(&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"D"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;, &lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"ddd"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;);&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;sRet = sRet.ReplaceWholeWord(&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"M"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;, &lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"MMM"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;).ReplaceWholeWord(&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"MM"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;, &lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"MMMM"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;).ReplaceWholeWord(&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"m"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;, &lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"M"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;).ReplaceWholeWord(&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"mm"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;, &lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"MM"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;);//order is important&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;sRet = sRet.ReplaceWholeWord(&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"yy"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;, &lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"yyyy"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;).ReplaceWholeWord(&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"y"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;, &lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;"yy"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;);//order is important&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;return sRet;&lt;br class="kix-line-break" /&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&lt;span style="white-space: pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;img src="http://geekswithblogs.net/mnf/aggbug/149313.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/mnf/comments/149313.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/mnf/comments/commentRss/149313.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/mnf/services/trackbacks/149313.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Copy to local drive before running installations</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/mnf/archive/2012/03/13/copy-to-local-drive-before-running-installations.aspx" />
        <id>http://geekswithblogs.net/mnf/archive/2012/03/13/copy-to-local-drive-before-running-installations.aspx</id>
        <published>2012-03-13T22:03:5111:00:00</published>
        <updated>2012-03-13T22:03:51Z</updated>
        <content type="html">&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;I've downloaded Windows Identity Foundation from http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=17331,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;but when I  was trying to install, it returned &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;---------------------------&lt;/span&gt;&lt;br /&gt;&lt;font color="#ff0000"&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Windows Update Standalone Installer&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;---------------------------&lt;/span&gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Installer encountered an error: 0x80070003&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;The system cannot find the path specified.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;/font&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;---------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;I’ve tried a few other similar downloads, and all had the same error,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Finally I’ve realized, that they don’t want to run from shared drive.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;After I’ve copied to local drive  Windows6.1-KB974405-x64.msu, I was able to install it.&lt;/span&gt;&lt;img src="http://geekswithblogs.net/mnf/aggbug/148979.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/mnf/comments/148979.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/mnf/comments/commentRss/148979.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/mnf/services/trackbacks/148979.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Extract substrings starting with known text from long lines</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/mnf/archive/2012/03/11/extract-substrings-starting-with-known-text-from-long-lines.aspx" />
        <id>http://geekswithblogs.net/mnf/archive/2012/03/11/extract-substrings-starting-with-known-text-from-long-lines.aspx</id>
        <published>2012-03-11T13:59:2611:00:00</published>
        <updated>2012-03-11T13:59:26Z</updated>
        <content type="html">&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;I’ve received a .csv report from TripWire logs, where each entry is a long text strings.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;I needed to extract some substring from each row, e.g “ErrorCode: ABC1234” where preceding text is constant, but actual error code could be different. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;In TSQL I can do someting similar using &lt;/span&gt;&lt;a href="http://ask.sqlservercentral.com/questions/34865/patindex-and-substring.htm"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;patIndex and substring&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;, e.g.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;select text,substring(TEXT,PATINDEX ('%&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;ErrorCode:&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;%',TEXT),10)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;In C# I can do it using &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: &amp;quot;Courier New&amp;quot;; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;RightAfter and &lt;/span&gt;&lt;a href="http://geekswithblogs.net/mnf/archive/2008/06/02/helper-string-function-to-trimlength.aspx"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: &amp;quot;Courier New&amp;quot;; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;TrimLength &lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: &amp;quot;Courier New&amp;quot;; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;from &lt;/span&gt;&lt;a href="http://geekswithblogs.net/mnf/articles/84942.aspx"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: &amp;quot;Courier New&amp;quot;; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;My StringHelper&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;&lt;br class="kix-line-break" /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: &amp;quot;Courier New&amp;quot;; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;RightAfter(Text,&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;”ErrorCode:”).&lt;/span&gt;&lt;a href="http://geekswithblogs.net/mnf/archive/2008/06/02/helper-string-function-to-trimlength.aspx"&gt;&lt;span style="color: rgb(17, 85, 204); font-family: &amp;quot;Courier New&amp;quot;; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;TrimLength(10) &lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: &amp;quot;Courier New&amp;quot;; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;But I was able to do it In Visual Studio Editor using replace and tick ‘Use regular expressions”&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Consolas; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 255);"&gt;Find what &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 0);"&gt;^.*ErrorCode:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;replace with&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 0);"&gt;ErrorCode:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(255, 255, 0);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;I would appreciate suggestions to do similar extracts using other tools. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"&gt;Related post &lt;/span&gt;&lt;a href="http://geekswithblogs.net/mnf/archive/2008/03/05/create-multi-row-gridview-header-with-buttons-in-header.aspx"&gt;&lt;span style="color: rgb(51, 51, 51); font-family: &amp;quot;Trebuchet MS&amp;quot;; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(213, 222, 237);"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;h4 style="margin-top: 0pt; margin-right: 198pt; margin-bottom: 0pt;" dir="ltr"&gt;&lt;a href="http://geekswithblogs.net/mnf/archive/2008/03/04/remove-empty-lines-in--text-using-visual-studio.aspx"&gt;&lt;span style="color: rgb(163, 0, 0); font-family: &amp;quot;Trebuchet MS&amp;quot;; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: rgb(213, 222, 237);"&gt;Remove empty lines in text using Visual Studio.&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;&lt;img src="http://geekswithblogs.net/mnf/aggbug/148957.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/mnf/comments/148957.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/mnf/comments/commentRss/148957.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/mnf/services/trackbacks/148957.aspx</trackback:ping>
    </entry>
</feed>
