<?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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Raymond.CC Blog</title>
	
	<link>http://www.raymond.cc/blog</link>
	<description>Daily updated news of useful advanced computer tips and tricks</description>
	<lastBuildDate>Wed, 11 Nov 2009 07:00:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<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" href="http://feeds.feedburner.com/RaymondccBlog" type="application/rss+xml" /><feedburner:emailServiceId>RaymondccBlog</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:browserFriendly>This is an XML content feed. It is intended to be viewed in a newsreader or syndicated to another site, subject to copyright and fair use.</feedburner:browserFriendly><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Free 6 Months ESET NOD32 v4 cfg.xml License by PCGamesHardware</title>
		<link>http://www.raymond.cc/blog/archives/2009/11/11/free-6-months-eset-nod32-v4-cfg-xml-license-by-pcgameshardware/</link>
		<comments>http://www.raymond.cc/blog/archives/2009/11/11/free-6-months-eset-nod32-v4-cfg-xml-license-by-pcgameshardware/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 07:00:34 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[antivirus]]></category>
		<category><![CDATA[eset]]></category>
		<category><![CDATA[license]]></category>
		<category><![CDATA[nod32]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.raymond.cc/blog/?p=6495</guid>
		<description><![CDATA[


 




Ever since Windows 7 was officially released, many antivirus company such as Kaspersky, Panda, ZoneAlarm, IObit, F-Secure and a-squared was fighting to give out free license subscription for a limited time because they know that Windows 7 is such a huge success and many users would be on the look out to find an [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/ryvGH6_WbzUPn-E0ajlCpRd7HK4/0/da"><img src="http://feedads.g.doubleclick.net/~a/ryvGH6_WbzUPn-E0ajlCpRd7HK4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ryvGH6_WbzUPn-E0ajlCpRd7HK4/1/da"><img src="http://feedads.g.doubleclick.net/~a/ryvGH6_WbzUPn-E0ajlCpRd7HK4/1/di" border="0" ismap="true"></img></a></p><p><script type="text/javascript"><!--
google_ad_client = "pub-8102232298595506";
/* 336x280, created 12/31/07 */
google_ad_slot = "1085976074";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></-> <p><div style="float:left;margin-top:0px;margin-right:0px;">
<script type="text/javascript"><!--
google_ad_client = "pub-8102232298595506";
//234x60, created 1/11/08
google_ad_slot = "1892099353";
google_ad_width = 234;
google_ad_height = 60;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div><br />
Ever since Windows 7 was officially released, many antivirus company such as Kaspersky, Panda, ZoneAlarm, IObit, F-Secure and a-squared was fighting to give out free license subscription for a limited time because they know that Windows 7 is such a huge success and many users would be on the look out to find an antivirus that can run on Windows 7. Yesterday I got to know about another promotion for ESET NOD32 v4 by PCGamesHardware which gives a free 6 months subscription from ivan_baroveca in forum. If you don&#8217;t know what is ESET NOD32, it is an antivirus software package made by the Slovak company ESET and is commonly known as NOD32. If you check out this <a href="http://www.eset.com/products/comparison/">comparison</a> page, it shows that ESET wins in terms of detection, performance and awards when compared to Norton, F-Secure, Kaspersky, McAfee and AVG.</p>
<p>All PCGamesHardware provided was a ZIP file to download which contains a cfg.xml file. As far as I know, ESET products are activated based on username and password. Every subscriber has their own unique username and password that can be used to download the installers and also to obtain the latest ESET virus definition. So I opened the XML file with notepad, took a quick look and found the username in clear text but the password is encrypted. Normally NOD32 username would start with EAV- followed by 8 random numbers and Smart Security with ESS-.<br />
<img src="http://www.raymond.cc/images/eset-xml-encrypted-password.png" alt="decrypt ESET XML password" /><br />
Continue reading on how to license ESET NOD32 v4 with the cfg.xml file provided by PCGamesHardware.<br />
<span id="more-6495"></span><script type="text/javascript"><!--
google_ad_client = "pub-8102232298595506";
//234x60, created 1/4/08
google_ad_slot = "7532474512";
google_ad_width = 234;
google_ad_height = 60;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
At first I didn&#8217;t know what to do with the XML file but after a while I found out that ESET supports importing and exporting settings via XML file. Just follow the few simple steps on how to get your free 6 months ESET NOD32 license.</p>
<p>If this is you don&#8217;t have ESET NOD32 installed on your computer:<br />
1. <a href="http://download.pcgameshardware.de/asset/binaries/cfg.zip">Download</a> NOD32 v4 cfg.xml file provided by PCGamesHardware and extract.</p>
<p>2. <a href="http://download.eset.com/eval/win/eav/eav_nt32_enu.msi">Download</a> the latest version of ESET NOD32 v4 trial. For 64-bit users, you can get it from <a href="http://download.eset.com/eval/win/eav/eav_nt64_enu.msi">here</a>.</p>
<p>3. Install and follow the on screen instructions.</p>
<p>4. At the bottom left area where it says Display: Standard mode, click on the Change&#8230; link and click Yes button.<br />
<img src="http://www.raymond.cc/images/change-eset-display-mode.png" alt="Change NOD32 display mode" /></p>
<p>5. Click on Setup at the left pane and then click Import and export settings.</p>
<p>6. Make sure that &#8220;Import settings&#8221; is selected and click on the &#8230; button to browse for the cfg.xml file.<br />
<img src="http://www.raymond.cc/images/eset-import-export-settings.png" alt="eset import and export settings" /></p>
<p>7. Restart your computer and update virus signature database. NOD32 will download around 21MB to upgrade from trial to licensed version. If ESET fails to upgrade, try updating again. I had to update twice in order to get it right.</p>
<p>If you already have ESET NOD32 installed on your computer, you will only need to download the cfg.xml file and import it at Advanced mode. I tried using Nirsoft&#8217;s <a href="http://www.nirsoft.net/utils/astlog.html">Asterisk Logger</a> to reveal the asterisk behind the NOD32 password but it doesn&#8217;t work. However when I tried using <a href="http://www.itsamples.com/downloads/password-viewer.zip">Password Viewer</a> which also does the same thing as Asterisk Logger, it worked perfectly by showing the hidden password!<br />
<img src="http://www.raymond.cc/images/decrypt-eset-password.png" alt="decrypt eset password" /><br />
Looks like ESET has blocked Nirsoft&#8217;s Asterisk Logger but not Password Viewer. I could just provide the ESET NOD32 username and password that I&#8217;ve decrypted from the cfg.xml file here but I don&#8217;t think it&#8217;s appropriate because I believe the license can get blacklisted very quickly. This license valid until 4/21/2010 which is less than 6 months because the promotion started on October.</p>
<p>Here are some unrelated information to today&#8217;s topic. There seems to be quite a lot of free license promotion going around. I will list them out here so you won&#8217;t wake up to another article of &#8220;Free this and free that&#8221;. ZoneAlarm and F-Secure offer has just expired&#8230;</p>
<blockquote><p>1. McAfee VirusScan® Plus3-User with SiteAdvisor for 12 months<br />
<a href="http://us.mcafee.com/en-us/affiliates/vmware/landingpages/16288.asp?cid=48523">http://us.mcafee.com/en-us/affiliates/vmware/landingpages/16288.asp?cid=48523</a></p>
<p>2. IObit Advanced System Care Pro Edition<br />
<a href="http://db.iobit.com/license-free/asc-free-license.php">http://db.iobit.com/license-free/asc-free-license.php</a></p>
<p>3. a-squared Anti-Malware 4.5<br />
<a href="http://www.emsisoft.com/en/order/24h/">http://www.emsisoft.com/en/order/24h/</a></p></blockquote>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8102232298595506";
//234x60, created 1/4/08
google_ad_slot = "0630522498";
google_ad_width = 234;
google_ad_height = 60;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p style="font-size:12px;">Technorati Tags: <a href="http://technorati.com/tag/eset" rel="tag">eset</a>, <a href="http://technorati.com/tag/nod32" rel="tag"> nod32</a>, <a href="http://technorati.com/tag/xml" rel="tag"> xml</a>, <a href="http://technorati.com/tag/license" rel="tag"> license</a>, <a href="http://technorati.com/tag/antivirus" rel="tag"> antivirus</a></p>
<img src="http://feeds.feedburner.com/~r/RaymondccBlog/~4/JydNyg-Qgl0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raymond.cc/blog/archives/2009/11/11/free-6-months-eset-nod32-v4-cfg-xml-license-by-pcgameshardware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extract ZIP Archives Online with Free PHP File Manager</title>
		<link>http://www.raymond.cc/blog/archives/2009/11/10/extract-zip-archives-online-with-free-php-file-manager/</link>
		<comments>http://www.raymond.cc/blog/archives/2009/11/10/extract-zip-archives-online-with-free-php-file-manager/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 07:00:11 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[extplorer]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[manager]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.raymond.cc/blog/?p=6407</guid>
		<description><![CDATA[


 
One of my client&#8217;s website that regularly requires updating is quite troublesome because it involves uploading at least 10,000 small files. What I normally do is compress all the files into one single ZIP file, upload and then use DirectAdmin&#8217;s built-in File Manager to extract it. I had to do that because when I [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/NxRh1nvtNzQLzqbMwBkSC4zI7uI/0/da"><img src="http://feedads.g.doubleclick.net/~a/NxRh1nvtNzQLzqbMwBkSC4zI7uI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/NxRh1nvtNzQLzqbMwBkSC4zI7uI/1/da"><img src="http://feedads.g.doubleclick.net/~a/NxRh1nvtNzQLzqbMwBkSC4zI7uI/1/di" border="0" ismap="true"></img></a></p><p><!--adsense--><br />
One of my client&#8217;s website that regularly requires updating is quite troublesome because it involves uploading at least 10,000 small files. What I normally do is compress all the files into one single ZIP file, upload and then use DirectAdmin&#8217;s built-in File Manager to extract it. I had to do that because when I try uploading a lot of small files, the FTP connection will timeout (TM Net, our Malaysian ISP is to be blamed) but weirdly when I upload a single big file, I can get a constant 40+KBps upload speed and never gets timeout.</p>
<p>Recently I&#8217;ve been very busy and can hardly spend any time to update my client&#8217;s website. So I intend to hand over everything to my client so that I can have more free time to myself. Before that, I will have to make sure that everything is in order and the steps to update the website are all written properly in step-by-step order.</p>
<p>One of the problem that I am facing is I cannot allow my client to use the DirectAdmin&#8217;s built-in File Manager because my webhosting subscription account is not a reseller type and I cannot create an account for him nor I can give him my existing username and password. A normal FTP client can do mostly what a PHP File Manager does except that it cannot command the server to extract an archive file that is already uploaded on the remote server. Fortunately I am able to install other third party PHP File Manager to replace the DirectAdmin&#8217;s File Manager.<br />
<span id="more-6407"></span><!--adsense#middle--><br />
If you do a search on PHP File Manager, there are actually quite a lot that you will find. What I am currently using now and I can say that it works is eXtplorer. It is a free PHP and JavaScript based File Manager that is able to:</p>
<blockquote><li>Copy &#038; Move Files and Directories by Drag&#038;Drop</li>
<li>Dynamic Directory Tree with on-demand loading of subdirectories</li>
<li>Edit Files (with Syntax-Highlighting thanks to EditArea)</li>
<li>Rename, Delete or Create new Files and Directories</li>
<li>Access Files through FTP or directly (using PHP) to totally overcome permission and file ownership issues</li>
<li>Upload or Download files just as you like</li>
<li>Create and <strong>Extract Archives</strong> (ZIP, Tar, Tar/GZ, Tar/BZ)</li>
<li>User Management with different permission levels like &#8220;View only&#8221; or &#8220;Edit&#8221; and &#8220;Admin&#8221;</li>
</blockquote>
<p><img src="http://www.raymond.cc/images/extplorer-php-file-manager.png" alt="free php file manager extplorer" /><br />
Installation is pretty simple. Just download, extract and then upload to your webserver. You will need to allow write access (chmod 777) to /extplorer/ftp_tmp/ folder and /extplorer/config/.htusers.php file. Then just login, right click on the ZIP file and select &#8220;Extract Archive&#8221;. eXtplorer needs at least PHP 4.3 on the server and an up-to-date browser with Javascript enabled to run. Do take note that eXtplorer can only extract ZIP, Tar, Tar/GZ and Tar/BZ archives only.</p>
<p><strong>[ <a href="http://extplorer.sourceforge.net/">Download eXtplorer</a> ]</strong></p>
<p><!--adsense#2--></p>
<p style="font-size:12px;">Technorati Tags: <a href="http://technorati.com/tag/php" rel="tag">php</a>, <a href="http://technorati.com/tag/file" rel="tag"> file</a>, <a href="http://technorati.com/tag/manager" rel="tag"> manager</a>, <a href="http://technorati.com/tag/extplorer" rel="tag"> extplorer</a>, <a href="http://technorati.com/tag/extract" rel="tag"> extract</a></p>
<img src="http://feeds.feedburner.com/~r/RaymondccBlog/~4/iqaS2ODU4Qs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raymond.cc/blog/archives/2009/11/10/extract-zip-archives-online-with-free-php-file-manager/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Easily Block Visitors from a Country using HTACCESS</title>
		<link>http://www.raymond.cc/blog/archives/2009/11/09/easily-block-visitors-from-a-country-using-htaccess/</link>
		<comments>http://www.raymond.cc/blog/archives/2009/11/09/easily-block-visitors-from-a-country-using-htaccess/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 07:00:25 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[country]]></category>
		<category><![CDATA[deny]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[IP]]></category>

		<guid isPermaLink="false">http://www.raymond.cc/blog/?p=6391</guid>
		<description><![CDATA[
If you have a website, sometimes you would want to block visitors coming from a country. For example you are running a promotion for certain countries and you don&#8217;t want visitors from other country to see it. Other than that, many years ago when I was in the e-book selling business, there are two countries [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Zq7GjT4vOCeWMmXmkA9Ex9SSs2o/0/da"><img src="http://feedads.g.doubleclick.net/~a/Zq7GjT4vOCeWMmXmkA9Ex9SSs2o/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Zq7GjT4vOCeWMmXmkA9Ex9SSs2o/1/da"><img src="http://feedads.g.doubleclick.net/~a/Zq7GjT4vOCeWMmXmkA9Ex9SSs2o/1/di" border="0" ismap="true"></img></a></p><p><!--adsense--><br />
If you have a website, sometimes you would want to block visitors coming from a country. For example you are running a promotion for certain countries and you don&#8217;t want visitors from other country to see it. Other than that, many years ago when I was in the e-book selling business, there are two countries (I am not going to reveal) which has very high chargeback cases, meaning they buy with their credit card and then inform their credit card company that they did not authorize the charge. The credit card company will then reverse the charges, allowing the buyer to get the intangible product for free by cheating. No matter how much proof I provided to the company that charged the credit card, the buyer still gets the advantage of reversing the charges.</p>
<p>So my last resort was to block the whole country and sending them to a Forbidden page that says &#8220;You don&#8217;t have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request&#8221;. It did reduced the amount of chargebacks significantly and I didn&#8217;t notice any drops on the sales because the legitimate buyers comes from other countries.</p>
<p>To block a country using .htaccess, you must first need to know the IP address range but Block A Country and Country IP Blocks simplifies all that.<br />
<span id="more-6391"></span><!--adsense#middle--><br />
<strong>Block A Country</strong> is a free service that automatically generates a .htaccess with countries that you want to block. All you need to do is select the countries from the list and click the &#8220;Go&#8221; button. You will then need to create a .htaccess file at the root of your public html folder and paste the codes to that file. Do take note that the default code generated by Block A Country redirects the unwanted visitor to http://www.blockacountry.com/blocked.php</p>
<p><strong>[ <a href="http://www.blockacountry.com/">Visit Block A Country</a> ]</strong></p>
<p><strong>Country IP Blocks</strong> is similar to Block A Country but it allows you to choose CIDR (Classless Inter-Domain Routing), Netmask, IP Range, .htaccess deny, .htaccess allow, Decimal/CIDR, or Hex/CIDR. It will also tell you what&#8217;s the ISO code for the country, total networks and subnets in the list.</p>
<p><strong>[ <a href="http://www.countryipblocks.net/country-blocks/select-formats/">Visit Country IP Blocks</a> ]</strong></p>
<p>Once in a while the forum will be disturbed by a person named Gurjeet Singh Komal from Meerut, Uttar Pradesh India. He was probably the biggest fan of this website but backfired and turned into the biggest enemy because he was banned for not following the forum rules even after several warnings. He&#8217;d sign up a new account and start creating new threads by posting nonsense. It&#8217;s definitely unfair to block India from this site just because of him. As far as I know, there are many nice people from there too! Moreover it is also easy to get around this country banning restriction by using web proxy.<br />
<!--adsense#2--></p>
<p style="font-size:12px;">Technorati Tags: <a href="http://technorati.com/tag/block" rel="tag">block</a>, <a href="http://technorati.com/tag/htaccess" rel="tag"> htaccess</a>, <a href="http://technorati.com/tag/country" rel="tag"> country</a>, <a href="http://technorati.com/tag/ip" rel="tag"> ip</a>, <a href="http://technorati.com/tag/deny" rel="tag"> deny</a></p>
<img src="http://feeds.feedburner.com/~r/RaymondccBlog/~4/gFmzrloF8jI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raymond.cc/blog/archives/2009/11/09/easily-block-visitors-from-a-country-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Search a Particular Word in Multiple Editable Text Files</title>
		<link>http://www.raymond.cc/blog/archives/2009/11/08/search-a-particular-word-in-multiple-editable-text-files/</link>
		<comments>http://www.raymond.cc/blog/archives/2009/11/08/search-a-particular-word-in-multiple-editable-text-files/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 07:00:05 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[textcrawler]]></category>

		<guid isPermaLink="false">http://www.raymond.cc/blog/?p=6383</guid>
		<description><![CDATA[
I have my own private RapidLeech server which is hosted in Malaysia and it&#8217;s very useful whenever I am downloading a file at a very slow speed. I can make use of the server that has a very fast connection to download the file for me and save it to the server and then I [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/MZEAlWBilOJ-NxuJYfvxrO7TZbo/0/da"><img src="http://feedads.g.doubleclick.net/~a/MZEAlWBilOJ-NxuJYfvxrO7TZbo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/MZEAlWBilOJ-NxuJYfvxrO7TZbo/1/da"><img src="http://feedads.g.doubleclick.net/~a/MZEAlWBilOJ-NxuJYfvxrO7TZbo/1/di" border="0" ismap="true"></img></a></p><p><!--adsense--><br />
I have my own private <a href="http://www.raymond.cc/blog/archives/2009/02/24/transfer-or-transload-rapidshare-files-to-your-server-with-free-rapidleech-php-script/">RapidLeech</a> server which is hosted in Malaysia and it&#8217;s very useful whenever I am downloading a file at a very slow speed. I can make use of the server that has a very fast connection to download the file for me and save it to the server and then I will download it from the server. Since the server is located in the same country as I currently am, I am able to achieve maximum download speed. The only thing I have to worry is I have to make sure that my hosting does not run out of the given bandwidth which is 200GB. Once I exceed the bandwidth limit, all websites will be suspended until it reset in the new month.</p>
<p>I&#8217;ve updated to the latest Rapidleech v42 pr-t2 because the v41 wasn&#8217;t working very well. After the upgrade, I am seeing an error message at the footer of the rapidleech page which says &#8220;<strong>getCpuUsage(): couldn&#8217;t access STAT path or STAT file invalid</strong>&#8220;. I have tried installing RapidLeech on another server and there&#8217;s no such error message. It is supposed to display a nice information on server space and CPU load.<br />
<img src="http://www.raymond.cc/images/getcpuusage-couldnt-access-stat-path.png" alt="getCpuUsage(): couldn't access STAT path or STAT file invalid" /><br />
That error is not a big deal but I don&#8217;t want that error message to show. There are 447 files in RapidLeech archive and I am certainly not going to edit one by one with notepad and search for the getCpuUsage keyword. So I use TextCrawler to automatically help me find a keyword across multiple files and folders.<br />
<span id="more-6383"></span><!--adsense#middle--><br />
<strong>TextCrawler</strong> is a free tool for searching and replacing over multiple plain text files. It can search for straight text and supports advanced search/replace via regular expressions.</p>
<p><img src="http://www.raymond.cc/images/download-textcrawler.png" alt="download textcrawler grep for windows" /></p>
<p><strong>TextCrawler Features:</strong></p>
<blockquote><li>Find and Replace across files</li>
<li>Fast searching, even on large files</li>
<li>Simple to use interface</li>
<li>Flexible search parameters</li>
<li>Text Extractor &#8211; rip text into a new file</li>
<li>Search and replace using Regular Expressions. Create sophisticated searches</li>
<li>Regular Expression test tool</li>
<li>Regular Expression library &#8211; Save your searches</li>
<li>Create backup files</li>
<li>Highlighted search results</li>
<li>Export Results</li>
<li>Batch find and replace operations</li>
</blockquote>
<p>To use TextCrawler search for a word, I first select the folder (Start Location) that I want to search in. Then set the Filename/Filter as *.* so it will try to search all files in that selected folder. At Find, I entered the word getCpuUsage and then clicked the Find button. In less than 3 seconds, TextCrawler is able to let me know which text files contains the word &#8220;getCpuUsage&#8221; and at which line.</p>
<p>In another scenario, during software giveaways, there are more than 1000 entries and copying every single email address to a text file to randomly select a winner is tough. So I hacked the Wordpress core file to set it to display 300 comments for an article. Then I saved all the contents to a text file, and use TextCrawler&#8217;s Regular Expressions to easily extract all the email addresses.</p>
<p><strong>[ <a href="http://www.digitalvolcano.co.uk/content/textcrawler/tcdownload">Download TextCrawler </a>]</strong></p>
<p><!--adsense#2--></p>
<p style="font-size:12px;">Technorati Tags: <a href="http://technorati.com/tag/textcrawler" rel="tag">textcrawler</a>, <a href="http://technorati.com/tag/grep" rel="tag"> grep</a>, <a href="http://technorati.com/tag/search" rel="tag"> search</a>, <a href="http://technorati.com/tag/replace" rel="tag"> replace</a>, <a href="http://technorati.com/tag/extract" rel="tag"> extract</a></p>
<img src="http://feeds.feedburner.com/~r/RaymondccBlog/~4/mxoUjHznMjM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raymond.cc/blog/archives/2009/11/08/search-a-particular-word-in-multiple-editable-text-files/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Fix “This file does not have a program associated with it for performing this action” in Vista and 7</title>
		<link>http://www.raymond.cc/blog/archives/2009/11/07/fix-this-file-does-not-have-a-program-associated-with-it-for-performing-this-action-in-vista-and-7/</link>
		<comments>http://www.raymond.cc/blog/archives/2009/11/07/fix-this-file-does-not-have-a-program-associated-with-it-for-performing-this-action-in-vista-and-7/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 07:00:31 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[association]]></category>
		<category><![CDATA[exe]]></category>
		<category><![CDATA[virus]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.raymond.cc/blog/?p=6446</guid>
		<description><![CDATA[
Few days ago there was a newly signed up user in forum requesting for help. Initially his computer had some error messages that pops up during Windows startup and he tried using some third party software to fix it. However it ended up making his computer unable to run any exe programs at all including [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/DPl_uablzNTlLenpiVGkplLWPZ8/0/da"><img src="http://feedads.g.doubleclick.net/~a/DPl_uablzNTlLenpiVGkplLWPZ8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/DPl_uablzNTlLenpiVGkplLWPZ8/1/da"><img src="http://feedads.g.doubleclick.net/~a/DPl_uablzNTlLenpiVGkplLWPZ8/1/di" border="0" ismap="true"></img></a></p><p><!--adsense--><br />
Few days ago there was a newly signed up user in forum requesting for help. Initially his computer had some error messages that pops up during Windows startup and he tried using some third party software to fix it. However it ended up making his computer unable to run any exe programs at all including the icons on desktop. He was very sure that he only changed the ProgramFilesDir value from C: to D: in registry. From what I know, this only changes the default location of Program Files where software are installed but no matter what, we all tried to help him undo the changes he made. I showed him how to run registry editor but he wasn&#8217;t able to as he kept on getting the error message &#8220;<strong>This file does not have a program associated with it for performing this action</strong>&#8220;.</p>
<p><img src="http://www.raymond.cc/images/does-not-have-a-program-associated.png" alt="This file does not have a program associated with it for performing this action" /></p>
<p>After spending a few hours trying to help and without any success, then I started thinking maybe this problem is caused by another factor which I&#8217;ve encountered before in Windows XP. Somehow a virus managed to corrupt the .exe association in registry causing the user unable to run any programs. I used TeamViewer to remotely connect to his computer and tried running this command &#8220;<a href="http://www.raymond.cc/blog/archives/2008/01/06/fix-or-restore-broken-exe-lnk-com-association-caused-by-virus/">assoc.exe=exefile</a>&#8221; in command prompt which should fix the problem but don&#8217;t know why this command has been denied. I checked his user account and he is an administrator. I then tried to use <a href="http://www.dougknox.com/xp/file_assoc.htm">DougKnox</a>&#8217;s EXE registry fix but that failed too because I wasn&#8217;t able to import the .reg file since it requires regedit.exe. I also converted the .reg file into .exe file which can imported into registry without using regedit and that too didn&#8217;t work.</p>
<p>After 2 days, I am glad that I finally managed to fix the problem.<br />
<span id="more-6446"></span><!--adsense#middle--><br />
It turns out to be a corrupted .exe association and the reason those steps I taken didn&#8217;t work is because the Windows Vista registry location for exe association is different from XP. Obviously using the XP fix cannot work on Vista!</p>
<p>When you have a corrupted exe association, you definitely cannot use any registry editor to fix it because it is impossible to run it in the first place. So here are a few methods you can try:</p>
<p>1. Run command prompt and type <strong>assoc.exe=exefile</strong> (If you get access denied error, try step 2)</p>
<p>2. <a href="http://www.raymond.cc/blog/vista-7-fixexe.reg">Download</a> this .reg file and run it. Make sure you right click and select Save As. (If you cannot import the .reg file because Windows cannot find the registry editor, then try step 3)</p>
<p>3. Open command prompt and type the following command <strong>REG IMPORT vista-7-fixexe.reg</strong>. Make sure you&#8217;ve already CD to the directory where the .reg file is. (If you have problems getting this to work, try step 4)</p>
<p>4. <a href="http://www.raymond.cc/blog/vista-7-fixexe.exe">Download</a> the EXE compiled version of the registry file above and run it. Although it doesn&#8217;t make sense to run this exe file since most of the exe files are blocked, but this is the one that fixed the user&#8217;s computer. (If this couldn&#8217;t fix it, try step 5)</p>
<p>5. Microsoft Fix It has an automated way to fixing the exe association problem. Simply <a href="http://go.microsoft.com/?linkid=9662689">download</a> this MicrosoftFixit50194.msi file and run it.</p>
<p>If done correctly, it should fix the problem instantly and no reboot is required. Now I will always remember that whatever works in XP doesn&#8217;t necessarily works on Vista and 7.<br />
<!--adsense#2--></p>
<p style="font-size:12px;">Technorati Tags: <a href="http://technorati.com/tag/exe" rel="tag">exe</a>, <a href="http://technorati.com/tag/association" rel="tag"> association</a>, <a href="http://technorati.com/tag/vista" rel="tag"> vista</a>, <a href="http://technorati.com/tag/windows" rel="tag"> windows</a>, <a href="http://technorati.com/tag/virus" rel="tag"> virus</a></p>
<img src="http://feeds.feedburner.com/~r/RaymondccBlog/~4/W3X3-ahGJ7U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raymond.cc/blog/archives/2009/11/07/fix-this-file-does-not-have-a-program-associated-with-it-for-performing-this-action-in-vista-and-7/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Avira AntiVir Personal Edition Update Hang and Timeout Problem</title>
		<link>http://www.raymond.cc/blog/archives/2009/11/06/avira-antivir-personal-edition-update-hang-and-timeout-problem/</link>
		<comments>http://www.raymond.cc/blog/archives/2009/11/06/avira-antivir-personal-edition-update-hang-and-timeout-problem/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 07:00:16 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[antivirus]]></category>
		<category><![CDATA[avira]]></category>
		<category><![CDATA[definition]]></category>
		<category><![CDATA[hang]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.raymond.cc/blog/?p=6430</guid>
		<description><![CDATA[
There has been quite a lot of complaints about Avira recent updating problem that hangs and counts time elapsed endlessly. Check Avira forums and you will see how many people are complaining over it. Honestly I do not use Avira even though I say that Avira is the best free antivirus because I have commercial [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/YBRTXJQIokhMHVwH60sUbAuLk6g/0/da"><img src="http://feedads.g.doubleclick.net/~a/YBRTXJQIokhMHVwH60sUbAuLk6g/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/YBRTXJQIokhMHVwH60sUbAuLk6g/1/da"><img src="http://feedads.g.doubleclick.net/~a/YBRTXJQIokhMHVwH60sUbAuLk6g/1/di" border="0" ismap="true"></img></a></p><p><!--adsense--><br />
There has been quite a lot of complaints about Avira recent updating problem that hangs and counts time elapsed endlessly. Check Avira forums and you will see how many people are complaining over it. Honestly I do not use Avira even though I say that Avira is the best free antivirus because I have commercial license for Kaspersky and Norton. If compared between a paid and a free software, I prefer to use paid because I am eligible for prompt support. So I installed Avira on my test computer and researched for a few days on what&#8217;s happening to Avira&#8217;s update servers. I wasn<a href="http://www.raymond.cc/blog/archives/2009/11/06/avira-antivir-personal-edition-update-hang-and-timeout-problem/">&#8216;</a>t very sure at first but now I am confident to share with you on my findings and also the temporary fix until Avira fix the problem at their side.</p>
<p>One of the main difference between the personal and premium edition is the premium edition gets to update the latest virus definition using Avira&#8217;s Fast Premium update server. This is true because the Avira AntiVir personal edition gets the latest virus definition from personal.avira-updates.com and the premium gets it from premium.avira-updates.com. There are only 4 premium servers and as for the personal update servers, there are 24 of them. I am able to download the virus definition at full speed from any of the 4 premium servers but as for the 24 servers that are used for personal edition, I get timeout most of the time on 20 servers and only 4 ipv6 servers are working.<br />
<span id="more-6430"></span><!--adsense#middle--><br />
I get to compile a list of Avira update servers by <a href="http://www.just-ping.com/index.php?vh=personal.avira-update.com">multi pinging</a> Avira&#8217;s personal update server personal.avira-update.com. Do take note that the IP address could change if Avira decides to do that.</p>
<blockquote><p><strong><u>Personal</u></strong><br />
80.190.143.227<br />
80.190.143.228<br />
80.190.143.229<br />
80.190.143.230<br />
80.190.143.231<br />
80.190.143.232<br />
80.190.143.233<br />
80.190.143.234<br />
80.190.143.235<br />
80.190.143.236<br />
80.190.143.237<br />
80.190.143.239<br />
62.146.66.178<br />
62.146.66.179<br />
62.146.66.181<br />
62.146.66.182<br />
62.146.66.183<br />
62.146.66.184<br />
62.146.66.189<br />
62.146.66.190<br />
2a01:138:a001:201::21 (works most of the time)<br />
2a01:138:a001:201::22 (works most of the time)<br />
2a01:138:a001:201::23 (works most of the time)<br />
2a01:138:a001:201::24 (works most of the time)</p>
<p><strong><u>Premium</u></strong><br />
62.146.87.171<br />
62.146.87.172<br />
80.190.154.74<br />
80.190.154.73</p></blockquote>
<p>As you can see from the multi ping test, Avira randomly assigns an update server for you to download the updated definition. From what I&#8217;ve noticed, most of the time Avira will try to assign one of the 4 of the ipv6 update servers to personal users. Only sometimes you will directly get the ipv4 update server. I believe the reason they are doing this is because all of the 20 ipv4 servers are overloaded. I&#8217;ve used <a href="http://www.nirsoft.net/utils/download_speed_tester.html">DownTester</a> to try to download a 5MB definition file from all 20 servers with a setting of 50 retries if failed and guess what, NONE of the servers allowed me to successfully complete downloading the 5MB file.<br />
<img src="http://www.raymond.cc/images/proof-avira-bad-update-servers.png" alt="Avira broken update servers" /></p>
<p>It&#8217;s really a bad decision to use the ipv6 servers because by default Windows XP don&#8217;t have ipv6 installed and configured. Installing IPv6 in XP is easy but you still won&#8217;t be able to connect to the ipv6 servers as it doesn&#8217;t work right out of the box. Pardon me, I have no experience with configuring ipv6 nor could I get XP to connect the Avira ipv6 update servers. When Avira on XP tries to connect to the ipv6 servers, it hangs for a very long time until it times out and redirects you to one of the 20 ipv4 servers, and again, those are problematic slow servers. So, basically Avira users on Windows XP is pretty much screwed until Avira gets more servers or fix it. If you are using Windows Vista and 7, you shouldn&#8217;t have any problems because the operating system already supports ipv6.</p>
<p>If you are using Windows Vista or Seven and wants to manually select which Avira update server to use, then you can use your Windows HOSTS file to map personal.avira-update.com and personal.avira-update.net to any of the IP address. Unfortunately we <strong>CANNOT</strong> redirect and use the premium servers because the definition files being used are slightly different. When Avira couldn&#8217;t find the files that they are looking for, it will automatically redirect you back to any of the free servers.</p>
<p>Here is how to modify your Windows HOSTS file so that the Avira AntiVir Personal Edition can download the updates from working servers.</p>
<p>1. Simultaneously press <strong>Win+R</strong> on your keyboard and you should see a Run box.<br />
<img src="http://www.raymond.cc/images/windows-7-run.png" alt="Avira antivirus slow update fix" /><br />
2. Type this in the box <strong>%SystemRoot%\system32\drivers\etc</strong> and click OK.</p>
<p>3. Open the <strong>hosts</strong> file with a text editor such as Notepad.</p>
<p>4. Copy the 2 lines below and paste it to the last line at the hosts file. Save the file.</p>
<blockquote><p>2a01:138:a001:201::21 personal.avira-update.com<br />
2a01:138:a001:201::21 personal.avira-update.net</p></blockquote>
<p>It should look like the screenshot below.<br />
<img src="http://www.raymond.cc/images/fix-avira-update-hang.png" alt="fix avira update slow or hang problem" /></p>
<p>One of the user from Avira forum suggested that Windows XP users can add this 2 lines to hosts file. I&#8217;ve tested it and ended up waiting for more than 20 minutes to download the updates but still stuck with the message &#8220;Files are being downloaded&#8221; with no progress at all.</p>
<blockquote><p>::1 personal.avira-update.com<br />
::1 personal.avira-update.net</p></blockquote>
<p>5. Save the hosts file either by going to File > Save or just simultaneously press <strong>Ctrl+S</strong>. Now try to update Avira and it should work now.</p>
<p>Just for your knowledge, the HOSTS file can only map host names to IP addresses. If you haven&#8217;t noticed, all four ipv6 address are nearly the same except for the last character which is 21, 22, 23 and 24. You can try any of the four servers by changing the hosts file to find which Avira personal update server works best for you. Remember, the IPv6 servers can only work in Vista and 7. It doesn&#8217;t work on XP unless you&#8217;ve managed to install and configure IPv6 properly. I wonder if this is one of the Avira&#8217;s dirty tactic to make everyone pay and upgrade to Premium edition? They better fix it fast or else many people will start switching to Avast! or Microsoft Security Essentials.<br />
<!--adsense#2--></p>
<p style="font-size:12px;">Technorati Tags: <a href="http://technorati.com/tag/avira" rel="tag">avira</a>, <a href="http://technorati.com/tag/update" rel="tag"> update</a>, <a href="http://technorati.com/tag/hang" rel="tag"> hang</a>, <a href="http://technorati.com/tag/definition" rel="tag"> definition</a>, <a href="http://technorati.com/tag/antivirus" rel="tag"> antivirus</a></p>
<img src="http://feeds.feedburner.com/~r/RaymondccBlog/~4/_4e385CXYBU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raymond.cc/blog/archives/2009/11/06/avira-antivir-personal-edition-update-hang-and-timeout-problem/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Hacking Firefox to Always Auto Save Password Without Showing Notification Bar</title>
		<link>http://www.raymond.cc/blog/archives/2009/11/05/hacking-firefox-to-always-auto-save-password-without-showing-notification-bar/</link>
		<comments>http://www.raymond.cc/blog/archives/2009/11/05/hacking-firefox-to-always-auto-save-password-without-showing-notification-bar/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 07:00:26 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[save]]></category>

		<guid isPermaLink="false">http://www.raymond.cc/blog/?p=6436</guid>
		<description><![CDATA[
As usual when I was screening through all the new posts in forum to see if there are any spam and also any computer topic that I can help, I saw an interest question asked by Rizzano. He wanted to know if there is anyway to make Firefox auto save password without clicking the Remember [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/nsmyFcqHQ8H7YAtxFnoj7ytAHiI/0/da"><img src="http://feedads.g.doubleclick.net/~a/nsmyFcqHQ8H7YAtxFnoj7ytAHiI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/nsmyFcqHQ8H7YAtxFnoj7ytAHiI/1/da"><img src="http://feedads.g.doubleclick.net/~a/nsmyFcqHQ8H7YAtxFnoj7ytAHiI/1/di" border="0" ismap="true"></img></a></p><p><!--adsense--><br />
As usual when I was screening through all the new posts in forum to see if there are any spam and also any computer topic that I can help, I saw an interest question asked by Rizzano. He wanted to know if there is anyway to make Firefox auto save password without clicking the Remember button. In Firefox, even if you have the option &#8220;Security Remember passwords for sites&#8221; checked in Tools > Options,the browser will still display a notification bar at the top that asks &#8220;Do you want Firefox to remember the password for &#8220;Username&#8221; on website.com?&#8221; with three buttons &#8220;Remember&#8221;, &#8220;Never for This Site&#8221; and &#8220;Not Now&#8221;.</p>
<p><img src="http://www.raymond.cc/images/firefox-remember-never-for-this-site-not-now.png" alt="Disable Firefox Remember Never for This Site Not Now button" /><br />
The first thing that came to my mind was perhaps there is an addon that can do this but I couldn&#8217;t find any that can make Firefox auto save password without prompting. After spending nearly two hours researching on how Firefox saves the password, I managed to find a way on how to make Firefox save the login information to the Firefox Saved Passwords manager.<br />
<span id="more-6436"></span><!--adsense#middle--><br />
First, I searched some of the important keywords such as &#8220;Never for This Site&#8221; and &#8220;Not Now&#8221; on all the files and found that this function is controlled by a few javascript .js files. Then I was more confident in getting this to work since I didn&#8217;t have to go through the trouble of downloading the Firefox source code, modify and compile it.</p>
<p>When you submit a form with username and password, it will process the function:<br />
1. _onFormSubmit() in nsLoginManager.js<br />
2. promptToSavePassword in nsLoginManagerPrompter.js<br />
3. _showSaveLoginNotification in nsLoginManagerPrompter.js<br />
4. addLogin in nsLoginManager.js</p>
<p>1. Close Firefox<br />
2. Edit <strong>nsLoginManagerPrompter.js</strong> with notepad which is normally located in C:\Program Files\Mozilla Firefox\components\<br />
3. Replace the entire line 642 to 711 with the code below:</p>
<blockquote><p><strong>var pwmgr = this._pwmgr;<br />
pwmgr.addLogin(aLogin);</strong></p></blockquote>
<p><img src="http://www.raymond.cc/images/firefox-autosave-password.png" alt="Firefox auto save password without notification bar" /><br />
Now whenever you login to any website, Firefox will auto save the site, username and password to the login manager WITHOUT showing the notification bar. You can access the saved password area by going to Tools > Options > Security and click the Saved Passwords button. There is one possible bug which is even when a user entered the wrong username or password, it will still be saved.</p>
<p>I am calling this a hack instead of customization because it&#8217;s not an included feature in Firefox. I had to manually modify one of it&#8217;s original core files to make this work. Thinking about this logically, obviously Firefox did not include such feature nor there is an addon for this because they don&#8217;t want the world&#8217;s favorite browser to turn into a keylogger. Use it with care and think twice before implementing this illegally as it can get you into a lot of trouble!<br />
<!--adsense#2--></p>
<p style="font-size:12px;">Technorati Tags: <a href="http://technorati.com/tag/firefox" rel="tag">firefox</a>, <a href="http://technorati.com/tag/password" rel="tag"> password</a>, <a href="http://technorati.com/tag/login" rel="tag"> login</a>, <a href="http://technorati.com/tag/notification" rel="tag"> notification</a>, <a href="http://technorati.com/tag/save" rel="tag"> save</a></p>
<img src="http://feeds.feedburner.com/~r/RaymondccBlog/~4/IvOdHK1AW0I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raymond.cc/blog/archives/2009/11/05/hacking-firefox-to-always-auto-save-password-without-showing-notification-bar/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
	</channel>
</rss>
