<?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>Bin-Blog &#187; hack</title>
	<atom:link href="http://www.bin-co.com/blog/tag/hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bin-co.com/blog</link>
	<description>Learn about the latest in Web Development - as soon as I do.</description>
	<lastBuildDate>Tue, 13 Oct 2009 18:55:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Windows Hacks: &#8216;The Escape&#8217;</title>
		<link>http://www.bin-co.com/blog/2009/01/windows-hacks-the-escape/</link>
		<comments>http://www.bin-co.com/blog/2009/01/windows-hacks-the-escape/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 18:26:40 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Opinion]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[dll]]></category>
		<category><![CDATA[escape]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[resource hacker]]></category>
		<category><![CDATA[shortcut]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=215</guid>
		<description><![CDATA[What's the keyboard shortcut to close an application? Yes, its Alt+F4. Its not an easy shortcut to hit. I always thought that the Escape key was a much better shortcut to close applications. Once I convinced myself that it was the 'One-True-Way'<sup>TM</sup>, I decided to impose that shortcut on the applications that I use. Metapad and Irfan View already had that option - the other application I had my sight on was the Windows Explorer(explorer.exe). <strong class="highlight">This tutorial will teach you how to add the Escape key as a shortcut to close Windows Explorer</strong>.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/01/windows_logo.jpg" alt="" title="Windows Logo" width="119" height="106" class="alignnone size-medium wp-image-213 intro" align="right" /></p>
<p class="intro">What&#8217;s the keyboard shortcut to close an application? Yes, its Alt+F4. Its not an easy shortcut to hit. I always thought that the Escape key was a much better shortcut to close applications. Once I convinced myself that it was the &#8216;One-True-Way&#8217;<sup>TM</sup>, I decided to impose that shortcut on the applications that I use. Metapad and Irfan View already had that option &#8211; the other application I had my sight on was the Windows Explorer(explorer.exe). <strong class="highlight">This tutorial will teach you how to add the Escape key as a shortcut to close Windows Explorer</strong>.</p>
<p>By the way, this is a post about my <a href="http://www.bin-co.com/blog/2009/01/3-windows-speed-tips-from-linux-user/">Windows days</a> &#8211; this is much easier to do in Linux &#8211; but thats another story.</p>
<h2>Stuff you need to know before continuing</h2>
<p>This is a fairly advanced hack &#8211; its not for everyone. It involves <strong class="highlight">editing core Windows files</strong> &#8211; which might be dangerous if done incorrectly. It also involves a bit of reverse engineering which <strong class="highlight">might be considered illegal</strong> by some lawyers. So continue only if you are sure.</p>
<p>This hack involes modifying Windows core files &#8211; which might some problems if done incorrectly. I cannot be held accountable for the outcome &#8211; be it good or bad. Actually, scratch that. Ff the result was a success, feel free to hold me accountable.</p>
<p>If you decide to continue, I would say that the result is worth the risk &#8211; <strong class="highlight">you will learn a method that will let you add custom shortcuts to application</strong> that don&#8217;t provide you with the source code. And it gives you a really cool feeling if you actually manage to pull the hack successfully.</p>
<p>I originally made this hack for Windows 98 &#8211; but it works on Windows XP as well. I have not tested it in Vista &#8211; I would be very grateful if anyone lets me know if it works in Vista or not.</p>
<h3>Stuff you are going to need&#8230;</h3>
<ul>
<li>Get <a href="http://angusj.com/resourcehacker/">Resource Hacker</a> &#8211; you will be editing core windows DLLs with this tool.</li>
<li>FreeDOS or Linux Live CD/DVD &#8211; you have to save the file to the original location when windows is not running. You must also know how to work in the Live OS &#8211; be it DOS or Linux.</li>
<li>Courage &#8211; As I said before, this hack is not for the faint of heart.</li>
</ul>
<h2>Lets Begin</h2>
<p>Install <a href="http://angusj.com/resourcehacker/">Resource Hacker</a>. </p>
<p>Make a backup of &#8216;<code>C:\WINDOWS\system32\browselc.dll</code>&#8216; and &#8216;<code>C:\WINDOWS\system32\Restore\filelist.xml</code>&#8216; before doing anything &#8211; just in case.</p>
<p>Go to <code>C:\WINDOWS\system32</code></p>
<p>Make sure that you are seeing all the files there&#8230;<br />
Tools -&gt; Folder Options -&gt; &#8216;View&#8217; Tab -&gt; Hidden Files and folders -&gt; Show hidden files and folders(must be checked)</p>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/01/show_hidden_files.png" alt="" title="Show Hidden Files in Windows" width="287" height="143" class="alignnone size-full wp-image-216" /></p>
<p>Refresh the folder and then find the file &#8216;<code>browselc.dll</code>&#8216;</p>
<p>Make a copy of that file in some other folder &#8211; say <code>C:/Hacks/</code></p>
<p>Now open Resource Hacker</p>
<p>Open the DLL file in Resource Hacker&#8230;<br />
File -&gt; Open -&gt; <code>C:/Hacks/browselc.dll</code></p>
<p>In the &#8216;Menu&#8217; find look through all sections to find a menu with the &#8216;File-&gt;Close&#8217; item. </p>
<p>It should be at Menu -&gt; 263 -&gt; 1033</p>
<p>Find the string<br />
<code>MENUITEM "&amp;Close", 40993, MFT_STRING, MFS_ENABLED</code></p>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/01/close_menu_number.png" alt="" title="Close Menu Item Number" width="500" height="270" class="alignnone size-full wp-image-217" /></p>
<p>In this <strong class="highlight">the number 40993 is what we want</strong>. Write the number down somewhere. <strong class="highlight">Think of it as the function that gets executed when that menu item is clicked</strong>. You can create a shortcut for any menu item by find out this number for that menu item. </p>
<p>Now we have to add a shortcut for this &#8216;function&#8217; &#8211; go to the &#8216;Accelerators&#8217; section &#8211; &#8216;Accelerators -&gt; 256 -&gt; 1033&#8242;. We found the menu at Menu -&gt; 263 -&gt; 1033 &#8211; so the Shortcut should be at Accelerators -&gt; 256 -&gt; 1033. See the pattern?</p>
<p>Find the line<br />
<code>VK_ESCAPE, 41498, NOINVERT, VIRTKEY</code></p>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/01/escape_key_line.png" alt="" title="Escape Key Line" width="500" height="139" class="alignnone size-full wp-image-218" /></p>
<p>Modify it to read<br />
<code>VK_ESCAPE, 40993, NOINVERT, VIRTKEY</code></p>
<p>I have changed the number to 40993 &#8211; the call for the &#8216;Close&#8217; action.</p>
<p>Now hit the &#8216;Compile Script&#8217; button on the top. If you have done it correctly, you should not get any errors.</p>
<p>Save the new version using File -&gt; Save</p>
<p>Congratulations, you have successfully created a new &#8216;Accelerator&#8217;(shortcut). Now the hard part &#8211; putting the file back into &#8216;C:\WINDOWS\system32&#8242;.</p>
<p>If you are on Windows XP, it monitors for changed files &#8211; so if we put the changed DLL file back, it will be reverted to the original file on the next boot. To get around it, follow the steps below&#8230;</p>
<p>Open up the file <code>C:\WINDOWS\system32\Restore\filelist.xml</code> in a editor like notepad</p>
<p>Find these lines&#8230;</p>
<pre><code class="xml">&lt;Exclude&gt;
	&lt;REC&gt;%windir%\system.ini&lt;/REC&gt;
	&lt;REC&gt;%windir%\tasks\desktop.ini&lt;/REC&gt;
	&lt;REC&gt;%windir%\win.ini&lt;/REC&gt;
	&lt;REC&gt;*:\AUTOEXEC.BAT&lt;/REC&gt;
	&lt;REC&gt;*:\CONFIG.MSI&lt;/REC&gt;
	&lt;REC&gt;*:\CONFIG.SYS&lt;/REC&gt;
&lt;/Exclude&gt;</code></pre>
<p>Add the line&#8230;<br />
&lt;REC&gt;%windir%\system32\browselc.dll&lt;/REC&gt;<br />
after the line &lt;REC&gt;*:\CONFIG.SYS&lt;/REC&gt;</p>
<p>After doing this you may not be able to save the file. Curse windows for a bit and continue.</p>
<p>Open up a DOS Shell and enter these commands in order&#8230;</p>
<pre><code class="batch">attrib -S -H C:\WINDOWS\system32\Restore\filelist.xml
attrib -R C:\WINDOWS\system32\Restore\filelist.xml</code></pre>
<p>Now you will be able to save this file &#8211; do so.</p>
<h2>Replace Original <code>browselc.dll</code> with Modified Version</h2>
<p>The next thing to do is replace the original browselc.dll file with our hacked version. This cannot be done when windows is running. It must be done when windows is down &#8211; that&#8217;s where FreeDOS CD or Linux Live CDs comes in.</p>
<h4>FreeDOS</h4>
<p>If you have FreeDOS CD, boot into that as the LiveCD(I hope you know how to do this &#8211; basically, you <strong class="highlight">put in the CD, reboot the system, change the setting in the BIOS to make the CD the primary boot device and boot into the CD</strong>. Needless to say, you need a bootable CD for this to work.)</p>
<p>After you have booted into DOS, execute the command&#8230;<br />
<code>copy C:\Hacks\browselc.dll C:\Windows\system32\browselc.dll</code></p>
<p>Now remove the FreeDOS CD, reboot back into windows.</p>
<h4>Linux</h4>
<p>If you have a live Linux CD, pop it in and boot into that. Now mount the partition that&#8217;s the C partition in windows(usually sda1 or hda1). Then all you have to do is <strong class="highlight">copy the modified DLL file from the &#8216;Hacks&#8217; folder to &#8216;Windows\system32\&#8217; folder</strong> in that partition using the File manager for that distribution.</p>
<p>Once that is done, you reboot into windows.</p>
<h3>All Done</h3>
<p>Finally, its all over. All you have to do is <strong class="highlight">open up a folder &#8211; and press the Escape key. If all went well, the explorer application will be closed</strong>.</p>
<p>This is a rather complicated way to do a rather simple thing &#8211; you set custom shortcuts easily using tools like <a href="http://www.autohotkey.com/">AutoHotKey</a> and setting up macros. But by doing it my way, you will learn a method to peek into exe and dll files. And if you are a programmer like me &#8211; it will give you hours of entertainment. I have actually found left over stuff from Windows 3.1 in Windows XP DLLs &#8211; but that&#8217;s a post for another time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2009/01/windows-hacks-the-escape/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>3 Windows Speed Tips from a Linux User</title>
		<link>http://www.bin-co.com/blog/2009/01/3-windows-speed-tips-from-linux-user/</link>
		<comments>http://www.bin-co.com/blog/2009/01/3-windows-speed-tips-from-linux-user/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 17:18:33 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Opinion]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[98]]></category>
		<category><![CDATA[fast]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[optimize]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=212</guid>
		<description><![CDATA[Most of my regular readers know that <strong class="highlight">I do most of my work in <a href="http://lindesk.com/">Linux</a>. After all, my development platform is LAMP(L being Linux)</strong>. But it was not always so - <strong class="highlight">I used to be on Windows</strong>(in a period now referred to as the dark ages). Being a power user, I found a lot of tweaks on Windows. But I never managed to share them on any of my blogs - because I started almost all of them after I moved to Linux. So here is three tips on how to make Windows a bit better(or at least less painful).]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/01/windows_logo.jpg" alt="" title="Windows Logo" width="119" height="106" class="alignnone size-full wp-image-213 intro" align="right" /></p>
<p class="intro">Most of my regular readers know that <strong class="highlight">I do most of my work in <a href="http://lindesk.com/">Linux</a>. After all, my development platform is LAMP(L being Linux)</strong>. But it was not always so &#8211; <strong class="highlight">I used to be on Windows</strong>(in a period now referred to as the dark ages). Being a power user, I found a lot of tweaks on Windows. But I never managed to share them on any of my blogs &#8211; because I started almost all of them after I moved to Linux. So here is three tips on how to make Windows a bit better(or at least less painful).</p>
<p>I started on Windows 95 &#8211; my first computer(400 MHz, 32 MB RAM, 4 GB HDD) had it pre-installed. That was my introduction to computers. But soon I migrated to Windows 98. I have very fond memories of that OS &#8211; Windows 98 is my favorite OS in the windows family. As a matter of fact, even now, my systems have that green background of Windows 98. I moved to Linux(Fedora Core 1) after that. So most of the tips shared here was tested on Windows 98 &#8211; but I am sure it still applies to the later versions as well. I don&#8217;t use these tricks anymore(I don&#8217;t use Windows that much now) &#8211; so I wanted document them before I forget them.</p>
<p>Being a speed junkie &#8211; and having a 32 MB RAM &#8211; made me optimize my system a lot. I found most of the tips below with a lot of trial and error(we did not have the internet back then &#8211; why do you think I call it the dark ages?). Anyway, here are my top 3 tips to make your windows a little better&#8230;</p>
<h2>Speed Up Explorer.exe</h2>
<p>You can <strong class="highlight">speed up the time taken to show a folder contents</strong> using this trick&#8230;</p>
<ul>
<li>Open a folder in Explorer</li>
<li>Choose Tools &gt; Folder Options</li>
<li>Select the &#8216;Use Windows classic folders&#8217; in the Tasks section</li>
<li>Press OK.</li>
</ul>
<p>This will get rid of the &#8216;Common Tasks&#8217; to the left of the explorer. Now try browsing for files &#8211; you will notice a considerable difference in speed.</p>
<h2>Startup Optimization</h2>
<p>You might already know this tip if you are a &#8216;Power User&#8217; &#8211; msconfig. To <strong class="highlight">make your system more responsive and consume less memory</strong>, you can remove unwanted tasks from startup&#8230;</p>
<ul>
<li>Go to Start &gt; Run.</li>
<li>Type in &#8216;msconfig&#8217; without the quotes</li>
<li>Go to the Startup tab</li>
<li>Unselect the application that you know you don&#8217;t need. </li>
<li>Press OK &#8211; you don&#8217;t have to restart.</li>
</ul>
<p>The deactivated apps will not start from the next boot. In some cases, this will really speed up your system.</p>
<h2>Replace Default File Viewers</h2>
<p><strong class="highlight">Notepad should be replaced with <a href="http://www.liquidninja.com/metapad/">Metapad Lite</a></strong>. Not Notepad++ or other &#8216;Advanced Editors&#8217; &#8211; they take half a second to load. Metapad Lite is much faster &#8211; as fast as notepad &#8211; but with more features.</p>
<p>Use <strong class="highlight">Irfan View as your default Image viewer</strong>. I am sure most of you guys are doing this already.</p>
<p><strong class="highlight">Replace Internet Explorer with Firefox</strong>. You will not see a immediate speed improvement. But in the long run, Firefox will prevent many virus from getting access to your system &#8211; giving you a stabler, faster system.</p>
<p><a href="http://www.foobar2000.org/">Foobar2000</a> is a better and faster audio player than default audio player provided by Windows. But then again, do anyone use Windows Media Player?</p>
<p>If you are a programmer I would recommend <strong class="highlight"><a href="http://notepad-plus.sourceforge.net/uk/site.htm">Notepad++</a> &#8211; as an editor</strong> &#8211; not as a Notepad replacement.</p>
<h2>Other Tweaks</h2>
<p>There are many other tweaks as well &#8211; but most of them are obsolete due to faster machines and newer OSes. Some of them include&#8230;</p>
<ul>
<li>Disabling Wallpaper/Screensaver</li>
<li>Use <a href="http://www.x-setup.net/">XSetup</a> to optimize hidden settings</li>
<li>Using a better terminal than Command Prompt</li>
<li>Disabling the &#8216;Effects&#8217; &#8211; Fade effects, Menu Shadow, etc.</li>
<li>Disabling File Indexing</li>
<li>Disabling HDD Paging(Virtual Memory)</li>
<li>And more&#8230;</li>
</ul>
<p>In my next post, I will introduce you to my great Windows Hack &#8211; &#8216;The Escape&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2009/01/3-windows-speed-tips-from-linux-user/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Hacker: The &#8216;Correct Meaning&#8217; &#8211; And Why its Wrong</title>
		<link>http://www.bin-co.com/blog/2007/11/hacker-the-correct-meaning-and-why-its-wrong/</link>
		<comments>http://www.bin-co.com/blog/2007/11/hacker-the-correct-meaning-and-why-its-wrong/#comments</comments>
		<pubDate>Thu, 08 Nov 2007 14:28:26 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Opinion]]></category>
		<category><![CDATA[cracker]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[meaning]]></category>
		<category><![CDATA[term]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/2007/11/hacker-the-correct-meaning-and-why-its-wrong/</guid>
		<description><![CDATA[Ever been to a LUG meeting where a member uses the term &#8216;Hacker&#8217; when they should have said &#8216;Cracker&#8217;? The others crucify the poor soul within seconds. In programming circles, a hacker is a rather good programmer. &#8220;A person who enjoys exploring the details of programmable systems and how to stretch their capabilities, as opposed [...]]]></description>
			<content:encoded><![CDATA[<p class="intro">Ever been to a <abbr title="Linux User Group">LUG</abbr> meeting where a member uses the term &#8216;Hacker&#8217; when they should have said &#8216;Cracker&#8217;? The others crucify the poor soul within seconds. In programming circles, a hacker is a rather good programmer. &#8220;A person who enjoys exploring the details of programmable systems and how to stretch their capabilities, as opposed to most users, who prefer to learn only the minimum necessary.&#8221; (<a href="http://www.ecst.csuchico.edu/~beej/chg/defin.html">Jargon File</a>). In the popular media, the term hacker refers to a person who breaks security on a system. Programmers call them Crackers.</p>
<p>Before 1985, there was no word for &#8216;Crackers&#8217; &#8211; both good an bad hackers were know as, well, hackers. Soon the good hackers got tired of being lumped together with the bad guys. So they created a term for the baddies &#8211; the Crackers. And they got very upset when the media did not use the new word.</p>
<p>What I don&#8217;t get is why people cannot understand that the word &#8216;hacker&#8217; has two(or more) different but equally valid meanings. I believe that the term &#8216;hacker&#8217; can be used in the place of &#8216;cracker&#8217; &#8211; as long as the understood that the word has two meanings.</p>
<p>The term hacker comes from the word hack &#8211; and the most valid meaning for the term is to circumvent the security of a system. As in &#8220;I can hack into your computer within minutes.&#8221; So people who &#8216;hack&#8217; are called hackers.</p>
<h2>Conclusion</h2>
<p>In short, don&#8217;t get upset when others use the term hackers in the &#8216;wrong way&#8217;. If you want you can continue using the term cracker &#8211; that will solve the issue of ambiguity of the term &#8216;hacker&#8217;. Just don&#8217;t try to enforce your meaning upon others.</p>
<p>I am sure many of you would disagree, but <a href="http://blog.binnyva.com/2007/11/30-reasons-why-all-programmers-are-schizophrenics/">you are all Schizophrenics</a> &#8211; why should I care what you have to say? <img src='http://www.bin-co.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<h2>Related Links</h2>
<ul>
<li><a href="http://www.paulgraham.com/gba.html">The Word Hacker</a></li>
<li><a href="http://en.wikipedia.org/wiki/Hacker">Hacker (Wikipedia)</a></li>
<li><a href="http://www.ecst.csuchico.edu/~beej/chg/defin.html">Some definitions</a></li>
<li><a href="http://en.wikipedia.org/wiki/Hacker_definition_controversy">Hacker definition controversy</a></li>
<li><a href="http://www.cs.berkeley.edu/~bh/hacker.html">What is a Hacker?</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2007/11/hacker-the-correct-meaning-and-why-its-wrong/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
