RocketModule - mac http://rocket.local/categories/mac en How to make a terminal alias for Mac OS X http://rocket.local/blog/how-make-terminal-alias-mac-os-x <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>After looking around for how to make an alias for Mac OS X's terminal/shell I ended up cobbling together my solution from a variety of different (mostly unixy-linuxy) places. So in the name of good documentation, here is the magic formula for the next time I need to set up an alias for happier command line hacking:</p> <ol><li>First we edit/create a profile. For a normal user do:<br /><code>pico /etc/profle</code><br />...or for root/superuser do:<br /><code>pico ~/.profile</code></li> <li>Add your alias like so to the file:<br /><code>alias aliasname='mycommand /path/path'</code><br />(notice no space between equal sign and ')</li> <li>Save your changes and close the file</li> <li>Load/reload your profile with:<br /><code>. /etc/profile</code><br />...or for root/superuser do:<br /><code>. ~/.profile</code></li> <li>If you are using root/sudo you will need to use <code>sudo -i</code> in order to load the profile upon login (<a href="http://www.macosxhints.com/article.php?story=20080312092116264">more info about this here</a>). </li><li>Done.</li> </ol></div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Categories:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/categories/mac" typeof="skos:Concept" property="rdfs:label skos:prefLabel">mac</a></div><div class="field-item odd"><a href="/categories/snow-leopard" typeof="skos:Concept" property="rdfs:label skos:prefLabel">snow leopard</a></div><div class="field-item even"><a href="/categories/terminal" typeof="skos:Concept" property="rdfs:label skos:prefLabel">terminal</a></div></div></div> Wed, 21 Oct 2009 00:27:06 +0000 Caleb Gilbert 91 at http://rocket.local http://rocket.local/blog/how-make-terminal-alias-mac-os-x#comments Dev Mashup: Building a dual MySQL 4.1 and MySQL 5 dev environment in OS X 10.5 Leopard (and more) http://rocket.local/blog/dev-mashup-building-dual-mysql-41-and-mysql-5-dev-environment-os-x-105-leopard-and-more <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>I've been wanting to upgrade to MySQL 5 for a while now, and after hearing that <a href="http://drupal.org/cvs?commit=100471">MySQL 5 is required for Drupal 7</a> I decided to bump up my upgrade schedule, pronto. If all one wants is MySQL 5 then that is easy enough -- <a href="http://www.mamp.info/en/download.html">go download MAMP</a> and you're done. But what if you want to be able to dev on MySQL 4 for projects that require it for whatever reason (e.g., clients who are run it and are not willing/able to upgrade MySQL at the moment)?</p> <p>Well, with not a lot of effort - it very easy to have a PHP 5, PHP 4, MySQL 5, and MySQL 4.1 environment - all sharing the same doc root and servernames (e.g., urls):</p> <p><strong>Step one:</strong><br /> Configure Apple's native Apache, PHP, and add a free-standing MySQL 4.1 install (since MAMP comes with MySQL 5, right). Here are two good links to get you on your way to doing this:<br /><a href="http://www.sysarchitects.com/node/58">Install Drupal on Mac OS X 10.5 Leopard</a><br /><a href="http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/">Working with PHP 5 in Mac OS X 10.5 (Leopard)</a></p> <p>...if you are migrating a free-standing MySQL install from a previous install you may want to check these articles out (<a href="http://blog.tomatocheese.com/archives/2007/11/1/migrating_mysql_to_mac_os_x_leopard/">1</a>, <a href="http://www.peterhough.co.uk/2007/12/28/upgrade-to-leopard-fix-php-mysql/">2</a>) as well.</p> <p>Note: Getting all of this totally set up and working right, including setting up your virtualhosts and /etc/hosts file, before installing MAMP will pay off.</p> <p><strong>Step two:</strong><br /><a href="http://www.mamp.info/en/download.html">Download MAMP</a> and follow the readme.txt instructions and/or use these links to setup the basics:<br /><a href="http://drupal.org/node/66187">HowTo: Create a local environment using MAMP</a><br /><a href="http://www.lullabot.com/videocast/install_local_web_server_mac_osx">Install a Local Web Server on Mac OSX</a></p> <p><strong>Step three:</strong><br /> Now it's time to integrated these two completely separate environments so that you can keep a common doc root, virtualhosts, and urls, and systems tools (we'll get terminal access going for MAMP's MySQL):</p> <p>We'll make it so that we can keep all of our sites, no matter which enviroment they require, in a common place -- and so that no matter what we're running we will always be able type in "localhost", or and know that it will take us to our doc root (instead of having to remember to type "localhost:8888/" for MAMP:). Relatedly, doing the steps below lets us keep common server names (e.g., 'mysite.local') across environments.</p> <p>So now:</p> <p>* Change the docroot in MAMP's httpd.conf (line 368) to:<br /> DocumentRoot "/Library/WebServer/Documents"</p></div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Categories:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/categories/drupal" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Drupal</a></div><div class="field-item odd"><a href="/categories/development" typeof="skos:Concept" property="rdfs:label skos:prefLabel">development</a></div><div class="field-item even"><a href="/categories/mac" typeof="skos:Concept" property="rdfs:label skos:prefLabel">mac</a></div><div class="field-item odd"><a href="/categories/mamp" typeof="skos:Concept" property="rdfs:label skos:prefLabel">MAMP</a></div><div class="field-item even"><a href="/categories/leopard" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Leopard</a></div><div class="field-item odd"><a href="/categories/os-x" typeof="skos:Concept" property="rdfs:label skos:prefLabel">OS X</a></div></div></div> Fri, 15 Feb 2008 07:06:42 +0000 Caleb Gilbert 70 at http://rocket.local http://rocket.local/blog/dev-mashup-building-dual-mysql-41-and-mysql-5-dev-environment-os-x-105-leopard-and-more#comments Komodo IDE and Drupal/PHP development - a combo built upon mutual appreciation http://rocket.local/blog/komodo-ide-and-drupalphp-development-combo-built-upon-mutual-appreciation <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>After spending 3 days trying to get Elipse PDT and the Zend debugger working on Mac OS X, my nerves were very frayed, indeed. Apparently, there has been an ongoing problem with the Zend debugger not stopping at breakpoints on Mac Intel machines...something that has plagued Eclipse through 3 different PHP extensions. (don't even get me started on how crazy it is that Eclipse has seen three completely separate PHP plugins within less than a year)</p> <p>In the end all was not lost. On the contrary, after enough scratching around Google I discovered what I needed to know. Komodo has become the semi-de-facto IDE of choice for many Drupal developers. A fact confirmed for me when I saw many familiar names from the Drupal community on the <a href="http://www.activestate.com/products/komodo_ide/">ActiveState website</a> (itself a Drupal site).</p> <p>Suffice to say with Komodo I got local and remote debugging up and running within just a couple hours, and it's been a total dream to use.</p> <p>So now I have a proper debugger, integrated svn, and last but not least, Drupal api code compeletion/documentation is included. And if that's not enough, it uses 100mb+ less memory than Eclipse did.</p> <p>Komodo is going to set me back a few bucks ($295) after my trial runs out, but even at that price it's a no-brainer for some who makes their living with Drupal and PHP. Kudos to ActiveState on their outreach to the Drupal community.</p> <p>Some useful links if your interested in checking out Komodo:<br /><a href="http://drupal.org.uk/node/64">Link 1</a><br /><a href="http://aspn.activestate.com/ASPN/docs/Komodo/4.1/komodo-doc-debugphp.html">Link 2</a><br /><a href="http://kevinbridges.org/node/182">Link 3</a><br /><a href="http://drupal.org.uk/node/86">Link 4</a></p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Categories:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/categories/drupal" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Drupal</a></div><div class="field-item odd"><a href="/categories/php" typeof="skos:Concept" property="rdfs:label skos:prefLabel">php</a></div><div class="field-item even"><a href="/categories/development" typeof="skos:Concept" property="rdfs:label skos:prefLabel">development</a></div><div class="field-item odd"><a href="/categories/programming" typeof="skos:Concept" property="rdfs:label skos:prefLabel">programming</a></div><div class="field-item even"><a href="/categories/mac" typeof="skos:Concept" property="rdfs:label skos:prefLabel">mac</a></div></div></div> Thu, 13 Sep 2007 23:57:20 +0000 Caleb Gilbert 61 at http://rocket.local http://rocket.local/blog/komodo-ide-and-drupalphp-development-combo-built-upon-mutual-appreciation#comments