<?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"
	>

<channel>
	<title>blog - jaidev.info &#187; Hacks</title>
	<atom:link href="http://jaidev.info/home/blog/archives/categories/tech/hacks/feed" rel="self" type="application/rss+xml" />
	<link>http://jaidev.info/home/blog</link>
	<description></description>
	<pubDate>Sat, 02 Aug 2008 01:03:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>HOWTO Retrieve Nokia N75 Security Code</title>
		<link>http://jaidev.info/home/blog/archives/2008/01/25/howto-retrieve-nokia-n75-security-code.html</link>
		<comments>http://jaidev.info/home/blog/archives/2008/01/25/howto-retrieve-nokia-n75-security-code.html#comments</comments>
		<pubDate>Thu, 24 Jan 2008 18:45:04 +0000</pubDate>
		<dc:creator>Jaidev</dc:creator>
		
		<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://jaidev.info/home/blog/archives/2008/01/25/howto-retrieve-nokia-n75-security-code.html</guid>
		<description><![CDATA[Okay, the Nokia N75 has a serious bug. When you change the default security code from 12345 to something else, it allows you to choose a security code with more than 5 digits. But when you&#8217;re required to enter the code, it accepts only 5. This bug and the time gap between when I changed [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, the Nokia N75 has a serious bug. When you change the default security code from 12345 to something else, it allows you to choose a security code with more than 5 digits. But when you&#8217;re required to enter the code, it accepts only 5. This bug and the time gap between when I changed the code to when I wanted to use it meant that I forgot what my code was.</p>
<p>I didn&#8217;t want to flash the phone, so I figured out a simpler way of recovering the code off the phone. This may or may not work with other phones and may or may not hose it. Here goes (windoze based) - </p>
<ul>
<li>Install Nemesis Service Suite (NSS).</li>
<li>Connect the phone through a USB cable, choose pc-suite mode on the phone.</li>
<li>In NSS, go to the <b>Phone Info</b> section and the <b>Permanent Memory</b> tab.</li>
<li>Read the permanent memory into a file.</li>
<li>Open this file in a text-editor, it is organised in numbered sections. Locate section [308] and the line starting with 5= within this section.</li>
<li>The 5 ASCII values (in hexadecimal) following 5= should be the security code. For instance, if the code was 12345, the line would be 5=3132333435 &#8230; </li>
</ul>
<p>For older Nokia phones, just use <a href="http://nfader.z-host.ru/">this master security code generator</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaidev.info/home/blog/archives/2008/01/25/howto-retrieve-nokia-n75-security-code.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress Comment Count</title>
		<link>http://jaidev.info/home/blog/archives/2007/01/23/wordpress-comment-count.html</link>
		<comments>http://jaidev.info/home/blog/archives/2007/01/23/wordpress-comment-count.html#comments</comments>
		<pubDate>Tue, 23 Jan 2007 06:37:55 +0000</pubDate>
		<dc:creator>Jaidev</dc:creator>
		
		<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://jaidev.info/home/blog/archives/2007/01/23/wordpress-comment-count.html</guid>
		<description><![CDATA[I use the akismet wordpress plugin to nuke spam. This eventually screws up the consistency of the wordpress database resulting in incorrect comment counts in some blog posts. Thankfully, this is quite trivial to fix with a few tweaks on the MYSQL database. Here is a script to do just that.
Disclaimer: Although the script fixed [...]]]></description>
			<content:encoded><![CDATA[<p>I use the <a href="http://www.akismet.com">akismet</a> wordpress plugin to nuke spam. This eventually screws up the consistency of the wordpress database resulting in incorrect comment counts in some blog posts. Thankfully, this is quite trivial to fix with a few tweaks on the MYSQL database. <a href="http://jaidev.info/downloads/wp_comment_count.pl">Here is a script</a> to do just that.</p>
<p><small>Disclaimer: Although the script fixed my database, you should verify that your symptoms are the same. I am not liable for any issues due to this script :-).</small></p>
]]></content:encoded>
			<wfw:commentRss>http://jaidev.info/home/blog/archives/2007/01/23/wordpress-comment-count.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Mutt, Spamassassin and AWL</title>
		<link>http://jaidev.info/home/blog/archives/2006/10/28/mutt-spamassassin-and-awl.html</link>
		<comments>http://jaidev.info/home/blog/archives/2006/10/28/mutt-spamassassin-and-awl.html#comments</comments>
		<pubDate>Sat, 28 Oct 2006 10:02:48 +0000</pubDate>
		<dc:creator>Jaidev</dc:creator>
		
		<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://jaidev.info/home/blog/archives/2006/10/28/mutt-spamassassin-and-awl.html</guid>
		<description><![CDATA[As any spamassassin user would agree, the spammers aren&#8217;t dumb either. They update the characteristics of their email to avoid being filtered out. Some of those emails sneak through before you&#8217;ve updated your scores. When this happens, if you&#8217;ve enabled auto-whitelist, there are chances that the sender (though spoofed) may end up getting a negative [...]]]></description>
			<content:encoded><![CDATA[<p>As any <a href="http://spamassassin.apache.org">spamassassin</a> user would agree, the spammers aren&#8217;t dumb either. They update the characteristics of their email to avoid being filtered out. Some of those emails sneak through before you&#8217;ve updated your scores. When this happens, if you&#8217;ve enabled auto-whitelist, there are chances that the sender (though spoofed) may end up getting a negative AWL score meaning that the next time the overall score is bound to be lower, and the chances of getting the same spam message is not insignificant. I&#8217;ve seen this quite frequently with the misses. I thus have to update my scoring to catch the spam <strong>and</strong> remove the sender from the auto-whitelist. Here is a tiny mutt macro that does the latter -</p>
<p><code>macro index,pager wa "&lt;pipe-message&gt;grep \"\^From:\" | head -n 1 | cut -d \"&lt;\" -f2 | cut -d \"&gt;\" -f1 | (read a; spamassassin --remove-addr-from-whitelist=\$a)&lt;enter&gt;" "Remove from spamassassin AWL"</code></p>
<p>Here are some other spamassassin related macros I use -</p>
<p><code>macro index,pager wc "&lt;pipe-message&gt;spamassassin -t | tail -n 30&lt;enter&gt;" "Run through spamassassin and check score"<br />
macro index,pager ws "&lt;pipe-message&gt;sa-learn --showdots --spam&lt;enter&gt;" "Learn message as spam"<br />
macro index,pager wh "&lt;pipe-message&gt;sa-learn --showdots --ham&lt;enter&gt;" "Learn message as ham"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://jaidev.info/home/blog/archives/2006/10/28/mutt-spamassassin-and-awl.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>gmail Unlabelled</title>
		<link>http://jaidev.info/home/blog/archives/2005/12/05/gmailunlabelled.html</link>
		<comments>http://jaidev.info/home/blog/archives/2005/12/05/gmailunlabelled.html#comments</comments>
		<pubDate>Sun, 04 Dec 2005 21:03:50 +0000</pubDate>
		<dc:creator>Jaidev</dc:creator>
		
		<category><![CDATA[Greasemonkey]]></category>

		<guid isPermaLink="false">http://jaidev.info/home/blog/archives/2006/02/12/gmailunlabelled.html</guid>
		<description><![CDATA[gmailUnlabelled is a greasemonkey script that creates a special label &#8216;Unlabelled&#8217; to search for all the conversations without a real label.
Why?
Gmail doesn&#8217;t provide a search to search for unlabelled conversations. This is quite handy if you like to keep all emails labelled and have forgotten to label some.
Where?
Install greasemonkey, then, right-click gmailUnlabelled to install. If [...]]]></description>
			<content:encoded><![CDATA[<p><img align="right" alt="gmail Unlabelled" title="gmail Unlabelled" src="http://jaidev.info/home/gallery/d/575-2/gmail-unlabelled.png" />gmailUnlabelled is a <a target="_blank" href="http://greasemonkey.mozdev.org">greasemonkey</a> script that creates a special label &#8216;Unlabelled&#8217; to search for all the conversations without a real label.</p>
<h3>Why?</h3>
<p>Gmail doesn&#8217;t provide a search to search for unlabelled conversations. This is quite handy if you like to keep all emails labelled and have forgotten to label some.</p>
<h3>Where?</h3>
<p>Install greasemonkey, then, right-click<span class="attribute-value"> </span><a target="_blank" href="http://jaidev.info/downloads/gmailUnlabelled.user.js">gmailUnlabelled</a> to install. If you&#8217;re on the new version of install <a href="http://jaidev.info/downloads/gmailUnlabelled2.user.js">gmailUnlabelled2</a>.</p>
<h3>Tips, Tricks and Gotchas!</h3>
<ol>
<li>The search string can&#8217;t be formed when the label box is collapsed.</li>
<li>If the search throws up &#8216;conversations&#8217; (threads) with labels, it could be because of two reasons -
<ol style="list-style-type: lower-alpha;">
<li>The &#8216;conversation&#8217; has atleast one email without a label - Gmail groups emails into conversations but labels are applied to each individual email. So if a conversation has even one email without a label, it will show up in the search results. Most people will run into this issue if they&#8217;ve been using gmail for a while. (<em>See update dated 3rd August 2007 below</em>).</li>
<li>The label has some special characters that gmailUnlabelled can&#8217;t handle. Please report this.</li>
</ol>
</li>
<li>Firefox only of course! IE users <a href="http://www.ie7.com">click here</a>.</li>
</ol>
<h3>Update (15th June 2006)</h3>
<p>Script updated to work with some recent changes. Also, from this version one could search for &#8216;<strong>-label</strong>&#8216; to find all unlabelled  emails in gmail.</p>
<h3>Update (3rd August 2007)</h3>
<p>If you&#8217;ve been a gmail user for a while, the first time you use gmailUnlabelled could be confusing as it&#8217;d probably throw up conversations that apparently have email. Select <b>all</b> such conversations and attach a dummy label (&#8217;old&#8217; or &#8216;read&#8217;). Now you&#8217;re ready for gmailUnlabelled. Use it often and its easier to keep all emails labelled. In a couple of days, you&#8217;d also figure out why the dummy label was necessary. ;-)</p>
<h3>Update (13th November 2007)</h3>
<p>gmailUnlabelled does not work with &#8220;gmail 2.0&#8243;. I will work on an update ASAP.</p>
<h3>Gmail 2.0 update (16th November 2007)</h3>
<p>If you&#8217;re on the new version of gmail a.k.a. &#8220;gmail 2.0&#8243; (Nov 2007), use the new script - <a href="http://jaidev.info/downloads/gmailUnlabelled2.user.js">gmailUnlabelled2</a>.</p>
<h3>Update (8th Febuary 2008)</h3>
<p>Google just tweaked the interface which broke the script (again!). I&#8217;ve now <a href="http://jaidev.info/downloads/gmailUnlabelled2.user.js">updated it</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaidev.info/home/blog/archives/2005/12/05/gmailunlabelled.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>gmail Auto Bcc</title>
		<link>http://jaidev.info/home/blog/archives/2005/12/02/gmailautobcc.html</link>
		<comments>http://jaidev.info/home/blog/archives/2005/12/02/gmailautobcc.html#comments</comments>
		<pubDate>Thu, 01 Dec 2005 21:15:20 +0000</pubDate>
		<dc:creator>Jaidev</dc:creator>
		
		<category><![CDATA[Greasemonkey]]></category>

		<guid isPermaLink="false">http://jaidev.info/home/blog/archives/2006/02/12/gmailautobcc.html</guid>
		<description><![CDATA[gmailAutoBcc is a greasemonkey script that automatically BCCs (or CCs) all outgoing gmail emails to a specified email address.
Why?
Quite a few of us use gmail as a secondary email access tool. The common use is to forward all incoming email to a gmail address. Gmail already has custom from addresses, this allows you to use [...]]]></description>
			<content:encoded><![CDATA[<p>gmailAutoBcc is a <a target="_blank" href="http://greasemonkey.mozdev.org">greasemonkey</a> script that automatically BCCs (or CCs) all outgoing gmail emails to a specified email address.</p>
<h3>Why?</h3>
<p>Quite a few of us use gmail as a secondary email access tool. The common use is to forward all incoming email to a gmail address. Gmail already has <a target="_blank" href="http://mail.google.com/support/bin/answer.py?answer=20616">custom from addresses</a>, this allows you to use your gmail account to send and respond to emails using your old, primary (non-gmail) email address. The only limitation of this is that you wouldn&#8217;t have a copy of the emails you send from your gmail  account at your primary email access location.</p>
<h3>Where?</h3>
<p>Install greasemonkey, then, right-click  <a target="_blank" href="http://jaidev.info/downloads/gmailAutoBcc.user.js">gmailAutoBcc</a> to install. It&#8217;ll ask you for an email address the first time you click on &#8217;send&#8217; through gmail. If you&#8217;re on the newer version of gmail (Nov 2007), use <a target="_blank" href="http://jaidev.info/downloads/gmailAutoBcc2.user.js">gmailAutoBcc 2.0</a>.</p>
<h3>Tips, Tricks and Gotchas!</h3>
<ul>
<li>If you want it to cc an address instead of BCC, set the preference <strong>gBccHeader</strong> to cc</li>
<li>If you want it to prompt every time, set the preference <strong>gBccPopup</strong> to true</li>
<li>If you want to disable gmailAutoBcc, set the preference <strong>gBccEnabled</strong> to false</li>
<li>If someone else uses your browser to send emails from gmail, you might get a copy of their outgoing emails. (<em>Cool ain&#8217;t it?</em>)</li>
<li>Oh yeah, firefox only of course!</li>
</ul>
<h3>Setting Preferences in Firefox</h3>
<p>To change any firefox preference, type <strong>about:config</strong> in the address bar and press enter. In the filter field, type the name of the preference. Double click on the result to change it.</p>
<h3>Update (15th June 2006):</h3>
<p>gmailAutoBcc now supports bcc/cc based on identities. i.e., it can bcc or cc to different addresses based on the from address being used. To enable this, toggle the preference <strong>gBccMapFromAddress</strong> to <strong>true</strong>. You&#8217;re prompted for a new bcc/cc address everytime you use a new &#8220;Identity&#8221; (from address). This is based on <a href="http://jaidev.info/home/blog/archives/2005/12/02/gmailautobcc.html#comment-523">José&#8217;s request</a>.</p>
<p>To remove bcc/cc for a particular identity (say, from@address.com), search for the preference <strong>gBccMail_from@address.com</strong> and change it to the string <strong>disabled</strong>.</p>
<p><em>If you do enable this feature, be prepared for a pop up the first time you send email from every one of your addresses</em>.</p>
<h3>Update (2nd November 2007):</h3>
<p>It appears that gmailAutoBcc fails with &#8220;gmail 2.0&#8243;. I&#8217;m not on gmail 2.0 yet, but I promise to work on a fix as soon as I am.</p>
<h3>Gmail 2.0 update (16th November 2007):</h3>
<p>If you&#8217;re on the newer version of gmail a.k.a. &#8220;gmail 2.0&#8243; (Nov 2007), use <a target="_blank" href="http://jaidev.info/downloads/gmailAutoBcc2.user.js">gmailAutoBcc 2.0</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaidev.info/home/blog/archives/2005/12/02/gmailautobcc.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
