<?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>Lunatic Notes &#187; Webdev</title>
	<atom:link href="http://lunatic.web.id/topic/webdev/feed/" rel="self" type="application/rss+xml" />
	<link>http://lunatic.web.id</link>
	<description>Rants about tech and design</description>
	<lastBuildDate>Fri, 22 May 2009 11:28:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Native Web Development (apache, PHP and mySQL) on Mac OSX Leopard</title>
		<link>http://lunatic.web.id/webdev/native-web-development-apache-php-and-mysql-on-mac-osx-leopard/</link>
		<comments>http://lunatic.web.id/webdev/native-web-development-apache-php-and-mysql-on-mac-osx-leopard/#comments</comments>
		<pubDate>Fri, 22 May 2009 11:27:12 +0000</pubDate>
		<dc:creator>anima</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Webdev]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://lunatic.web.id/?p=175</guid>
		<description><![CDATA[If you're a web developer and you're on a Mac, you're probably using MAMP or XAMPP for your all in one apache + PHP + mySQL need. But did you know that your Mac system is already a web server by default installation? Utilizing the native web server, you can save yourself from downloading stuffs you don't need.

It is not as complicated as you think. Given that Macs are descendants of *nix system, it already has apache2 and PHP module built in, we only need to activate those two and install mySQL. Here's how.]]></description>
			<content:encoded><![CDATA[<p><a href="http://lunatic.web.id/wp-content/uploads/2009/05/webdev1.png"><img class="alignleft size-full wp-image-196 hidden" title="Webdev" src="http://lunatic.web.id/wp-content/uploads/2009/05/webdev1.png" alt="Webdev" width="200" height="200" /></a>If you&#8217;re a web developer and you&#8217;re on a Mac, you&#8217;re probably using <a href="http://mamp.info/en/index.html">MAMP</a> or <a href="http://www.apachefriends.org/en/xampp-macosx.html">XAMPP</a> for your all in one apache + PHP + mySQL need. But did you know that your Mac system is already a web server by default installation? Utilizing the native web server, you can save yourself from downloading stuffs you don&#8217;t need.</p>
<p>It is not as complicated as you think. Given that Macs are descendants of *nix system, it already has apache2 and PHP module built in, we only need to activate those two and install mySQL. Here&#8217;s how.</p>
<h4>Activating apache web server</h4>
<p>Piece of cake, you only need to go to System Preferences and then to the Sharing prefpane.</p>
<div id="attachment_177" class="wp-caption alignnone" style="width: 650px"><a href="http://lunatic.web.id/wp-content/uploads/2009/05/picture-13.png"><img class="size-medium wp-image-177 " title="System Preferences" src="http://lunatic.web.id/wp-content/uploads/2009/05/picture-13-640x547.png" alt="System Preferences" width="640" height="547" /></a><p class="wp-caption-text">System Preferences</p></div>
<p>Inside the Sharing prefpane check the web sharing on the left hand side. Simple as that and you&#8217;re done.</p>
<div id="attachment_178" class="wp-caption alignnone" style="width: 650px"><a href="http://lunatic.web.id/wp-content/uploads/2009/05/picture-2.png"><img class="size-medium wp-image-178" title="Check web sharing in the pref pane" src="http://lunatic.web.id/wp-content/uploads/2009/05/picture-2-640x536.png" alt="Check web sharing in the pref pane" width="640" height="536" /></a><p class="wp-caption-text">Check web sharing in the pref pane</p></div>
<p>You know where you have the folder Sites in your home folder? If you put anything there, it will be accessible via <code>http://localhost/~yourusername/</code>. Cute anot?</p>
<h4>Activating the PHP module</h4>
<p>You will need to type things into terminal this time. This is also a piece of cake, don&#8217;t be afraid, the Terminal is our friend :)<br />
To run terminal you can spotlight it or go to Applications / Utilities using Finder.</p>
<div id="attachment_179" class="wp-caption alignnone" style="width: 650px"><a href="http://lunatic.web.id/wp-content/uploads/2009/05/picture-3.png"><img class="size-medium wp-image-179" title="Terminall app via Finder" src="http://lunatic.web.id/wp-content/uploads/2009/05/picture-3-640x278.png" alt="Terminall app via Finder" width="640" height="278" /></a><p class="wp-caption-text">Terminall app via Finder</p></div>
<p>Here&#8217;s what you have to do in Terminal.</p>
<ol>
<li>First go to <code>/etc/apache2/</code> directory by typing <code>cd /etc/apache2/</code> &lt;return&gt;. If it returns an error check your input, see if you&#8217;ve typed it right.
<div id="attachment_180" class="wp-caption alignnone" style="width: 595px"><a href="http://lunatic.web.id/wp-content/uploads/2009/05/picture-4.png"><img class="size-full wp-image-180" title="Opening the httpd.conf in terminal" src="http://lunatic.web.id/wp-content/uploads/2009/05/picture-4.png" alt="Opening the httpd.conf in terminal" width="585" height="447" /></a><p class="wp-caption-text">Opening the httpd.conf in terminal</p></div></li>
<li>Next on, let&#8217;s open the apache configuration file: <code>httpd.conf</code> as root. We do this by typing <code>sudo nano httpd.conf</code>. You will be prompted to enter your login password. Upon doing so, this screen will show. This is <em>nano</em>, Terminal&#8217;s text editor.
<p><div id="attachment_181" class="wp-caption alignnone" style="width: 595px"><a href="http://lunatic.web.id/wp-content/uploads/2009/05/picture-5.png"><img class="size-full wp-image-181" title="Editing httpd.conf using nano on Terminal" src="http://lunatic.web.id/wp-content/uploads/2009/05/picture-5.png" alt="Editing httpd.conf using nano on Terminal" width="585" height="447" /></a><p class="wp-caption-text">Editing httpd.conf using nano on Terminal</p></div></li>
<li>Now we&#8217;re going to activate the PHP5 module. If you take a look at the terminal screen, you&#8217;ll see a list of commands. We&#8217;ll do a <code>^W</code> aka <em>Where Is</em> to find the line that says <code>php5</code>. Press <code>Ctrl+W</code>, type in <code>php5</code> &lt;return&gt;</li>
<li>Take a good look at the terminal screen, you will see this line:<br />
<code>#LoadModule php5_module          libexec/httpd/libphp5.so</code>. You only have to delete the # sign:<br />
<code>LoadModule php5_module          libexec/httpd/libphp5.so</code></li>
<li>Done, now exit nano with <code>^X</code> command. You will be prompted to save your changes. Type <code>Y</code> &lt;return&gt; to save and exit. Don&#8217;t change the file name in process btw ;)
<p><div id="attachment_182" class="wp-caption alignnone" style="width: 595px"><a href="http://lunatic.web.id/wp-content/uploads/2009/05/picture-7.png"><img class="size-full wp-image-182" title="Save and exit with ^X" src="http://lunatic.web.id/wp-content/uploads/2009/05/picture-7.png" alt="Save and exit with ^X" width="585" height="447" /></a><p class="wp-caption-text">Save and exit with ^X</p></div></li>
</ol>
<p>That&#8217;s it, we have ourselves an apache2 web server with PHP. You can check if the PHP module&#8217;s running with a simple <code>phpinfo();</code></p>
<h4>Installing mySQL</h4>
<p>Another walk in the park. If you don&#8217;t already have it, you can <a href="http://dev.mysql.com/downloads/">download mySQL server here</a>. You are looking for the mySQL server installer <a href="http://dev.mysql.com/downloads/">in package format</a>, it&#8217;s the <code>.dmg</code> format you&#8217;re already familiar with. It&#8217;s a 60MB download, smaller than the 70+ MB XAMPP and 130+ MB MAMP ;)</p>
<p>Installing is simple, mount the .dmg and then install all the packages including the .prefpane. After installing all items you will be taken to the newly installed mySQL prefpane.</p>
<p><div id="attachment_185" class="wp-caption alignnone" style="width: 650px"><a href="http://lunatic.web.id/wp-content/uploads/2009/05/picture-9.png"><img class="size-medium wp-image-185" title="mySQL prefpane" src="http://lunatic.web.id/wp-content/uploads/2009/05/picture-9-640x350.png" alt="mySQL prefpane" width="640" height="350" /></a><p class="wp-caption-text">mySQL prefpane</p></div>
<p>Done, now mySQL&#8217;s up and running. You might want to install <a href="http://www.navicat.com/">Navicat</a> or <a href="http://www.phpmyadmin.net/">phpMyAdmin</a> for the mySQL front end. Now that you have everything working, you can already start developing.</p>
<h4>Extra: VirtualHostX to shorten your working URL</h4>
<p>I&#8217;m not a big fan of long URLs, my working host is <code>http://localhost/~anima/</code> and my phpMyAdmin URL is <code>http://localhost/~anima/phpmyadmin/</code>. Those are long badass URLs and I hate them, so I looked for a workaround shortening them and that&#8217;s when <a href="http://clickontyler.com/virtualhostx/">VirtualHostX</a> comes to the rescue.</p>
<div id="attachment_186" class="wp-caption alignnone" style="width: 650px"><a href="http://lunatic.web.id/wp-content/uploads/2009/05/picture-10.png"><img class="size-medium wp-image-186" title="VirtualHostX" src="http://lunatic.web.id/wp-content/uploads/2009/05/picture-10-640x415.png" alt="VirtualHostX" width="640" height="415" /></a><p class="wp-caption-text">VirtualHostX</p></div>
<p>This way I can shorten my <code>http://localhost/~anima/</code> to <code>http://anima/</code> and my <code>http://localhost/~anima/phpmyadmin/</code> to <code>http://mysql/</code></p>
<p>Free version of VirtualHostX allows you to create 3 host names, that should be enough: one for the main working URL, one for mySQL and you have an extra one. Different story if you want to assign each projects of yours with a different host name. You must get a license then :)</p>
<p><em><a href="http://clickontyler.com/">Tyler Hall</a> (the developer of VirtualHostX) was very kind to give me a free license of this because I tweeted something about it :)</em></p>
<p>Gotta love Macs, they have the beauty and the brains inside :) Happy developing!</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://lunatic.web.id/webdev/native-web-development-apache-php-and-mysql-on-mac-osx-leopard/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><p class="shareparagraph" align="left"><a class="tt" href="http://twitter.com/home/?status=Native+Web+Development+%28apache%2C+PHP+and+mySQL%29+on+Mac+OSX+Leopard+http://bit.ly/3wwEpw" title="Tweet This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="[Post to Twitter]" border="0" /></a> <a class="tt" href="http://twitter.com/home/?status=Native+Web+Development+%28apache%2C+PHP+and+mySQL%29+on+Mac+OSX+Leopard+http://bit.ly/3wwEpw" title="Tweet This">Tweet This</a>&nbsp; <a class="tt" href="http://delicious.com/post?url=http://lunatic.web.id/webdev/native-web-development-apache-php-and-mysql-on-mac-osx-leopard/&amp;title=Native+Web+Development+%28apache%2C+PHP+and+mySQL%29+on+Mac+OSX+Leopard" title="Delicious This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-delicious.png" alt="[Post to Delicious]" border="0" /></a> <a class="tt" href="http://delicious.com/post?url=http://lunatic.web.id/webdev/native-web-development-apache-php-and-mysql-on-mac-osx-leopard/&amp;title=Native+Web+Development+%28apache%2C+PHP+and+mySQL%29+on+Mac+OSX+Leopard" title="Delicious This">Delicious This</a>&nbsp; <a class="tt" href="http://digg.com/submit?url=http://lunatic.web.id/webdev/native-web-development-apache-php-and-mysql-on-mac-osx-leopard/&amp;title=Native+Web+Development+%28apache%2C+PHP+and+mySQL%29+on+Mac+OSX+Leopard" title="Digg This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-digg.png" alt="[Post to Digg]" border="0" /></a> <a class="tt" href="http://digg.com/submit?url=http://lunatic.web.id/webdev/native-web-development-apache-php-and-mysql-on-mac-osx-leopard/&amp;title=Native+Web+Development+%28apache%2C+PHP+and+mySQL%29+on+Mac+OSX+Leopard" title="Digg This">Digg This</a>&nbsp; <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Native+Web+Development+%28apache%2C+PHP+and+mySQL%29+on+Mac+OSX+Leopard&amp;link=http://lunatic.web.id/webdev/native-web-development-apache-php-and-mysql-on-mac-osx-leopard/" title="Ping.fm This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-ping.png" alt="[Post to Ping.fm]" border="0" /></a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Native+Web+Development+%28apache%2C+PHP+and+mySQL%29+on+Mac+OSX+Leopard&amp;link=http://lunatic.web.id/webdev/native-web-development-apache-php-and-mysql-on-mac-osx-leopard/" title="Ping.fm This">Ping This</a>&nbsp; <a class="tt" href="http://reddit.com/submit?url=http://lunatic.web.id/webdev/native-web-development-apache-php-and-mysql-on-mac-osx-leopard/&amp;title=Native+Web+Development+%28apache%2C+PHP+and+mySQL%29+on+Mac+OSX+Leopard" title="Reddit This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-reddit.png" alt="[Post to Reddit]" border="0" /></a> <a class="tt" href="http://reddit.com/submit?url=http://lunatic.web.id/webdev/native-web-development-apache-php-and-mysql-on-mac-osx-leopard/&amp;title=Native+Web+Development+%28apache%2C+PHP+and+mySQL%29+on+Mac+OSX+Leopard" title="Reddit This">Reddit This</a>&nbsp; <a class="tt" href="http://stumbleupon.com/submit?url=http://lunatic.web.id/webdev/native-web-development-apache-php-and-mysql-on-mac-osx-leopard/&amp;title=Native+Web+Development+%28apache%2C+PHP+and+mySQL%29+on+Mac+OSX+Leopard" title="StumbleUpon This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-su.png" alt="[Post to StumbleUpon]" border="0" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://lunatic.web.id/webdev/native-web-development-apache-php-and-mysql-on-mac-osx-leopard/&amp;title=Native+Web+Development+%28apache%2C+PHP+and+mySQL%29+on+Mac+OSX+Leopard" title="StumbleUpon This">Stumble This</a>&nbsp; </p>]]></content:encoded>
			<wfw:commentRss>http://lunatic.web.id/webdev/native-web-development-apache-php-and-mysql-on-mac-osx-leopard/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Coding PHP Loops Easily</title>
		<link>http://lunatic.web.id/webdev/coding-php-loops-easily/</link>
		<comments>http://lunatic.web.id/webdev/coding-php-loops-easily/#comments</comments>
		<pubDate>Tue, 19 May 2009 06:20:12 +0000</pubDate>
		<dc:creator>anima</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Webdev]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://lunatic.web.id/?p=157</guid>
		<description><![CDATA[Working with loops on PHP is inevitable, and I've seen many beginners (read: me) pulling their hair because of it. The thing with coding a loop is, sometimes you have to do stuffs like this:

<code>&#60;?php for ($i=1; $i &#60; 10; $i++) { echo "&#60;a href=\"something.php?id=$i\"&#62;No $i&#60;/a&#62;"; }</code>

Am I right am I right?]]></description>
			<content:encoded><![CDATA[<p><a href="http://lunatic.web.id/wp-content/uploads/2009/05/php.png"><img class="alignleft size-full wp-image-166 hidden" title="PHP" src="http://lunatic.web.id/wp-content/uploads/2009/05/php.png" alt="PHP" width="200" height="200" /></a>Working with loops on PHP is inevitable, and I&#8217;ve seen many beginners (read: me) pulling their hair because of it. The thing with coding a loop is, sometimes you have to do stuffs like this:</p>
<p><code>&lt;?php for ($i=1; $i &lt; 10; $i++) { echo "&lt;a href=\"something.php?id=$i\"&gt;No $i&lt;/a&gt;"; }</code></p>
<p>Am I right am I right?</p>
<p>Looks complicated? Hell yeah. Truth is, there&#8217;s a much simpler way to achieve the same goal. I learned this trick from Wordpress&#8217; Loop. Check this out.</p>
<p>Let&#8217;s take a look at this piece of code, in here we&#8217;re doing a <code>For</code> loop:</p>
<pre class="php" name="code">&lt;ul&gt;
&lt;?php
for ($i=1; $i&lt;10; $i++) {
    echo "&lt;li&gt;&lt;a href=\"?p=$i\"&gt;Go to page # $i&lt;/a&gt;&lt;/li&gt;";
}
?&gt;
&lt;/ul&gt;</pre>
<p>As simple as that looks, the echo command could be a little tricky because we often have to use double quote and single quote characters inside. Debugging can be a pain in the ass.</p>
<p>An approach I propose: the Wordpress way. Here&#8217;s how:</p>
<pre class="php" name="code">&lt;ul&gt;
&lt;?php
for ($i=1; $i&lt;10; $i++) { ?&gt;
    &lt;li&gt;&lt;a href="?p=&lt;?php echo $i;?&gt;"&gt;Go to page # &lt;?php echo $i;?&gt; &lt;/a&gt;&lt;/li&gt;
&lt;?php }
?&gt;
&lt;/ul&gt;</pre>
<p>This way we exclude the HTML tags from the PHP loop. Wow I can&#8217;t really describe that, if you do PHP you know what I mean. Now you can HTML not inside the echo command.</p>
<p>Wordpress is using this approach on templating and I find it very easy to use once you get used to it. So why don&#8217;t you give it a try and let us know what you think :)</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://lunatic.web.id/webdev/coding-php-loops-easily/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><p class="shareparagraph" align="left"><a class="tt" href="http://twitter.com/home/?status=Coding+PHP+Loops+Easily+http://bit.ly/INcEb" title="Tweet This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="[Post to Twitter]" border="0" /></a> <a class="tt" href="http://twitter.com/home/?status=Coding+PHP+Loops+Easily+http://bit.ly/INcEb" title="Tweet This">Tweet This</a>&nbsp; <a class="tt" href="http://delicious.com/post?url=http://lunatic.web.id/webdev/coding-php-loops-easily/&amp;title=Coding+PHP+Loops+Easily" title="Delicious This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-delicious.png" alt="[Post to Delicious]" border="0" /></a> <a class="tt" href="http://delicious.com/post?url=http://lunatic.web.id/webdev/coding-php-loops-easily/&amp;title=Coding+PHP+Loops+Easily" title="Delicious This">Delicious This</a>&nbsp; <a class="tt" href="http://digg.com/submit?url=http://lunatic.web.id/webdev/coding-php-loops-easily/&amp;title=Coding+PHP+Loops+Easily" title="Digg This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-digg.png" alt="[Post to Digg]" border="0" /></a> <a class="tt" href="http://digg.com/submit?url=http://lunatic.web.id/webdev/coding-php-loops-easily/&amp;title=Coding+PHP+Loops+Easily" title="Digg This">Digg This</a>&nbsp; <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Coding+PHP+Loops+Easily&amp;link=http://lunatic.web.id/webdev/coding-php-loops-easily/" title="Ping.fm This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-ping.png" alt="[Post to Ping.fm]" border="0" /></a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Coding+PHP+Loops+Easily&amp;link=http://lunatic.web.id/webdev/coding-php-loops-easily/" title="Ping.fm This">Ping This</a>&nbsp; <a class="tt" href="http://reddit.com/submit?url=http://lunatic.web.id/webdev/coding-php-loops-easily/&amp;title=Coding+PHP+Loops+Easily" title="Reddit This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-reddit.png" alt="[Post to Reddit]" border="0" /></a> <a class="tt" href="http://reddit.com/submit?url=http://lunatic.web.id/webdev/coding-php-loops-easily/&amp;title=Coding+PHP+Loops+Easily" title="Reddit This">Reddit This</a>&nbsp; <a class="tt" href="http://stumbleupon.com/submit?url=http://lunatic.web.id/webdev/coding-php-loops-easily/&amp;title=Coding+PHP+Loops+Easily" title="StumbleUpon This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-su.png" alt="[Post to StumbleUpon]" border="0" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://lunatic.web.id/webdev/coding-php-loops-easily/&amp;title=Coding+PHP+Loops+Easily" title="StumbleUpon This">Stumble This</a>&nbsp; </p>]]></content:encoded>
			<wfw:commentRss>http://lunatic.web.id/webdev/coding-php-loops-easily/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installing Multiple Versions of Firefox and Internet Explorer</title>
		<link>http://lunatic.web.id/webdev/installing-multiple-versions-of-firefox-and-internet-explorer/</link>
		<comments>http://lunatic.web.id/webdev/installing-multiple-versions-of-firefox-and-internet-explorer/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 09:36:11 +0000</pubDate>
		<dc:creator>anima</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Webdev]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[browsers]]></category>

		<guid isPermaLink="false">http://lunatic.web.id/?p=7</guid>
		<description><![CDATA[Now you might think <em>why the heck would I want to install different versions of web browsers to my computer?</em> Here's why: you're a web developer.

That being said, you need to check your website/web app in popular browsers: Internet Explorer 6 and 7, Firefox 1, 2, 3, Chrome, Safari and Opera. Installing Chrome, Safari and Opera is a no-brainer, but those multiple versions of Internet Explorer and Firefox can be tricky. Here's how we can do it.]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-44 hidden" title="Installing multiple IE and Fx" src="http://lunatic.web.id/wp-content/uploads/2009/04/multipleff_ss.jpg" alt="Installing multiple IE and Fx" width="200" height="200" />Now you might think <em>why the heck would I want to install different versions of web browsers to my computer?</em> Here&#8217;s why: you&#8217;re a web developer.</p>
<p>Granted, you have the need to check your website/web app in popular browsers: Internet Explorer 6 and 7, Firefox 1, 2, 3, Chrome, Safari and Opera. Installing Chrome, Safari and Opera is a no-brainer, but those multiple versions of Internet Explorer and Firefox can be tricky. Here&#8217;s how we can do it.</p>
<p class="note">Note: in this article I am using Windows XP with IE6 as a default browser. If you&#8217;re on Vista and you already have IE 7 installed you can skip the IE7 installation section.</p>
<p>Before we start, these are the installers we&#8217;re going to need. Don&#8217;t worry if you don&#8217;t have it yet, we will discuss about where (and how) to get them as we go.</p>
<p><a href="http://lunatic.web.id/wp-content/uploads/2009/04/browsers-folder.png"><img class="size-medium wp-image-10 alignnone" title="browsers-folder" src="http://lunatic.web.id/wp-content/uploads/2009/04/browsers-folder-640x474.png" alt="browsers-folder" width="640" height="474" /></a></p>
<h4>Installing Internet Explorer 6 and 7</h4>
<p>First we&#8217;re going to install IE7, this is also a no-brainer. <a href="http://www.microsoft.com/windows/downloads/ie/getitnow.mspx">Get it here</a> and experience Microsoft&#8217;s long-ass installation and an unnecessary restart. Done and done with IE7, now we&#8217;re going to setup IE6. Download the <a href="http://tredosoft.com/Multiple_IE">Multiple IE installer</a>, it&#8217;s free and it&#8217;s <strong><em>superuseful</em></strong> :)</p>
<p>Run the installer and keep going next until you see a checkbox selection like this:</p>
<p><img class="alignnone size-full wp-image-11" title="MultipleIE Installation" src="http://lunatic.web.id/wp-content/uploads/2009/04/picture-2.png" alt="MultipleIE Installation" width="583" height="472" /></p>
<p>If your target audience includes the good old Windows 98, 95 and Windows 3.1.1 users then definitely select them all. If that&#8217;s not the case then just leave it all unclicked except Internet Explorer 6.</p>
<h4>Installing Firefox 1.5, 2 and 3</h4>
<p>Thanks to <a href="http://www.htmlcenter.com/blog/multiple-firefox-installs/">this article</a>, installing these browsers can be done easily. First you have to get all Firefox installers. <a href="http://www.mozilla.com/en-US/">Firefox 3 can be downloaded from this link</a>, <a href="http://www.mozilla.com/en-US/firefox/all-older.html">Firefox 2 here</a> and <a href="http://www.filehippo.com/download_firefox/1338/">Firefox 1.5 here</a>.</p>
<p>I&#8217;d start with Fx 3 because that&#8217;s my favorite. Do a custom installation, choose where you want to install Firefox 3. In my case I want to install it here:</p>
<p><img class="alignnone size-full wp-image-32" title="Custom install location" src="http://lunatic.web.id/wp-content/uploads/2009/04/picture-1.png" alt="Custom install location" width="583" height="473" /></p>
<p>Next we&#8217;ll launch Firefox Profile Manager. This part&#8217;s a bit tricky so let&#8217;s pay extra attention here. What we&#8217;re going to do is we go to the Mozilla Firefox start menu folder by right-clicking the shortcut on the start menu.</p>
<div id="attachment_33" class="wp-caption alignnone" style="width: 650px"><img class="size-full wp-image-33" title="Explore the Firefox start menu folder" src="http://lunatic.web.id/wp-content/uploads/2009/04/explore.jpg" alt="Explore the Firefox start menu folder" width="640" height="256" /><p class="wp-caption-text">Explore the Firefox start menu folder</p></div>
<p>Then we&#8217;re going into the duplicated shortcut&#8217;s properties by right-clicking the shortcut and select <em>Properties</em>. These are the values you&#8217;re going to change: in the Target field, add the following string: <strong>-profilemanager</strong>.</p>
<div id="attachment_34" class="wp-caption alignnone" style="width: 650px"><img class="size-full wp-image-34" title="Shortcut Properties" src="http://lunatic.web.id/wp-content/uploads/2009/04/file-property.jpg" alt="Shortcut Properties" width="640" height="520" /><p class="wp-caption-text">Shortcut Properties</p></div>
<p>Rename the shortcut to Profile Manager and launch it. We will need to create 3 different profiles for each Firefox installation. Here are my Firefox Profiles:</p>
<div id="attachment_35" class="wp-caption alignnone" style="width: 650px"><img class="size-full wp-image-35" title="Firefox Profiles" src="http://lunatic.web.id/wp-content/uploads/2009/04/profiles.jpg" alt="Firefox Profiles" width="640" height="318" /><p class="wp-caption-text">Firefox Profiles</p></div>
<p><img class="alignleft size-full wp-image-38" title="Firefox installation folders" src="http://lunatic.web.id/wp-content/uploads/2009/04/picture-51.png" alt="Firefox installation folders" width="209" height="158" />Now you can install Fx 2 and 1.5 with custom installation, just remember to change the install directory. Your installation directory should look similar to what I have on the left side screenshot. We&#8217;re almost there, it&#8217;s a pretty long journey but we&#8217;re getting there.</p>
<p>Hang on.</p>
<p>Next step is the finishing strike. We&#8217;re going to put <a href="http://www.youtube.com/watch?v=uyUU9Y8CjWM">all the application shortcut to one place</a> and modify the target just like we modify it on the Profile Manager section up there.</p>
<p>Here&#8217;s what we do, we add this string to the target field: <strong>-p &#8220;Fx 1&#8243;</strong> where Fx 1 is the profile we made for that version of Firefox. Take a look at this screenshot for an example.</p>
<p><img class="alignnone size-full wp-image-41" title="Edit Firefox target" src="http://lunatic.web.id/wp-content/uploads/2009/04/picture-7.png" alt="Edit Firefox target" width="447" height="589" /></p>
<p>Et voila! That&#8217;s it! Now you have 3 Firefox installations running with different profiles. This means they can have different passwords saved, different bookmarks and so on. Please take a note that you can only run one Firefox instance at a time.</p>
<p>Have fun developing your website! :)</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://lunatic.web.id/webdev/installing-multiple-versions-of-firefox-and-internet-explorer/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><p class="shareparagraph" align="left"><a class="tt" href="http://twitter.com/home/?status=Installing+Multiple+Versions+of+Firefox+and+Internet+Explorer+http://bit.ly/BxoKO" title="Tweet This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="[Post to Twitter]" border="0" /></a> <a class="tt" href="http://twitter.com/home/?status=Installing+Multiple+Versions+of+Firefox+and+Internet+Explorer+http://bit.ly/BxoKO" title="Tweet This">Tweet This</a>&nbsp; <a class="tt" href="http://delicious.com/post?url=http://lunatic.web.id/webdev/installing-multiple-versions-of-firefox-and-internet-explorer/&amp;title=Installing+Multiple+Versions+of+Firefox+and+Internet+Explorer" title="Delicious This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-delicious.png" alt="[Post to Delicious]" border="0" /></a> <a class="tt" href="http://delicious.com/post?url=http://lunatic.web.id/webdev/installing-multiple-versions-of-firefox-and-internet-explorer/&amp;title=Installing+Multiple+Versions+of+Firefox+and+Internet+Explorer" title="Delicious This">Delicious This</a>&nbsp; <a class="tt" href="http://digg.com/submit?url=http://lunatic.web.id/webdev/installing-multiple-versions-of-firefox-and-internet-explorer/&amp;title=Installing+Multiple+Versions+of+Firefox+and+Internet+Explorer" title="Digg This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-digg.png" alt="[Post to Digg]" border="0" /></a> <a class="tt" href="http://digg.com/submit?url=http://lunatic.web.id/webdev/installing-multiple-versions-of-firefox-and-internet-explorer/&amp;title=Installing+Multiple+Versions+of+Firefox+and+Internet+Explorer" title="Digg This">Digg This</a>&nbsp; <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Installing+Multiple+Versions+of+Firefox+and+Internet+Explorer&amp;link=http://lunatic.web.id/webdev/installing-multiple-versions-of-firefox-and-internet-explorer/" title="Ping.fm This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-ping.png" alt="[Post to Ping.fm]" border="0" /></a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Installing+Multiple+Versions+of+Firefox+and+Internet+Explorer&amp;link=http://lunatic.web.id/webdev/installing-multiple-versions-of-firefox-and-internet-explorer/" title="Ping.fm This">Ping This</a>&nbsp; <a class="tt" href="http://reddit.com/submit?url=http://lunatic.web.id/webdev/installing-multiple-versions-of-firefox-and-internet-explorer/&amp;title=Installing+Multiple+Versions+of+Firefox+and+Internet+Explorer" title="Reddit This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-reddit.png" alt="[Post to Reddit]" border="0" /></a> <a class="tt" href="http://reddit.com/submit?url=http://lunatic.web.id/webdev/installing-multiple-versions-of-firefox-and-internet-explorer/&amp;title=Installing+Multiple+Versions+of+Firefox+and+Internet+Explorer" title="Reddit This">Reddit This</a>&nbsp; <a class="tt" href="http://stumbleupon.com/submit?url=http://lunatic.web.id/webdev/installing-multiple-versions-of-firefox-and-internet-explorer/&amp;title=Installing+Multiple+Versions+of+Firefox+and+Internet+Explorer" title="StumbleUpon This"><img class="nothumb" src="http://lunatic.web.id/wp-content/plugins/tweet-this/icons/tt-su.png" alt="[Post to StumbleUpon]" border="0" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://lunatic.web.id/webdev/installing-multiple-versions-of-firefox-and-internet-explorer/&amp;title=Installing+Multiple+Versions+of+Firefox+and+Internet+Explorer" title="StumbleUpon This">Stumble This</a>&nbsp; </p>]]></content:encoded>
			<wfw:commentRss>http://lunatic.web.id/webdev/installing-multiple-versions-of-firefox-and-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
