<?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>Gabriel de Kadt &#187; webdev</title>
	<atom:link href="http://www.lazydada.com/tag/webdev/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lazydada.com</link>
	<description>Personal notes on Mac based web development and design.</description>
	<lastBuildDate>Tue, 30 Aug 2011 10:47:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Cloud enabled local web development using Dropbox et al</title>
		<link>http://www.lazydada.com/2010-02-06/i-heart-my-macbook-pro-dropbox-and-gmail/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=i-heart-my-macbook-pro-dropbox-and-gmail</link>
		<comments>http://www.lazydada.com/2010-02-06/i-heart-my-macbook-pro-dropbox-and-gmail/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 00:29:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=582</guid>
		<description><![CDATA[or I *sync* my Mac Pro and MacBook Pro with Dropbox and Gmail Cloud enabled local web development? That&#8217;s an oxymoron &#8212; right? Explain. I prefer to develop/design using MAMP as it&#8217;s quicker and doesn&#8217;t rely on a sketchy internet connection. While I have a main powerhouse of a Mac Pro under my desk I [...]]]></description>
			<content:encoded><![CDATA[<h3><span style="font-weight: normal;">or</span> <em>I *sync* my Mac Pro and MacBook Pro with Dropbox and Gmail</em></h3>
<p>Cloud enabled local web development? That&#8217;s an oxymoron &#8212; right? <em>Explain. </em>I prefer to develop/design using MAMP as it&#8217;s quicker and doesn&#8217;t rely on a sketchy internet connection. While I have a main powerhouse of a Mac Pro under my desk I also use a very capable little MacBook Pro.*</p>
<p><em>Anyway</em></p>
<p>I was on the road today &#8211; and finally felt the full advantage of getting myself fully into <em><a href="http://en.wikipedia.org/wiki/Cloud_computing">The Cloud</a></em><em>. </em></p>
<p>The main issue? Synchronising my digital self across more than one computer. Storage and email are the main issues&#8230;</p>
<p><em><span style="font-style: normal;">While according to some Apple&#8217;s dot Mac/MobileMe may well be the current cream of cloud subscription services in North America &#8211; out here in backwater Europe </span><span style="font-style: normal;">performance is sh*te. Particularly iDisk. While Apple&#8217;s webmail is good &#8211; it&#8217;s trying too hard to be a desktop application and failing. </span></em></p>
<p><em><span style="font-style: normal;">For storage I can&#8217;t recommend <a href="https://www.dropbox.com/">Dropbox</a> enough and for e-mail there&#8217;s <a href="http://www.gmail.com/">Gmail</a>&#8230; </span></em></p>
<h2>Dropbox</h2>
<p>Now I&#8217;ve got my Sites folder (and  a few salient folders of <em>Work In Progress</em>) in Amazon&#8217;s S3 cloud via Dropbox. The free service is great (2GB) and the paid versions (50/100GB) are not expensive&#8230;</p>
<ul>
<li>It&#8217;s easy.</li>
<li>It&#8217;s speedy. One of the technical features of the system is that files are stored as blobs of hashed deltas (wikipedia says it betterer )… popular files are recognized and appear online without having to be transferred &#8211; for example some reference books and software libraries that uploaded very smartly.</li>
<li>It&#8217;s nimble. As the thing works with deltas and blobs it&#8217;s also quick to mirror things when you&#8217;ve just been making minor edits or rearranging things.</li>
<li>30 days of versioning for all your files - TimeMachine in the Cloud!</li>
</ul>
<h3>Syncing external folders (e.g. ~/Sites ) across multiple machines with Dropbox</h3>
<p>Thanks to <a href="http://www.briefnotes.net/dropbox.php">this post</a> I found the answer&#8230;</p>
<p>[NB - your short user name needs to be the same on all your Macs! If not then go <a href="http://www.macworld.com/article/132693/2008/03/changeshortusername.html">here</a> and read part three "The Full Monty"...]</p>
<p>The steps to synchronising your ~/Sites folder (or any folder that you don&#8217;t want to move into the Dropbox watched folder ) between two or more Macs are:</p>
<ol>
<li>temporarily turn off Dropbox on both machines</li>
<li>make your first sync manually between them (use a direct connection &#8211; or load up a USB stick/external HD)</li>
<li>create symlinks into your Dropbox folder on both machines. Create the symlink by typing a command into a Terminal window&#8230; it goes a little something like this: <span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; white-space: pre;">ln -s  /path/to/folder/name_desired_folder ~/Dropbox/desired-folder</span></li>
<li>then restart Dropbox on both machines</li>
</ol>
<p>Now I&#8217;m coding on the go with hassle-free syncing and backup. That is nice.</p>
<h3><strong>Email</strong></h3>
<p>Well I&#8217;ve become a Gmail man. It may not be pretty but Gmail has threaded conversations done properly and labels. Took me a while to get used to threaded conversations [takes me a while to get most things!] but now I find them indispensable. Gmail&#8217;s generally very good at keeping quoted text out of your face making the threads very readable. Obviously threaded conversations aren&#8217;t so useful if people veer off-track or forsake the reply button in favour of the new message. Offline access was not robust in Safari and now it&#8217;s not an option as Mac OS 10.6 won&#8217;t have it.  So I still use Mail.app as a backup.</p>
<h3>Still on MobileMe/dotMac</h3>
<p>The missing links&#8230; I&#8217;m still on Mobile Me and using it for Address Book, Calendar and Keychain synching. [My FTP favourites too thank's to Panic's Mobile Me implementation in their FTP app Transmit]. Tied into this is Apple&#8217;s iSync application which is keeping my mobiles in step. Until Google&#8217;s address book improves drastically I&#8217;m not considering a move.</p>
<p>*Not just for the occasional bit Road Warrior stuff but also we do sometimes vacate this town for more than a couple of days plus mains power is also a bit of an issue round here! Sometime I need to use my laptop in the office (I do have a UPS but it doesn&#8217;t last very long with the beast.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2010-02-06/i-heart-my-macbook-pro-dropbox-and-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display proper maintenance page with .htaccess</title>
		<link>http://www.lazydada.com/2009-06-08/display-proper-maintenance-page-with-htaccess/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=display-proper-maintenance-page-with-htaccess</link>
		<comments>http://www.lazydada.com/2009-06-08/display-proper-maintenance-page-with-htaccess/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 10:28:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[maintenance]]></category>
		<category><![CDATA[server side]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=359</guid>
		<description><![CDATA[Create a decent &#8220;sorry this site is down for maintenace&#8221; page with a &#8220;have a Nice day&#8221; message then when you do need to upgrade things use the following htaccess rewrite rule to forward all traffic to this page. Adapted from Marco’s Webdev Notepad RewriteEngine on RewriteCond %{REMOTE_ADDR} !^83\.57\.178\.37$ RewriteRule !maintenance/index.html /maintenance/index.html [L,NC,R=302] From Ask [...]]]></description>
			<content:encoded><![CDATA[<p>Create a decent &#8220;sorry this site is down for maintenace&#8221; page with a &#8220;have a Nice day&#8221; message then when you do need to upgrade things use the following htaccess rewrite rule to forward all traffic to this page.</p>
<p>Adapted from <a href="http://blog.t14g.de/index.php/archives/819">Marco’s Webdev Notepad</a></p>
<pre>RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^83\.57\.178\.37$
RewriteRule !maintenance/index.html /maintenance/index.html [L,NC,R=302]</pre>
<p>From <a href="http://www.askapache.com/">Ask Apache</a> (I like)</p>
<pre>ErrorDocument 403 http://www.sub.domain.com/
Order deny,allow
Deny from all
Allow from 83.57.178.37</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2009-06-08/display-proper-maintenance-page-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MAMP stacked (Mac OS X 10.5)</title>
		<link>http://www.lazydada.com/2009-06-05/mamp-stacked/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mamp-stacked</link>
		<comments>http://www.lazydada.com/2009-06-05/mamp-stacked/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 22:17:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[10.5]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=350</guid>
		<description><![CDATA[UPDATE: I&#8217;ve upgraded to Snow Leopard (Mac OS X 10.6) and the following instructions are no longer entirely valid as Marc Liyanage&#8217;s PHP package hasn&#8217;t been upgraded to work in the Snow. Want to get MAMP on Mac OS X 10.6? If you&#8217;re on 10.5 you may read on&#8230; Want to roll a MAMP stack [...]]]></description>
			<content:encoded><![CDATA[<p>UPDATE: I&#8217;ve upgraded to Snow Leopard (Mac OS X 10.6) and the following instructions are no longer entirely valid as Marc Liyanage&#8217;s PHP package hasn&#8217;t been upgraded to work in the Snow.</p>
<p>Want to get <a href="http://www.lazydada.com/2009-11-16/mamp-stacked-mac-os-x-10-6/">MAMP on Mac OS X 10.6</a>?</p>
<p>If you&#8217;re on 10.5 you may read on&#8230;</p>
<p>Want to roll a <acronym>MAMP</acronym> stack of your own to enable proper local web development? Try these steps to getting you own development environment:</p>
<p>1. Swap the Apple package of PHP for Marc Liyanage&#8217;s package of <a href="http://www.entropy.ch/software/macosx/php/">PHP for Mac OS X</a>. Read his notes &#8211; only takes a minute. His version has useful &#8220;extras&#8221; like the mcrypt extension that Apple doesn&#8217;t include: you&#8217;ll want that for phpMyAdmin. (If you&#8217;ve already started Apple&#8217;s version &#8211; you&#8217;ll know how to stop it by re-commenting the <code>LoadModule php5_module</code> line in your http.conf file )</p>
<p>2. Get yourself <a href="http://patrickgibson.com/utilities/virtualhost/">virtualhost.sh</a> from Patrick Gibson. This little shell script will make the process of setting up proper virtual domains on your development server a cinch. I use &#8220;.dev&#8221; or &#8220;.live&#8221; as the TLD to prevent any conflict with the live sites. (Although now I&#8217;ve started using Git I may just drop the separation between live and development branch domains on my development box. I still put all my sites in my ~/Sites folder though.</p>
<p>3. Get a <a href="http://dev.mysql.com/downloads/mysql/5.0.html">Mac OS X MySQL package</a> &#8211; (not the latest build but v5.0.x) from the good folks at MySQL. If you&#8217;ve already got another version installed &#8211; here&#8217;s <a href="http://steveno.wordpress.com/2009/03/26/uninstall-mysql-on-mac-os-x/">how to uninstal MySQL from a Mac</a> (NB &#8211; this will delete your databases too!).</p>
<p>4. Give your MySQL root user a password; type the following into the Terminal:<br />
<code>/usr/local/mysql/bin/mysqladmin -u root password sniggle</code><br />
&#8230;if you like <code>sniggle</code> as a passowrd that is.</p>
<p>5. Now you can administer your MySQL server with <a href="http://www.phpmyadmin.net/home_page/index.php">phpMyAdmin</a> and the root user you&#8217;ve just defined.  (There are other tools too &#8211; eg MySQL Administrator &#8211; but I&#8217;m used to phpMyAdmin from the hosting packeges I use). You may want to virtualhost phpMyAdmin to, for example, &#8220;http://mysql/&#8221;. Love virtualhost.sh.</p>
<p>6. Then for each [dynamic] site you&#8217;ll probably want to add a user and then associate a DB with that user. Do this in phpMyAdmin in one step using the Privileges pane fill in &#8220;Add a new User&#8221;/then select &#8220;Create database with same name and grant all privileges&#8221;. Job&#8217;s a good &#8216;un.</p>
<p>Done and not long-winded at-all at-all!</p>
<p>[Originally posted as a reply in <a href="http://groups.google.com/group/coda-users/browse_thread/thread/80323da5039c2581">Panic's Coda forum</a>... Lots of love for MAMP Pro - a serious contender - and for just 40€... ]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2009-06-05/mamp-stacked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More PNG transparency notes</title>
		<link>http://www.lazydada.com/2009-05-10/more-png-notes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=more-png-notes</link>
		<comments>http://www.lazydada.com/2009-05-10/more-png-notes/#comments</comments>
		<pubDate>Sun, 10 May 2009 10:24:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[PNG]]></category>
		<category><![CDATA[webdesign]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=325</guid>
		<description><![CDATA[Via thinkvitamin and  tipster: a couple of notes that may resolve a couple of outstanding issues I&#8217;ve had with PNG24 transparency use&#8230; Set width and height for the element/s containing the transparent background image [...] (also, bear in mind that the background images can no longer be tiled or positioned via &#8216;background-position&#8217;) Apply  position: relative; to [...]]]></description>
			<content:encoded><![CDATA[<p>Via <a href="http://thinkvitamin.com/design/css/handy-tips-to-help-you-out/">thinkvitamin</a> and  <a href="http://tipster.carsonified.com/categories/css/transparent-background-images-png-fix-for-ie6-a-fe/">tipster</a>: a couple of notes that may resolve a couple of outstanding issues I&#8217;ve had with PNG24 transparency use&#8230;</p>
<blockquote><p>Set width and height for the element/s containing the transparent background image [...] (also, bear in mind that the background images can no longer be tiled or positioned via &#8216;background-position&#8217;)</p>
<div>Apply  <code>position: relative;</code> to any contained links to ensure functionality</div>
</blockquote>
<p>The first point means I&#8217;ll probably not bother trying to tile a drop-shadow background image to a variable length column again. Time to switch to progressive enhancement with Photoshop CS4/Fireworks/other tools&#8217; ability to stuff alpha transparency into  regular PNG8 files.</p>
<p>The second point is probably the better answer to my last <a href="http://www.lazydada.com/2009-02-22/ie6-link-bug-over-png/">PNG problem</a> post.</p>
<p>Main post about how to work with <a href="http://www.lazydada.com/2008-10-18/full-alpha-transparency-for-png-images-and-css-backgrounds-in-ie6/">PNG24 alpha transparency and IE6</a> &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2009-05-10/more-png-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DOCUMENT_ROOT trailing slash issues?</title>
		<link>http://www.lazydada.com/2009-04-28/document_root-trailing-slash-issues/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=document_root-trailing-slash-issues</link>
		<comments>http://www.lazydada.com/2009-04-28/document_root-trailing-slash-issues/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 22:02:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=297</guid>
		<description><![CDATA[Do you have a web server and a development server rendering different versions of the $_SERVER['DOCUMENT_ROOT'] superglobal? Mmm, me too. I&#8217;d have pulled my hair out if I had any. Made me feel rather defeated after thinking I&#8217;d fixed things so that one DB connect call would work on two+ servers. Fancy that &#8211; PHP [...]]]></description>
			<content:encoded><![CDATA[<p>Do you have a web server and a development server rendering different versions of the <code>$_SERVER['DOCUMENT_ROOT']</code> superglobal?</p>
<p>Mmm, me too. I&#8217;d have pulled my hair out if I had any. Made me feel rather defeated after thinking I&#8217;d fixed things so that one DB connect call would work on two+ servers. Fancy that &#8211; PHP behaving unpredictably &#8211; anybody would think I was <del datetime="2009-04-27T21:39:06+00:00">playing</del>working very hard with CSS.</p>
<p>[<br />
I had finally got round to using substr to trim the <code>public_html</code>part off a DocumentRoot path to get me an absolutely relative link to a safe place...<br />
ie  <code>(substr($_SERVER['DOCUMENT_ROOT'], 0, -12). )</code><br />
ie keeping the DB connect information out of the public view<br />
]</p>
<p>Anyway for how to fix the trailing slash problem you should point your google at the <a href="http://groups.google.com/group/nzphpug/browse_thread/thread/4d0a6dd0796ff083?pli=1">New Zealand PHP advocates</a> or crib directly from here:</p>
<p><code>$_SERVER['DOCUMENT_ROOT'] .=<br />
(substr($_SERVER['DOCUMENT_ROOT'],-1)=='/')?'':'/';</code></p>
<p>We *heart* Nathan Kennedy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2009-04-28/document_root-trailing-slash-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[MAMP stack] OpenGoo install in Mac OS X 10.5</title>
		<link>http://www.lazydada.com/2009-04-21/opengoo-install-in-mac-os-x-105/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=opengoo-install-in-mac-os-x-105</link>
		<comments>http://www.lazydada.com/2009-04-21/opengoo-install-in-mac-os-x-105/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 17:29:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Project management]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=283</guid>
		<description><![CDATA[DON&#8217;T READ THIS! READ THIS. Or How to setup a MAMP Stack on&#8230; Mac OS X: a proper write up. Please disregard the gubbins on this post&#8230; [OK - this was going to be a simple step-by-step account of how to install a particular project management system on a Mac OS X box. That particular [...]]]></description>
			<content:encoded><![CDATA[<p>DON&#8217;T READ THIS! <a href="http://www.lazydada.com/2009-06-05/mamp-stacked/">READ THIS</a>.</p>
<h3>Or <span style="color: #000000;"><span style="text-decoration: none;"><a href="http://www.lazydada.com/2009-06-05/mamp-stacked/">How to setup a MAMP Stack on&#8230; Mac OS X</a>:</span></span> a proper write up.</h3>
<p>Please disregard the gubbins on this post&#8230;</p>
<p>[OK - this was going to be a simple step-by-step account of how to install  a particular project management system on a Mac OS X box. That particular project stalled but I learnt a few things about how to get a [M]AMP stack setup to the point a which I can continue&#8230; ]</p>
<p>Need a project management package. So far requirements and research lead to Open Goo.</p>
<ul style="text-align: left; ">
<li>Download package from <a href="http://www.opengoo.org/downloads.html">OpenGoo</a>.</li>
<li>Create a MySQL database for it.
<ul>
<li>Download and instal <a href="http://www.phpmyadmin.net/">PHP My Admin</a>. <a href="http://www.phpmyadmin.net/documentation/">Nice documentation</a>.</li>
</ul>
<ul style="text-align: left; ">
<li>
<ul style="text-align: left; ">
<li>[unstuff it and put the folder into ~/Sites/ , for example]</li>
<li>virtualhost it</li>
</ul>
<ul style="text-align: left; ">
<li>setup config.inc.php with <a href="http://www.geektimedesign.com/geek-stuff/tools-blowfish-generator.cfm">blowfish key</a></li>
</ul>
</li>
<li><span style="text-decoration: line-through;">f</span><span style="text-decoration: line-through;">ix socket error (?)</span>
<ul style="text-align: left; ">
<li><span style="text-decoration: line-through;">http://dev.mysql.com/doc/refman/5.0/en/mac-os-x-installation.html: edit (with TextWrangler of course) /etc/php.ini so that  &#8221;mysql.default_socket = /tmp/mysql.sock&#8221;</span></li>
</ul>
</li>
<li><span style="text-decoration: line-through;">Fix mcrypt error: &#8220;Cannot load </span><a href="http://php.net/mcrypt" target="Documentation"><em><span style="text-decoration: line-through;">mcrypt</span></em></a><span style="text-decoration: line-through;"> extension. Please check your PHP configuration&#8221;</span></li>
<li>Ditch the default OS X PHP install in favour of Marc Liyanage&#8217;s packaged instal of <a href="http://www.entropy.ch/software/macosx/php/">PHP for Mac OS X</a>
<ul style="text-align: left; ">
<li>If already set up the Apple version of PHP &#8211; make sure it&#8217;s disabled:  &#8221;<code>LoadModule php5_module</code>&#8220;  in <code>/private/etc/apache2/httpd.conf</code> shoul commented out</li>
<li>Download and run Marc&#8217;s installer from the link above. RTFM mind &#8211; but it&#8217;s a cinch. The new PHP files will now be in <code>/usr/local/php5</code>.</li>
<li>Also <a href="http://steveno.wordpress.com/2009/03/26/uninstall-mysql-on-mac-os-x/">ditch any previously installed MySQL</a>
<ul style="text-align: left; ">
<li>sudo rm /usr/local/mysql</li>
<li>sudo rm -rf /usr/local/mysql*</li>
<li>sudo rm -rf /Library/StartupItems/MySQLCOM</li>
<li>sudo rm -rf /Library/PreferencePanes/My*</li>
<li>edit /etc/hostconfig and remove the line MYSQLCOM=-YES-</li>
<li>sudo rm -rf /Library/Receipts/mysql*</li>
<li>sudo rm -rf /Library/Receipts/MySQL*</li>
</ul>
</li>
</ul>
</li>
<li>install to match the PHP  package to <a href="http://dev.mysql.com/downloads/mysql/5.0.html">MySQL 5.0.77</a></li>
</ul>
</li>
<li>Create a privileged MySQL user. (Any user may log in without  a password to get an anonymous session: &#8220;No Privileges&#8221;. Mac OS X user account &#8211; or _mysql. At this stage  log in without a password.)
<ul style="text-align: left; ">
<li><a href="http://www.phpmyadmin.net/documentation/#intro">phpMyAdmin can manage a whole MySQL server (needs a super-user) as well as a single database. To accomplish the latter you&#8217;ll need a properly set up MySQL user who can read/write only the desired database. It&#8217;s up to you to look up the appropriate part in the MySQL manual.</a></li>
</ul>
</li>
<li>Ye-har! Who&#8217;d of guessed&#8230; <a href="http://developer.apple.com/internet/opensource/osdb.html">Apple&#8217;s MySQL documentation</a> was where to find simple instructions for how to give the MySQL root user a password &#8211; and hence succeed to log inwith privileges. Terminal command: <code>/usr/local/mysql/bin/mysqladmin -u root password sniggle</code>. Where sniggle is your choice for a secure password.</li>
<li>For each DB user you should add that user with an MySQL query:<br />
<code>CREATE USER 'user1'@'localhost' IDENTIFIED BY'pass1';</code></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2009-04-21/opengoo-install-in-mac-os-x-105/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery in anger</title>
		<link>http://www.lazydada.com/2009-04-17/jquery-in-anger/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=jquery-in-anger</link>
		<comments>http://www.lazydada.com/2009-04-17/jquery-in-anger/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 19:10:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[webdesign]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=228</guid>
		<description><![CDATA[[notes to self] Shadowbox Tooltip highlightFade http://jquery.offput.ca/highlightFade/old.php jquery.validate.js Lovely, lightweight carousel: http://www.gmarwaha.com/jquery/jcarousellite/ http://www.noupe.com/jquery/50-amazing-jquery-examples-part1.html http://www.jasonbradbury.com/]]></description>
			<content:encoded><![CDATA[<p>[notes to self]<br />
<strong> </strong></p>
<p><strong>Shadowbox</strong><br />
<strong> </strong></p>
<p><strong>Tooltip</strong></p>
<p><strong></strong><strong>highlightFade</strong></p>
<p>http://jquery.offput.ca/highlightFade/old.php</p>
<p><strong>jquery.validate.js</strong></p>
<p><strong>Lovely, lightweight carousel:<br />
<span style="font-weight: normal;">http://www.gmarwaha.com/jquery/jcarousellite/</span></strong></p>
<p>http://www.noupe.com/jquery/50-amazing-jquery-examples-part1.html</p>
<p>http://www.jasonbradbury.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2009-04-17/jquery-in-anger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tiny URL?</title>
		<link>http://www.lazydada.com/2009-04-14/tiny-url/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tiny-url</link>
		<comments>http://www.lazydada.com/2009-04-14/tiny-url/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 20:33:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[URLs]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=266</guid>
		<description><![CDATA[Zeldman&#8217;s just posted about the current mini-storm about URL shortening services&#8230; I love his understated way. While the debate about these services &#8211; and, as an adjunct, feed scraping, we should look to our webdev monkey skills to roll our own solutions. He, yer Zeldman, doesn&#8217;t state as much in B&#38;W but his example shows [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.zeldman.com/2009/04/14/tiny-url-big-trouble/">Zeldman&#8217;s</a> just posted about the current mini-storm about URL shortening services&#8230;  </p>
<p>I love his understated way. While the debate about these services &#8211; and, as an adjunct, <a href="http://twitter.com/hotdogsladies/status/1465570303">feed scraping</a>, we should look to our webdev monkey skills to roll our own solutions. He, yer Zeldman, doesn&#8217;t state as much in B&amp;W but <a href="http://twitter.com/zeldman/status/1478498391">his example</a> shows his own tiny URL. How? The simple redirect. </p>
<p>Whether or not this is done with a mod_rewrite rule or by any means necessary [dreams of CMS modules in my mind] &#8211; the fact is that it is easy a pie to make your own Tiny URLs and publish them hand in hand with the original article. Every article should have a permalink and a short version. </p>
<p>Of course &#8211; the redirect solution presupposes your domain isn&#8217;t <a href="http://en.wikipedia.org/wiki/Longest_word_in_English">www.pneumonoultramicroscopicsilicovolcanoconiosis.com</a>&hellip; </p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2009-04-14/tiny-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subdomains on localhost in Mac OS X 10.5 Leopard</title>
		<link>http://www.lazydada.com/2008-11-19/subdomains-on-localhost-in-mac-os-x-105-leopard/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=subdomains-on-localhost-in-mac-os-x-105-leopard</link>
		<comments>http://www.lazydada.com/2008-11-19/subdomains-on-localhost-in-mac-os-x-105-leopard/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 17:39:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=167</guid>
		<description><![CDATA[/code.google.com/p/virtualhost-sh/ code.google.com/p/virtualhost-sh/wiki/VirtualhostsOverNetwork patrickgibson.com/utilities/virtualhost/ how-to-setup-development-domains-on-os-x/]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/virtualhost-sh/" target="_blank">/code.google.com/p/virtualhost-sh/</a></p>
<p><a href="http://code.google.com/p/virtualhost-sh/wiki/VirtualhostsOverNetwork" target="_blank">code.google.com/p/virtualhost-sh/wiki/VirtualhostsOverNetwork</a></p>
<p><a href="http://patrickgibson.com/utilities/virtualhost/" target="_blank">patrickgibson.com/utilities/virtualhost/</a></p>
<p><a href="http://theappleblog.com/2006/11/21/how-to-setup-development-domains-on-os-x/">how-to-setup-development-domains-on-os-x/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2008-11-19/subdomains-on-localhost-in-mac-os-x-105-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache with PHP and SSI on Mac OS X 10.5 Leopard in two minutes</title>
		<link>http://www.lazydada.com/2008-11-07/apache-with-php-and-ssi-on-mac-os-x-105-leopard-in-two-minutes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=apache-with-php-and-ssi-on-mac-os-x-105-leopard-in-two-minutes</link>
		<comments>http://www.lazydada.com/2008-11-07/apache-with-php-and-ssi-on-mac-os-x-105-leopard-in-two-minutes/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 13:57:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[leopard 10.5]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ssi]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=157</guid>
		<description><![CDATA[[Update - see here. I wouldn't recommend the Apple PHP distro anymore as it has shortcomings. Roll your MAMP!] See full description for PHP here, for activating SSI here. Add PHP with debugging Activate: goto /private/etc/apache2/httpd.conf and uncomment LoadModule php5_module . Save. Add debugging: In Terminal type: cd /private/etc sudo cp php.ini.default php.ini Edit said [...]]]></description>
			<content:encoded><![CDATA[<p>[Update - see <a href="http://www.lazydada.com/2009-04-21/opengoo-install-in-mac-os-x-105/">here</a>. I wouldn't recommend the Apple PHP distro anymore as it has shortcomings. Roll your MAMP!]<br />
See full <a href="http://foundationphp.com/tutorials/php_leopard.php" target="_blank">description for PHP here</a>, for <a href="http://forums.macosxhints.com/showpost.php?p=479766&#038;postcount=11" target="_blank">activating SSI here</a>.</p>
<h2>Add PHP with debugging</h2>
<p><b>Activate:</b> goto <code>/private/etc/apache2/httpd.conf</code> and uncomment <code>LoadModule php5_module</code> . Save.<br />
<b>Add debugging:</b> In Terminal type:<br />
<code> cd /private/etc<br />
sudo cp php.ini.default php.ini</code><br />
Edit said <code>php.ini</code>: change<br />
<code>error_reporting = E_ALL &#038; ~E_NOTICE</code> to<br />
<code>error_reporting = E_ALL</code> .Save </p>
<h2>Add SSI</h2>
<p>Go back to <code>/private/etc/apache2/httpd.conf</code>&hellip;</p>
<blockquote><p>
1. Uncomment these lines from the <code>&lt;ifmodule mime_module></code> stanza:<br />
<code>AddType text/html .shtml and<br />
AddOutputFilter INCLUDES .shtml </code></p>
<p>2. Add &#8220;Includes&#8221; to the &#8220;Options&#8221; statement in the <code>&lt;directory "/Library/WebServer/Documents"></code> stanza (so it now reads<br />
<code>Options Indexes FollowSymLinks MultiViews Includes</code>)</p>
<p>3. [Re]start Apache with <code>sudo apachectl graceful</code>
</p></blockquote>
<p>Job&#8217;s a good &#8216;un. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2008-11-07/apache-with-php-and-ssi-on-mac-os-x-105-leopard-in-two-minutes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
