wesley tanaka

Light Painting With Drones


Wisdom of the herd


The hammer principle lets you crowdsource your opinion about gin, martial arts, version control systems, web browsers, databases and programming languages.

Fast, Low Memory Drupal 6 System Module

A Drupal 5 version of this module is also available.  If you would like this patch to be committed to Drupal core, please do not leave a comment on this page—please instead add your comment to Drupal issue #455092.

This is a drop-in replacement for the system.module of Drupal 6.33 which makes your Drupal 6 site use less memory and may even make it faster. A test I ran in a development environment with a stock Drupal 6 installation suggested that I got:



There's a recent meme that grit is important for success.

Turning an external monitor on by default in Ubuntu


To use a specific resolution, or turn on or off certain displays by default when you log in, you can create an .xprofile file in your home directory which runs xrandr commands.  For example, this .xprofile will turn on an external VGA monitor and set it to 1280x720 resolution and then turn off the internal LCD monitor on a laptop.

xrandr --output VGA1 --mode 1280x720
xrandr --output LVDS1 --off

Why do teenagers act crazy?


I've been trying to model asking "why" in front of my son when I remember to. Separately, at one point, I explained to him that he can say "I don't know" instead of "uhhhh, uhhhh, uhhhh."  This morning, these



Ryan: Does muffin make me taller?

Wesley: Vegetables make you taller. Well, muffin is pretty good too

Ryan: It's pretty good

Wesley: . . . but vegetables have vitamins, if you don't get enough vitamins, you might get sick. Actually, you need a balanced diet: some vegetables, some fruit, some grain, and a little bit of meat.

Ryan: . . . and a little bit of muffin.

Dropping partial InnoDB tables left from a crash


It's possible for MySQL to orphan temporary, partial InnoDB tables if the MySQL server crashes during an ALTER TABLE operation.

When this happened to me, I would get cryptic error messages when trying to create or drop certain tables, or create certain foreign key constraints, like:

ERROR 1005 (HY000) at line [. . .]: Can't create table 'my_database.#sql-509_5a' (errno: 121)

Using a VPN in Ubuntu Linux when your network is controlled by ifupdown


According to this bug and this bug, it's not possible to use a VPN through NetworkManager (the GUI for managing networking in Ubuntu) if your wireless or ethernet networking is configured using ifupdown aka /etc/network/interfaces. An example of this situation is if you're using NFS shared folders in Vagrant.

Using a Cisco compatible (vpnc) VPN from the command line in Linux


There's a command line program, vpnc which can be used to log into a cisco-compatible VPN on the command line. Enter the server address for the "gateway address", the group name and group secret for the IPSec ID and IPSec secret, and then the username and password, and it will start a vpnc daemon process in the background that connects you to the vpn.

To install it:

sudo apt-get install vpnc


Syndicate content
by Wesley Tanaka