<?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>Desi Penguin’s Blog &#187; tips</title>
	<atom:link href="http://desipenguin.com/techblog/tag/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://desipenguin.com/techblog</link>
	<description>Open source, Tech Tips, Reviews, Tutorials and more …</description>
	<lastBuildDate>Thu, 12 Jan 2012 18:16:35 +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>How To : Turn off Email Notifications in Outlook</title>
		<link>http://desipenguin.com/techblog/2009/11/24/how-to-turn-off-email-notifications-in-outlook/</link>
		<comments>http://desipenguin.com/techblog/2009/11/24/how-to-turn-off-email-notifications-in-outlook/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 16:43:04 +0000</pubDate>
		<dc:creator>Mandar Vaze</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://desipenguin.com/techblog/?p=342</guid>
		<description><![CDATA[When I moved from manager&#8217;s role to that of Technical contributor, I realized that for Individual contributor, getting a continuous span of undisturbed time is very important to get something worth while done. At times like this, email notifications can be distraction that needs to be turned off.
Most of us are conditioned to respond to [...]]]></description>
			<content:encoded><![CDATA[<p>When I moved from manager&#8217;s role to that of Technical contributor, I realized that for Individual contributor, getting a continuous span of undisturbed time is very important to get something worth while done. At times like this, email notifications can be distraction that needs to be turned off.</p>
<p>Most of us are conditioned to respond to (or at least read) every email sent you immediately. But over a period of time, you realize the not every email needs immediate attention. While communication is important, the method need not always be email. If something is really time critical, (I have observed that) people you reach you by other means as well (apart from the email they sent you) Other emails are important by not time critical.</p>
<p>Default settings in outlook are to notify you (in multiple ways) of new email in your inbox. But do not need to know about each and every single email the instance it reaches your inbox. You can turn off these distractions by turning off the email notifications completely. But it is hidden very well by Microsoft <img src='http://desipenguin.com/techblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>To turn off these notifications, navigate to the following location:</p>
<blockquote><p>Tools-&gt;Options-&gt;Preferences-&gt;Email Options-&gt;Advanced Email Options</p></blockquote>
<p>Now you will see screen similar to the one below. Uncheck all these check boxes.</p>
<div id="attachment_346" class="wp-caption aligncenter" style="width: 378px"><img class="size-full wp-image-346" title="Outlook Setting Window" src="http://desipenguin.com/techblog/wp-content/uploads/2009/11/turn-off-email-distractions.JPG" alt="Turn Off Email Notifications" width="368" height="132" /><p class="wp-caption-text">Turn Off Email Notifications</p></div>
<p>While the above screen shot (and the location to reach this option) is taken from Outlook 2007, Options for other versions of outlook shouldn&#8217;t be very different.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/60f852b5-d01c-48c8-89b3-f2278cb21558/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_c.png?x-id=60f852b5-d01c-48c8-89b3-f2278cb21558" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://desipenguin.com/techblog/2009/11/24/how-to-turn-off-email-notifications-in-outlook/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google Mail and Calendar with Thunderbird</title>
		<link>http://desipenguin.com/techblog/2009/01/23/google-mail-and-calendar-with-thunderbird/</link>
		<comments>http://desipenguin.com/techblog/2009/01/23/google-mail-and-calendar-with-thunderbird/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 18:42:41 +0000</pubDate>
		<dc:creator>Mandar Vaze</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[thunderbird]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://desipenguin.com/techblog/?p=157</guid>
		<description><![CDATA[In my last post on topic ended by showing you how you can install Lightning plugin as well as Provider for Google Calendar plugin.
It seems Lightning plugin is broken with Thunderbird 3.0 Beta 1. Read about it here. In this post, I show you a way around, and more about Accessing Google Calendar right from [...]]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://desipenguin.com/techblog/2008/12/19/calendaring-thunderbird-3-beta/" target="_blank">last post on topic</a> ended by showing you how you can install Lightning plugin as well as Provider for Google Calendar plugin.<br />
It seems Lightning plugin is broken with Thunderbird 3.0 Beta 1. <a href="http://groups.google.com/group/mozilla.support.calendar/browse_thread/thread/86ca5a043009625f?hide_quotes=no" target="_blank">Read about it here</a>. In this post, I show you a way around, and more about Accessing Google Calendar right from your Thunderbird.</p>
<p><span id="more-157"></span>As the thread above mentions, Lightening team has to bump up the minVersion to 3.0b2pre. That means you need to get nightly build (at least as of this writing. Once Beta 2 is released, it is recommended you use Official Beta 2, rather than nightly builds.) You can get the nightly build from <a href="http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-trunk/" target="_blank">here</a>.</p>
<p>Since I downloaded the .zip file, there are no installation involved for me, just unzip the contents into desired folder. Personally I would suggest this method to you all, since this provides portability.</p>
<h3>Setting up Gmail IMAP Account</h3>
<p>Setting up regular IMAP account was very easy with TB 3.0b2pre. But what amazed me was how simple it is to setup Gmail account.  Gmail IMAP is already a preset option when you try to add a new account. In second (and only real) step you need to enter your Name (as it will be displayed to your recipients) and your email address. That is all there is to it.  The last step is confirmation, where is shows your choices, and you need to click <em>Finish </em>so that account is created. So all practical purposes it is essentially one step process.</p>
<p>Compare it to the <a href="http://mail.google.com/support/bin/answer.py?hl=en&amp;answer=77662" target="_blank">instructions </a>you need to follow for Thunderbird 2.0 (Latest TB released version as of this writing)</p>
<p>Before you set any calendar, you need to install and configure the plugin. The instructions are same as listed in <a href="http://desipenguin.com/techblog/2008/12/19/calendaring-thunderbird-3-beta/" target="_blank">my previous post</a>. I had bit of a problem the first time, as in the New calendar option was not enabled. Restarting Thunderbird resolved the problem.</p>
<p>URL to your Google Calendar</p>
<ol>
<li>Go to your <a href="http://www.google.com/calendar/" target="_blank">Google Calendar</a></li>
<li>Go to <em>Settings</em>.</li>
<li>Go to Calendars Tab, and Select the appropriate calendar.</li>
<li> Scroll towards end of the page where you will see entry titled Private Address, and three icons next to it. (XML, ICAL and HTML)</li>
<li>Copy the URL for XML (Right Click-&gt;Copy Link Location in Firefox, Right Click-&gt;Copy Shortcut in IE)</li>
<li>You need to use this URL in Step 4 below.</li>
</ol>
<div id="attachment_159" class="wp-caption aligncenter" style="width: 562px"><img class="size-full wp-image-159" title="Private Address URL for your Google Calendar" src="http://desipenguin.com/techblog/wp-content/uploads/2009/01/gcalurl.png" alt="Private Address URL for your Google Calendar" width="552" height="65" /><p class="wp-caption-text">Private Address URL for your Google Calendar</p></div>
<h3>Setting up Google Calendar</h3>
<ol>
<li>File -&gt; New -&gt;Calendar (You need to be in <em>Inbox</em> view. If you are already in Calendar view, you will not see menu option)</li>
<li>On Network</li>
<li>Format -&gt; Google Calendar</li>
<li>Location  :  As discussed in previous section. Use your Private URL here.</li>
<li>You need to Provide name and select color for your Google Calendar.</li>
</ol>
<p>That&#8217;s it. Now you can see as well as update your Google Calendar from Thunderbird.</p>
<p><span style="color: #999999;">Note : Since the Lightning plugin was broken, I installed the nightly build of Thunderbird in different folder, just in case I need to go back to my working email environment.  If you are installing it afresh, ignore this comment.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://desipenguin.com/techblog/2009/01/23/google-mail-and-calendar-with-thunderbird/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging Python Scripts</title>
		<link>http://desipenguin.com/techblog/2008/12/24/debugging-python-scripts/</link>
		<comments>http://desipenguin.com/techblog/2008/12/24/debugging-python-scripts/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 01:57:06 +0000</pubDate>
		<dc:creator>Mandar Vaze</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cross platform]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://desipenguin.wordpress.com/?p=108</guid>
		<description><![CDATA[Found a great way to debug python scripts interactively using pdb aka Python Debugger. It is similar to gdb used on *nix.
Essentially you import pdb in the beginning of the script, and wherever you need to start debugging, add following statement :
pdb.set_trace()
Now you execute the script from command line, and execution will stop where you [...]]]></description>
			<content:encoded><![CDATA[<p>Found a great way to debug python scripts interactively using pdb aka Python Debugger. It is similar to gdb used on *nix.<br />
Essentially you <code>import pdb</code> in the beginning of the script, and wherever you need to start debugging, add following statement :<br />
<code>pdb.set_trace()</code><br />
Now you execute the script from command line, and execution will stop where you have added set_trace() call. You are presented with pdb prompt. There after it is similar to gdb commands.</p>
<p><span id="more-108"></span>Here is the quick list of pdb commands</p>
<ul>
<li>n : Execute next line</li>
<li>s : Step inside a module</li>
<li>p : Print the value of a variable</li>
<li>c : Continue</li>
<li>l : List. Shows stack trace</li>
<li>q : Quit (Most important command <img src='http://desipenguin.com/techblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</li>
</ul>
<p>For details, check this <a href="http://www.ferg.org/papers/debugging_in_python.html" target="_blank">site</a></p>
<h3>But what if I can&#8217;t debug interactively ?</h3>
<p>Typically, you come across this problem when you are running the script on a server. Even if the script worked OK in test environment, in live environment something goes wrong, because the script is executed by server, and you can not control the arguments that are being passed to the script. In this scenario, you need to resort to age-old logging technique</p>
<p>Here are few line of code you need to add to your script. Modify as per your needs (especially paths)<br />
Earlier in your script (as early as possible) add following lines :<br />
<code><br />
from time import strftime<br />
f = open('D:/temp/log.txt', 'r+')<br />
f.write("-- Begin Log at %s --n" % strftime("%Y-%m-%d %H:%M:%S"))<br />
</code></p>
<p>At the end of your script (as late as possible)  add following lines :<br />
<code><br />
f.write("-- End Log at %s --n" % strftime("%Y-%m-%d %H:%M:%S"))<br />
f.close()<br />
</code></p>
<p>Your basic logging infrastructure is ready. Now you can add <code>f.write()</code> lines through out your code, as and where needed.</p>
<p><span style="color:#808080;">Note : I&#8217;m part of pythondev group on twitter.  Visit the <a href="http://twittgroups.com/group/pythondev" target="_blank">website </a>for details.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://desipenguin.com/techblog/2008/12/24/debugging-python-scripts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HOW TO: Not forget attachment or subject line using Outlook macro</title>
		<link>http://desipenguin.com/techblog/2006/09/05/how-to-not-forget-attachment-or-subject-line-using-outlook-macro/</link>
		<comments>http://desipenguin.com/techblog/2006/09/05/how-to-not-forget-attachment-or-subject-line-using-outlook-macro/#comments</comments>
		<pubDate>Tue, 05 Sep 2006 07:18:00 +0000</pubDate>
		<dc:creator>Mandar Vaze</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[outlook]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://desipenguin.wordpress.com/2006/09/05/how-to-not-forget-attachment-or-subject-line-using-outlook-macro/</guid>
		<description><![CDATA[Following VBA code will remind you if you are sending an email with empty subject line, or when you forget the attachment. It checks mail body for word &#8220;attach&#8221; and then confirms if something is really attached. If you attachment is missing, it will pop-up a dialog box.
The setup

In your Outlook 2003, invoke Visual Basic [...]]]></description>
			<content:encoded><![CDATA[<p>Following VBA code will remind you if you are sending an email with empty subject line, or when you forget the attachment. It checks mail body for word &#8220;attach&#8221; and then confirms if something is really attached. If you attachment is missing, it will pop-up a dialog box.</p>
<h3><span id="more-16"></span>The setup</h3>
<ol>
<li>In your Outlook 2003, invoke Visual Basic Editor, either by pressing Alt+F11, or navigating the menu as &#8220;Tools-&gt;Macro-&gt;Visual Basic Editor&#8221;</li>
<li>In the Left hand side &#8220;Project&#8221; panel, make sure entry named &#8220;ThisOutlookSession&#8221; is highlighted.</li>
<li>Copy paste the code given below in the Right hand side Panel.</li>
<li>Exit out of VB Editor by either Alt+Q or by navigating the menu item File-&gt;Close.</li>
</ol>
<h3>Security</h3>
<ol>
<li>Make sure that the security is set to &#8220;High&#8221; (Tools-&gt;Macro-&gt;Security)</li>
<li>The changes we made will NOT work with High security, so we need to &#8220;certify&#8221; our code, so that it always works.</li>
<li>Invoke &#8220;selfcert.exe&#8221; from &#8220;C:\\Program Files\\Microsoft Office\\OFFICE11\\SELFCERT.EXE&#8221;</li>
<li>In the dialog that pops up, Type your name.</li>
<li>Go back to Visual Basic Editor (Alt+F11 from Outlook)</li>
<li>Navigate to Tools-&gt;Digital Signature.</li>
<li>Click &#8220;Choose&#8221;</li>
<li>Select your name, Click &#8220;OK&#8221;</li>
<li>Click &#8220;OK&#8221; to come out of &#8220;Digital Signature&#8221; dialog.</li>
<li>Exit out of VB Editor (Alt+Q)</li>
</ol>
<h3>Activating the Macro</h3>
<ol>
<li>Restart your Outlook</li>
<li>When asked about macros, select &#8220;Enable Macros&#8221;</li>
</ol>
<h3><span style="font-weight:bold;">Test<br />
</span></h3>
<ol>
<li>Try sending an email with empty subject to yourself, to test if everything works.</li>
<li>Type &#8220;attach&#8221; or &#8220;attached&#8221; in email body and send email to yourself without actually attaching any file.</li>
</ol>
<h3>.. finally &#8220;The Code&#8221;</h3>
<p>Please refer to my earlier post <a href="http://desipenguin.wordpress.com/2006/09/05/how-to-not-forget-attachment-or-subject-line-using-outlook-macro/" target="_blank">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://desipenguin.com/techblog/2006/09/05/how-to-not-forget-attachment-or-subject-line-using-outlook-macro/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

