<?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>Ingredients » Nick's Notepad &#187; General</title>
	<atom:link href="http://www.ingredients.com.au/nick/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ingredients.com.au/nick</link>
	<description>Nick's Notepad</description>
	<lastBuildDate>Fri, 18 Dec 2009 06:05:44 +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>ISP Filtering isn&#8217;t so bad, apparently.</title>
		<link>http://www.ingredients.com.au/nick/2009/12/18/isp-filtering-isnt-so-bad-apparently/</link>
		<comments>http://www.ingredients.com.au/nick/2009/12/18/isp-filtering-isnt-so-bad-apparently/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 06:05:44 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ingredients.com.au/nick/?p=99</guid>
		<description><![CDATA[I generally like to look for the positives so following on from my last post that may have come across as perhaps a little negative it&#8217;s great to find at least one positive to ISP filtering: “This is also a unique opportunity because no other government in the world has provided financial incentives to ISPs [...]]]></description>
			<content:encoded><![CDATA[<p>I generally like to look for the positives so following on from my <a href="http://www.ingredients.com.au/nick/2009/12/18/our-views-on-mandatory-isp-filtering/">last post</a> that may have come across as perhaps a little negative it&#8217;s great to find at least one positive to ISP filtering:</p>

<blockquote><p>“This is also a unique opportunity because no other government in the world has provided financial incentives to ISPs to implement a service which can be so readily sold on to customers.</p>
 
<p>We envisage that customers will be willing to pay an additional $5 per month on top of their broadband services to have that higher level of filtering,” Mancer said</p>

<p>- <a href="http://www.watchdoginternational.com.au/index.php/press-releases/51-watchdog-press-releases/134-watchdog-launches-hosted-filtering-services-in-australia">Watchdog Launches Hosted Filtering Services in Australia</a></p></blockquote>

<p>Since this comes from the company that <strong>&#8220;supplied filtering systems to three of the nine ISPs involved in the recent Australia government filtering trials at the Enex Test Laboratory&#8221;</strong> they&#8217;re in an good position to put a positive spin on the whole thing.</p>

<p>I&#8217;m a little concerned about what paying an extra $60 a year for a &#8220;higher level of filtering&#8221; implies about the proposed mandatory ISP filtering scheme? Is the cyber safety of our children being fobbed off with some budget version of their filtering system?</p>

<p>But hey, this is supposed to be a positive post and it&#8217;s good to know there is an upgrade plan should the proposed plan be less effective than expected!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ingredients.com.au/nick/2009/12/18/isp-filtering-isnt-so-bad-apparently/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Our views on Mandatory ISP Filtering</title>
		<link>http://www.ingredients.com.au/nick/2009/12/18/our-views-on-mandatory-isp-filtering/</link>
		<comments>http://www.ingredients.com.au/nick/2009/12/18/our-views-on-mandatory-isp-filtering/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 04:44:00 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ingredients.com.au/nick/?p=89</guid>
		<description><![CDATA[Taking the lead from Google&#8217;s post which outlines their views on the Australian Government&#8217;s plans to implement mandatory ISP filtering we feel it is important that all Australian based internet users also indicate their views. Here, then, is the official Ingredients view on the following plan to: Provide a mandatory ‘clean feed’ internet service for [...]]]></description>
			<content:encoded><![CDATA[<p>Taking the lead from <a title="Google Australia Blog" href="http://google-au.blogspot.com/2009/12/our-views-on-mandatory-isp-filtering.html">Google&#8217;s post</a> which outlines their views on the Australian Government&#8217;s plans to implement mandatory ISP filtering we feel it is important that all Australian based internet users also indicate their views. Here, then, is the official Ingredients view on the following plan to:</p>

<blockquote>
<p>Provide a mandatory ‘clean feed’ internet service for all homes, schools and public computers that are used by Australian children. Internet Service Providers (ISPs) will filter out content that is identified as prohibited by the Australian Communications and Media Authority (ACMA). The ACMA ‘blacklist’ will be made more comprehensive to ensure that children are protected from harmful and inappropriate online material</p>
<p>- <a title="Some pre-election document presumably slipped under a pile of others" href="http://www.alp.org.au/download/now/labors_plan_for_cyber_safety.pdf">Labor&#8217;s Plan for Cyber-safety</a></p>
</blockquote>

<h3 style="text-align: center;">It&#8217;s rubbish.</h3>

<p>If you think we&#8217;re being flippant, you&#8217;re correct, it&#8217;s intentional. We could spend ages going through the details of why it&#8217;s rubbish, <a title="The comments say all it for us" href="http://www.katelundy.com.au/2009/12/17/my-thoughts-on-the-filter/">but do we need to?</a>. Why it makes us very disappointed that what appeared to be a very technologically forward looking Government is now being looked on internationally as naive and backward thinking, <a title="One of the many foreign news articles saying it for us" href="http://www.foxnews.com/scitech/2009/12/15/like-china-iran-australia-filter-internet/">but do we need to?</a> Why it may even have the opposite effect by creating a very false sense of cyber security, <a title="Save the children have already thought about it for us" href="http://www.computerworld.com.au/article/330087/child_groups_slam_conroy_isp_filtering_plans/?fp=16&amp;fpid=1">but do we need to?</a>.</p>

<p>What we do need to do though, is add our voice to the many that already think it&#8217;s rubbish <a title="Lifehacker article letting you know what you can do" href="http://www.lifehacker.com.au/2009/12/how-to-protest-against-internet-censorship-laws/">and you can too</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ingredients.com.au/nick/2009/12/18/our-views-on-mandatory-isp-filtering/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How loyal is your loyalty club?</title>
		<link>http://www.ingredients.com.au/nick/2009/08/27/how-loyal-is-your-loyalty-club/</link>
		<comments>http://www.ingredients.com.au/nick/2009/08/27/how-loyal-is-your-loyalty-club/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 05:40:33 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.ingredients.com.au/nick/?p=71</guid>
		<description><![CDATA[When developing web applications there is always this underlying paranoia that one day, you&#8217;ll be the one responsible for the hole that allowed a hack into your nation&#8217;s electricity grid control station, or other such similar scaled disaster. This story, while not quite as exciting, is one of those mildly entertaining and unnerving examples of [...]]]></description>
			<content:encoded><![CDATA[<p>When developing web applications there is always this underlying paranoia that one day, you&#8217;ll be the one responsible for the hole that allowed a hack into your nation&#8217;s electricity grid control station, or other such similar scaled disaster. This story, while not quite as exciting, is one of those mildly entertaining and unnerving examples of how even the &#8220;big guys&#8221; can get it wrong.</p>

<p>Today I received an incorrectly addressed email entitled &#8220;<strong>Welcome to XYZ Club!</strong>&#8221; from a loyalty club, which I&#8217;ve thoughtfully renamed XYZ club, of a group of very large (hence my thoughtful renaming) hotel chains.</p>

<p>As it&#8217;s not uncommon for us to receive incorrectly addressed @ingredients.com.au mail, I started to prepare my &#8220;You&#8217;ve sent this to the wrong address&#8221; template to reply to the sender. Unfortunately, the sender was &#8220;XYZ Club Loyalty Program &lt;noreply@xyz-club.com&gt;&#8221;. The sole job of any no-reply email account is to send whatever mail you send to them, back, reminding you not to reply to them!</p>

<p>My next thought was to check the email footer for any contact information. No, there was no reply information but it did helpfully remind me of the following:</p>

<blockquote>This e-mail, any attachments and the information contained therein (&#8220;this message&#8221;) are confidential and intented solely for the use of the addressee(s). If you have received this message by error please send it back to the sender and delete it.</blockquote>

<p>Perfect, except, of course, the sender was a no-reply email!</p>

<p>Thinking perhaps their site would have a contact form I could use to report their mistake, I clicked one of the links in the email and arrived at their site to find I have been &#8220;signed in&#8221; ready to start Step 1 of the &#8220;Choose your XYZ Club program&#8221;. Clicking around with a little bit of surprised curiosity (ok, yes I was also being nosy, who wouldn&#8217;t be?) and trying to find a way to contact them, I find that I could probably have set the password for this person:</p>

<blockquote>This is your first connection. Please enter a new password in order to complete your membership application and gain access to your account.</blockquote>

<p>This only presented two fields; a password field and a confirm password field. Nowhere asking me for any information that was not in the email, eg a loyalty card number that only the real person could have had.</p>

<p>Searching for a simple contact form to report this issue proved fruitless as going via the &#8220;Customer Support&#8221; navigation, then via the &#8220;Report an issue&#8221; link, brought me back to Step 1 of the &#8220;Choose your XYZ Club program&#8221; page.</p>

<p>The only way to report the issue was to finally call them. I&#8217;m probably one of the weird few that would actually go this length, but I was now curious to see if their phone support was any better. Thankfully, it was and this particular person has now had their account closed without anyone pulling any <a href="http://en.wikipedia.org/wiki/Leet">1337</a> hotel loyalty club hacking skills.</p>

<p>So why am I posting this? Well to gloat of course and have it on hand for the day when the electricity gets shut down so I can point and say &#8220;I&#8217;m not the only one!&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ingredients.com.au/nick/2009/08/27/how-loyal-is-your-loyalty-club/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Officially a lazy bugger blogger</title>
		<link>http://www.ingredients.com.au/nick/2008/06/23/officially-a-lazy-blogger/</link>
		<comments>http://www.ingredients.com.au/nick/2008/06/23/officially-a-lazy-blogger/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 05:53:54 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2008/06/23/officially-a-lazy-blogger/</guid>
		<description><![CDATA[Inspired by The Local&#8217;s accusations of abandonment, I realised I&#8217;d not mentioned one of my new hangouts. I&#8217;ve been trying to compete with Rob Allen on the blog for our almost-in-production book Zend Framework in Action. As always he&#8217;s way ahead of me just as he is on the Author&#8217;s forum! So if you&#8217;re really [...]]]></description>
			<content:encoded><![CDATA[<p>Inspired by <a href="http://blogs.com.au/thelocal/2008/06/02/dont-abandon-your-business-blog/" title="Don't abandon your business blog post at The Local">The Local&#8217;s</a> accusations of abandonment, I realised I&#8217;d not mentioned one of my new hangouts. I&#8217;ve been trying to compete with <a href="http://www.akrabat.com" title="Rob Allen's blog">Rob Allen</a> on <a href="http://www.zendframeworkinaction.com/" title="Zend Framework in Action blog">the blog</a> for our almost-in-production book <a href="http://www.manning.com/allen/" title="Zend Framework in Action">Zend Framework in Action</a>. As always he&#8217;s way ahead of me just as he is on the <a href="http://www.manning-sandbox.com/forum.jspa?forumID=329" title="Author's forum for Zend Framework in Action">Author&#8217;s forum</a>!</p>

<p>So if you&#8217;re really missing what I have to say or need to tell me what you have to say, you can catch me in any of those places. Once the book comes out I&#8217;m sure I&#8217;ll have more time for this blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ingredients.com.au/nick/2008/06/23/officially-a-lazy-blogger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Feedburning Feeds</title>
		<link>http://www.ingredients.com.au/nick/2006/11/28/feedburning-feeds/</link>
		<comments>http://www.ingredients.com.au/nick/2006/11/28/feedburning-feeds/#comments</comments>
		<pubDate>Tue, 28 Nov 2006 00:04:43 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/11/28/feedburning-feeds/</guid>
		<description><![CDATA[Just a quick note to mention that I&#8217;m testing passing the feeds from this site through FeedBurner, partly to get an idea of how the feed is being used and partly because it&#8217;s my job to know about all these internet technology thingies. Anyway, if anyone has any issues with the feed please let me [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick note to mention that I&#8217;m testing passing the feeds from this site through <a href="http://www.feedburner.com">FeedBurner</a>, partly to get an idea of how the feed is being used and partly because it&#8217;s my job to know about all these internet technology thingies.</p>

<p>Anyway, if anyone has any issues with the feed please <a href="/nick/contact/">let me know</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ingredients.com.au/nick/2006/11/28/feedburning-feeds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Netinfo Manager to add hosts</title>
		<link>http://www.ingredients.com.au/nick/2006/11/23/using-netinfo-manager-to-add-hosts/</link>
		<comments>http://www.ingredients.com.au/nick/2006/11/23/using-netinfo-manager-to-add-hosts/#comments</comments>
		<pubDate>Wed, 22 Nov 2006 23:04:11 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/11/23/using-netinfo-manager-to-add-hosts/</guid>
		<description><![CDATA[As an addition to my Networked Virtual Hosting Party on Mac OS X article, comments in the How To Setup Development Domains On OS X article on The Apple Blog pointed to something I&#8217;d not tried before; using NetInfo Manager to add hosts to local hosts file. An official Apple article; How to Add Hosts [...]]]></description>
			<content:encoded><![CDATA[<p>As an addition to my <a href="/nick/2006/06/28/a-networked-virtual-hosting-party-on-mac-os-x/">Networked Virtual Hosting Party on Mac OS X</a> article, comments in the <a href="http://theappleblog.com/2006/11/21/how-to-setup-development-domains-on-os-x/trackback/">How To Setup Development Domains On OS X</a> article on The Apple Blog pointed to something I&#8217;d not tried before; using NetInfo Manager to add hosts to local hosts file.</p>

<p>An official Apple article; <a href="http://docs.info.apple.com/article.html?artnum=88158">How to Add Hosts to Local Hosts File</a> clearly outlines the steps. It&#8217;s a little confusing as the instructions for Mac OS X 10.2 or later are to edit the /private/etc/hosts file (the same file as /etc/hosts) directly. However, I just tried using NetInfo Manager to add a host on one of the machines on our network and it worked fine despite it running OS X 10.4.8.</p>

<p>A minor detail to mention is I that the niload command was more like this for me:</p>

<pre><code>sudo niload hosts . &lt; /etc/hosts
</code></pre>

<p>Really there is not a huge difference between editing the /etc/hosts file directly or using NetInfo Manager and I&#8217;m not convinced the latter really makes it that much easier. Either way, it&#8217;s useful to know about alternatives.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ingredients.com.au/nick/2006/11/23/using-netinfo-manager-to-add-hosts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Seven of Diamonds</title>
		<link>http://www.ingredients.com.au/nick/2006/11/04/seven-of-diamonds/</link>
		<comments>http://www.ingredients.com.au/nick/2006/11/04/seven-of-diamonds/#comments</comments>
		<pubDate>Sat, 04 Nov 2006 09:14:01 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/11/04/seven-of-diamonds/</guid>
		<description><![CDATA[Lying in the dark, lit only by the glare of my MacBook I suddenly had one of those &#8220;Woah!!&#8221;, shoot-out-of-skin experiences, as, flicking through Cal Evans PHP Community Playing Cards, I suddenly came face-to-face with this one. It seems these cards were an actual 3D freebie at the [Zend/PHP Conference and Expo](](http://zendcon.com/ &#8220;Zend/PHP Conference and [...]]]></description>
			<content:encoded><![CDATA[<p>Lying in the dark, lit only by the glare of my MacBook I suddenly had one of those <strong>&#8220;Woah!!&#8221;</strong>, shoot-out-of-skin experiences, as, flicking through Cal Evans <a href="http://www.flickr.com/photos/calevans/sets/72157594355906012/" title="PHP Community Playing Cards pictures on Flickr">PHP Community Playing Cards</a>, I suddenly came face-to-face with <a href="http://www.flickr.com/photos/calevans/286000674/in/set-72157594355906012/" title="Me">this one</a>.</p>

<p>It seems these cards were an actual 3D freebie at the [Zend/PHP Conference and Expo](](http://zendcon.com/ &#8220;Zend/PHP Conference and Expo&#8221;) which means that I was there in an odd, fakey kind of way.</p>

<p>Apparently only those at the conference or <em>featured on the cards</em> got a copy so &#8230;erm, let&#8217;s just say I was playing blackjack for M&amp;M&#8217;s with the kids the other day and it would have been great to see the proud look on their little faces every time the seven of diamonds was pulled out &#8230;ahem, cough, hint&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ingredients.com.au/nick/2006/11/04/seven-of-diamonds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Collaboration Markup</title>
		<link>http://www.ingredients.com.au/nick/2006/07/06/collaboration-markup/</link>
		<comments>http://www.ingredients.com.au/nick/2006/07/06/collaboration-markup/#comments</comments>
		<pubDate>Thu, 06 Jul 2006 12:51:16 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/07/06/collaboration-markup/</guid>
		<description><![CDATA[I work in plain text a lot, from using Markdown or more specifically PHP Markdown on this WordPress setup and elsewhere, as well as doing HTML markup and programming PHP. It is therefore not surprising that this article on Collaboration Made Simple with Bracket Notation caught my eye (linked via Lifehacker). It&#8217;s a simple but [...]]]></description>
			<content:encoded><![CDATA[<p>I work in plain text a lot, from using <a href="http://daringfireball.net/projects/markdown/" title="a text-to-HTML conversion tool for web writers">Markdown</a> or more specifically <a href="http://www.michelf.com/projects/php-markdown/" title="Michel Fortin's PHP version of Markdown">PHP Markdown</a> on this WordPress setup and elsewhere, as well as doing HTML markup and programming PHP. It is therefore not surprising that this article on <a href="http://www.humanized.com/weblog/2006/06/30/collaboration_made_simple_with_bracket_notation/" title="Collaboration Made Simple with Bracket Notation">Collaboration Made Simple with Bracket Notation</a> caught my eye (linked via <a href="http://lifehacker.com/software/top/simple-collaboration-markup-185221.php">Lifehacker</a>).</p>

<p>It&#8217;s a simple but clever idea that eschews a specific software solution for collaborative content editing in favour of notations in plain text. I don&#8217;t want to steal anyone away from reading the article but I did want to note a simple way of remembering their idea&#8230;</p>

<pre><code>[delete][replace with][comment]
</code></pre>

<p>&#8230;so if we take the text&#8230;</p>

<pre><code>The Bat in the Hat
</code></pre>

<p>&#8230;and apply some collaborative revision markup&#8230;</p>

<pre><code>The [Bat][Cat][less sinister?!] in the Hat
</code></pre>

<p>&#8230;it would be revised to&#8230;</p>

<pre><code>The Cat in the Hat
</code></pre>

<p>It&#8217;s a useful trick to to remember e.g., for passing edits around in text format via IM or Email. Whether I use it or not is another thing but I certainly like the inventive use of simple tools.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ingredients.com.au/nick/2006/07/06/collaboration-markup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Networked Virtual Hosting Party on Mac OS X</title>
		<link>http://www.ingredients.com.au/nick/2006/06/28/a-networked-virtual-hosting-party-on-mac-os-x/</link>
		<comments>http://www.ingredients.com.au/nick/2006/06/28/a-networked-virtual-hosting-party-on-mac-os-x/#comments</comments>
		<pubDate>Wed, 28 Jun 2006 06:40:52 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/06/28/a-networked-virtual-hosting-party-on-mac-os-x/</guid>
		<description><![CDATA[There are plenty of articles on setting up virtual hosts on Mac OS X but I&#8217;d not found a simple one that showed you how to set up named virtual hosting that could be read across your LAN. The aim for me is to be able to type in e.g., http://myparty/, in any browser on [...]]]></description>
			<content:encoded><![CDATA[<p>There are plenty of articles on setting up virtual hosts on Mac OS X but I&#8217;d not found a simple one that showed you how to set up named virtual hosting that could be read across your LAN. The aim for me is to be able to type in e.g., http://myparty/, in any browser on our small local network and get to the locally hosted site.</p>

<p>My requirements are pretty minimal, needing only to have one or two other Macs running OS X (Tiger) access the development server. I&#8217;m not going to go into too much detail, partly as I&#8217;m too lazy, but also as your setup and needs will be different to mine anyhow. Instead I&#8217;ll just give a general run through and point to further reading.</p>

<h3>Decide where we&#8217;re going to host the party</h3>

<p>The first thing we need to establish is the main server which requires that that server have a static IP address. In my case this involved going to System Preferences > Network > TCP/IP and setting Configure IPv4 to &#8220;Using DHCP with manual address&#8221;. In that same dialog I then set an IP address of 192.168.1.100 and clicked &#8220;Apply Now&#8221;. That now means that this machine has a consistent address that others on the network will refer to.</p>

<h3>Tell everyone where the party is</h3>

<p>When the other OS X machines on the network type http://myparty/ in their browsers the first thing their machines do is check in the file /etc/hosts to see if there&#8217;s an IP address that matches &#8220;myparty&#8221;. If there isn&#8217;t things won&#8217;t go very far. So if you take a look at my one&#8230;</p>

<pre><code>127.0.0.1   localhost
127.0.0.1   myparty
255.255.255.255 broadcasthost
::1             localhost
</code></pre>

<p>&#8230;you&#8217;ll see that http://myparty/ maps to my localhost IP address 127.0.0.1 which is fine as my machine is the host. In order that the other machines know where to go for &#8220;myparty&#8221; we have to edit their /etc/host files to send requests to the static IP address I set earlier:</p>

<pre><code>127.0.0.1   localhost
192.168.1.100   myparty
255.255.255.255 broadcasthost
::1             localhost
</code></pre>

<h3>Set up the virtual hosts</h3>

<p>Now that everyone knows where myparty is being hosted we need to prepare. First you need to edit the Apache web server configuration file httpd.conf which by default lives here /private/etc/httpd/httpd.conf. I&#8217;ve installed Apache2 in /usr/local/ which is the more generally expected place for it to be and since this is my notepad I&#8217;m going to go with that. So first I need to open httpd.conf as the all powerful root user so I need to type&#8230;</p>

<pre><code>$ sudo vim /usr/local/apache2/conf/httpd.conf
</code></pre>

<p>&#8230;whereas you could go&#8230;</p>

<pre><code>$ open -a TextWrangler.app /private/etc/httpd/httpd.conf
</code></pre>

<p>&#8230;or whatever your personal setup/preference is. Once open you might like to use this little tip I picked up of having your specific settings in a separate file so e.g. at the end of my httpd.conf I have the following&#8230;</p>

<pre><code>include /Users/nicklo/Sites/apacheconf/users
</code></pre>

<p>&#8230;that points to a directory which contains the file nicklo.conf. Inside that file are my virtual host settings. Having those settings separate from the main httpd.conf makes them more easy to backup along with all my other projects. It also potentially keeps them out of harms way in case a Software Update decides it&#8217;s time to fiddle with your httpd.conf file.</p>

<p>In keeping with the example my nicklo.conf could then have the following&#8230;</p>

<pre><code>NameVirtualHost *:80

&lt;Directory "/Users/nicklo/Sites"&gt;
    Options Indexes MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
&lt;/Directory&gt;

&lt;VirtualHost *:80&gt;
    ServerName 127.0.0.1
    DocumentRoot /Users/nicklo/Sites
&lt;/VirtualHost&gt;

&lt;VirtualHost *:80&gt;
    ServerName myparty 
    DocumentRoot /Users/nicklo/Sites/myparty
&lt;/VirtualHost&gt;
</code></pre>

<p>You&#8217;ll notice the settings specific to &#8220;myparty&#8221; are the last ones. These basically say if you get any requests for &#8220;myparty&#8221; on any IP address (* wildcard) via port 80 then send them through to /Users/nicklo/Sites/myparty.</p>

<h3>Party on!</h3>

<p>All that&#8217;s left now is restart Apache via System Preferences > Sharing > Services > Personal Web Sharing or&#8230;</p>

<pre><code>$ sudo apachectl graceful
</code></pre>

<p>&#8230;which is actually better as it will at least tell you if there are any issues rather than just sit there.</p>

<p>Actually, we we still have to build the myparty website/web application in /Users/nicklo/Sites/myparty/public_html but hey, that&#8217;s the easy part right?!</p>

<p>Now in an even more perfect world I would be able to tell you how to set up a proper DNS Server on the host machine, that would replace the somewhat hacky need for individually configured /etc/host files. However, right now I&#8217;m just too stupid and honestly, a bit scared, to even attempt that. If anyone can give me a simple and if possible metaphorical run through I&#8217;d be very interested.</p>

<h3>Further Reading</h3>

<p><a href="http://www.patrickgibson.com/news/andsuch/000091.php">Virtual Hosting on Mac OS X</a> I need to give credit to the comments by &#8220;Mats&#8221; on that page for much of my setup above.</p>

<p><a href="http://web-graphics.com/mtarchive/001315.php">Staging websites on Mac OS X</a></p>

<p><a href="http://www.mezzoblue.com/archives/2004/08/05/virtual_host/">Virtual Hosts for Dummies</a></p>

<p><a href="http://www.macdevcenter.com/pub/a/mac/2003/05/16/web_files.html">Location, Location, Location: Tips for Storing Web Site Files</a></p>

<p><a href="http://httpd.apache.org/docs/2.2/vhosts/">Apache Virtual Host documentation</a></p>

<p><a href="http://httpd.apache.org/docs/2.2/vhosts/examples.html">VirtualHost Examples</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ingredients.com.au/nick/2006/06/28/a-networked-virtual-hosting-party-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Natural Sequence Farming</title>
		<link>http://www.ingredients.com.au/nick/2006/05/22/natural-sequence-farming/</link>
		<comments>http://www.ingredients.com.au/nick/2006/05/22/natural-sequence-farming/#comments</comments>
		<pubDate>Mon, 22 May 2006 06:09:29 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/05/22/natural-sequence-farming/</guid>
		<description><![CDATA[Growing up in Scotland and Northern England surrounded by farms gave me a decent respect for the work involved in farming. I still remember desperately pulling on my &#8220;wellington&#8221; (gum) boots and running to catch up with the local shepherd&#8217;s tractor as he passed by our house. Under the advice of the very same shepherd, [...]]]></description>
			<content:encoded><![CDATA[<p>Growing up in Scotland and Northern England surrounded by farms gave me a decent respect for the work  involved in farming. I still remember desperately pulling on my &#8220;wellington&#8221; (gum) boots and running to catch up with the local shepherd&#8217;s tractor as he passed by our house.</p>

<p>Under the advice of the very same shepherd, I did not to go into farming, however, I&#8217;m still drawn by stories like this ABC episode of <a href="http://www.abc.net.au/austory/content/2005/s1383562.htm" title="Peter Andrews on Australian Story">Australian Story on Peter Andrews</a>:</p>

<blockquote>
  <p>Peter Andrews is a racehorse breeder and farmer credited with remarkable success in converting degraded, salt-ravaged properties into fertile, drought-resistant pastures. His methods are so at odds with conventional scientific wisdom, that for 30 years he has been dismissed and ridiculed as a madman. He has faced bankruptcy and family break-up.</p>
</blockquote>

<p>The programme and the <a href="http://www.nsfarming.com" title="Natural Sequence Farming">Natural Sequence Farming website</a> are a good read for anyone interested in the uniqueness of the Australian landscape and the ways in which traditional European agricultural methods have worked against it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ingredients.com.au/nick/2006/05/22/natural-sequence-farming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
