Upgrading Drupal 7 PHPTemplate-based themes to Drupal 8

Posted on July 21st, 2013 by David Luhman and tagged .

I'm looking to start trying out Drupal 8. But I need some themes for display.

Here's a couple good articles on how to handle this :



For my current D7-based themes, looks like I have a couple options :

- Modify "slightly" the PHPTemplate-based themes and use them mostly as-is.

- Run the PHPTemplate-based theme thru "Twigify" at https://drupal.org/sandbox/forest/1974984

College and open source (Drupal)

Posted on July 18th, 2013 by David Luhman and tagged , .

Here's a response to Open Source: The New College!

Although I have two bachelor's and one master's degree, I've been blogging for a while about the declining value of a college education.

Follow-up on Ubuntu apt sources.list in Amazon Web Services

Posted on March 24th, 2013 by David Luhman and tagged , .

This is a follow-up to a previous post where I was having trouble running apt-get as part of the initial boot process for a new AWS instance.

I actually never could automatically load packages using the recommended workaround of using apt_mirror :

apt_mirror: http://us.archive.ubuntu.com/ubuntu/

When I'd check the cloud-init log at /var/log/ apt-get would just sort of silently fail.

Getting Ubuntu cloud-init to work in an Amazon (AWS) VPC

Posted on March 16th, 2013 by David Luhman and tagged , , .

Ubuntu's cloud-init is a mechanism which can be used to provision a new instance upon initial boot. I imagine cloud-init can be used in many environments, but I'll focus on its use in Amazon Web Services (AWS).

You can invoke cloud-init in at least a couple ways :

- shell, with a lead line of #!/bin/sh
- cloud-init, with a lead line of #cloud-config

Amazon Web Services PHP SDK 2 - "Hello AWS" sample

Posted on March 11th, 2013 by David Luhman and tagged , .

I was able to install the AWS PHP SDK 2 on Ubuntu 12.04 using Composer.

Here's a simple script which will show sample output from the EC2 Describe commands :


Amazon Web Services SDK for PHP 2 Documentation

Posted on March 8th, 2013 by David Luhman and tagged , .

As I mentioned in an earlier post, the new SDK for PHP 2 for Amazon Web Services (AWS) is kind of lacking in documentation. Since the PHP SDK 2 for AWS is pretty new (November, 2012), hopefully this lack of documentation will be addressed. However, here are some notes which will help me and hopefully others.

At least for now, I'll focus on EC2 examples and code as that's what I need at the moment.

Amazon Web Services SDK for PHP 1 vs. SDK for PHP 2

Posted on March 8th, 2013 by David Luhman and tagged , .

I'm pretty new to Amazon Web Services (AWS) and especially "managing" AWS through PHP, so hopefully this will help me and others.

There are apparently two ("1" and "2") PHP-based SDKs available to manage AWS with PHP. It looks like version two was announced in November, 2012.

When the PHP SDK 2 was released, it seemed like it didn't support as many AWS features as PHP SDK 1, but now SDK 2 seems to support all AWS features, including new ones like OpsWorks.

So which one is better?

How to update Drupal

Posted on August 21st, 2012 by David Luhman and tagged .

Attached is a presentation I gave at my local Tri-Valley Drupal Users Group.

It outlines how to perform a minor "point" upgrade of Drupal. For example, updating Drupal (an modules) from 6.12 to 6.26 or 7.14 to 7.15.

Updating Drupal Presentation

Obtaining JUnit-compatible XML from SimpleTest

Posted on August 7th, 2012 by David Luhman and tagged , , .

SimpleTest is a nice testing framework for testing PHP-based applications at the unit and functional level. However, I (and others) have had trouble getting JUnit-compatible XML output for use in continuous integration servers like Jenkins.

SimpleTest provides a built-in XML-based output, but it seems to be mostly for internal communication by SimpleTest itself. It's not JUnit compatible.

To convert SimpleTest output into JUnit-compatible XML, I've seen at least a few posts :

SimpleTest vs. PHPUnit for PHP-based testing

Posted on August 7th, 2012 by David Luhman and tagged , , , .

Over the year's I've kind of gone back and forth on SimpleTest, a PHP-based unit test framework.

A few years ago, when PHPUnit was in its infancy, SimpleTest was the best PHP-based unit test framework. In the past few years, however, it seems like PHPUnit has been improved continually, while SimpleTest has languished somewhat.

Currently, I believe PHPUnit is the best choice for true "unit" ("micro") testing, while SimpleTest seems to be better for modest functional (integration) testing.