<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>tewari</title>
	
	<link>http://www.tewari.info</link>
	<description>Professional Software Development by Ash Tewari</description>
	<lastBuildDate>Wed, 04 Jan 2012 03:03:39 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/tewari" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="tewari" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Solution to the fetch puzzle</title>
		<link>http://www.tewari.info/2012/01/03/solution-to-the-fetch-puzzle/</link>
		<comments>http://www.tewari.info/2012/01/03/solution-to-the-fetch-puzzle/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 03:00:38 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[puzzle]]></category>
		<category><![CDATA[repo]]></category>

		<guid isPermaLink="false">http://www.tewari.info/?p=330</guid>
		<description><![CDATA[	Here is a brute force solution to the fetch problem -
	Basically, at each step there are three possibilities :
	1. You can fill a bucket.
	2. You can transfer water from one bucket to the other one.
	3. You can dump out the water from a bucket.
	In this brute force solution, I try each one of these steps [...]]]></description>
			<content:encoded><![CDATA[	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Here is a brute force solution to the fetch problem -</div>
	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Basically, at each step there are three possibilities :</div>
	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">1. You can fill a bucket.</div>
	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">2. You can transfer water from one bucket to the other one.</div>
	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">3. You can dump out the water from a bucket.</div>
	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">In this brute force solution, I try each one of these steps and then try all three again after each one of the previous steps. And on</div>
	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">and on untill I get the required amount of water in one of the buckets.</div>
	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Check it out. Source code is on my github repo -</div>
	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">https://github.com/ashtewari/fetch</div>
	<p>Here is a brute force solution to the <a title="fetch-puzzle" href="http://www.tewari.info/2011/12/26/solve-puzzle-with-code/">fetch puzzle</a>. Basically, at each step there are three possibilities :</p>
	<ol>
	<li>You can fill a bucket.</li>
	<li>You can transfer water from one bucket to the other one.</li>
	<li>You can dump out the water from a bucket.</li>
	</ol>
	<p>In this brute force solution, I try each one of these steps and then try all three again after each one of the previous steps. And on and on until I get the required amount of water in one of the buckets.</p>
	<p>Check it out. Source code is on my github repo - <a title="github-repo-fetch" href="https://github.com/ashtewari/fetch">https://github.com/ashtewari/fetch</a><hr/>Copyright &copy; 2012 <strong><a href="http://www.tewari.info">tewari</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@tewari.info so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>
</p>
<p class="akst_link"><a href="http://www.tewari.info/?p=330&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_330" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2012/01/03/solution-to-the-fetch-puzzle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solve puzzle with code</title>
		<link>http://www.tewari.info/2011/12/26/solve-puzzle-with-code/</link>
		<comments>http://www.tewari.info/2011/12/26/solve-puzzle-with-code/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 04:44:17 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[interview]]></category>
		<category><![CDATA[logic]]></category>
		<category><![CDATA[puzzle]]></category>

		<guid isPermaLink="false">http://www.tewari.info/?p=322</guid>
		<description><![CDATA[	Here is a quite common programming interview puzzle &#8211; You have two buckets. A 3 gallon bucket and a 5 gallon bucket. Buckets are not marked or graduated. You are to fetch 4 gallon of water in a single trip to the river. How will you do it?
	Obviousy, this question is asked by changing the [...]]]></description>
			<content:encoded><![CDATA[	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Here is a quite common programming interview puzzle &#8211; You have two buckets. A 3 gallon bucket and a 5 gallon bucket. Buckets are not marked or graduated. You are to fetch 4 gallon of water in a single trip to the river. How will you do it?</div>
	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Obviousy, this question is asked by changing the capacities of the two buckets and the amount of water to be fetched.</div>
	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Your mission, should you choose to accept it, is to write a program to solve this puzzle in a generic way. Your program should take 3 inputs &#8211; capacities of the two buckets and the amount of water to be fetched. After solving the puzzle, your program must write out the solution step-by-step. You can use any programming language, any platform, any programming technique to write the program. Use whatever you like &#8211; C#, VB, C, C++, Java, Ruby, Python, F#, Boo, Javascript or any other language of your choice. Use design patterns, TDD, BDD, MVVM, Linq or whatever. Make it blazing fast, exploit multiple cores, use artificial intelligence. Go nuts! If you want to write the whole program in T-sql, powershell script or a batch script, go ahead. Heck ! you can even do it with regular expressions, if that your thing!</div>
	<div>Your mission, should you choose to accept it, is to write a program to solve this common programming interview puzzle in a generic way.</div>
	<div>The puzzle goes like this - You have two buckets. A 3 gallon bucket and a 5 gallon bucket. Buckets are not marked or graduated. You are to fetch 4 gallons of water in a single trip to the river. How will you do it?</div>
	<div><img class="alignnone size-medium wp-image-323" title="tommylees-flickr-buckets" src="http://www.tewari.info/wp-content/tommylees-flickr-buckets-300x225.jpg" alt="tommylees-flickr-buckets" width="600" height="450" /></div>
	<div><em>Photo Credit : http://www.flickr.com/photos/71256895@N00/3688461774/sizes/l/in/photostream/</em></div>
	<div><em><br />
</em></div>
	<div>Your program should take 3 inputs &#8211; capacities of the two buckets and the amount of water to be fetched. After solving the puzzle, your program must write out the solution step-by-step. You can use any language, any platform and any technique to write the program. Use whatever you like &#8211; C#, VB, C, C++, Java, Ruby, Python, F#, Boo, Javascript, powershell script or any other language of your choice. Use design patterns, TDD, BDD, MVVM, Linq or whatever. Make it blazing fast, exploit multiple cores, use artificial intelligence. Go nuts! If you want to write the whole program in T-sql, go ahead. Heck ! you can even do it with regular expressions, if that your thing!</div>
<hr/>Copyright &copy; 2012 <strong><a href="http://www.tewari.info">tewari</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@tewari.info so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>
</p>
<p class="akst_link"><a href="http://www.tewari.info/?p=322&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_322" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2011/12/26/solve-puzzle-with-code/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windigo 1.1 Released</title>
		<link>http://www.tewari.info/2011/12/05/windigo-1-1-released/</link>
		<comments>http://www.tewari.info/2011/12/05/windigo-1-1-released/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 13:59:47 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[diigo]]></category>
		<category><![CDATA[windigo]]></category>
		<category><![CDATA[windows phone]]></category>
		<category><![CDATA[wp7]]></category>

		<guid isPermaLink="false">http://www.tewari.info/?p=313</guid>
		<description><![CDATA[	Windigo is a windows phone app to access your diigo account on windows phone 7.
	Create, edit and search diigo bookmarks. Slick, to-the-point interface. Browse and search public bookmarks of other diigo users. Tap on the bookmark for details, including tags. Tap on any tag to narrow your search. Trial version is available.
	Windigo 1.1 is out [...]]]></description>
			<content:encoded><![CDATA[	<p><a href="http://www.windowsphone.com/en-US/apps/fa40440c-a974-4329-b650-cf46d7c6eae4"><img class="alignleft size-medium wp-image-315" title="windigo-samsung" src="http://www.tewari.info/wp-content/windigo_10-3-2011_0.52.40.563-157x300.png" alt="windigo-samsung" width="157" height="300" /></a><a title="windigo-marketplace" href="http://www.windowsphone.com/en-US/apps/fa40440c-a974-4329-b650-cf46d7c6eae4">Windigo </a>is a windows phone app to access your <a title="diigo-website-url" href="http://www.diigo.com">diigo </a>account on windows phone 7.</p>
	<p>Create, edit and search diigo bookmarks. Slick, to-the-point interface. Browse and search public bookmarks of other diigo users. Tap on the bookmark for details, including tags. Tap on any tag to narrow your search. Trial version is available.</p>
	<p><a title="windigo-download-link" href="http://www.windowsphone.com/en-US/apps/fa40440c-a974-4329-b650-cf46d7c6eae4">Windigo 1.1</a> is out on the windows phone marketplace now.  Highlights of this update :</p>
	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">- Last SearchScope used is now persistent</div>
	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">- Fixed search when a search term is picked from suggested words</div>
	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">- Problem report now includes system info</div>
	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">- Handle crash on navigating from main page</div>
	<div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">- Fixed feature tracking for analytics</div>
	<ul>
	<li>Last SearchScope used is now persistent</li>
	<li>Fixed search when a search term is picked from suggested words</li>
	<li>Problem report now includes system info</li>
	<li>Handle crash on navigating from main page</li>
	<li>Fixed feature tracking for analytics</li>
	</ul>
<hr/>Copyright &copy; 2012 <strong><a href="http://www.tewari.info">tewari</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@tewari.info so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>
</p>
<p class="akst_link"><a href="http://www.tewari.info/?p=313&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_313" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2011/12/05/windigo-1-1-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Call For Windigo Beta Testers</title>
		<link>http://www.tewari.info/2011/10/08/call-for-windigo-beta-testers/</link>
		<comments>http://www.tewari.info/2011/10/08/call-for-windigo-beta-testers/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 19:06:36 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[diigo]]></category>
		<category><![CDATA[qa]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[windigo]]></category>
		<category><![CDATA[windows phone]]></category>
		<category><![CDATA[wp7]]></category>

		<guid isPermaLink="false">http://www.tewari.info/?p=295</guid>
		<description><![CDATA[	Windigo is a windows phone app. It lets you access your Diigo bookmarks on the go from your windows phone. You can  browse, edit and create new bookmarks. Search your and other&#8217;s (public) bookmarks. Drill-down using tags. Share your bookmarks with your friends.
	I have completed developing this app and I would like to get [...]]]></description>
			<content:encoded><![CDATA[	<p>Windigo is a windows phone app. It lets you access your <a href="http://www.diigo.com/">Diigo </a>bookmarks on the go from your windows phone. You can  browse, edit and create new bookmarks. Search your and other&#8217;s (public) bookmarks. Drill-down using tags. Share your bookmarks with your friends.</p>
	<p>I have completed developing this app and I would like to get it in the hands of a few more people to get some additional feedback before I submit it in windows phone marketplace. If you have a windows phone and a windows live id, you can help with this. Your phone does not need to be a developer (unlocked) phone.</p>
	<p>If you are interested, <a href="http://www.tewari.info/contact-me/">contact me</a>.</p>
	<p>Here is what I will do for you :</p>
	<li>I will acknowledge your role in preparing Windigo for release.</li>
	<li>Your name and a link to your website will appear in the credits page for Windigo.</li>
	<li>I will return the favor.</li>
<hr/>Copyright &copy; 2012 <strong><a href="http://www.tewari.info">tewari</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@tewari.info so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>
</p>
<p class="akst_link"><a href="http://www.tewari.info/?p=295&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_295" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2011/10/08/call-for-windigo-beta-testers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ChildWindow Positioning</title>
		<link>http://www.tewari.info/2011/06/07/childwindow-positioning/</link>
		<comments>http://www.tewari.info/2011/06/07/childwindow-positioning/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 11:23:52 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[silverlight ChildWindow ArrangeOverride]]></category>

		<guid isPermaLink="false">http://www.tewari.info/?p=269</guid>
		<description><![CDATA[	Silverlight ChildWindow is centered over the parent control. I have extended ChildWindow to open it at a specific position.
	Here is a live demo : childwindow-positioning-demo
	And here is the code :
	public partial class ChildWindowEx : ChildWindow
{
	
    Point _pt = new Point(0,0);
	
    public ChildWindowEx()
    {
    [...]]]></description>
			<content:encoded><![CDATA[	<p>Silverlight <a title="MSDN_Silverlight_ChildWindow" href="http://msdn.microsoft.com/en-us/library/system.windows.controls.childwindow(v=vs.95).aspx" target="_self">ChildWindow</a> is centered over the parent control. I have extended ChildWindow to open it at a specific position.</p>
	<p><div class="wp-caption alignnone" style="width: 659px"><img title="Positioned ChildWindow" src="http://www.tewari.info/images/PositionedChildWindow-screenshot.png" alt="Positioned ChildWindow" width="649" height="391" /><p class="wp-caption-text">Positioned ChildWindow</p></div></p>
	<p>Here is a live demo : <a href="http://www.tewari.info/childwindow-positioning-demo/">childwindow-positioning-demo</a></p>
	<p>And here is the code :</p>
	<pre name="code" class="c-sharp">public partial class ChildWindowEx : ChildWindow
{
	
    Point _pt = new Point(0,0);
	
    public ChildWindowEx()
    {
        InitializeComponent();
    }
	
    public ChildWindowEx(Point pt) : this()
    {
        _pt = pt;
    }
	
    protected override Size ArrangeOverride(Size finalSize)
    {
        Grid grid = Utils.FindChild<Grid>(this, \"ContentRoot\");
	
        if (grid != null)
        {
            grid.Arrange(new Rect(_pt.X, _pt.Y, grid.DesiredSize.Width, grid.DesiredSize.Height));
            return finalSize;
        }
	
        return base.ArrangeOverride(finalSize);
    }
}</pre>
	<p>Visual Studio 2010 Solution : <a href="http://www.tewari.info/downloads/PositionedChildWindow.zip">download</a><hr/>Copyright &copy; 2012 <strong><a href="http://www.tewari.info">tewari</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@tewari.info so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>
</p>
<p class="akst_link"><a href="http://www.tewari.info/?p=269&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_269" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2011/06/07/childwindow-positioning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove ListBoxItem Highlighting</title>
		<link>http://www.tewari.info/2011/04/29/remove-listboxitem-highlighting/</link>
		<comments>http://www.tewari.info/2011/04/29/remove-listboxitem-highlighting/#comments</comments>
		<pubDate>Sat, 30 Apr 2011 03:25:58 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[xaml]]></category>
		<category><![CDATA[ControlTemplate]]></category>
		<category><![CDATA[ListBox]]></category>
		<category><![CDATA[ListboxItem]]></category>

		<guid isPermaLink="false">http://www.tewari.info/?p=239</guid>
		<description><![CDATA[	A Silverlight/Wpf ListBoxItem is highlighted when selected or when the mouse hovers over it.
	I need to display a list of items that are not highlighted when selected. This is a common scenario when displaying an inactive list for simply listing out some information.
	ListBoxItem&#8217;s default template can be easily inspected and modified using Expression Blend &#8211; [...]]]></description>
			<content:encoded><![CDATA[	<p>A Silverlight/Wpf ListBoxItem is highlighted when selected or when the mouse hovers over it.</p>
	<p>I need to display a list of items that are not highlighted when selected. This is a common scenario when displaying an inactive list for simply listing out some information.</p>
	<p>ListBoxItem&#8217;s default template can be easily inspected and modified using Expression Blend &#8211; Select a ListBoxItem in Objects and Timeline pane, Right click and select Edit template &gt; Edit a Copy. Name you template and save it at the scope of your choice.</p>
	<p>This will create a copy of the template and allow you to modify it. Switch to the xaml view. Locate the VisualStates of MouseOver, Selected and Focused, and blank them out -</p>
	<p><img class="alignnone size-full wp-image-241" title="de-highlighted-xaml" src="http://www.tewari.info/wp-content/2011-04-29_2257.png" alt="de-highlighted-xaml" width="700" height="489" /></p>
	<p>The style is applied to the ListBoxItems using ItemContainerStyle -</p>
	<p><img class="alignnone size-full wp-image-243" title="applying-style-to-listboxitems" src="http://www.tewari.info/wp-content/2011-04-29_2307.png" alt="applying-style-to-listboxitems" width="571" height="106" /></p>
	<p>Here is the xaml style for the ListBoxItem -<br />
<textarea class="xml" name="code"><Style x:Key="ListBoxtemStyleNoHighlighting" TargetType="ListBoxItem"><br />
    <Setter Property="Padding" Value="3"/><br />
    <Setter Property="HorizontalContentAlignment" Value="Left"/><br />
    <Setter Property="VerticalContentAlignment" Value="Top"/><br />
    <Setter Property="Background" Value="Transparent"/><br />
    <Setter Property="BorderThickness" Value="1"/><br />
    <Setter Property="TabNavigation" Value="Local"/><br />
    <Setter Property="Template"><br />
        <Setter.Value><br />
            <ControlTemplate TargetType="ListBoxItem"><br />
                <Grid Background="{TemplateBinding Background}"><br />
                    <VisualStateManager.VisualStateGroups><br />
                        <VisualStateGroup x:Name="CommonStates"><br />
                            <VisualState x:Name="Normal"/><br />
                            <VisualState x:Name="MouseOver"/><br />
                        </VisualStateGroup><br />
                        <VisualStateGroup x:Name="SelectionStates"><br />
                            <VisualState x:Name="Unselected"/><br />
                            <VisualState x:Name="Selected"/><br />
                        </VisualStateGroup><br />
                        <VisualStateGroup x:Name="FocusStates"><br />
                            <VisualState x:Name="Focused"/><br />
                            <VisualState x:Name="Unfocused"/><br />
                        </VisualStateGroup><br />
                    </VisualStateManager.VisualStateGroups><br />
                    <Rectangle x:Name="fillColor" Fill="#FFBADDE9" IsHitTestVisible="False"<br />
				Opacity="0" RadiusY="1" RadiusX="1"/><br />
                    <Rectangle x:Name="fillColor2" Fill="#FFBADDE9" IsHitTestVisible="False"<br />
				Opacity="0" RadiusY="1" RadiusX="1"/><br />
                    <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}"<br />
			Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"<br />
			Margin="{TemplateBinding Padding}"/><br />
                    <Rectangle x:Name="FocusVisualElement" RadiusY="1" RadiusX="1" Stroke="#FF6DBDD1"<br />
			StrokeThickness="1" Visibility="Collapsed"/><br />
                </Grid><br />
            </ControlTemplate><br />
        </Setter.Value><br />
    </Setter><br />
</Style></textarea></p>
	<p>After the style is applied, the ListBoxItems are not highlighted when selected or focused. Here is a live demo of a ListBox that does not highlight when items are selected : <a href="http://www.tewari.info/remove-listboxitem-highlighting-demo/">remove-listboxitem-hlighting-demo</a><hr/>Copyright &copy; 2012 <strong><a href="http://www.tewari.info">tewari</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@tewari.info so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>
</p>
<p class="akst_link"><a href="http://www.tewari.info/?p=239&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_239" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2011/04/29/remove-listboxitem-highlighting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sideload Windows Phone</title>
		<link>http://www.tewari.info/2010/11/25/sideload-windows-phone/</link>
		<comments>http://www.tewari.info/2010/11/25/sideload-windows-phone/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 21:02:12 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[apphub]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[windows phone]]></category>
		<category><![CDATA[wp7]]></category>
		<category><![CDATA[xap]]></category>

		<guid isPermaLink="false">http://www.tewari.info/?p=222</guid>
		<description><![CDATA[	1. Create your AppHub account here - http://create.msdn.com. Registration walk through is here.
	2. Unlock your phone &#8211; using PhoneReg.exe (usually) located here &#8211; &#8220;C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.0\Tools\Phone Registration\PhoneReg.exe&#8221;
	
	
	3. Sideload xap into your phone. Use XapDeploy.exe (usually) located here &#8211; &#8220;C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.0\Tools\XAP Deployment\XapDeploy.exe&#8221;
	
	You can also deploy straight from Visual Studio to Windows [...]]]></description>
			<content:encoded><![CDATA[	<p>1. Create your AppHub account here -<a href="http://create.msdn.com"> http://create.msdn.com</a>. Registration walk through is <a title="registration-walk-through" href="http://create.msdn.com/en-US/home/about/developer_registration_walkthrough">here</a>.</p>
	<p>2. Unlock your phone &#8211; using PhoneReg.exe (usually) located here &#8211; &#8220;C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.0\Tools\Phone Registration\PhoneReg.exe&#8221;</p>
	<p><img class="alignnone size-full wp-image-228" title="wp-Start-WPDevTools" src="http://www.tewari.info/wp-content/wp-Start-WPDevTools.png" alt="wp-Start-WPDevTools" width="490" height="244" /></p>
	<p><img class="alignnone size-full wp-image-227" title="wp-dev-phone-registration" src="http://www.tewari.info/wp-content/wp-dev-phone-registration.png" alt="wp-dev-phone-registration" width="500" height="450" /></p>
	<p>3. Sideload xap into your phone. Use XapDeploy.exe (usually) located here &#8211; &#8220;C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.0\Tools\XAP Deployment\XapDeploy.exe&#8221;</p>
	<p><img title="wp-app-deployment" src="../wp-content/wp-app-deployment.png" alt="wp-app-deployment" width="500" height="450" /></p>
	<p>You can also deploy straight from Visual Studio to Windows Phone Device. Connect your phone to your computer.<br />
Make sure Visual Studio deployment target is &#8220;Windows Phone 7 Device&#8221; :</p>
	<p><img class="alignnone size-full wp-image-233" title="wp-device-target" src="http://www.tewari.info/wp-content/wp-device-target1.png" alt="wp-device-target" width="477" height="118" /></p>
	<p>From Toolbar, select Build, Deploy Solution.<hr/>Copyright &copy; 2012 <strong><a href="http://www.tewari.info">tewari</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@tewari.info so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>
</p>
<p class="akst_link"><a href="http://www.tewari.info/?p=222&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_222" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2010/11/25/sideload-windows-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Started with MVVM</title>
		<link>http://www.tewari.info/2010/11/06/getting-started-with-mvvm/</link>
		<comments>http://www.tewari.info/2010/11/06/getting-started-with-mvvm/#comments</comments>
		<pubDate>Sat, 06 Nov 2010 16:29:24 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[CodeCamp]]></category>
		<category><![CDATA[mvvm]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://www.tewari.info/?p=220</guid>
		<description><![CDATA[	I just finished presenting here at RDU Code Camp. It was a great crowd ! Here are the slides -
	Getting started with MVVM



View more presentations from ashtewari.

	Copyright &#169; 2012 tewari. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at [...]]]></description>
			<content:encoded><![CDATA[	<p>I just finished presenting here at <a href="http://codecamp.org/">RDU Code Camp</a>. It was a great crowd ! Here are the slides -</p>
	<div style="width:425px" id="__ss_5687145"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/ashtewari/getting-started-with-mvvm" title="Getting started with MVVM">Getting started with MVVM</a></strong><object id="__sse5687145" width="425" height="355"><br />
<param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=gettingstartedwithmvvm-101106112559-phpapp01&#038;stripped_title=getting-started-with-mvvm&#038;userName=ashtewari" />
<param name="allowFullScreen" value="true"/>
<param name="allowScriptAccess" value="always"/><embed name="__sse5687145" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=gettingstartedwithmvvm-101106112559-phpapp01&#038;stripped_title=getting-started-with-mvvm&#038;userName=ashtewari" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><br />
<div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/ashtewari">ashtewari</a>.</div>
</div>
	<hr/>Copyright &copy; 2012 <strong><a href="http://www.tewari.info">tewari</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@tewari.info so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>
</p>
<p class="akst_link"><a href="http://www.tewari.info/?p=220&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_220" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2010/11/06/getting-started-with-mvvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Win Advanced MVVM Book</title>
		<link>http://www.tewari.info/2010/05/09/win-advanced-mvvm-book/</link>
		<comments>http://www.tewari.info/2010/05/09/win-advanced-mvvm-book/#comments</comments>
		<pubDate>Mon, 10 May 2010 03:33:06 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[xaml]]></category>
		<category><![CDATA[CodeCamp]]></category>
		<category><![CDATA[mvvm]]></category>
		<category><![CDATA[speaking]]></category>

		<guid isPermaLink="false">http://www.tewari.info/?p=200</guid>
		<description><![CDATA[	I am presenting a session on Building WPF Application using MVVM (Model-View-ViewModel) on May 15th at the Carolina Code Camp 2010.
	I will dissect a Sample WPF MVVM application and then highlight the most important aspects of the MVVM by coding a brand new ViewModel and incorporating it into the application. You will learn about the [...]]]></description>
			<content:encoded><![CDATA[	<p><a href="../library/josh-smith/advanced-mvvm/"><img class="alignleft" title="Advanced MVVM Cover" src="http://www.tewari.info/wp-content/advancedmvvmcover.jpg" alt="Advanced MVVM Cover" width="246" height="320" /></a>I am presenting a session on Building WPF Application using MVVM (<a title="Wikipedia-MVVM" href="http://en.wikipedia.org/wiki/Model_View_ViewModel">Model-View-ViewModel</a>) on May 15th at the <a title="Carolina Code Camp 2010" href="http://codecamp.developersguild.org/">Carolina Code Camp</a> 2010.</p>
	<p>I will dissect a Sample WPF MVVM application and then highlight the most important aspects of the MVVM by coding a brand new ViewModel and incorporating it into the application. You will learn about the Roles of the MVVM triad, the advantages of using MVVM and Characteristics of the ViewModel.</p>
	<p>Attendees will be eligible to win <del datetime="2010-06-02T01:39:18+00:00">two copies</del> one copy (see below) of <a title="Josh Smith" href="http://joshsmithonwpf.wordpress.com/">Josh Smith&#8217;s</a> <a title="advanced-mvvm-book" href="http://joshsmithonwpf.wordpress.com/advanced-mvvm/">Advanced MVVM book</a> as well as a few other WPF Books.</p>
	<p><em>{ I will be giving away one hard copy version of the book instead of digital versions due to concerns about DRM protection and unclear gift guidelines at lulu.com }</em>.</p>
	<p>And the winner is &#8230; Mark Freeman !!! Congratulations Mark, your copy of &#8220;Advanced MVVM&#8221; is on its way. Thanks for attending the code camp and your feedback.<br />
<hr/>Copyright &copy; 2012 <strong><a href="http://www.tewari.info">tewari</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@tewari.info so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>
</p>
<p class="akst_link"><a href="http://www.tewari.info/?p=200&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_200" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2010/05/09/win-advanced-mvvm-book/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVN Merge – Selecting Changesets</title>
		<link>http://www.tewari.info/2010/04/25/svn-merge-selecting-changesets/</link>
		<comments>http://www.tewari.info/2010/04/25/svn-merge-selecting-changesets/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 00:15:31 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[version-control]]></category>
		<category><![CDATA[merge-tracking]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[TortoiseSVN]]></category>

		<guid isPermaLink="false">http://www.tewari.info/2010/04/25/svn-merge-selecting-changesets/</guid>
		<description><![CDATA[	Here is a simple scenario – I have already merged changesets 45-55 from the trunk to branch b1. After this merge, more changes (56-60) were submitted into the trunk and I now need to merge those changes also to branch b1.
	Which changesets do you select to merge ? 56-60, right ? Well, not exactly. It [...]]]></description>
			<content:encoded><![CDATA[	<p>Here is a simple scenario – I have already merged changesets 45-55 from the trunk to branch b1. After this merge, more changes (56-60) were submitted into the trunk and I now need to merge those changes also to branch b1.</p>
	<p>Which changesets do you select to merge ? 56-60, right ? Well, not exactly. It depends. If you are using <a href="http://subversion.tigris.org/">Subversion</a> merge command, you will need to specify 55-60. If you are using <a href="http://tortoisesvn.net/">TortoiseSVN</a>, you will select 56-60. You should keep this in mind if you are used to TortoiseSVN and you are attempting a merge using SVN merge command. Otherwise, you will end up with a merge without change 56.</p>
	<p>Selecting changes to merge can become non-trivial when you don’t know which changes have already been merged. However, there is good news. With subversion 1.5, when you are selecting changes from source branch to merge into a target branch, don’t do it ! Subversion 1.5 onwards has built-in merge tracking. When using TortoiseSVN, if your intention is to merge all changes, just leave the changeset selection blank. Subversion knows which ones have already been merged and which ones to merge and it does it automatically. You can also select changes that have already been merged and those will be handled (excluded) automatically too.</p>
	<p>There is a summary of what to expect from Subversion Merge-Tracking feature here &#8211; <a href="http://blog.red-bean.com/sussman/?p=92">Subversion 1.5 merge-tracking in a nutshell</a>.</p>
	<p>There is detailed description of Subversion Merge-Tracking <a href="http://svn.apache.org/repos/asf/subversion/trunk/notes/merge-tracking/index.html">here</a> and search for ‘mergeinfo property’ in Subversion <a href="http://svnbook.red-bean.com/">documentation</a>.</p>
	<p><a href="http://www.tewari.info/wp-content/20100425_1151.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="changes already merged appear in grey" src="http://www.tewari.info/wp-content/20100425_1151_thumb.png" border="0" alt="changes already merged appear in grey" width="596" height="484" /></a></p>
	<p>The above screen-shot shows the changes already merged in grey. Thanks to Subversion’s mergeinfo property.</p>
	<p>So, can I just stop worrying about changesets altogether, when merging ? There are a few caveats to how mergeinfo metadata is (and sometimes not) recorded. Read this for more information -  <a href="http://svnbook.red-bean.com/en/1.5/svn.branchmerge.advanced.html#svn.branchmerge.advanced.finalword">The Final Word on Merge Tracking</a>.</p>
	<p>Read about <a href="http://subversion.tigris.org/">Subversion</a> merging and branching <a href="http://svnbook.red-bean.com/en/1.5/index.html">here</a> and <a href="http://tortoisesvn.net/">TortoiseSVN</a> merging documentation <a href="http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-merge.html">here</a> – browse down to these sections : Reviewing the Merge Results and Merge Tracking.<hr/>Copyright &copy; 2012 <strong><a href="http://www.tewari.info">tewari</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@tewari.info so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>
</p>
<p class="akst_link"><a href="http://www.tewari.info/?p=196&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_196" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2010/04/25/svn-merge-selecting-changesets/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

