<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8309267614890632418</id><updated>2011-11-27T16:38:30.891-08:00</updated><category term='Windows XP'/><category term='Virtual PC'/><category term='document properties'/><category term='javascript'/><category term='Using'/><category term='flow chart'/><category term='fully qualified name'/><category term='SHA1'/><category term='relocate'/><category term='converter'/><category term='IE History Cache'/><category term='url rewrite'/><category term='FindNextUrlCacheEntry'/><category term='Comments'/><category term='&quot;Access to the path&quot;'/><category term='Date GMT'/><category term='Multiple'/><category term='Windows'/><category term='localhost'/><category term='ASP.NET'/><category term='ROWSET'/><category term='SSMS'/><category term='c#'/><category term='string'/><category term='ip loop back address'/><category term='IE view source'/><category term='toLocaleString'/><category term='base virtual disk'/><category term='atoi'/><category term='hostname'/><category term='DNS Failed'/><category term='itoa'/><category term='isNaN'/><category term='differencing disk'/><category term='Access Denied'/><category term='Issue Details Screen'/><category term='Linked Server'/><category term='SharpForge'/><category term='SyntaxHighlighter'/><category term='MD5'/><category term='integer'/><category term='&quot;No relevant source lines&quot;'/><category term='pptx'/><category term='OPENROWSET'/><category term='Convert DateTime TryParse DataRow Exception'/><category term='web.config'/><category term='Tools Pack'/><category term='powerpoint'/><category term='isDate'/><category term='Expand'/><category term='enum'/><category term='Date parse'/><category term='isNumber'/><category term='JIRA'/><category term='char'/><category term='stored procedure'/><category term='number'/><category term='age in months'/><category term='convert'/><category term='parse'/><category term='IE8 Developer Tools'/><category term='window properties'/><category term='URL'/><category term='visio'/><category term='AJAX 3.5'/><category term='IIS'/><category term='viewer'/><category term='TSQL'/><category term='loop limit'/><category term='tuckey'/><category term='Combine'/><category term='FindFirstUrlCacheEntry'/><category term='RightAlt'/><category term='DateTime'/><category term='find duplicates'/><category term='flow diagram'/><category term='office open xml'/><category term='inline functions'/><category term='IE'/><category term='Parse Error'/><category term='Internet Explorer'/><category term='screenshot'/><category term='Distributed Query'/><category term='Host key'/><category term='C# script'/><category term='dynamically generated html source'/><category term='AJAX 1.1'/><category term='Collapse'/><title type='text'>All about coding</title><subtitle type='html'>Here are my rantings about any code/tool/application that I come across, topics that I spent considerable amount of time learning, things that I have stumbled upon and found them to be interesting, and things that stomped me etc.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-7428819618501196181</id><published>2011-10-18T12:02:00.000-07:00</published><updated>2011-10-18T12:17:00.192-07:00</updated><title type='text'>Age of a given date in months v2.0</title><summary type='text'>I got to think about code in my previous blog post about calculating the age of a given date in months and thought about a little more elegant way to do it, here is my modified version:
//Calculate the approximate age in months for a given date
function getAgeInMonths(fromDateStr)
{
 var frDate = new Date(fromDateStr);
 var toDate = new Date();
 if (frDate &gt; toDate) {
  throw "Given date is in </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/7428819618501196181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=7428819618501196181' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/7428819618501196181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/7428819618501196181'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2011/10/age-of-given-date-in-months-v20.html' title='Age of a given date in months v2.0'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-1113302533857599939</id><published>2011-10-17T19:08:00.001-07:00</published><updated>2011-10-17T19:44:41.785-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='age in months'/><title type='text'>Age of a given date in months</title><summary type='text'>Have you ever tried to calculate the age of a given date in months using Javascript? Well, a co-worker looking for a way to do that.  It does not have to use the date (day of the month), but just a rough calculation of age in months.
Here is what I have come up with: //Calculate the approximate age in months for a given date
function getAgeInMonths(fromDateStr)
{
   var frDate = new Date(</summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/1113302533857599939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=1113302533857599939' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/1113302533857599939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/1113302533857599939'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2011/10/age-of-given-date-in-months.html' title='Age of a given date in months'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-5820922061125902676</id><published>2011-09-19T14:50:00.000-07:00</published><updated>2011-09-19T14:58:26.491-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSMS'/><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='find duplicates'/><category scheme='http://www.blogger.com/atom/ns#' term='Tools Pack'/><title type='text'>Find duplicates in a table - SSMS Tools to the rescue</title><summary type='text'> The other day one of my co-workers was asking if there is a quick way to insert a SQL query to find duplicates in a given column in Microsoft SQL Server Management Studio (SSMS) similar to how you can insert SQL scripts, i.e. “Select Top 1000 Rows”, “Edit top 200 Rows” etc., when you right-click on a table name.You could sort of do this using Template Explorer feature in SSMS, but it is not very</summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/5820922061125902676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=5820922061125902676' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/5820922061125902676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/5820922061125902676'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2011/09/find-duplicates-in-table-ssms-tools-to.html' title='Find duplicates in a table - SSMS Tools to the rescue'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-95585269934720635</id><published>2011-09-15T22:09:00.000-07:00</published><updated>2011-09-15T22:09:48.261-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='url rewrite'/><category scheme='http://www.blogger.com/atom/ns#' term='tuckey'/><category scheme='http://www.blogger.com/atom/ns#' term='JIRA'/><category scheme='http://www.blogger.com/atom/ns#' term='fully qualified name'/><title type='text'>Fully Qualified URL to refer to JIRA instance</title><summary type='text'> We have our JIRA instance running on a server, for example, JIRA_SERVER01. Users can get to that server by using URL http://JIRA_SERVER01/.  We also created a CNAME to that server called JIRA so users can use a friendly name such as http://JIRA/ or fully qualified name, for example, http://JIRA.OurCompany.com/.All of these URLs work fine, however, we want all of those URLs to automatically </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/95585269934720635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=95585269934720635' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/95585269934720635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/95585269934720635'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2011/09/fully-qualified-url-to-refer-to-jira.html' title='Fully Qualified URL to refer to JIRA instance'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-6704132977766389622</id><published>2011-09-10T23:13:00.001-07:00</published><updated>2011-09-14T16:05:58.806-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Multiple'/><category scheme='http://www.blogger.com/atom/ns#' term='Combine'/><category scheme='http://www.blogger.com/atom/ns#' term='Using'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Combining Multiple C# Using Statements</title><summary type='text'>I sometimes find myself having to write the following code where I need to use multiple Using statements and end up nesting them.using (StreamReader reader = new StreamReader("FileToProcess.txt";))
{
    using (StreamWriter results = new StreamWriter("Results.txt"))
    {
        using (StreamWriter errors = new StreamWriter("Errors.txt"))
        {
            // Read/Write from/to the files as </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/6704132977766389622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=6704132977766389622' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/6704132977766389622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/6704132977766389622'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2011/09/combining-multiple-c-using-statements.html' title='Combining Multiple C# Using Statements'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-84326996146339580</id><published>2011-09-09T16:57:00.001-07:00</published><updated>2011-09-13T21:04:08.435-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Comments'/><category scheme='http://www.blogger.com/atom/ns#' term='Issue Details Screen'/><category scheme='http://www.blogger.com/atom/ns#' term='Expand'/><category scheme='http://www.blogger.com/atom/ns#' term='JIRA'/><category scheme='http://www.blogger.com/atom/ns#' term='Collapse'/><title type='text'>Collapse/Expand All Comments in JIRA Issue Details Screen</title><summary type='text'>In JIRA, when you are looking at an issue, it often shows all the comments expanded. This would be OK if there are only a couple of comments and they are compact, but often comments are added to JIRA via emails and each email contains the whole thread and thus it makes very hard to read/browse through the comments as they all seem to run together with same text repeated in successive comments. </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/84326996146339580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=84326996146339580' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/84326996146339580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/84326996146339580'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2011/09/collapseexpand-all-comments-in-jira.html' title='Collapse/Expand All Comments in JIRA Issue Details Screen'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-1214631676012912004</id><published>2011-09-08T14:27:00.001-07:00</published><updated>2011-09-13T21:03:35.646-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SHA1'/><category scheme='http://www.blogger.com/atom/ns#' term='MD5'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>Check MD5 or SHA1 hashes in Windows</title><summary type='text'>If you ever download stuff off of web, you should use some sort of checksum tool.  I believe in most Unix/Linux flavors of Operating Systems, come with a checksum tool, but no such luck in Windows. Have you every wished every edition of Windows came with checksum tool?  Well, almost.  As far as know, most of the Windows versions do not come with this tool, however, Microsoft does provide one.  In</summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/1214631676012912004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=1214631676012912004' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/1214631676012912004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/1214631676012912004'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2011/09/check-md5-or-sha1-hashes-in-windows.html' title='Check MD5 or SHA1 hashes in Windows'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-5027219658021058659</id><published>2011-03-21T01:21:00.000-07:00</published><updated>2011-04-26T22:11:31.047-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='inline functions'/><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='stored procedure'/><title type='text'>Can’t Use Inline Function Calls While Calling a Stored Procedure</title><summary type='text'>I can’t believe it has been more than 18months since I have written a blog. Today, I was trying to call a stored procedure in SQL Server 2008 and keep getting Incorrect syntax error.For example, let’s say, I have a following stored procedure on the asp.net membership provider that returns active users since a given date: CREATE PROCEDURE _GetActiveUserSinceDate      @SinceDate DATETIMEASBEGIN</summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/5027219658021058659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=5027219658021058659' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/5027219658021058659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/5027219658021058659'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2011/03/cant-use-inline-function-calls-while.html' title='Can’t Use Inline Function Calls While Calling a Stored Procedure'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-7853201209253231033</id><published>2009-08-11T16:58:00.001-07:00</published><updated>2009-08-11T17:15:55.305-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Date GMT'/><category scheme='http://www.blogger.com/atom/ns#' term='toLocaleString'/><category scheme='http://www.blogger.com/atom/ns#' term='IE8 Developer Tools'/><title type='text'>24 Hours of Nonstop SQL Server Training</title><summary type='text'>Get ready for brain overload, 24 hours of nonstop SQL Server training by experts all around the world!  And best of all it is FREE and you don't have to go anywhere to get this training.  Here is the link to this training http://24hours.sqlpass.org.Anyway the reason for my post is not to propagate about this event, though it is not a bad idea, but to share a little javascript.  When I went to </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/7853201209253231033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=7853201209253231033' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/7853201209253231033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/7853201209253231033'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2009/08/24-hours-of-nonstop-sql-server-training.html' title='24 Hours of Nonstop SQL Server Training'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_7uKRcjzcx_o/SoIIN6P4pVI/AAAAAAAADeA/BQsTsmCoLks/s72-c/StartTimesInGMT.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-6712777357855089348</id><published>2009-04-16T11:39:00.000-07:00</published><updated>2009-04-16T12:27:36.215-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='loop limit'/><category scheme='http://www.blogger.com/atom/ns#' term='flow chart'/><category scheme='http://www.blogger.com/atom/ns#' term='flow diagram'/><category scheme='http://www.blogger.com/atom/ns#' term='visio'/><title type='text'>Visio Flow Diagram "Loop Limit" example/sample</title><summary type='text'>I was looking for an example of how the "Loop Limit" shape can be used in a Flow Diagram and could not find any diagrams either in Microsoft documentation or on their website that show the sample usage of this shape.  Most of the pages on the web are also not helpful either.  Most web pages are either people asking about how to use this shape or a couple of blogs that basically rehash Visio </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/6712777357855089348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=6712777357855089348' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/6712777357855089348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/6712777357855089348'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2009/04/visio-flow-diagram-loop-limit.html' title='Visio Flow Diagram &quot;Loop Limit&quot; example/sample'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_7uKRcjzcx_o/SeeDw_IQpHI/AAAAAAAADd4/UxhnXElQdF8/s72-c/LoopLimitExample.png' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-6152752259721192992</id><published>2009-01-16T14:50:00.000-08:00</published><updated>2011-04-26T23:57:03.147-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='number'/><category scheme='http://www.blogger.com/atom/ns#' term='isNumber'/><category scheme='http://www.blogger.com/atom/ns#' term='isNaN'/><title type='text'>Checks if a given value is Number or not in Javascript</title><summary type='text'>

// The argument could be any of the following:
// a) A number itself
// b) Number in quotes, i.e. number stored as string
// c) Number could be in scientific format
// d) An object

function isNumber(val)
{
  // we need to explicitly handle null values
  // because isNaN returns false when it should return true 
  if (null == val) return false;
 

  // if it is an empty string or a string with </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/6152752259721192992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=6152752259721192992' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/6152752259721192992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/6152752259721192992'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2009/01/checks-if-given-value-is-number-or-not.html' title='Checks if a given value is Number or not in Javascript'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-59867918434101617</id><published>2008-11-21T17:25:00.000-08:00</published><updated>2008-11-21T17:43:32.821-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Parse Error'/><category scheme='http://www.blogger.com/atom/ns#' term='&quot;No relevant source lines&quot;'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='&quot;Access to the path&quot;'/><title type='text'>Parser Error Message: Access to the path ... (ASP.NET)</title><summary type='text'>I have been working on an ASP.NET page and all of a sudden, I was getting Parse Error on this page as shown below:All I did was modify the code in the page and plus I could build the page in Visual Studio 2008 with out any errors.  I could also build the entire web site with out any errors, but I was still getting the error.I compared the file with the previous version and I do not see any </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/59867918434101617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=59867918434101617' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/59867918434101617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/59867918434101617'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2008/11/parser-error-message-access-to-path.html' title='Parser Error Message: Access to the path ... (ASP.NET)'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_7uKRcjzcx_o/SSdf-NjDHrI/AAAAAAAACIg/nl2kBCldP70/s72-c/ParseError_NoRelevantSourceLines.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-9089590057808982653</id><published>2008-11-01T17:21:00.000-07:00</published><updated>2008-11-26T11:50:43.248-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web.config'/><category scheme='http://www.blogger.com/atom/ns#' term='AJAX 1.1'/><category scheme='http://www.blogger.com/atom/ns#' term='AJAX 3.5'/><category scheme='http://www.blogger.com/atom/ns#' term='SharpForge'/><title type='text'>Using AJAX 3.5 toolkit with latest version of SharpForge 0.5.14b</title><summary type='text'>I just installed the SharpForge version 0.5.14b on my system that has .NET Framework 3.5 and Visual Studio 2008  + Visual Studio SP1.  That is, I have AJAX toolkit version 3.5 running and when I browse to the SharpForge web page, I am getting the following error from web.config:I tried changing the version # for System.Web.Extensions to 3.5.0.0 everywhere it is referenced in the web.config but I </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/9089590057808982653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=9089590057808982653' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/9089590057808982653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/9089590057808982653'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2008/11/using-ajax-35-toolkit-with-latest.html' title='Using AJAX 3.5 toolkit with latest version of SharpForge 0.5.14b'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_7uKRcjzcx_o/SQzzD1-x29I/AAAAAAAACIY/FQR4LKb65KY/s72-c/SharpForgeInstallBlog1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-440254600231012824</id><published>2008-05-14T23:42:00.000-07:00</published><updated>2011-04-27T23:31:31.608-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Date parse'/><category scheme='http://www.blogger.com/atom/ns#' term='SyntaxHighlighter'/><category scheme='http://www.blogger.com/atom/ns#' term='isDate'/><title type='text'>Check/Validate a date string in Javascript</title><summary type='text'>
I was looking for a simple Javascript function to check or validate a date string and most of the examples I have come across are too verbose. So I came up with a simple function that uses Regular Expressions and the built-in Date class.//Checks if a given date string is in 
// one of the valid formats:
// a) M/D/YYYY format
// b) M-D-YYYY format
// c) M.D.YYYY format
// d) M_D_YYYY format
</summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/440254600231012824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=440254600231012824' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/440254600231012824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/440254600231012824'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2008/05/checkvalidate-date-string-in-javascript.html' title='Check/Validate a date string in Javascript'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-155150343972359522</id><published>2008-05-14T10:38:00.000-07:00</published><updated>2008-05-14T10:57:28.943-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='window properties'/><category scheme='http://www.blogger.com/atom/ns#' term='IE'/><category scheme='http://www.blogger.com/atom/ns#' term='document properties'/><title type='text'>Quickly see Document and Window properties using Javascript</title><summary type='text'>In my last post View dynamically generated HTML, I talked about how you can add a button to your Links toolbar in IE and link it to a snippet of Javascript code.Here are a couple of snippets that I use to examine the current document properties and window properties.  I have added them as "Show Doc Props" and "Show Win Props" buttons to my IE Links toolbar and they come very handy while debugging</summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/155150343972359522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=155150343972359522' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/155150343972359522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/155150343972359522'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2008/05/quickly-see-document-and-window.html' title='Quickly see Document and Window properties using Javascript'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-2592304855461644054</id><published>2008-05-12T22:27:00.000-07:00</published><updated>2008-05-13T08:19:59.715-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IE view source'/><category scheme='http://www.blogger.com/atom/ns#' term='dynamically generated html source'/><title type='text'>View dynamically generated HTML in IE</title><summary type='text'>Have you ever wanted to see the dynamically generated HTML of a page?  If you use AJAX or lot of Javascript, I am sure you have added HTML content to your page on the fly and you wanted to see the active HTML source of that page, since IE only shows the original HTML source.Perhaps you already know about how to do this, but, I often use this little Javascript code snippet to see the active </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/2592304855461644054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=2592304855461644054' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/2592304855461644054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/2592304855461644054'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2008/05/view-dynamically-generated-html-in-ie.html' title='View dynamically generated HTML in IE'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-5735258106851323525</id><published>2008-05-09T13:49:00.000-07:00</published><updated>2008-05-09T14:25:25.792-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='char'/><category scheme='http://www.blogger.com/atom/ns#' term='itoa'/><category scheme='http://www.blogger.com/atom/ns#' term='integer'/><category scheme='http://www.blogger.com/atom/ns#' term='atoi'/><category scheme='http://www.blogger.com/atom/ns#' term='convert'/><title type='text'>Convert an integer to an ascii character in Javascript #2</title><summary type='text'>In my previous post titled Convert an integer to an ascii character in Javascript, I said, I could not find any built-in methods in Javascript to convert a char into an integer and vice versa, well, it turns out that I have not looked hard enough.  There are two methods on (one static and one instance as expected) String class that would do this conversion and these method are available since </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/5735258106851323525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=5735258106851323525' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/5735258106851323525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/5735258106851323525'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2008/05/convert-integer-to-ascii-character-in_09.html' title='Convert an integer to an ascii character in Javascript #2'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-5456684708859781518</id><published>2008-05-07T16:15:00.000-07:00</published><updated>2008-05-09T14:44:17.949-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='char'/><category scheme='http://www.blogger.com/atom/ns#' term='itoa'/><category scheme='http://www.blogger.com/atom/ns#' term='integer'/><category scheme='http://www.blogger.com/atom/ns#' term='atoi'/><category scheme='http://www.blogger.com/atom/ns#' term='convert'/><title type='text'>Convert an integer to an ascii character in Javascript</title><summary type='text'>See my 2nd post for the revised code using built-in Javascript methods.I was looking for a function to convert an integer into an ascii character in Javascript and could not find one.  This is because Javascript does not support explicit character types, and to Javascript character is nothing but a string of length 1.  This is what I have come up with.  First, you define a string constant </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/5456684708859781518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=5456684708859781518' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/5456684708859781518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/5456684708859781518'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2008/05/convert-integer-to-ascii-character-in.html' title='Convert an integer to an ascii character in Javascript'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-7876377654982142603</id><published>2008-04-23T13:25:00.000-07:00</published><updated>2008-05-19T18:29:58.876-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FindFirstUrlCacheEntry'/><category scheme='http://www.blogger.com/atom/ns#' term='FindNextUrlCacheEntry'/><category scheme='http://www.blogger.com/atom/ns#' term='C# script'/><category scheme='http://www.blogger.com/atom/ns#' term='URL'/><category scheme='http://www.blogger.com/atom/ns#' term='IE History Cache'/><title type='text'>Extract URLs from Internet Explorer(IE) History cache</title><summary type='text'>The other day I was trying to extract bookmarks from my IE's history cache, but could not find any tools in IE to do that.  Looked around on Google and found a VB Project, which is fine, but I am looking for something using C#.  Then, I found this article on CodeProject titled The tiny wrapper class for URL history interface in C#, which would work, but I want a simple script that I can tweak and</summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/7876377654982142603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=7876377654982142603' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/7876377654982142603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/7876377654982142603'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2008/04/extract-urls-from-internet-explorerie.html' title='Extract URLs from Internet Explorer(IE) History cache'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-7549650063611178339</id><published>2008-04-15T15:11:00.000-07:00</published><updated>2008-12-10T13:03:14.632-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='base virtual disk'/><category scheme='http://www.blogger.com/atom/ns#' term='relocate'/><category scheme='http://www.blogger.com/atom/ns#' term='differencing disk'/><category scheme='http://www.blogger.com/atom/ns#' term='Virtual PC'/><title type='text'>Move VirtualPC Base &amp; Differencing Disks</title><summary type='text'>Have you ever wanted to move your Virtual PC base and differencing disks to a different locations or to a different system?  Well, I recently have. A  friend of mine sent me the following blog post (I highly recommend it if you are thinking about using virtual systems), which talks about how to setup virtual systems using differencing disks:Use VirtualPCs Differencing Disks To Your AdvantageAs </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/7549650063611178339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=7549650063611178339' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/7549650063611178339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/7549650063611178339'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2008/04/move-virtualpc-base-differencing-disks.html' title='Move VirtualPC Base &amp; Differencing Disks'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_7uKRcjzcx_o/SAaYtYZ4WUI/AAAAAAAACG0/IsUKgZBqUF0/s72-c/tree.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-2061860954869252505</id><published>2008-04-11T16:32:00.000-07:00</published><updated>2008-04-11T17:35:30.136-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RightAlt'/><category scheme='http://www.blogger.com/atom/ns#' term='Host key'/><category scheme='http://www.blogger.com/atom/ns#' term='Virtual PC'/><category scheme='http://www.blogger.com/atom/ns#' term='screenshot'/><title type='text'>Snapshot of active window in Virtual PC</title><summary type='text'>Lately, I have been doing most of my work using a Virtual PC and I often find myself having to take a snapshot of the active window (dialog box), especially to create all my blog entries.I know that Alt+Print Screen copies the snapshot of the active window to the clip board, but in Virtual PC environment RightAlt key acts as the Host key, so if you use the RightAlt key it would not work.  So make</summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/2061860954869252505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=2061860954869252505' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/2061860954869252505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/2061860954869252505'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2008/04/snapshot-of-active-window-in-virtual-pc.html' title='Snapshot of active window in Virtual PC'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-73290304364409915</id><published>2008-04-11T14:53:00.000-07:00</published><updated>2008-12-10T13:03:15.355-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DNS Failed'/><category scheme='http://www.blogger.com/atom/ns#' term='localhost'/><category scheme='http://www.blogger.com/atom/ns#' term='ip loop back address'/><category scheme='http://www.blogger.com/atom/ns#' term='hostname'/><category scheme='http://www.blogger.com/atom/ns#' term='Internet Explorer'/><category scheme='http://www.blogger.com/atom/ns#' term='IIS'/><category scheme='http://www.blogger.com/atom/ns#' term='Access Denied'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows XP'/><title type='text'>hostname works but localhost and local loop back address do not work in IE</title><summary type='text'>I recently ran into a strange issue and spent about a day troubleshooting this so I thought I share my findings here.I had a classic ASP webapp running on a virtual system and I could access it using http://localhost/webapp/ or http://127.0.0.1/webapp URLs.  No problem, until I made the following changes:Added the virtual system to our domain to be able to access some appsMoved the virtual system</summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/73290304364409915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=73290304364409915' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/73290304364409915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/73290304364409915'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2008/04/hostname-works-but-localhost-and-local.html' title='hostname works but localhost and local loop back address do not work in IE'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_7uKRcjzcx_o/R__jbYbeeNI/AAAAAAAACEs/EA8aw1vLddg/s72-c/DNSFail.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-3324200372512625210</id><published>2008-03-28T10:26:00.000-07:00</published><updated>2008-12-10T13:03:17.110-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='office open xml'/><category scheme='http://www.blogger.com/atom/ns#' term='powerpoint'/><category scheme='http://www.blogger.com/atom/ns#' term='converter'/><category scheme='http://www.blogger.com/atom/ns#' term='viewer'/><category scheme='http://www.blogger.com/atom/ns#' term='pptx'/><title type='text'>PowerPoint Viewer cannot open the file</title><summary type='text'>Here is my recent Saga trying to view Microsoft PowerPoint 2007 file saved in Office Open XML format, i.e. pptx.Prelude:I work in the Windows world like many others out there and believe in Microsoft products and technologies to most extent, but recent experience in trying to view a pptx file shaken that belief quite a bit.  I only have Office 2003 installed on my system and I received a pptx </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/3324200372512625210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=3324200372512625210' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/3324200372512625210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/3324200372512625210'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2008/03/powerpoint-viewer-cannot-open-file.html' title='PowerPoint Viewer cannot open the file'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_7uKRcjzcx_o/R-0tj04CAJI/AAAAAAAACEA/p-7IHkbUr5s/s72-c/ppViewerError.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-3259594132906548135</id><published>2007-12-16T22:40:00.000-08:00</published><updated>2008-12-10T13:03:17.905-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ROWSET'/><category scheme='http://www.blogger.com/atom/ns#' term='Distributed Query'/><category scheme='http://www.blogger.com/atom/ns#' term='Linked Server'/><category scheme='http://www.blogger.com/atom/ns#' term='OPENROWSET'/><title type='text'>OPENROWSET and not Text files but Excel files</title><summary type='text'>The other day, I was wondering if you can query against a database that is on a remote server without first having to create a linked server in SQL Server 2005. A co-worker told me that I could use OPENROWSET and then I read the following page on MSDN, which gives a very good overview of what it is and how to use it:OPENROWSET Help Page on MSDNMost of the SQL Experts out there already knows about</summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/3259594132906548135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=3259594132906548135' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/3259594132906548135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/3259594132906548135'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2007/12/openrowset-and-not-text-files-but-excel.html' title='OPENROWSET and not Text files but Excel files'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_7uKRcjzcx_o/R2Yagwi0t1I/AAAAAAAAB4c/xnsTj-gIttU/s72-c/CanadaCustomers.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-1133225488878493199</id><published>2007-09-26T23:10:00.000-07:00</published><updated>2007-09-26T23:27:11.383-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Convert DateTime TryParse DataRow Exception'/><title type='text'>Best Practices for Convert Class</title><summary type='text'>1) Considered the following usage:string userID = db.ExecuteScalar(dbCommand).ToString(); Better approach might be to use the Convert classstring userID = Convert.ToString(db.ExecuteScalar(dbCommand)); 2) Considered the following usage:if (dr["someColBool"] != null &amp;&amp; dr["someColBool"].ToString().Length &gt; 0 &amp;&amp; Convert.ToBoolean(dr["someColBool"]) == true) continue;Remove the unnecessary code and </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/1133225488878493199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=1133225488878493199' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/1133225488878493199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/1133225488878493199'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2007/09/best-practices-for-convert-class.html' title='Best Practices for Convert Class'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-8314889664862161366</id><published>2006-12-28T13:03:00.000-08:00</published><updated>2006-12-28T13:36:17.551-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='enum'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='string'/><category scheme='http://www.blogger.com/atom/ns#' term='convert'/><title type='text'>Error proof way to convert an enum value into a custom string in C#</title><summary type='text'>Here is a code snippet I ran into the other day:string strMsgType = "";switch (messageType){case MessageTypes.GeneralMessage:strMsgType = "0";break;case MessageTypes.TargetMessage1On1:strMsgType = "1";break;case MessageTypes.GroupMessage:strMsgType = "2";break;case MessageTypes.BroadcastMessage:strMsgType = "3";break;case MessageTypes.CallBackMessage:strMsgType = "4";break;case </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/8314889664862161366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=8314889664862161366' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/8314889664862161366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/8314889664862161366'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2006/12/error-proof-way-to-convert-enum-value.html' title='Error proof way to convert an enum value into a custom string in C#'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8309267614890632418.post-755428124948131017</id><published>2006-11-20T18:05:00.000-08:00</published><updated>2007-01-03T16:49:27.615-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DateTime'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='string'/><category scheme='http://www.blogger.com/atom/ns#' term='parse'/><title type='text'>Elegant way to parse a string into DateTime instance in C#</title><summary type='text'>I am reviewing some code and came across the following code:try{if (str.Trim() == "") return DateTime.Now;return (new DateTime(int.Parse(str.Substring(0, 4)), int.Parse(str.Substring(4, 2)), int.Parse(str.Substring(6, 2))));}catch{return DateTime.Now;}Obviously, an exception would be thrown if the string is not in the right format.So, I looked for a clean way to parse the string into a DateTime </summary><link rel='replies' type='application/atom+xml' href='http://omnicode.blogspot.com/feeds/755428124948131017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8309267614890632418&amp;postID=755428124948131017' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/755428124948131017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8309267614890632418/posts/default/755428124948131017'/><link rel='alternate' type='text/html' href='http://omnicode.blogspot.com/2006/11/efficient-way-to-parse-string-into.html' title='Elegant way to parse a string into DateTime instance in C#'/><author><name>Sonny Nallamilli</name><uri>http://www.blogger.com/profile/05843127584842369696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://3.bp.blogspot.com/-hXzGzpHyUAs/TbervSLY2wI/AAAAAAAADf0/UM9TsNw-neM/s220/sonnyForSB.JPG'/></author><thr:total>0</thr:total></entry></feed>
