<?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>mummey.org &#187; featured articles</title>
	<atom:link href="http://www.mummey.org/category/featured-articles/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mummey.org</link>
	<description>Personal Website of Adrian Mummey</description>
	<lastBuildDate>Tue, 27 Oct 2009 03:11:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dashboards, Web Reporting and Business Intelligence (BI)</title>
		<link>http://www.mummey.org/2009/02/dashboards-web-reporting-and-business-intelligence-bi/</link>
		<comments>http://www.mummey.org/2009/02/dashboards-web-reporting-and-business-intelligence-bi/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 04:04:29 +0000</pubDate>
		<dc:creator>Adrian Mummey</dc:creator>
				<category><![CDATA[featured articles]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[Dashboard]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[oss]]></category>
		<category><![CDATA[pentaho]]></category>
		<category><![CDATA[Reporting]]></category>
		<category><![CDATA[Web Reporting]]></category>
		<category><![CDATA[ws02]]></category>

		<guid isPermaLink="false">http://www.mummey.org/?p=33</guid>
		<description><![CDATA[Obviously web reporting is nothing really new; one basic approach is this:

Aggregate your data and output it in some kind of structured format, usually XML
Request this information and generate some visualizations of it
Serve these visualizations through a web server

Pretty basic stuff. All of the tools that I have seen essentially make one or all of [...]]]></description>
			<content:encoded><![CDATA[<p>Obviously web reporting is nothing really new; one basic approach is this:</p>
<ol>
<li>Aggregate your data and output it in some kind of structured format, usually XML</li>
<li>Request this information and generate some visualizations of it</li>
<li>Serve these visualizations through a web server</li>
</ol>
<p>Pretty basic stuff. All of the tools that I have seen essentially make one or all of these processes easier. Unfortunately no matter what tools you choose, the rule of engineering stands: Fast, cheap, good &#8211; choose two</p>
<p>In this context it is more like: Less proprietary code, free software, easy to use/maintain &#8211; choose two. The good news is that all of the solutions described essentially have the same result: a web dashboard. The choice that needs to be made, is where you want to go with it? In the spirit of Enterprise software the clear winner is the solution with NO proprietary code, easy to use interfaces, and maybe some support.The biggest obstacle in this model is step 1, data aggregation and standardization.</p>
<p>Step 1 may involve lots of substeps that require some substantial development work including:</p>
<ol>
<li>Connecting to various datasources</li>
<li>Writing queries to retrieve the data</li>
<li>Parsing the data into XML (or some other standardized format)</li>
<li>If interaction is needed, the data aggregator will also need to accept inputs and query dynamically</li>
</ol>
<p>The issue is that all of these steps may differ among various datasources like oracle, csv, excel, etc. And yes, there are plenty of tools to help with this step. The main point though is that no matter what solution you choose, there will a substantial portion of development time needed for Step 1; even with a GUI you still need to write queries. It is really up to you if you want to follow this model and incur development time, however for an &#8220;executive&#8221; dashboard I feel it essential to follow this model.</p>
<p>The solutions I found can be divided into 2 categories: Web Reporting and Business Intelligence (BI). Web Reporting covers the basic aspects of the above model and nothing more; whereas the above model is just a subset of what  Business Intelligence can do. One thing to remember also is that its always &#8220;pay to play&#8221; with the support for the free solutions. They&#8217;ll give you the software, but you need to pay for their help. Also I tried to chose solutions whose free software should have all the features we need.</p>
<h3 class="children">Web Reporting Solutions</h3>
<ul class="list-no-style">
<li>
<div id="attachment_38" class="wp-caption alignleft" style="width: 160px"><a href="http://www.mummey.org/wp-content/uploads/2009/02/open-flash-charts.jpg" rel="lightbox"><img src="http://www.mummey.org/wp-content/uploads/2009/02/open-flash-charts-150x150.jpg" alt="Open Flash Charts Pie Chart" title="open-flash-charts" width="150" height="150" class="size-thumbnail wp-image-38" /></a><p class="wp-caption-text">Open Flash Charts Pie Chart</p></div><br />
1. <a title="Open Flash Chart" href="http://teethgrinder.co.uk/open-flash-chart/" target="_blank">Open Flash Chart</a> &#8211; The simplest, (cheapest?) and fastest way to get some dashboards is to just write some code. If we are only connecting to one database, no problem using some free tools like Open Flash Chart. It is the simplest because we don&#8217;t really need to abstract any data, so step 1 processes are minimized. However it isn&#8217;t Enterprise level and makes big assumptions on the sources and format of the data. Any changes to the model will require code edits and support calls which doesn&#8217;t make for good sustainability.
</li>
<li>
<div id="attachment_44" class="wp-caption alignright" style="width: 160px"><a href="http://www.mummey.org/wp-content/uploads/2009/02/open-flash-charts2.jpg" rel="lightbox"><img src="http://www.mummey.org/wp-content/uploads/2009/02/open-flash-charts2-150x150.jpg" alt="Open Flash Charts - Area Chart" title="open-flash-charts2" width="150" height="150" class="size-thumbnail wp-image-44" /></a><p class="wp-caption-text">Open Flash Charts - Area Chart</p></div><br />
2. <a title="WS02 Web Application Service" href="http://wso2.org/projects/wsas/java" target="_blank">WSO2 Web Application Server</a> + <a title="Open Flash Chart" href="http://teethgrinder.co.uk/open-flash-chart/" target="_blank">Open Flash Chart</a> &#8211; This combination is a little more enterprise. The tools are still free, which is great. The Web Application Server can handle step 1 pretty well and has a nice GUI interface to make all the data connections and output some XML as a web service, definitely enterprise level. However we still need a small middleware layer to accept the XML and generate the flash charts which require less (but still some) proprietary code as the first option. The only code changes that would be needed would be if you wanted say different charts, or a different layout, but could probably be done by someone with some basic HTML and scripting knowledge.
</li>
<li>
<div id="attachment_42" class="wp-caption alignleft" style="width: 160px"><a href="http://www.mummey.org/wp-content/uploads/2009/02/xcelsius.jpg"><img src="http://www.mummey.org/wp-content/uploads/2009/02/xcelsius-150x150.jpg" alt="SAP Xcelsius Dashboard" title="xcelsius" width="150" height="150" class="size-thumbnail wp-image-42" /></a><p class="wp-caption-text">SAP Xcelsius Dashboard</p></div><br />
3. <a title="WS02 Web Application Service" href="http://wso2.org/projects/wsas/java" target="_blank">WSO2 Web Application Server</a> + <a title="Excelsius Engage" href="http://www.sap.com/solutions/sapbusinessobjects/sme/xcelsius/xcelsiusengage/index.epx" target="_blank">SAP Excelsius Engage</a> &#8211; This combination is fully enterprise level. It could probably bet set up with no proprietary coding at all. Excelsius is stand alone program that allows one to graphically design the dashboards and connect them up with various datasources. The only problem is that it costs a minimum of $1000, and for the server edition (which I feel is unnecessary) could be as much as $5000. So that may be out of budget. But it does produce beautiful results.
</li>
</ul>
<p><br class="children"/></p>
<h3>Business Intelligence Solutions</h3>
<p>I had never heard of Business Intelligence until I started doing research for this project. The best way I can describe it is that is a huge web based platform that seems to do everything. First off it has something called Data Integration. This is a very cool program that will not only aggregate different data sources, but allow you to transform among the datasources and output to pretty much anything. For example I could query an Oracle table and an Excel Sheet, aggregate those two into one dataset perform some transformation like sorting or pivoting and then output the result to a MySQL table. Its actually quite amazing. All of these data integrations can be set up as jobs that can be run in batch or run from command or run from some web service. From there it also includes a Web BI Platform, which is kinda like a portal that can show reports, dashboards, tables, basically anything and also has some admin for user control and permissions. It also includes tools to design and build reports and dashboards. It can also do complex analysis and data mining and will probably take out your trash and wash your car too.</p>
<p>Anyways, the benefits are intense, but may be a bit overkill if you just want a dashboard. Things this complicated can quickly turn from dream to nightmare however with these BI solutions almost all aspects can be managed through GUI tools. The real problem is that it will take a serious commitment to make it work because of its complexity. I am not sure they are the right solution for you, but maybe you will think of something else that it may be useful for.</p>
<ul class="list-no-style">
<li>
<div id="attachment_45" class="wp-caption alignleft" style="width: 160px"><a href="http://www.mummey.org/wp-content/uploads/2009/02/pentaho.jpg"><img src="http://www.mummey.org/wp-content/uploads/2009/02/pentaho-150x150.jpg" alt="Pentaho Dashboard" title="pentaho" width="150" height="150" class="size-thumbnail wp-image-45" /></a><p class="wp-caption-text">Pentaho Dashboard</p></div><br />
1. <a title="Pentaho BI Suite" href="http://www.pentaho.com/" target="_blank">Pentaho</a> &#8211; A free, open source collection of BI tools. Again with the &#8220;pay to play&#8221; support. Pentaho offers all of the functions specified above and has GUI tools for managing all of them. I was able to actually install Pentaho and was able to generate some reports, however it was quite difficult to configure the server and generating my own dashboard required some very complex configuration. But the data integration tool was stellar, I think on its own it is a very powerful tool that could be used outside the scope of the BI platform.
</li>
<li>
<div id="attachment_46" class="wp-caption alignright" style="width: 160px"><a href="http://www.mummey.org/wp-content/uploads/2009/02/websphere.jpg"><img src="http://www.mummey.org/wp-content/uploads/2009/02/websphere-150x150.jpg" alt="IBM Websphere Dashboard" title="websphere" width="150" height="150" class="size-thumbnail wp-image-46" /></a><p class="wp-caption-text">IBM Websphere Dashboard</p></div><br />
2. <a title="IBM Websphere" href="http://www-01.ibm.com/software/genservers/portal/dashboardframework/" target="_blank">IBM Websphere</a> &#8211; I read all the papers for this but wasn&#8217;t actually able to try it out. But it is a huge system that probably does everything and I won&#8217;t even talk about it more because it probably costs many thousands. But it is a good basis to see what can be done.
</li>
</ul>
<p><br class="children"/><br />
Unless you see other potential value in implementing a BI system, I would say that option 3 under the web reporting is the best bet if you can spring for the software and development costs.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.mummey.org%2F2009%2F02%2Fdashboards-web-reporting-and-business-intelligence-bi%2F&amp;linkname=Dashboards%2C%20Web%20Reporting%20and%20Business%20Intelligence%20%28BI%29"><img src="http://www.mummey.org/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.mummey.org/2009/02/dashboards-web-reporting-and-business-intelligence-bi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transparent GIFs with PHP and GD</title>
		<link>http://www.mummey.org/2008/11/transparent-gifs-with-php-and-gd/</link>
		<comments>http://www.mummey.org/2008/11/transparent-gifs-with-php-and-gd/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 15:03:43 +0000</pubDate>
		<dc:creator>Adrian Mummey</dc:creator>
				<category><![CDATA[featured articles]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[GD]]></category>
		<category><![CDATA[GIF]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[imagecreatefromgif]]></category>
		<category><![CDATA[imagecreatetruecolor]]></category>
		<category><![CDATA[transparent gif]]></category>

		<guid isPermaLink="false">http://www.mummey.org/?p=5</guid>
		<description><![CDATA[During development of my cSprites application I ran across an interesting problem when generating my sprites with GD. When dealling with transparent GIFs, GD does not take care of processing by default you must enable some specific settings to get it done correctly. The default behavior is that imagecreatefromgif adds a black background to the [...]]]></description>
			<content:encoded><![CDATA[<p>During development of my cSprites application I ran across an interesting problem when generating my sprites with GD. When dealling with transparent GIFs, GD does not take care of processing by default you must enable some specific settings to get it done correctly. The default behavior is that imagecreatefromgif adds a black background to the transparent gif. The way I solved this was a lot of trial, error and research.<br />
<br class="children"/><br />
<img class="alignleft alignnone size-medium wp-image-6" style="float: left;" title="good-face" src="http://www.mummey.org/wp-content/uploads/2008/11/good-face.gif" alt="Original Image" width="128" height="128" /></p>
<p>Here is the original Image I used. Initially I thought I could just use the basic image copy functions in GD and it would take care of the rest. Well this isn&#8217;t the case. This is the code I initially tried. Essentially creating a true color image and just using imagecopy to copy the gifs into the sprite.<br/><br/><br/></p>
<pre><code class="php">
 protected static function handleGif($spriteImages, $imgSize, $filePath){
    $sprite = imagecreatetruecolor($imgSize-&gt;right, $imgSize-&gt;bottom);

    foreach($spriteImages as $spriteImage){
      $tempImage = imagecreatefromgif($spriteImage-&gt;getPath());
      $position = $spriteImage-&gt;getPosition();
      imagecopy($sprite, $tempImage, $position-&gt;left, $position-&gt;top, 0, 0, $spriteImage-&gt;getWidth(), $spriteImage-&gt;getHeight());
      imagedestroy($tempImage);
    }

    ob_start();
    imagegif($sprite);
    $spriteOutput = ob_get_clean();
    imagedestroy($sprite);
    SpriteImageWriter::writeImageFile($spriteOutput, $filePath);
  }
</code></pre>
<p><img class="alignleft alignnone size-medium wp-image-7" style="float: left;" title="bad-face1" src="http://www.mummey.org/wp-content/uploads/2008/11/bad-face1.gif" alt="First Try" width="115" height="115" /><br />
Here is the output from the above code. You will notice that GD scrapped the transparency and opted for a black background. Back to the drawing board I guess. The next chunk of code shows the next iteration. Basically allocating the &#8220;black&#8221; color (which most gifs use as transparent) and setting the newly created image to use that as the transparent color.</p>
<pre><code class="php">
protected static function handleGif($spriteImages, $imgSize, $filePath){
    $sprite = imagecreatetruecolor($imgSize-&gt;right, $imgSize-&gt;bottom);
    $trans_color = imagecolorallocatealpha($sprite, 0, 0, 0, 127);
    imagecolortransparent  ( $sprite, $transparent);

    foreach($spriteImages as $spriteImage){
      $tempImage = imagecreatefromgif($spriteImage-&gt;getPath());
      $position = $spriteImage-&gt;getPosition();
      imagecopy($sprite, $tempImage, $position-&gt;left, $position-&gt;top, 0, 0, $spriteImage-&gt;getWidth(), $spriteImage-&gt;getHeight());
      imagedestroy($tempImage);
    }

    ob_start();
    imagegif($sprite);
    $spriteOutput = ob_get_clean();
    imagedestroy($sprite);
    SpriteImageWriter::writeImageFile($spriteOutput, $filePath);
  }
</code></pre>
<p><img class="alignleft alignnone size-medium wp-image-8" style="float: left; margin-left: 10px; margin-right: 10px;" title="bad-face2" src="http://www.mummey.org/wp-content/uploads/2008/11/bad-face2.gif" alt="Second Try" width="115" height="118" />And this is the output from the above code. As you can see we now have some transparency, however big chunks of the image have been made transparent. Specifically where the color in the image matched &#8220;black&#8221;, it was replaced by a transparent color. So last try now. Here is the final code, which first involves setting some flags that tell it to maintain the transparency. Then create a transparent rectangle over the whole image and next set the image color to transparent. So a little more overhead however the results are great. </p>
<pre><code class="php">
protected static function handleGif($spriteImages, $imgSize, $filePath){
    $sprite = imagecreatetruecolor($imgSize-&gt;right, $imgSize-&gt;bottom);
    imagealphablending($sprite, false);
    imagesavealpha($sprite,true);
    $transparent = imagecolorallocatealpha($sprite, 255, 255, 255, 127);
    imagefilledrectangle($sprite, 0, 0, $imgSize-&gt;right, $imgSize-&gt;bottom, $transparent);
    imagecolortransparent  ( $sprite, $transparent);

    foreach($spriteImages as $spriteImage){
      $tempImage = imagecreatefromgif($spriteImage-&gt;getPath());
      $position = $spriteImage-&gt;getPosition();
      imagecopy($sprite, $tempImage, $position-&gt;left, $position-&gt;top, 0, 0, $spriteImage-&gt;getWidth(), $spriteImage-&gt;getHeight());
      imagedestroy($tempImage);
    }

    ob_start();
    imagegif($sprite);
    $spriteOutput = ob_get_clean();
    imagedestroy($sprite);
    SpriteImageWriter::writeImageFile($spriteOutput, $filePath);
  }
</code></pre>
<p>The above code will do the job of copying the transparent GIFs for my sprite generation. However one issue I ran into when generating my sprites is that when I had a lot of different GIFs in one sprite there was some small but noticeable dithering. I assume this is because while each individual GIF can use its own color pallete, when you combine a lot of them they can all only grab from the generated pallete.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.mummey.org%2F2008%2F11%2Ftransparent-gifs-with-php-and-gd%2F&amp;linkname=Transparent%20GIFs%20with%20PHP%20and%20GD"><img src="http://www.mummey.org/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.mummey.org/2008/11/transparent-gifs-with-php-and-gd/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Installing Symfony on MAMP</title>
		<link>http://www.mummey.org/2008/05/installing-symfony-on-mamp/</link>
		<comments>http://www.mummey.org/2008/05/installing-symfony-on-mamp/#comments</comments>
		<pubDate>Thu, 29 May 2008 12:33:01 +0000</pubDate>
		<dc:creator>Adrian Mummey</dc:creator>
				<category><![CDATA[featured articles]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://www.mummey.org/?p=1</guid>
		<description><![CDATA[For the past few days I have been setting up my mac environment and trying to get symfony up and running under the MAMP environment. I thought I would try my hand at a step by step tutorial. Many of the tutorials I found were geared toward people who were familiar with the Mac and/or [...]]]></description>
			<content:encoded><![CDATA[<p>For the past few days I have been setting up my mac environment and trying to get symfony up and running under the MAMP environment. I thought I would try my hand at a step by step tutorial. Many of the tutorials I found were geared toward people who were familiar with the Mac and/or MAMP. However I wasn&#8217;t one of these people.</p>
<p>In this post I will cover how to set up your MAMP and virtual hosts. I am using Mac OSX Leopard so some of this may be different for other versions. </p>
<p>First after installing MAMP, Open MAMP and click on Preferences and then click on the Ports tab. Here click the &#8220;Set to Default Apache and MySQL Ports&#8221; button. This will change the ports and may require a password to complete.</p>
<p>Next lets download and install symfony. From now on when I refer to the project I will use <em>myproject</em>.</p>
<p>Let&#8217;s create a project directory, open up your terminal window and type this (change <em>myproject</em> to your project name)</p>
<blockquote><p>$ mkdir /Applications/MAMP/htdocs/myproject</p></blockquote>
<p>/Applications/MAMP/htdocs/myproject will be your web root from now on. Let&#8217;s now enter the terminal and checkout Symfony from SVN.</p>
<blockquote><p>sudo /Applications/MAMP/bin/php5/bin/peardev channel-discover pear.symfony-project.com<br />
sudo /Applications/MAMP/bin/php5/bin/peardev install symfony/symfony</p></blockquote>
<p><span id="more-1"></span>Next in order to use Symfony on the command line let&#8217;s add a directory to the <strong>$PATH</strong> variable on the command line. First we need to check out path, so open up terminal and type this:</p>
<blockquote><p>$ echo $PATH<br />
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin</p></blockquote>
<p>So we need to take this path and append a &#8216;:/Applications/MAMP/bin/php5/bin&#8217; on to it so in terminal it will look something like this, but if your path has a different starting configuration it may vary.</p>
<blockquote><p>$ export PATH=&#8221;$PATH:/Applications/MAMP/bin/php5/bin&#8221;</p></blockquote>
<p>Now you should be able to enter symfony commands in the terminal without the full path, you may need to restart the terminal for this to work.</p>
<p>Another way to do this is to just create a symbolic link to the symfony program in your /usr/bin like this:</p>
<blockquote><p>cd /usr/local/bin<br />
$ sudo ln -s /Applications/MAMP/bin/php5/bin/symfony symfony</p></blockquote>
<p>So let&#8217;s initialize our symfony project</p>
<blockquote><p>cd /Applications/MAMP/htdocs/myproject<br />
symfony init-project myproject</p></blockquote>
<p>You will want to create at least one application. From the terminal:</p>
<blockquote><p>symfony init-app myproject</p></blockquote>
<p>Next we need to open up the <strong>config/config.php</strong> in your myproject directory. And change it to something like this:</p>
<blockquote><p><code>&lt;?php<br />
// symfony directories<br />
$sf_symfony_lib_dir  = '/Applications/MAMP/bin/php5/lib/php/symfony';<br />
$sf_symfony_data_dir = '/Applications/MAMP/bin/php5/lib/php/data/symfony';<br />
?&gt;</code></p></blockquote>
<p>Next let&#8217;s set up a virtual host with Apache. We need to open up MAMP&#8217;s <strong>httpd.conf</strong> file located at <strong>/Applications/MAMP/conf/apache/httpd.conf</strong><br />
We need to add our virtual host information at the very end of this file. Mine looks like this (remember to change <em>myproject</em> to your project name:</p>
<blockquote><p><code>NameVirtualHost *</code></p>
<p><code> </code><code>&lt;VirtualHost *&gt;<br />
  ServerName myproject<br />
  DocumentRoot "/Applications/MAMP/htdocs/myproject/web"<br />
  DirectoryIndex index.php<br />
  Alias /sf /Applications/MAMP/bin/php5/lib/php/data/symfony/web/sf<br />
  &lt;Directory "/Applications/MAMP/bin/php5/lib/php/data/symfony/web/sf"&gt;<br />
  AllowOverride All<br />
  Allow from All<br />
  &lt;/Directory&gt;<br />
  &lt;Directory "/Applications/MAMP/htdocs/myproject/web"&gt;<br />
  AllowOverride All<br />
  Allow from All<br />
  &lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</code></p></blockquote>
<p>Now that that is done, we need to edit the <strong>/etc/hosts</strong> file. So open up terminal again and type:</p>
<p>sudo nano /etc/hosts<br />
Then add<strong> 127.0.0.1  myproject</strong> to the end of the file. My hosts file looks like this:</p>
<blockquote><p><code>##<br />
# Host Database<br />
#<br />
# localhost is used to configure the loopback interface<br />
# when the system is booting.  Do not change this entry.<br />
##<br />
127.0.0.1       localhost<br />
255.255.255.255 broadcasthost<br />
::1             localhost<br />
fe80::1%lo0     localhost<br />
# VIRTUAL HOST START<br />
127.0.0.1       myproject<br />
# VIRTUAL HOST STOP</code></p></blockquote>
<p>Next you will want to restart your apache. At this point you should be able to type in your browser</p>
<p>http://myproject</p>
<p>And see the default symfony page.</p>
<p>I usually like to run MySQL from the command line. So next I created a symbolic link to the mysql program into my /usr/bin like this in the terminal:</p>
<blockquote><p>cd /usr/bin<br />
sudo ln -s /Applications/MAMP/Library/bin/mysql mysql</p></blockquote>
<p>Then I go into terminal to create my database for my symfony project (remember on MAMP default root password is root.</p>
<blockquote><p>mysql -u root -p root<br />
mysql &gt;<br />
create database myproject default character set utf8</p></blockquote>
<p>And then in my project folder /config/databases.yml looks like this:</p>
<blockquote><p>all:<br />
propel:<br />
class:          sfPropelDatabase<br />
param:<br />
username: root<br />
password: root<br />
dsn:          mysql://root@localhost/myproject</p></blockquote>
<p>And that is it. Hope this helped.</p>
<p>I used a few of these articles to figure this all out:</p>
<ul>
<li><a href="http://wp.omeeza.com/sunhwan/2007/07/12/installing-symfony-in-mac-with-xampp/">Installing Symfony in Mac with MAMP</a></li>
<li><a href="http://stereointeractive.com/blog/2008/01/24/installing-symfony-on-leopard/">INSTALLING SYMFONY ON LEOPARD</a></li>
<li><a href="http://kb.mediatemple.net/questions/237/How+can+I+Install+Symfony+PHP+framework+on+the+(gs)+Grid-Service%3F">Installing Symfony on Mediatemple</a></li>
</ul>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.mummey.org%2F2008%2F05%2Finstalling-symfony-on-mamp%2F&amp;linkname=Installing%20Symfony%20on%20MAMP"><img src="http://www.mummey.org/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.mummey.org/2008/05/installing-symfony-on-mamp/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
