<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>tewari</title>
	<atom:link href="http://www.tewari.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tewari.info</link>
	<description>Professional Software Development by Ash Tewari</description>
	<lastBuildDate>Fri, 24 May 2013 05:34:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Get Your Windows 8 Start Menu Back with Pokki</title>
		<link>http://www.tewari.info/2013/05/23/get-your-windows-8-start-menu-back-with-pokki/</link>
		<comments>http://www.tewari.info/2013/05/23/get-your-windows-8-start-menu-back-with-pokki/#comments</comments>
		<pubDate>Fri, 24 May 2013 05:34:39 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[add-in]]></category>
		<category><![CDATA[pokki]]></category>
		<category><![CDATA[start menu]]></category>
		<category><![CDATA[win8]]></category>
		<category><![CDATA[windows 8]]></category>
		<category><![CDATA[windows blue]]></category>

		<guid isPermaLink="false">http://www.tewari.info/?p=447</guid>
		<description><![CDATA[I like the new Windows 8 experience. Start screen with live tiles is awesome. But I have been missing the Start Menu when I am on the desktop. There are plenty of rumours that Microsoft will bring back the Start Menu in the next version of Windows - Windows Blue. Until then, you can use [...]]]></description>
			<content:encoded><![CDATA[<p>I like the new Windows 8 experience. Start screen with live tiles is awesome. But I have been missing the Start Menu when I am on the desktop. There are <a href="http://www.redorbit.com/news/technology/1112841701/microsoft-bringing-back-the-start-button-for-windows-8-050913/">plenty</a> of <a href="http://bits.blogs.nytimes.com/2013/05/07/after-bumpy-start-microsoft-rethinks-windows-8/">rumours</a> that Microsoft will bring back the Start Menu in the next version of Windows -<a href="http://www.zdnet.com/microsofts-windows-8-plan-blue-bring-back-the-start-button-boot-to-desktop-7000014075/"> Windows Blue</a>. Until then, you can use one of many third party utilities for that functionality &#8211; <a href="http://www.classicshell.com/">ClassicShell</a>, <a href="http://www.stardock.com/products/start8/">Start8</a> and <a href="https://www.pokki.com/windows-8-start-menu">Pokki</a>.</p>
<p>I started using <a href="https://www.pokki.com/windows-8-start-menu">Pokki</a>. And I love it. It feels like my world is whole again. Pokki is <a href="https://www.pokki.com/windows-8-start-menu">free</a>.</p>
<p><a href="http://www.tewari.info/wp-content/Pokki-Screenshot.png"><img class="alignnone size-full wp-image-448" title="Pokki-Screenshot" src="http://www.tewari.info/wp-content/Pokki-Screenshot.png" alt="" width="624" height="609" /></a></p>
<p>If you want to do what I did, after installing it, open settings</p>
<p><a href="http://www.tewari.info/wp-content/pokki-settings-button.png"><img class="alignnone size-full wp-image-450" title="pokki-settings-button" src="http://www.tewari.info/wp-content/pokki-settings-button.png" alt="" width="619" height="573" /></a></p>
<p>and make these changes:</p>
<p><a href="http://www.tewari.info/wp-content/pokki-my-settings.png"><img class="alignnone size-full wp-image-451" title="pokki-my-settings" src="http://www.tewari.info/wp-content/pokki-my-settings.png" alt="" width="621" height="571" /></a></p>
<hr/>Copyright &copy; 2013 <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>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2013/05/23/get-your-windows-8-start-menu-back-with-pokki/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Site44 Workflow</title>
		<link>http://www.tewari.info/2013/02/06/the-site44-workflow/</link>
		<comments>http://www.tewari.info/2013/02/06/the-site44-workflow/#comments</comments>
		<pubDate>Wed, 06 Feb 2013 17:32:50 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[bootstrap]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[less]]></category>
		<category><![CDATA[site44]]></category>

		<guid isPermaLink="false">http://www.tewari.info/?p=418</guid>
		<description><![CDATA[A light weight development workflow with real-time website deployment. I recently built a sample website to illustrate how clean, semantic html markup can be maintained when using Bootstrap&#8217;s grid system. The solution is to use a css pre-processor to incorporate Bootstrap&#8217;s LESS based mixins into your own .less files and push the Bootstrap instructions down [...]]]></description>
			<content:encoded><![CDATA[<p>A light weight development workflow with real-time website deployment.</p>
<p>I recently built <a href="http://ash.site44.com/hero.html">a sample website</a> to illustrate <a href="http://blog.appliedis.com/2013/02/04/bootstrap-with-less/">how clean, semantic html</a> markup can be maintained when using <a href="http://twitter.github.com/bootstrap/index.html">Bootstrap&#8217;s</a> <a href="http://twitter.github.com/bootstrap/scaffolding.html#gridSystem">grid system</a>. The solution is to use a <a href="http://lesscss.org">css pre-processor</a> to incorporate Bootstrap&#8217;s <a href="http://lesscss.org">LESS</a> based <a href="http://twitter.github.com/bootstrap/extend.html#built-with-less">mixins</a> into your own .less files and push the Bootstrap instructions down into your stylesheets. There are two ways to &#8220;compile&#8221; .less stylesheets &#8211; use a <a href="http://winless.org/">stand-alone LESS compiler</a> or use <a href="https://github.com/cloudhead/less.js">less.js</a>. I found it very convenient to use <a href="https://raw.github.com/cloudhead/less.js/master/dist/less-1.3.3.min.js">less.js</a> (note that it is not recommended in production deployment). As I started working on developing the sample code I found it a bit cumbersome to work with an entire web application project in Visual Studio, considering I was working with some really simple sample client-side html, css. As I craved for an alternative, I stumbled on to a development workflow that is incredibly simple and a lot of fun. I call it the Site44 workflow. Site44 turns your dropbox folders into websites. And it is awesome! Here is what you do -</p>
<p>1. Sign into <a href="http://www.site44.com">Site44.com</a> using your <a href="http://www.dropbox.com">dropbox</a> credentials.</p>
<p>2. Create a new site (all you have to do is come up with a name). I named it &#8220;ash&#8221;. A sub-folder with this name will show up in your <a href="http://www.dropbox.com">dropbox</a> folder.</p>
<p><a href="http://www.tewari.info/wp-content/site44-dropbox-folder.png"><img class="alignnone size-full wp-image-419" title="site44-dropbox-folder" src="http://www.tewari.info/wp-content/site44-dropbox-folder.png" alt="" width="611" height="297" /></a></p>
<p>3. Drag this folder to your <a href="http://www.github.com">Github</a> for Windows screen and drop it there to create a github repo in that folder and <a href="https://github.com/ashtewari/ash.site44.com">push it to github</a>.</p>
<p><a href="http://www.tewari.info/wp-content/site44-to-github.png"><img class="alignnone size-large wp-image-434" title="site44-to-github" src="http://www.tewari.info/wp-content/site44-to-github-1024x711.png" alt="" width="611" height="413" /></a></p>
<p>4. Smile and write code.</p>
<p><span style="font-size: 13px; line-height: 19px;">As you save your code. The changes are deployed in real-time to your website. You commit to your github repo as you please. If you revert to a different version/branch of our code from your git repo, that version will be deployed (almost) instantly to your website. </span><span style="font-size: 13px; line-height: 19px;">I wish there was a .site44ignore feature in <a href="http://www.site44.com">Site44</a>, just like .gitignore. That will allow me to keep my .git folder (and some other files) from getting published to the website. Other than that, t</span><span style="font-size: 13px; line-height: 19px;">his worked out really well for me.</span></p>
<p>I wrote about the experience of extending Bootstrap with LESS here : <a href="http://blog.appliedis.com/2013/02/04/bootstrap-with-less/">Bootstrap with LESS</a>.</p>
<p>Hat tip to <a href="http://www.justinsaraceno.com/">Justin Saraceno</a> for introducing me to <a href="http://www.site44.com">site44</a>.</p>
<p>&nbsp;</p>
<hr/>Copyright &copy; 2013 <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>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2013/02/06/the-site44-workflow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understanding and Using System.Transactions</title>
		<link>http://www.tewari.info/2012/10/17/understanding-and-using-system-transactions/</link>
		<comments>http://www.tewari.info/2012/10/17/understanding-and-using-system-transactions/#comments</comments>
		<pubDate>Wed, 17 Oct 2012 16:10:42 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[System.Transactions]]></category>
		<category><![CDATA[transaction]]></category>
		<category><![CDATA[TransactionScope]]></category>

		<guid isPermaLink="false">http://www.tewari.info/?p=380</guid>
		<description><![CDATA[These are some resources to help grasp System.Transactions functionality and use it effectively in your projects: Features Provided by System.Transactions to create transactional applications Implementing an Implicit Transaction using Transaction Scope MSDN Magazine Articles by John Papa: ADO.NET and System.Transactions Revisiting System.Transactions These are specific to TransactionScope (the way to go in most cases): Here [...]]]></description>
			<content:encoded><![CDATA[<p>These are some resources to help grasp <a title="System.Transactions Namespace" href="http://msdn.microsoft.com/en-us/library/vstudio/system.transactions(v=vs.90).aspx">System.Transactions</a> functionality and use it effectively in your projects:</p>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/vstudio/ee818755(v=vs.100).aspx">Features Provided by System.Transactions</a> to <a href="http://msdn.microsoft.com/en-us/library/vstudio/ee818751(v=vs.100).aspx">create transactional applications</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/vstudio/ee818746(v=vs.100).aspx">Implementing an Implicit Transaction using Transaction Scope</a></li>
<li>MSDN Magazine Articles by<a href="http://www.johnpapa.net/"> John Papa</a>:
<ul>
<li><a href="http://msdn.microsoft.com/en-us/magazine/cc163847.aspx">ADO.NET and System.Transactions</a></li>
<li><a href="http://msdn.microsoft.com/en-us/magazine/cc163527.aspx">Revisiting System.Transactions</a></li>
</ul>
</li>
<li>These are specific to <a href="http://msdn.microsoft.com/en-us/library/vstudio/system.transactions.transactionscope(v=vs.100).aspx">TransactionScope </a>(the way to go in most cases):
<ul>
<li>Here is a practical example of <a href="http://thewayofcode.wordpress.com/2011/12/11/handling-transactions-in-net-using-transactionscope/">Using TransactionScope to handle transactions in .net</a>.</li>
<li>This <a href="http://msdn.microsoft.com/en-us/magazine/cc300805.aspx">article in MSDN Magazine</a> gets in depth with the way a TransactionScope like functionality can be implemented. Gives you a good understanding of what is happening under the hood when using TransactionScope in some Repository implementations in multi-threaded scenarios.</li>
<li>This CodeProject article is another example of <a href="http://www.codeproject.com/Articles/31270/A-Transactional-Repository-Implementation-in-NET">implementing a transactional repository</a>.</li>
<li>There are <a href="http://blogs.msdn.com/b/dbrowne/archive/2010/06/03/using-new-transactionscope-considered-harmful.aspx">excellent tips here</a> about configuring TransactionScope when using it with SQL Server.</li>
</ul>
</li>
<li>This is a good resource for <a href="http://www.codeproject.com/Articles/55472/Committable-Transactions-in-C-SQL">understanding CommitableTransaction</a> usage.</li>
<li>And this one on the CodeProject has brilliant, in-depth and under-the-hood coverage - <a href="http://www.codeproject.com/Articles/35087/Truly-Understanding-NET-Transactions-and-WCF-Imple">Truly Understanding .NET Transactions and WCF Implementation</a>.</li>
</ul>
<p><a href="http://msdn.microsoft.com/en-us/magazine/cc163847.aspx"></a></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">Features Provided by System.Transactions</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">http://msdn.microsoft.com/en-us/library/vstudio/ee818755(v=vs.100).aspx</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">Implementing an Implicit Transaction using Transaction Scope</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">http://msdn.microsoft.com/en-us/library/vstudio/ee818746(v=vs.100).aspx</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">MSDN Articles by John Papa</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">ADO.NET and System.Transactions</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">http://msdn.microsoft.com/en-us/magazine/cc163847.aspx</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">Revisiting System.Transactions</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">http://msdn.microsoft.com/en-us/magazine/cc163527.aspx</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">These are specific to TransactionScope (the way to go in most cases)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">Here is a practical example of Using TransactionScope :</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">http://thewayofcode.wordpress.com/2011/12/11/handling-transactions-in-net-using-transactionscope/</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">This one gets in depth with the way a TransactionScope like functionality can be implemented. Gives you a good understanding of what is happening under the hood when using TransactionScope in some Repository implementations in multi-threaded scenarios.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">http://msdn.microsoft.com/en-us/magazine/cc300805.aspx</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">Here is another example of implementing a transactional repository :</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">http://www.codeproject.com/Articles/31270/A-Transactional-Repository-Implementation-in-NET</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">There are excellent tips here about configuring TransactionScope when used with SQL Server:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">http://blogs.msdn.com/b/dbrowne/archive/2010/06/03/using-new-transactionscope-considered-harmful.aspx</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">This is a good resource for CommitableTransaction usage &#8211; http://www.codeproject.com/Articles/55472/Committable-Transactions-in-C-SQL</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">And this one has brilliant under-the-hood coverage &#8211; http://www.codeproject.com/Articles/35087/Truly-Understanding-NET-Transactions-and-WCF-Impl</div>
<hr/>Copyright &copy; 2013 <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>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2012/10/17/understanding-and-using-system-transactions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Protecting Your Api Keys</title>
		<link>http://www.tewari.info/2012/09/02/protecting-your-api-keys/</link>
		<comments>http://www.tewari.info/2012/09/02/protecting-your-api-keys/#comments</comments>
		<pubDate>Mon, 03 Sep 2012 03:14:38 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[version-control]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.tewari.info/?p=354</guid>
		<description><![CDATA[I am working on a Windows 8 app (details to follow in a subsequent post) and the code is published in a public repo on github. My app uses third-party APIs and after I committed the first cut to github, I realized that I had included my api keys in the code. The whole world [...]]]></description>
			<content:encoded><![CDATA[<p>I am working on a Windows 8 app (details to follow in a subsequent post) and the code is published in a public repo on <a href="http://www.github.com/">github</a>. My app uses third-party APIs and after I committed the first cut to github, I realized that I had included my api keys in the code. The whole world had access to my keys. I did not want to publish the developer keys for those APIs to the entire world.</p>
<p>When the app will be released and distributed, those keys will need to be included in the app somehow. Once the keys are out there they can not be 100% protected from a determined mind.  So, why bother? Why would I want to hide the api keys in the source code? Here are some <a href="http://www.infosecurity-magazine.com/blog/2011/4/20/protect-the-api-keys-to-your-cloud-kingdom/322.aspx">good reasons</a> -</p>
<p>1. It might be illegal to put the keys out there in plain sight for the whole world to see.<br />
2. Developer keys may be throttled or have other restrictions on how many times they can be used per day or per minute.<br />
3. The keys might allow access to expensive cloud computing resources.<br />
4. The keys might allow access to confidential/sensitive customer data.</p>
<p>First, I had to take my keys back from git repo. Can you really remove information from a public git repository? Yes, you can, using git <a href="http://git-scm.com/docs/git-filter-branch/">filter-branch</a>. Here is how &#8211; <a href="https://help.github.com/articles/remove-sensitive-data">https://help.github.com/articles/remove-sensitive-data</a>. It worked! I successfully rewrote the history! My past commits don&#8217;t have those file(s) anymore that had my private api keys.</p>
<p>Next, I made sure that I don&#8217;t make this mistake again -</p>
<p>1. I added a new file ApiKeys.cs to the project.<br />
2. Exposed the api keys as constants from a static class in this new file.<br />
3 Added ApiKeys.cs in .gitignore file, to prevent this file from being committed to the repository.<br />
4. Added instructions in ReadMe.txt for external developers to include their own keys.</p>
<p>This is not an ideal solution. If you are using a continuous build server, this technique will obviously not work. The code will not compile as-is, a file must be added to the project before it will start compiling. This works for me for now, but I am still looking for a better solution.</p>
<hr/>Copyright &copy; 2013 <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>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2012/09/02/protecting-your-api-keys/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Favorite Excel Keyboard Shortcuts</title>
		<link>http://www.tewari.info/2012/08/24/favorite-excel-keyboard-shortcuts/</link>
		<comments>http://www.tewari.info/2012/08/24/favorite-excel-keyboard-shortcuts/#comments</comments>
		<pubDate>Fri, 24 Aug 2012 21:46:23 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[productivity]]></category>

		<guid isPermaLink="false">http://www.tewari.info/?p=347</guid>
		<description><![CDATA[I am a big fan of keyboard shortcuts. Here are some of my favorites keyboard shortcuts in Excel. Copyright &#169; 2013 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 is guilty of copyright infringement. Please contact legal@tewari.info [...]]]></description>
			<content:encoded><![CDATA[<p>I am a big fan of keyboard shortcuts. Here are some of my favorites keyboard shortcuts in Excel.</p>
<p><img class="style2" src="/images/F2toeditselectedcell.png" alt="" width="600" /><br />
<img class="style2" src="/images/Ctrl5tostrikethrough.png" alt="" width="600" /><br />
<img class="style2" src="/images/shiftspacetoselectrow.png" alt="" width="600" /><br />
<img class="style2" src="/images/ctrlspacetoselectcolumn.png" alt="" width="600" /><br />
<img class="style2" src="/images/ctrlminustodeleteselectedrowcolumn.png" alt="" width="600" /><br />
<img class="style2" src="/images/dragcopy-b4.png" alt="" width="600" /><br />
<img class="style2" src="/images/dragcopyafter.png" alt="" width="600" /></p>
<hr/>Copyright &copy; 2013 <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>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2012/08/24/favorite-excel-keyboard-shortcuts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<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 [...]]]></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></p>
<hr/>Copyright &copy; 2013 <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>]]></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 [...]]]></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; 2013 <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>]]></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 [...]]]></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; 2013 <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>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2011/12/05/windigo-1-1-released/feed/</wfw:commentRss>
		<slash:comments>2</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; 2013 <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>]]></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[code]]></category>
		<category><![CDATA[Silverlight]]></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() { InitializeComponent(); } public ChildWindowEx(Point pt) : this() { [...]]]></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>
<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>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></p>
<hr/>Copyright &copy; 2013 <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>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2011/06/07/childwindow-positioning/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
