- Install memcached. I'd suggest using homebrew.
brew install memcached - Select your desired version of PHP that you'd like to use in MAMP. This dropdown is located in the PHP tab in MAMP PRO.
- Visit the Downloads Page on php.net and download the source code. If your release isn't listed, visit the Releases page.
- Extract the source into
/Applications/MAMP/bin/php/[php version folder]/include/php. /Applications/MAMP/bin/php/[php version folder]/include/php/configure/Applications/MAMP/bin/php/[php version folder]/bin/pecl i memcache.- Add
extension=memcache.soto your php.ini- MAMP Pro:
/Applications/MAMP\ Pro/MAMP\ PRO.app/Contents/Resources/php[your php version].ini
- MAMP Pro:
Example: You have a branch refactor that is quite different from master. You can't merge all of the
commits, or even every hunk in any single commit or master will break, but you have made a lot of
improvements there that you would like to bring over to master.
Note: This will not preserve the original change authors. Only use if necessary, or if you don't mind losing that information, or if you are only merging your own work.
On master:
> git co -b temp
| // This Arduino example demonstrates bidirectional operation of a | |
| // 28BYJ-48, which is readily available on eBay for $4.25 inc shipping, | |
| // using a ULN2003 interface board to drive the stepper. The 28BYJ-48 | |
| // motor is a 4-phase, 8-beat motor, geared down by a factor of 64. One | |
| // bipolar winding is on motor pins 1,3 and the other on motor pins 2,4. | |
| // Refer to the manufacturer's documentation of Changzhou Fulling | |
| // Motor Co., Ltd., among others. The step angle is 5.625/64 and the | |
| // operating Frequency is 100pps. Current draw is 92mA. | |
| // Vin w USB power is 4.5v too slow for testing use 5v pin. | |
| //#include <Narcoleptic.h> |
| <?php | |
| /** | |
| * SplClassLoader implementation that implements the technical interoperability | |
| * standards for PHP 5.3 namespaces and class names. | |
| * | |
| * http://groups.google.com/group/php-standards/web/final-proposal | |
| * | |
| * // Example which loads classes for the Doctrine Common package in the | |
| * // Doctrine\Common namespace. |
| <?php | |
| /** | |
| * SplClassLoader implementation that implements the technical interoperability | |
| * standards for PHP 5.3 namespaces and class names. | |
| * | |
| * http://groups.google.com/group/php-standards/web/final-proposal | |
| * | |
| * // Example which loads classes for the Doctrine Common package in the | |
| * // Doctrine\Common namespace. |
| <?php | |
| /** | |
| * Interface with the growlnotify notification client | |
| * | |
| * The Growl notification system for Mac includes a command-line utility for scripts to send notifications through. | |
| * 'growlnotify' needs to be explicitly installed from the "Extras" folder of the Growl installation disk before it can be used | |
| * | |
| * @author Brooks Boyd <[email protected]> | |
| * @link http://growl.info/documentation/developer/growlnotifier.php Growlnotifier documentation | |
| */ |
| <?php | |
| /** | |
| * SplClassLoader implementation that implements the technical interoperability | |
| * standards for PHP 5.3 namespaces and class names. | |
| * | |
| * http://groups.google.com/group/php-standards/web/final-proposal | |
| * | |
| * // Example which loads classes for the Doctrine Common package in the | |
| * // Doctrine\Common namespace. |
| <?php | |
| /** | |
| * Shows how to highlight several words in the body of a html document. It adds spans with specified | |
| * classes around the found words/word parts. | |
| * | |
| * @version $Id: highlightWords.php 444 2010-05-10 09:29:49Z subjective $ | |
| * @license http://www.opensource.org/licenses/mit-license.php The MIT License | |
| * @copyright Copyright (c) 2009 Bastian Feder, Thomas Weinert | |
| */ |
| <?php | |
| class Model_Acl extends Zend_Acl { | |
| public function __construct() { | |
| // define Roles | |
| $this->addRole(new Zend_Acl_Role('guest')); // not authenicated | |
| $this->addRole(new Zend_Acl_Role('member'), 'guest'); // authenticated as member inherit guest privilages | |
| $this->addRole(new Zend_Acl_Role('admin'), 'member'); // authenticated as admin inherit member privilages |
We assumed Rails 2 would never work without rubygems, and we committed to gem bunlder for JRuby on App Engine, so we were waiting for Rails 3. Fortunately, Takeru Sasaki was able to patch the Rails 2.3.5 calls to rubygems, and now we have it working. Rails 2.3.5 currently spins up several seconds faster than Rails 3, and just a few seconds behind Sinatra.
See the TinyDS version also: gist.github.com/269075
The gems for the development environment include a pre-release appengine-tools gem that provides a pre-release version of jruby-rack.
sudo gem install google-appengine