Syndicate content
Feb 26

Let's dance with DSH!

Fri, 02/26/2016 - 08:39 — peter

The Problem

You are a developer troubleshooting performance issues on production and you want to look at server logs. The web servers are in a load-balancing cluster that you have no access to, and the incredible folks responsible for the devops of this setup do not have the very basics of centralized logging configured... Not that I've found myself in this situation... Uh, I'm asking for a friend of a friend... ;)

Feb 25

There and Back Again...

Thu, 02/25/2016 - 09:05 — peter

Wow, it is hard to believe that the last post on I did here was over 2.5 years ago... I had recently finished my MBA, and was ready to get back into the game.

Jul 17

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:

Jul 17

quick fix for CentOS locale issue on new virtual environment

Wed, 07/17/2013 - 10:36 — peter

We've just setup a new virtual environment, and upon login found this nice error:

# ✔ peter@endor(ttys002) ~
ssh new-server
Last login: Wed Jul 17 08:27:23 2013 from
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): No such file or directory


Jul 17

easy way to change the current branch (HEAD) on a remote git repo...

Wed, 07/17/2013 - 10:00 — peter

Just had an interesting problem today where I needed to blast away the remote copy of a git master branch (don't ask!), but I couldn't do that because it was the current branch.

I quick question to a local git guru and the answer was very easy:

git remote set-head <remote> <branch>

Then I was able to delete the rotten origin/master branch, create it again from a good branch, reset it to HEAD and life was good again!

Easy Peasy!


Oct 17

fix (workaround) the thousands of log entries that logitech solar service creates on osx

Wed, 10/17/2012 - 07:14 — peter

It turns out that you can "instruct" syslogd so that it ignores all messages from Solar Service instead of writing them to /var/log/asl. Here's how:

1. Add the following two lines in /private/etc/asl.conf:

# Ignore messages from Logitech's Solar
? [CS= Sender Solar] ignore

2. Reboot

OR simply restart syslogd by running:

sudo launchctl unload /System/Library/LaunchDaemons/
sudo launchctl load /System/Library/LaunchDaemons/

Sources where I found all this information:

Oct 14

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)...

-dump|egrep "(bindings.*\:$)"|sort

The output is something like this:

Apr 22

Adding Software RAID to a Proxmox VE 2.0 Install

Sun, 04/22/2012 - 16:19 — peter

Almost two years ago, I documented the process I went through to get Linux software RAID setup on Proxmox VE because Proxmox didn't officially support software RAID (which Linux does, of course). Now the fine folks at Proxmox released Proxmox VE 2.0 adding even greater features to Prox, like high-availability settings, REST api for management, etc… However, Proxmox VE 2.0 still doesn't officially support software RAID out of the box, so I figured it was time to go find out how to do it on this new version… As it turns out, due to the newer version of debian running under VE 2.0, the process is even easier than it was before! Read on and find out how.

Apr 14

Automating software updates on OSX

Sat, 04/14/2012 - 09:23 — peter

The Problem

OSX is fairly secure, however, nothing is impervious to attacks, and following the weakest link theory, the whole system will be as secure as its least secure component. In the recent events relating to the flashback malware, that component is NOT OSX itself, but rather, Java, as this article points out.

Jul 26

Compiling Blender svn on OSX Lion (with SCONS and Xcode 4.1)

Tue, 07/26/2011 - 19:11 — peter

The Problem

I upgraded to OSX Lion with the now free again Xcode 4.1 and no longer can compile Blender from SVN... again!

The Solution

To get your SVN Blender-fu back you will need to do 2 somewhat simple things: