DNotes LLC

DNotes LLC

Drupal development, hosting, and consulting

Recent Blog Entries

Today's Work

So this is a work blog, where I ever so occasionally post stories of my work exploits, and I guess today is no different. What did I do at work today? I checked my twitter account for tech updates. Honestly, that is all. I found I had difficulty concentrating on work afterward, after I saw the videos of two more black people killed by police, in my country, in circumstances that seem manifestly unjust. I work from home. I went downstairs and held my wife, and we talked and wept. I'm writing down a few of my thoughts on this day.

Forwarding tcp traffic with iptables and ufw

I've recently had two situations where I needed to forward all traffic on certain ports from one server to another. In one case I did this using only iptables, and in another using iptables commands in the context of ufw. So I'm going to archive my learning here for future reference.

Creating and serving a static archive from a Drupal 6 site

Back in 2012, I was on a team of people who put together a website to commemorate the 100th anniversary of a historic journey to North America undertaken by 'Abdu'l-Bahá, then the head of the Bahá'í Faith. A religious prisoner of the Ottoman empire for almost 40 years, 'Abdu'l-Bahá made the journey to America at almost 70 years of age. The trip made news headlines around the world. If you were alive and following the news at the time, you probably would have heard of it.

Helpful hints for downsizing an old Amazon EC2 instance

If you're working with Amazon AWS and trying to move stuff from some kind of big EC2 instance down to a t2.micro one (since the t1.micro is no longer offered), here are a few helpful hints to get you started.

First of all, be sure to start up the new micro instance in the same exact region as the old instance - not just us-east, but us-east-1 or whatever.

Drupal simpletests on BOA aegir vagrant box

Like a good little developer, I've written automated tests for my modules and distributions using the Simpletest framework. They have saved me from releasing defective code on one or two occasions. Lately, however, it's become increasingly complicated to get those tests to run on my BOA Aegir Vagrant dev environment. So, I'm writing these notes to remind myself what to do.

tl;dr: Disable open_basedir for PHP and turn off Redis and Speed Booster caching.

Maintaining an in-house Drupal install profile (aka distribution)

A few years back, when Drupal 6 was gearing up for showtime, one of the major working points was making the install profile system easier to navigate for developers. A Drupal install profile, also known as a distribution, allows you to specify an initial setup for Drupal, including both core and contributed modules, and setting up configurations for them.

Updating module versions in an install profile

Maintaining install profiles I am constantly having to maintain drush make files of contributed modules. Drupal.org used to display which modules were out of date on the dev release node, which made it easy, but that's gone now. I asked another distribution maintainer at Drupalcon a few weeks ago, and he just used the update status list. That works, but it's annoying to wait for the updates locally, sometimes having to run cron, and a little tedious to go through all the list of modules.

Pages

Subscribe to Recent Blog Entries