Tag Archives: mac

Compiling httpd-2.2.16 and php-5.3.3 on Mac OS X 10.6.4

Probably because of upgraded ports packages, self-compiled PHP on MAMP suddenly became not to find libjpeg and some libraries. There’s a way to upgrade to MAMP1.9, but I’ve decided to switch to use self-compiled 64bit PHP. Removed all macports packages. http://trac.macports.org/wiki/Migration % sudo port -f uninstall installed % sudo port clean –work –archive all For […]

Posted in Tweak | Also tagged , , | Comments closed

Compiling PHP5.3.2 on MAMP

It was not easy to compile PHP5.3.2 on MAMP. First of all, you need to download httpd2.0.63 and PHP5.3.2. (I’m using MAMP 1.8.2 and Mac OSX 10.5.8) MAMP is in /Application/MAMP already. You may want to backup that directory. You may need to edit srclib/apr/include/apr.h like “#define APR_HAS_SENDFILE 0” after run configure because get an […]

Posted in Tweak | Also tagged , | Comments closed

screencapture + ftp upload in AppleScript

set this_file to "/tmp/com.zuzara.desktop.png" set ftp_host to "***" set ftp_user to "***" set ftp_password to "***" set ftp_path to "/***" set ftp_newfile to do shell script "date ‘+%Y%m%d%H%M.png’"   try do shell script "screencapture " & quoted form of POSIX path of this_file tell application "Image Events" launch set this_image to open this_file scale this_image […]

Posted in Create | Also tagged | Comments closed