The Manifesto

Stop being a judgmental asshole. Your whole world doesn’t revolve around you. It shouldn’t. No one else’s does. Learn that others are equally important.

Talk less. Talk less shit. Listen. Listen more. Think about what you say and how you say it. Your words mean more than you realize.

Be nicer.

People are different. They do things differently. That’s okay. It makes life fun.

Don’t let fear paralyze your decision making. Feel the fear. Do it anyway.

Dress and act like the man you want to be.

Stop hiding. A façade isn’t worth having if it means sacrificing the trust and feelings of those you love.

You are not a burden on your friends, despite what your brain may tell you. They do care. They need to know what’s going on. Tell them.

Find value in what you have. Want less. Buy less, buy better. Spend money on experiences when you can and share them with those you love. Experiences will always mean more than the next fancy thing.

Bruce Layman, 18-12-2012

Via Nicholas Bate.

Postgresql template troubles

I’ve been doing a lot of Drupal work lately. For the last couple of days I’ve been struggling with the deployment of a website I’m working on. For some reason one of the standard Drupal tables in the Postgresql database ended up being owned by another Postgresql role. This resulted in an error in the deployment. I have literally been staring at the error for two days, I could not figure out where it went wrong. After a lot of searching on the internet I finally found out what the problem was!

Postgresql uses a database called template1 when a new database is created as a template. For some reason there was a relation defined in template1 for the table that caused the error in the deployment. The relation defined the table to be owned by another Postgresql role. The problem I had could be solved by removing the template1 database, but this is only possible when you tell Postgresql the template is not a template anymore (because template databases cannot be dropped). So I had to issue the following command:

update pg_database set datistemplate = false where datname = 'template1';

Now you can

drop database template1; 

after which you can recreate it using

create database template1 template template0;

Now I was finally able to deploy the website. Well, until another problem raised it’s ugly head. But that is a problem for tomorrow.

Productivity is for machines