After enabling HTTPS for a certain VHOST (within MAMP, but that is probably not relevant), Internet Explorer 8 started denying to display any HTTPS enabled page, showing a
403 Forbidden error instead. This problem occurred because of the following setting in my Apache configuration:
# Don’t accept connections from non-SNI clients disabled
Apparently IE8 doesn’t support Server Name Indication (I’m using version
8.0.6001.18702), even though it should…
Long story short, disabling the option solved my problem. This was on my local development system, so I’m not worried about the security implications, but I’d like to know them anyway, so if anybody knows, please leave comment :)
Easy as pie if you know how to do it (actually this works for installing NewRelic anywhere that is not a standard Apache/PHP path) :)
- Download the New Relic installer files (as a .tar.gz package)
- Find out your MAMP PHP path (mine was /Applications/MAMP/bin/php/php5.3.6/bin)
- Go to your unpacked new relic installer files and execute
sudo NR_INSTALL_PHPLIST='<your mamp php path>' ./newrelic-install
- Follow the instructions in the installer (don’t forget to edit your php.ini, the installer gives you instructions on what to add)
And voilá, worked like a charm :)
PS: New Relic is kind of awesome!
I like my home folder neat at clean, at least when viewed in finder, and once in a while some application comes along and thinks it has to place some random folder there. In some cases, said application is intelligent enough to prepend the folder with a dot, which will cause it to be hidden in Finder automatically, but here is a way to hide a folder if you cannot change its name:
# Hides a folder in Finder
$ chflags hidden SomeFolder/
# Unhides a folder in Finder
$ chflags nohidden SomeFolder/
Because those are somewhat long, I’ve created the following aliases on my system:
alias hide='chflags hidden'
alias unhide='chflags nohidden'
If you add these to lines to your
~/.profile file, you can use
unhide as shortcuts.
This is short tutorial on how to use Cocoa’s
NSTrackingArea to get a hold of useful mouse events such as
mouseExited, so lets jump right into it.