<?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/"
	>

<channel>
	<title>Mark Evans - Web Consultant</title>
	<atom:link href="http://www.markalanevans.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markalanevans.com</link>
	<description>Resourceful...Efficient...Productive</description>
	<pubDate>Thu, 04 Mar 2010 20:04:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OSX and Apache .htaccess allow mode rewrite</title>
		<link>http://www.markalanevans.com/2010/01/28/osx-and-apache-htaccess-allow-mode-rewrite/</link>
		<comments>http://www.markalanevans.com/2010/01/28/osx-and-apache-htaccess-allow-mode-rewrite/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 05:36:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[How To]]></category>

		<category><![CDATA[Website Development]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=157</guid>
		<description><![CDATA[So today i had to get Apache, PHP and Mysql running again on my macbook after installing a new hardrive.
PHP is installed already so thats fine. Mysql a simple download and install.  I stick to the 32 bit for now as it not everything plays nicely w/ the 64 bit. Especially not with Python.
Apache [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>So today i had to get Apache, PHP and Mysql running again on my macbook after installing a new hardrive.</p>
<p>PHP is installed already so thats fine. Mysql a simple download and install.  I stick to the 32 bit for now as it not everything plays nicely w/ the 64 bit. Especially not with Python.</p>
<p>Apache is naturally installed. Just need to turn on/off the internet sharing within the System Preferences Pane.</p>
<p>Then comes the tricky part.</p>
<p>In the http.conf file:   ensure that the line including the ModRewrite module is uncommented.</p>
<p>The line will look like this:</p>
<p><code>LoadModule rewrite_module libexec/apache2/mod_rewrite.so </code></p>
<p>Then go down to your system directive:</p>
<p>And make it look like this:<br />
<code><br />
&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride All<br />
# Order deny,allow<br />
# Deny from all<br />
&lt;/Directory&gt;</code></p>
<p>Also ensure that in the /etc/apache2/users/username.conf file that it looks like:<br />
<code><br />
&lt;Directory "/Users/username/Sites/"&gt;<br />
Options Indexes FollowSymLinks MultiViews<br />
AllowOverride all<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;</code></p>
<p>Additionally when defining your Extra Virtual hosts: Make sure to enable all the error logs etc:</p>
<p>ex:<br />
<code><br />
&lt;VirtualHost *:80&gt;<br />
ServerAdmin username@gmail.com<br />
DocumentRoot /Users/username/Sites/my.site.com<br />
ServerName local.site.com<br />
ServerAlias local.site.com<br />
RewriteLog "/Users/username/Sites/logs/my.site.com/rewrite_log"<br />
ErrorLog "/Users/username/Sites/logs/my.site.com/error_log"<br />
CustomLog "/Users/username/Sites/logs/my.site.com/access_log" common<br />
&lt;/VirtualHost&gt;</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2010/01/28/osx-and-apache-htaccess-allow-mode-rewrite/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CakePHP - Override .htacces to ignore directory</title>
		<link>http://www.markalanevans.com/2009/11/04/cakephp-override-htacces-to-ignore-directory/</link>
		<comments>http://www.markalanevans.com/2009/11/04/cakephp-override-htacces-to-ignore-directory/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 17:23:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=135</guid>
		<description><![CDATA[&#60;IfModule mod_rewrite.c&#62;
RewriteEngine on
RewriteRule    ^manager    -    [L]
RewriteRule    ^pma    -    [L]
RewriteRule    ^fm    -    [L]
RewriteRule    ^$ app/webroot/    [L]
RewriteRule    (.*) app/webroot/$1 [L]
&#60;/IfModule&#62;
]]></description>
			<content:encoded><![CDATA[<p>&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine on<br />
RewriteRule    ^manager    -    [L]<br />
RewriteRule    ^pma    -    [L]<br />
RewriteRule    ^fm    -    [L]<br />
RewriteRule    ^$ app/webroot/    [L]<br />
RewriteRule    (.*) app/webroot/$1 [L]<br />
&lt;/IfModule&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2009/11/04/cakephp-override-htacces-to-ignore-directory/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Can-Do.org  - Virtual Volunteer - Crow Creek Indian Reservation</title>
		<link>http://www.markalanevans.com/2009/10/15/can-doorg-virtual-volunteer-crow-creek-indian-reservation/</link>
		<comments>http://www.markalanevans.com/2009/10/15/can-doorg-virtual-volunteer-crow-creek-indian-reservation/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 05:57:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Changing the world]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=131</guid>
		<description><![CDATA[Project Crow Creek &#38; Can-DO.org
Bringing accountability and transparency to the Donation industry, we offer the tools to track your generosity from your hands, directly through to the end recipient, with nothing cut out for miscellaneous fees. Together, we can avoid the Donation Black Hole problem perpetuated by many charities. You will not need to wonder [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Can-Do &amp; Virtual Volunteer Making a difference at Crow Creek" href="http://www.can-do.org/virtualvolunteer/projectcrowcreek/" target="_blank">Project Crow Creek &amp; Can-DO.org</a></p>
<p>Bringing accountability and transparency to the Donation industry, we offer the tools to track your generosity from your hands, directly through to the end recipient, with nothing cut out for miscellaneous fees. Together, we can avoid the Donation Black Hole problem perpetuated by many charities. You will not need to wonder about where your money goes, we will show you every step of the way through a trackable, database. And more importantly, you can interact directly with those whose lives you have impacted, and follow their progress.</p>
<div class="wp-caption alignnone" style="width: 754px"><a href="http://www.can-do.org/virtualvolunteer/projectcrowcreek"><img title="Virtual Volunteer &amp; Crow Creek Project" src="http://www.can-do.org/virtualvolunteer/projectcrowcreek/img/flag_default_image.png" alt="US Flag worn and weathered." width="744" height="410" /></a><p class="wp-caption-text">US Flag worn and weathered.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2009/10/15/can-doorg-virtual-volunteer-crow-creek-indian-reservation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Installing Python &amp; mod_python on OS X 10.5 Leopard</title>
		<link>http://www.markalanevans.com/2009/10/15/installing-python-mod_python-on-os-x-105-leopard/</link>
		<comments>http://www.markalanevans.com/2009/10/15/installing-python-mod_python-on-os-x-105-leopard/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 05:51:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Website Development]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=129</guid>
		<description><![CDATA[Source: http://blog.ultranurd.net/0000/01/28/compiling-django-with-twitter-support-as-a-mac-os-x-universal-binary/#Python
Files:

MySQL 5.1.30
Python 2.6.1
setuptools 0.6c9-py2.6
MySQL-python 1.2.2
Django 1.0.2-final
simplejson 2.0.7
python-twitter 0.5
mod_python 3.3.1


Python
While python.org provides a nice OS X Installer package for 2.6.1, it is compiled as a 32-bit “fat” binary, which doesn’t help us address the Universality problem. We’ll use their script for generating a package as well as installing the framework directly, after some minor changes, [...]]]></description>
			<content:encoded><![CDATA[<h3>Source: http://blog.ultranurd.net/0000/01/28/compiling-django-with-twitter-support-as-a-mac-os-x-universal-binary/#Python</h3>
<h3>Files:</h3>
<ol>
<li><a title="Subsection MySQL" href="http://blog.ultranurd.net/0000/01/28/compiling-django-with-twitter-support-as-a-mac-os-x-universal-binary/#MySQL">MySQL</a> <a title="MySQL 5.1.30 gzipped tarball Mirrors Page" href="http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.30.tar.gz/from/pick">5.1.30</a></li>
<li><a title="Subsection Python" href="http://blog.ultranurd.net/0000/01/28/compiling-django-with-twitter-support-as-a-mac-os-x-universal-binary/#Python">Python</a> <a title="Python 2.6.1 gzipped tarball" href="http://www.python.org/ftp/python/2.6.1/Python-2.6.1.tgz">2.6.1</a></li>
<li><a title="Subsection setuptools" href="http://blog.ultranurd.net/0000/01/28/compiling-django-with-twitter-support-as-a-mac-os-x-universal-binary/#setuptools">setuptools</a> <a title="setuptools 0.6c9 Python 2.6 egg" href="http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c9-py2.6.egg#md5=ca37b1ff16fa2ede6e19383e7b59245a">0.6c9-py2.6</a></li>
<li><a title="Subsection MySQL-python" href="http://blog.ultranurd.net/0000/01/28/compiling-django-with-twitter-support-as-a-mac-os-x-universal-binary/#MySQL_python">MySQL-python</a> <a title="MySQL-python 1.2.2 gzipped tarball Mirrors Page" href="http://downloads.sourceforge.net/mysql-python/MySQL-python-1.2.2.tar.gz?modtime=1172959928&amp;big_mirror=0">1.2.2</a></li>
<li><a title="Subsection Django" href="http://blog.ultranurd.net/0000/01/28/compiling-django-with-twitter-support-as-a-mac-os-x-universal-binary/#Django">Django</a> <a title="Django 1.0.2-final gzipped tarball" href="http://www.djangoproject.com/download/1.0.2/tarball/">1.0.2-final</a></li>
<li><a title="Subsection simplejson" href="http://blog.ultranurd.net/0000/01/28/compiling-django-with-twitter-support-as-a-mac-os-x-universal-binary/#simplejson">simplejson</a> <a title="simplejson 2.0.7 gzipped tarball" href="http://pypi.python.org/packages/source/s/simplejson/simplejson-2.0.7.tar.gz#md5=9d02273f8615b8e3fceda891ffff10d1">2.0.7</a></li>
<li><a title="Subsection python-twitter" href="http://blog.ultranurd.net/0000/01/28/compiling-django-with-twitter-support-as-a-mac-os-x-universal-binary/#python_twitter">python-twitter</a> <a title="python-twitter 0.5 gzipped tarball" href="http://python-twitter.googlecode.com/files/python-twitter-0.5.tar.gz">0.5</a></li>
<li><a title="Subsection mod_python" href="http://blog.ultranurd.net/0000/01/28/compiling-django-with-twitter-support-as-a-mac-os-x-universal-binary/#mod_python">mod_python</a> <a title="mod_python 3.3.1 gzipped tarball Mirrors Page" href="http://httpd.apache.org/modules/python-download.cgi">3.3.1</a></li>
</ol>
<h3></h3>
<h3>Python</h3>
<p>While python.org provides a nice OS X Installer package for 2.6.1, it is compiled as a 32-bit “fat” binary, which doesn’t help us address the Universality problem. We’ll use their script for generating a package as well as installing the framework directly, after some minor changes, courtesy <a title="Python 2.6 fails on compiling &gt; Bug report" href="http://mail.python.org/pipermail/python-list/2009-January/523565.html">this mailing list post</a> by Ned Deily.</p>
<p>If you’re feeling particularly trustworthy, you can download the disk image containing the Installer package that I built <a title="Python 2.6.1 Mac OS X Leopard Installer Package Disk Image" href="http://www.ultranurd.net/code/python/python-2.6.1-macosx2009-01-27.dmg">from my website</a>. If not, you can make the changes yourself. Either way, Python.framework will be installed in /Library/Frameworks/.</p>
<p>In the Python 2.6.1 source directory, open the file <code>Mac/BuildScript/build-installer.py</code> in your favorite editor, and make the following changes on lines 1, 65, 68, 71, 633, and 1020:</p>
<blockquote><p><code>1c1<br />
&lt; #!/usr/bin/python2.3<br />
---<br />
&gt; #!/usr/bin/python<br />
65c65<br />
&lt; DEPSRC = os.path.expanduser('~/Universal/other-sources')<br />
---<br />
&gt; #DEPSRC = os.path.expanduser('~/Universal/other-sources')<br />
68c68<br />
&lt; SDKPATH = "/Developer/SDKs/MacOSX10.4u.sdk"<br />
---<br />
&gt; SDKPATH = "/Developer/SDKs/MacOSX10.5.sdk"<br />
71c71<br />
&lt; ARCHLIST = ('i386', 'ppc',)<br />
---<br />
&gt; ARCHLIST = ('i386', 'ppc', 'x86_64', 'ppc64')<br />
633c633<br />
&lt; runCommand("%s -C --enable-framework --enable-universalsdk=%s LDFLAGS='-g -L%s/libraries/usr/local/lib' OPT='-g -O3 -I%s/libraries/usr/local/include' 2&gt;&amp;1"%(<br />
---<br />
&gt; runCommand("%s -C --enable-framework --enable-universalsdk=%s --with-universal-archs=all LDFLAGS='-g -L%s/libraries/usr/local/lib' OPT='-g -O3 -I%s/libraries/usr/local/include' 2&gt;&amp;1"%(<br />
1020c1020<br />
&lt;     os.environ['MACOSX_DEPLOYMENT_TARGET'] = &#8216;10.3&#8242;<br />
&#8212;<br />
&gt;     os.environ['MACOSX_DEPLOYMENT_TARGET'] = &#8216;10.5&#8242;<br />
</code></p></blockquote>
<p>You’ll note that some of the changes migrate this script to 10.5 (the hashbang path to Python, the deployment target and SDK version), and some of the changes add support for a Universal binary (adding to the architecture list. It’s possible that some of these changes will be fixed in a future source release of Python 2.6, but I’d guess that most efforts are focused on Python 3.0 at this point.</p>
<p>Once you’ve made the changes, just run the script. You need to be in the BuildScript subdirectory, unless you want to change some of the tmp paths the script uses. This script will do everything, build the framework, download and build any dependencies, install the framework, and generate a disk image. Just sit back and wait!</p>
<blockquote><p><code>cd /usr/local/src/Python-2.6.1/Mac/BuildScript/</code></p>
<p><code>./build-installer.py<br />
</code></p></blockquote>
<p>Depending on your shell configuration, you may need to make changes. In my <code>$PATH</code> <code>/usr/local/bin/</code> trumps <code>/usr/bin/</code>, and I want to keep the Leopard system install of Python 2.5 in place in <code>/System/Library/</code> and <code>/usr/bin/</code>. Here’s what I did:</p>
<blockquote><p><code>cd /usr/local/bin/</code></p>
<p><code>for py in `find /Library/Frameworks/Python.framework/Versions/2.6/bin -name py*`; do ln -s $py; done;</code></p></blockquote>
<p>This creates a symlink in <code>/usr/local/bin/</code> for each of the various just-build Python binaries inside the framework (you’ll not that this is equivalent to the system install). If you run <code>which python</code> now, it should return <code>/usr/local/bin/python</code>. If not, adjust your $PATH as needed in your shell configuration file. This is beyond the scope of this post.</p>
<h3>mod_python</h3>
<p>Sadly, we end with some pain. Long story short, <code>mod_python</code> relies on <code>apxs</code> (the <a title="APache eXtenSion tool" href="http://httpd.apache.org/docs/2.2/programs/apxs.html">APache eXtenSion tool</a>, best abbreviation ever) to configure its build, and does not obey any amount of environment variable manipulation to pass in multiple architectures. <code>apxs</code> retrieves useful compiler options, apparently based on the ones used to build your local copy apache… and herein lies the problem. <code>apxs</code> reads those flags from <code>/usr/share/httpd/build/config_vars.mk</code>, and if you inspect that file, you’ll see that there are no <code>CFLAGS</code> or <code>LDFLAGS</code> specified. This is particularly odd, considering that <code>httpd</code> is clearly running as a 64-bit process (according to Activity Monitor), and <code>file</code> reports that all of my other shared objects in <code>/usr/libexec/apache2/</code> are Universal binaries.</p>
<p>This next bit is my idea, since I couldn’t find any suggestions by googling around. I know perl, so I just read the <code>apxs</code> script to figure out what it was doing, and how it was passing arguments to <code>libtool</code>.</p>
<p><strong>This is probably a terrible idea.</strong></p>
<p>Make a backup of <code>config_vars.mk</code> before adding the four architecture flags to <code>CFLAGS</code> and <code>LDFLAGS</code> on lines 59 and 62:</p>
<blockquote><p><code>59c59<br />
&lt; CFLAGS =<br />
---<br />
&gt; CFLAGS = -arch i386 -arch x86_64 -arch ppc7400 -arch ppc64<br />
62c62<br />
&lt; LDFLAGS =<br />
---<br />
&gt; LDFLAGS = -arch i386 -arch x86_64 -arch ppc7400 -arch ppc64<br />
</code></p></blockquote>
<p>If you run <code>apxs -q CFLAGS</code> or <code>apxs -q LDFLAGS</code>, you’ll see these values, instead of empty strings.</p>
<p>Now just run the standard autoconf procedure to build and  install <code>mod_python.so</code> in <code>/usr/libexec/apache2/</code>:</p>
<blockquote><p><code>cd /usr/local/src/mod_python-3.3.1/</code></p>
<p><code>./configure</code></p>
<p><code>make</code></p>
<p><code>cd test</code></p>
<p><code>python test.py</code></p>
<p><code>cd ..</code></p>
<p><code>make</code></p>
<p><code>sudo make install</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2009/10/15/installing-python-mod_python-on-os-x-105-leopard/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Key Value Pair Database: Fast Full Text Searches</title>
		<link>http://www.markalanevans.com/2009/08/23/key-value-pair-database-fast-full-text-searches/</link>
		<comments>http://www.markalanevans.com/2009/08/23/key-value-pair-database-fast-full-text-searches/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 20:54:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Website Development]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=126</guid>
		<description><![CDATA[Store Data for full text searches in key:value pairs.
Tokyo DB
http://www.igvita.com/2009/02/13/tokyo-cabinet-beyond-key-value-store/
]]></description>
			<content:encoded><![CDATA[<p>Store Data for full text searches in key:value pairs.</p>
<p>Tokyo DB</p>
<p><a href="http://www.igvita.com/2009/02/13/tokyo-cabinet-beyond-key-value-store/" target="_blank">http://www.igvita.com/2009/02/13/tokyo-cabinet-beyond-key-value-store/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2009/08/23/key-value-pair-database-fast-full-text-searches/feed/</wfw:commentRss>
		</item>
		<item>
		<title>siFR: CSS, Flash &amp; the fonts you love.</title>
		<link>http://www.markalanevans.com/2009/08/23/sifr-css-flash-the-fonts-you-love/</link>
		<comments>http://www.markalanevans.com/2009/08/23/sifr-css-flash-the-fonts-you-love/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 20:52:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Website Development]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=124</guid>
		<description><![CDATA[A really slick way to have any font you want on your website.
http://www.mikeindustries.com/blog/sifr/
]]></description>
			<content:encoded><![CDATA[<p>A really slick way to have any font you want on your website.</p>
<p><a title="siFR" href="http://www.mikeindustries.com/blog/sifr/" target="_blank">http://www.mikeindustries.com/blog/sifr/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2009/08/23/sifr-css-flash-the-fonts-you-love/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Syncronize, Repositories, Backup, Git, SVN</title>
		<link>http://www.markalanevans.com/2009/06/15/syncronize-repositories-backup-git-svn/</link>
		<comments>http://www.markalanevans.com/2009/06/15/syncronize-repositories-backup-git-svn/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 20:30:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Website Development]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=121</guid>
		<description><![CDATA[I have come across some really great places to deal with file backups, syncing, and repository building.
File Syncing:
http://www.samba.org/rsync/
http://www.getdropbox.com
http://www.cis.upenn.edu/~bcpierce/unison/
Repository:
http://git-scm.com/
]]></description>
			<content:encoded><![CDATA[<p>I have come across some really great places to deal with file backups, syncing, and repository building.</p>
<p>File Syncing:</p>
<p style="padding-left: 30px;">http://www.samba.org/rsync/</p>
<p style="padding-left: 30px;">http://www.getdropbox.com</p>
<p style="padding-left: 30px;">http://www.cis.upenn.edu/~bcpierce/unison/</p>
<p>Repository:</p>
<p style="padding-left: 30px;">http://git-scm.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2009/06/15/syncronize-repositories-backup-git-svn/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Enable mail() PHP, on OSX Leopard</title>
		<link>http://www.markalanevans.com/2009/06/03/enable-mail-php-on-osx-leopard/</link>
		<comments>http://www.markalanevans.com/2009/06/03/enable-mail-php-on-osx-leopard/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 20:48:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=115</guid>
		<description><![CDATA[I found this here: http://jspr.tndy.me/2008/05/php-mail-and-osx-leopard/ Credit goes to him:
There are 4 files I used for the following:

/etc/hostconfig
/etc/postfix/main.cf
php.ini (this could be anywhere depending on your installation, mine’s in /usr/local/php5/lib/)
/var/log/mail.log

firstly, sudo nano -w /etc/hostconfig and add the following line:
MAILSERVER=-YES-
then sudo nano -w /etc/postfix/main.cf, find the myhostname variable (by default it’s host.domain.tld), uncomment it and change it to [...]]]></description>
			<content:encoded><![CDATA[<p>I found this here: http://jspr.tndy.me/2008/05/php-mail-and-osx-leopard/ Credit goes to him:</p>
<p>There are 4 files I used for the following:</p>
<ul>
<li>/etc/hostconfig</li>
<li>/etc/postfix/main.cf</li>
<li>php.ini (this could be anywhere depending on your installation, mine’s in /usr/local/php5/lib/)</li>
<li>/var/log/mail.log</li>
</ul>
<p>firstly, sudo nano -w /etc/hostconfig and add the following line:</p>
<pre>MAILSERVER=-YES-</pre>
<p>then sudo nano -w /etc/postfix/main.cf, find the myhostname variable (by default it’s host.domain.tld), uncomment it and change it to your domain (if you’re on a machine that doesn’t have a DNS, you can make it a domain that you’re responsible for so that it doesn’t get shut down at the receiving end, but please don’t make it google.com or something like that!)</p>
<p>now, open php.ini and look for the sendmail_path variable, uncomment it, make its value sendmail -t -i, save then restart apache. I’m not really sure if this is 100% necessary as there’s a comment above that says this is the default value anyway, but it can’t hurt!</p>
<p>now open a terminal window and execute the next couple of commands:</p>
<pre>% sudo postfix start
% tail -f /var/log/mail.log</pre>
<p>finally, create a file called mail.php (or whatever!) and add the following to it:</p>
<pre>&lt;?php
mail(
  'you@yourdomain.com', // your email address
  'Test', // email subject
  'This is an email', // email body
  "From: Me &lt;me@mydomain.com&gt;rn" // additional headers
);
?&gt;</pre>
<p>obviously replace you@yourdomain.com with your email address and me@mydomain.com with a valid email address (domain at least, as some mail servers will bounce your email if the sender’s domain isn’t real). Now navigate to your mail.php file (likely http://localhost/mail.php) and watch your terminal window to see that it’s been sent successfully. If it hasn’t, let me know if you fixed it and I’ll update this - it’s annoying to me that there isn’t really an answer to this question that I can find so the more comprehensive this is, the more helpful!.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2009/06/03/enable-mail-php-on-osx-leopard/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How To: Setup Virtual Hosts on OS X</title>
		<link>http://www.markalanevans.com/2009/06/01/how-to-setup-virtual-hosts-on-os-x/</link>
		<comments>http://www.markalanevans.com/2009/06/01/how-to-setup-virtual-hosts-on-os-x/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 05:52:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[How To]]></category>

		<category><![CDATA[Website Development]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=111</guid>
		<description><![CDATA[http://mark-kirby.co.uk/2008/setting-up-virtual-hosts-on-os-x-leopard/
]]></description>
			<content:encoded><![CDATA[<p><a href="http://mark-kirby.co.uk/2008/setting-up-virtual-hosts-on-os-x-leopard/" target="_blank">http://mark-kirby.co.uk/2008/setting-up-virtual-hosts-on-os-x-leopard/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2009/06/01/how-to-setup-virtual-hosts-on-os-x/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Copyright your Art, Writing, intellectual Property (IP)</title>
		<link>http://www.markalanevans.com/2009/06/01/copyright-your-art-writing-intellectual-property-ip/</link>
		<comments>http://www.markalanevans.com/2009/06/01/copyright-your-art-writing-intellectual-property-ip/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 05:15:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Copyright]]></category>

		<category><![CDATA[Website Development]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=98</guid>
		<description><![CDATA[Overview:
As a web developer or a website owner its important to know the the laws and processes you can perform, to protect your online work from being copied, plagiarized.
Reality Check:
It is impossible to prevent it from occurring, but you can take precautions and make life harder for those that would attempt to illegally take your [...]]]></description>
			<content:encoded><![CDATA[<h2>Overview:</h2>
<p>As a web developer or a website owner its important to know the the laws and processes you can perform, to protect your online work from being copied, plagiarized.</p>
<h2>Reality Check:</h2>
<p>It is impossible to prevent it from occurring, but you can take precautions and make life harder for those that would attempt to illegally take your work.</p>
<h2>How To Protect your:</h2>
<ul>
<li>
<h3>General:</h3>
<ul>
<li>Paid:
<ul>
<li><a title="U.S. Copyright" href="http://www.copyright.gov/forms/" target="_blank">U.S. Copyright</a>: File your work with the U.S. Copyright Dept.
<ul>
<li>Additional info: <a href="http://www.riger.com/articles/copyright.html" target="_blank">http://www.riger.com/articles/copyright.html</a></li>
</ul>
</li>
<li><a title="Lizard Lock" href="http://www.locklizard.com/" target="_blank">Lizard Lock</a>: (Untested) Lizard Lock provides a service that will achieve:
<ul>
<li> <strong>pdf security, flash security, html security, ebook security, elearning security, and software copy control</strong>.  Stop copying, prevent printing, and control the sharing of your documents, ebooks, training courses, and web content. Protect documents inside and outside your organization, and instantly revoke access to your secure information at any stage.</li>
</ul>
</li>
<li><a title="CopySentry" href="http://www.copyscape.com" target="_blank">Copysentry</a>: An online service that for a monthly fee compares your work against what is on the web and alerts you if it finds matches.</li>
</ul>
</li>
</ul>
</li>
<li>
<h3>Writing:</h3>
<ul>
<li>Online services you can use:
<ul>
<li>Free:
<ul>
<li><a title="Google Alerts" href="http://www.google.com/alerts" target="_blank">Google Alert</a>: With Google Alerts you can specify keywords (things that pertain to your works) and when Google finds articles online that match those words, you receive an email alert notifying you about new content online that it. You can then read the pages provided and if there is an issue you can proceed as appropriate.</li>
<li><a title="Digital Container" href="http://www.digitalcontainers.com/" target="_blank">Digital Container</a>: Digital container provides a secure method of selling, and distributing your content. However it enforces a few extra steps for your customer which you may want to take into consideration.</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>
<h3>Photography, Art, Images, Graphics:</h3>
<ul>
<li>Image:
<ul>
<li>Upload a lower resolution image, so that it won&#8217;t look that good when printing.</li>
<li>Embed a water mark: Here is a great <a title="Watermark Tutorial" href="http://www.all-things-photography.com/add-a-watermark.html" target="_blank">tutorial</a> on how to do a water mark in Adobe Photoshop as well as how to automate it.</li>
<li>Use a flash image gallery.</li>
</ul>
</li>
<li>Web Technology:
<ul>
<li>Prevent &#8220;Right Click&#8221;: disable the right click making it hard for users to copy the image.
<ul>
<li>Add this to your websites HTML BODY tag:   &lt;body <strong>oncontextmenu=&#8221;return             false;&#8221;</strong>&gt;</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>
<h3>Website:</h3>
<ul>
<li>Add copyright to the bottom of your page in one of the following forms:
<ul>
<li>(c) Name 2001</li>
<li>Copr. Name 2001</li>
<li>Copyright Name MMI</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>If you have other ideas about what can be done please post them here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2009/06/01/copyright-your-art-writing-intellectual-property-ip/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
