<?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>Andrew Havens Blog &#187; web development</title>
	<atom:link href="http://blog.andrewhavens.com/tag/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.andrewhavens.com</link>
	<description></description>
	<lastBuildDate>Mon, 14 Dec 2009 19:41:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>There&#8217;s a new IDE in town!</title>
		<link>http://blog.andrewhavens.com/2009/02/26/theres-a-new-ide-in-town/</link>
		<comments>http://blog.andrewhavens.com/2009/02/26/theres-a-new-ide-in-town/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 09:06:05 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Product Reviews]]></category>
		<category><![CDATA[Espresso]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://blog.andrewhavens.com/?p=51</guid>
		<description><![CDATA[ Now that I&#8217;m getting into Object Oriented PHP programming, and the Zend Framework, I need an editor that can keep up with the complexity of my projects. Integrated Development Environments can make developing websites go so much faster and more smoothly. I&#8217;ve been using Aptana for all of my PHP projects, but it just [...]]]></description>
			<content:encoded><![CDATA[<!-- Generated by Digg Digg plugin, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/
	--><div style='float:right'><table > <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fblog.andrewhavens.com%2F2009%2F02%2F26%2Ftheres-a-new-ide-in-town%2F&amp;t=There%27s+a+new+IDE+in+town%21&amp;s=normal' height='80' width='52' frameborder='0' scrolling='no'></iframe></td></table></div><p>Now that I&#8217;m getting into Object Oriented PHP programming, and the <a title="Zend Framework" href="http://framework.zend.com">Zend Framework</a>, I need an editor that can keep up with the complexity of my projects. Integrated Development Environments can make developing websites go so much faster and more smoothly. I&#8217;ve been using <a title="Aptana" href="http://www.aptana.com/php">Aptana</a> for all of my PHP projects, but it just feels bloated at times. Sometimes I just want a simple text editor and some FTP software. I decided to try <a title="TextMate" href="http://macromates.com/">TextMate</a>, the glorified Mac OS X text editor, and was relatively impressed but really wished there was some sort of integrated FTP functionality. At work, I&#8217;ve been using <a title="Subversion" href="http://subversion.tigris.org/">Subversion</a> to keep files in sync with my co-workers. I really like the &#8220;synchronize&#8221; feature of using Subversion, and really wish I could have some feature like that with FTP.</p>
<p>Well I recently came across an application called <a title="Espresso" href="http://macrabbit.com/espresso/">Espresso</a>. It&#8217;s in public beta right now, but so far, I am very impressed. The software is so simple and intuitive. I don&#8217;t know if you could technically call it an IDE, but it sure covers most of the features I use most of the time. It feels like TextMate, only simpler, with a bunch of integrated features like FTP, code completion, syntax highlighting, outline view, file search, live preview&#8230;the list goes on. My personal favorite is the &#8220;Publish&#8221; feature. This is like a mix of FTP and Subversion, making it possible to &#8220;synchronize&#8221; your local changes with the current state of your remote files. Again, this feature is so intuitive. It made it really easy to see which files I had changed, and allows me upload all my changes in a single click.</p>
<p>Another cool feature, is the ability to add extensions. These extensions are called Sugars (which you add to your Espresso. Clever, eh?). I can&#8217;t wait to see what sorts of Sugars are in the works!</p>
<p>I would definitely recommend checking out Espresso. Especially if you&#8217;re getting started with PHP programming, or want to get better at building websites. This may become a valuable tool that will help you learn faster and get things done easier.</p>
<p><strong>Update:</strong> <a href="http://macrabbit.com/espresso/">Espresso 1.0 has just been released!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andrewhavens.com/2009/02/26/theres-a-new-ide-in-town/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set up Mac OS X 10.5 for Web Development</title>
		<link>http://blog.andrewhavens.com/2009/02/24/how-to-set-up-mac-os-x-105-for-web-development/</link>
		<comments>http://blog.andrewhavens.com/2009/02/24/how-to-set-up-mac-os-x-105-for-web-development/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 09:23:31 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Mac OS X 10.5]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Virtual Hosting]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://blog.andrewhavens.com/?p=47</guid>
		<description><![CDATA[ Q: How do I set up PHP, Apache, MySQL, and Virtual Hosts on my Mac OS X 10.5?
A: That&#8217;s a good question! I&#8217;ve installed Apache, PHP, PEAR, Virtual Hosts, but haven&#8217;t had any luck with getting MySQL up and running. If you figure it out&#8230;please let me know!! Right now I&#8217;m using MAMP. Not [...]]]></description>
			<content:encoded><![CDATA[<!-- Generated by Digg Digg plugin, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/
	--><div style='float:right'><table > <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fblog.andrewhavens.com%2F2009%2F02%2F24%2Fhow-to-set-up-mac-os-x-105-for-web-development%2F&amp;t=How+to+set+up+Mac+OS+X+10.5+for+Web+Development&amp;s=normal' height='80' width='52' frameborder='0' scrolling='no'></iframe></td></table></div><p><strong>Q:</strong> How do I set up PHP, Apache, MySQL, and Virtual Hosts on my Mac OS X 10.5?</p>
<p><strong>A:</strong> That&#8217;s a good question! I&#8217;ve installed Apache, PHP, PEAR, Virtual Hosts, but haven&#8217;t had <em>any</em> luck with getting MySQL up and running. If you figure it out&#8230;please let me know!! Right now I&#8217;m using <a href="http://www.mamp.info">MAMP</a>. Not the ideal working environment, but it&#8217;s getting the job done for now.</p>
<p>This tutorial may be helpful in your journey of <a href="http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/">how to install MySQL on a Mac</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andrewhavens.com/2009/02/24/how-to-set-up-mac-os-x-105-for-web-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up a virtual host on a Mac running MAMP</title>
		<link>http://blog.andrewhavens.com/2008/10/23/setting-up-a-virtual-host-on-a-mac-running-mamp/</link>
		<comments>http://blog.andrewhavens.com/2008/10/23/setting-up-a-virtual-host-on-a-mac-running-mamp/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 08:32:20 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Virtual Hosting]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://blog.amperactive.com/?p=3</guid>
		<description><![CDATA[ Update: I just found out about some great software that makes setting up virtual hosts with MAMP a breeze. You&#8217;d better check out this tutorial before reading mine, then go download VirtualHostX for only $9 dollars.
Or, if you want to do it for free, read on&#8230;
The super-easy, &#8220;How to set up name-based virtual hosts [...]]]></description>
			<content:encoded><![CDATA[<!-- Generated by Digg Digg plugin, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/
	--><div style='float:right'><table > <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fblog.andrewhavens.com%2F2008%2F10%2F23%2Fsetting-up-a-virtual-host-on-a-mac-running-mamp%2F&amp;t=Setting+up+a+virtual+host+on+a+Mac+running+MAMP&amp;s=normal' height='80' width='52' frameborder='0' scrolling='no'></iframe></td></table></div><p><strong>Update: </strong>I just found out about some great software that makes setting up virtual hosts with MAMP a breeze. You&#8217;d better check out <a href="http://seansperte.com/entry/Setting_Up_a_Killer_Local_Web_Development_Environment_on_a_Mac_with_MAMP_an/">this tutorial</a> before reading mine, then go download <a href="http://clickontyler.com/virtualhostx/">VirtualHostX</a> for only $9 dollars.</p>
<p>Or, if you want to do it for free, read on&#8230;</p>
<p><strong>The super-easy, &#8220;How to set up name-based virtual hosts on a Mac, running MAMP&#8221;, Tutorial</strong></p>
<p>When I&#8217;m developing a new website for a client, I like being able to open my browser and test out the site I&#8217;m working on. So lately I&#8217;ve been uploading my &#8220;work in progress&#8221; to a new sub-domain that only I know, such as http://stage.myClient.com or http://alpha.myClient.com. The problem with this approach is that even though I&#8217;m the only one who &#8220;knows&#8221; what the address is, people can still find, and view my unfinished business since it&#8217;s publically accessable. What I really want to do is test my site, in my browser, just as if it was on the web, without anyone being able to see it, but me.</p>
<p>There&#8217;s a really easy way to do this. It&#8217;s called <a title="Virtual Hosting" href="http://en.wikipedia.org/wiki/Virtual_host">Virtual Hosting</a>. Name-based virtual hosting will allow us to associate http://stage.myClient.com with a directory on our computer, rather than going out to the internet. The great thing about this is that we can name our virtual host whatever we want. We could call it http://stage.myClient.com or http://local.myClients.clientOne. We could even name it http://foobar if we felt so inclined. http://localhost is an example of a virtual host. Go ahead and type that into your address bar. I&#8217;m not sure what you&#8217;ll get back, but it&#8217;s probably already set up and redirecting to a folder on your computer somewhere.</p>
<p>If you&#8217;ve already downloaded and installed <a title="MAMP" href="http://www.mamp.info/en/mamp.html">MAMP</a>, good for you! If you haven&#8217;t, you really should. If you&#8217;re developing websites in <a title="PHP" href="http://php.net">PHP</a>, and you want to test your site without having to upload it to your server, you need to install PHP on your computer. The same goes with using a <a title="database" href="http://www.mysql.com/">database</a>. Setting these up individually can be a pain! MAMP is nice because it installs everything you need, you can turn it on and off, and it makes it really easy to start developing websites locally without having to set anything up. This tutorial is about setting up a virtual host, on a Mac, running MAMP, so I&#8217;m going to assume you&#8217;ve already got MAMP set up.</p>
<p>So one of the things you might have noticed about MAMP is that it sets its &#8220;localhost&#8221; directory to /Applications/MAMP/htdocs&#8230;which is fine, except I like to keep my sites in my /Users/andrew/Sites directory. I mean&#8230;that&#8217;s what it&#8217;s there for.</p>
<p style="text-align: center;"><a href="http://blog.andrewhavens.com/wp-content/uploads/2008/10/picture-21.png"><img class="size-full wp-image-14 aligncenter" title="screenshot of a Mac users' home directory" src="http://blog.andrewhavens.com/wp-content/uploads/2008/10/picture-21.png" alt="" width="334" height="121" /></a></p>
<p>So if you want to set yours up that way&#8230;</p>
<ol>
<li>Start MAMP.</li>
<li>Click &#8220;Preferences&#8230;&#8221;</li>
<li>Click the &#8220;Apache&#8221; tab</li>
<li>Browse to the directory of your choice</li>
</ol>
<p>Now going to http://localhost should resolve to the directory that you chose. Now, let&#8217;s set up our very own virtual host!</p>
<ol>
<li>Open Terminal by going to /Applications/Utilities/Terminal</li>
<li>Type: sudo pico /etc/hosts</li>
<li>Type your Administrator password<a href="http://blog.andrewhavens.com/wp-content/uploads/2008/10/picture-31.png"><img class="aligncenter size-full wp-image-13" title="Editing /etc/hosts in Pico" src="http://blog.andrewhavens.com/wp-content/uploads/2008/10/picture-31.png" alt="" width="381" height="243" /></a></li>
<li>Edit your hosts file to look like mine, with exception to your chosen virtual host name. I&#8217;ve named my virtual host stage.myClient.com</li>
<li>Press Control+O, then Return to save the changes</li>
<li>Press Control+X to exit Pico</li>
</ol>
<p>One last step:</p>
<ol>
<li>Open /Applications/MAMP/conf/apache/httpd.conf (TextEdit is fine)</li>
<li>Scroll to the very bottom, this is where we declare our virtual host.<a href="http://blog.andrewhavens.com/wp-content/uploads/2008/10/picture-4.png"><img class="aligncenter size-full wp-image-9" title="httpd.conf screenshot" src="http://blog.andrewhavens.com/wp-content/uploads/2008/10/picture-4.png" alt="" width="384" height="260" /></a></li>
<li>Edit your httpd.conf file to look like mine. The server name should be the name of your virtual host that you declared in the previous file, and your document root should be the directory you want your virtual host to pointing to.</li>
</ol>
<p>We&#8217;re done! Make sure you have MAMP running when you try it out for yourself.</p>
<p>If you found this tutorial helpful, or if you want to tell me how <span style="text-decoration: line-through;">much it sucks</span> to make it even better, please leave a comment!</p>
<p>Thanks, for reading!</p>
<p>&#8211;Andrew</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andrewhavens.com/2008/10/23/setting-up-a-virtual-host-on-a-mac-running-mamp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
