<?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>Haig Armen &#187; Code</title>
	<atom:link href="http://www.haigarmen.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.haigarmen.com</link>
	<description>a play by play commentary</description>
	<lastBuildDate>Thu, 26 Jan 2012 23:54:07 +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>Install Apache/PHP/MySQL on Snow Leopard</title>
		<link>http://www.haigarmen.com/install-apachephpmysql-on-snow-leopard/</link>
		<comments>http://www.haigarmen.com/install-apachephpmysql-on-snow-leopard/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 06:19:22 +0000</pubDate>
		<dc:creator>Haig</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[open Source]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.haigarmen.com/?p=104</guid>
		<description><![CDATA[If you design &#038; develop websites and use a mac you&#8217;ll most definitely need to test code locally. A large percentage of today&#8217;s open source content management systems are built on Apache, PHP, MySQL and there are two common ways to make those three things work in Os X. The first method is by using [...]]]></description>
			<content:encoded><![CDATA[<p>If you design &#038; develop websites and use a mac you&#8217;ll most definitely need to test code locally. A large percentage of today&#8217;s open source content management systems are built on Apache, PHP, MySQL and there are two common ways to make those three things work in Os X.</p>
<p>The first method is by using MAMP, which a lot of people do but most of the code ninjas I know all insist on running the versions of Apache and PHP that come with Os X and installing MySQL by hand. Here&#8217;s how to do it:</p>
<p><P><strong>1. Apache</strong><br />
Start Apache</P><br />
<code>sudo apachectl start</code></p>
<p><P>Check to see if it&#8217;s working: <a href="http://localhost/">http://localhost/</a></P></p>
<p><strong>2. PHP</strong></p>
<p>
In /etc/apache2/httpd.conf, uncomment this line:</P><br />
<code>LoadModule php5_module        libexec/apache2/libphp5.so</code></p>
<p><P>Restart Apache</P><br />
<code>sudo apachectl restart</code></p>
<p><P>Fix a warning appearing in phpinfo()<br />
Create /etc/php.ini and make it writable</P><br />
<code>cd /etc<br />
sudo cp php.ini.default php.ini<br />
sudo chmod 666 php.ini<br />
</code></p>
<p><P>In php.ini, find this line:</P><br />
;date.timezone =</p>
<p><P>Uncomment it and insert your time zone (http://php.net/manual/en/timezones.php)</P><br />
<code>date.timezone =America/Vancouver</code></p>
<p><P>Restart Apache</P><br />
<code>sudo apachectl restart</code></p>
<p><strong>3. MySQL</strong><br />
<P><a href="http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg">Download the MySQL package</a> for Mac OS X.5 (32 or 64 bits depending on your machine)</P><br />
<P><br />
Install everything in the package in this order: mysql, the startup item, the preference pane.</P><br />
Start MySQL in the preference pane.</p>
<p><P>Test it&#8217;s working:</P><br />
<code>/usr/local/mysql/bin/mysql</code><br />
<P><br />
Fix mysql.sock location in php.ini<br />
In /etc/php.ini, replace the three occurences of /var/mysql/mysql.sock by /tmp/mysql.sock<br />
</P><br />
<code>pdo_mysql.default_socket=/tmp/mysql.sock<br />
mysql.default_socket = /tmp/mysql.sock<br />
mysqli.default_socket = /tmp/mysql.sock<br />
</code></p>
<p><P>Restart Apache</P><br />
<code>sudo apachectl restart</code></p>
<p><strong>Activate PHP short tags</strong><br />
<P>In /etc/php.ini, under Language Options, change</P><br />
<code>short_open_tag = On</code></p>
<p><P>Restart Apache</P><br />
<code>sudo apachectl restart</code><br />
<BR></p>
]]></content:encoded>
			<wfw:commentRss>http://www.haigarmen.com/install-apachephpmysql-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>See Ya, Wouldn&#8217;t Want to be ya</title>
		<link>http://www.haigarmen.com/see-ya-wouldnt-want-to-be-ya/</link>
		<comments>http://www.haigarmen.com/see-ya-wouldnt-want-to-be-ya/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 17:17:39 +0000</pubDate>
		<dc:creator>haig</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[IE 6]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://www.haigarmen.com/?p=34</guid>
		<description><![CDATA[Until now, Web Designers have had to test all of their designs in IE 6 before launching a website, because so many Windows users still use it. Fortunately, those days are coming to an end. Microsoft is planning to force all Windows users to upgrade their Internet Explorer version to IE 7. This is extremely [...]]]></description>
			<content:encoded><![CDATA[<p>Until now, Web Designers have had to test all of their designs in IE 6 before launching a website, because so many Windows users still use it. Fortunately, those days are coming to an end. Microsoft is planning to <a href="http://www.infoworld.com/article/08/01/17/Microsoft-warns-businesses-of-autoupdate-to-IE7_1.html">force all Windows users to upgrade their Internet Explorer version to IE 7</a>. This is extremely welcoming news to the Web Design community. What it means is that they will no longer have to test their designs in IE 6, especially now that it’s being discontinued. There was a similar feeling among Web Designers a few years ago when Microsoft decided to discontinue Internet Explorer for Mac – another disaster of a browser.</p>
<p>To get an idea of how frustrating it is to develop sites for IE 6,  I’ll give you an example from a typical project. At Lift we initially code our HTML (XHTML and CSS) and test it in <a href="http://www.mozilla.com/en-US/firefox/">Firefox</a> or <a href="http://www.apple.com/safari/">Safari</a>. It generally doesn’t matter which one we use for our initial testing, because both of those browsers are considered standards compliant, which means they should render correctly if the code was written well. We tend to use Firefox more often as there are a slew of indispensible tools for debugging sites like the <a href="http://chrispederick.com/work/web-developer/">Web Developer</a> Toolbar and <a href="http://www.getfirebug.com/">Firebug</a>. After we finish the coding, we then test it in IE 7. IE 7 is a surprisingly good browser – not perfect, but good. It handles CSS very well and also supports transparent PNGs. The last step – usually the most painful – is making it work in IE 6. Since we often use a lot of AJAX, CSS and transparent PNGs in our designs, we end up having to spend hours creating hacks and workarounds to make everything render correctly in IE 6. It’s timely, expensive and it pisses us off to no end.</p>
<p>Forcing Windows users to finally update to IE 7 will shave off countless hours of needless hacking and additional coding, which is a welcomed sigh of relief. Although Microsoft’s reasons for forcing the update on Windows users is because of security, the only reason for Web Designers is because it will take IE out of the dark ages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.haigarmen.com/see-ya-wouldnt-want-to-be-ya/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tree in a Forest</title>
		<link>http://www.haigarmen.com/tree-in-a-forest/</link>
		<comments>http://www.haigarmen.com/tree-in-a-forest/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 17:03:16 +0000</pubDate>
		<dc:creator>haig</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[genealogy]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://blog.haigarmen.com/?p=26</guid>
		<description><![CDATA[I&#8217;m curious about genealogy. Maybe it has something to do with being Armenian and having your family tree cut off after only a few generations, but I&#8217;ve recently been looking into software to enable genealogy tracking. What I&#8217;ve found is the following software: Family Tree Maker (PC) Legacy Family Tree (PC) RootsMagic (PC) REUNION (Mac) [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.haigarmen.com/wp-content/uploads/2008/01/tree_reflection.jpg" alt="tree_reflection.jpg" /></p>
<p>I&#8217;m curious about genealogy. Maybe it has something to do with being Armenian and having your family tree cut off after only a few generations, but I&#8217;ve recently been looking into software to enable genealogy tracking.  What I&#8217;ve found is the following software:<br />
<a href="http://www.familytreemaker.com/"> Family Tree Maker</a> (PC)<br />
<a href="http://www.legacyfamilytree.com/"> Legacy Family Tree</a> (PC)<br />
<a href="http://www.rootsmagic.com/"> RootsMagic</a> (PC)<br />
<a href="http://www.leisterpro.com/"> REUNION</a> (Mac)<br />
<a href="http://www.onlymac.de/html/stammbaum4en.html"> MacFamily Tree</a> (Mac)</p>
<p>They all seemed somewhat amateur and small, if not completely dated. I realized that this is a perfect opportunity for an online application. After all, you need a community of people inputing data into it, to be effective.  Wikipedia had a few <a href="http://en.wikipedia.org/wiki/Genealogy_software">open-source genealogy options.</a></p>
<p>As a trial, I&#8217;ve installed <a href="http://www.phpgedview.net/">phpGedView</a> at <a href="http://www.treeinaforest.com/">treeinaforest.com</a> to give it a whirl. My first impression is that it seems fairly comprehensive but lacking in usability and aesthetics.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.haigarmen.com/tree-in-a-forest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clean Up Time</title>
		<link>http://www.haigarmen.com/dreamhost-cleanup/</link>
		<comments>http://www.haigarmen.com/dreamhost-cleanup/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 04:32:03 +0000</pubDate>
		<dc:creator>haig</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[backing up]]></category>
		<category><![CDATA[clean-up]]></category>
		<category><![CDATA[reboot]]></category>

		<guid isPermaLink="false">http://blog.haigarmen.com/?p=23</guid>
		<description><![CDATA[This is just a reminder for me to start doing some major cleaning up. It&#8217;s been a really busy year and in many aspects there has been a lot of loose ends left behind. The clean up starts now. The list starts here: My Dreamhost account: lots of stray orphans here. It&#8217;s time to round [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a reminder for me to start doing some major cleaning up. It&#8217;s been a really busy year and in many aspects there has been a lot of loose ends left behind. The clean up starts now. The list starts here:</p>
<ol>
<li><strong>My Dreamhost account:</strong> lots of stray orphans here. It&#8217;s time to round up the unused domains and testing sites, back them up and then throw them to the fire.</li>
<li><strong>Teaching Resources: </strong>consolidate  all those lectures and online bits of blogs, wikis and such and throw them into a box.</li>
<li><strong>The Lab:</strong> a place on my computer for experimentation &#8211; Design patterns, colour palettes, sketches, ActionScript code. All will be gathered and organized and backed up.</li>
<li><strong>Goodbye Microsoft: </strong>I&#8217;ve tried doing this before but now the tools seem to be there to leave the Microsoft software behind.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.haigarmen.com/dreamhost-cleanup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Rails on Leopard</title>
		<link>http://www.haigarmen.com/installing-rails-on-leopard/</link>
		<comments>http://www.haigarmen.com/installing-rails-on-leopard/#comments</comments>
		<pubDate>Fri, 21 Dec 2007 17:53:53 +0000</pubDate>
		<dc:creator>Haig</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[open Source]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[RubyOnRails]]></category>

		<guid isPermaLink="false">http://blog.haigarmen.com2007/01/21/and-one-more-posting/</guid>
		<description><![CDATA[I&#8217;ve been working with RubyOnRails for about a year now. Now that I&#8217;ve got a new MacBookPro I&#8217;ve got to reinstall Rails on Leopard. Although there&#8217;s a fair bit online about the subject it&#8217;s still a pretty counter intuitive process for designer types like myself. Getting answers once you hit a barrier can be difficult. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working with <a href="http://www.rubyonrails.org/">RubyOnRails</a> for about a year now. Now that I&#8217;ve got a new MacBookPro I&#8217;ve got to reinstall Rails on Leopard. Although there&#8217;s a fair bit online about the subject it&#8217;s still a pretty counter intuitive process for designer types like myself.<br />
<span id="more-16"></span><br />
Getting answers once you hit a barrier can be difficult. Programmers are sometimes the worse people that you could possibly ask about this stuff. Most don&#8217;t seem to want to share their &#8216;open source&#8217; knowledge and the ones that do are willing to share aren&#8217;t the teaching types. Of course, the best place to look for answers is usually google and an account at <a href="http://www.lynda.com">Lynda.com</a>.</p>
<p>Installing Rails on Leopard was easier than on Panther. Leopard actually comes with PHP, MySQLite &#038; Rails and just needs some configuring.</p>
<p>A good place to start is here:<br />
<a href="http://developer.apple.com/tools/developonrailsleopard.html">http://developer.apple.com/tools/developonrailsleopard.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.haigarmen.com/installing-rails-on-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Don’t Blame the CMS</title>
		<link>http://www.haigarmen.com/don%e2%80%99t-blame-the-cms/</link>
		<comments>http://www.haigarmen.com/don%e2%80%99t-blame-the-cms/#comments</comments>
		<pubDate>Thu, 11 Oct 2007 06:58:02 +0000</pubDate>
		<dc:creator>Haig</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.haigarmen.com/?p=53</guid>
		<description><![CDATA[Content Management Systems are great. They’ve become more flexible and easier to implement, allowing companies big and small to have the ability to manage the content on their websites without breaking the bank. There’s a problem though, and it’s not a technology one. It’s a people problem. If you’re having trouble managing the content on [...]]]></description>
			<content:encoded><![CDATA[<h4>Content Management Systems are great. They’ve become more flexible and easier to implement, allowing companies big and small to have the ability to manage the content on their websites without breaking the bank.</h4>
<p>There’s a problem though, and it’s not a technology one. It’s a people problem. If you’re having trouble managing the content on your Web site, it’s because you have an editorial process problem. Your public-facing Web site is a publication. You need to treat it like one.</p>
<p>“You need an editorial staff in place to make the content on your site as interesting and consistent as it can be. That staff may just be one executive editor, but nothing should go online without that person’s approval. As your Web strategy grows, so too should that staff.”</p>
<p>Thanks <a onclick="javascript:pageTracker._trackPageview('/outbound/article/thinkubator.ccsp.sfu.ca');" href="http://thinkubator.ccsp.sfu.ca/OrganizingPrinciple">JMax</a> for finding <a onclick="javascript:pageTracker._trackPageview('/outbound/article/www.adaptivepath.com');" href="http://www.adaptivepath.com/ideas/essays/archives/000315.php">this older article</a> on Adaptive Path.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.haigarmen.com/don%e2%80%99t-blame-the-cms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActiveCollab Goes Commercial</title>
		<link>http://www.haigarmen.com/activecollab-goes-commercial/</link>
		<comments>http://www.haigarmen.com/activecollab-goes-commercial/#comments</comments>
		<pubDate>Sat, 06 Oct 2007 07:05:30 +0000</pubDate>
		<dc:creator>Haig</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.haigarmen.com/?p=59</guid>
		<description><![CDATA[It’s no surprise that I&#8217;m a big fan of open source software, after all, I use software like WordPress and Drupal a lot. I have also been a strong believer in ActiveCollab, an open source project management software, and so it came as a big surprise when they decided to close their open source model [...]]]></description>
			<content:encoded><![CDATA[<h4>It’s no surprise that I&#8217;m a big fan of open source software, after all, I use software like WordPress and Drupal a lot. I have also been a strong believer in ActiveCollab, an open source project management software, and so it came as a big surprise when they decided to close their open source model and go to a pay-per-use model.</h4>
<p>The open source community that was supporting ActiveCollab was furious. After dedicating time and money to develop mods, themes and plugins for the software many left mad. The people behind ActiveCollab did another 180 and completely changed their pricing model to a much more affordable $399 with added features. Most of the community built around the software is still pissed and will probably turn to other solutions. Here’s what huge hosting service Dreamhost has to say</p>
<p>“WELL IT’S TOO LATE FOR SORRY!!!<br />
We’ve ALREADY dropped activeCollab as one of our one-clicks we offer.”</p>
<p>There are plans to move into Basecamp’s market with the software. With only the slight advantage of running ActiveCollab on your own server rather than Basecamp’s hosting model will only win hardcore programmer types. Basecamp is the leader in the online project management market and will barely feel the pressure. This definitely illustrates the adage of “great programmers don’t make great business people”</p>
<p>Now that ActiveCollab is leaving the world of open source the playing field is pretty much wide open for a comprehensive open source project management framework. There’s an early Rails clone out there called <a onclick="javascript:pageTracker._trackPageview('/outbound/article/rubyforge.org');" href="http://rubyforge.org/projects/railscollab">RailsCollab</a> that doesn’t seem to be moving very quickly. There’s also Dot project which I don’t feel is very usable software as of yet. Possible a good user interface overhaul would help bring it up to see. Hey, a new project idea!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.haigarmen.com/activecollab-goes-commercial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tufte’s Sparklines</title>
		<link>http://www.haigarmen.com/tufte%e2%80%99s-sparklines/</link>
		<comments>http://www.haigarmen.com/tufte%e2%80%99s-sparklines/#comments</comments>
		<pubDate>Tue, 17 Jul 2007 07:14:09 +0000</pubDate>
		<dc:creator>Haig</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://www.haigarmen.com/?p=66</guid>
		<description><![CDATA[Lately there’s been a lot of talk about Edward Tufte. Who is he? He may be the only designer with a roadie. If you have yet to read any of his books you will find depth and clarity in his explanations of information design that simplifies complex data systems. Or perhaps you could read his [...]]]></description>
			<content:encoded><![CDATA[<p>Lately there’s been a lot of talk about <a onclick="javascript:pageTracker._trackPageview('/outbound/article/www.edwardtufte.com');" href="http://www.edwardtufte.com/tufte/">Edward Tufte</a>. Who is he? He may be the only designer with a <a href="http://industrialbrand.com/blog/id-roadie-for-edward-tufte">roadie</a>.</p>
<p>If you have yet to read any of his books you will find depth and clarity in his explanations of information design that simplifies complex data systems. Or perhaps you could read his amazing <a onclick="javascript:pageTracker._trackPageview('/outbound/article/www.edwardtufte.com');" href="http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001yB&amp;topic_id=1">essay</a> on how Microsoft’s powerPoint software is making presenters and audiences cater to the lowest common denominator. Wired has an <a onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wired.com');" href="http://www.wired.com/wired/archive/11.09/ppt2.html">article</a> on the subject.</p>
<p><img class="alignnone size-full wp-image-68" title="sparklines" src="http://www.haigarmen.com/wp-content/files/2007/07/sparklines.jpg" alt="sparklines" width="210" height="108" /></p>
<p>One of his favourite info graphic devices is <a onclick="javascript:pageTracker._trackPageview('/outbound/article/www.edwardtufte.com');" href="http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR">Sparklines</a>, which he describes as “Intense, simple word-sized graphics”. He has a section in his latest book “Beautiful Evidence” on the subject. This micro graphic format seems to be spreading across the web quickly with open source solutions that offer simple snippets of code that generate Sparklines.</p>
<p>Here are some:<br />
- <a onclick="javascript:pageTracker._trackPageview('/outbound/article/www.lodgephoto.com');" href="http://www.lodgephoto.com/articles/sparklines.htm">Javascript generator for Photoshop</a><br />
- <a onclick="javascript:pageTracker._trackPageview('/outbound/article/sparkline.org');" href="http://sparkline.org/">http://sparkline.org/</a><br />
- <a onclick="javascript:pageTracker._trackPageview('/outbound/article/nubyonrails.com');" href="http://nubyonrails.com/pages/sparklines">Sparklines for Ruby On Rails</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.haigarmen.com/tufte%e2%80%99s-sparklines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

