<?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>Geek Chic &#187; General Nerdiness</title>
	<atom:link href="http://www.jeffreyclarke.net/blog/category/general-nerdiness/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeffreyclarke.net/blog</link>
	<description>Dorky.  And also True.</description>
	<lastBuildDate>Wed, 13 Jan 2010 17:51:01 +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>Google Wave Cinema</title>
		<link>http://www.jeffreyclarke.net/blog/2009/10/google-wave-cinema/</link>
		<comments>http://www.jeffreyclarke.net/blog/2009/10/google-wave-cinema/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 14:48:50 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Flicks]]></category>
		<category><![CDATA[General Nerdiness]]></category>
		<category><![CDATA[Google Wave]]></category>
		<category><![CDATA[Wave Cinema]]></category>

		<guid isPermaLink="false">http://www.jeffreyclarke.net/blog/?p=1164</guid>
		<description><![CDATA[A whole new genre of homage / parody: Google Wave Cinema. Here&#8217;s someone&#8217;s take on Pulp Fiction: You can also watch Good Will Hunting. This Google Wave thing seems like a lot of fun.  Can the rest of us get invites now please?]]></description>
			<content:encoded><![CDATA[<p>A whole new genre of homage / parody: Google Wave Cinema.</p>
<p>Here&#8217;s someone&#8217;s take on Pulp Fiction:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://www.youtube.com/v/xcxF9oz9Cu0&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en&amp;feature=player_embedded&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/xcxF9oz9Cu0&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en&amp;feature=player_embedded&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>You can also watch <a href="http://www.youtube.com/watch?v=-VD0wzo_Gw4&amp;feature=player_embedded" target="_blank">Good Will Hunting</a>.</p>
<p>This Google Wave thing seems like a lot of fun.  Can the rest of us get invites now please?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffreyclarke.net/blog/2009/10/google-wave-cinema/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Taking a Long Weekend, Facebook?</title>
		<link>http://www.jeffreyclarke.net/blog/2009/09/taking-a-long-weekend-facebook/</link>
		<comments>http://www.jeffreyclarke.net/blog/2009/09/taking-a-long-weekend-facebook/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 15:18:25 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[General Nerdiness]]></category>
		<category><![CDATA[Nice one!]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Redesign]]></category>
		<category><![CDATA[Whoops!]]></category>

		<guid isPermaLink="false">http://www.jeffreyclarke.net/blog/?p=1139</guid>
		<description><![CDATA[I know Facebook has done some tweaking of their UI lately (most notably to get rid of those spiffy, but apparently very difficult to maintain, rounded corners on the pictures), but they seem to be getting a little careless in terms of what gets out to production.  Working for a large company myself, I know [...]]]></description>
			<content:encoded><![CDATA[<p>I know Facebook has done some tweaking of their UI lately (most notably to get rid of those spiffy, but apparently very difficult to maintain, <a href="http://www.techcrunch.com/2009/08/26/facebook-tweaks-design-drops-rounded-corners/" target="_blank">rounded corners on the pictures</a>), but they seem to be getting a little careless in terms of what gets out to production.  Working for a large company myself, I know sometimes things can accidentally come out of the oven a little before they&#8217;re cooked.  I&#8217;m just surprised to see this from Facebook.</p>
<p>Check this out:</p>
<p>1. The logo is blurry.  Maybe they&#8217;re trying to reduce the file size?  But man. I think that&#8217;s a no-no.  Maybe it&#8217;s worth the extra K or two to have the logo be sharp?</p>
<p><img class="alignnone size-full wp-image-1141" title="fb-1" src="http://www.jeffreyclarke.net/blog/wp-content/uploads/2009/09/fb-11.jpg" alt="fb-1" width="188" height="219" /></p>
<p>2. The borders on all of their photos in the (freaking annoying) Highlights section are totally out of whack:</p>
<p><img class="alignnone size-full wp-image-1142" title="fb-2" src="http://www.jeffreyclarke.net/blog/wp-content/uploads/2009/09/fb-2.jpg" alt="fb-2" width="272" height="425" /></p>
<p>Come on Facebook! Pull yourself together!  It&#8217;s not the weekend yet!  Put down the margarita, re-save your logo, tweak your CSS and THEN you can leave for your rafting trip.  K?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffreyclarke.net/blog/2009/09/taking-a-long-weekend-facebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bacolicio.us</title>
		<link>http://www.jeffreyclarke.net/blog/2009/06/bacolicious/</link>
		<comments>http://www.jeffreyclarke.net/blog/2009/06/bacolicious/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 20:31:00 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[General Nerdiness]]></category>
		<category><![CDATA[Bacon]]></category>

		<guid isPermaLink="false">http://www.jeffreyclarke.net/blog/?p=1037</guid>
		<description><![CDATA[My boss just sent this to me, and it&#8217;s awesome.   It just takes a piece of bacon and slaps it over your favorite (or least favorite) site.  Like AOL, for example: You can do it to any site you want &#8212; this site, for example.  Just add the site url after the bacolicio.us/ A fantastic [...]]]></description>
			<content:encoded><![CDATA[<p>My boss just sent this to me, and it&#8217;s awesome.   It just takes a piece of bacon and slaps it over your favorite (or least favorite) site.  Like AOL, for example:</p>
<p><a href="http://bacolicio.us/http://www.aol.com" target="_blank"><img class="alignnone size-full wp-image-1038" title="Bacolicio.us" src="http://www.jeffreyclarke.net/blog/wp-content/uploads/2009/06/bacon.jpg" alt="Bacolicio.us" width="450" height="328" /></a></p>
<p>You can do it to any site you want &#8212; <a href="http://bacolicio.us/http://www.jeffreyclarke.net/blog/">this site, for example</a>.  Just add the site url after the <strong>bacolicio.us/</strong></p>
<p>A fantastic waste of time.</p>
<p>Reminds me of other famous site tricks, like the long lost s<a href="http://zeroincrement.wordpress.com/2007/12/01/javascript-web-browser-tricks-a-little-how-to/" target="_blank">ingle line of javascript that grabs all of the images on your page and swirls them around</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffreyclarke.net/blog/2009/06/bacolicious/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conan O&#8217;Brien, The Lost Mario Brother</title>
		<link>http://www.jeffreyclarke.net/blog/2009/06/conan-obrien-lost-mario-brother/</link>
		<comments>http://www.jeffreyclarke.net/blog/2009/06/conan-obrien-lost-mario-brother/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 16:49:14 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA['Puters]]></category>
		<category><![CDATA[General Nerdiness]]></category>
		<category><![CDATA[Conan O'Brien]]></category>
		<category><![CDATA[Super Mario Brothers]]></category>

		<guid isPermaLink="false">http://www.jeffreyclarke.net/blog/?p=1017</guid>
		<description><![CDATA[Check this out: Conan&#8217;s New Stage Looks Like Super Mario It&#8217;s pretty amazing that someone took the time to put together that collage over at Serious Lunch.  And even more amazing that, yes, Conan&#8217;s set does look a lot like a SMB background. Thanks Vulture &#38; Serious Lunch]]></description>
			<content:encoded><![CDATA[<p>Check this out:</p>
<p><a href="http://seriouslunch.blogspot.com/2009/06/conans-new-stage-looks-like-super-mario.html" target="_blank"><img class="alignnone size-full wp-image-1035" title="Conan in Super Mario World" src="http://www.jeffreyclarke.net/blog/wp-content/uploads/2009/06/seriouslunch_conan.jpg" alt="Conan in Super Mario World" width="420" height="487" /></a></p>
<p><strong><a href="http://seriouslunch.blogspot.com/2009/06/conans-new-stage-looks-like-super-mario.html" target="_blank">Conan&#8217;s New Stage Looks Like Super Mario</a></strong></p>
<p>It&#8217;s pretty amazing that someone took the time to put together that collage over at <a href="http://seriouslunch.blogspot.com/" target="_blank">Serious Lunch</a>.  And even more amazing that, yes, Conan&#8217;s set does look a lot like a SMB background.</p>
<p>Thanks <a href="http://nymag.com/daily/entertainment/2009/06/conans_tonight_show_live_from.html" target="_blank">Vulture</a> &amp; <a href="http://seriouslunch.blogspot.com/" target="_blank">Serious Lunch</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffreyclarke.net/blog/2009/06/conan-obrien-lost-mario-brother/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Web Development Server Environment on Leopard</title>
		<link>http://www.jeffreyclarke.net/blog/2009/06/a-web-development-server-environment-on-leopard/</link>
		<comments>http://www.jeffreyclarke.net/blog/2009/06/a-web-development-server-environment-on-leopard/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 14:29:49 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA['Puters]]></category>
		<category><![CDATA[General Nerdiness]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac OS 10.5]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.jeffreyclarke.net/blog/?p=977</guid>
		<description><![CDATA[I apologize &#8212; this is a little nerdier than this blog typically gets, but I wanted to put this up online somewhere and didn&#8217;t have anywhere else to put it. I&#8217;ve been frustrated with the web server that comes with Mac OS 10.5 (Leopard) and I&#8217;ve worked to set up my own server for web [...]]]></description>
			<content:encoded><![CDATA[<p>I apologize &#8212; this is a little nerdier than this blog typically gets, but I wanted to put this up online somewhere and didn&#8217;t have anywhere else to put it.</p>
<p>I&#8217;ve been frustrated with the web server that comes with Mac OS 10.5 (Leopard) and I&#8217;ve worked to set up my own server for web development projects.  I&#8217;d tried this a number of ways, but this time I was really happy with the process and the end result &#8212; so I typed up a little document on how to set up a nice web dev environment (partly so I can repeat it, but partly to share).  Enjoy!</p>
<p><span id="more-977"></span></p>
<p style="text-align: center;">* * * * *</p>
<p><!--   body #page #content{ text-align:left;margin:5px auto; padding:10px 0 0; width:100%;}    --></p>
<p>I&#8217;ve found a relatively easy way to maintain a flexible, updatable development under MacOS 10.5 which goes so far as to install my own components, but not to have to compile them (which I&#8217;ve done several times and can attest, is a pain).</p>
<p>This setup gives you a great web development environment under Leopard (geared in my case towards Flash development compatible with the WordPress platform), which does a better job of playing by the rules than the default install of a lot of these elements.  And with MacPorts, the whole thing is modular and very easily maintained.</p>
<p>And everything on the list is free and/or open-source.</p>
<p>* Note that you&#8217;ll need to have administrator privileges on your user account to do this.</p>
<p>** Also note that this is geared towards creating a relatively unfettered development environment.  I don&#8217;t make any considerations about server security or server optimization for large-scale web applications.  This is really geared towards creating a simple, local dev environment.</p>
<p><strong>Includes:</strong></p>
<ul>
<li>XCode Tools</li>
<li> MacPorts</li>
<li> Apache2</li>
<li> PHP 5</li>
<li> MySQL 5</li>
</ul>
<p><strong>* optional installs:</strong></p>
<ul>
<li> Subversion</li>
<li> SCPlugin</li>
<li> Sequel Pro (formerly CocoaMySQL)</li>
</ul>
<p><em>derived from a bunch of sources, including:</em><br />
<a href="http://seancoates.com/php-5-2-5-on-leopard" target="_blank">php-5.2.5 on Leopard</a><br />
<a href="http://blog.rajatpandit.com/2009/03/12/using-macport-to-setup-php5-apache2-on-leopard/" target="_blank">Using Macport to Setup PHP5 and Apache2 on Leopard/</a><br />
<a href="http://matthewcarriere.com/2008/04/02/installing-mysql-on-mac-os-x-leopard-using-macports/" target="_blank">Installing MYSQL on Mac OS X Leopard Using Macports</a></p>
<p><strong style="display:block; margin-top:30px; margin-bottom:25px; font-size:1.3em;">Here goes:</strong></p>
<p><strong>1. Install XCode Tools:</strong><br />
<a href="http://developer.apple.com/technology/xcode.html" target="_blank">http://developer.apple.com/technology/xcode.html</a></p>
<p>pretty self-explanatory. Install them.  You&#8217;ll need them at the very least for MacPorts.  But they come in handy if you ever need to compile anything.</p>
<p><strong>2. Install MacPorts</strong><br />
<a href="http://www.macports.org/install.php" target="_blank">http://www.macports.org/install.php</a></p>
<p>MacPorts is a modular install system with easy update / swap / uninstall capacity.  It&#8217;s like Fink (I say, never having used Fink) &#8212; just an easy way to install a bunch of standard programs.</p>
<p>There are several install options, but the easiest thing to do is just use the disk image here:</p>
<p><a href="http://svn.macports.org/repository/macports/downloads/MacPorts-1.7.1/MacPorts-1.7.1-10.5-Leopard.dmg" target="_blank">http://svn.macports.org/repository/macports/downloads/MacPorts-1.7.1/MacPorts-1.7.1-10.5-Leopard.dmg</a></p>
<p>Unless you&#8217;re an advanced user I recommend you do that.</p>
<p><strong>3. Update MacPorts</strong></p>
<blockquote><p>sudo port -v selfupdate #makes sure ports is up to date<br />
sudo port sync #syncs the local port index with the remote index</p></blockquote>
<p><strong>4. Install Apache 2</strong></p>
<blockquote><p>sudo port install apache2<br />
sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist # set to autorun at boot</p></blockquote>
<p>The standard web server. Standard, because it&#8217;s really stable, fast and flexible.</p>
<p>more info: <a href="http://blog.rajatpandit.com/2009/03/12/using-macport-to-setup-php5-apache2-on-leopard/" target="_blank">http://blog.rajatpandit.com/2009/03/12/using-macport-to-setup-php5-apache2-on-leopard/</a></p>
<p>** notes **<br />
You don&#8217;t necessarily need these, but I find it&#8217;s helpful to have some aliases to address apache &#8212; mostly for start, stop and restart functionality.  You can set these aliases to be whatever you want.  Or ignore them.  I just find them helpful.</p>
<blockquote><p>alias apache_start=&#8221;sudo /opt/local/apache2/bin/apachectl start&#8221;<br />
alias apache_restart=&#8221;sudo /opt/local/apache2/bin/apachectl restart&#8221;<br />
alias apache_stop=&#8221;sudo /opt/local/apache2/bin/apachectl stop&#8221;</p></blockquote>
<p><strong>5. Install MySQL 5</strong></p>
<blockquote><p>sudo port install mysql5 +server<br />
sudo /opt/local/lib/mysql5/bin/mysql_install_db &#8211;user=mysql #initialze mysql<br />
sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist #set mysql to autostart at boot<br />
sudo /opt/local/bin/mysqld_safe5 #start</p></blockquote>
<p>#create symbolic links to not have to type in mysql5 every time:</p>
<blockquote><p>sudo ln -s /opt/local/bin/mysql5 /opt/local/bin/mysql<br />
sudo ln -s /opt/local/bin/mysqladmin5 /opt/local/bin/mysqladmin</p></blockquote>
<p>More info: <a href="http://matthewcarriere.com/2008/04/02/installing-mysql-on-mac-os-x-leopard-using-macports/" target="_blank">http://matthewcarriere.com/2008/04/02/installing-mysql-on-mac-os-x-leopard-using-macports/</a></p>
<p><strong>6. Install php5 (with apache2, mysql and pear support)</strong></p>
<blockquote><p>sudo port install php5 +apache2 +mysql5 +pear</p></blockquote>
<p><strong>7. Activate PHP</strong></p>
<blockquote><p>cd /opt/local/apache2/modules<br />
sudo /opt/local/apache2/bin/apxs -a -e -n &#8220;php5&#8243; libphp5.so</p></blockquote>
<p><strong>8. Move Leopard&#8217;s standard Apache out of the regular path</strong></p>
<blockquote><p>sudo mv /usr/sbin/apachectl /usr/sbin/apachectl-leopard</p></blockquote>
<p><strong>9. Move your new Apache into the path</strong><br />
(you might not need the first 2 steps, but I&#8217;m working on a totally clean Leopard build, so I don&#8217;t have these directories yet)</p>
<blockquote><p>sudo mkdir /usr/local<br />
sudo mkdir /usr/local/bin<br />
sudo ln -s /opt/local/apache2/bin/apachectl /usr/local/bin/apachectl</p></blockquote>
<p><strong>10. Move Leopard&#8217;s bundled PHP out of the way</strong></p>
<blockquote><p>sudo mv /usr/bin/php /usr/bin/php-leopard</p></blockquote>
<p><strong>11. Do some Apache configuration for PHP:</strong><br />
(all of these are modifications to the httpd.conf file located here: /opt/local/apache2/conf/httpd.conf)</p>
<p><strong>a. </strong>Add index.php to the list of DirectoryIndex:</p>
<blockquote><p>&lt;IfModule dir_module&gt;<br />
DirectoryIndex index.html index.php<br />
&lt;/IfModule&gt;</p></blockquote>
<p><strong>b.</strong> Add handlers for PHP files:</p>
<blockquote><p># Add handling for PHP files<br />
&lt;IfModule php5_module&gt;<br />
AddHandler application/x-httpd-php .php<br />
AddHandler application/x-httpd-php-source .phps<br />
&lt;/IfModule&gt;</p></blockquote>
<p>This block can go anywhere in the httpd.conf &#8212; but it&#8217;s probably best to keep the module handlers in alphabetical order.</p>
<p><strong>c. </strong>Restart Apache<br />
If you added the alias to your bash profile, you can now do apache_restart. Otherwise, enter:</p>
<blockquote><p>sudo apachectl restart</p></blockquote>
<p><strong>11. Include user Sites directories (enable the following file by un-commenting it):</strong></p>
<blockquote><p># User home directories<br />
Include conf/extra/httpd-userdir.conf</p></blockquote>
<p><strong>12. Re-link mysql.sock:</strong></p>
<blockquote><p>sudo ln -s /opt/local/var/run/mysql5/mysqld.sock /tmp/mysql.sock</p></blockquote>
<p>This step is essential so everyone can agree where MySQL is living on the system and how to connect to it.  Before I did this, Apache and PHP seemed to be able to access MySQL, and I could access MySQL from the command line, but programs like SequelPro couldn&#8217;t find the MySQL socket.  This step seems to correct that problem and let everyone play nicely.</p>
<p><strong style="display:block; margin-top:30px; margin-bottom:0px; font-size:1.3em;"><em>** OPTIONAL **</em></strong><br />
These steps are optional &#8212; certainly not essential, but I find them to be very helpful tools for web development.</p>
<p><strong>13. Install Subversion</strong></p>
<blockquote><p>sudo port install subversion</p></blockquote>
<p>This installs the latest version of Subversion on the system &#8212; which is then used for SVN access from the command line, from Eclipse, from SCPlugin, etc.</p>
<p><strong>14. Install SCPlugin</strong></p>
<p><a href="http://scplugin.tigris.org/" target="_blank">http://scplugin.tigris.org/</a></p>
<p>SCPlugin is a great little tool that integrates Subversion access with the MacOS Finder and lets you do all of your basic SVN commands from there (checkout, update, revert, etc).  It doesn&#8217;t give you deep, deep access into SVN commands like version checkout or repository browsing, but for lazy commands like checkout and update, it&#8217;s great.</p>
<p><strong>15. Install CocoaMySQL / SequelPro</strong></p>
<p><a href="http://sequel-pro.googlecode.com/files/CocoaMySQL-pre0.7b6.zip" target="_blank">CocoaMySQL 0.7b6</a><br />
<a href="http://www.theonline.org/cocoamysql/CocoaMySQL-SBG-v0_7_1.dmg.zip (CocoaMySQL-SBG 0.7.1)" target="_blank">CocoaMySQL-SBG 0.7.1</a></p>
<p>Of those two I prefer <strong>0.7b6 </strong>&#8211; It seems perfectly stable to me.</p>
<p>CocoaMySQL is an awesome little MySQL editor / browser based on the CocoaMySQL codebase.  I&#8217;ve been using it for years and I&#8217;ve found it&#8217;s a lot faster than entering SQL commands in the Terminal or dealing with PHPMyAdmin (which is super-slow even running locally).</p>
<p>CocoaMySQL lets you manage DBs effortlessly. I find it&#8217;s great for DB creation (when you&#8217;re still sketching out a project and want to play around with table structure), and for common tasks like importing and exporting.</p>
<p>It&#8217;s a native MacOS application, so it&#8217;s really zippy and it lets you do local and remote DB access.  And it plays nice with all of the components we&#8217;ve installed so far.</p>
<p>I highly recommend it.</p>
<p>The only drawback is that the codebase for CocoaMySQL has been abandoned.  It&#8217;s been picked up by the SequelPro project, but honestly these guys have a ways to go before their product matches CocoaMySQL (like &#8212; they still need to add user administration).  By the time you read this maybe they&#8217;ve added some features.  If not, I&#8217;d say CocoaMYSQL still works beautifully &#8212; even though the code has been abandoned.</p>
<p>If you want SequelPro, though, you can get it here:</p>
<p><a href="http://www.sequelpro.com/" target="_blank">http://www.sequelpro.com/</a></p>
<p><strong>16. ADVANCED &#8211; Virtual Hosts</strong></p>
<p>I first experimented with Virtual Hosts when I started doing WordPress development &#8212; mostly because WordPress seems much happier with shorter real world style urls like:</p>
<p><em>http://radio.local</em></p>
<p>than those you&#8217;d typically see running on your local box:</p>
<p><em>http://localhost/~jeff/projects/wordpress/radio-station</em></p>
<p>But once I started playing with these, I decided it was MUCH easier to be able to deal with these super-short urls (think Bit.ly for your local box) than to have to type in the whole thing.  It&#8217;s made my life a lot simpler, so I figured I&#8217;d pass along the info.</p>
<p>Note that when you choose a host name, you&#8217;ll want to choose one that doesn&#8217;t exist on the web.  You&#8217;re basically overriding your machine&#8217;s host lookup functionality &#8212; hard coding urls to corresponding locations on your local disk &#8212; and thereby bypassing DNS lookup.  So if you pathed http://www.google.com to your local disk, your computer wouldn&#8217;t be able to find the real google until you undid the Virtual host.  So be careful.</p>
<p>I typically choose a hostname that includes the suffix .local.  That&#8217;s never given me any problems (eg. projects.local, flash.local, radio.local).</p>
<p>Let&#8217;s begin.</p>
<p>You&#8217;ll be dealing with 3 files on this:</p>
<ul>
<li>httpd.conf</li>
<li>httpd-vhosts.conf</li>
<li>hosts</li>
</ul>
<p>Which, if you followed the steps above, are located at:</p>
<ul>
<li>/opt/local/apache2/conf/httpd.conf</li>
<li>/opt/local/apache2/conf/extra/httpd-vhosts.conf</li>
<li>/private/etc/hosts</li>
</ul>
<p><strong>a. Enable Apache&#8217;s Virtual Host configuration</strong><br />
in httpd.conf, uncomment the Virtual Hosts line:</p>
<blockquote><p>Include conf/extra/httpd-vhosts.conf</p></blockquote>
<p>This will allow you to add hosts to your vhosts configuration file.</p>
<p><strong>b. Add host locations</strong></p>
<p>open the vhosts file in your favorite text editor:</p>
<blockquote><p>/opt/local/apache2/conf/extra/httpd-vhosts.conf</p></blockquote>
<p>The first thing you&#8217;ll want to do here is comment out the default examples they give you (the ones that include <em>ServerAdmin webmaster@dummy-host.example.com</em>).  You might want them as a reference, but you don&#8217;t want them to be active.  Comment them out.</p>
<p>Next you&#8217;ll add your host.  Substitute in values below to correspond to your build and the hostname you choose:</p>
<blockquote><p>&lt;VirtualHost *:80&gt;<br />
DocumentRoot &#8220;/Users/USERNAME/PATH&#8221;<br />
ServerName hostname.suffix<br />
&lt;/VirtualHost&gt;</p></blockquote>
<p>Typically life is easier if you choose a disk path inside of your Sites directory.  If you don&#8217;t you might need to do some more file permission configuration.</p>
<p>In my case, the host I added is:</p>
<blockquote><p>&lt;VirtualHost *:80&gt;<br />
DocumentRoot &#8220;/Users/jeff/Sites/projects&#8221;<br />
ServerName projects.local<br />
&lt;/VirtualHost&gt;</p></blockquote>
<p>So now Apache knows that when it&#8217;s told to serve any files referenced by the url projects.local, it&#8217;ll serve them from the path I&#8217;ve given it in my Sites directory.  There are other arguments you can add to the VirtualHost node, but this is all you need.</p>
<p><strong>c. Add host names to your hosts file</strong></p>
<p>Next you need to tell the machine that when you ask for that particular server name, you want it to ask the local Apache server to serve it.  Editing this file is globally applicable to all browser applications &#8212; so once you edit this file, programs like Firefox, Safari, Opera, etc will all serve up your local page instead of looking the url up with the friendly neighborhood DNS.</p>
<p>Your machine already does this to a certain extent &#8212; for example, the &#8216;localhost&#8217; prefix is already set up via the hosts file so that the machine knows to look to the local Apache server, rather than out on the web.  What we&#8217;re doing is adding one or many shortcuts that mimic this behavior &#8212; but which point to more specific locations on disk.</p>
<p>Open your hosts file:</p>
<blockquote><p>/private/etc/hosts</p></blockquote>
<p>and add the line:</p>
<blockquote><p>127.0.0.1     hostname.suffix</p></blockquote>
<p>(so in my case I added):</p>
<blockquote><p>127.0.0.1     projects.local</p></blockquote>
<p>then save the file.</p>
<p><strong>d. Restart Apache</strong><br />
Go back to the terminal and restart apache:</p>
<blockquote><p>sudo apachectl restart</p></blockquote>
<p>Now you should be all set.  Open up your browser and point it towards the virtual host you just made. In our case that&#8217;s:</p>
<p><em>http://projects.local</em></p>
<p>And your browser should serve up that url like magic. ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffreyclarke.net/blog/2009/06/a-web-development-server-environment-on-leopard/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Have a Ball</title>
		<link>http://www.jeffreyclarke.net/blog/2009/04/have-a-ball/</link>
		<comments>http://www.jeffreyclarke.net/blog/2009/04/have-a-ball/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 15:48:40 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[General Nerdiness]]></category>
		<category><![CDATA[Ball Drop]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.jeffreyclarke.net/blog/?p=942</guid>
		<description><![CDATA[Check out this cute (and addictive) little game from Josh Nimoy: What&#8217;s most impressive, IMHO, is that it&#8217;s written entirely in JavaScript using the canvas object (sorry IE fans). And in that vein, it serves as a good test of each of the current browsers&#8217; rendering engines. While FF 3.01 performance is spotty, Safari&#8217;s current [...]]]></description>
			<content:encoded><![CDATA[<p>Check out this cute (and addictive) little game from <a href="http://jtnimoy.net/" target="_blank">Josh Nimoy</a>:</p>
<p><a href="http://balldroppings.com/js/" target="_blank"><img class="alignnone size-full wp-image-943" title="balldrop" src="http://www.jeffreyclarke.net/blog/wp-content/uploads/2009/04/balldrop.jpg" alt="balldrop" width="460" height="290" /></a></p>
<p>What&#8217;s most impressive, IMHO, is that it&#8217;s written entirely in JavaScript using the canvas object (sorry IE fans).</p>
<p>And in that vein, it serves as a good test of each of the current browsers&#8217; rendering engines.</p>
<p>While FF 3.01 performance is spotty, Safari&#8217;s current release really tears it up (most likely because canvas is a native Apple element).  I imagine since the app was written to show off Chrome&#8217;s JS engine, that Chrome also performs beautifully.</p>
<p>Alright, enough nerdiness.  It&#8217;s a game. It&#8217;s fun. <a href="http://balldroppings.com/js/" target="_blank">You should play it</a> :)</p>
<p>Thanks <a href="http://www.veryshortlist.com/web/daily.cfm/review/1120/Website/ball-droppings-game/?tp" target="_blank">VSL</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffreyclarke.net/blog/2009/04/have-a-ball/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nerdy AND Anti-Palin</title>
		<link>http://www.jeffreyclarke.net/blog/2009/04/nerdy-and-anti-palin/</link>
		<comments>http://www.jeffreyclarke.net/blog/2009/04/nerdy-and-anti-palin/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 14:37:39 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[General Nerdiness]]></category>
		<category><![CDATA[Rants and Raves]]></category>
		<category><![CDATA[Sarah Palin]]></category>
		<category><![CDATA[Schwarzenegger]]></category>
		<category><![CDATA[Thermodynamics]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.jeffreyclarke.net/blog/?p=930</guid>
		<description><![CDATA[This is Sarah Palin&#8217;s new Twitter account (any wagers on whether Sarah knows how to post to Twitter?): Note the text: Bio: Creating New Energy for Alaskans as governor of the 49th state! As pointed out by Gawker, this blatantly violates the 1st Law of Thermodynamics, a big no-no as far as reality and existence [...]]]></description>
			<content:encoded><![CDATA[<p>This is Sarah Palin&#8217;s new <a href="http://twitter.com/AKGovSarahPalin" target="_blank">Twitter account</a> (any wagers on whether Sarah knows how to post to Twitter?):</p>
<p><a href="http://www.jeffreyclarke.net/blog/wp-content/uploads/2009/04/palin-twitter.jpg" class="lightview" rel="gallery[930]" style="border:1px solid #dedede; display:block;" title="palin-twitter"><img class="alignnone size-full wp-image-931" title="palin-twitter" src="http://www.jeffreyclarke.net/blog/wp-content/uploads/2009/04/palin-twitter.jpg" alt="palin-twitter" width="458" height="98" /></a></p>
<p>Note the text:</p>
<blockquote><p><strong>Bio: </strong>Creating New Energy for Alaskans as governor of the 49th state!</p></blockquote>
<p>As pointed out by <a href="http://gawker.com/5234162/sarah-palin-recklessly-breaks-the-most-important-law-of-the-universe" target="_blank">Gawker</a>, <strong>this blatantly violates the <a href="http://en.wikipedia.org/wiki/First_law_of_thermodynamics" target="_blank">1st Law of Thermodynamics</a></strong>, a big no-no as far as reality and existence in this dimension goes.  Physicists and chemists everywhere should write Palin to inform her that she is toying with forces she couldn&#8217;t possibly understand.</p>
<p>Thanks for this, <a href="http://gawker.com/5234162/sarah-palin-recklessly-breaks-the-most-important-law-of-the-universe" target="_blank">Gawker</a>.  You&#8217;re always so trashy, but sometimes your trash smells oh so sweet.</p>
<p>Interestingly, while I was poking around on Twitter, I found <a href="http://twitter.com/schwarzenegger" target="_blank">California Gov. Schwarzenegger&#8217;s Twitter page</a> (he&#8217;s one of the 7 people that Sarah Palin follows, along with <a href="http://twitter.com/KarlRove" target="_blank">Karl Rove</a> and <a href="http://twitter.com/newtgingrich" target="_blank">Newt Gengrich</a>.  What a classy great group of people.), and noticed that he&#8217;s following almost as many people as follow him (<span class="link-following_page"><span id="following_count" class="stats_count numeric"> </span></span><span class="link-following_page"> <span class="label">Following</span></span> <span class="link-following_page"><span id="following_count" class="stats_count numeric">43,369, Followers: </span></span><span class="link-followers_page"><span id="follower_count" class="stats_count numeric">55,117</span></span>).  That seems a little out of character for a public figure (Newt, for example, follows 92 people, while 214,506 lost souls follow him), but maybe that&#8217;s how Arnold keeps up with all of his many, many, many friends?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffreyclarke.net/blog/2009/04/nerdy-and-anti-palin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unfixable Hack</title>
		<link>http://www.jeffreyclarke.net/blog/2009/04/unfixable-hack/</link>
		<comments>http://www.jeffreyclarke.net/blog/2009/04/unfixable-hack/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 20:27:09 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[General Nerdiness]]></category>
		<category><![CDATA[Nice one!]]></category>
		<category><![CDATA[Hackers]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Unfixable Hack]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.jeffreyclarke.net/blog/?p=911</guid>
		<description><![CDATA[These are words you don&#8217;t necessarily like to hear together if you work in the software industry.  But some clever hackers at the Hack in the Box Security Conference in Dubai just demonstrated a 3K file that is a permanent, unfixable hack to Windows 7. Whoops! Granted, you need physical access to the machine &#8212; [...]]]></description>
			<content:encoded><![CDATA[<p>These are words you don&#8217;t necessarily like to hear together if you work in the software industry.  But some clever hackers at the <strong>Hack in the Box Security Conference</strong> in Dubai just demonstrated a 3K file that is a permanent, unfixable hack to Windows 7.</p>
<p>Whoops!</p>
<p>Granted, you need physical access to the machine &#8212; it can&#8217;t be executed remotely.  So while it&#8217;s useful for an inside job, it wouldn&#8217;t be so useful if someone wanted to, say, crack into a computer at Credite Suisse from their couch.</p>
<p>Still, it&#8217;s bad.  Un-fixable, and totally untraceable.</p>
<p>Check it out: <a href="http://www.electronista.com/articles/09/04/23/windows.7.hack.program/" target="_blank"><strong>Security team shows unfixable Windows 7 hack</strong></a> at <a href="http://www.electronista.com/" target="_blank">Electronista</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffreyclarke.net/blog/2009/04/unfixable-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lacoste</title>
		<link>http://www.jeffreyclarke.net/blog/2009/04/lacoste/</link>
		<comments>http://www.jeffreyclarke.net/blog/2009/04/lacoste/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 15:14:24 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[General Nerdiness]]></category>
		<category><![CDATA[Oooooh!  Pretty!!!]]></category>
		<category><![CDATA[Ads]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Lacoste]]></category>

		<guid isPermaLink="false">http://www.jeffreyclarke.net/blog/?p=892</guid>
		<description><![CDATA[A cool ad campaign using stop-action video mixed with flash menus and pretty people: via FormFiftyFive]]></description>
			<content:encoded><![CDATA[<p>A cool ad campaign using stop-action video mixed with flash menus and pretty people:</p>
<p><img class="alignnone size-full wp-image-893" title="lacoste-red" src="http://www.jeffreyclarke.net/blog/wp-content/uploads/2009/04/lacoste-red.png" alt="lacoste-red" width="500" height="305" /></p>
<p>via <a href="http://www.formfiftyfive.com/?p=5427" target="_blank">FormFiftyFive</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffreyclarke.net/blog/2009/04/lacoste/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Billy Dee!</title>
		<link>http://www.jeffreyclarke.net/blog/2009/04/billy-dee/</link>
		<comments>http://www.jeffreyclarke.net/blog/2009/04/billy-dee/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 18:28:18 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Flicks]]></category>
		<category><![CDATA[General Nerdiness]]></category>
		<category><![CDATA[Batman]]></category>
		<category><![CDATA[Billy Dee Williams]]></category>
		<category><![CDATA[Lando Calrissian]]></category>
		<category><![CDATA[Star Wars]]></category>

		<guid isPermaLink="false">http://www.jeffreyclarke.net/blog/?p=886</guid>
		<description><![CDATA[Isn&#8217;t Lando a handsome devil? I&#8217;d like to sing the praises of this man for just a minute.  Who else could&#8217;ve played Harrison Ford&#8217;s old buddy / president of a cloudy oasis planet / Ewok air support commander Lando Calrissian with quite as much flair as this guy.  Certainly not Mark Hamil&#8230;. What ever happened [...]]]></description>
			<content:encoded><![CDATA[<p>Isn&#8217;t Lando a handsome devil?</p>
<p><img class="alignnone size-full wp-image-887" title="be27c36ca637fab04cd5774dd629cd4089f58cfc_m" src="http://www.jeffreyclarke.net/blog/wp-content/uploads/2009/04/be27c36ca637fab04cd5774dd629cd4089f58cfc_m.jpg" alt="be27c36ca637fab04cd5774dd629cd4089f58cfc_m" width="460" height="448" /></p>
<p>I&#8217;d like to sing the praises of this man for just a minute.  Who else could&#8217;ve played Harrison Ford&#8217;s old buddy / president of a cloudy oasis planet / Ewok air support commander <a href="http://en.wikipedia.org/wiki/Lando_Calrissian" target="_blank">Lando Calrissian</a> with quite as much flair as this guy.  Certainly not Mark Hamil&#8230;.</p>
<p>What ever happened to dear old Billy Dee?  He was great as Harvey Dent in Tim Burton&#8217;s Batman.  Then POOF!  Nothing.</p>
<p>Maybe it was that after playing Harvey Dent in the first one, he thought he&#8217;d get to play Harvey Two-Face in <a href="http://www.imdb.com/title/tt0112462/" target="_blank">&#8216;That Horrible Batman Movie We&#8217;d All Like to Forget</a>.&#8217;  As it turned out, no.  That dubious honor was handed to other three-namer, Tommy Lee Jones, who chewed up the scenery like a termite.</p>
<p>Did that leave him with such a bad taste in his mouth that he left the screen forever?  Did the industry just lose interest and relegate him to various TV and video game appearances (basically, the actor&#8217;s graveyard)?  Or is he, as we speak, staging a comeback?  Only time will tell.</p>
<p>In the meantime, here: let Billy Dee sell you some Colt 45.  It&#8217;ll make him (and you) feel better.</p>
<p><object width="425" height="344" data="http://www.youtube.com/v/0pK5HmuCMBM&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/0pK5HmuCMBM&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /></object></p>
<p>via <a href="http://ffffound.com/image/be27c36ca637fab04cd5774dd629cd4089f58cfc" target="_blank">FFFFound</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffreyclarke.net/blog/2009/04/billy-dee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.713 seconds -->
