<?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</title>
	<atom:link href="http://blog.killtheradio.net/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>SETI &#8211; A waste of time</title>
		<link>http://blog.killtheradio.net/social-issues/seti-a-waste-of-time/</link>
		<comments>http://blog.killtheradio.net/social-issues/seti-a-waste-of-time/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 20:21:43 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Social issues]]></category>
		<category><![CDATA[communication]]></category>
		<category><![CDATA[intelligence]]></category>
		<category><![CDATA[seti]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=760</guid>
		<description><![CDATA[I&#8217;ll keep this brief. I&#8217;ve been thinking a lot lately about SETI. What happens when we do, at some point in our existence, come into contact with another &#8220;intelligent&#8221; life form? Ideally we&#8217;d communicate with it. I think this part is a bit overlooked. How do we communicate with other life forms? I think the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll keep this brief. I&#8217;ve been thinking a lot lately about <a href="http://www.seti.org/">SETI</a>. What happens when we do, at some point in our existence, come into contact with another &#8220;intelligent&#8221; life form? Ideally we&#8217;d communicate with it. I think this part is a bit overlooked. How do we communicate with other life forms?</p>
<p>I think the best way to start is to learn to communicate with the life forms that are right here on Earth. If we can&#8217;t communicate fluently with mammals, birds, reptiles, etc then how can we expect ourselves to communicate with life forms that have (in all likeliness) evolved under completely different circumstances than us?</p>
<p>I think the main problem is humanity&#8217;s bar for &#8220;intelligence.&#8221; Humans, I believe, are not intelligent. We know <em>stuff</em> and we can do <em>stuff</em> and over our short existence we&#8217;ve managed to dramatically alter our evolutionary path, but I believe about %0.01 of what we&#8217;ve done is intelligent. The rest is driven by fear and greed. We&#8217;re very quick to shout our intelligence from the mountaintops whilst viewing other beings that we share this planet with as simpler or lesser.</p>
<p>Perhaps all the beings of this planet aren&#8217;t lesser. Perhaps they all have their own languages. Perhaps we could have talked to them at one point in our existence but now we are so incredibly intelligent that we can&#8217;t understand them anymore.</p>
<p>The Search for Extraterrestrial Intelligence needs to start here. We need to forget about what we know about ourselves and the rest of our world. We need to learn the language of our world and its inhabitants before we go searching for languages of other worlds.</p>
<p>We need to learn to listen before we talk.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/social-issues/seti-a-waste-of-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Composer.js &#8211; a new Javascript MVC framework for Mootools</title>
		<link>http://blog.killtheradio.net/technology/composer-js-a-new-javascript-mvc-framework-for-mootools/</link>
		<comments>http://blog.killtheradio.net/technology/composer-js-a-new-javascript-mvc-framework-for-mootools/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 00:12:56 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[frameworks]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[releases]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=745</guid>
		<description><![CDATA[So my brother Jeff and I are building to Javascript-heavy applications at the moment (heavy as in all-js front-end). We needed a framework that provides loose coupling between the pieces, event/message-based invoking, and maps well to our data structures. A few choices came up, most notably Backbone.js and Spine. These are excellent frameworks. It took [...]]]></description>
			<content:encoded><![CDATA[<p>So my brother <a href="http://zinn-x.com">Jeff</a> and I are building to Javascript-heavy applications at the moment (heavy as in all-js front-end). We needed a framework that provides loose coupling between the pieces, event/message-based invoking, and maps well to our data structures. A few choices came up, most notably <a href="http://documentcloud.github.com/backbone/">Backbone.js</a> and <a href="http://spinejs.com/">Spine</a>. These are excellent frameworks. It took a while to wrap my head around the paradigms because I was so used to writing five layers deep of embedded events. Now that I have the hang of it, I can&#8217;t think of how I ever lived without it. There&#8217;s just one large problem&#8230;these libraries are for <a href="http://jquery.com/">jQuery</a>.</p>
<p>jQuery isn&#8217;t bad. We&#8217;ve always gravitated towards <a href="http://mootools.net/">Mootools</a> though. Mootools is a framework to make javascript more usable, jQuery is nearly a completely new language in itself written on top of javascript (and mainly for DOM manipulation). Both have their benefits, but we were always good at javascript before the frameworks came along, so something that made that knowledge more useful was an obvious choice for us. </p>
<p>I&#8217;ll also say that after spending some time with these frameworks and being sold (I especially liked Backbone.js) I gave jQuery another shot. I ported all of our common libraries to jQuery and I spent a few days getting used to it and learning how to do certain things. I couldn&#8217;t stand it. The thing that got me most was that there is no distinction between a DOM node and a collection of DOM nodes. Maybe I&#8217;m just too used to Moo (4+ years).</p>
<h2 style="font-weight: normal;"><a href="http://lyonbros.github.com/composer.js/">Composer.js</a></h2>
<p><a href="http://lyonbros.github.com/composer.js/"><img src="http://lyonbros.github.com/composer.js/composer.gif" width="254" height="250" alt="composer" style="float: right; padding: 0 0 0 5px;" /></a>So we decided to roll our own. <a href="http://github.com/lyonbros/composer.js">Composer.js</a> was born. It merges aspects of Spine and Backbone.js into a Mootools-based MVC framework. It&#8217;s still in progress, but we&#8217;re solidifying a lot of the API so developers won&#8217;t have to worry about switching their code when v1 comes around.</p>
<p><a href="http://lyonbros.github.com/composer.js/">Read the docs</a>, give it a shot, and let us know if you have any problems or questions.</p>
<p>Also, yes, we blatantly ripped off Backbone.js in a lot of places. We&#8217;re pretty open about it, and also pretty open about attributing everything we took. They did some really awesome things. We didn&#8217;t necessarily want to do it differently more than we wanted a supported Mootools MVC framework that works like Backbone.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/technology/composer-js-a-new-javascript-mvc-framework-for-mootools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rekon &#8211; a simple Riak GUI</title>
		<link>http://blog.killtheradio.net/technology/rekon-a-simple-riak-gui/</link>
		<comments>http://blog.killtheradio.net/technology/rekon-a-simple-riak-gui/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 06:17:34 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=735</guid>
		<description><![CDATA[I was looking around for Riak information when I stumbled (not via stumble, but actually doing my own blundering) across a blog post that mentioned a Riak GUI. I checked it out. Install is simple and oddly enough, the tool uses only javascript and Riak (no web server needed). I have to say I&#8217;m thoroughly [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking around for Riak information when I stumbled (not via stumble, but actually doing my own blundering) across a <a href="http://jbbarth.com/archives/2011/4/21/a_first_sight_at_riak/">blog post</a> that mentioned a <a href="https://github.com/adamhunter/rekon">Riak GUI</a>. I checked it out. Install is simple and oddly enough, the tool uses only javascript and Riak (no web server needed). I have to say I&#8217;m thoroughly impressed by it. Currently the tool doesn&#8217;t do a ton besides listing buckets, keys, and stats, but you can edit your data inline and delete objects. It also supports <a href="http://wiki.basho.com/Luwak.html">Luwak</a>, which I have no first-hand experience with and was unable to try out.  </p>
<p>One thing I thought that was missing was a way to run a <a href="http://wiki.basho.com/MapReduce.html">map-reduce</a> on the cluster via text input boxes for the functions. It would make writing and testing them a bit simpler I think, but then again it would be easy enough to write this myself in PHP or even JS, so maybe I&#8217;ll add it in. <a href="http://wiki.basho.com/Riak-Search.html">Search</a> integration would be nice too, although going to 127.0.0.1:8098/solr/[bucket]search?&#8230; is pretty stupid easy.</p>
<p>All in all, a <a href="https://github.com/adamhunter/rekon">great tool</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/technology/rekon-a-simple-riak-gui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A small modification to John Resig&#8217;s JS micro-templating (to make it like PHP)</title>
		<link>http://blog.killtheradio.net/technology/a-small-modification-to-john-resigs-js-micro-templating-to-make-it-like-php/</link>
		<comments>http://blog.killtheradio.net/technology/a-small-modification-to-john-resigs-js-micro-templating-to-make-it-like-php/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 22:17:52 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[templating]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=718</guid>
		<description><![CDATA[John Resign created some incredibly wonderful Javascript code for templating. It&#8217;s so terse that it almost shouldn&#8217;t work&#8230;but it does. I&#8217;ve been using it on a lot of front-end JS apps lately, and realized I could make a few changes and improvements. First off, I don&#8217;t like &#60;% asp style tags %&#62;. It reminds me [...]]]></description>
			<content:encoded><![CDATA[<p>John Resign created some <a href="http://ejohn.org/blog/javascript-micro-templating/">incredibly wonderful Javascript code for templating</a>. It&#8217;s so terse that it almost shouldn&#8217;t work&#8230;but it does. I&#8217;ve been using it on a lot of front-end JS apps lately, and realized I could make a few changes and improvements.</p>
<p>First off, I don&#8217;t like &lt;% asp style tags %&gt;. It reminds me of programming ASP. It reminds me of a trip through hell I&#8217;ve taken too many times. I changed it to use PHP-style tags instead:</p>
<pre>&lt;ul class="&lt;?=myclass?>">
&lt;? for(var i = 0; i < items.length; i++) { ?>
    &lt;li>&lt;?=items[i].name?>
&lt;? } ?>
&lt;/ul></pre>
<p>This makes it easier for me to type. I also made one further modification. Adding $ in front of your variables will check if they are undefined before using them, and if not defined will return them as null:</p>
<pre>Hello, &lt;?=$name?>.
&lt;? if($user.friends) { ?>
    You have &lt;?=$user.friends.length?> friends.
&lt;? } ?></pre>
<p>The if statement above will compile to </p>
<pre>if((typeof(user.friends) == 'undefined' ? null : user.friends)) { ... </pre>
<p>This allows some simple usages of undefined variables, such as &#8220;if(undefined_var) { &#8230; } else { &#8230; }&#8221; which actually pops up a lot. You still can&#8217;t access non-existent properties of variables that aren&#8217;t defined, but this should catch a lot of errors that would otherwise turn your code into a bunch of if(typeof &#8230;)&#8217;s. </p>
<p>Here&#8217;s the code (for brevity, I left out all the caching stuff that makes this fast):</p>
<pre>var template = '&lt;h1>My Template&lt;/h1> ...';
new Function(
	"obj",
	"var p=[],print=function(){p.push.apply(p,arguments);};" +
	// Introduce the data as local variables using with(){}
	"with(obj) {p.push('" +
	// Convert the template into pure JavaScript
	template.replace(/[\r\t\n]/g, " ")
		// find any code blocks (not html, not &lt;?=print_var?>... anything inside a
		// &lt;? ... ?>
		.replace(/&lt;\?(.*?)\?>/g, function(match) {
			// look for any string starting with a "$" and wrap it in a ternary typeof op
			return match.replace(/\$([a-z_][a-z0-9_\.]+)/gi, '(typeof($1) == "undefined" ? null : $1)');
		})
		.split("&lt;?").join("\t")
		.replace(/((^|\?>)[^\t]*)'/g, "$1\r")
		.replace(/\t=\$?(.*?)\?>/g, "',(typeof($1) != 'undefined' ? $1 : ''),'")
		.split("\t").join("');")
		.split("?>").join("p.push('")
		.split("\r").join("\\'") + "');}"
		//+ "console.log('Loading template " + name + "');"
		+ "return p.join('');"
);</pre>
<p>This has been working for me for a bit now, and has saved me countless annoying declarations at the top if my templates. If you run into any problems, please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/technology/a-small-modification-to-john-resigs-js-micro-templating-to-make-it-like-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mono, C# for a large backend system</title>
		<link>http://blog.killtheradio.net/technology/mono-c-for-a-large-backend-system/</link>
		<comments>http://blog.killtheradio.net/technology/mono-c-for-a-large-backend-system/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 23:13:53 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=710</guid>
		<description><![CDATA[I just did a writeup about MongoDB&#8217;s performance in the last big app we did. Now it&#8217;s time to rip Mono a new one. Mono has been great. It&#8217;s .NET for linux. We originally implemented it because it&#8217;s noted for being a fast, robust compiled language. I didn&#8217;t know C# before starting the project, but [...]]]></description>
			<content:encoded><![CDATA[<p>I just did a writeup about <a href="http://blog.killtheradio.net/technology/mongodb-for-a-large-queuing-system/">MongoDB&#8217;s performance in the last big app we did</a>. Now it&#8217;s time to rip <a href="http://www.mono-project.com/Main_Page">Mono</a> a new one.</p>
<p>Mono has been great. It&#8217;s .NET for linux. We originally implemented it because it&#8217;s noted for being a fast, robust compiled language. I didn&#8217;t know C# before starting the project, but afterwards I feel I have a fairly good grasp on it (10 months of using it constantly will do that). I have to say I like it. Coming from a background in C++, C# is very similar except the biggest draw is you don&#8217;t separate out your definitions from your code. Your code is your definition. No header files. I understand this is a requirement if you&#8217;re going to link code in C/C++ to other C/C++ code, but I hate doing it.</p>
<p>Back to the point, mono is great in many ways. It is fast, compiles from source fairly easily (although <a href="http://www.mono-project.com/Libgdiplus">libgdiplus</a> is another story, if you want to do image processing), and easy to program in.</p>
<p>We built out a large queuing system with C#. You enter jobs into a queue table in MongoDB, and they get processed based on priority/time entered (more or less) by C#. Jobs can be anything from gathering information from third-parties to generating images and layering them all together (I actually learned first-hand how some of these Photoshop filters work). The <a href="http://www.mono-project.com/Interop_with_Native_Libraries">P/Invoke</a> system allowed us to integrate with third party libraries where the language failed (such as simple web requests with timeouts or loading custom fonts,  for instance).</p>
<p>As with any project, it started off great. Small is good. Once we started processing large numbers of items in parallel, we&#8217;d get horrible crashes with native stacktraces. At first glance, it looked like problems with the Boehm garbage collector. We recompiled Mono with &#8211;enable-big-arrays and &#8211;with-large-heap. No luck. We contacted the Mono guys and, probably in lieu of all the political shenanigans happening with Mono at the moment, didn&#8217;t really have a good response for us. Any time the memory footprint got greater than 3.5G, it would crash. It didn&#8217;t happen immediately though, it seems random. Keep in mind Mono and the machines running it were 64bit&#8230;4G is not the limit!</p>
<p>Our solution was two fold:</p>
<ul>
<li>Put crash-prone code into separate binaries and call them via shell. If the process crashes, oh well, try again. The entire queue doesn&#8217;t crash though. This is especially handy with the image libraries, which seem to have really nasty crashes every once in a while (not related to the garbage collection).</li>
<li>Make sure <a href="http://mmonit.com/monit/">Monit</a> is watching at all times.</li>
</ul>
<p>We also gave the new <a href="http://www.mono-project.com/Generational_GC">sgen GC</a> a try, but it was much too slow to even compare to the Boehm. It&#8217;s supposed to be faster, but pitting the two against each other in a highly concurrent setting crowned Boehm the clear winner.</p>
<p>All in all, I like C# the language and Mono seemed very well put together at a small to medium scale. The garbage collector shits out at a high memory/concurrency level. I wouldn&#8217;t put Mono in a server again until the GC stuff gets fixed, which seems low priority from my dealings with the devs. Still better than Java though.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/technology/mono-c-for-a-large-backend-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MongoDB for a large queuing system</title>
		<link>http://blog.killtheradio.net/technology/mongodb-for-a-large-queuing-system/</link>
		<comments>http://blog.killtheradio.net/technology/mongodb-for-a-large-queuing-system/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 22:48:04 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=708</guid>
		<description><![CDATA[Let me set the background by saying that I currently (until the end of the week anyway) work for a large tech company. We recently launched a reader app for iPad. On the backend we have a thin layer of PHP, and behind that a lot of processing via C# with Mono. I, along with [...]]]></description>
			<content:encoded><![CDATA[<p>Let me set the background by saying that I currently (until the end of the week anyway) work for a large tech company. We recently launched a reader app for iPad. On the backend we have a thin layer of PHP, and behind that a lot of processing via <a href="http://en.wikipedia.org/wiki/C_Sharp_(programming_language)">C#</a> with <a href="http://www.mono-project.com/Main_Page">Mono</a>. I, along with my brother <a href="http://zinn-x.com">Jeff</a>, wrote most of the backend (PHP and C#). The C# side is mainly a queuing system driven off of <a href="http://www.mongodb.org/">MongoDB</a>.</p>
<p>Our queuing system is different from others in that it supports dependencies. For instance, before one job completes, its four children have to complete first. This allows us to create jobs that are actually trees of items all processing in parallel.</p>
<p>On a small scale, things went fairly well. We built the entire system out, and tested and built onto it over the period of a few months. Then came time for production testing. The nice thing about this app was that most of it could be tested via fake users and batch processing. We loaded up a few hundred thousand fake users and went to town. What did we find?</p>
<p>Without a doubt, MongoDB was the biggest bottleneck. What we really needed was a ton of write throughput. What did we do? <a href="http://www.mongodb.org/display/DOCS/Sharding">Shard</a>, of course. Problem was that we needed even distribution <em>on insert</em>&#8230;which would give us almost near-perfect balance for insert/update throughput. From what we found, there&#8217;s only one way to do this: give each queue item a randomly assigned &#8220;bucket&#8221; and shard based on that bucket value. In other words, do your own sharding manually, for the most part.</p>
<p>This was pretty disappointing. One of the whole reasons for going with Mongo is that it&#8217;s fast and scales easily. It really wasn&#8217;t as painless as everyone led us to believe. If I could do it all over again, I&#8217;d say screw dependencies, and put everything into <a href="http://redis.io/">Redis</a>, but the dependencies required more advanced queries than any key-value system could do. I&#8217;m also convinced a single <a href="http://www.mysql.com/">MySQL</a> instance could have easily handled what four MongoDB shards could barely keep up with&#8230;but at this point, that&#8217;s just speculation.</p>
<p>So there&#8217;s my advice: don&#8217;t use MongoDB for evenly-distributed high-write applications. One of the hugest problems is that there is a global write lock on the database. Yes, the database&#8230;not the record, not the collection. You cannot write to MongoDB while another write is happening anywhere. Bad news bears.</p>
<p>On a more positive note, for everything BUT the queuing system (which we did get working GREAT after throwing enough servers at it, by the way) MongoDB has worked flawlessly. The schemaless design has cut development time in half AT LEAST, and replica sets really do work insanely well. After all&#8217;s said and done, I would use MongoDB again, but for read-mostly data. Anything that&#8217;s high-write, I&#8217;d go <a href="http://redis.io/">Redis</a> (w/client key-hash sharding, like most memcached clients) or <a href="http://wiki.basho.com/">Riak</a> (which I have zero experience in but sounds very promising).</p>
<p>TL,DR; MongoDB is awesome. I recommend it for most usages. We happened to pick one of the few things it&#8217;s not good at and ended up wasting a lot of time trying to patch it together. This could have been avoided if we picked something that was built for high write throughput, or dropped our application&#8217;s &#8220;queue dependency&#8221; requirements early on. I would like if MongoDB advertised the <a href="http://www.mongodb.org/display/DOCS/How+does+concurrency+work#Howdoesconcurrencywork-Read%2FWriteLock">global write lock</a> a bit more prominently, because I felt gypped when one of their devs mentioned it in passing months after we&#8217;d started. I do have a few other projects in the pipeline and plan on using MongoDB for them.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/technology/mongodb-for-a-large-queuing-system/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>SDL 1.2.14 Windows 64 bit DLL</title>
		<link>http://blog.killtheradio.net/programming-2/sdl-1-2-14-windows-64-bit-dll/</link>
		<comments>http://blog.killtheradio.net/programming-2/sdl-1-2-14-windows-64-bit-dll/#comments</comments>
		<pubDate>Fri, 27 May 2011 20:44:13 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=696</guid>
		<description><![CDATA[I looked long and hard (reallly long and reallly hard) for an x86_64 version of the SDL.dll file (Simple DirectMedia Layer) but found it nowhere. I ended up compiling it myself with mingw64 and figured maybe some other people might benefit from my hard work and dedication. Get it here, and place the DLL in [...]]]></description>
			<content:encoded><![CDATA[<p>I looked long and hard (reallly long and reallly hard) for an x86_64 version of the SDL.dll file (<a href="http://www.libsdl.org/download-1.2.php">Simple DirectMedia Layer</a>) but found it nowhere. I ended up compiling it myself with <a href="http://mingw-w64.sourceforge.net/">mingw64</a> and figured maybe some other people might benefit from my hard work and dedication.</p>
<p><a href="http://blog.killtheradio.net/filez/SDL.zip">Get it here</a>, and place the DLL in %WINDOWS%\System32\</p>
<p>Keep in mind this was compiled on my system, so it may not work on yours, although I&#8217;ve tested it on three different x86_64 Windows 7 machines and it works fine, just fine. <a href="http://code.google.com/p/lispbuilder/wiki/LispbuilderSDL">Lispbuilder-sdl</a> loads the DLL and I&#8217;m able to do OpenGL programming in Common Lisp with it (at least in <a href="http://ccl.clozure.com/">ClozureCL</a>).</p>
<p>Check out my <a href="https://github.com/orthecreedence/som">self-organizing map project on github</a> for example usage (<a href="http://en.wikipedia.org/wiki/Self-organizing_map">info on SOMs</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/programming-2/sdl-1-2-14-windows-64-bit-dll/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP finally has anonymous functions??</title>
		<link>http://blog.killtheradio.net/technology/php-finally-has-anonymous-functions/</link>
		<comments>http://blog.killtheradio.net/technology/php-finally-has-anonymous-functions/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 18:30:37 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[features]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=679</guid>
		<description><![CDATA[Wow, I can&#8217;t believe I missed this&#8230;nobody seems to be talking about it at all. Ever since PHP 5.3, I can finally do non-generic callbacks. UPDATE: Check out this description of PHP lambdas (much better than what I&#8217;ve done in the following). function do_something($value) { // used &#62;= 2 times, but only in this function, [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, I can&#8217;t believe I missed this&#8230;nobody seems to be talking about it at all. Ever since PHP 5.3, <a href="http://php.net/manual/en/functions.anonymous.php">I can finally do non-generic callbacks</a>.</p>
<p>UPDATE: <a href="http://www.ibm.com/developerworks/opensource/library/os-php-5.3new2/index.html">Check out this description of PHP lambdas</a> (much better than what I&#8217;ve done in the following).</p>
<pre>function do_something($value)
{
    // used &gt;= 2 times, but only in this function, so no need for a global
    $local_function = function($value) { ... };

    // use our wonderful anonymous function
    $result = $local_function($value);
    ...
    // and again
    $result = $local_function($result);
    return $result;
}</pre>
<p>There&#8217;s also some other great stuff you can do:</p>
<pre>$favorite_songs = array(
    array('name' =&gt; 'hit me baby one more time', 'artist' =&gt; 'britney'),
    array('name' =&gt; 'genie in a bottle', 'artist' =&gt; 'xtina'),
    array('name' =&gt; 'last resort', 'artist' =&gt; 'papa roach')
);
$song_names = array_map(function($item) { return $item['name']; }, $favorite_songs);</pre>
<p>GnArLy bra. If PHP was 20 miles behind Lisp, it just caught up by about 30 feet. This has wonderful implications because there are a lot of functions that take a callback, and the only way to use them was to define a global function and send in an array() callback. Terrible. Inexcusable. Vomit-inducing.</p>
<p>Not only can you now use anonymous functions for things like array_map() and preg_replace_callback(), you can define your own functions that take functions as arguments:</p>
<pre>function do_something_binary($fn_success, $fn_failed)
{
    $success = ...
    if($success)
    {
        return $fn_success();
    }
    return $fn_failed();
}

do_something_binary(
    function() { echo "I successfully fucked a goat!"; },
    function() { echo "The goat got away..."; }
);</pre>
<p>Sure, you could just return $success and call whichever function you need after that, but this is just a simple example. It can be very useful to encapsulate code and send it somewhere, this is just a demonstration of the beautiful new world that just opened for PHP.</p>
<p>So drop your crap shared host (unless it has &gt;= 5.3.0), get a VPS, and start using this wonderful new feature.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/technology/php-finally-has-anonymous-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anti-stupidity pills fly off shelves of drug stores at record rates</title>
		<link>http://blog.killtheradio.net/articles/anti-stupidity-pills-fly-off-shelves-of-drug-stores-at-record-rates/</link>
		<comments>http://blog.killtheradio.net/articles/anti-stupidity-pills-fly-off-shelves-of-drug-stores-at-record-rates/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 23:41:44 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[america]]></category>
		<category><![CDATA[government]]></category>
		<category><![CDATA[intelligence]]></category>
		<category><![CDATA[radiation]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=651</guid>
		<description><![CDATA[After coming to terms with how completely idiotic the rapid over-consumption of anti-radiation pills was after a recent nuclear energy scare, the American public realized it had to turn in another direction to fix all of its problems: anti-stupidity pills. The new drug, dubbed dioxide-enisium-rectopeptide (or &#8220;Derp&#8221;), recently gained FDA approval and hit the shelves [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.killtheradio.net/wp-content/uploads/2011/03/potassium-iodide.jpg"><img class="alignright size-medium wp-image-652" title="potassium iodide" src="http://blog.killtheradio.net/wp-content/uploads/2011/03/potassium-iodide-300x169.jpg" alt="" width="300" height="169" /></a>After coming to terms with how completely idiotic the rapid over-consumption of anti-radiation pills was after a recent nuclear energy scare, the American public realized it had to turn in another direction to fix all of its problems: anti-stupidity pills. The new drug, dubbed dioxide-enisium-rectopeptide (or &#8220;Derp&#8221;), recently gained FDA approval and hit the shelves of drug stores last week.</p>
<p>Since the phenomenon started, the average IQ rates of Americans has rocketed from 16.4 to a staggering 16.7. Not only are 99% of Americans now able to withstand a 400-year nuclear holocaust, but most can recite <em>the entire</em> English alphabet or even distinguish between highly complex shapes, such as squares and triangles. With this increase in smarts, scientists predict that within two weeks, 99% of the population will be scientists.</p>
<p>Plans to build over 100 million nuclear bombs and detonate them around the globe are being drafted by Congress; the idea being that only Americans are worthy of living because they are so incredibly intelligent and amazing.</p>
<p>&#8220;Just think! Without the other countries, where will be no war, no fighting, no trade embargoes, no failing world economy. Just peace,&#8221; Republic Senator Rick Harris stated. &#8220;Americans can finally hold hands in circles and dance and laugh and sing. And with everyone here taking anti-radiation pills, the nuclear fallout won&#8217;t even affect us. We can live like kings! KINGS!!! HAHAHAHA!!&#8221;</p>
<p>President Obama has signed the bill and the motion is currently in action.</p>
<p>Although things are looking good for the U.S. right now, there is a dark side to being the smartest nation in the universe and all containing dimensions. Top thinkers worry that nobody will want to empty trash cans, sweep floors, pay taxes, or any of the other horribly mundane tasks that years of failure and stupidity have forced us into. Some have suggested that a select few people be banned from taking the smart pills, effectively forcing them into perpetual state of drooling idiocy. Others think we could spare Canada from the final bombing and enslave the entire country. A general consensus has not been reached.</p>
<p>Just when you thought Americans couldn&#8217;t be any more intelligent, fun-loving, passionate, humble, caring, progressive, radiation-resistant, cultured, intelligent, helpful, and intelligent enough already, they proved the world wrong again.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/articles/anti-stupidity-pills-fly-off-shelves-of-drug-stores-at-record-rates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Vim: I can&#8217;t believe I ignored you all these years</title>
		<link>http://blog.killtheradio.net/reviews/vim-i-cant-believe-i-ignored-you-all-these-years/</link>
		<comments>http://blog.killtheradio.net/reviews/vim-i-cant-believe-i-ignored-you-all-these-years/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 05:06:04 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=632</guid>
		<description><![CDATA[All these years, since the day I first turned on a linux distribution, I&#8217;ve ignored vi/vim. Sure, there are swarms of geeks covering you with saliva as they spew fact after fact about how superior vim is to everything else, but to me it&#8217;s always been &#8220;that editor that is on every system that I [...]]]></description>
			<content:encoded><![CDATA[<p>All these years, since the day I first turned on a linux distribution, I&#8217;ve ignored vi/<a href="http://www.vim.org/">vim</a>. Sure, there are swarms of geeks covering you with saliva as they spew fact after fact about how superior vim is to everything else, but to me it&#8217;s always been &#8220;that editor that is on every system that I eventually replace with pico anyway.&#8221;</p>
<p>Not anymore. Starting a few years back, I&#8217;ve done all of my development in <a href="http://www.eclipse.org/">Eclipse</a>. It has wonderful plugins for PHP, C++, Javascript, etc. The past week or so I&#8217;ve been weening myself off of it and diving into vim. What actually got me started is I bought a Droid 2 off ebay for various hacking projects (I&#8217;m planning on reviewing it soon). Well, it was really easy to get vim working in it (sorry, lost the link already). I thought, well, shit, I&#8217;ve got vim, what the hell can I do with it? First things first, let&#8217;s get a plugin for syntax coloring/indentation for a few of my favorite languages. What?! It has all of them already.</p>
<p>Ok, now I&#8217;m interested. I installed vim for Windows (gvim), which was followed by a slow-but-steady growing period of &#8220;well, how do I do this&#8221; and &#8220;HA&#8230;I bet vim can&#8217;t do THI&#8230;oh, it can.&#8221; There are &#8220;marks&#8221; for saving your place in code, you can open the same file in multiple views (aka &#8220;windows&#8221;), you can bind just about any key combination to run any command or set of commands, etc. I even discovered tonight there&#8217;s a <a href="http://serverfault.com/questions/27917/configure-vim-for-text-selection-with-shift-and-copy-paste-via-ctrlc-ctrlv">&#8220;windows&#8221; mode for vim</a> that mimics how any normal editor works. I hate to admit it, but I&#8217;ll be using that a lot. One feature that blew my mind is the <a href="http://vimdoc.sourceforge.net/htmldoc/undo.html#undo-branches">undo tree</a>. Not stack, <em>tree</em>. Make a change, undo, make a new change, and the first change you did before your undo is still accessible (:undolist)!</p>
<p>The nice thing about vim is that it saves none of its settings. Every change you make to it while inside the editor is lost after a restart. This sounds aggravating, but it actually makes playing with the editor really fun and easy. If I open 30 windows and don&#8217;t know how to close them, just restart the editor. There are literally hundreds of trillions of instances when I was like &#8220;oh, shit&#8221; *restart*.</p>
<p>Once you have a good idea of what you want your environment to be like, you put all your startup commands in .vimrc (_vimrc on Windows) and vim runs it before it loads. Your settings file uses the same syntax as the commands you run inline in the editor, which is awesome and makes it easy to remember how to actually use vim.</p>
<p>So far I&#8217;m <em>extremely</em> impressed. The makers of vim have literally thought of everything you could possibly want to do when coding. And if they haven&#8217;t thought of it, someone else <em>has</em> and has written a plugin you can drop into your plugins directory and it &#8220;just works.&#8221; Speaking of plugins, vim.org&#8217;s plugin list seems neverending. I was half expecting to see most plugins have a final mod date of 2002 or something, but a good portion have newer version released within the past two weeks. It seems the ones that are from 2002 never get updated because they&#8217;re mostly perfect. Excellent.</p>
<p>I do miss a few things though. First off, the project file list most editors have on the left side. I installed <a href="http://www.vim.org/scripts/script.php?script_id=1658">NERDTree</a> to alleviate that pain, but honestly it&#8217;s not the same as having my right click menus and pretty icons. I&#8217;m slowly getting used to it though. The nice thing about a text-only file tree is that in those instances where you only have shell access and need to do some coding, there isn&#8217;t a dependency on a GUI.</p>
<p>Tabs are another thing I miss. Gvim <em>has</em> tabs, but they aren&#8217;t one tab == one file (aka &#8220;buffer&#8221;) like most editors. You can hack it to do this, <a href="http://stackoverflow.com/questions/102384/using-vims-tabs-like-buffers">sort of</a>, but it works really jenky. Instead I&#8217;m using <a href="http://www.vim.org/scripts/script.php?script_id=159">MiniBufExplorer</a>, which takes away <em>some</em> of the pain. I actually hacked it a bit because I didn&#8217;t like the way it displays the tabs, which gave me a chance to look at some real vim script. It&#8217;s mostly readable to someone who&#8217;s never touched it before.</p>
<p>That about does it for my rant. Vim is fast, free, customizable, extendable, scriptable, portable, wonderful, etc&#8230;and I&#8217;ve barely scratched the surface.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/reviews/vim-i-cant-believe-i-ignored-you-all-these-years/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Alleged sexual assault at a tech conference</title>
		<link>http://blog.killtheradio.net/social-issues/alleged-sexual-assault-at-a-tech-conference/</link>
		<comments>http://blog.killtheradio.net/social-issues/alleged-sexual-assault-at-a-tech-conference/#comments</comments>
		<pubDate>Sun, 07 Nov 2010 01:40:59 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Social issues]]></category>
		<category><![CDATA[assault]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=625</guid>
		<description><![CDATA[Let me preface this by saying I know neither of the two people involved in this situation nor have any connection to them other than the fact that I use both Google and Twitter. A Google tech writer recently accused Twitter engineer of sexual assault on her blog, and given the responses shot at both sides [...]]]></description>
			<content:encoded><![CDATA[<p>Let me preface this by saying I know neither of the two people involved in this situation nor have any connection to them other than the fact that I use both Google and Twitter.</p>
<p>A Google tech writer <a href="http://blog.nerdchic.net/archives/418/">recently accused Twitter engineer of sexual assault</a> on her blog, and given the responses shot at both sides (Noirin Shirley, accuser, and Florian Leibert, accused) I thought I&#8217;d inject my personal thoughts on both the actual report given by Noirin and the responses to the incident.</p>
<p>First off, it&#8217;s a big deal to make an accusation like this. Careers hang in the balance, and blah blah blah, we&#8217;ve all heard this already. That said, a lot of women are sexually assaulted and never mention it. A lot tell a few people and it never goes anywhere. A lot try to get help but it never comes.</p>
<p>I think it&#8217;s not only amazing, but brave that Noirin had the guts to stand up to her assaulter and accuse him in public. It takes brass balls to do this. It also takes brass balls to do this knowing full well the responses you&#8217;re going to get because of it. I&#8217;m not one to not take stands on things, so I will say I think she&#8217;s awesome. I&#8217;m sick of women getting pushed around and there being no consequences for the men doing it.</p>
<p>I also do know that women make false accusations, but in my experience the ones who do so have a history of doing so and don&#8217;t start off doing it later on in life.</p>
<p>Now, <a href="http://gawker.com/5683354/googler-accuses-twitter-engineer-of-sexual-assault-on-her-blog?skyline=true&amp;s=i">at least one publication</a> is saying that although it&#8217;s great to be public about this matter, it&#8217;s not ok to be public about the assailant&#8217;s name. I have to disagree. So many assaults go unresolved because it&#8217;s hard to prove unless you have a police officer right there watching, or at least 10 witnesses. Something like this wouldn&#8217;t hold up in court. It&#8217;s important that the person who did it be publicly recognized for his actions, because otherwise there very well may be no consequences, ever.</p>
<p>A lot of people are saying that she should say absolutely nothing until the police investigate and the courts make a decision. I have to wonder if they are batshit insane. First off, the police generally have &#8220;more important&#8221; things to worry about than &#8220;hey sum guy jus touched my privatz,&#8221; unfortunately. And without any material evidence, it will never hold up in court. What I&#8217;m getting at is that even though I love our justice system here in good old USA, there are many things that will fall through the cracks. Does Noirin really need the police or court system to validate what she experienced that night? That&#8217;s fucking insane! She knows what happened better than the police or courts, and has every right to talk about it. Plus, she&#8217;s opening herself up to a world of legal trouble by doing this, which is just one more reason she&#8217;s brave for doing it (and one more incentive to NOT do it falsely).</p>
<p>Let me put it this way: <strong>If somebody assaults you, you have the right to fucking let the world know who did it and what happened!</strong> Just because it won&#8217;t hold up in court (and believe me, it won&#8217;t) doesn&#8217;t mean it didn&#8217;t happen, and doesn&#8217;t mean the assailant shouldn&#8217;t suffer the social consequences. If a rape happens in the woods and nobody is there to witness it, did it happen? The courts, rightfully so, say &#8220;No.&#8221; But it still happened, and the aggressor needs to pay for it in some way.</p>
<p>If she lied about it, then that&#8217;s another issue entirely. If it did happen, as she said it did, then good for her for letting the world know and making the world that much safer for women.</p>
<p>Either way, there are some very good counter-arguments and discussion on the <a href="http://www.reddit.com/r/programming/comments/e20ct/a_hell_of_a_time_sexual_assault_at_tech/">reddit comments page for the post</a>, which I spent a good amount of time reading before making this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/social-issues/alleged-sexual-assault-at-a-tech-conference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keepalived, HAProxy, and failover on the cloud (or any VPS without multicast)</title>
		<link>http://blog.killtheradio.net/how-tos/keepalived-haproxy-and-failover-on-the-cloud-or-any-vps-without-multicast/</link>
		<comments>http://blog.killtheradio.net/how-tos/keepalived-haproxy-and-failover-on-the-cloud-or-any-vps-without-multicast/#comments</comments>
		<pubDate>Sun, 17 Oct 2010 21:26:53 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[failover]]></category>
		<category><![CDATA[ha computing]]></category>
		<category><![CDATA[haproxy]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[keepalived]]></category>
		<category><![CDATA[linode]]></category>
		<category><![CDATA[multicast]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=619</guid>
		<description><![CDATA[Let&#8217;s talk failover. Most tools for failover (keepalived, heartbeat, wackamole/spread) use a protocol known as multicast. Multicast acts as a sort of &#8220;bulletin board&#8221; between computers. Anybody on the network can look at the bulletin board, and anybody on the network can post to the bulletin board. Normally, failover tools use multicast to pass messages [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s talk failover. Most tools for failover (<a href="http://www.keepalived.org/">keepalived</a>, <a href="http://www.linux-ha.org/wiki/Main_Page">heartbeat</a>, <a href="http://www.backhand.org/wackamole/">wackamole</a>/<a href="http://www.spread.org/">spread</a>) use a protocol known as <a href="http://en.wikipedia.org/wiki/Multicast">multicast</a>. Multicast acts as a sort of &#8220;bulletin board&#8221; between computers. Anybody on the network can look at the bulletin board, and anybody on the network can post to the bulletin board. Normally, failover tools use multicast to pass messages between computers. For instance you could have three computer on a network, all posting and listening to the same multicast group: &#8220;Hey, I&#8217;m alive!&#8221; If one of the machines stops sending this repetitive  message, the others know that something is wrong&#8230;either it has been disconnected or gone down, etc. They can use that information to act: was that computer hosting a shared IP? Give the IP to one of the computers that are still responding. This is the general idea behind IP-based failover.</p>
<p>Now, there&#8217;s no inherent problem with multicast. It&#8217;s generally known for being unreliable, but when all you&#8217;re sending is &#8220;Hi!&#8221; over the wire, data integrity isn&#8217;t a high priority. The problem with multicast in reality is that most &#8220;cloud&#8221; (VPS) providers (AWS, Linode, Slicehost, Rackspace, etc) don&#8217;t support it on their networks. You can send a multicast message to a group, but your other machines listening on that group won&#8217;t hear it. The other problem with multicast is that the failover tools mentioned above ONLY support multicast. There is no way to tell them to listen to another machine directly over <a href="http://en.wikipedia.org/wiki/Unicast">unicast</a>, which <span style="text-decoration: underline;">is</span> supported by cloud providers.</p>
<p>One way you can solve this is by using GRE tunnels, which allow you to create a tunnel to another computer with everything inside encrypted. This allows multicast communications to pass between two computers, even if the router blocks them normally.</p>
<p>I recently tried to get this set up on my current host, <a href="http://www.linode.com/?r=15d5d2323910d69794b93ed02cd7d43b2f68d8c5">Linode</a>. I was not successful, even with the help of another member who had the same problem (but solved it with GRE). I just could not get two machines to talk to eachother over a GRE tunnel with keepalived.</p>
<h2>The solution</h2>
<p>I posted my question to <a href="http://serverfault.com/questions/186987/keepalived-over-gre-tunnel-for-failover-on-vps-environment">serverfault.com</a> in a <a href="http://www.youtube.com/watch?v=HqLHr17COS8">last resort</a> (video). I&#8217;d asked more or less the same question there before, but didn&#8217;t get the answer I wanted. This time, I hit a jackpot though.</p>
<p>Willy Tarreau, creator of <a href="http://haproxy.1wt.eu/">HAProxy</a>, responded with a patch to keepalived that allows it to communicate over unicast. I applied it, recompiled, set up the new options the patch gives (&#8220;<strong>vrrp_unicast_bind</strong>&#8221; &amp;&#8221;<strong>vrrp_unicast_peer</strong>&#8220;), and spun it up on both machines.</p>
<p>Yesss!! It works! Stopping HAProxy on the first server made the second machine take the shared IP.</p>
<p>Now, ideally there would be a bunch of machines, namely <em>all</em> my web servers that would be standing by ready to take the shared IP. This patch only allows me two machines. Failover is failover though, when one instance goes down, I get an email and can go in and investigate.  I&#8217;d still like to know if there is a way to do failover on a cluster of servers without multicast, but for now this works great.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/how-tos/keepalived-haproxy-and-failover-on-the-cloud-or-any-vps-without-multicast/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>PHP&#8217;s preg functions don&#8217;t release memory??</title>
		<link>http://blog.killtheradio.net/tricks-hacks/phps-preg-functions-dont-release-memory/</link>
		<comments>http://blog.killtheradio.net/tricks-hacks/phps-preg-functions-dont-release-memory/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 23:37:11 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Tricks/Hacks]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[memory leak]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=612</guid>
		<description><![CDATA[We were writing some parsing code for a client today. It takes a long string (html) and parses it out into array items. It loops over the string recursively and running a few preg_replaces on it every pass. We got &#8220;out of memory&#8221; errors when running it. After putting in some general stats, we found [...]]]></description>
			<content:encoded><![CDATA[<p>We were writing some parsing code for a client today. It takes a long string (html) and parses it out into array items. It loops over the string recursively and running a few preg_replaces on it every pass. We got &#8220;out of memory&#8221; errors when running it. After putting in some general stats, we found that memory usage was climbing 400k after each block of preg_replaces, which was being added on each loop (there were around 600 loops or so). This memory just grew and grew, even though the recursion at most got 6 levels deep. It was never being released.</p>
<p>I did some reading and found that the preg* functions cache up to 4096 regex results in a request. This is the problem&#8230;a pretty stupid one too. It would be nice if they made this a configurable option or at <em>least</em> let you turn it off when, say, you are running a regex on a different string every time (why the hell would I run the same regex on the same string twice&#8230;isn&#8217;t that what variables are for?) Unless I&#8217;m misunderstanding and PHP caches the compiled regex (but not its values)&#8230;but either way, memory was climbing based on the length of the string.</p>
<p>Since the regex was only looking at the beginning of the string and disregarding the rest (thank god), the fix was easy (although a bit of a hack):</p>
<pre>$val = preg_replace('/.../', '', $long_string);</pre>
<p>Becomes:</p>
<pre>$short_string = substr($long_string, 0, 128);
$val = preg_replace('/.../', '', $short_string);</pre>
<p>PHP guys: how about an option to make preg* NOT have memory leaks =).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/tricks-hacks/phps-preg-functions-dont-release-memory/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Our sanity, slipping away text by text</title>
		<link>http://blog.killtheradio.net/social-issues/our-sanity-slipping-away-text-by-text/</link>
		<comments>http://blog.killtheradio.net/social-issues/our-sanity-slipping-away-text-by-text/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 18:56:10 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Social issues]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[cultural]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[texting]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=597</guid>
		<description><![CDATA[After reading an article about how the number of phone calls made is decreasing, I feel I have to interject something. This obviously shouldn&#8217;t be news to most people, because most of us are right in the middle of it (in North America, anyway). The fact is that people are talking less and less in [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.killtheradio.net/wp-content/uploads/2010/08/Bush_Texting.jpg"><img class="alignright size-medium wp-image-599" title="Bush_Texting" src="http://blog.killtheradio.net/wp-content/uploads/2010/08/Bush_Texting-300x227.jpg" alt="" width="300" height="227" /></a>After reading an article about <a href="http://m.wired.com/magazine/2010/07/st_thompson_deadphone/">how the number of phone calls made is decreasing</a>, I feel I have to interject something. This obviously shouldn&#8217;t be news to most people, because most of us are right in the middle of it (in North America, anyway). The fact is that people are talking less and less in favor of texting each other. While this is an interesting shift in our culture, I&#8217;m starting to think things are going a bit too far.</p>
<p>It seems that since widespread adoption of the internet, although more and more people have become seemingly connected through social networking and other mediums, people are drifting further and further apart. A friend is no longer a friend. A real friend is now what a friend was, and a friend is someone you say &#8220;damn we haven&#8217;t talked in years, how r u?&#8221; to. Communities are popping up everywhere online that replace the communities around us physically.</p>
<p>This in itself I don&#8217;t feel is bad. A lot of people who never would have met are meeting and sharing new ideas. Information spreads more rapidly. Cultural consciousness is more global, which in most cases is a very good thing.</p>
<p>I think things start to go wrong when people get addicted to this information overload though. They use it as a fuel for everyday distraction, a replacement for the communities they live in, and a tool to deliver opinions and beliefs to them when they would have otherwise had to think (although this last item is true of most media).</p>
<p><a href="http://blog.killtheradio.net/wp-content/uploads/2010/08/texting.jpg"><img class="alignleft size-medium wp-image-600" src="http://blog.killtheradio.net/wp-content/uploads/2010/08/texting-300x240.jpg" alt="" width="300" height="240" /></a>Also, it&#8217;s one thing to not be in front of someone when you talk to them. A voice conversation can have emotion and depth, but it can also be quick and effortless. The fact that it&#8217;s being replaced by one-off messages that are 100% ignorable and have no real content to them is kind of sickening. I&#8217;ve heard arguments that &#8220;I text someone when it doesn&#8217;t make sense to have a whole conversation,&#8221; but I&#8217;ll see the same person texting back and forth with someone for 10 minutes straight. Or a text is delivered and the person who sent it squirms in anticipation for the reply, which may never come.</p>
<p><a href="http://blog.killtheradio.net/wp-content/uploads/2010/08/funcage81.jpg"><img class="alignright size-medium wp-image-609" title="funcage81" src="http://blog.killtheradio.net/wp-content/uploads/2010/08/funcage81-300x225.jpg" alt="" width="300" height="225" /></a>What&#8217;s wrong with a phone call? Granted, if you&#8217;re in a bar and it&#8217;s very loud, texting would be appropriate. If you call someone and they don&#8217;t pick up, either they don&#8217;t want to talk or, god forbid, they aren&#8217;t right next to their phone all times of the day. If you want to talk to someone, just call them. I don&#8217;t believe texting is a viable replacement for what was the last string of human contact we had.</p>
<p>That all said, I know it&#8217;s a giant ball and it rolls where it rolls and there&#8217;s no stopping it. There&#8217;s no problem with being aware of things that are going on around us though. I feel like each time a real connection between two real people is replaced with something artificial, our culture as a whole goes just a little bit more insane. I&#8217;m interested to see how this all pans out, mainly because I don&#8217;t have a whole lot of attachment to what our culture is now.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/social-issues/our-sanity-slipping-away-text-by-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monit, how did I ever live without you?</title>
		<link>http://blog.killtheradio.net/reviews/monit-how-did-i-ever-live-without-you/</link>
		<comments>http://blog.killtheradio.net/reviews/monit-how-did-i-ever-live-without-you/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 19:26:45 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=573</guid>
		<description><![CDATA[In my latest frenzy, which was focused on HA more than performance, I installed some new servers, new services on those servers, and the general complexity of the entire setup for beeets.com doubled. I was trying to remember a utility that I saw a while back that would restart services if they failed. I checked [...]]]></description>
			<content:encoded><![CDATA[<p>In my latest frenzy, which was focused on HA more than performance, I installed some new servers, new services on those servers, and the general complexity of the entire setup for beeets.com doubled. I was trying to remember a utility that I saw a while back that would restart services if they failed. I checked my delicious account, praying that I had thought of my future self when I originally saw it. Luckily, I had saved it under my &#8220;linux&#8221; tag. Thanks, Andrew from the past.</p>
<p>The tool is called <a href="http://mmonit.com/monit/">monit</a>, and I&#8217;m surprised I ever lived without it. Not only does it monitor your services and keep them running, it can restart them if they fail, use too much memory/cpu, stop responding on a certain port, etc. Not only that, but it will email you every time something happens.</p>
<p>While perusing monit&#8217;s site, I saw <a href="http://mmonit.com/">M/Monit</a> which allows you to monitor monit over web, essentially. The only thing I scratched my head about was that M/Monit uses port 8080 (which is fine) but NginX already uses port 8080, and I wasn&#8217;t about to change that, so I opened conf/server.xml and looked for 8080, replaced with 8082 (monit runs on 8081 =)). Then I reconfigured monit to communicate with M/Monit and vice versa, and now I have a kickass process monitor that alerts me when things go wrong, and also sends updates to a service that allows me to monitor the monitor.</p>
<p>I can&#8217;t look at things like queries/sec as I can with <a href="http://www.cacti.net/">Cacti</a> (which is awesome but a little clunky) but I can see which important services are running on each of my servers, and even restart them if I need to straight from M/Monit. The free download license allows to use M/Monit on one server, which is all I need anyway.</p>
<p>Great job monit team, you have gone above and beyond.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/reviews/monit-how-did-i-ever-live-without-you/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>New MySQL cluster test setup</title>
		<link>http://blog.killtheradio.net/technology/new-mysql-cluster-test-setup/</link>
		<comments>http://blog.killtheradio.net/technology/new-mysql-cluster-test-setup/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 19:13:41 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[scalability]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=566</guid>
		<description><![CDATA[I decided this weekend I wanted to go down the road of trying out MySQL Cluster for beeets.com. The reason isn&#8217;t speed, it&#8217;s availability. After countless hours of research, I decided I&#8217;d rather have a plate of turds for breakfast than have to worry about Master-Master replication (or DRBD) w/heartbeat, not to mention what to do [...]]]></description>
			<content:encoded><![CDATA[<p>I decided this weekend I wanted to go down the road of trying out <a href="http://dev.mysql.com/doc/refman/5.0/en/mysql-cluster.html">MySQL Cluster</a> for beeets.com. The reason isn&#8217;t speed, it&#8217;s availability. After countless hours of research, I decided I&#8217;d rather have a plate of turds for breakfast than have to worry about Master-Master replication (or <a href="http://www.drbd.org/">DRBD</a>) w/heartbeat, not to mention what to do when things get out of sync. Not my cup of tea. MySQL Cluster may be a bit slower than a replicated setup (in almost all cases except for primary key lookup, I suspect), but to me it&#8217;s worth it to have a more set-it and forget-it approach. There are many benefits of cluster over replication:</p>
<ul>
<li>Any server can go down. Assuming you have more than one <a href="http://dev.mysql.com/doc/refman/5.0/en/mysql-cluster-nodes-groups.html">replica</a> of your data, you can lose any server in your setup and still be up and running. This can be achieved with replication, but it&#8217;s not as easy. You have to have some form of Master-Master replication, perhaps with DRDB, and some form of failover (usually <a href="http://www.linux-ha.org/wiki/Main_Page">heartbeat</a>).</li>
<li>Your data  set scales. If you start running out of disk space with a cluster, just add a few more data nodes and your data will be spread out over them. With replication, each replicated server has to have enough storage to fit the entire database. That means if your dataset grows too large, you have to either partition (a hack, essentially) or upgrade your servers.</li>
<li>Your bandwidth scales. With a cluster, if you are running out of bandwidth, you can add more mysqld processes on your www servers or add more data nodes and your bandwidth scales almost linearly. With replication, you can only add so many slaves before your writes are the bottleneck. Then, once again, you have to look into things like circular replication (dangerous) or partitioning your data set (large updates to your app unless you have an insanely good ORM, big infrastructure change).</li>
</ul>
<p>These are the main points that helped me decide. Historically, with a clustered approach, the entire dataset would have to fit in the memory of all the data nodes, which is somewhat restrictive if the dataset gets too large. Nowadays, the cluster only needs to store indexes in memory, and can store all non-indexed data on disk. There is talk of having completely disk-based store as well.</p>
<p>All that being said, I set up cluster, which was surprisingly easy. I&#8217;m not going to go over how to set it up or anything, just read the manual. After some benchmarking with the web API for beeets.com, the cluster setup appeared to be running about the same speed as the InnoDB setup when testing various commands&#8230;a pleasant surprise. It also appeared to handle concurrency a bit better.</p>
<p>Obviously once the dataset grows past a few megs and the traffic bumps up, we&#8217;ll revisit the benchmarking, but my hope is that what cluster loses in speed from your everyday general query, it gains in speed by having ability for higher concurrency.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/technology/new-mysql-cluster-test-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Strange problems with hosts resolving in PHP (and some other linux weirdness)</title>
		<link>http://blog.killtheradio.net/technology/strange-problems-with-hosts-resolving-in-php-and-some-other-linux-weirdness/</link>
		<comments>http://blog.killtheradio.net/technology/strange-problems-with-hosts-resolving-in-php-and-some-other-linux-weirdness/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 18:51:31 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[problems]]></category>
		<category><![CDATA[sudo]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=565</guid>
		<description><![CDATA[This weekend I wen&#8217;t on a frenzy. I turned beeets.com from a single VPS enterprise to 4 VPSs: 2 web (haproxy, nginx, php-fpm, sphinx, memcached, ndb_mgmd) and 2 database servers (ndmtd). There&#8217;s still some work to do, but the entire setup seems to be functioning well. I had a few problems though. In PHP (just [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend I wen&#8217;t on a frenzy. I turned beeets.com from a single VPS enterprise to <a href="http://www.linode.com/?r=15d5d2323910d69794b93ed02cd7d43b2f68d8c5">4 VPSs</a>: 2 web (<a href="http://haproxy.1wt.eu/">haproxy</a>, <a href="http://nginx.org/">nginx</a>, <a href="http://php-fpm.org/">php-fpm</a>, <a href="http://www.sphinxsearch.com/">sphinx</a>, <a href="http://memcached.org/">memcached</a>, <a href="http://dev.mysql.com/doc/refman/5.0/en/mysql-cluster.html">ndb_mgmd</a>) and 2 database servers (<a href="http://dev.mysql.com/doc/refman/5.0/en/mysql-cluster.html">ndmtd</a>). There&#8217;s still some work to do, but the entire setup seems to be functioning well.</p>
<p>I had a few problems though. In PHP (just PHP, and nothing else) hosts were not resolving. The linux OS was resolving hosts just fine, but PHP couldn&#8217;t. It was frustrating. Also, I was unable to sudo. I kept checking permissions on all my files in /etc, rebooting, checking again, etc.</p>
<h2>The fix</h2>
<p>Then I looked again. /etc itself was owned by andrew:users. Huh? I changed permissions back root:root, chmod 755. <em>Everything works</em>. Now some background.</p>
<p>A while back, I wrote some software (bash + php) that makes it insanely easy to install software to several servers at once, and sync configurations for different sets of servers. It&#8217;s called &#8220;ssync.&#8221; It&#8217;s not ready for release yet, but I can say without it, I&#8217;d have about 10% of the work done that I&#8217;d finished already. Ssync is a command-line utility that lets you set up servers (host, internal ip, external ip) and create groups. Each group has a set of install scripts and configuration files that can be synced to /etc. The configuration files are PHP scriptable, so instead of, say, adding all my hosts by hand to the /etc/hosts file, I can just loop over all servers in the group and add them automatically. Same with my www group, I can add a server to the &#8220;www&#8221; group in ssync, and all of a sudden the HAproxy config knows about the server.</p>
<p>Here&#8217;s the problem. When ssync was sending configuration files to /etc on remote servers, it was also setting permissions on those files (and folders) by default. This was because I was using -vaz, which attempts to preserve ownership, groupship, and permissions from the source (not good). I added some new params (so now it&#8217;s &#8220;-vaz &#8211;no-p &#8211;no-g &#8211;no-o&#8221;). Completely fixed it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/technology/strange-problems-with-hosts-resolving-in-php-and-some-other-linux-weirdness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HAProxy&#8217;s keep-alive functionality (and how it can speed up your site)</title>
		<link>http://blog.killtheradio.net/technology/haproxys-keep-alive-functionality-and-how-it-can-speed-up-your-site/</link>
		<comments>http://blog.killtheradio.net/technology/haproxys-keep-alive-functionality-and-how-it-can-speed-up-your-site/#comments</comments>
		<pubDate>Tue, 11 May 2010 02:32:30 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[front-end]]></category>
		<category><![CDATA[haproxy]]></category>
		<category><![CDATA[keep-alive]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[web servers]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=554</guid>
		<description><![CDATA[A while back I wrote a post about using NginX as a reverse-proxy cache for PHP (or whatever your backend is) and mentioned how I was using HAProxy to load balance. The main author of HAProxy wrote a comment about keep-alive support and how it would make things faster. At the time, I thought &#8220;What&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I wrote a post about using <a href="http://blog.killtheradio.net/technology/nginx-as-a-caching-reverse-proxy-for-php/">NginX as a reverse-proxy cache for PHP</a> (or whatever your backend is) and mentioned how I was using <a href="http://haproxy.1wt.eu/">HAProxy</a> to load balance. The main author of HAProxy wrote a comment about keep-alive support and how it would make things faster.</p>
<p>At the time, I thought &#8220;What&#8217;s the point of keep-alive for front-end? By the time the user navigates to the next page of your site, the timeout has expired, meaning a connection was left open for nothing.&#8221; This assumed that a user downloads the HTML for a site, and doesn&#8217;t download anything else until their next page request. I forgot about how some websites actually have things other than HTML, namely images, CSS, javascript, etc.</p>
<p>Well in a recent &#8220;omg I want everything 2x faster&#8221; frenzy, I decided for once to focus on the front-end. On beeets, we&#8217;re already using <a href="http://aws.amazon.com/s3/">S3</a> with <a title="ooooh! its &quot;THE CLOUD&quot; oooooh!!" href="http://aws.amazon.com/cloudfront/">CloudFront</a> (a CDN), aggressive HTTP caching, etc. I decided to try the latest HAProxy (1.4.4) with keep-alive.</p>
<p>I got it, compiled it, reconfigured:</p>
<pre>defaults
	...
	option httpclose

became:
defaults
	...
	timeout client  5000
	option http-server-close</pre>
<p>Easy enough&#8230;that tells HAProxy to close the server-side connection, but leave the client connection open for 5 seconds.</p>
<p>Well, a quick test and site load times were down by a little less than half&#8230;from about 1.1s client load time (empty cache) to 0.6s. An almost instant benefit. How does this work?</p>
<p>Normally, your browser hits the site. It requests /page.html, and the server says &#8220;here u go, lol&#8221; and closes the connection. Your browser reads page.html and says &#8220;hay wait, I need site.css too.&#8221; It opens a new connection and the web server hands the browser site.css and closes the connection. The browser then says &#8220;darn, I need omfg.js.&#8221; It opens another connection, and the server rolls its eyes, sighs, and hands it omfg.js.</p>
<p>That&#8217;s three connections, with high latency each, your browser made to the server. <a href="http://rescomp.stanford.edu/~cheshire/rants/Latency.html">Connection latency</a> is something that, no matter how hard you try, you cannot control&#8230;and there is a certain amount of latency for each of the connections your browser opens. Let&#8217;s say you have a connection latency of 200ms (not uncommon)&#8230;that&#8217;s 600ms you just waited to load a very minimal HTML page.</p>
<p>There is hope though&#8230;instead of trying to lower latency, you can open fewer connections. This is where keep-alive comes in.</p>
<p>With the new version of HAProxy, your browser says &#8220;hai, give me /page.html, but keep the connection open plz!&#8221; The web server hands over page.html and holds the connection open. The browser reads all the files it needs from page.html (site.css and omfg.js) and requests them over the connection that&#8217;s already open. The server keeps this connection open until the client closes it or until the timeout is reached (5 seconds, using the above config). In this case, the latency is a little over 200ms, the total time to load the page 200ms + the download time of the files (usually less than the latency).</p>
<p>So with keep-alive, you just turned a 650ms page-load time into a 250ms page-load time&#8230; a much larger margin than any sort of back-end tweaking you can do. Keep in mind most servers already support keep-alive&#8230;but I&#8217;m compelled to write about it because I use HAProxy and it&#8217;s now fully implemented.</p>
<p>Also keep in mind that the above scenario isn&#8217;t necessarily correct. Most browsers will open up to 6 concurrent connections to a single domain when loading a page, but you also have to factor in the fact that the browser blocks downloads when it encounters a javascript include, and then attempts to download and run the javascript before continuing the page load.</p>
<p>So although your connection latency with multiple requests goes down with keep-alive, you won&#8217;t get a 300% speed boost, more likely a 100% speed boost depending on how many scripts are loading in your page along with any other elements&#8230;100% is a LOT though.</p>
<p>So for most of us webmasters, keep-alive is a wonderful thing (assuming it has sane limits and timeouts). It can really save a lot of page load time on the front-end, which is where users spend the most of their time waiting. But if you happen to have a website that&#8217;s only HTML, keep-alive won&#8217;t do you much good =).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/technology/haproxys-keep-alive-functionality-and-how-it-can-speed-up-your-site/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using gzip_static in nginx to cache gzip files</title>
		<link>http://blog.killtheradio.net/technology/using-gzip_static-in-nginx-to-cache-gzip-files/</link>
		<comments>http://blog.killtheradio.net/technology/using-gzip_static-in-nginx-to-cache-gzip-files/#comments</comments>
		<pubDate>Tue, 04 May 2010 03:54:12 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=542</guid>
		<description><![CDATA[Recently I&#8217;ve been working on speeding up the homepage of beeets.com. Most speed tests say it takes between 4-6 seconds. Obviously, all of them are somehow fatally flawed. I digress, though. Everyone (who&#8217;s anyone) knows that gzipping your content is a great way to reduce download time for your users. It can cut the size [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve been working on speeding up the homepage of <a href="http://beeets.com/local-events/Santa+Cruz+CA">beeets.com</a>. Most speed tests say it takes between 4-6 seconds. Obviously, all of them are somehow fatally flawed. I digress, though.</p>
<p>Everyone (who&#8217;s anyone) knows that gzipping your content is a great way to reduce download time for your users. It can cut the size of html, css, and javascript by about 60-90%. Everyone also knows that gzipping can be very cpu intensive. <span style="text-decoration: underline;">Not anymore</span>.</p>
<p>I just installed <a href="http://wiki.nginx.org/NginxHttpGzipStaticModule">nginx&#8217;s Gzip Static Module</a> (compile nginx with &#8211;with-http_gzip_static_module) on beeets.com. It allows you to pre-cache your gzip files. What?</p>
<p>Let&#8217;s say you have the file /css/beeets.css. When a request for beeets.css comes through. the static gzip module will look for /css/beeets.css.gz. If it finds it, it will serve that file as gzipped content. This allows you to gzip your static files using the highest compression ratio (gzip -9) when deploying your site. Nginx then has absolutely no work to do besides serving the static gzip file (it&#8217;s very good at serving static content).</p>
<p>Wherever you have a gzip section in your nginx config, you can do:</p>
<pre>gzip_static on;</pre>
<p>That&#8217;s it. Note that you will have to create the .gz versions of the files yourself, and it&#8217;s mentioned in the docs that it&#8217;s better if the original and the .gz files have the same timestamp; so it may be a good idea to &#8220;touch&#8221; the files after both are created. It&#8217;s also a good idea to turn the gzip compression down (<a href="http://wiki.nginx.org/NginxHttpGzipModule#gzip_comp_level">gzip_comp_level 1..3</a>). This will minimally compress dynamic content without putting too much strain on the server.</p>
<p>This is a great way to get the best of both worlds: gzipping (faster downloads) <em>without</em> the extra load on the server. Once again, nginx pulls through as the best thing since multi-cellular life. Keep in mind that this only works on static content (css, javascript, etc etc). Dynamic pages can and should be gzipped, but with a lower compression ratio to keep load off the server.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/technology/using-gzip_static-in-nginx-to-cache-gzip-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LiteSpeed &#8211; The upstanding Christian webserver</title>
		<link>http://blog.killtheradio.net/funny/litespeed-the-upstanding-christian-webserver/</link>
		<comments>http://blog.killtheradio.net/funny/litespeed-the-upstanding-christian-webserver/#comments</comments>
		<pubDate>Tue, 04 May 2010 03:33:21 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[web servers]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=534</guid>
		<description><![CDATA[I never thought I&#8217;d see the day where people who build web servers would care what other people use them to host. In section 1 of LiteSpeed&#8217;s licence agreement you will see &#8220;You cannot use the SOFTWARE PRODUCT for any illegal activity or to host pornographic content.&#8221; HA! That&#8217;s the stupidest thing I&#8217;ve ever seen. [...]]]></description>
			<content:encoded><![CDATA[<p><object width="400" height="320" style="float: right; padding-left: 10px;"><param name="movie" value="http://www.youtube.com/v/hp4iiI5qTJk&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/hp4iiI5qTJk&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="400" height="320"></embed></object>I never thought I&#8217;d see the day where people who build web servers would care what other people use them to host. In section 1 of <a rel="nofollow" href="http://www.litespeedtech.com/trial/license">LiteSpeed&#8217;s licence agreement</a> you will see &#8220;You cannot use the SOFTWARE PRODUCT for any illegal activity or to host pornographic content.&#8221; HA!</p>
<p>That&#8217;s the stupidest thing I&#8217;ve ever seen. What kind of business limits the usage of its products to upstanding citizens only? Last I checked it was the government&#8217;s job to impose its views on businesses, not businesses imposing their views on their customers.</p>
<p>I have to say, it&#8217;s nice that someone is using their business to take a stand, I guess I&#8217;d just prefer it to be in defense of free speech and expression. Sure ALL porn is smutty and violent, but that&#8217;s expression in itself. Also, can you fight basic human nature? Perhaps, on a personal level. Repression of sexual tendencies is a lot different than acceptance and non-action though. My point is that pornography is the one place where sexual fantasies are <span style="text-decoration: underline;">allowed</span> to exist in any way shape and/or form, and Americans, being extremely sexually self-repressed, <em>need</em> that outlet, not more repression.</p>
<p>I also think it&#8217;s funny when someone tries to be exclusive because they&#8217;re SO awesome when <a href="http://nginx.org/">someone else is doing it way better</a>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/funny/litespeed-the-upstanding-christian-webserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript minification with JSMin and gzip</title>
		<link>http://blog.killtheradio.net/technology/javascript-minification-with-jsmin-and-gzip/</link>
		<comments>http://blog.killtheradio.net/technology/javascript-minification-with-jsmin-and-gzip/#comments</comments>
		<pubDate>Tue, 04 May 2010 00:32:54 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[deployments]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[minification]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=527</guid>
		<description><![CDATA[Here&#8217;s a good tip I just found. Note that this may not be for all cases. In fact, I may have stumbled on a freak coincidence. Here&#8217;s the story: I hate java. I hate having java on a server, but hate it even more if it&#8217;s only for running one small script. Forever, beeets.com has [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a good tip I just found. Note that this may not be for all cases. In fact, I may have stumbled on a freak coincidence. Here&#8217;s the story:</p>
<p>I hate java. I hate having java on a server, but hate it even more if it&#8217;s only for running one small script. Forever, <a href="http://beeets.com">beeets.com</a> has used the <a href="http://developer.yahoo.com/yui/compressor/">YUI compressor</a> to shrink its javascript before deployment. Well, YUI won&#8217;t run without java, so for the longest time, jre has been installed collecting dust, only to be brushed off and used once in a while during a deployment. This seems like a huge waste of space and resources.</p>
<p>Well, first I tried gcj. Compiling gcj was fairly straightforward, thankfully. After installing, I realized I needed to know a lot more about java in order to compile the YUI compressor with it. I needed knowledge I did not have the long-term need for, nor the will to learn in the first place. I, although revering myself as extremely tenacious, gave up.</p>
<p>I decided to try <a href="http://www.crockford.com/javascript/jsmin.html">JSMin</a>. This nifty program is simple, elegant, and it works well. It also has a much worse compression ratio then YUI. However, I trust any site that hosts C code and has no real layout whatsoever. Knowing the compression wasn&#8217;t as good, I still wanted to see what kind of difference gzipping the files would have.</p>
<p>I recorded the size of the GZipped JS files that used YUI. I then reconfigured the deployment script to use JSMin instead of YUI. I looked at the JS files with JSMin compression:</p>
<pre>YUI:
mootools.js     88.7K (29.6K gz)
beeets.js       61.5K (20.5K gz)

JSMin:
mootools.js    106.1K (29.5K gz)
beeets.js       71.0K (17.7K gz)</pre>
<p>Huh? GZip is actually more effective on the JS files using JSMin vs YUI! The end result is LESS download time for users.</p>
<p>I don&#8217;t know if this is a special case, but I was able to derive a somewhat complex formula:</p>
<pre>YUI &gt; JSMin
YUI + GZip &lt; JSMin + GZip</pre>
<p>Who would have thought. See you in hell, java.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/technology/javascript-minification-with-jsmin-and-gzip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Marijuana reform (or how I learned to stop worrying and love the revenue from taxing it)</title>
		<link>http://blog.killtheradio.net/social-issues/marijuana-reform-or-how-i-learned-to-stop-worrying-and-love-the-revenue-from-taxing-it/</link>
		<comments>http://blog.killtheradio.net/social-issues/marijuana-reform-or-how-i-learned-to-stop-worrying-and-love-the-revenue-from-taxing-it/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 23:52:19 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Social issues]]></category>
		<category><![CDATA[drug war]]></category>
		<category><![CDATA[drugs]]></category>
		<category><![CDATA[government]]></category>
		<category><![CDATA[marijuana]]></category>
		<category><![CDATA[reform]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=511</guid>
		<description><![CDATA[Being a heavy and casual marijuana user for almost 10 years, and knowing many others who also are/were, I think I have a pretty good understanding of its effects, both positive and negative. I&#8217;d like to dispel some myths. First off, you always hear that marijuana is a gateway drug. I respond: being a teenager [...]]]></description>
			<content:encoded><![CDATA[<p>Being a heavy and casual marijuana user for almost 10 years, and knowing many others who also are/were, I think I have a pretty good understanding of its effects, both positive and negative. I&#8217;d like to dispel some myths.</p>
<p>First off, you always hear that marijuana is a gateway drug. I respond: being a teenager is a gateway drug. The emotions, the hormones, the internal and external influences pulling you in a thousand directions every second of your life&#8230;it&#8217;s a wonder most of us make it through. That alone is enough to make most people want to try just about every drug out there. Also, another reason marijuana is a gateway drug is because kids are always taught how terrible it is and how addictive it is. So what&#8217;s the next thing they do? They try it. After finding that they were lied to and mislead, they learn to mistrust those telling them that &#8220;all drugs are bad.&#8221; So now heroin or cocaine doesn&#8217;t seem so bad either, even though they have much more far-reaching effects than marijuana. The point is, the only real cause of marijuana being a &#8220;gateway drug&#8221; is the fact that kids are constantly being told lies about it. The fix? Honesty.</p>
<p>Secondly, marijuana in moderation has no permanent effects. You can smoke till yer stupid for a few months, but take a week off and you bounce back completely. Its tar is more harmful than that of tobacco, but who aside from the most extreme users smokes a cigarette-pack&#8217;s worth of joints every day? The only way to get cancer from marijuana is to pump the smoke into a ventilator and breath it in 24/7. With cutting-edge advances in technology, there are now vaporizers, which remove the tar from smoking. It&#8217;s safer than ever.</p>
<p>Thirdly, smoking marijuana is a personal choice. Here we are, in the &#8220;land of the free,&#8221; restricted from doing things that even if they do have some negative effect, only affect us personally. It&#8217;s not illegal to saw off my arm. It&#8217;s not illegal to use a pogo stick next to the grand canyon. Why can&#8217;t I take a puff on a joint? Who am I harming?</p>
<p>Now to my main point. We&#8217;re in an economic crisis. We&#8217;re <a href="http://en.wikipedia.org/wiki/War_on_Drugs#Costs_to_Taxpayers">spending a lot of money on battling imports of drugs</a> (including marijuana), and also <a href="http://www.alternet.org/rights/47815/">spending a lot of money keeping potheads in prison</a> (thanks, prison lobby). That&#8217;s two very large drains on our economy to</p>
<ol>
<li><strong>Fund a losing battle.</strong> I can go anywhere in almost any town in the US and within an hour, even not knowing anyone, get an eighth of weed. Good job drug war, money well spent. It&#8217;s good to know that the taxes I just filed will go to &#8220;stopping&#8221; me from buying marijuana.</li>
<li><strong>Keep pot offenders in prison.</strong> Yeah, these people are really dangerous. They are on the edge of the law&#8230;sitting on the couch eating chips and giggling. The more money I can spend to keep them locked up, the better. Oh sure, most of them are dealers, but our culture is founded on the principals of capitalism: if a market exists, fill the void and capitalize. Makes sense to me. Nobody would sell pot if nobody wanted to smoke it. Yes it&#8217;s illegal, but once again let&#8217;s ask ourselves <em>why </em>instead of pointing to a law.</li>
</ol>
<p>Now imagine a world where the government grew, cultivated, sold &amp; taxed pot. That&#8217;s a lot of money we&#8217;d make back. Hell even if they raised the price on it, it&#8217;d be worth it to just be able to walk into a store and buy it. They could use the revenue from pot to plug the holes caused by battling all the other drugs.</p>
<p>Maybe it&#8217;s time to really start thinking about this. If you are against legalization of marijuana, ask yourself why. Anyone who wants to smoke it already does. Show me a person who wants to smoke pot but doesn&#8217;t because it&#8217;s illegal, and I&#8217;ll show you the portal that takes you out of Neverland and back to reality.</p>
<p>Conservative America: you want a smaller government with less services and less control on the population in general. Why not start with drug reform?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/social-issues/marijuana-reform-or-how-i-learned-to-stop-worrying-and-love-the-revenue-from-taxing-it/feed/</wfw:commentRss>
		<slash:comments>2</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>
		<item>
		<title>What&#8217;s the point of Object Relational Mapping (ORM)?</title>
		<link>http://blog.killtheradio.net/technology/whats-the-point-of-object-relational-mapping-orm/</link>
		<comments>http://blog.killtheradio.net/technology/whats-the-point-of-object-relational-mapping-orm/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 19:34:04 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[object-oriented]]></category>
		<category><![CDATA[orm]]></category>
		<category><![CDATA[procedural]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=487</guid>
		<description><![CDATA[In my work as a web developer, I&#8217;ve come across many, many cases where projects, namely projects using PHP frameworks, have made use of an Object Relation Mapping tool. I&#8217;ve used them a bit myself, in apps that use CakePHP. I have to say, after going from writing plain queries to communicating with objects, I [...]]]></description>
			<content:encoded><![CDATA[<p>In my work as a web developer, I&#8217;ve come across many, many cases where projects, namely projects using PHP frameworks, have made use of an Object Relation Mapping tool. I&#8217;ve used them a bit myself, in apps that use <a rel="nofollow" href="http://cakephp.org/">CakePHP</a>. I have to say, after going from writing plain queries to communicating with objects, I prefer very much writing my own queries.</p>
<p>Let&#8217;s first talk about what an <a href="http://en.wikipedia.org/wiki/Object-relational_mapping">ORM</a> is. Basically, you have an app, and you have a database. As the case with most apps, it needs to actually communicate with the database, usually by using queries. Queries are a language the database understands. They allow the application to ask the database for very specific information. An ORM sits between the application and the database. Its role is to give the application an object to communicate to. This object pretends as if it is a piece of data in the database, and allows the app to do things like data.update() or data.delete(). The ORM will write the appropriate queries to the database, regardless of the type of database. A good ORM can also perform joins between pieces of data and perform somewhat complex queries on the database. The purpose is to give a standard interface to communicate with any database.</p>
<p>So here&#8217;s my question: on a simple application, an ORM may be a good idea. It provides a standard interface to communicate with, and also allows the database to be &#8220;easily&#8221; switched out without modifying the main application code at all. But on any app I&#8217;ve worked on, there are many, many queries written that an ORM wouldn&#8217;t be able to map or understand. So what is the point of an ORM if it can&#8217;t handle everything? It&#8217;s a standard interface that becomes non-standard the second you write your first non-ORM query.</p>
<p>There is no way anybody could ever write an ORM that handles every query that possibly needs to be written. And instead of defining relationships between data in your queries, you have to define the relationships through the code.  Also, the argument I hear over and over and over: &#8220;it allows you to switch out your database easily.&#8221; Who the hell switches out their database? Why not just pick a database that does what you want from the beginning&#8230;and for the most part, they all do the same damned thing. Also, SQL is kind-of standard, so even without an ORM it&#8217;s not like you&#8217;ll be rewriting every query from scratch&#8230;most likely you&#8217;ll have to rewrite a few database-specific functions (think SELECT last_insert_id()). Is it really so hard to do this, especially if you only do it once? If you are switching from Oracle to PGSql to MySQL to MSSQL every other day, then yes, an ORM would probably make sense, but otherwise I don&#8217;t see the point.</p>
<p>Data is data, it is not another object. Moving everything under the sun into the object-oriented model does not make anyone&#8217;s life easier. SQL is good. <a href="http://en.wikipedia.org/wiki/Procedural_programming">Procedural</a> is lightning fast. Learn how to use these, because OO will not solve all your problems.</p>
<p>I welcome use-cases besides those I have mentioned and arguments for/against ORMs in the comments. I&#8217;m speaking from personal experience and not married to my opinion&#8230;so I&#8217;m actually very curious if any of you successfully use an ORM that does everything you need it to.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/technology/whats-the-point-of-object-relational-mapping-orm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some tips for a successful business while maintaining personal sanity</title>
		<link>http://blog.killtheradio.net/how-tos/some-tips-for-a-successful-business-while-maintaining-personal-sanity/</link>
		<comments>http://blog.killtheradio.net/how-tos/some-tips-for-a-successful-business-while-maintaining-personal-sanity/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 02:42:49 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[sanity]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=473</guid>
		<description><![CDATA[This will be a collection of things I&#8217;ve stumbled on during my time as a business owner (or just in the business world in general). First off, all of my experience is with small business and the service industry, and the only way I see that changing is if my business really takes off. So [...]]]></description>
			<content:encoded><![CDATA[<p>This will be a collection of things I&#8217;ve stumbled on during my time as a business owner (or just in the business world in general). First off, all of my experience is with small business and the service industry, and the only way I see that changing is if my business really takes off. So far, owning a business has been one of the most unstable, stressful, and aggravating occupations I&#8217;ve had&#8230;but it has by far been the most fun. There really is nothing better than working for yourself. It takes a lot of drive and you really have to love what you&#8217;re doing. If you don&#8217;t love it, you aren&#8217;t going to be able to do it day after day, week after week, year after year. I guess that&#8217;s the first tip:</p>
<ul>
<li><strong>Love what you do.</strong> If you don&#8217;t love what you do, what&#8217;s the point? You aren&#8217;t really getting anything out of working for yourself, and I can tell you now that for all the stress and work it takes to get a business going and keep it going, it&#8217;s just not worth it if you don&#8217;t get to do what you love for at least a small portion of the day. Find something you&#8217;re knowledgeable and passionate about, and the money and success will follow.</li>
<li><strong>Consider working with a partner.</strong> Owning a business is hard work. Sometimes more than one person can handle. In my experience, it&#8217;s been a lot easier having a partner than if I had to deal with everything on my own&#8230;someone who you trust and who shares your passion for what you do and for success. You can take a sick day and he/she will work in your stead, you can swap meetings with clients/customers, take vacations while the other one works, etc. You have to split the profits, but can make it up by doing almost twice the work anyway, and you get a lot more freedom.</li>
<li><strong>Be smart about your time.</strong> Since you&#8217;re just starting out and don&#8217;t have much (if any) capital, it makes sense to try and do everything (bookkeeping, equipment repairs, etc) yourself, right? Absolutely wrong&#8230;it almost always makes more sense to hire a professional. You make money by doing what you&#8217;re good at. You don&#8217;t make money doing time-consuming tasks that you aren&#8217;t trained for. Hiring a professional to help you out may seem like a waste of money, but you save money in the long run. They&#8217;re great at what they do, you&#8217;re great at what you do&#8230;so use the time you would have spent floundering with what they&#8217;re good at to do what you&#8217;re good at, and you can pay them and have leftovers. Need a contract? Hire a lawyer. Doing taxes? Hire an accountant. Being smart about your time is really important, especially when considering your personal sanity.</li>
<li><strong>&#8220;No&#8221; can be a great answer.</strong> Speaking of personal sanity, let&#8217;s talk about the most important word you can possibly have in your vocabulary. &#8220;No.&#8221; This word will save you. Trust me. You can&#8217;t really use this word when you work for someone else, so enjoy it. Try it now&#8230;say &#8220;no&#8221; out loud. Didn&#8217;t that feel great? What the hell am I talking about? You don&#8217;t have to do everything everyone needs (read: wants) all the time, and you certainly don&#8217;t have to do it when they need it. I&#8217;m not talking about when you and a client set a deadline and you decide you just don&#8217;t want to do it&#8230;that&#8217;s called laziness or poor planning. But if you find yourself inundated with work and a client out of the blue decides they need that huge project they&#8217;ve been mulling over in their head done THIS WEEK, &#8220;no&#8221; is a very appropriate response. &#8220;No&#8221; can also be used in other contexts.
<p>For instance, someone comes to you with a project that doesn&#8217;t make sense or it just sucks. Or the project is the best idea ever, but you get a strange vibe from the person pitching it. You don&#8217;t necessarily have to use the word &#8220;no&#8221; in this case, but the general concept is there: money != happiness. Just because a project seems great at first doesn&#8217;t mean it won&#8217;t drag you into a fiery pit of everlasting hell later on. Listen to your intuition, and know when to turn something or someone down.</p>
<p>On a side note, the more you exclusively work on better projects with better clients, the better projects and clients you&#8217;ll attract. This isn&#8217;t a business technique as much as it is the way of the universe.</li>
<li><strong>Communication is essential.</strong> Want to know a great way to piss someone off? Go way over budget on their project, then send them a bill at the end of the month. That&#8217;s a recipe for the swift end of a business relationship. Are you going to be 2 weeks late on a deadline? Tell your client ahead of time. Are you way over budget? Let your client know what happened and why! The sooner you tell them, the more appreciative they&#8217;ll be. Honesty, transparency, and proactive communication are the foundation of <em>any</em> relationship, but also translate well to business relationships.
<p>Also, be honest and verbose with your estimates. Sure, a prospective client may go with someone else with lower numbers on paper, but when they find out the other company more or less lied just to dupe them into getting their business, they won&#8217;t be happy. Also think of it this way: your numbers are the way they are for a good reason. If the client doesn&#8217;t want to pay your fair rate for a project, do you really need that penny-pinching tightwad arguing about every invoice with you anyway? Remember: the better the projects and clients you work with, the better the projects and clients you&#8217;ll get.</li>
</ul>
<p>Ok, that&#8217;s about all I have in me for now. Maybe I&#8217;ll do a followup later, but hopefully these tips can help anyone new to business, or maybe give someone who&#8217;s been doing it for a long time a little perspective. A lot of this stuff I apply not only to my business life, but life in general, with great success on both ends. Keep in mind this is mainly geared towards the service industry, and being only 23 I&#8217;m not the most knowledgeable person in the world, but hopefully the things I&#8217;ve found so far are universal.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/how-tos/some-tips-for-a-successful-business-while-maintaining-personal-sanity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Piwik vs Google Analytics</title>
		<link>http://blog.killtheradio.net/reviews/piwik-vs-google-analytics/</link>
		<comments>http://blog.killtheradio.net/reviews/piwik-vs-google-analytics/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 01:44:38 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=470</guid>
		<description><![CDATA[I&#8217;ve been using Google Analytics for quite some time. I do love it. It&#8217;s easy, it&#8217;s pretty, it&#8217;s addicting to look at the charts and graphs. Lately I&#8217;ve been trying out an alternative to Google Analytics, Piwik. I&#8217;m not going to list a bunch of bullet points with features of both compared. I am, however, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a rel="nofollow" href="http://www.google.com/analytics/">Google Analytics</a> for quite some time. I do love it. It&#8217;s easy, it&#8217;s pretty, it&#8217;s addicting to look at the charts and graphs. Lately I&#8217;ve been trying out an alternative to Google Analytics, <a href="http://piwik.org/">Piwik</a>.</p>
<p>I&#8217;m not going to list a bunch of bullet points with features of both compared. I am, however, going to tell you my experiences with both. I started with Google Analytics. The setup and install is so easy, a blind ape could do it. Once tracking, the graphs, maps, numbers are all easy to understand. You can compare your site to others like it, and you can set up different segments of visitors and display the graphs according to your segments.</p>
<p>Google Analytics has been fun and easy. I do have some hangups about it. Although there is no cost, Google owns your data. They are giving you a service, you are selling them your data in return. They know about your visitors and can track them based on their interest in various pages of yours. They can do whatever they want with this information. For some people, this is fine. I personally don&#8217;t give much of a rat&#8217;s ass what Google thinks they know about me. For others, this is a privacy issue.</p>
<p>I also ran into some limitations with Google Analytics. It doesn&#8217;t track downloads very easily, and getting any sort of report that it doesn&#8217;t already give you is impossible because you only get what you see.</p>
<p>I decided to try Piwik. It&#8217;s open source, they advertise themselves as an alternative to GA, and you own <span style="text-decoration: underline;">all</span> of your data. I threw up a new site on <a rel="nofollow" href="https://www.nearlyfreespeech.net/">NearlyFreeSpeech.net</a>, installed Piwik (literally a 5 min. install, just as they say), and started playing with it. A lot of the graphs are the same, the dashboard is completely customizable and is not jenky at all. After tracking some sites with it, I&#8217;m convinced it&#8217;s actually more accurate than Google. It picks up more visitors and keywords from search engines.</p>
<p>So I&#8217;ve been using Piwik regularly for about 3 or 4 months. There are some things I miss. Goals in Piwik do not have the awesome funnel that GA does. Not even close. The goals are pretty stupid, honestly, and all the ones I track are done manually through javascript. It&#8217;s nice to be able to track them, but it&#8217;s something I can get through any of my apps anyway. So from what I&#8217;ve noticed, Piwik is missing the funnel view (<a rel="nofollow" href="http://dev.piwik.org/trac/ticket/220">although they are working on it</a>), and it&#8217;s missing an IP filter: half the visits are from me sometimes, and it&#8217;d be nice to be able to browse my own apps without having to worry about messing up the analytics.</p>
<p>Aside from those two points, Piwik is the winner for me. I really never actually check Google Analytics anymore. Piwik really has stepped up and provided a service that&#8217;s comparable in features to GA, but free as free for me to use it without having to give away info about my awesome users. I would definitely urge anyone who likes Google Analytics to check out Piwik. The best part is, they&#8217;re actively developing it and there more and more features to look forward to as new releases come out.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/reviews/piwik-vs-google-analytics/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>California Proposition 16 &#8211; &#8220;California Taxpayers Right to Vote Act&#8221;</title>
		<link>http://blog.killtheradio.net/politics/california-proposition-16-california-taxpayers-right-to-vote-act/</link>
		<comments>http://blog.killtheradio.net/politics/california-proposition-16-california-taxpayers-right-to-vote-act/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 21:24:11 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[politics]]></category>
		<category><![CDATA[california]]></category>
		<category><![CDATA[government]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=463</guid>
		<description><![CDATA[With a name like &#8220;California Taxpayers Right to Vote Act,&#8221; you know there is an ulterior motive. We already have the right to vote, right? In fact, we do. So what is Prop 16, really? Prop 16 is designed such that before a city or state entity buys a section of power grid and resells [...]]]></description>
			<content:encoded><![CDATA[<p>With a name like &#8220;<a rel="nofollow" href="http://ballotpedia.org/wiki/index.php/California_Proposition_16_(June_2010)">California Taxpayers Right to Vote Act</a>,&#8221; you know there is an ulterior motive. We already have the right to vote, right? In fact, we do. So what is Prop 16, <em>really?</em></p>
<p>Prop 16 is designed such that before a city or state entity buys a section of power grid and resells that power to its residents, it must hold an election and get a 2/3 majority vote. While it may seem nice to have the voters decide on whether or not a government entity should be spending their money, it actually doesn&#8217;t make sense. The reason is the expenses involved in NOT allowing the entities to do this.</p>
<p>Think of it this way. A government agency spends some of your tax dollars buying up sections of the power grid. Money lost, right? Not necessarily. After they own that part of the grid, they start charging you for the power they give you. Great, so they spend your money to charge you money&#8230;but wait, there&#8217;s more. Because the government entity is essentially a business at this point which provides a service and charges for that service, it&#8217;s making money back. On top of this, the residents now have a choice of who they get their power from. This is known as &#8220;competition&#8221; and is the leading force against monopolization in any industry. If a market segment is profitable, doesn&#8217;t it make sense for the government to capitalize on that market segment?</p>
<p>Now let&#8217;s look from another angle. You are a taxpayer (I&#8217;m assuming) and you want to make the final decision about whether or not a section of power grid is bought. This is great, but your local government spends a lot (I mean, a LOT) of money without your express permission because we as a city/state/country give our government that power. We elect people to handle this in our stead because we are busy and don&#8217;t have the time to make every decision collectively. That&#8217;s how a representative republic works (<a rel="nofollow" href="http://en.wikipedia.org/wiki/Republic#United_States">no, the U.S.A. is <span style="text-decoration: underline;">not</span> a democracy, sorry!!</a>)</p>
<p>So why bother holding an (expensive) election so the govt. entity can spend more money petitioning and explaining to you why it&#8217;s good that they actually make money? Especially when they&#8217;re spending your money on lots of other things, all the time. Holding an election to give a local government entity the right to <em>actually turn your tax dollars into profit</em> (or at least offer you lower prices on energy) seems like a waste of time, no?</p>
<p>So where did this bill come from? If you read the Wikipedia page, it&#8217;s obvious: PG&amp;E. Now, I have nothing against these guys. They do a great job, and obviously they&#8217;re just protecting their interests. They do not want the government competing with them, which is why thus far they have donated $6.5 million to the campaign, and have stated they plan to donate up to $35 million total. They obviously have a vested interest in forcing local governments to get 2/3 support in elections (which is very, <em>very</em> hard to do).</p>
<p>By voting &#8220;Yes!&#8221; on prop 16, <span style="text-decoration: underline;">you gain absolutely no more rights than you had before</span>, you only make it harder for local and state governments to turn your tax dollars into something useful: cheap power for you. The name &#8220;California Taxpayers Right to Vote Act&#8221; is a misleading name designed to dupe the voters (that&#8217;s you!) into voting for higher energy prices and less competition in the energy market.</p>
<p>It&#8217;s important that our local governments are accountable for the money they spend, but passing highly targeted, specific bills that force them to ask, nay, beg, the voters for approval on everything they spend money on slows (if not stops) progress and makes our government much less useful&#8230;after all, we&#8217;re already electing them and paying them to decide where our money goes. Doesn&#8217;t voting on every single issue defeat the purpose of appointing representation?</p>
<p>Also, if the residents of a city really do not want the government spending their money on buying areas of power grid, they can get a ballot intiative (which takes a handful of signatures) and vote on it themselves.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/politics/california-proposition-16-california-taxpayers-right-to-vote-act/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>NearlyFreeSpeech.net downtime</title>
		<link>http://blog.killtheradio.net/reviews/nearlyfreespeech-net-downtime/</link>
		<comments>http://blog.killtheradio.net/reviews/nearlyfreespeech-net-downtime/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 18:10:50 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[downtime]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[transparency]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=457</guid>
		<description><![CDATA[I&#8217;ve never formally written about NearlyFreeSpeech.net until now, even though I&#8217;ve always had good things to say. Even after some extended downtime I&#8217;m excited to say I&#8217;m still on the bandwagon. The reason is their transparency. I&#8217;ve worked with many hosts before, and none are as honest or transparent. Even the Rackspace Cloud gave glossed [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="nofollow" href="https://www.nearlyfreespeech.net/"><img class="alignright size-full wp-image-458" title="https://www.nearlyfreespeech.net/" src="http://blog.killtheradio.net/wp-content/uploads/2010/02/logo.gif" border="0" alt="https://www.nearlyfreespeech.net/" width="278" height="80" /></a>I&#8217;ve never formally written about <a rel="nofollow" href="https://www.nearlyfreespeech.net/">NearlyFreeSpeech.net</a> until now, even though I&#8217;ve always had good things to say. Even after some extended downtime I&#8217;m excited to say I&#8217;m still on the bandwagon. The reason is their transparency. I&#8217;ve worked with many hosts before, and none are as honest or transparent. Even the <a rel="nofollow" href="http://www.rackspacecloud.com">Rackspace Cloud</a> gave glossed over responses to their problems. A few of my NFS sites went down just about all of yesterday because of a server failure. I logged into the control panel (proprietary, but I actually prefer it over cPanel or hsphere) and looked at the sticky support note left for all customers.</p>
<p>I half-expected to see &#8220;teh service is dwn!! were trying to fix it! sry lol!&#8221; as with most hosts. Instead, there was page after page of updates with details and explanation. After this, I was able to rest easy, because I had a good idea of how long it would take to get everything back up. Whenever it didn&#8217;t go as planned, they&#8217;d post another update.</p>
<p>I cannot stress how awesome this was. Yes, they made my downtime awesome by treating me and the other customers as if we were techs in the server room. I didn&#8217;t really care about my sites being down, because I knew they were working really hard on it and probably wouldn&#8217;t go to bed until it was fixed.</p>
<p>This brings up another point though: transparency makes your customers wet. I know it&#8217;s been discussed time after time, but it really is true. People don&#8217;t like &#8220;Our apologies, our service went down,&#8221; as much as they like &#8220;Our service went down from 6:30-8:30 UTC today when lightning struck main Big-IP load-balancer, and our failover didn&#8217;t switch the backup on.&#8221;</p>
<p>What&#8217;s a Big-IP? What&#8217;s &#8220;failover?&#8221; It doesn&#8217;t matter&#8230;treating your customers as equals and letting <em>them</em> decide if information is relevant or not will make them wet.</p>
<p>In my three years experience with NFS, this is the first downtime I&#8217;ve experienced. Their support was amazing enough to update every customer with detailed information about the problems they were experiencing and how they were fixing it. I cannot recommend them more. For larger sites that require custom services running, you&#8217;re out of luck. For blogs, informational sites, paypal-driven shopping carts (no SSL, yet), etc this is the best shared host I&#8217;ve dealt with, ever. They&#8217;re dirt cheap, and the only host I know of who won&#8217;t disable your site without a court order or copyright violation.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/reviews/nearlyfreespeech-net-downtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kamikaze pilot leaves behind suicide note</title>
		<link>http://blog.killtheradio.net/social-issues/kamikaze-pilot-leaves-behind-suicide-note/</link>
		<comments>http://blog.killtheradio.net/social-issues/kamikaze-pilot-leaves-behind-suicide-note/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 21:14:18 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Social issues]]></category>
		<category><![CDATA[government]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[tax law]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=430</guid>
		<description><![CDATA[In case you haven&#8217;t heard, a man, Joe Stack, angry at the IRS crashed a plane into his local IRS chapter. I don&#8217;t have much to say about the issue itself. Obviously, I disagree with crashing airplanes, or other means of transportation, into buildings. I also disagree with violence in general. The man left behind [...]]]></description>
			<content:encoded><![CDATA[<p>In case you haven&#8217;t heard, <a rel="nofollow" href="http://www.cbsnews.com/stories/2010/02/19/national/main6223218.shtml">a man, Joe Stack, angry at the IRS crashed a plane into his local IRS chapter</a>. I don&#8217;t have much to say about the issue itself. Obviously, I disagree with crashing airplanes, or other means of transportation, into buildings. I also disagree with violence in general. The man left behind a suicide note on his site (which the FBI promptly removed) that detailed his hardships with the government during his life and why he did what he did. I don&#8217;t agree with what he did, but, save the last page, I do agree with most of what he said.</p>
<p>I&#8217;m posting <a rel="nofollow" href="http://www.thesmokinggun.com/archive/years/2010/0218102stack1.html">what&#8217;s left of the suicide note</a> on here in the form of images (all that was left of it).</p>
<div class="clear"><a href="http://blog.killtheradio.net/wp-content/uploads/2010/02/0218102stack1a.gif"><img class="alignleft size-medium wp-image-431" title="page 1" src="http://blog.killtheradio.net/wp-content/uploads/2010/02/0218102stack1a-230x300.gif" alt="0218102stack1a" width="200" height="260" /></a><a href="http://blog.killtheradio.net/wp-content/uploads/2010/02/0218102stack2a.gif"><img class="alignleft size-medium wp-image-432" title="page 2" src="http://blog.killtheradio.net/wp-content/uploads/2010/02/0218102stack2a-230x300.gif" alt="0218102stack2a" width="200" height="260" /></a><a href="http://blog.killtheradio.net/wp-content/uploads/2010/02/0218102stack3a.gif"><img class="alignleft size-medium wp-image-433" title="page 3" src="http://blog.killtheradio.net/wp-content/uploads/2010/02/0218102stack3a-230x300.gif" alt="0218102stack3a" width="200" height="260" /></a><a href="http://blog.killtheradio.net/wp-content/uploads/2010/02/0218102stack4a.gif"><img class="alignleft size-medium wp-image-434" title="page 4" src="http://blog.killtheradio.net/wp-content/uploads/2010/02/0218102stack4a-230x300.gif" alt="0218102stack4a" width="200" height="260" /></a><a href="http://blog.killtheradio.net/wp-content/uploads/2010/02/0218102stack5a.gif"><img class="alignleft size-medium wp-image-435" title="page 5" src="http://blog.killtheradio.net/wp-content/uploads/2010/02/0218102stack5a-230x300.gif" alt="0218102stack5a" width="200" height="260" /></a><a href="http://blog.killtheradio.net/wp-content/uploads/2010/02/0218102stack6a.gif"><img class="alignleft size-medium wp-image-436" title="page 6" src="http://blog.killtheradio.net/wp-content/uploads/2010/02/0218102stack6a-230x300.gif" alt="0218102stack6a" width="200" height="260" /></a></div>
<p>The part that struck me the most:</p>
<pre>The communist creed:
  From each according to his ability, to each according to his need.
The capitalist creed:
  From each according to his gullibility, to each according to his greed.</pre>
<p>I&#8217;m posting this because I agree with what was said. I believe that America is a wasteland of deceit where gains are privatized, and losses are socialized.</p>
<p>Like I&#8217;ve said and believe firmly, violence never solves anything&#8230; it continues cyclically and endlessly. It&#8217;s important, though, to <em>see</em> why violence happens and not just pass it off as &#8220;terrorism.&#8221; Yes, terrorism exists, but that doesn&#8217;t mean there isn&#8217;t a reason behind it, no matter how misguided.</p>
<p>My heart and thoughts go out to those who lost their lives as a result of this incident. Yes, they were part of this unjust, corrupt system, but isn&#8217;t everyone? They were obvious targets but we&#8217;re all in this together, and it&#8217;s not fair they should pay when everyone involved (everyone) is just as guilty as the politicians and corporations.</p>
<p>UPDATE &#8211; <a rel="nofollow" href="http://www.t35.com/embeddedart.txt">found the original text</a>, linked on what used to be <a href="http://embeddedart.com/" rel="nofollow">Joe Stack&#8217;s website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/social-issues/kamikaze-pilot-leaves-behind-suicide-note/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

