<?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>IBlog &#187; Uncategorized</title>
	<atom:link href="http://blog.objectpattern.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.objectpattern.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 31 Oct 2011 15:03:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Word documents and merging two branches</title>
		<link>http://blog.objectpattern.com/uncategorized/word-documents-and-merging-two-branches/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=word-documents-and-merging-two-branches</link>
		<comments>http://blog.objectpattern.com/uncategorized/word-documents-and-merging-two-branches/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 18:16:43 +0000</pubDate>
		<dc:creator>Himanshu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.objectpattern.com/uncategorized/word-documents-and-merging-two-branches/</guid>
		<description><![CDATA[Do you create word documents? Do you send them for review to your boss? I think, answers of both of these questions will be “yes” for most people, and I’m not exception! MS Word have a good feature – Track Changes. As it’s name suggests, it  tracks the changes while document is being edited, and [...]]]></description>
			<content:encoded><![CDATA[<p>Do you create word documents? Do you send them for review to your boss? I think, answers of both of these questions will be “yes” for most people, and I’m not exception! MS Word have a good feature – Track Changes. As it’s name suggests, it  tracks the changes while document is being edited, and can show final (edited version) of the document or can show final document with highlighting changes . While changes are highlighted, they are easy to notice and can also navigation across changes easily.</p>
<p>But, if your boss forgot to start the change tracking, then? Well, not to worry, word can do merging of two different branches like a version control. Steps:</p>
<ol>
<li><strong>Very important!</strong> Make sure you are having extra copy (backup) of both the documents (your copy and boss’s copy). Just in case we create mess in the process, you don’t loose your valuable information in these documents.</li>
<li>After making sure both documents (e.g. “My Copy” and “Boss’s Copy”) are closed, open “Boss’s Copy” document in MS Word.</li>
<li>Invoke “Save as“ operation and try and save it over “My Copy” of the document. (Notice already open document name and Save as name in the image)</li>
<li>Word should prompt you for different available option, having one of them to be “Merge changes into existing files” (for example, as  depicted in image), select it and continue with “Save as” operation.</li>
</ol>
<p>In the result of above, “My Copy” document will be updated as if Boss have changed the document while having “Change Track” on.</p>
<p><a href="http://blog.objectpattern.com/wp-content/uploads/2011/07/SaveAs-And-Overwrite-Me.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="SaveAs-And-Overwrite-Me" src="http://blog.objectpattern.com/wp-content/uploads/2011/07/SaveAs-And-Overwrite-Me_thumb.jpg" border="0" alt="SaveAs-And-Overwrite-Me" width="641" height="525" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.objectpattern.com/uncategorized/word-documents-and-merging-two-branches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript, and var</title>
		<link>http://blog.objectpattern.com/uncategorized/javascript-and-var/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=javascript-and-var</link>
		<comments>http://blog.objectpattern.com/uncategorized/javascript-and-var/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 08:46:23 +0000</pubDate>
		<dc:creator>Himanshu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.objectpattern.com/uncategorized/javascript-and-var/</guid>
		<description><![CDATA[While working in my current project, I re-learned this hard way.&#160; And I don’t want to make same mistake again, hence noting it here. Many a times you remember something better when noted somewhere.
I had created a javascript that was similar as below:

   1:  function Type1(){
   2:    [...]]]></description>
			<content:encoded><![CDATA[<p>While working in my current project, I re-learned this hard way.&#160; And I don’t want to make same mistake again, hence noting it here. Many a times you remember something better when noted somewhere.</p>
<p>I had created a javascript that was similar as below:</p>
<div class="csharpcode">
<pre class="alt"><span class="lnum">   1:  </span><span class="kwrd">function</span> Type1(){</pre>
<pre><span class="lnum">   2:  </span>    _type = <span class="str">&quot;type1&quot;</span>;</pre>
<pre class="alt"><span class="lnum">   3:  </span>    <span class="kwrd">this</span>.show = <span class="kwrd">function</span>() { alert(_type); }</pre>
<pre><span class="lnum">   4:  </span>}</pre>
<pre class="alt"><span class="lnum">   5:  </span><span class="kwrd">function</span> Type2(){</pre>
<pre><span class="lnum">   6:  </span>    _type = <span class="str">&quot;type2&quot;</span>;</pre>
<pre class="alt"><span class="lnum">   7:  </span>    <span class="kwrd">this</span>.show = <span class="kwrd">function</span>() { alert(_type); }</pre>
<pre><span class="lnum">   8:  </span>}</pre>
<pre class="alt"><span class="lnum">   9:  </span>o1 = <span class="kwrd">new</span> Type1();</pre>
<pre><span class="lnum">  10:  </span>o2 = <span class="kwrd">new</span> Type2();</pre>
<pre class="alt"><span class="lnum">  11:  </span>o1.show();</pre>
<pre><span class="lnum">  12:  </span>o2.show();</pre>
</div>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p>And me being ignorant about what I have written, was expecting to see two alerts once with “type1” and another with “type2”. </p>
<p>Case that I had was more complex , hence I took more time to understand the problem, and then note that I haven’t have “var”! The code should be as:</p>
<div class="csharpcode">
<pre class="alt"><span class="lnum">   1:  </span><span class="kwrd">function</span> Type1(){</pre>
<pre><span class="lnum">   2:  </span>    <span class="kwrd">var</span> _type = <span class="str">&quot;type1&quot;</span>;</pre>
<pre class="alt"><span class="lnum">   3:  </span>    <span class="kwrd">this</span>.show = <span class="kwrd">function</span>() { alert(_type); }</pre>
<pre><span class="lnum">   4:  </span>}</pre>
<pre class="alt"><span class="lnum">   5:  </span><span class="kwrd">function</span> Type2(){</pre>
<pre><span class="lnum">   6:  </span>    <span class="kwrd">var</span> _type = <span class="str">&quot;type2&quot;</span>;</pre>
<pre class="alt"><span class="lnum">   7:  </span>    <span class="kwrd">this</span>.show = <span class="kwrd">function</span>() { alert(_type); }</pre>
<pre><span class="lnum">   8:  </span>}</pre>
<pre class="alt"><span class="lnum">   9:  </span>o1 = <span class="kwrd">new</span> Type1();</pre>
<pre><span class="lnum">  10:  </span>o2 = <span class="kwrd">new</span> Type2();</pre>
<pre class="alt"><span class="lnum">  11:  </span>o1.show();</pre>
<pre><span class="lnum">  12:  </span>o2.show();</pre>
</div>
<p>Note and Remember, “var” defines the scope of variable as local! </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.objectpattern.com/uncategorized/javascript-and-var/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

