Vagrant box could not be found or could not be accessed in the remote catalog – incompatible curl version

There seems to be an issue with vagrant 1.8.7 and the embedded curl version vs the mac os binary (shipped by default on mac os Sierra and others) – remove the embedded one sudo rm /opt/vagrant/embedded/bin/curl Note: you also need to remove the embedded curl when you add a vagrant box (remotely or locally) so … Read more

How to handle with a default URL scheme

As you are mentioning AppleScript, I suppose you are working on Mac OS X. A simple way to register and use a custom URL scheme is to define the scheme in your .plist: <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>URLHandlerTestApp</string> <key>CFBundleURLSchemes</key> <array> <string>urlHandlerTestApp</string> </array> </dict> </array> To register the scheme, put this in your AppDelegate’s initialization: [[NSAppleEventManager … Read more

Where does MAMP keep its php.ini?

Note: If this doesn’t help, check below for Ricardo Martins’ answer. Create a PHP script with <?php phpinfo() ?> in it, run that from your browser, and look for the value Loaded Configuration File. This tells you which php.ini file PHP is using in the context of the web server.

find lacks the option -printf, now what?

It’s not that Apple removes options, it’s that OS X’s UNIX underpinnings are mostly derived (circuitously) from FreeBSD, many parts of which can be traced back to the original UNIX… as opposed to the GNU utilities, which are re-implementations with many features added. In this case, FreeBSD’s find(1) doesn’t support -printf, so I wouldn’t expect … Read more

How to static link on OS X

In order to link to an archive library (sometimes also called static library), just add it to the link line: gcc main.o … -lfoo … The linker will search for libfoo.dylib, and then libfoo.a, which is all you need. If you have both versions of the library, and want to link with an archive version … Read more

gdb doesn’t work on macos High Sierra 10.13.3

This is caused by latest gdb 8.1, downgrade gdb to 8.0.1 could solve this problem. How to downgrade to gdb 8.0.1 Unlink current gdb: brew unlink gdb Install gdb 8.0.1: brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/9ec9fb27a33698fc7636afce5c1c16787e9ce3f3/Formula/gdb.rb Optional: avoid upgrade gdb with brew pin gdb