<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>PJ For President</title>
	<atom:link href="http://pjforpresident.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pjforpresident.com</link>
	<description>making the world a stranger place</description>
	<pubDate>Fri, 04 Jul 2008 00:07:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Thursday Twitter Haiku</title>
		<link>http://pjforpresident.com/2008/07/03/thursday-twitter-haiku/</link>
		<comments>http://pjforpresident.com/2008/07/03/thursday-twitter-haiku/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 00:07:30 +0000</pubDate>
		<dc:creator>PJ Davis</dc:creator>
		
		<category><![CDATA[Twitter]]></category>

		<category><![CDATA[Computers]]></category>

		<category><![CDATA[haiku]]></category>

		<category><![CDATA[thursday]]></category>

		<guid isPermaLink="false">http://pjforpresident.com/?p=25</guid>
		<description><![CDATA[Haiku are Nature.
Computers aren&#8217;t Natural,
But Oak Express is.
]]></description>
			<content:encoded><![CDATA[<p>Haiku are Nature.<br />
Computers aren&#8217;t Natural,<br />
But Oak Express is.</p>
]]></content:encoded>
			<wfw:commentRss>http://pjforpresident.com/2008/07/03/thursday-twitter-haiku/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hackintosh</title>
		<link>http://pjforpresident.com/2008/06/30/hackintosh/</link>
		<comments>http://pjforpresident.com/2008/06/30/hackintosh/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 03:08:36 +0000</pubDate>
		<dc:creator>PJ Davis</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[os x]]></category>

		<category><![CDATA[hackintosh]]></category>

		<category><![CDATA[kalaway]]></category>

		<category><![CDATA[leopard]]></category>

		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://pjforpresident.com/?p=23</guid>
		<description><![CDATA[Totally got me a hackintosh running.
From: About this Mac
Model Name:    Mac
Model Identifier:    Mac Pro
Processor Name:    Intel Core 2 Duo
Processor Speed:    2.13 GHz
Number Of Processors:    1
Total Number Of Cores:    2
L2 Cache:    2 MB
Memory:    2 GB
Bus Speed:    1.07 GHz
Boot ROM Version:    Hack.int.0sh
Wasn&#8217;t too hard to get running either, once I figured out what I was doing. I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://pjforpresident.com/wp-content/uploads/2008/07/apple-logo.jpg"><img class="alignright size-medium wp-image-24" title="apple-logo" src="http://pjforpresident.com/wp-content/uploads/2008/07/apple-logo-256x300.jpg" alt="" width="256" height="300" /></a>Totally got me a hackintosh running.</p>
<blockquote><p>From: About this Mac</p>
<p>Model Name:    Mac<br />
Model Identifier:    Mac Pro<br />
Processor Name:    Intel Core 2 Duo<br />
Processor Speed:    2.13 GHz<br />
Number Of Processors:    1<br />
Total Number Of Cores:    2<br />
L2 Cache:    2 MB<br />
Memory:    2 GB<br />
Bus Speed:    1.07 GHz<br />
Boot ROM Version:    Hack.int.0sh</p></blockquote>
<p>Wasn&#8217;t too hard to get running either, once I figured out what I was doing. I&#8217;m running an Asus P5B motherboard with a 2.13gig Intel Core 2 Duo processor, 2gig of Corsair XMS2 DDR2 RAM, and an nVidia GeForce 7900 GS 256m video card. It&#8217;s got a 160g samsung and a 120g maxtor IDE drive, one with XP Pro and one with OS X Leopard. I&#8217;m able to use VMWare Fusion to boot windows inside os x, just as if it were installed with bootcamp. I&#8217;m also able to dual boot using the Windows boot loader.  So far, I haven&#8217;t noticed anything weird about the leopard install. It seems to run fine, without any problems.</p>
<p>I used the kalaway 10.5.1 dvd, and skiped the vanilla kernel, loaded sse2 support, nvidia desktop drivers, no sound drivers, no network drivers, and mbr boot. I also partitioned the harddrive with mbr instead of guid. I did have to install 3rd party drivers for the audio to work, but it was pretty straight forward, and the drivers are avaliable from the insainely mac forums.</p>
<p>I use a Macbook Pro at work, and I&#8217;m glad to finally have a mac I can use, and can force my wife to use, at home.</p>
]]></content:encoded>
			<wfw:commentRss>http://pjforpresident.com/2008/06/30/hackintosh/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Subversion Best Pratices</title>
		<link>http://pjforpresident.com/2008/06/30/subversion-best-pratces/</link>
		<comments>http://pjforpresident.com/2008/06/30/subversion-best-pratces/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 16:02:48 +0000</pubDate>
		<dc:creator>PJ Davis</dc:creator>
		
		<category><![CDATA[Subversion]]></category>

		<category><![CDATA[repository]]></category>

		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://pjforpresident.com/?p=21</guid>
		<description><![CDATA[I&#8217;m looking to write a subversion best pratices guide for work, so the developers can keep conflicts to a minium, and everything repository-wise keeps running smoothly.
I&#8217;m looking for things like, when to create branches, when to merge back into trunk, when to commit, etc&#8230;
Leave some suggestions in the comments, and I&#8217;ll try to roll them [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m looking to write a subversion best pratices guide for work, so the developers can keep conflicts to a minium, and everything repository-wise keeps running smoothly.</p>
<p>I&#8217;m looking for things like, when to create branches, when to merge back into trunk, when to commit, etc&#8230;</p>
<p>Leave some suggestions in the comments, and I&#8217;ll try to roll them into a catch-all guide that maybe some other people can use.</p>
]]></content:encoded>
			<wfw:commentRss>http://pjforpresident.com/2008/06/30/subversion-best-pratces/feed/</wfw:commentRss>
		</item>
		<item>
		<title>RSpec Stories On Rails</title>
		<link>http://pjforpresident.com/2008/06/27/rspec-stories-on-rails/</link>
		<comments>http://pjforpresident.com/2008/06/27/rspec-stories-on-rails/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 04:29:32 +0000</pubDate>
		<dc:creator>PJ Davis</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<category><![CDATA[bdd]]></category>

		<category><![CDATA[internet]]></category>

		<category><![CDATA[rails]]></category>

		<category><![CDATA[rspec]]></category>

		<category><![CDATA[ruby]]></category>

		<category><![CDATA[stories]]></category>

		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://pjforpresident.com/?p=19</guid>
		<description><![CDATA[Using a story to drive your development tasks is a good idea, even when there is only 1 team member. Writing stories helps you stay focused on the requirements without getting side-tracked into something that isn&#8217;t working toward the end goal of your app. There&#8217;s always time for script.aculo.us later! Using RSpec stories also means [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://pjforpresident.com/wp-content/uploads/2008/06/picture-1.png"><img class="alignright size-medium wp-image-20" title="TDD" src="http://pjforpresident.com/wp-content/uploads/2008/06/picture-1-300x196.png" alt="Congrats on Passing that Test Suite" width="300" height="196" /></a>Using a story to drive your development tasks is a good idea, even when there is only 1 team member. Writing stories helps you stay focused on the requirements without getting side-tracked into something that isn&#8217;t working toward the end goal of your app. There&#8217;s always time for script.aculo.us later! Using RSpec stories also means you have tests to run against your code so you know that fixing something probably didn&#8217;t break something else.</p>
<p>First thing you want to do is get the RSpec on Rails plugin installed, and generate the RSpec code.</p>
<blockquote><p>$ ./script/plugin install git://github.com/dchelimsky/rspec.git<br />
$ ./script/plugin install git://github.com/dchelimsky/rspec-rails.git<br />
$ ./script/generate rspec</p></blockquote>
<p>Stories are broken down into 2.5 files:</p>
<ul>
<li>1. The Story file - Where the plain text story resides</li>
<li>2. The Step file - Where the different steps in your story are defined.</li>
<li>2.5 The Story runner file - The ruby code that kicks everything off.</li>
</ul>
<p><span id="more-19"></span></p>
<p>First off, the story file is a semi-plain text description of some stuff that happens in your application, and follows this basic format:</p>
<blockquote><p><strong>Story: &lt;Description of Story&gt;</strong><em><br />
As a &lt;Whoever is doing the actions&gt;<br />
I want to &lt;What you want to do&gt;<br />
So I can &lt;Why you want to do it&gt;</em></p>
<p><strong>Scenario: &lt;Description of a Scenario that could happen&gt;</strong><br />
Given &lt;Something&gt;<br />
When &lt;Something happens&gt;<br />
Then &lt;What is the expected result&gt;</p>
<p><strong>Scenario: &lt;Description of a Scenario that could happen&gt;</strong><br />
Given &lt;Something&gt;<br />
When &lt;Something happens&gt;<br />
Then &lt;What is the expected result&gt;</p></blockquote>
<p>Not exactly conversational English, but no crazy ||&#8217;s &amp;&amp;&#8217;s or ==&#8217;s that would scare normal customers away. The top of the story is there to give you a general overview of what&#8217;s being tested. In each story, you&#8217;ll have different scenarios, mini-stories if you will, that cover a complete set of actions that can take place.</p>
<p>In each Scenario there are three basic statements in which you describe what state the application is in and the assumptions about the outside world, the actions that are taken, and the expected result. So, for a user regestering for the first time, you are assuming that the user has a username and password picked out ,and an email address. That user would then enter those into your regestration form, and then when they&#8217;re submitted, he&#8217;d be wisked away to some kind of confirmation page, and that user added to the database. This file (<strong>/stories/signup_for_accounts_story</strong>) may look like:</p>
<blockquote><p>Scenario: User fills out form correctly</p>
<p>Given a username &#8216;brittany&#8217;<br />
And a password &#8216;foobar&#8217;<br />
And an email &#8216;foo@bar.com&#8217;<br />
And  there is no user with this username</p>
<p>When the user creates an account with username, password and email</p>
<p>Then there should be a user named &#8216;brittany&#8217;<br />
And there should be a profile for &#8216;brittany&#8217;<br />
And should redirect to users profile page</p></blockquote>
<p>Pretty straight forward, huh? You can have as many scenarios as you need to cover whatever part of your application you&#8217;re testing. At this point, everything is still pretty magical. How does RSpec know so much about your application that it can guess method names, form paths and so on? Well&#8230;.it doesn&#8217;t. That&#8217;s where the step file comes in.</p>
<p>The step file is where you define what all of these arbitrary lines of text should actually do. Each line is defined in a block in your steps file, which normally lives in the stories/steps folder, and looks like this</p>
<blockquote><p>steps_for(:&lt;what you&#8217;re doing&gt;) do</p>
<p>Given &#8220;&lt;an assumption&gt;&#8221; do<br />
&lt;do something having to do with that assumption&gt;<br />
end</p>
<p>When &#8220;&lt;an action&gt;&#8221; do<br />
&lt;do that action&gt;<br />
end</p>
<p>Then &#8220;&lt;an expected result&gt;&#8221; do<br />
&lt;see if that result is what&#8230;resulted&gt;<br />
end</p>
<p>end</p></blockquote>
<p>That&#8217;s the general layout of the steps file. You can have as many steps as you need, and they&#8217;re reused between scenarios. Your <em>Given</em> blocks will usually do something like mock a model, assign a value to a variable, or stub an outside service. These lay the basis for your assumptions for the state of being before your action is excuted. <em>When</em> blocks execute actions, such as posting to a web form. Finally, <em>Then</em> describes the expected state of your application after the action is executed. These are where you&#8217;ll usually find out where your application is broken. In pratice, this (<strong>/stories/steps/signup_for_accounts_steps.rb</strong>) looks like:</p>
<blockquote><p>steps_for(:signup) do</p>
<p>Given &#8220;a username &#8216;$username&#8217;&#8221; do |username|<br />
@username = username<br />
end</p>
<p>Given &#8220;a password &#8216;$password&#8217;&#8221; do |password|<br />
@password = password<br />
end</p>
<p>Given &#8220;a password_confirmation &#8216;$pass_conf&#8217;&#8221; do |pass_conf|<br />
@password_confirmation = pass_conf<br />
end</p>
<p>Given &#8220;an email &#8216;$email&#8217;&#8221; do |email|<br />
@email = email<br />
end</p>
<p>Given &#8220;there is no user with this username&#8221; do<br />
User.find_by_login(@username).should be_nil<br />
end</p>
<p>When &#8220;the user creates an account with username, password and email &#8221; do<br />
post &#8220;/users&#8221;, :user =&gt; { :login =&gt; @username,<br />
:password =&gt; @password,<br />
:password_confirmation =&gt; @password,<br />
:email =&gt; @email }<br />
end</p>
<p>Then &#8220;there should be a user named &#8216;$username&#8217;&#8221; do |username|<br />
User.find_by_login(username).should_not be_nil<br />
end</p>
<p>Then &#8220;there should be a profile for &#8216;$username&#8217;&#8221; do |username|<br />
user = User.find_by_login(username)<br />
user.should_not be_nil<br />
Profile.find_by_user_id(user.id).should_not be_nil<br />
end</p>
<p>Then &#8220;And should redirect to users profile page&#8221; do<br />
user = User.find_by_login(@username)<br />
user.should_not be_nil<br />
response.should redirect_to(user)<br />
end</p>
<p>end</p></blockquote>
<p>This defines all the actions that we need to run our story. Kind of tedius, i know, but you can reuse blocks in other scenarios. If you notice, some blocks have a $variable, these are picked up by the RSpec story parcer and passed into the block, so it makes the blocks more flexable, and you can use them more often.</p>
<p>Finally, there is the half-file, the story runner, all it does is link everything you need togeather, and it (<strong>/stories/signup_for_account_story.rb</strong>) will look like this:</p>
<blockquote><p>require File.dirname(__FILE__) + &#8220;/helper&#8221;</p>
<p>with_steps_for(:signup) do<br />
run_local_story &#8220;signup_for_account&#8221;, :type =&gt; RailsStory<br />
end</p></blockquote>
<p>yeah, not much to it, eh? Just change the with_steps_for() symbol and the run_local_story argument and you&#8217;ll be on your way.</p>
<p>Now you can run your new story by typing in</p>
<p>$ ruby stories/signup_for_account_story.rb</p>
<p>and watch it make sure your app is doing what it&#8217;s supposed to do. It&#8217;ll notify you of any failures, and stop the test if it encounters them, so you can fix them right away.</p>
<p>There are many more, much better resources for this than mine, so if you want to check them out, here is a list of some of the better ones.</p>
<p><a href="http://rspec.info/documentation/rails/">RSpec -1.1.4: Spec:: Rails</a></p>
<p><a href="http://rspec.info/documentation/rails/"></a><a href="http://www.railsonwave.com/railsonwave/2008/6/4/david-chelimsky-integration-testing-with-rspec-s-story-runner">David Chelimsky: Integration Testing With Rspec&#8217;s Story Runner &#8230;</a></p>
<p><a href="http://times.usefulinc.com/2008/01/12-rspec-stories">Telling stories with RSpec</a></p>
<p><a href="http://evang.eli.st/blog/2007/9/1/user-stories-with-rspec-s-story-runner">evang.eli.st User stories with RSpec&#8217;s Story Runner</a></p>
<p><a href="http://tomtenthij.co.uk/2008/1/25/rspec-plain-text-story-runner-on-a-fresh-rails-app">RSpec plain text story runner on a fresh rails app</a></p>
<p>If you find anything in here that is dumb, crappy, or just plain wrong, drop a comment and i&#8217;ll fix it so it sucks less. Thanks.</p>
<p>Picture Credits: jay<small> | </small><a title="Conversations with Plastic Dinosaurs" href="http://conversationswithplasticdinosaurs.com/archives/40" target="_blank">http://conversationswithplasticdinosaurs.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pjforpresident.com/2008/06/27/rspec-stories-on-rails/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Compiling MySQL Native Bindings on OS X + MacPorts</title>
		<link>http://pjforpresident.com/2008/06/20/compiling-mysql-native-bindings-on-os-x-macports/</link>
		<comments>http://pjforpresident.com/2008/06/20/compiling-mysql-native-bindings-on-os-x-macports/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 16:56:08 +0000</pubDate>
		<dc:creator>PJ Davis</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<category><![CDATA[bindings]]></category>

		<category><![CDATA[gem]]></category>

		<category><![CDATA[installation]]></category>

		<category><![CDATA[mysql]]></category>

		<category><![CDATA[rails]]></category>

		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://pjforpresident.com/?p=18</guid>
		<description><![CDATA[ Playing around with the partitions on my mac yesterday, i accidently deleted the efi partition (dumb of me, i know), but I figured it was about time for a reload, so i just sucked it up and wiped the mac clean. 
Going through and installing all the stuff i needed for development, i ran into a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://pjforpresident.com/wp-content/uploads/2008/06/rails.png"><img class="alignleft size-medium wp-image-17" title="rails" src="http://pjforpresident.com/wp-content/uploads/2008/06/rails-235x300.png" alt="" width="235" height="300" /></a> Playing around with the partitions on my mac yesterday, i accidently deleted the efi partition (dumb of me, i know), but I figured it was about time for a reload, so i just sucked it up and wiped the mac clean. </p>
<p>Going through and installing all the stuff i needed for development, i ran into a problem installing the native mysql bindings for ruby.</p>
<p><span id="more-18"></span></p>
<blockquote><p> </p>
<div>[host-192-168-254-149:~] pjdavis% sudo gem install mysql</div>
<div>Bulk updating Gem source index for: http://gems.rubyforge.org/</div>
<div>Building native extensions.  This could take a while&#8230;</div>
<div>ERROR:  Error installing mysql:</div>
<div>        ERROR: Failed to build gem native extension.</div>
<div>/opt/local/bin/ruby extconf.rb install mysql</div>
<div>checking for mysql_query() in -lmysqlclient&#8230; no</div>
<div>checking for main() in -lm&#8230; yes</div>
<div>checking for mysql_query() in -lmysqlclient&#8230; no</div>
<div>checking for main() in -lz&#8230; yes</div>
<div>checking for mysql_query() in -lmysqlclient&#8230; no</div>
<div>checking for main() in -lsocket&#8230; no</div>
<div>checking for mysql_query() in -lmysqlclient&#8230; no</div>
<div>checking for main() in -lnsl&#8230; no</div>
<div>checking for mysql_query() in -lmysqlclient&#8230; no</div>
<div>*** extconf.rb failed ***</div>
<div>Could not create Makefile due to some reason, probably lack of</div>
<div>necessary libraries and/or headers.  Check the mkmf.log file for more</div>
<div>details.  You may need configuration options.</div>
<div>Provided configuration options:</div>
<div>        &#8211;with-opt-dir</div>
<div>        &#8211;without-opt-dir</div>
<div>        &#8211;with-opt-include</div>
<div>        &#8211;without-opt-include=${opt-dir}/include</div>
<div>        &#8211;with-opt-lib</div>
<div>        &#8211;without-opt-lib=${opt-dir}/lib</div>
<div>        &#8211;with-make-prog</div>
<div>        &#8211;without-make-prog</div>
<div>        &#8211;srcdir=.</div>
<div>        &#8211;curdir</div>
<div>        &#8211;ruby=/opt/local/bin/ruby</div>
<div>        &#8211;with-mysql-config</div>
<div>        &#8211;without-mysql-config</div>
<div>        &#8211;with-mysql-dir</div>
<div>        &#8211;without-mysql-dir</div>
<div>        &#8211;with-mysql-include</div>
<div>        &#8211;without-mysql-include=${mysql-dir}/include</div>
<div>        &#8211;with-mysql-lib</div>
<div>        &#8211;without-mysql-lib=${mysql-dir}/lib</div>
<div>        &#8211;with-mysqlclientlib</div>
<div>        &#8211;without-mysqlclientlib</div>
<div>        &#8211;with-mlib</div>
<div>        &#8211;without-mlib</div>
<div>        &#8211;with-mysqlclientlib</div>
<div>        &#8211;without-mysqlclientlib</div>
<div>        &#8211;with-zlib</div>
<div>        &#8211;without-zlib</div>
<div>        &#8211;with-mysqlclientlib</div>
<div>        &#8211;without-mysqlclientlib</div>
<div>        &#8211;with-socketlib</div>
<div>        &#8211;without-socketlib</div>
<div>        &#8211;with-mysqlclientlib</div>
<div>        &#8211;without-mysqlclientlib</div>
<div>        &#8211;with-nsllib</div>
<div>        &#8211;without-nsllib</div>
<div>        &#8211;with-mysqlclientlib</div>
<div>        &#8211;without-mysqlclientlib</div>
<div>Gem files will remain installed in /opt/local/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.</div>
<div>Results logged to /opt/local/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out</div>
<p> </p></blockquote>
<div>I had installed mysql with macports, and that is what was causing the problem. Turns out gem can&#8217;t find everything it needs to compile the mysql bindings. Instead of just &#8217;sudo gem install mysql&#8217; try &#8217;sudo gem install mysql &#8212; &#8211;with-mysql-include=/usr/local/mysql/include/ &#8211;with-mysql-lib=/usr/local/mysql/lib/ &#8211;with-mysql-config=/usr/local/mysql/bin/mysql_config&#8217; if you installed mysql through macports or porticus. </div>
<div>Hope this helps everyone</div>
<p> </p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://pjforpresident.com/2008/06/20/compiling-mysql-native-bindings-on-os-x-macports/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New Hardcore Mix</title>
		<link>http://pjforpresident.com/2008/05/29/new-hardcore-mix/</link>
		<comments>http://pjforpresident.com/2008/05/29/new-hardcore-mix/#comments</comments>
		<pubDate>Fri, 30 May 2008 02:11:09 +0000</pubDate>
		<dc:creator>PJ Davis</dc:creator>
		
		<category><![CDATA[Music]]></category>

		<category><![CDATA[hardcore]]></category>

		<category><![CDATA[mix]]></category>

		<guid isPermaLink="false">http://pjforpresident.com/?p=13</guid>
		<description><![CDATA[Another Bangin Hardcore mix! Hour and a little bit long. Really energetic, good for workouts and other things.

Grab It Here

Top Cat - Walking on the Moon
Vagabond - World of Unknown
Implex - Lost It
Antix - HtID + Dougal &#38; Gammer - Nobody likes the Records
Brisk &#38; Vagabond - Eyeopener 2007
Dougal &#38; Gammer - Fires in the [...]]]></description>
			<content:encoded><![CDATA[<p>Another Bangin Hardcore mix! Hour and a little bit long. Really energetic, good for workouts and other things.</p>
<p></p>
<p><a title="Download Hardcore Mix" href="http://pjforpresident.com/audio/HardcoreMix.mp3">Grab It Here</a></p>
<ol>
<li>Top Cat - Walking on the Moon</li>
<li>Vagabond - World of Unknown</li>
<li>Implex - Lost It</li>
<li>Antix - HtID + Dougal &amp; Gammer - Nobody likes the Records</li>
<li>Brisk &amp; Vagabond - Eyeopener 2007</li>
<li>Dougal &amp; Gammer - Fires in the Sk</li>
<li>The Acolyte feat. Amy - When the Rain Comes</li>
<li>Scott Brown - I Don&#8217;t Need Nobody</li>
<li>Ultrabeat - Elysium (Scott Brown Remix)</li>
<li>S3RL - Weekend Has Come</li>
<li>DJ Demo &amp; Mickey Skeedale - Love U Now</li>
<li>Euphoria - Drunk With Love</li>
<li>Implex - Silent</li>
<li>Brisk &amp; Ham - Crazy Love (Scott Brown Remix)</li>
<li>Evil Activities - Nobody Said it was Easy</li>
<li>Amnesys - Catastrophes</li>
<li>Yael Naim - New Soul</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://pjforpresident.com/2008/05/29/new-hardcore-mix/feed/</wfw:commentRss>
<enclosure url="http://pjforpresident.com/audio/HardcoreMix.mp3" length="85988378" type="audio/mpeg" />
		</item>
		<item>
		<title>Slow Samba on OS X</title>
		<link>http://pjforpresident.com/2008/05/17/slow-samba-on-os-x/</link>
		<comments>http://pjforpresident.com/2008/05/17/slow-samba-on-os-x/#comments</comments>
		<pubDate>Sat, 17 May 2008 15:59:18 +0000</pubDate>
		<dc:creator>PJ Davis</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[networking]]></category>

		<category><![CDATA[os x]]></category>

		<category><![CDATA[samba]]></category>

		<category><![CDATA[slow]]></category>

		<guid isPermaLink="false">http://pjforpresident.com/2008/05/17/slow-samba-on-os-x/</guid>
		<description><![CDATA[I&#8217;ve been using FreeNAS for about a year now to host content for my XBMC and other things, such as my iTunes Library and family photos. One thing that&#8217;s always bothered me is on Windows, it&#8217;s been fast and responsive, but on my MacBook Pro (running tiger) it crawls at about 150-200kbps, even when plugged [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using FreeNAS for about a year now to host content for my XBMC and other things, such as my iTunes Library and family photos. One thing that&#8217;s always bothered me is on Windows, it&#8217;s been fast and responsive, but on my MacBook Pro (running tiger) it crawls at about 150-200kbps, even when plugged into the same switch as the NAS.</p>
<p>Today, I was copying over an audio file (AK1200 Live in San Francisco to be exact) and i finally decided enough is enough. Finally found a way to fix it, that was apparently posted in 2005 (i&#8217;m a little slow). It&#8217;s not the actual <a href="http://www.devco.net/archives/2005/04/11/os_x_to_samba_slow_performance.php">blog post</a>, but the <a href="http://www.devco.net/archives/2005/04/11/os_x_to_samba_slow_performance.php#comments">comment</a> under it. So, just in case anyone is having the same problem, here is the solution.</p>
<blockquote><p>This didn&#8217;t work for me, but setting the sysctl parameter net.inet.tcp.delayed_ack to 0 did! For me, the results were dramatic: drag-and-drop of a 100MB .wav file from the samba server took 45 minutes before the fix, and &lt; 2 minutes after the fix. Wahoooo!</p>
<p>Found the info here: <a rel="nofollow" href="http://julipedia.blogspot.com/2006/02/samba-performance-under-mac-os-x.html">http://julipedia.blogspot.com/2006/02/samba-performance-under-mac-os-x.html</a></p></blockquote>
<p>[in case that link vanishes, here's the short version:<br />
use 'sudo sysctl -w net.inet.tcp.delayed_ack=0' on command-line to try it (persistent until reboot) and put the line<br />
'net.inet.tcp.delayed_ack=0' in /etc/sysctl.conf to fix it 'permanently' -- note: I haven't tested the latter yet. I had to create the sysctl.conf file, and haven't rebooted yet]</p>
<p>and a good discussion of *why* it works, starts at the bottom of that same blog entry, then links to the crux of the problem here:<br />
<a rel="nofollow" href="http://mail-index.netbsd.org/tech-net/2003/01/28/0004.html">http://mail-index.netbsd.org/tech-net/2003/01/28/0004.html</a></p>
<p>[It's a TCP bug inherited from the FreeBSD stack - the same bug was fixed in NetBSD back in 1997, and Apple has known about it since before Jaguar release]</p>
<p><!-- technorati tags begin --></p>
<p style="font-size:10px;text-align:right;">Tags: <a rel="tag" href="http://technorati.com/tag/osx">osx</a>, <a rel="tag" href="http://technorati.com/tag/%20samba"> samba</a>, <a rel="tag" href="http://technorati.com/tag/%20freeNAS"> freeNAS</a>, <a rel="tag" href="http://technorati.com/tag/%20file%20sharing"> file sharing</a>, <a rel="tag" href="http://technorati.com/tag/%20home%20networking"> home networking</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://pjforpresident.com/2008/05/17/slow-samba-on-os-x/feed/</wfw:commentRss>
		</item>
		<item>
		<title>2008 Summer Mix</title>
		<link>http://pjforpresident.com/2008/05/16/a-mix/</link>
		<comments>http://pjforpresident.com/2008/05/16/a-mix/#comments</comments>
		<pubDate>Sat, 17 May 2008 04:41:20 +0000</pubDate>
		<dc:creator>PJ Davis</dc:creator>
		
		<category><![CDATA[Music]]></category>

		<category><![CDATA[2008 Summer Mix]]></category>

		<category><![CDATA[hardcore]]></category>

		<category><![CDATA[mix]]></category>

		<category><![CDATA[mp3]]></category>

		<guid isPermaLink="false">http://pjforpresident.com/?p=11</guid>
		<description><![CDATA[Made a new mix the other day. It&#8217;s only 40min long but it&#8217;s pretty cool. Newer hardcore stuff. Check it out.

Grab It Here
DJ Ham - Jam for Me
Druid &#38; Stormtrooper - Panic Relick
Sy &#38; Unknown - What a Great Drug
Expression - Total Darkness
Druid &#38; Stormtrooper Ft. Kristy - Electrified
DJ Ham - The Beat Kicks
Brisk &#38; [...]]]></description>
			<content:encoded><![CDATA[<p>Made a new mix the other day. It&#8217;s only 40min long but it&#8217;s pretty cool. Newer hardcore stuff. Check it out.</p>
<p></p>
<p><a href="http://pjforpresident.com/audio/2008Mix Rendered.mp3">Grab It Here</a></p>
<p>DJ Ham - Jam for Me<br />
Druid &amp; Stormtrooper - Panic Relick<br />
Sy &amp; Unknown - What a Great Drug<br />
Expression - Total Darkness<br />
Druid &amp; Stormtrooper Ft. Kristy - Electrified<br />
DJ Ham - The Beat Kicks<br />
Brisk &amp; V.A.G.A.B.O.N.D. Ft. DMO - In Control<br />
Matt Envy - Twisted Love<br />
Robbie Long &amp; Stormtrooper - Reach for the Sky<br />
Brisk &amp; V.A.G.A.B.O.N.D. Ft. DMO - Away from Here<br />
September - Cry For You (Darren Styles Club Mix)<br />
DJ Seduction - In Dreams<br />
DJ Ham - Right Now<br />
DJ Ham - Night to Remember<br />
Sy And Unknown Feat. Lou Lou - Right Here<br />
Matt Envy &amp; Frooty - In Your Arms<br />
Robbie Long &amp; Devastate - Still Got Power<br />
DJ Seduction - At Night (Energize)</p>
]]></content:encoded>
			<wfw:commentRss>http://pjforpresident.com/2008/05/16/a-mix/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Switching to WordPress</title>
		<link>http://pjforpresident.com/2008/05/05/switching-to-wordpress/</link>
		<comments>http://pjforpresident.com/2008/05/05/switching-to-wordpress/#comments</comments>
		<pubDate>Mon, 05 May 2008 05:12:35 +0000</pubDate>
		<dc:creator>PJ Davis</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://pjforpresident.com/?p=3</guid>
		<description><![CDATA[I know, you&#8217;re tired of me switching blogging engines every few days, but i promise you, this will be the last&#8230;for now.
Testing the audio thing. This is a song by DJ Earworm, United States of Pop.

]]></description>
			<content:encoded><![CDATA[<p>I know, you&#8217;re tired of me switching blogging engines every few days, but i promise you, this will be the last&#8230;for now.</p>
<p>Testing the audio thing. This is a song by DJ Earworm, United States of Pop.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://pjforpresident.com/2008/05/05/switching-to-wordpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Re: Re: Five Ways Vista is better than OS X</title>
		<link>http://pjforpresident.com/2008/04/10/re-re-five-ways-vista-is-better-than-os-x/</link>
		<comments>http://pjforpresident.com/2008/04/10/re-re-five-ways-vista-is-better-than-os-x/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 03:23:45 +0000</pubDate>
		<dc:creator>PJ Davis</dc:creator>
		
		<category><![CDATA[Commentary]]></category>

		<category><![CDATA[argument]]></category>

		<category><![CDATA[chris pirillo]]></category>

		<category><![CDATA[internet]]></category>

		<category><![CDATA[operating system]]></category>

		<category><![CDATA[os x]]></category>

		<category><![CDATA[preston galla]]></category>

		<category><![CDATA[retard race]]></category>

		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://pjforpresident.com/?p=5</guid>
		<description><![CDATA[I was reading Chris Pirillo&#8217;s blog tonight, catching up on some stuff, and came across this: Five Ways Vista is better than OS X? where he gives his side of a blog article by Preston Galla&#8217;s article (by the same name)
Chris claims he is tired of the bickering between OS X and Windows users (as [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://pjforpresident.com/wp-content/uploads/2008/05/138819-introslide.jpg"><img class="alignleft size-medium wp-image-6" style="margin:3em;" title="Leopard vs. Vista" src="http://pjforpresident.com/wp-content/uploads/2008/05/138819-introslide-300x224.jpg" alt="" width="300" height="224" /></a>I was reading Chris Pirillo&#8217;s blog tonight, catching up on some stuff, and came across this: <a href="http://chris.pirillo.com/2008/04/09/five-ways-vista-is-better-than-os-x/#comments">Five Ways Vista is better than OS X?</a> where he gives his side of a blog article by <a href="http://blogs.computerworld.com/five_reasons_why_vista_beats_mac_os_x">Preston Galla&#8217;s article</a> (by the same name)</p>
<p>Chris claims he is tired of the bickering between OS X and Windows users (as is just about everyone else) and tries to counter-argue the points brought up by Preston, and I couldn&#8217;t help but throw my hat in the ring of fire too! I&#8217;m going to throw my comments inline with Chris Pirillo&#8217;s commentary.<span id="more-5"></span></p>
<p><!--break--></p>
<ul>
<li><strong>Vista runs more software.</strong> You have to be kidding me? Vista may run more software, but try uninstalling it. How many protection programs do you need, as well? Is the software more stable than that of a Mac? Even if Vista has more software, youd never be able to run or store it ALL, anyway. How is more even relevant?</li>
</ul>
<p>This is a pretty weak argument on Chris&#8217;s part, as Preston points out, &#8220;An operating system by itself is a poor thing &#8212; it&#8217;s the applications that run on top of it that matter.&#8221;  Chris concedes the point, however, goes off on this tangent about uninstalling. What does uninstalling software have to do with the availability of it? I suppose he could mean getting rid of malware, however that would more appropriately belong in the next section.  I will give him it&#8217;s probably a good idea to have protection software, but as I said before, probably would be better suited to the next section. Stablilty is a funny point to bring up, because if I had a dollar for every time Firefox died on my Mac, I could probably hostilely take over Google. The idea that you&#8217;ll never be able to install ALL the software available for Vista is silly as well, of course you won&#8217;t, but you don&#8217;t need to either. The point Preston is trying to make is that the software is AVAILABLE for you to use if you need it. That&#8217;s how &#8220;more&#8221; is relevant.</p>
<ul>
<li><strong>Vista is safer.</strong> WHAT? How many viruses, trojans, and rootkits are floating around for Windows? A bamboo plant is safer than Vista *AND* Mac OS X combined. Whats safer supposed to mean?</li>
</ul>
<p>Well, Preston kinda screwed the pooch on this one, because he based his definition of &#8220;safe&#8221; on the outcome of the recent &#8220;Pwn to Own&#8221; challenge at the CanSecWes conference, Ignoring the number of flaws that have been found, even in Vista SP1. However, what&#8217;s with the bamboo plant? I don&#8217;t think a bamboo plant is *THAT* secure, I mean, if a ninja got a hold of it, he could lay the smack down pretty hard i bet.</p>
<ul>
<li><strong>Its the money, stupid.</strong> Uh. If you build a comparable Windows machine with hardware that nearly the SAME youre going to probably spend the same amount of money.</li>
</ul>
<p>Ahhh yes, the &#8220;Macs cost a gazillion dollars&#8221; complaint. Guess what? It&#8217;s true. Macs are expensive, relatively. My refurbished 1st generation MacBook Pro cost $1600, and I&#8217;ve seen them (even today) for as much as $1800. Understandably though, as it&#8217;s the nicest laptop I&#8217;ve ever owned. It&#8217;s great for just about everything I do, and has pretty much replaced my Dell Precision 650, except for gaming. However, for my grandmother, she doesn&#8217;t need anywhere near the processing power I do. She looks at email, instant messages my uncle, and&#8230;well that&#8217;s about it. And on AOL, 2.5g of ram isn&#8217;t going to make that youtube video of a farting panda load any faster. The thing that i believe would have made more since for Preston to push, instead of deciding that all people who own macs are a) rich and b) love to waste money, is that the Windows-based machines give you more choice to decide how much to invest in a computer that you may or may not use everyday. My grandmother has an HP something or other, and the Celron inside that sucker is slow as molasses, but it does for her what she needs it to do, and she didn&#8217;t have to spend her entire social security check on it.</p>
<ul>
<li><strong>The Mac is closed; Vista is open.</strong> If you would have said Linux is open, Id have given you a point. Apple controls the software and the hardware - the entire experience. That actually works well in the consumer space, and I like it. I like it when things just WORK together.</li>
</ul>
<p>Preston probably could have chosen his opening words differently, methinks, and came out better for it. While I agree with his sentiment, the wording is misleading. In terms of openness, software wise, OS X wins, because it is Darwin, based on FreeBSD, and, from what I understand, Apple has contributed heavily back into Darwin, helping the open source community grow. However, the point I believe Preston is trying to drive is that you can install Vista on anything (whether or not it will run is another argument entirely) while you have to be using Apple hardware to run OS X. Chris says this works better for the consumer, by allowing Apple to control the entire experience, however, I&#8217;d love nothing more than to be able to illegitimately triple boot my Dell with Vista, Slackware, and OS X. I&#8217;m able to take things not &#8216;just working&#8217; all the time, for a little more freedom with the software I buy.</p>
<ul>
<li><strong>Two words - Steve Jobs.</strong> Lets go back to the first video I recorded about the iPhone (a while ago). I understand this point - I truly do. But buying a Mac has nothing to do with helping Steve Jobs, or even Apple themselves. It comes down to the fact that, once again the entire experience is seamless for users.</li>
</ul>
<p>Now Preston, I&#8217;m assuming you&#8217;ve worked with computers long enough to know that EVERY computer company has a guy named Steve at some head position&#8230;and that guy named Steve is usually a <a href="http://video.google.com/videoplay?docid=6304687408656696643">douchebag</a> for the most part. This argument is childish and something I&#8217;d more expect to see on a Blogger blog or Youtube comment, not on the website of one of the most widely distributed computing magazines.</p>
<p>The final answer is, there is no answer. I use 4 operating systems weekly, if not daily: (in order) FreeBSD, OS X, Vista, and Slackware. They all have their strong points: FreeBSD is the best server operating system, HANDS DOWN. I don&#8217;t care what you say and I won&#8217;t listen to reason. OS X is great for lots of things, and is pretty much my general purpose os, used mostly for Rails development. Vista is used for games, and to keep the wife off my laptop. Slackware, well, Slack4Life!</p>
<p>Point is, if you&#8217;re going to argue over os&#8217;s, don&#8217;t. You&#8217;re wasting your time, because someone is going to come up and tell you you&#8217;re dumb for not thinking like they do, and then you&#8217;ll be wrong on the Internet, and we wouldn&#8217;t want that to happen, now would we?</p>
]]></content:encoded>
			<wfw:commentRss>http://pjforpresident.com/2008/04/10/re-re-five-ways-vista-is-better-than-os-x/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
