Simple enough with the right instructions - versions current as of late December 2010.

XCode and admin Required

Requires admin login.

Requires XCode tools to gain the ability to compile open source applications. XCode OS X development software is included with every copy of OS X, but not installed by default. Version 3.2.5 of XCode was used to compile in this instance.

Get the Files

PCRE is required in the APC compile, so it must be built and installed first.

ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.11.tar.gz

http://pecl.php.net/get/APC-3.1.6

Configure, Build, Install

Create a workspace to extract the files.

~/Desktop/source was used in this case

Copy the downloaded files into the source directory.

Move into the source directory, build and install PCRE:

  • # tar xzf pcre-8.11.tar.gz
  • # cd pcre-8.11
  • # ./configure --prefix=/usr/local
  • # make
  • # make install

Move back up one level into the source directory, build and install APC cache:

The configure options passed in step four are all one line.

  • # tar xzf APC-3.1.6.tgz
  • # cd APC-3.1.6/
  • # phpize
  • # MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch x86_64 -g -Os -pipe" CXXFLAGS="-arch x86_64 -g -Os -pipe" LDFLAGS="-arch x86_64 -bind_at_load" ./configure
  • # make
  • # make install

When the build is complete, tell php to load and use the apc extension by adding the following line, all on one line, to php.ini which is typically found in the /etc folder

  • file.extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/apc.so

Restart apache and view the output of phpinfo() to verify APC cache is installed and working.

After the builds, drag the source folder to the trash to clean things up.

Hosting multiple sites on the same server, may require creating a site by site instance of APC cache by implementing a custom php.ini on site by site basis.

No bench testing or performance improvement details yet. Will get that up when time allows.

Original source for this info was Apple discussions:

http://discussions.apple.com/thread.jspa?threadID=2448001

animated

The animated gif above was created in OS X in 5 minutes start to finish using instructions below.

PNG is the default format for screen captures in recent versions of OS X.

However most image formats are supported natively. All that is required is to tell your local machine which format you prefer for saving image files.

Switch the default screen capture format to gif by opening a terminal window and entering these commands..

defaults write com.apple.screencapture type gif; killall SystemUIServer

"killall SystemUIServer" is the second instruction if not visible in your browser. It saves having to logout and back in to effect the change.

To switch back to PNG after capturing gifs..

defaults write com.apple.screencapture type png; killall SystemUIServer

With screencapture type set to gif, perform periodic screen captures after typing each letter or word.

I sized the textedit window to a reasonable size for Web browser display, then used Cmd-Shift-4-spacebar and selected the textedit window to record each step of progress. Do not worry about the file names at this point.

When finished with captures, review the files in Finder..

review-gifs
  • set file ordering to display oldest to newest
  • set file display style to Cover Flow
  • select the first file in sequence
  • click spacebar to preview it
  • down arrow to move through files as preview of final animated version

Begin creating the animation by opening the last and final GIF in the Preview app by dragging it from Finder to Preview icon in the dock. If you start with the first file in the order, it will be moved into last position in finished product.

Then in Preview.app View->Sidebar->Show Sidebar to open up a sidebar that acts as a hot zone for collecting the rest of the gif files.

In Finder, select all the other files to include with this animation. Drag and drop them directly on top of the icon for the original file in the sidebar. Dropping them on open space in sidebar will not add them to the original.

  • Down arrow through the sidebar images to preview the finished animated gif
  • If anything is out of order, re-order images by dragging and dropping them to correct locations in the sidebar
  • When satsified, save the finished product as a gif file. I named mine "animated.gif"

Drag the completed product from a finder window and drop it on a browser icon in the dock. Safari, Opera, Firefox all seem to work fine. Verify the final version works as desired.

Place the file in a Web accessible location, like /Library/Webserver/Documents folder on the local machine, to serve it as a web page. Browse to http://localhost/animated.gif to view finished results if following along step by step.

Thanks to Robert Harder and pantyo.com for basics and inspiration.

-- http://blog.iharder.net/2009/10/22/gif-create-animated-gifs-with-mac-os-x-preview-app/

Mon Tue Wed Thu Fri Sat Sun
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
eZ Publish™ copyright © 1999-2012 eZ Systems AS