<?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>kill the radio &#187; hacks</title>
	<atom:link href="http://blog.killtheradio.net/tag/hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.killtheradio.net</link>
	<description>or die trying</description>
	<lastBuildDate>Thu, 15 Dec 2011 20:21:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Vim: Cursor at beginning of tab in normal mode</title>
		<link>http://blog.killtheradio.net/how-tos/vim-cursor-at-beginning-of-tab-in-normal-mode/</link>
		<comments>http://blog.killtheradio.net/how-tos/vim-cursor-at-beginning-of-tab-in-normal-mode/#comments</comments>
		<pubDate>Sun, 21 Nov 2010 21:57:32 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=645</guid>
		<description><![CDATA[One thing that annoys me in Vim is that in normal mode, the cursor defaults to being at the end of a tab character. When I hit &#8220;Home&#8221; I expect the cursor to go all the way to the left, but instead it hovers 4 spaces to the right of where I expect it to. [...]]]></description>
			<content:encoded><![CDATA[<p>One thing that annoys me in Vim is that in normal mode, the cursor defaults to being at the end of a tab character. When I hit &#8220;Home&#8221; I expect the cursor to go all the way to the left, but instead it hovers 4 spaces to the right of where I expect it to. I stumbled across the answer after reading a <a href="http://www.mail-archive.com/vim_dev@googlegroups.com/msg04592.html">mailing list thread for vim</a>.</p>
<pre>set list lcs=tab:\ \ 
" Note the extra space after the second \</pre>
<p>You can put this in your .vimrc to automatically set this behavior. Very useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/how-tos/vim-cursor-at-beginning-of-tab-in-normal-mode/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to get the TOP2004 programmer running under Windows 7 64-bit</title>
		<link>http://blog.killtheradio.net/tricks-hacks/how-to-get-the-top2004-programmer-running-under-windows-7-64-bit/</link>
		<comments>http://blog.killtheradio.net/tricks-hacks/how-to-get-the-top2004-programmer-running-under-windows-7-64-bit/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 05:40:50 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Tricks/Hacks]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[eeprom]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[hobby]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=497</guid>
		<description><![CDATA[UPDATE &#8211; Apparently closing the VM, unplugging the programmer, unselecting the programmer from the USB device menu, or pausing the VM after the programmer has been loaded by the VM makes Windows 7 bluescreen. So far, I have not found a way around this, as such the TOP2004 is effectively useless again. At least it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE</strong> &#8211; Apparently closing the VM, unplugging the programmer, unselecting the programmer from the USB device menu, or pausing the VM after the programmer has been loaded by the VM makes Windows 7 bluescreen. So far, I have not found a way around this, as such the TOP2004 is effectively useless again. At least it&#8217;s able to program chips and stuff, but once loaded, the VM has to stay open and has to be running. Pretty lame. I&#8217;ll try to find a fix and update (BTW I&#8217;m using the latest VirtualBox as of this writing). Any ideas?</p>
<hr />
<p><a href="http://blog.killtheradio.net/wp-content/uploads/2010/03/top2004.jpg"><img class="alignright size-medium wp-image-498" title="My model didn't come with the gnarly blue racing stripe, but hopefully yours did" src="http://blog.killtheradio.net/wp-content/uploads/2010/03/top2004-300x217.jpg" alt="top2004" width="300" height="217" /></a>I love electronics. Building basic circuits, programming microcontrollers, making malicious self-replicating robots programmed to hate humans, and even so much as wiring up complete motherboards with old processors and LCDs. I had to find a USB flash/eeprom programmer that fit my hardcore lifestyle. On ebay a few years back, I bought the <a rel="nofollow" href="http://www.top2048.com/">TOP2004</a>. This wondrous piece of Chinese equipment is cheap, cheap, and USB. I needed USB because in the process of making my own flash programmer a while back, I destroyed half the pins on my parallel port. The programmer worked great, but only worked for one chip. I needed something a bit more versatile. The top2004 isn&#8217;t a bad piece of equipment. The manual was translated poorly from Chinese, as is the software that comes with it.</p>
<p>Well, for the longest time, I was a Windows XP guy. Nowadays it&#8217;s all about Windows 7. Don&#8217;t get me wrong, I&#8217;m <a href="http://www.slackware.org">Slackware</a> through and through, but I need my gaming. So I installed 64-bit Windows and love it, but my programmer no longer works.</p>
<p><strong>Requirements</strong>: a 64-bit OS that doesn&#8217;t let you use 32-bit drivers (namely Windows 7 x64), a 32-bit version of Windows laying around, virtualization software (check out <a href="http://www.virtualbox.org/">VirtualBox</a>) which is running your 32-bit version of Windows, a Top2004 programmer, <a href="http://www.ngohq.com/home.php?page=dseo">DSEO</a>, and the <a href="http://blog.killtheradio.net/wp-content/uploads/2010/03/libusb.7z">infwizard utility with libusb drivers</a> (virus free, I promise).</p>
<p>Here&#8217;s the fix:</p>
<ol>
<li>I remembered when jailbreaking my iPod a while back with <a href="http://quickfreedom.com/">Quickfreedom</a> that there was a utility used to sniff out USB devices called <a href="http://blog.killtheradio.net/wp-content/uploads/2010/03/libusb.7z">infwizard</a>, which I believe is part of the libusb package. I never liked libusb because I remember it royally messing up my computer, but the infwizard program was dandy. It can write very simple drivers for USB devices without any prior knowledge of what they are. I used this with the programmer plugged in to create a makeshift driver. Note: Make sure the libusb* files in that zip provided are in the same directory as the .INF file you create for the programmer.</li>
<li>64-bit Windows doesn&#8217;t like you to load unsigned drivers. In fact, it doesn&#8217;t allow it at all. You have to download a utility called <a href="http://www.ngohq.com/home.php?page=dseo">DSEO (Driver Signature Enforcement Override)</a> to convince Windows that it should let you load the driver you just created.</li>
<li>Once you turn driver enforcement off and load up the driver, you should now be able to see your TOP programmer in the device list. Boot your VM, which previously couldn&#8217;t use the programmer (because it had no driver), and install v2.52 of the <a rel="nofollow" href="http://www.top2048.com/gb/soft.htm">TopWin software</a>. Once installed, you should be able to select the TOP2004 from the USB device list, and voilá&#8230;your programmer works.</li>
</ol>
<p>Obviously running it in a VM is less than ideal, but it&#8217;s better than dropping $200 on a real programmer that might actually have 64-bit support. The great part about this version (2.52) of the TopWin software is that it supports the atmega168, which is almost exactly the same as the atmega328&#8230;meaning <a href="http://www.arduino.cc/">arduino</a> fans new and old can use it. I&#8217;m not an arduino guy and use the chip just by itself with avr-gcc, but you can do whatever the hell you want once you get the TOP programmer working.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/tricks-hacks/how-to-get-the-top2004-programmer-running-under-windows-7-64-bit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

