Posts Tagged ‘os x’

Resizing Coda’s file dialog on OS X Yosemite

Thursday, November 27th, 2014 | Tech

Google Chrome is not the only application struggling with OS X Yosemite’s file dialog. When saving files in Coda, the dialog will continually fall off the bottom of the screen.

Currently the only known workaround for the issue is to switch to the simple view by clicking the up arrow next to the file name box, and then click it again to re-expand the dialog and then it will be probably sized again. However, you need to do this every time you save a file.

Resizing Google Chrome’s file dialog on OS X Yosemite

Friday, November 14th, 2014 | Tech

There is a bug in Apple’s OS X Yosemite in which the file dialog boxes grow larger than the screen. However, it does not seem Apple are in a rush to fix this.

The workaround is different for each application but for Google Chrome you can temporary solve it by running the following commands.

defaults delete NSNavPanelExpandedSizeForSaveMode
defaults delete NSNavPanelExpandedSizeForOpenMode

The box will continue to grow each time you use it, so you will have to run these commands again every time the box gets too big again.

No acceptable C compiler found on Mac

Monday, February 4th, 2013 | Programming, Tech

If you’re trying to compile from source, you may get an error similar to the following.

mac configure: error: no acceptable C compiler found in $PATH

This may be because you haven’t installed Xcode. If you have, something has broken, and you need to reinstall it. First, remove it with the following command.

mac configure: error: no acceptable C compiler found in $PATH

Now restart your system and once it has started again, go to Applications and select Install Xcode. This will reinstall it.

Imagick not loading on MAMP for Mac

Thursday, January 17th, 2013 | Life, Tech

If you’re running MAMP and you’ve finally managed to get the Imagick extension to add ImageMagick support compiled, the battle may not be over yet. There are more things you need to do. You might get an error similar to the following.

Firstly, was probably installed into the sytem’s PHP extension directory. So you might need to copy this into MAMP’s directory. Don’t just copy and paste the code below as you need to check the paths are correct for your system.

php -i | grep extension_dir
cp /usr/lib/php/extensions/no-debug-non-zts-20090626/

Secondly, some of the libraries are out of date. You might get an error like the following.

[01-Jun-2012 08:46:22] PHP Warning:  PHP Startup: Unable to load dynamic library 
 - dlopen(/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/, 9): Library not loaded: /opt/local/lib/libjpeg.8.dylib
  Referenced from: /Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/
  Reason: Incompatible library version: requires version 13.0.0 or later,
but libjpeg.8.dylib provides version 12.0.0 in Unknown on line 0
[01-Jun-2012 08:51:54] PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/' - dlopen(/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/, 9):
image not found in Unknown on line 0

We can solve this by editing a configuration file.

sudo vim /Applications/MAMP/Library/bin/envvars

Comment out the first two lines below and add the last one.

export PATH="$PATH:/opt/local/bin"

This should override out of date libraries such as libjpeg. If you’re still having problems, you can manually copy in the freetype library too.

cp /opt/local/lib/libfreetype.6.dylib /Applications/MAMP/Library/lib/

Though in theory this step should not be required. Restart Apache and you should see Imagick appear on the phpinfo() output.

Installing PECL YAML on Mac OSX Lion

Sunday, December 16th, 2012 | Programming, Tech

If you are trying to install YAML via PECL on Lion, you may get an error such as the following.

configure: error: Please install libyaml
ERROR: `/private/tmp/pear/install/yaml/configure --with-yaml' failed

Some solutions on the internet suggest installing it via a package manager.

rvm pkg install libyaml

However, although this process will claim to work, when you come to run the command again, it will fail at the same point. Instead, you need to download libyaml, which you can do here, then extract it, cd into the directory and run the following commands.

make install

You don’t need to sudo. You should now be able to run the install command again.

sudo pecl install --ignore-errors yaml

This time it should be successful.

Conflict error on PECL YAML

Monday, December 10th, 2012 | Programming, Tech

If you are trying to install PECL YAML on Mac OS X Lion, you may find you get a conflict with an error message similar to the following.

WARNING: conflicting files found:
yaml/LICENSE (

This error is documented on GitHub and as it is not critical, can be overcome by turning off errors.

pecl install --ignore-errors yaml

On running that command, it should no longer stop at that point.

PHPUnit and PEAR packages break on Mountain Lion

Monday, August 6th, 2012 | Programming, Tech

If you have recently upgraded to Mac OS X Mountain Lion (10.8) you may find that PHPUnit and other PEAR packages no longer work. You may get errors similar to the following.

PHP Copy & Paste Detector

Warning: require(PHPCPD/Autoload.php): failed to open stream: No such file or directory in /Users/chris/pear/bin/phpcpd on line 49

Fatal error: require(): Failed opening required 'PHPCPD/Autoload.php' (include_path='.:') in /Users/chris/pear/bin/phpcpd on line 49

PHP Mess Detector

Warning: require_once(PHP/PMD/TextUI/Command.php): failed to open stream: No such file or directory in /Users/chris/pear/bin/phpmd on line 38

Fatal error: require_once(): Failed opening required 'PHP/PMD/TextUI/Command.php' (include_path='.:') in /Users/chris/pear/bin/phpmd on line 38

Unfortunately, there doesn’t seem to be an easy way to fix them, other then by reinstalling each package.

sudo pear install --force --alldeps phpunit/phpunit
sudo pear install --force --alldeps phpmd/PHP_PMD

The tools should then run as expected.

Mac VNC client location

Monday, April 9th, 2012 | Life, Tech

There are quite a few different VNC clients available for Mac, and most of them are, in my experience, pretty disappointing. And totally unnecessary, because OS X actually comes with a build in VNC viewing client which works fine. For some reason though, Apple have kept it pretty well hidden.

Never fear though, because once you know the location, it’s easy to find and use.


It’s pretty simple, but then I’ve never found the need for all the extra crap a lot of the viewing clients come with – I just want to be able to control a remote computer!

Shortcut key for Snapz Pro on Mac

Saturday, December 31st, 2011 | Life, Tech

Snapz really annoys me because I paid money for what is supposed to be the best product out there, but it’s actually incredibly hard to use because every time I want to take a screen shot I have to google for the shortcut key. By default, it’s this.

Cmd + Shift + 3

The adjustment period

Tuesday, December 8th, 2009 | Tech, Thoughts

I knew there was going to be a fairly painful adjustment phase as I got used to OS X but there are some things that are really bugging me.

Like bugs. For example when I close my final tab on Opera it should go back to my quick launch screen so I can access a shortcut easily. But it doesn’t, it closes the window meaning that if I want to get back to my start screen I have to close the window and open a new one.

Then it’s the little things. For example if I’m selecting a series of files to upload, I move my select file dialog to just over the file boxes to make it a lot easier. But in OS X the file dialog box jumps back to it’s old location between every file.

The image viewing is rubbish as well. On XP I just clicked an image and it opened and then I could just use the arrow keys on my keyboard to navigate through them. No such luck on OS X on any of Preview (the default application), Quick Look (the integrated OS X viewer) or Xee (a little image viewer I grabbed to try and solve the problem). Indeed OS X has nothing that can stand up to the might of IrfanView.

I’m sure I’ll figure it all out in the end and a lot of the problems I will find a workaround or just get used to. I’m sure I’ll eventually find a convenient one keystroke way to lock my screen and remember not to use the scroll bar. But until I do they’re irritating problems.

This sounds far too negative though, in general I’m quite enjoying it, much like having a fly in your drink on a tropical beach – it’s annoying but you’re still on a tropical beach.

I love spaces (same as workspaces for you unix geeks, I can’t for the life of me understand why Windows doesn’t have them), I love the fact I can get 7 hours out of the battery, I love the fact it shuts down in 2 seconds flat rather than the 2 minutes XP takes and I love gestures. Stick with it and good times are ahead.