<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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>Comments for Marked As Pertinent</title>
	<atom:link href="http://bjclark.me/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://bjclark.me</link>
	<description>rails, design, art, business by BJ Clark</description>
	<lastBuildDate>Tue, 24 Jan 2012 16:26:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Working Software by Matt White</title>
		<link>http://bjclark.me/2012/01/working-software/comment-page-1/#comment-1601</link>
		<dc:creator>Matt White</dc:creator>
		<pubDate>Tue, 24 Jan 2012 16:26:15 +0000</pubDate>
		<guid isPermaLink="false">http://bjclark.me/?p=252#comment-1601</guid>
		<description>Reminds me of a kid I &quot;worked with&quot; in college who was obsessed with his programming solutions that were fast, but didn&#039;t always work right away. Mine were usually slower but they worked and got the job done. Programmers have a serious obsession with premature optimization which usually leads to longer delivery times and less-working software. Just get the job done as quickly as possible correctly (mostly from a user&#039;s perspective) and then make it better.</description>
		<content:encoded><![CDATA[<p>Reminds me of a kid I &#8220;worked with&#8221; in college who was obsessed with his programming solutions that were fast, but didn&#8217;t always work right away. Mine were usually slower but they worked and got the job done. Programmers have a serious obsession with premature optimization which usually leads to longer delivery times and less-working software. Just get the job done as quickly as possible correctly (mostly from a user&#8217;s perspective) and then make it better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Expanding on the Law of Demeter by Avdi</title>
		<link>http://bjclark.me/2011/07/law-of-demeter/comment-page-1/#comment-1458</link>
		<dc:creator>Avdi</dc:creator>
		<pubDate>Thu, 04 Aug 2011 05:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://bjclark.me/?p=235#comment-1458</guid>
		<description>Well said!

For the record, I think that the type-based view of Demeter would definitely flag your example and call for a rewrite. Just as one example, &quot;!version.special_case&quot; is interacting with a type (Version) which is neither in the method&#039;s signature nor among the class&#039; members. As far as I can tell.

BTW, thank you for correctly characterizing my view of AR&#039;s role in a class. I do indeed think of AR as an external dependency posing as part of a class.</description>
		<content:encoded><![CDATA[<p>Well said!</p>
<p>For the record, I think that the type-based view of Demeter would definitely flag your example and call for a rewrite. Just as one example, &#8220;!version.special_case&#8221; is interacting with a type (Version) which is neither in the method&#8217;s signature nor among the class&#8217; members. As far as I can tell.</p>
<p>BTW, thank you for correctly characterizing my view of AR&#8217;s role in a class. I do indeed think of AR as an external dependency posing as part of a class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Expanding on the Law of Demeter by Jim Gay</title>
		<link>http://bjclark.me/2011/07/law-of-demeter/comment-page-1/#comment-1430</link>
		<dc:creator>Jim Gay</dc:creator>
		<pubDate>Wed, 27 Jul 2011 18:45:10 +0000</pubDate>
		<guid isPermaLink="false">http://bjclark.me/?p=235#comment-1430</guid>
		<description>This is how I intuitively approached application design when I first began. 
Long ago, my business partner (the technical guy) was pissed to find that I had designed a few classes this way. I was stunned, but ok, what do I know. I was going from graphic design into development.
He reversed my code and made it a shining example of structural coupling and I quietly tried to understand because the reasoning I got was something like &quot;Martin Fowler says so, read this book&quot;. I didn&#039;t read the book and had no idea who that was (not sure if that was even the name he dropped)

Since then I&#039;ve seen many university trained developers write code like this.</description>
		<content:encoded><![CDATA[<p>This is how I intuitively approached application design when I first began.<br />
Long ago, my business partner (the technical guy) was pissed to find that I had designed a few classes this way. I was stunned, but ok, what do I know. I was going from graphic design into development.<br />
He reversed my code and made it a shining example of structural coupling and I quietly tried to understand because the reasoning I got was something like &#8220;Martin Fowler says so, read this book&#8221;. I didn&#8217;t read the book and had no idea who that was (not sure if that was even the name he dropped)</p>
<p>Since then I&#8217;ve seen many university trained developers write code like this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Expanding on the Law of Demeter by Matt White</title>
		<link>http://bjclark.me/2011/07/law-of-demeter/comment-page-1/#comment-1418</link>
		<dc:creator>Matt White</dc:creator>
		<pubDate>Mon, 25 Jul 2011 04:50:44 +0000</pubDate>
		<guid isPermaLink="false">http://bjclark.me/?p=235#comment-1418</guid>
		<description>Great post, BJ. This is stuff that I still need to improve on. It&#039;s easy to spot the obvious violations in code but sometimes the behavioral ones are more subtle and go unnoticed</description>
		<content:encoded><![CDATA[<p>Great post, BJ. This is stuff that I still need to improve on. It&#8217;s easy to spot the obvious violations in code but sometimes the behavioral ones are more subtle and go unnoticed</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on From Zero to Rails Hero in 11 Easy Steps (Installing Rails on OS X 10.6.5) by Robert Graff</title>
		<link>http://bjclark.me/2010/11/from-zero-to-rails-hero-in-11-easy-steps/comment-page-1/#comment-680</link>
		<dc:creator>Robert Graff</dc:creator>
		<pubDate>Wed, 02 Mar 2011 20:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://bjclark.me/?p=159#comment-680</guid>
		<description>Step 9:

$ passenger-install-apache2-module

instead of

$ ./passenger-install-apache2-module</description>
		<content:encoded><![CDATA[<p>Step 9:</p>
<p>$ passenger-install-apache2-module</p>
<p>instead of</p>
<p>$ ./passenger-install-apache2-module</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Jambox by Jawbone Review by David</title>
		<link>http://bjclark.me/2010/11/jambox-by-jawbone-review/comment-page-1/#comment-477</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 29 Dec 2010 21:11:48 +0000</pubDate>
		<guid isPermaLink="false">http://bjclark.me/?p=170#comment-477</guid>
		<description>I&#039;m still a little confused by mine - the same song played from my iPhone which sounds great via bluetooth, sounds like rubbish from the Macbook Pro, bluetooth or wired - is this everyone else&#039;s experience?  Do i need to change a setting? I&#039;m seriously considering returning it...which i hate to because it sounds pretty good, but i&#039;m not convinced it was worth $200 if i can&#039;t even plug it in to get great sound from my laptop.</description>
		<content:encoded><![CDATA[<p>I&#8217;m still a little confused by mine &#8211; the same song played from my iPhone which sounds great via bluetooth, sounds like rubbish from the Macbook Pro, bluetooth or wired &#8211; is this everyone else&#8217;s experience?  Do i need to change a setting? I&#8217;m seriously considering returning it&#8230;which i hate to because it sounds pretty good, but i&#8217;m not convinced it was worth $200 if i can&#8217;t even plug it in to get great sound from my laptop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rubymine &#8211; A Love Story by Sharron Clemons</title>
		<link>http://bjclark.me/2010/03/rubymine-a-love-story/comment-page-1/#comment-468</link>
		<dc:creator>Sharron Clemons</dc:creator>
		<pubDate>Tue, 21 Dec 2010 20:19:03 +0000</pubDate>
		<guid isPermaLink="false">http://bjclark.me/?p=108#comment-468</guid>
		<description>I&#039;ve been using it again, and I think I&#039;m pretty sold. I agree that Cmd-B is super key. The other thing I like is that if you do something like generate a migration, the filename of the migration is a link, and thus opens it up. There are a lot of little things that are seeming to add up to be an overall win. I still need to get a few things more dialed in; and some other things are not ideal (GitX is overall better, but I&#039;ve been using the Changes tab and Cmd-D for diffs, and it&#039;s mostly working out). Next step is to get into their forums and start learning more, seeing how to fix/alter things that annoy me, etc.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been using it again, and I think I&#8217;m pretty sold. I agree that Cmd-B is super key. The other thing I like is that if you do something like generate a migration, the filename of the migration is a link, and thus opens it up. There are a lot of little things that are seeming to add up to be an overall win. I still need to get a few things more dialed in; and some other things are not ideal (GitX is overall better, but I&#8217;ve been using the Changes tab and Cmd-D for diffs, and it&#8217;s mostly working out). Next step is to get into their forums and start learning more, seeing how to fix/alter things that annoy me, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on From Zero to Rails Hero in 11 Easy Steps (Installing Rails on OS X 10.6.5) by Evil Ted</title>
		<link>http://bjclark.me/2010/11/from-zero-to-rails-hero-in-11-easy-steps/comment-page-1/#comment-392</link>
		<dc:creator>Evil Ted</dc:creator>
		<pubDate>Fri, 03 Dec 2010 19:10:26 +0000</pubDate>
		<guid isPermaLink="false">http://bjclark.me/?p=159#comment-392</guid>
		<description>OK, it was a pretty interesting exercise, but here is how to do it for OS X Server 10.6.x.
This was gleaned from numerous sites and documents and carefully pieced together, so if anyone recognizes any of their stuff here, thanks in advance :)

I think it makes a nice addition to your tutorial.

1. Remove default mysql installation

$ rm -rf /Library/StartupItems/MySQLCOM
$ rm -rf /Library/PreferencePanes/My*
$ vim /etc/hostconfig and removed the line MYSQLCOM=-YES-
$ rm -rf ~/Library/PreferencePanes/My*
$ rm -rf /Library/Receipts/mysql*
$ rm -rf /Library/Receipts/MySQL*
$ rm -rf /var/db/receipts/com.mysql.*

Also remove all files from these locations:

/usr/bin Client programs
/var/mysql Log files, databases
/usr/libexec The mysqld server
/usr/share/man Unix manual pages
/usr/share/mysql/mysql-test MySQL test suite
/usr/share/mysql Miscellaneous support files, including error messages, character set files, sample configuration
files, SQL for database installation
/var/mysql/mysql.sock Location of the MySQL Unix socket

NOTE: Most Important
OS X Server uses launchd to start the server at boot and uses the /System/Library/ location.

You need to unload it
$ launchctl unload -w /System/Library/LaunchDaemons/org.mysql.mysqld.plist

then delete it
$ rm /System/Library/LaunchDaemons/org.mysql.mysqld.plist

----------------------------------------------------------------------------------------------------

2. Install mysql via homebrew

$ brew install mysql

----------------------------------------------------------------------------------------------------

3. Edit /etc/my.cnf
You need to set the socket location and the &#039;tmp&#039; directory location (more on this in next section).

$ vim /etc/my.cnf

[client]
port = 3306
socket = /tmp/mysql.sock

[mysql.server]
user=mysql
basedir=/usr/local/var/mysql

[mysqld]
port = 3306
socket = /tmp/mysql.sock
tmpdir=/usr/local/var/mysql/tmp

----------------------------------------------------------------------------------------------------

4. Configure mysql

a) create mysql user and groups
# create the MySQL group
dscl . create /Groups/mysql
# give it some group id
dscl . create /Groups/mysql gid 296
# create a MySQL user
dscl . -create /Users/mysql
# make the MySQL user a member of the MySQL group
dscl . append /Groups/mysql GroupMembership mysql
# change ownership to mysql
cd /usr/local/var/mysql
chown -R mysql .
chgrp -R mysql .

b) Make a tmp directory. This gets rid of the default errors you get using mysql_install_db.

$ cd /usr/local/var/mysql
$ sudo mkdir tmp
$ sudo chown mysql:mysql tmp
$ sudo chmod 777 tmp

c) install mysql tables
mysql_install_db --user=mysql

d) Create a root password
mysqladmin -u root password your_root_password

e) Test launch as root
mysqld_safe --user=root &amp;
$ ps -e &#124; grep mysqld # should show running server process as root
$ killall mysqld

f) Test launch as mysql
$ mysqld_safe --user=mysql &amp;
$ ps -e &#124; grep mysqld # should show running server as mysql
$ killall mysqld

g) Configure to launch mysql server on boot with launchd

$ cp /usr/local/Cellar/mysql/5.x.xx/com.mysql.mysqld.plist /System/Library/LaunchDaemons

$ vim /System/Library/LaunchDaemons/com.mysql.mysql.plist

change user name from &#039;root&#039; to &#039;mysql&#039;

UserName
mysql

$ cd /System/Library/LaunchDaemons

$ launchctl unload com.mysql.mysqld.plist

$ launchctl load com.mysql.mysqld.plist

h) reboot server and test

$ sync;sync;reboot

wait for server to reboot and check server process is running as user &#039;mysql&#039;

ps -e &#124; grep mysqld


Et Voila!

Now gem install mysql works flawlessly and you have an upgraded version of mysql on OS X Server 10.6.x</description>
		<content:encoded><![CDATA[<p>OK, it was a pretty interesting exercise, but here is how to do it for OS X Server 10.6.x.<br />
This was gleaned from numerous sites and documents and carefully pieced together, so if anyone recognizes any of their stuff here, thanks in advance <img src='http://bjclark.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I think it makes a nice addition to your tutorial.</p>
<p>1. Remove default mysql installation</p>
<p>$ rm -rf /Library/StartupItems/MySQLCOM<br />
$ rm -rf /Library/PreferencePanes/My*<br />
$ vim /etc/hostconfig and removed the line MYSQLCOM=-YES-<br />
$ rm -rf ~/Library/PreferencePanes/My*<br />
$ rm -rf /Library/Receipts/mysql*<br />
$ rm -rf /Library/Receipts/MySQL*<br />
$ rm -rf /var/db/receipts/com.mysql.*</p>
<p>Also remove all files from these locations:</p>
<p>/usr/bin Client programs<br />
/var/mysql Log files, databases<br />
/usr/libexec The mysqld server<br />
/usr/share/man Unix manual pages<br />
/usr/share/mysql/mysql-test MySQL test suite<br />
/usr/share/mysql Miscellaneous support files, including error messages, character set files, sample configuration<br />
files, SQL for database installation<br />
/var/mysql/mysql.sock Location of the MySQL Unix socket</p>
<p>NOTE: Most Important<br />
OS X Server uses launchd to start the server at boot and uses the /System/Library/ location.</p>
<p>You need to unload it<br />
$ launchctl unload -w /System/Library/LaunchDaemons/org.mysql.mysqld.plist</p>
<p>then delete it<br />
$ rm /System/Library/LaunchDaemons/org.mysql.mysqld.plist</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>2. Install mysql via homebrew</p>
<p>$ brew install mysql</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>3. Edit /etc/my.cnf<br />
You need to set the socket location and the &#8216;tmp&#8217; directory location (more on this in next section).</p>
<p>$ vim /etc/my.cnf</p>
<p>[client]<br />
port = 3306<br />
socket = /tmp/mysql.sock</p>
<p>[mysql.server]<br />
user=mysql<br />
basedir=/usr/local/var/mysql</p>
<p>[mysqld]<br />
port = 3306<br />
socket = /tmp/mysql.sock<br />
tmpdir=/usr/local/var/mysql/tmp</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>4. Configure mysql</p>
<p>a) create mysql user and groups<br />
# create the MySQL group<br />
dscl . create /Groups/mysql<br />
# give it some group id<br />
dscl . create /Groups/mysql gid 296<br />
# create a MySQL user<br />
dscl . -create /Users/mysql<br />
# make the MySQL user a member of the MySQL group<br />
dscl . append /Groups/mysql GroupMembership mysql<br />
# change ownership to mysql<br />
cd /usr/local/var/mysql<br />
chown -R mysql .<br />
chgrp -R mysql .</p>
<p>b) Make a tmp directory. This gets rid of the default errors you get using mysql_install_db.</p>
<p>$ cd /usr/local/var/mysql<br />
$ sudo mkdir tmp<br />
$ sudo chown mysql:mysql tmp<br />
$ sudo chmod 777 tmp</p>
<p>c) install mysql tables<br />
mysql_install_db &#8211;user=mysql</p>
<p>d) Create a root password<br />
mysqladmin -u root password your_root_password</p>
<p>e) Test launch as root<br />
mysqld_safe &#8211;user=root &amp;<br />
$ ps -e | grep mysqld # should show running server process as root<br />
$ killall mysqld</p>
<p>f) Test launch as mysql<br />
$ mysqld_safe &#8211;user=mysql &amp;<br />
$ ps -e | grep mysqld # should show running server as mysql<br />
$ killall mysqld</p>
<p>g) Configure to launch mysql server on boot with launchd</p>
<p>$ cp /usr/local/Cellar/mysql/5.x.xx/com.mysql.mysqld.plist /System/Library/LaunchDaemons</p>
<p>$ vim /System/Library/LaunchDaemons/com.mysql.mysql.plist</p>
<p>change user name from &#8216;root&#8217; to &#8216;mysql&#8217;</p>
<p>UserName<br />
mysql</p>
<p>$ cd /System/Library/LaunchDaemons</p>
<p>$ launchctl unload com.mysql.mysqld.plist</p>
<p>$ launchctl load com.mysql.mysqld.plist</p>
<p>h) reboot server and test</p>
<p>$ sync;sync;reboot</p>
<p>wait for server to reboot and check server process is running as user &#8216;mysql&#8217;</p>
<p>ps -e | grep mysqld</p>
<p>Et Voila!</p>
<p>Now gem install mysql works flawlessly and you have an upgraded version of mysql on OS X Server 10.6.x</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on From Zero to Rails Hero in 11 Easy Steps (Installing Rails on OS X 10.6.5) by BJ Clark</title>
		<link>http://bjclark.me/2010/11/from-zero-to-rails-hero-in-11-easy-steps/comment-page-1/#comment-380</link>
		<dc:creator>BJ Clark</dc:creator>
		<pubDate>Thu, 02 Dec 2010 19:35:44 +0000</pubDate>
		<guid isPermaLink="false">http://bjclark.me/?p=159#comment-380</guid>
		<description>I have no experience with OS X Server newer than ~10.2. :)</description>
		<content:encoded><![CDATA[<p>I have no experience with OS X Server newer than ~10.2. <img src='http://bjclark.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on From Zero to Rails Hero in 11 Easy Steps (Installing Rails on OS X 10.6.5) by EvilTed</title>
		<link>http://bjclark.me/2010/11/from-zero-to-rails-hero-in-11-easy-steps/comment-page-1/#comment-375</link>
		<dc:creator>EvilTed</dc:creator>
		<pubDate>Wed, 01 Dec 2010 08:48:43 +0000</pubDate>
		<guid isPermaLink="false">http://bjclark.me/?p=159#comment-375</guid>
		<description>This works great for a workstation, but what about 10.6.5 server?
This comes with MySQL pre-installed in some really stupid locations which makes removing it a royal PITA :(

Also you don&#039;t seem to be install the MySQL Gem.
This required a bit of work to get installed on 10.6.5 Server and the default install of MySQL is still the one running after your install.

It probably requires to just not install MySQL via brew in your step and to just use the default install and fetch the client binaries (for the installed version) and build against them.
The latest binaries (5.0.91) for 10.6.5 are available from:

http://support.apple.com/kb/HT4006

but substitute MySQL-54 instead of MySQL-49 as listed.

If you add the path to the bin, lib and include folders of the binary install, gem install mysql works.

Now, if you know a clean way to get brew to remove the default MySQL and build everything, I&#039;m all ears :)

Thanks for the article - some nice bits in it!

ET</description>
		<content:encoded><![CDATA[<p>This works great for a workstation, but what about 10.6.5 server?<br />
This comes with MySQL pre-installed in some really stupid locations which makes removing it a royal PITA <img src='http://bjclark.me/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Also you don&#8217;t seem to be install the MySQL Gem.<br />
This required a bit of work to get installed on 10.6.5 Server and the default install of MySQL is still the one running after your install.</p>
<p>It probably requires to just not install MySQL via brew in your step and to just use the default install and fetch the client binaries (for the installed version) and build against them.<br />
The latest binaries (5.0.91) for 10.6.5 are available from:</p>
<p><a href="http://support.apple.com/kb/HT4006" rel="nofollow">http://support.apple.com/kb/HT4006</a></p>
<p>but substitute MySQL-54 instead of MySQL-49 as listed.</p>
<p>If you add the path to the bin, lib and include folders of the binary install, gem install mysql works.</p>
<p>Now, if you know a clean way to get brew to remove the default MySQL and build everything, I&#8217;m all ears <img src='http://bjclark.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks for the article &#8211; some nice bits in it!</p>
<p>ET</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.239 seconds -->

