<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;AkQGRH04fyp7ImA9WhRWGEU.&quot;"><id>tag:blogger.com,1999:blog-11160305</id><updated>2012-01-07T03:48:45.337+05:30</updated><category term="Vanilla Forum" /><category term="regex" /><category term="Idiotic Softwares" /><category term="Visual Studio" /><category term="gacbrowser" /><category term="iPhone" /><category term="How To" /><category term="Wi-Fi" /><category term="General" /><category term="SQL" /><category term="powershell" /><category term=".net 3.5" /><category term="TFS" /><category term=".net" /><category term="Wix" /><category term="Security" /><category term="Apple" /><category term="WPF" /><category term="nhibernate" /><category term="Installation" /><category term="Web" /><title>Solution</title><subtitle type="html">EOD Blog of a Programmer</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://rajputyh.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>70</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/blogspot/VdNL" /><feedburner:info uri="blogspot/vdnl" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>blogspot/VdNL</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><entry gd:etag="W/&quot;D0EDR3Y7fSp7ImA9WhRRF0g.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-3625001371666086309</id><published>2011-12-01T21:36:00.001+05:30</published><updated>2011-12-01T21:37:56.805+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-01T21:37:56.805+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Web" /><category scheme="http://www.blogger.com/atom/ns#" term="How To" /><title>Floating/Fixed Table Header in HTML Page or Inside DIV control</title><content type="html">&lt;p&gt;I’ve looked a lot for finding a solution were we can float a header of a table so that the header always appears on the top no matter how down do I scroll.    &lt;br /&gt;All the ‘floating table header’ solution ‘mostly’ worked were full HTML body is getting the scroll &lt;strong&gt;but none of them worked which can work inside scrolling div&lt;/strong&gt;. None! &lt;/p&gt;  &lt;p&gt;So I though I can create one. The concept was simple, get the ‘onScroll’ even of Div control and change CSS “top” property of table header to current scrolled position of Div.&amp;#160; &lt;br /&gt;Unfortunately, there are many browser issues. Like mozilla doesn’t like when table cells change their position. Chrome rendering issues shows two headers rows when scrolled up.&lt;/p&gt;  &lt;p&gt;At last, after storming through the problems, I arrived on this complex but simplified solution which is mentioned below. Copy the content in a blank HTML file and see the fun.&lt;/p&gt;  &lt;p&gt;&amp;lt;html&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;head&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;script src=&amp;quot;&lt;a href="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js&amp;quot;"&gt;http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js&amp;quot;&lt;/a&gt; type=&amp;quot;text/javascript&amp;quot; &amp;gt; &amp;lt;/script&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;script&amp;#160; type=&amp;quot;text/javascript&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; $(function() {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if($.browser.mozilla)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; //table row doean't float in firefox, div floats     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; $(&amp;quot;.floatingHeader&amp;quot; + &amp;quot; tr th div&amp;quot;)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; .addClass(&amp;quot;floatingStyle&amp;quot;);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; else     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; //table row can float in IE and Chrome     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; $(&amp;quot;.floatingHeader&amp;quot;+ &amp;quot; tr th&amp;quot;)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; .addClass(&amp;quot;floatingStyle&amp;quot;);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; });     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; function changeFloatingHeaderPosition(container, headerId) {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if($.browser.webkit) //chrome rendering bug fix     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; $(&amp;quot;#&amp;quot;+headerId + &amp;quot; tr th&amp;quot;)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; .css(&amp;quot;visibility&amp;quot;, &amp;quot;hidden&amp;quot;);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if($.browser.mozilla)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; $(&amp;quot;#&amp;quot;+headerId + &amp;quot; tr th div&amp;quot;)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; .css(&amp;quot;top&amp;quot;, container.scrollTop);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; else     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; $(&amp;quot;#&amp;quot;+headerId + &amp;quot; tr th&amp;quot;)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; .css(&amp;quot;top&amp;quot;, container.scrollTop);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if($.browser.webkit) //chrome rendering bug fix     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; $(&amp;quot;#&amp;quot;+headerId + &amp;quot; tr th&amp;quot;)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; .css(&amp;quot;visibility&amp;quot;, &amp;quot;visible&amp;quot;);     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/script&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;style&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; .floatingStyle     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; position:relative;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; background-color:#829DC0;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; top:0px;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/style&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/head&amp;gt;     &lt;br /&gt;&amp;lt;body&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;div &lt;strong&gt;class=&amp;quot;floatingContainer&amp;quot;      &lt;br /&gt;&lt;/strong&gt;&amp;#160;&amp;#160;&amp;#160; &lt;strong&gt;onscroll=&amp;quot;changeFloatingHeaderPosition(this, 'idHeader' );&amp;quot;&amp;#160; &lt;br /&gt;&lt;/strong&gt;&amp;#160;&amp;#160;&amp;#160; style=&amp;quot;height:150px; width: 100px;overflow:auto;&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;table cellspacing=0 cellpadding=0&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;thead class=&amp;quot;&lt;strong&gt;floatingHeader&lt;/strong&gt;&amp;quot; id=&amp;quot;idHeader&amp;quot;&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;tr&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;strong&gt;th&lt;/strong&gt;&amp;gt;&amp;lt;&lt;strong&gt;div&lt;/strong&gt;&amp;gt;Col1&lt;strong&gt;&amp;lt;/div&amp;gt;&amp;lt;/th&amp;gt;      &lt;br /&gt;&lt;/strong&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;th &amp;gt;&amp;lt;div&amp;gt;Col2&amp;lt;div&amp;gt;&amp;lt;/th&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;th &amp;gt;&amp;lt;div&amp;gt;Col3&amp;lt;div&amp;gt;&amp;lt;/th&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/tr&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/thead&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;tbody&amp;gt;     &lt;br /&gt;&lt;font color="#808080"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;first_row&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;first_row&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;first_row&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;data&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;       &lt;br /&gt;&lt;/font&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/tbody&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/table&amp;gt;     &lt;br /&gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;html&amp;gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-3625001371666086309?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PSvJQOP8j7aICiC8xBytY8lGPlU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PSvJQOP8j7aICiC8xBytY8lGPlU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PSvJQOP8j7aICiC8xBytY8lGPlU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PSvJQOP8j7aICiC8xBytY8lGPlU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/SQCazTt8aa8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/3625001371666086309/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=3625001371666086309&amp;isPopup=true" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/3625001371666086309?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/3625001371666086309?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/SQCazTt8aa8/floatingfixed-table-header-in-html-page.html" title="Floating/Fixed Table Header in HTML Page or Inside DIV control" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>5</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2011/12/floatingfixed-table-header-in-html-page.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYNSXs7eCp7ImA9WhRSE0s.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-2413918309054833728</id><published>2011-11-15T18:30:00.001+05:30</published><updated>2011-11-15T18:33:18.500+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-15T18:33:18.500+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="How To" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL" /><title>Find Missing Foreign Key References</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;If you database column naming convention says all foreign key columns must end with 'ID' then this is the query for you to find missing foreign key reference. E.g. PRIZE_ID means Foreign Key reference to PRIZE table. &lt;br /&gt;
&lt;pre class="brush:sql"&gt;SELECT 
    colT.TABLE_NAME , 
    colT.COLUMN_NAME 
FROM 
    INFORMATION_SCHEMA.COLUMNS AS colT 
WHERE 
    COLUMN_NAME LIKE '%id'
    AND 
    (colT.TABLE_NAME + colT.COLUMN_NAME) NOT IN
     ( SELECT 
          KOM.TABLE_NAME + KOM.COLUMN_NAME 
      FROM 
          INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE AS KOM)
&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-2413918309054833728?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ebLe3uuTQqcmut_1slwoJUIYGd0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ebLe3uuTQqcmut_1slwoJUIYGd0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ebLe3uuTQqcmut_1slwoJUIYGd0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ebLe3uuTQqcmut_1slwoJUIYGd0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/mv4OR2N1BNE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/2413918309054833728/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=2413918309054833728&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/2413918309054833728?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/2413918309054833728?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/mv4OR2N1BNE/if-you-database-column-naming.html" title="Find Missing Foreign Key References" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2011/11/if-you-database-column-naming.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkQCSXczfip7ImA9WhZbFUU.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-8340741370706753331</id><published>2011-06-20T21:08:00.001+05:30</published><updated>2011-06-20T21:09:28.986+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-20T21:09:28.986+05:30</app:edited><title>Amazon SimpleDB in Nutshell for those who know RDBMS Systems</title><content type="html">&lt;p&gt;&lt;font size="1"&gt;Note: Latest Available Amazon SimpleDB version as of today, i.e. when I am writing this, is in Beta status with API Version: “2009-04-15”&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3"&gt;&lt;u&gt;Overview of SimpleDB         &lt;br /&gt;&lt;/u&gt;&lt;/font&gt;&lt;/strong&gt;Amazon SimpleDB is a highly available, flexible, and scalable non-relational data store that offloads the work of database administration. Developers simply store and query data items via web services requests.[1] &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Representation of Data with SimpleDB:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Domains&lt;/strong&gt;— Domains are similar to tables that contain similar data. &lt;/p&gt;  &lt;p&gt;You can execute queries against a domain, but cannot execute queries across different domains. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Attributes&lt;/strong&gt;— They are similar to columns in RDBMS, attributes represent categories of data that can be assigned to items. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Items&lt;/strong&gt;— Represented by rows, items represent individual objects that contain one or more attribute name-value pairs. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Values&lt;/strong&gt;—Similar to column value, values represent instances of attributes for items. An attribute can have multiple values. There is no data typing supported for attribute and all data is treated as text data during query execution. &lt;/p&gt;  &lt;p&gt;However, Amazon SimpleDB is not a relational database, and does not offer some features needed in certain applications, e.g. complex transactions or joins (i.e. execute queries across different domains).[1] You need to rely on duplicating the data to avoid such scenarios.[2] &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3"&gt;&lt;u&gt;Benefits of using SimpleDB         &lt;br /&gt;&lt;/u&gt;&lt;/font&gt;      &lt;br /&gt;Highly Available      &lt;br /&gt;&lt;/strong&gt;Amazon SimpleDB creates and manages multiple geographically distributed replicas of your data automatically to enable high availability and data durability.    &lt;br /&gt;&lt;strong&gt;Flexible     &lt;br /&gt;&lt;/strong&gt;You can change your data model on the fly, and data is automatically indexed for you.     &lt;br /&gt;&lt;strong&gt;Scalability     &lt;br /&gt;&lt;/strong&gt;You can access additional machine resources by spreading your data set and requests across multiple domains. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3"&gt;&lt;u&gt;Support for Reporting&lt;/u&gt;&lt;/font&gt;&lt;/strong&gt;    &lt;br /&gt;Sql Server Reporting Service (SSRS) is a popular platform to build and access reports. SSRS reports are build based on dataset that has set for a report. It is possible to build dataset from SimpleDB.[3]&amp;#160; &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;font size="3"&gt;Limitation with SimpleDB &lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Domain&lt;/strong&gt; (similar to table): &lt;strong&gt;250&lt;/strong&gt; active domains per account. More can be requested by filling a form. Note that each attribute (similar to column) can hold multiple value.[4] &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Attribute&lt;/strong&gt; (similar to column) name-value pairs per item: &lt;strong&gt;256&lt;/strong&gt;[4] &lt;/p&gt;  &lt;p&gt;Maximum &lt;strong&gt;response size for Select&lt;/strong&gt;:&lt;strong&gt; 1 MB&lt;/strong&gt; (large data like images can be stored separately into cloud as files and an Attribute can store URL for the resource).[4] &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Maximum&lt;/strong&gt; &lt;strong&gt;items per select&lt;/strong&gt;: &lt;strong&gt;2500&lt;/strong&gt;[4] &lt;/p&gt;  &lt;p&gt;Attribute&lt;strong&gt; value length&lt;/strong&gt;: &lt;strong&gt;1024&lt;/strong&gt; bytes[4] &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;No datatyping:&lt;/strong&gt; &lt;strong&gt;text only&lt;/strong&gt;. Integers and reals must be represented using leading zeros to ensure proper query comparisons.[5] &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;font size="3"&gt;References: &lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;[1] Amazon SimpleDB (beta)    &lt;br /&gt;&lt;a href="http://aws.amazon.com/simpledb/"&gt;http://aws.amazon.com/simpledb/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;[2] How And Why Glue Is Using Amazon SimpleDB Instead Of A Relational Database   &lt;br /&gt;&lt;a href="http://blog.getglue.com/?p=1145"&gt;http://blog.getglue.com/?p=1145&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;[3] Accessing SimpleDB from SSRS   &lt;br /&gt;&lt;a href="http://www.chrisumbel.com/article/simpledb_ssrs.aspx"&gt;http://www.chrisumbel.com/article/simpledb_ssrs.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;[4] Amazon SimpleDB Limits, Amazon SimpleDB Developer Guide (API Latest version)   &lt;br /&gt;&lt;a href="http://docs.amazonwebservices.com/AmazonSimpleDB/latest/DeveloperGuide/"&gt;http://docs.amazonwebservices.com/AmazonSimpleDB/latest/DeveloperGuide/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;[5] M/DB - A Free Open Source &amp;quot;plug-compatible&amp;quot; alternative to Amazon's SimpleDB database   &lt;br /&gt;&lt;a href="http://gradvs1.mgateway.com/main/index.html?path=mdb"&gt;http://gradvs1.mgateway.com/main/index.html?path=mdb&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-8340741370706753331?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/EYt-KPy_ibcZGaP1jA7tB8WE-vY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EYt-KPy_ibcZGaP1jA7tB8WE-vY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/EYt-KPy_ibcZGaP1jA7tB8WE-vY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EYt-KPy_ibcZGaP1jA7tB8WE-vY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/1EH3-AUBirE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/8340741370706753331/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=8340741370706753331&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/8340741370706753331?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/8340741370706753331?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/1EH3-AUBirE/amazon-simpledb-in-nutshell-for-those.html" title="Amazon SimpleDB in Nutshell for those who know RDBMS Systems" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2011/06/amazon-simpledb-in-nutshell-for-those.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEIFQHY8cSp7ImA9WhZQFE0.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-3204382010018657563</id><published>2011-04-21T21:41:00.001+05:30</published><updated>2011-04-21T21:45:11.879+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-21T21:45:11.879+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="iPhone" /><category scheme="http://www.blogger.com/atom/ns#" term="Apple" /><title>How Apple's Location Services Work</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
Even though I like apples (specially the one which fell on Newton's head), I am not found of Apple as a corporation. Mainly because it is too secretive in its technologies and methods of doing something amazing.&amp;nbsp;Location Services are one of those secretive things which need to be so secret but you can figure-out how it works.&lt;br /&gt;
&lt;br /&gt;
Apple's Locations services uses (in order) A-GPS, Wi-Fi triangulation and&amp;nbsp;Cell Triangulation&amp;nbsp;(base on capability of your device).&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;Uses A-GPS&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Pros&lt;/b&gt;&lt;br /&gt;
When you are outdoors, works amazingly.&lt;br /&gt;
&lt;b&gt;Cons&lt;/b&gt;&lt;br /&gt;
&lt;div style="text-align: left;"&gt;Works poorly in urban environment with tall buildings. Even your vehicle roof is a problem for A-GPS. Doesn't work without GPS chip in device (case for iPod).&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;Uses&amp;nbsp;cellular tower&amp;nbsp;triangulation&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Pros&lt;/b&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Even with it's worst accuracy, sometimes it is more accurate than GPS in urban environment. This is because performance doesn't decrease in urban environments due to many towers triangulating in cities nowadays.&amp;nbsp;&lt;/div&gt;&lt;b&gt;Cons&lt;/b&gt;&lt;br /&gt;
Cellular tower triangulation as it is way too in accurate for the accuracy need of the day. This is option only when when no other medium of deciding location available.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;Uses Wi-Fi triangulations&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Pros&lt;/b&gt;&lt;br /&gt;
Works very accurate when one or more wi-fi is available in area. You need not to connect to a Wi-Fi, nether the Wi-Fi needs to know your requirement of locating your device. If the location of Wi-Fi is stored in Apple's giant database of all Wi-Fi and their co-ordinates, you are in luck. Your device contact Apple's service and based on Wi-Fi details, Apple will send you Wi-Fi coordinates. I am not sure if device triangulates the Wi-Fi once the coordinates are found or Apple's service will do it - but end result is accurate coordinates.&lt;br /&gt;
&lt;b&gt;Cons&lt;/b&gt;&lt;br /&gt;
You need to be in range of one or more Wi-Fi. If you are using iPod, you should be connected with internet.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;How Does Apple Get all Wi-Fi Locations?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Hmm... so the world need to have a database of all wi-fi and their locations. It is still guess for the people how apple has got this database? This is what I think based on recent&amp;nbsp;controversies regarding Apple's privacy policy regarding sharing your iPhone location with Apple's Service:&lt;br /&gt;
When your device has correct location decided, it also looks for wi-fi around your device. It stores those information on iPhone and iTunes on your computer sends it to Apple. And so, this list has grown 2 fold in day and 4 fold in night (it is just saying).&lt;br /&gt;
Note that before to iOS 3.2, this was not the case so Apple used to use (and still using for older devices) Skyhook Wireless and Google's services for WiFi triangulations.&lt;br /&gt;
&lt;br /&gt;
Now you are ready for next level: Go to&amp;nbsp;&lt;a href="http://support.apple.com/kb/HT1975"&gt;Apple's Office Discloser of its Location Service&lt;/a&gt;&amp;nbsp;and know more about it.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-3204382010018657563?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/cqZPXqL26Lm0vq1nzQbiUoycJrg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cqZPXqL26Lm0vq1nzQbiUoycJrg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/cqZPXqL26Lm0vq1nzQbiUoycJrg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cqZPXqL26Lm0vq1nzQbiUoycJrg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/RikMXkS_3vQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/3204382010018657563/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=3204382010018657563&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/3204382010018657563?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/3204382010018657563?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/RikMXkS_3vQ/how-apples-location-services-work.html" title="How Apple's Location Services Work" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2011/04/how-apples-location-services-work.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0cNQnoyfCp7ImA9WhZTFEg.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-7527812554344309896</id><published>2011-03-18T19:01:00.001+05:30</published><updated>2011-03-18T19:01:33.494+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-03-18T19:01:33.494+05:30</app:edited><title>Good User Experience</title><content type="html">&lt;p&gt;Good user experience cannot be achieved by jazzy animations. It is these simple things that everyone wants to have.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_VtHu1cINVlo/TYNer3PDFiI/AAAAAAAABSU/JYNiy66l9Wg/s1600-h/google_attachment%5B5%5D.png"&gt;&lt;img title="google_attachment" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="454" alt="google_attachment" src="http://lh3.ggpht.com/_VtHu1cINVlo/TYNetOFPZDI/AAAAAAAABSY/cpH0Sr5aKxk/google_attachment_thumb%5B3%5D.png?imgmax=800" width="625" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Some common tips for better user experience (most of us knows but we don’t follow):&lt;/p&gt;  &lt;p&gt;1. Use standard controls. In laymen language, text should look like text and button should look like a button.&lt;/p&gt;  &lt;p&gt;2. Optimize for speed. Everyone want to get the things done faster. Don’t put animations which hinders speed of doing something. Your UI (specially forms) should be accessible by ‘keyboard only’ as well. &lt;/p&gt;  &lt;p&gt;3. Think about the common mistake that user may be making while data entry. When you find something wrong, locate exact position and show understandable message to show the error.&lt;/p&gt;  &lt;p&gt;4. Try to optimize available space. You controls should be able to adjust to larger width to avoid scrollbars if possible. Don’t put big logos of the application on each screen top.&lt;/p&gt;  &lt;p&gt;5. Find the most used flows for your UI and optimize UI so user can complete the common tasks faster. If necessary, create different views of the same UI for different kind of user in organizational hierarchy.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-7527812554344309896?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NeIzBg-K46wsWRtVZFXRVXCzS50/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NeIzBg-K46wsWRtVZFXRVXCzS50/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NeIzBg-K46wsWRtVZFXRVXCzS50/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NeIzBg-K46wsWRtVZFXRVXCzS50/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/6lb09KtJ9IE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/7527812554344309896/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=7527812554344309896&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/7527812554344309896?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/7527812554344309896?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/6lb09KtJ9IE/good-user-experience.html" title="Good User Experience" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/_VtHu1cINVlo/TYNetOFPZDI/AAAAAAAABSY/cpH0Sr5aKxk/s72-c/google_attachment_thumb%5B3%5D.png?imgmax=800" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2011/03/good-user-experience.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUMGSXY6eCp7ImA9WhZVEUg.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-7520358287714862410</id><published>2011-02-04T03:29:00.003+05:30</published><updated>2011-05-23T17:53:48.810+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-23T17:53:48.810+05:30</app:edited><title>Nested Transaction Handling with NHibernate</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;NHibernate doesn’t have inbuilt support for nested transaction (or I am not using latest version). But, with little compromises, you can create a class that enables almost everything what you really need. I am using NHibernateSessionManager which you can find here: &lt;a href="http://www.codekeep.net/snippets/8b94e3e0-3ffd-4b59-b6ce-ed4d46158a7c.aspx"&gt;http://www.codekeep.net/snippets/8b94e3e0-3ffd-4b59-b6ce-ed4d46158a7c.aspx&lt;/a&gt;&lt;br /&gt;
&lt;pre class="brush: c-sharp;"&gt;    public class SmartTransaction
    {
        bool _transactionOwner =false;
        bool _transactionActive = false;

        public bool IsActive
        {
            get
            {
                return _transactionActive;
            }
        }

        public void Begin()
        {
            if (_transactionActive) return; //return to bad programer's code

            try
            {
                _transactionOwner = !NHibernateSessionManager.Instance.HasOpenTransaction();
                if (_transactionOwner)
                    NHibernateSessionManager.Instance.BeginTransaction();
                _transactionActive = true;
            }
            catch
            {
                _transactionOwner = false;
                _transactionActive = false;
                throw;
            }
        }

        public void Commit()
        {
            if (!_transactionActive || !NHibernateSessionManager.Instance.HasOpenTransaction())
            {
                _transactionActive = false;
                return;
            }

            try
            {
                if (_transactionOwner)
                    NHibernateSessionManager.Instance.CommitTransaction();
            }
            catch //when you don't know what you are committing to.
            {
                NHibernateSessionManager.Instance.RollbackTransaction(); 
                throw;
            }
            finally
            {
                _transactionActive = false;
            }
        }

        public void Rollback()
        {
            _transactionActive = false;

            if (!NHibernateSessionManager.Instance.HasOpenTransaction())
                return;
            NHibernateSessionManager.Instance.RollbackTransaction();
        }
    }
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Benefits:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
1. When writing a method, you need not to worry about context of calling method. You can just begin transaction of SmartTransaction class. If calling method has started transaction already, SmartTransaction doesn’t begin the transaction, but if something goes wrong, it will rollback entire transaction (of calling method). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. You need not to worry if method you are calling needs transaction wrapping. As with SmartTransaction class, if method you are calling needs transaction wrapping, it will have transaction wrapping using SmartTransaction class.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-7520358287714862410?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MLEOJTuQFkc8Q_Bm-6mbTZx8KGw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MLEOJTuQFkc8Q_Bm-6mbTZx8KGw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MLEOJTuQFkc8Q_Bm-6mbTZx8KGw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MLEOJTuQFkc8Q_Bm-6mbTZx8KGw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/Bu5F9KuzOhc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/7520358287714862410/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=7520358287714862410&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/7520358287714862410?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/7520358287714862410?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/Bu5F9KuzOhc/nested-transaction-handling-with.html" title="Nested Transaction Handling with NHibernate" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2011/02/nested-transaction-handling-with.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEcMQXg6fyp7ImA9Wx5aF04.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-7141609389916742750</id><published>2010-11-14T16:23:00.001+05:30</published><updated>2010-11-14T16:24:40.617+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-11-14T16:24:40.617+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="iPhone" /><title>iPhone Button for Navigation Bar</title><content type="html">&lt;p&gt;If you are developing iPhone application and trying to use UIButton on ‘Navigation Bar’ instead of ' ‘difficult to use’ ‘Bar Button Item’, you need a button image that exactly looks like Bar Button.&lt;/p&gt;  &lt;p&gt;As I couldn’t find the button background on net, I created it myself using Paint.NET. Here it is for&amp;#160; you.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_VtHu1cINVlo/TN-_jpr37xI/AAAAAAAABPM/-EjXXiev-4I/s1600-h/iphoneButtonBig%5B5%5D.png"&gt;&lt;img title="iphoneButtonBig" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="151" alt="iphoneButtonBig" src="http://lh6.ggpht.com/_VtHu1cINVlo/TN-_kif4feI/AAAAAAAABPU/-uodj_y-HnM/iphoneButtonBig_thumb%5B3%5D.png?imgmax=800" width="328" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-7141609389916742750?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/RkyTWFSd6s_UQxn87Cbj8kkDrFA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RkyTWFSd6s_UQxn87Cbj8kkDrFA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/RkyTWFSd6s_UQxn87Cbj8kkDrFA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RkyTWFSd6s_UQxn87Cbj8kkDrFA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/QkOV90gCfP0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/7141609389916742750/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=7141609389916742750&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/7141609389916742750?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/7141609389916742750?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/QkOV90gCfP0/iphone-button-for-navigation-bar.html" title="iPhone Button for Navigation Bar" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh6.ggpht.com/_VtHu1cINVlo/TN-_kif4feI/AAAAAAAABPU/-uodj_y-HnM/s72-c/iphoneButtonBig_thumb%5B3%5D.png?imgmax=800" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2010/11/iphone-button-for-navigation-bar.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEIMQXg5cCp7ImA9Wx5SEkU.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-5831060454820469124</id><published>2010-08-08T22:26:00.001+05:30</published><updated>2010-08-08T22:26:20.628+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-08T22:26:20.628+05:30</app:edited><title>What are Characteristics of Successful Innovative Idea</title><content type="html">&lt;p&gt;I’ve been associate with an Innovation Lab from quite a some time and observing for life how a genuine ideas turn into a success. Though I’ve never been able to own a killer existing idea, I can still depict some characteristics of successful innovative idea (based on guts but without example or stories - bad bad to convince people).&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Idea that solve problem for many. &lt;/li&gt;    &lt;li&gt;Idea that have feasibility to be prototyped.&amp;#160; Idea that can be prototyped in short duration. &lt;/li&gt;    &lt;li&gt;Idea that reasons (in term of Math, Science AND Art) why the idea can be successful. Idea should reference similar success. &lt;/li&gt;    &lt;li&gt;Idea that is inline with what your associated firm is trying to do. &lt;/li&gt; &lt;/ul&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-5831060454820469124?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dyzL269M7Awwjc-S8NdjfEaQquE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dyzL269M7Awwjc-S8NdjfEaQquE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/dyzL269M7Awwjc-S8NdjfEaQquE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dyzL269M7Awwjc-S8NdjfEaQquE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/yJ7e2KP7Ydg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/5831060454820469124/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=5831060454820469124&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/5831060454820469124?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/5831060454820469124?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/yJ7e2KP7Ydg/what-are-characteristics-of-successful.html" title="What are Characteristics of Successful Innovative Idea" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2010/08/what-are-characteristics-of-successful.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0MGQ3s4fyp7ImA9WxFaFkg.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-8148302749141494451</id><published>2010-07-21T00:13:00.001+05:30</published><updated>2010-07-21T00:13:42.537+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-21T00:13:42.537+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="WPF" /><category scheme="http://www.blogger.com/atom/ns#" term=".net" /><category scheme="http://www.blogger.com/atom/ns#" term=".net 3.5" /><title>Concatenation of Styles in WPF</title><content type="html">&lt;p&gt;In order to avoid confusion and/or be inline with OOP concepts, WPF style will not allow you to concatenate multiple style in one control. Instead, you can use ‘BasedOn’ property (of Style element) to inherit from the other style. It is possible to create chain of inheritance but multiple inheritance is not supported by default. Initially I though it is not possible&amp;#160; until I came across this amazing link: &lt;a title="http://swdeveloper.wordpress.com/2009/01/03/wpf-xaml-multiple-style-inheritance-and-markup-extensions/" href="http://swdeveloper.wordpress.com/2009/01/03/wpf-xaml-multiple-style-inheritance-and-markup-extensions/"&gt;http://swdeveloper.wordpress.com/2009/01/03/wpf-xaml-multiple-style-inheritance-and-markup-extensions/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;It shows use of MarkupExtension to enable inheritance from multiple styles (in actual, your triggers and setters will be merged. Duplicates will be overwritten by the second style that you define)&lt;/p&gt;  &lt;p&gt;Happy interfacing!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-8148302749141494451?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/vo-kbOXok43Z2QslcNuVTH8nLnY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vo-kbOXok43Z2QslcNuVTH8nLnY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/vo-kbOXok43Z2QslcNuVTH8nLnY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vo-kbOXok43Z2QslcNuVTH8nLnY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/g8S_3U31xx8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/8148302749141494451/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=8148302749141494451&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/8148302749141494451?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/8148302749141494451?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/g8S_3U31xx8/concatenation-of-styles-in-wpf.html" title="Concatenation of Styles in WPF" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2010/07/concatenation-of-styles-in-wpf.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkICQnk-fip7ImA9WxFUEUw.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-1013887579794260909</id><published>2010-06-21T15:31:00.001+05:30</published><updated>2010-06-21T15:32:43.756+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-21T15:32:43.756+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Vanilla Forum" /><category scheme="http://www.blogger.com/atom/ns#" term="How To" /><category scheme="http://www.blogger.com/atom/ns#" term="General" /><title>Solve “You are not allowed to upload ‘FileName’. the requested file type: 'FileType’” problem on Vanilla Forum 1.x</title><content type="html">&lt;h4&gt;Issue:&lt;/h4&gt;  &lt;p&gt;You get this exception when you try to upload any file in your Vanilla Forum (Version 1) using any Attachment extension :    &lt;br /&gt;You are not allowed to upload ‘FileName’. the requested file type: 'FileType’     &lt;br /&gt;&lt;/p&gt;  &lt;h4&gt;Resolution 1:&lt;/h4&gt;  &lt;p&gt;Add specified type as allowed type. Steps to do so follow here:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Note the &lt;strong&gt;&lt;em&gt;'FileType’&lt;/em&gt;&lt;/strong&gt; in the error message. &lt;/li&gt;    &lt;li&gt;Go to extensions&lt;strong&gt;\Attachments\default.php&lt;/strong&gt; file in your Vanilla forum’s directory. &lt;/li&gt;    &lt;li&gt;Add appropriate entry in &lt;em&gt;&lt;strong&gt;Context-&amp;gt;Configuration['ATTACHMENTS_ALLOWED_FILETYPES']&lt;/strong&gt;&lt;/em&gt; list. &lt;/li&gt;    &lt;li&gt;Note that it’s also important that you give correct extensions for the mime type you are allowing as both, 'FilteType’ (i.e. mime type) and file extensions are corss checked in Framework code of vanilla forum. &lt;/li&gt;    &lt;li&gt;Save the file and test. &lt;/li&gt; &lt;/ol&gt;  &lt;h4&gt;Resolution 2:&lt;/h4&gt;  &lt;p&gt;Remove check for allowed types. Note that this is not very safe for public forum but it’s ‘ok’ for internal forum with known and responsible user. Steps to do so follow here:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Go to &lt;strong&gt;&lt;em&gt;“library\Framework\Framework.Class.Uploader.php”&lt;/em&gt;&lt;/strong&gt;&amp;#160; file. &lt;/li&gt;    &lt;li&gt;Find this line of code &lt;em&gt;“if (!array_key_exists($FileType, $this-&amp;gt;AllowedFileTypes))”&lt;/em&gt;&amp;#160; and comment this ‘if’ and ‘else’ of it. &lt;strong&gt;Yes you need to comment if AND else.&lt;/strong&gt; &lt;/li&gt;    &lt;li&gt;Save the file and test. &lt;/li&gt; &lt;/ol&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-1013887579794260909?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MOtt7n_-CEoxZGl_noG5cX_MBhI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MOtt7n_-CEoxZGl_noG5cX_MBhI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MOtt7n_-CEoxZGl_noG5cX_MBhI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MOtt7n_-CEoxZGl_noG5cX_MBhI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/hcQG4AbkKpE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/1013887579794260909/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=1013887579794260909&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/1013887579794260909?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/1013887579794260909?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/hcQG4AbkKpE/fix-you-are-not-allowed-to-upload.html" title="Solve “You are not allowed to upload ‘FileName’. the requested file type: &amp;#39;FileType’” problem on Vanilla Forum 1.x" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2010/06/fix-you-are-not-allowed-to-upload.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkECRno8fSp7ImA9WxFSE08.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-6888531700035814655</id><published>2010-04-15T16:21:00.001+05:30</published><updated>2010-04-15T16:21:07.475+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-15T16:21:07.475+05:30</app:edited><title>Solve Exception Message: The IAsyncResult object was not returned from the corresponding asynchronous method on this class</title><content type="html">&lt;p&gt;Recently I was got a weird error on my Windows CE code (.NET compact framework) which was asynchronously listening for UDP (or may be same for TCP) messages.&lt;/p&gt;  &lt;h4&gt;Exception Message&lt;/h4&gt;  &lt;p&gt;Error Message: The IAsyncResult object was not returned from the corresponding asynchronous method on this class.    &lt;br /&gt;CallStack for debug purpose:     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; at System.Net.Sockets.Socket.EndReceiveFrom()     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; at BallyTech.SocketListener.UdpSocketListener.OnReceive()     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; at System.Net.LazyAsyncResult.InvokeCallback()     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; at WorkerThread.doWork()     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; at WorkerThread.doWorkI()     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; at WorkItem.doWork()     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; at System.Threading.Timer.ring()&lt;/p&gt;  &lt;h4&gt;Issue&lt;/h4&gt;  &lt;p&gt;When frequently Open/Close UDP sockets, above exception comes while closing one socket and start listening on another socket on the same port. &lt;strong&gt;&lt;u&gt;OnReceive&lt;/u&gt; &lt;u&gt;method is called (only once) for the previous (closed) socket&lt;/u&gt;&lt;/strong&gt; while doing “Start Listening” on new socket on the same port. As old socket is already dereferenced and closed, you will get above socket exception on EndReceiveFrom or EndReceive method. &lt;/p&gt;  &lt;h4&gt;Solution&lt;/h4&gt;  &lt;p&gt;In short, you have to ignore the calls of your OnReceive (or similar) for Old socket which you no longer use i.e. closed sockets. &lt;/p&gt;  &lt;p&gt;Note that when you call BeginReceiveFrom to start listening for messages, it returns an instance of IAsyncResult. Don’t ignore this and store it into class level private variable (let’s say variable name &lt;em&gt;currentAsyncResult&lt;/em&gt;).&lt;/p&gt;  &lt;p&gt;Now make modification into&amp;#160; your OnReceive method to ignore any message which is not for &lt;em&gt;currentAsyncResult. &lt;/em&gt;&lt;/p&gt;  &lt;pre class="brush: c-sharp;"&gt;private void OnReceive(IAsyncResult ar)&lt;br /&gt;{&lt;br /&gt;   try&lt;br /&gt;   {&lt;br /&gt;      if (ar == currentAynchResult)&lt;br /&gt;      {&lt;br /&gt;         IPEndPoint ipeSender = new IPEndPoint(IPAddress.Any, 0);&lt;br /&gt;         EndPoint epSender = (EndPoint)ipeSender;&lt;br /&gt;&lt;br /&gt;         //Error comes here if we didn't have (ar == currentAynchResult) check&lt;br /&gt;         int bytesRead = udpSocket.EndReceiveFrom(ar, ref epSender); &lt;br /&gt;         //process further&lt;br /&gt;      }&lt;br /&gt;      else&lt;br /&gt;      {&lt;br /&gt;         //Ignore&lt;br /&gt;      }&lt;br /&gt;      BeginReceive();&lt;br /&gt;   }&lt;br /&gt;   catch (Exception ex)&lt;br /&gt;   {&lt;br /&gt;      //Log exception. Don't throw exception. Most probably BeginReceive failed.&lt;br /&gt;   }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;Notice the&lt;strong&gt; if (ar == currentAynchResult)&lt;/strong&gt; check where we got currentAynchResult from BeginReceiveFrom method while starting listening from new socket.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Happy Networking!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-6888531700035814655?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/s06pmbuj8U6EhgiEFMHRmhgl55Q/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/s06pmbuj8U6EhgiEFMHRmhgl55Q/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/s06pmbuj8U6EhgiEFMHRmhgl55Q/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/s06pmbuj8U6EhgiEFMHRmhgl55Q/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/Y0QfRZBinxM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/6888531700035814655/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=6888531700035814655&amp;isPopup=true" title="7 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/6888531700035814655?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/6888531700035814655?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/Y0QfRZBinxM/solve-exception-message-iasyncresult.html" title="Solve Exception Message: The IAsyncResult object was not returned from the corresponding asynchronous method on this class" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>7</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2010/04/solve-exception-message-iasyncresult.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8EQ345eip7ImA9WxFTEk0.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-775733397698093978</id><published>2010-03-31T01:40:00.001+05:30</published><updated>2010-04-02T16:43:22.022+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-02T16:43:22.022+05:30</app:edited><title>Configure OpenCV 2.0 on Visual Studio 2008 for VC++</title><content type="html">&lt;p&gt;You must be hating OpenCV 2.0 by now :) But don’t worry your pain will go soon (if yes, please write a comment). The biggest pain is that you will have to compile your OpenCV using CMake and all those stuff (as explained &lt;a href="http://mirror2image.wordpress.com/2009/10/20/switching-to-opencv-2-0-with-vs2005/"&gt;here&lt;/a&gt;). But if you are content with C or C++ and not interested in debugging inside OpenCV or Python then read further.&lt;/p&gt;  &lt;p&gt;Download and Install, Emgu which is actually .NET wrapper for OpenCV but we will just use their precious .lib files which otherwise is pain in neck to generate (Download Emgu from here: &lt;a title="http://sourceforge.net/projects/emgucv/" href="http://sourceforge.net/projects/emgucv/"&gt;http://sourceforge.net/projects/emgucv/&lt;/a&gt;)&lt;/p&gt;  &lt;p&gt;After Emgu installation, Open Visual Studio and follow these steps: &lt;/p&gt;  &lt;p&gt;1. Go to &lt;strong&gt;Tool –&amp;gt; Options –&amp;gt; Projects and Solutions –&amp;gt; VC++ Directories&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;2. Now see a combobox “&lt;strong&gt;Show Directories for&lt;/strong&gt;” and select “&lt;strong&gt;Include files&lt;/strong&gt;” and add, “&lt;em&gt;C:\Program Files\Emgu\Emgu CV\opencv\include\opencv&lt;/em&gt;” (verify, as program file location may differ if you are using 64 bit operating system)&lt;/p&gt;  &lt;p&gt;3. Now in the same combobox select “&lt;strong&gt;Library files&lt;/strong&gt;” and add, “&lt;em&gt;C:\Program Files\Emgu\Emgu CV\lib\release&lt;/em&gt;”&lt;/p&gt;  &lt;p&gt;4.&amp;#160; Now go to your VC++ project, right click and go to &lt;strong&gt;Properties –&amp;gt; Configuration Properties –&amp;gt; Linker –&amp;gt; Input –&amp;gt; Additional Dependencies&lt;/strong&gt; and add these lib files (which is at&amp;#160; &lt;em&gt;C:\Program Files\Emgu\Emgu CV\lib\release&lt;/em&gt;) &lt;strong&gt;cv200.lib cvaux200.lib cxcore200.lib highgui200.lib&lt;/strong&gt; (check library name, it may change according to OpenCV version used for the Emgu)&lt;/p&gt;  &lt;p&gt;5. That’s it. Done for now. Take shot at compiling your VC++ code downloaded from internet ;) &lt;/p&gt;  &lt;p&gt;NOTE: If you are interested in going into OpenCV library code while debugging then this may not be the best solution for you as Emgu only gives release .lib files. You will have to generate ‘debug’ lib files as described in &lt;a title="http://mirror2image.wordpress.com/2009/10/20/switching-to-opencv-2-0-with-vs2005/" href="http://mirror2image.wordpress.com/2009/10/20/switching-to-opencv-2-0-with-vs2005/"&gt;http://mirror2image.wordpress.com/2009/10/20/switching-to-opencv-2-0-with-vs2005/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I am not sure but this same should help to configure VS 2010 also.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-775733397698093978?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GvGgvoDs7sL-gpWN4AZh10aBwFQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GvGgvoDs7sL-gpWN4AZh10aBwFQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GvGgvoDs7sL-gpWN4AZh10aBwFQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GvGgvoDs7sL-gpWN4AZh10aBwFQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/NhL3eIJSzr8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/775733397698093978/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=775733397698093978&amp;isPopup=true" title="6 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/775733397698093978?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/775733397698093978?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/NhL3eIJSzr8/configure-opencv-20-on-visual-studio.html" title="Configure OpenCV 2.0 on Visual Studio 2008 for VC++" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>6</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2010/03/configure-opencv-20-on-visual-studio.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUMQX4zfSp7ImA9WxBUFEo.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-2108966900366232281</id><published>2010-03-01T02:02:00.017+05:30</published><updated>2010-03-02T01:08:00.085+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-02T01:08:00.085+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term=".net" /><title>Wondering about System.Int32 implementation</title><content type="html">If you are a .NET programmer (and do not use reflector), you would look at int and System.Int32 as same. But if you are also interested in reverse engineering, you would surprise how would they implement something like this.   &lt;br /&gt;
This is how Int32 (part of mscorelib.dll) may look like in reflector,&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: c-sharp;"&gt;namespace System
{
//attributes blah blah blah
public struct Int32  //implements blah blah blah....
{
internal int m_value;
//… other code with methods with ‘int’ as return type or parameter
}
}&lt;/pre&gt;&lt;br /&gt;
But if int and Int32 are same, wouldn’t it become circular reference? (not ‘reference’ exactly has int is value type ;). The answer is NO. as we use them in real life. It seems reflector’s code is  hardcoded to show it or mscorelib is compiled in some alien world.&lt;br /&gt;
&lt;br /&gt;
I read[1] that there a special treatment given for 'int' (and so all other keywords). Interestingly, I learned creating my Int32 (and other predefined types). When I created something like this, in my project,&lt;br /&gt;
&lt;pre class="brush: c-sharp;"&gt;public struct Int32
{
public Int32 m_value;

public Int32 GetMe()
{
return this;
}
}
&lt;/pre&gt;&lt;br /&gt;
But after compilation, I saw (in reflactor) compiler did this to my class,&lt;br /&gt;
&lt;pre class="brush: c-sharp;"&gt;public struct Int32
{
// Fields
public int m_value;

// Methods
public unsafe int GetMe()
{
return *(((int*) this));
}
}
&lt;/pre&gt;&lt;br /&gt;
hmm.. Interesting. It looks like (also suggested in link [1]) &lt;span style="font-size: 130%;"&gt;when the compiler encounter an 'int' or 'Int32' in the structure which cannot be replace by pre-compiler as Int32, it gives 32 bit to variable m_value there. So, basically variable m_value doesn't exist as int or Int32 but it is just 32 bits&lt;/span&gt; which can be retrieved using unsafe code as shown above. Combination of visual studio intellisence, pre-compiler, compiler are specially designed to handle this scenario.&lt;br /&gt;
Note: For losers using Java, int is value type and Integer is reference type. Both are not same there. What a shame!&lt;br /&gt;
&lt;br /&gt;
[1]&lt;a href="http://social.msdn.microsoft.com/Forums/en-SG/csharplanguage/thread/6d183671-2f42-4803-ac08-334d19708bc1"&gt; C# compiler magic regarding int vs System.Int32 Thread on MSDN&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-2108966900366232281?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6NhmK3XjFxrM5Am6-JyBhOLhh_Q/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6NhmK3XjFxrM5Am6-JyBhOLhh_Q/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6NhmK3XjFxrM5Am6-JyBhOLhh_Q/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6NhmK3XjFxrM5Am6-JyBhOLhh_Q/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/8I0kmXnosIo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/2108966900366232281/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=2108966900366232281&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/2108966900366232281?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/2108966900366232281?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/8I0kmXnosIo/wondering-about-systemint32.html" title="Wondering about System.Int32 implementation" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2010/03/wondering-about-systemint32.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkIGQ3c9cSp7ImA9WxBXFkQ.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-7080138961454061718</id><published>2010-01-28T12:55:00.003+05:30</published><updated>2010-01-28T21:32:02.969+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-28T21:32:02.969+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="How To" /><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio" /><category scheme="http://www.blogger.com/atom/ns#" term=".net 3.5" /><category scheme="http://www.blogger.com/atom/ns#" term="Installation" /><title>Fix "The project type not supported by this installation" blah blah blah after resetsettings command</title><content type="html">Is your visual studio settings are messed up? You can reset your visual studio settings by starting it from visual studio command prompt:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;devenv.exe /resetsettings&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;But often, WCF related stuff doesn't work after above command. When you open the WCF porject in your Visual Studio, you may get this error:&lt;br /&gt;"The project type not supported by this installation" blah blah blah..&lt;br /&gt;&lt;br /&gt;If you are the one who has done so, close the Visual Studio and run this command from visual studio command prompt:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;devenv /ResetSkipPkgs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It should reset (i.e. remove in our case) the checks that should be skiped in order to open newer WCF project into your relatively older visual studio.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-7080138961454061718?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_DDaGdTZ9317kdOdWa2f0v4LRKM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_DDaGdTZ9317kdOdWa2f0v4LRKM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_DDaGdTZ9317kdOdWa2f0v4LRKM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_DDaGdTZ9317kdOdWa2f0v4LRKM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/4Bz8zT4-TfA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/7080138961454061718/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=7080138961454061718&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/7080138961454061718?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/7080138961454061718?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/4Bz8zT4-TfA/fix-project-type-not-supported-by-this.html" title="Fix &quot;The project type not supported by this installation&quot; blah blah blah after resetsettings command" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2010/01/fix-project-type-not-supported-by-this.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUARn8_fip7ImA9WxBXEE8.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-2593491328274186135</id><published>2010-01-21T03:17:00.001+05:30</published><updated>2010-01-21T03:20:47.146+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-21T03:20:47.146+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term=".net" /><category scheme="http://www.blogger.com/atom/ns#" term="General" /><title>.NET Namespace Naming Convention with Team Name in it</title><content type="html">I hated naming conventions from collage time and nothing is much different today. Saying that, I also must accept that I secretly liked &lt;a href="http://msdn.microsoft.com/en-us/library/xzf533w0%28VS.71%29.aspx"&gt;Microsoft's guidelines about naming conventions&lt;/a&gt; as it gives more freedom and meaningful restrictions than others (specially Sun Java). Let's leave other naming conventions and concentrate on  namespace's maming convention of your assembly and classes.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Why namespace naming is important?&lt;/span&gt;&lt;br /&gt;A namespace gives first hand impression on what the class and its method must be doing. With that, a class should get a unique identification based on its namespace. Carelessly crafted names are misleading advertisement which repulses intended audience or create confusion.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;How Microsoft Tells us to name a namespace?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;CompanyName.TechnologyName[.Feature][.Design]&lt;/span&gt;&lt;br /&gt;is what &lt;a href="http://msdn.microsoft.com/en-us/library/893ke618%28VS.71%29.aspx"&gt;Namespace Naming Guidelines&lt;/a&gt; tells. Example being Microsoft.Build.Tasks&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Is it long enough?&lt;/span&gt;&lt;br /&gt;Organizations, with help of smart programmers, are now taking little more effort to refactor the code to extract common code which can be reused across teams. It is not impossible (infact it's more frequent) to have multiple implementation approach of a 'similar' feature by different team. For example team 'TreamA' and 'TeamB' in organization 'MyOrg' might have taken differnt approach to develop a media content viewer optimized for their own scenarios. If the organization want to share these media viewers across many teams to use, 'unique identification' functionality of namespace stands violated as media viewer class from both the team will look like,&lt;br /&gt;MyOrg.Media.Viewer&lt;br /&gt;This would not have occured if the namespace of viewers were named "MyOrg.Media.TreamA.Viewer" and "MyOrg.Media.TreamB.Viewer" beforehand.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;So?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;I believe we should giving implementing team name in name as ending part of namespace. So my format would be&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;font-size:130%;"&gt;CompanyName.TechnologyName[.Feature]&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;span style="font-family:Courier New;"&gt;[.TeamOrGroupName]&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;font-size:130%;"&gt;[.Design]&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-2593491328274186135?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/LmMjXyQu3KJg6Dh2Zo5ApUFn3ew/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LmMjXyQu3KJg6Dh2Zo5ApUFn3ew/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/LmMjXyQu3KJg6Dh2Zo5ApUFn3ew/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LmMjXyQu3KJg6Dh2Zo5ApUFn3ew/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/a5TMaSxyCtg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/2593491328274186135/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=2593491328274186135&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/2593491328274186135?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/2593491328274186135?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/a5TMaSxyCtg/net-namespace-naming-convention-with.html" title=".NET Namespace Naming Convention with Team Name in it" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2010/01/net-namespace-naming-convention-with.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0IFQnc5cSp7ImA9WxBXF00.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-3255097562035649285</id><published>2009-12-29T00:49:00.007+05:30</published><updated>2010-01-29T00:35:13.929+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-29T00:35:13.929+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="How To" /><category scheme="http://www.blogger.com/atom/ns#" term="General" /><title>How to Fix Error 1606: Could not access network location</title><content type="html">This error often comes while installing some software.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Scenario A: &lt;/span&gt;You are getting error 1606 saying "Could not access network location [Some environment variable with % in it]..." then these links may help you solve the issue.&lt;br /&gt;&lt;a href="http://support.microsoft.com/default.aspx/kb/330766"&gt;http://support.microsoft.com/default.aspx/kb/330766&lt;/a&gt;&lt;br /&gt;and &lt;a href="http://support.microsoft.com/kb/256986/"&gt;&lt;br /&gt;http://support.microsoft.com/kb/256986/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Scenario B:&lt;/span&gt; You are getting error 1606 saying it cannot access internet location. But you can download same file using internet explorer,&lt;br /&gt;1. Try hitting 'Retry' button. You may be in luck.&lt;br /&gt;2. Not solved yet? Most probably you are behind proxy server. To solve this issue, go to Control Panel -&gt; Internet Options -&gt; Connections -&gt; LAN Settings. What do you see? Is "Automatic Detect Setting" checked? If yes then uncheck it and see if your installation works. If it still doesn't work, contact your network administrator and manually provide proxy IP and Port in the LAN Settings of Internet Options.&lt;br /&gt;&lt;br /&gt;Still not working? Please find solution and put your solution here :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-3255097562035649285?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/LM3V12DLWs0CA-eEfe5Wg38nLhM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LM3V12DLWs0CA-eEfe5Wg38nLhM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/LM3V12DLWs0CA-eEfe5Wg38nLhM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LM3V12DLWs0CA-eEfe5Wg38nLhM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/h6RtWA6FUH4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/3255097562035649285/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=3255097562035649285&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/3255097562035649285?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/3255097562035649285?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/h6RtWA6FUH4/solve-error-1606-could-not-access.html" title="How to Fix Error 1606: Could not access network location" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2009/12/solve-error-1606-could-not-access.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0QARXg-cSp7ImA9WxBVEks.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-4303490097706893490</id><published>2009-09-15T17:50:00.007+05:30</published><updated>2010-02-16T01:52:24.659+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-16T01:52:24.659+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term=".net" /><category scheme="http://www.blogger.com/atom/ns#" term="How To" /><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio" /><title>Get Exception without being in catch block</title><content type="html">In .NET, when exception is thrown, the exception passed though the call stacks. While debugging you may not be inside the catch block (may be in finally) or you may not have catch block at all. But if you want to still see what exception occurred then just go to 'watch' window in visual studio and type '&lt;span style="font-size:180%;"&gt;$exception&lt;/span&gt;' and you will get the exception as it is.&lt;br /&gt;&lt;br /&gt;Happy Debugging!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;ps: I got this trick free from my  ex-colleague Manish&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-4303490097706893490?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bQU177zyQW4g1O265qTdKBbj7Uo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bQU177zyQW4g1O265qTdKBbj7Uo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bQU177zyQW4g1O265qTdKBbj7Uo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bQU177zyQW4g1O265qTdKBbj7Uo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/P36p3vJ-Rw4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/4303490097706893490/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=4303490097706893490&amp;isPopup=true" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/4303490097706893490?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/4303490097706893490?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/P36p3vJ-Rw4/get-exception-without-being-in-catch.html" title="Get Exception without being in catch block" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>3</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2009/09/get-exception-without-being-in-catch.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUMQH0_eip7ImA9WxJaGE8.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-7953318625011578021</id><published>2009-08-09T16:45:00.023+05:30</published><updated>2009-08-09T18:54:41.342+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-09T18:54:41.342+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="How To" /><title>Syntax Highlighter on Blogger</title><content type="html">At last, I got source&lt;a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter"&gt; Syntax Highlighter&lt;/a&gt; on my blog. Adding script in Gadget didn't work for me as I couldn't add &amp;lt;link&amp;gt; tag in HTML/Javascript gadget. Then I tried adding script in template itself and it works like a charm :)&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: c-sharp;"&gt;&lt;br /&gt;function test() : String&lt;br /&gt;{&lt;br /&gt;     return 10;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-7953318625011578021?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/W3Av0Xu3iffGBAlFihl2fApSH30/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/W3Av0Xu3iffGBAlFihl2fApSH30/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/W3Av0Xu3iffGBAlFihl2fApSH30/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/W3Av0Xu3iffGBAlFihl2fApSH30/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/7MZ2bjidl4s" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/7953318625011578021/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=7953318625011578021&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/7953318625011578021?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/7953318625011578021?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/7MZ2bjidl4s/this-is-test-file-to-insure-that.html" title="Syntax Highlighter on Blogger" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2009/08/this-is-test-file-to-insure-that.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUIESX49eip7ImA9WxJaEE8.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-6081350868254740110</id><published>2009-07-31T12:25:00.002+05:30</published><updated>2009-07-31T12:28:28.062+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-31T12:28:28.062+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term=".net 3.5" /><title>Interoperability Problem with WCF Web Service Solved</title><content type="html">I've spoken to many of my friends about how WCF services do not work with older system (and some time modern system like Flex). Well it is my bad that I didn't search for a solution. Sorry! I didn't search for the 'problem' itself.&lt;br /&gt;Now, when I was generating WSDL file from my .svc, I good a strange thought. I didn't want to give 1 WSDS and 3 xsd imports (yeah 3 xsd:import.. see your WSDL), I wanted to flatten it a bit and give single WSDL. While searching for the solution, I found &lt;a href="http://blogs.thinktecture.com/cweyer/archive/2007/05/10/414840.aspx"&gt;this article by Christain Weyer&lt;/a&gt;. It revealed to me that lack of 'single and complete' WSDL file is the problem for old consumers. I highly encourage you to visit his blog and see the solution by yourself.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-6081350868254740110?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/SZN1iO8zvYWQHPrnJzIaqhdfNV4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SZN1iO8zvYWQHPrnJzIaqhdfNV4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/SZN1iO8zvYWQHPrnJzIaqhdfNV4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SZN1iO8zvYWQHPrnJzIaqhdfNV4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/NJTBtij-lsc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/6081350868254740110/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=6081350868254740110&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/6081350868254740110?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/6081350868254740110?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/NJTBtij-lsc/interoperability-problem-with-wcf-web.html" title="Interoperability Problem with WCF Web Service Solved" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2009/07/interoperability-problem-with-wcf-web.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8NSH4_fCp7ImA9WxJbFU8.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-8019959553063561163</id><published>2009-07-24T16:51:00.007+05:30</published><updated>2009-07-25T17:58:19.044+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-25T17:58:19.044+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Wix" /><category scheme="http://www.blogger.com/atom/ns#" term=".net" /><category scheme="http://www.blogger.com/atom/ns#" term="Installation" /><title>Wix with util:User</title><content type="html">&lt;a href="http://wix.sourceforge.net/"&gt;Wix &lt;/a&gt;installer is my latest adventure. It's good but few thing may leave you scratching you head for hours.  One of them is user right assignment.&lt;br /&gt;I wanted to give ASPNET user some access right to my MSMQ. So defining user went like this (after that I gave permission):&lt;br /&gt;&lt;blockquote&gt;&amp;lt;util:User Id="aspnet" Name="ASPNET"  / &amp;gt;&lt;br /&gt;&lt;/blockquote&gt;Everything worked fine, until my product was uninstalled (for testing... in real life people will love it). Uninstaller 'owned' the ASPNET user and deleted while uninstalling the product. Leaving system corrupt. I had to rescue my system's dangled processes by re-registering ASP.NET.  And found (hit and try) this is the right way:&lt;br /&gt;&lt;blockquote&gt;&amp;lt;util:User Id="aspnet" Name="ASPNET" CreateUser="no" UpdateIfExists="no" /&amp;gt;&lt;/blockquote&gt;I don't know much about it but this worked and 'happy ending' is all I want at the starting of my weekends :)&lt;br /&gt;Happy Weekends 2 u 2!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-8019959553063561163?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/z0ndEfH_OtSxECkELEY1t_Py3tw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/z0ndEfH_OtSxECkELEY1t_Py3tw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/z0ndEfH_OtSxECkELEY1t_Py3tw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/z0ndEfH_OtSxECkELEY1t_Py3tw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/VyF8EG5_pHI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/8019959553063561163/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=8019959553063561163&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/8019959553063561163?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/8019959553063561163?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/VyF8EG5_pHI/wix-with-utiluser.html" title="Wix with util:User" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2009/07/wix-with-utiluser.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkYMRH4_cSp7ImA9WxJUF0k.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-3198175624295447609</id><published>2009-07-16T17:58:00.007+05:30</published><updated>2009-07-16T18:13:05.049+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-16T18:13:05.049+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="nhibernate" /><title>Don't flush the Session after an exception occurs</title><content type="html">I recently moved my all 'flush' at central location i.e. on session closed. And I close session in "finally" block of the code, to ensure that it really gets closed (not really).&lt;br /&gt;So code would look like&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;try&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;//Use Session like never used before&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;finally&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;NhibernateSessionManager.CloseCurrentSession();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;//closes session that was assigned to the thread&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CloseCurrentSession in NhibernateSessionManager would look like this,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;CloseCurrentSession()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;ISession session = GetCurrentContextSession();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;if(session != null &amp;amp;&amp;amp; session.IsOpen)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;session.Flush(); //evil is here&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;session.Close();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;RemoveCurrentContextSession();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I was proud of this solution until I got into a database exception in my main code (which happens rarely after I write millions of lines of code).&lt;br /&gt;If any such exception occurred and you try to flush, you will be delighted with another exception when you use session.Flush() It says "don't flush the Session after an exception occurs". For undisclosed reason, I couldn't use autoflush (reserved for next blog may be ;)&lt;br /&gt;&lt;br /&gt;I believe there are alternate solutions but I as I told, I am lazy (like any other ORM), so I reverted back to my 'Flush manually' everytime when you make some entity dirty. Pretty shitty stuff huh???&lt;br /&gt;&lt;br /&gt;Anyways, thanks for reading the blog even though the title "Don't flush the Session after an exception occurs" tells it all and inside matter is just ramblings.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-3198175624295447609?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zleDkZ5wQTHOuXBtEDq3q40XBOo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zleDkZ5wQTHOuXBtEDq3q40XBOo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zleDkZ5wQTHOuXBtEDq3q40XBOo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zleDkZ5wQTHOuXBtEDq3q40XBOo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/gjteePzDFyE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/3198175624295447609/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=3198175624295447609&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/3198175624295447609?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/3198175624295447609?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/gjteePzDFyE/dont-flush-session-after-exception.html" title="Don't flush the Session after an exception occurs" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2009/07/dont-flush-session-after-exception.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEEHSXY8fyp7ImA9WxJWEUg.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-7465369118826095637</id><published>2009-06-16T18:12:00.003+05:30</published><updated>2009-06-16T18:20:38.877+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-16T18:20:38.877+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Web" /><category scheme="http://www.blogger.com/atom/ns#" term="General" /><title>Caching Problem with XMLHttpRequest</title><content type="html">Using XMLHttpReuest is fun. But if you have just started the fun, you should know this.&lt;br /&gt;IE has a known issue which caches the data if request is same. It's real mystery for me why Microsoft ended up with such default behavior for functionality which is responsible to load dynamic data. But as we have to live with it, here is a small hack which will turn off the caching for that page. You need to add this two lines in your HTML Head tag.&lt;br /&gt;&lt;br /&gt;   &amp;lt meta equiv="Pragma" content="no-cache"/&amp;gt&lt;br /&gt;   &amp;lt meta http-equiv="Expires" content="-1" /&amp;gt&lt;br /&gt;&lt;br /&gt;Solution Source: http://en.wikipedia.org/wiki/XMLHttpRequest#Workaround&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-7465369118826095637?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/AoP71IPn1VveYSWzxt3o6bJOnMs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AoP71IPn1VveYSWzxt3o6bJOnMs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/AoP71IPn1VveYSWzxt3o6bJOnMs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AoP71IPn1VveYSWzxt3o6bJOnMs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/-UgypTq2mjE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/7465369118826095637/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=7465369118826095637&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/7465369118826095637?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/7465369118826095637?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/-UgypTq2mjE/caching-problem-with-xmlhttprequest.html" title="Caching Problem with XMLHttpRequest" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2009/06/caching-problem-with-xmlhttprequest.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEcHQX47eSp7ImA9WxJREUk.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-3760557008504484832</id><published>2009-05-12T20:50:00.005+05:30</published><updated>2009-05-12T20:57:10.001+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-12T20:57:10.001+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="How To" /><category scheme="http://www.blogger.com/atom/ns#" term="nhibernate" /><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio" /><title>About CProxyType*_NHibernate_ProxyINHibernateProxy_System_Runtime_SerializationISerializable2</title><content type="html">Are you getting this exception while debugging on Visual Studio?&lt;br /&gt;CProxyType*ENTITY_FULL_NAME*_NHibernate_ProxyINHibernateProxy_System_Runtime_SerializationISerializable2&lt;br /&gt;&lt;br /&gt;Are  you worried? Are  you banging your head? Don't worry now, I have a solution for you! Follow as described below (step by step):&lt;br /&gt;Step 1. Stop Debugging. Sometime NHibernate doesn't load lazy loaded entity during debug (specially in 'watch' or 'quick watch'). Test your code at runtime like Message Pop-up box or Console.Write etc&lt;br /&gt;Step 2. Take a cup of tea.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-3760557008504484832?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5KucauZyXkhKhOKL2LmGB6r4ujw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5KucauZyXkhKhOKL2LmGB6r4ujw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5KucauZyXkhKhOKL2LmGB6r4ujw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5KucauZyXkhKhOKL2LmGB6r4ujw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/hTD6zJp7MCA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/3760557008504484832/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=3760557008504484832&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/3760557008504484832?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/3760557008504484832?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/hTD6zJp7MCA/about-cproxytypenhibernateproxyinhibern.html" title="About CProxyType*_NHibernate_ProxyINHibernateProxy_System_Runtime_SerializationISerializable2" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2009/05/about-cproxytypenhibernateproxyinhibern.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0QFQ3c_eyp7ImA9WxVWGU4.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-1131982787538114668</id><published>2009-03-01T13:48:00.005+05:30</published><updated>2009-03-02T00:51:52.943+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-03-02T00:51:52.943+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="General" /><title>Software Performance Consideration while Coding</title><content type="html">Some tips when you write a code (an excerpt from &lt;a href="http://blogs.msdn.com/ericlippert/archive/2009/02/06/santalic-tailfans-part-two.aspx"&gt;Eric Lippert's Blog&lt;/a&gt;):&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-style: italic;"&gt;Set meaningful, measurable, customer-focused goals.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-style: italic;"&gt;Write the code to be as clear and correct as possible.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-style: italic;"&gt;Carefully measure your performance against your goals.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-style: italic;"&gt;Did you meet your goal? Great! Don't waste any time on performance analysis. Spend your valuable time on features, documentation, bug fixing, robustness, security, whatever.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-style: italic;"&gt;If you did not meet your goal, use tools to discover what the worst-performing fixable thing is, and fix it.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;It tells how to walk on a blur trade-off between ‘correct’ and ‘preferment’ code. Success in the industry depends upon lot other factor and people just want workable code. Unnecessarily fast code doesn’t create any value of customer and time taken to think about or writing code is merely a waste in this hurry-burry software industry. Popularity of framework like .NET and Java are greatest example of it. Even the master, Donald Knuth, has said:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-1131982787538114668?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/EbYb2rtJ0Muvwzw-hMiyzPKH2jM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EbYb2rtJ0Muvwzw-hMiyzPKH2jM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/EbYb2rtJ0Muvwzw-hMiyzPKH2jM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EbYb2rtJ0Muvwzw-hMiyzPKH2jM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/55u2ZyJXUws" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/1131982787538114668/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=1131982787538114668&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/1131982787538114668?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/1131982787538114668?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/55u2ZyJXUws/software-performance-consideration.html" title="Software Performance Consideration while Coding" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2009/03/software-performance-consideration.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08MQnc4eyp7ImA9WxRaFUw.&quot;"><id>tag:blogger.com,1999:blog-11160305.post-4302453962803008587</id><published>2008-12-17T17:14:00.004+05:30</published><updated>2008-12-17T17:41:23.933+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-17T17:41:23.933+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="How To" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL" /><title>Clear MSSQL Server Query Cache</title><content type="html">&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;NOTE: Strictly not for production servers and I mean it.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you are first time optimizing query or choosing right index then you must know that SQL Server gives result from it's caches if query was already fired once. This is very useful feature but this behavior may tempt you to take wrong decision if this happens outside your knowledge.&lt;/div&gt;&lt;div&gt;You must see:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. DBCC DROPCLEANBUFFERS -- Cleans temp buffers and dirty data.  You may want to use CHECKPOINT before this command. &lt;a href="http://msdn.microsoft.com/en-us/library/ms187762.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms187762.aspx&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. DBCC FREEPROCCACHE -- Use this to clear execution plans &lt;a href="http://msdn.microsoft.com/en-us/library/ms174283.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms174283.aspx &lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I've not given FREEPROCCACHE with parameters which you may or may not be interested in but you should check out the link of microsoft site given there.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;NOTE: Strictly not for production servers and I mean it.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11160305-4302453962803008587?l=rajputyh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/wLG8D2bu9zg2TAIOm5S4Yg1CHTw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wLG8D2bu9zg2TAIOm5S4Yg1CHTw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/wLG8D2bu9zg2TAIOm5S4Yg1CHTw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wLG8D2bu9zg2TAIOm5S4Yg1CHTw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/VdNL/~4/6NuRa_aiGD4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rajputyh.blogspot.com/feeds/4302453962803008587/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11160305&amp;postID=4302453962803008587&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/4302453962803008587?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11160305/posts/default/4302453962803008587?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/VdNL/~3/6NuRa_aiGD4/clear-mssql-server-query-cache.html" title="Clear MSSQL Server Query Cache" /><author><name>Yogee</name><uri>http://www.blogger.com/profile/09194279800230653446</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="29" src="http://3.bp.blogspot.com/_VtHu1cINVlo/SPtdLoXz3cI/AAAAAAAAAjw/4nxNiMEFZtQ/S220/DSC00233_mid.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rajputyh.blogspot.com/2008/12/clear-mssql-server-query-cache.html</feedburner:origLink></entry></feed>

