Category Archives: Life of a Web Developer

apt-add-repository failing in Ubuntu 14.04 because of

Ran into an interesting one today: # sudo add-apt-repository ppa:ondrej/apache2 [omitted] Press [ENTER] to continue or ctrl-c to cancel adding it gpg: keyring `/tmp/tmpnv_gva8h/secring.gpg' created gpg: keyring `/tmp/tmpnv_gva8h/pubring.gpg' created gpg: requesting key E5267A6C from hkp server gpg: /tmp/tmpnv_gva8h/trustdb.gpg: trustdb created gpg: key E5267A6C: public key "Launchpad PPA for Ond\xc5\x99ej Sur�" imported gpg: Total number […]
Also posted in DevOps | Tagged , , | Leave a comment

Regular expressions: positive and negative lookaheads and lookbehinds

Do you work with regular expressions sometimes? If you do, and you don’t know about lookbehinds and lookaheads, you are missing out on a fantastic feature. I’m just pasting in something I said to some colleagues. Use your imagination and Google to extract the rest of the blog post 😉 [10/30/14, 10:11:44 PM] Kevin Kaland: man [10/30/14, 10:11:53 […]
Also posted in Regex, Tips | Tagged , , , , , , , , , , | Leave a comment

Disabling default rsync of the Vagrant Docker provider

Discovered today that Vagrant automatically rsyncs files to the Host VM when the Docker provider is used on a system that doesn’t natively support Docker. Sometimes, though, one wants to sync the files to a custom location, and might get errors when trying to sync them to two locations on the Host VM (as I […]
Also posted in DevOps, Technology, Vagrant | Tagged , , , , , | Leave a comment

lefnire.js: the weirdest Node.js API consumer ever

It must have all started with a joke on iRC that my friend lefnire, creator of HabitRPG, might just be an advanced Node.js program. A few weeks later, a buddy and I took this to its logical conclusion. But even with novelty projects, there are things to be learned, and this project has exposed me […]
Also posted in APIs, Node.js, Projects, Technology | Leave a comment

One SSH key to rule them all: Forward your SSH agent session in 15 seconds

Recently, I used a tool that spoke of “forwarding” my SSH session to the server and thus avoiding needing to copy my private key to the server in order to be able to access Git repositories or other servers where I log in by public key. If you manage your keys at all, you can immediately […]
Also posted in Tips, Toolbox | Tagged , , , , | Leave a comment

My mobile office is now in the Toolbox

If you follow me on Twitter, you probably already know all this. If not, however, allow me to explain. When I’m away from home, whether at a cafe or a Drupal event, there are a few things I take with me to ensure a pleasant working experience. You may have encountered me with them at […]
Also posted in Drupal, Events | Leave a comment

WizOne Solutions Winter Update

Update: I’ve also sponsored DrupalCamp NJ ( at the Silver level. I wondered what I should call this post, and the title I picked seemed to fit. It’s been some time since I’ve written a proper blog post about my attendance to (or sponsorship of) camps. I’ve definitely tweeted about it, but the blog posts have […]
Also posted in Drupal, Events, Updates | Leave a comment

Last-ditch Solution to Non-Working PHP-FPM + Apache Configuration

I had a surreal experience yesterday. I was following online tutorials about setting up Apache + PHP-FPM (for example, this ServerFault question: I’ll let you read that rather than re-hash it. My goal here is only to share quickly how I actually got this working. Alright, so you know the part where it says […]
Also posted in DevOps, Tips | Tagged , , , , , , , , , , , | Leave a comment

Linux tip – regular expression find and replace in all files in a directory

As you may have seen me tweet, I’ve been looking for a way to do this. I didn’t want to manually change my Apache configuration to reflect my new internal IP address. After some Internet searching, I stumbled across this gem: find . -name '[^.]*' | xargs perl -pi -e 's/192\.168\.1\.3/192\.168\.0\.3/g' I adapted it […]
Also posted in Tips | Tagged , , , , , , , , , , , | 3 Comments

How-to: Create Drupal development sites in Quickstart

Yesterday, I felt like reviewing some patches, so I fired up my Quickstart-based virtual machine and set about creating some Drupal development sites. I realized I first had to create Drush Make files to get the proper development versions installed. So I did that. However, I also realized that, despite cloning the code via Git […]
Also posted in Drupal, Drush, Tips | Tagged , , , , , , , , , , , | Leave a comment