Category: Mac


On a Mac, to print with no colour management (which is especially useful when profiling the printer).

Chose “ColorSync” and then select the “GenericRGB” profile.

Also have a look at this if you use Snow Leopard and Photoshop CS4 it is vital if you want to print a profile target without any color management.

If you want to have different setup for php on the command line: add a file called php-cli.ini This will be used by php from the command line, if it is not present it will use php.ini.

This foxed me for a while, HP scan software is not uninstalled on update to Snow Leopard, it just stops working. Have a look at:

http://h10025.www1.hp.com/ewfrf/wc/document?lc=en&dlc=en&cc=us&docname=c01846935

If you are getting

mysql_connect() http://function.mysql-connect2002 No such file or directory (trying to connect via unix:///tmp/mysql.sock)"

Then you probably need to modify the “mysql.default_socket” value in your /etc/php.

With Mac XAMPP I set it to:

mysql.default_socket = /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock

in /Applications/XAMPP/xamppfiles/etc/php.ini.

This might be a good time to check the correct php is going to run from the command line, by default it will run the Apple supplied php not the XAMPP one. So I put:

 /Applications/XAMPP/xamppfiles/bin

at the top of the /etc/paths file

Mac OSX Paths

On (Snow) Leopard OSX it is good to know about /usr/libexec/path_helper. This looks through  /etc/paths.d

So – to add paths to the global search path put a file containing your path in /etc/paths.d.

Files in these directories should contain one path element per line. Prior to reading these directories, default PATH and MANPATH values are obtained from the files /etc/paths and /etc/manpaths respectively.

For more info. have a look at:

http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man8/path_helper.8.html

MacPorts on Snow Leopard

I forgot to uninstall all my ports before updating to Snow Leopard, and so when I tried to use ports I got errors like this:

dlopen(/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib, 10): no suitable image found.  Did find:
/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib: mach-o, but wrong architecture
    while executing
"load /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib"
    ("package ifneeded Pextlib 1.0" script)
    invoked from within
"package require Pextlib 1.0"
    (file "/opt/local/bin/port" line 40)

It was too late to uninstall all my ports as recommended on the MacPorts website.

So I just installed MacPorts-1.8.0-10.6-SnowLeopard.dmg found at:

http://distfiles.macports.org/MacPorts/

Then did:

sudo port -v selfupdate

Followed by:

sudo port upgrade –force installed

Fixed!

LoadFile /usr/lib/libxml2.dylib
LoadModule proxy_html_module modules/mod_proxy_html.so

I forgot to load the libxml2 file first, so put this in httpd.cont:

LoadFile /usr/lib/libxml2.dylib

LoadModule proxy_html_module modules/mod_proxy_html.so

Which is like this if you used MacPorts to install Apache:

 LoadFile /opt/local/lib/libxml2.dylib

 LoadModule proxy_html_module  modules/mod_proxy_html.so

...also add this line to the bottom of /opt/local/apache2/httpd.conf

 <IfModule proxy_html>

   Include conf/extra/proxy_html.conf

 </IfModule>

This is great you can open a terminal from the Mac finder:

http://homepage.mac.com/thomasw/OpenTerminal/

Follow

Get every new post delivered to your Inbox.