About the Site

Welcome to my web site on computers. I'm working to add more content as time allows.

Content on the website will be related mainly to Linux and data / databases (I'm currently employed as a Database Administrator (DBA) for FlightStats.com), although you will find occasional articles related to Microsoft Windows.

The purpose of this web site is two-fold:

About Me

Tim BruceI am a Database Administrator for FlightStats.com.  I work mostly with the PostgreSQL database engine although I'm looking at both MongoDB and Hadoop. I also do a limited amount of systems administration with Solaris and Linux - specifically Ubuntu.

While I mainly use PostgreSQL at work, my background includes Sybase, SQL Server, PostgreSQL and MySQL and I use both MySQL and PostgreSQL at home.

lowspace.sh

This script is called from a cron job (scheduled task) and emails me on a daily basis this data so I can track disk space usage.  I install it on all my systems (though I should probably do something different, like store the values in a database or something).

Drupal node table information

I don't advocate updating databases without going through the application.  However, I had issues with some data when I migrated it from one database to another and had to fix the data.

This is REALLY not recommended, and your results will vary depending on which version you are using.

This SQL generated the update statement I needed to run to fix the problem.

Tags:

AIDE Presentation

A copy of the quick presentation I did on using AIDE for the local Portland Linux/Unix Group. Presentation was quick and dirty, and in PowerPoint format.

Creating A Drupal Database

The following SQL will create a PostgreSQL database for Drupal.  I'm calling it drupal in this case, but you can call it whatever you want.

CREATE DATABASE drupal
  WITH OWNER = drupalweb
       ENCODING = 'UTF8'
       TABLESPACE = pg_default
       LC_COLLATE = 'en_US.UTF-8'
       LC_CTYPE = 'en_US.UTF-8'
       CONNECTION LIMIT = -1;
GRANT CONNECT, TEMPORARY ON DATABASE drupal TO public;
GRANT ALL ON DATABASE drupal TO drupalweb;

 

Uptime vs Availability

Do we need to sacrifice system uptime against system availability. And I use the term system availability to identify both uptime and unscheduled outages. So here system availability includes time from both unscheduled and scheduled outages. Why would I ask such a thing? Systems crash for all kinds of reasons: failure in the garbage collector to collect objects or collecting the wrong objects. So why do we need to do regular scheduled reboots of the system?

PG Day 2010 Presentation

My slide presentation from PDX PG Day 2010 in Portland, Oregon. The presentation was created in Open Office (the .ODP file - Postgresql (OSCON).odp), but I've also created a PPT version (Postgresql (OSCON).ppt) exported from Open Office.

Finding the UUID for Linux Drives

The Universally Unique Identifier (UUID) is a good way to mount drives under Linux with SATA drives (or any drives, PATA or IDE).  This ensures that when you have more than one harddrive, it always gets mounted to the same location specified in /etc/fstab.  The reason is that SATA drives are mounted when they're found and on one reboot can come up as

Tags:

PostgreSQL on Windows - Presentation

I just completed a presentation for my local PostgreSQL User Group (the Portland PUG) and gave it last Thursday.  I need to add some updates to clarify things and round out some of it, but here it is as I gave it.

Hopefully there are others who will find it useful.

As a side note, there are NOTES on some of the slides to go along with the material being presented.

Pages

Subscribe to Tim's Computer Web Site RSS