Syndicate content

development

warning: Creating default object from empty value in /var/www/petercarrero.com/modules/taxonomy/taxonomy.pages.inc on line 33.
Jul 17
0

Fix MAMP Error: "General error: 2006 MySQL server has gone away"

Wed, 07/17/2013 - 19:46 — peter

While working on a local copy of a Drupal site I am helping develop, I ended up hitting the following error:

General error: 2006 MySQL server has gone away: SELECT ff.* FROM {filter_format} ff ...

Ugh! Now what?! We need to change a setting on MySQL that ships with MAMP. As it turns out, the default max_allowed_packet is set to 1M and it needs to be higher. Changing that to 100M did the trick for me. Locate your my.cnf file and add the following setting under the [mysqld] section:

Oct 14
0

List custom URL Schemes in OS X

Sun, 10/14/2012 - 16:02 — peter

was playing around osx and figured out how to list all the custom url schemes (from the command-line)...

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister
-dump|egrep "(bindings.*\:$)"|sort

The output is something like this: