30 July 2013

Installing ffmpeg on CENTOS 6

I recently had to do this and thought I'd post the steps mainly to remind myself if I had to do it again in the future:

  1. Enable EPEL
    rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
  2. Install RPM Fusion
    yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm
  3. Install ffmpeg
    yum install ffmpeg
Quite straight forward really!

10 June 2013

CPanel on AWS: Domains redirecting to cgi-sys/defaultwebpage.cgi

We recently set up a test server environment on AWS. One of the issues we faced was putting multiple domains on a shared ip address. Visiting these domains redirected to the default web page for the hostname.

Our Setup:
An Elastic IP (EIP) pointing to a VPC which contained an EC2 instance (web server) and an RDS instance (mysql server). WHM/cpanel had DNS Clustering enabled for automatic DNS entries on our remote nameservers and the shared IP address was set to the EIP.

Process:
After much googling about the problem and a lot of test edits to httpd.conf it seemed apparent that it was related to a resolution of the domain name on the web server. The DNS entry itself was correct as we could reach the server but it didn't seem like it was resolving to the correct ip address that was within the VirtualHost directive in httpd.conf.

I created a simple PHP script in the default htdocs location to print out the environment.  This was simply something like:
<?php print_r($_ENV);
This gave me the information I needed (although I missed it for many hours). $_ENV['SERVER_ADDR'] was set to an internal ip address not the EIP.

The reason is the EIP points to the VPC which in turn passes the request to the internal server IP address - in our case a 10.0.x.x address. The server was then responding with the default configuration not the settings within the respective VirtualHost directive (as it was set to use the EIP).

Solution:
In our case we still have the EIP set as the shared IP address in WHM/cpanel. We do this so that the clustering will set up the DNS entries correctly. However we need to manually change the VirtualHost entries to respond to the internal IP address. (The plan is to write a post-account-setup script to automatically change on account creation).




30 May 2012

Dealing with an ego monster

All of us must deal with other people. It is a part of life and the success of those relationships will determine to a certain degree the success (however that is defined) and happiness in our lives. Some relationships we choose: friends, sports teams, hairdresser, barista, etc. and some relationships are, to varying degress, forced on us: family, work colleagues, the passenger next to you on the plane (albeit for only a short period of time), etc. It is within this second group of people that we often find ourselves getting stressed for a variety of reasons.

Recently I've had the opportunity to deal with one such person, where the relationship is, for the most part, forced upon me ie we need to work together. However this person also comes with a rather large ego which is evidenced by:

  • the belief that certain activities could not succeed without them;
  • they take credit for work which is not theirs (with the stated belief that they are better known hence the "marketing" value is better tied with them);
  • if an opportunity arises for some public exposure, they will take it without any thought about others who may be more appropriate for the opening.

This is the ego monster!

So how to deal with such a person?


1. Separate the person from the problem
(My wife recently reminded me of this eternal piece of wisdom.)

In this case the person is actually quite nice. Take them out of situations where the ego monster can raise it's head, and they are very likeable. Simply put, the person is for the most part a quality individual but the problem is how they respond in certain situations.


2. Don't Take it Personally

Ego monsters don't have bad intentions. They genuinely believe that what they do is acceptable behaviour and they are in fact being kind to you by virtue of their actions. Now it's always hard to keep a good attitude when someone hurts you, but knowing that their intentions are generally good can help in dealing with the actions.

3. Set Clear Boundaries


This is really a general piece of advice for life. We set boundaries on our relationships with other people, we set boundaries on ourselves so we don't hit those dangerous places of extremes. In the case of dealing with an ego monster, set clear boundaries on what is acceptable and what is not. This means telling them this is line and I'm uncomfortable if you cross it. And if they do cross it then you need to choose, either raise the matter with them or change the relationship (as far as it is possible).

Now What?

While those points look good when written, I realise it's always harder to put them into practise. So for me it's a journey in progress. If you see me on the news charged with the murder of an ego monster you will know I failed. Otherwise it's a daily battle with my own attitudes, response and reactions.

12 August 2011

Doing things the (LMS of choice) way

Having just finished 2 days of facilitating moodle course creator training, I have yet again been left with new insights into how people are using moodle and what they expect of a modern Learning Management System. Meeting people on-the-ground is always good for someone like me who is otherwise engaged in business or development but not actual use of the tools that make up my livelihood, at least not on a daily basis.

There is one thing that does continually annoy me however ... a user who was using LMS X and is now moving to moodle (for whatever reason) and demands that moodle should do things the same way as previous LMS X. It seems to me that it's not the method that is so important, but the learning outcome. In other words, what were you trying to achieve by doing previous activity in LMS X and how could we achieve that same outcome in moodle? NOT how can we do the same activity in moodle?

The analogy to me is like driving in a car for a number of years, then switching to a motorbike and insisting that we have a steering wheel to turn corners. Surely the end result of turning a corner is the ultimate goal and method is somewhat irrelevant.

While I respect that the method does have some impact I have seen enough quality teachers who can make miracles happen without any additional props, resources, LMSes to know that whatever the desired outcome, you can make it happen if you think creatively about it.

12 November 2010

Thoughts on Leadership

Someone recently said to me that the goal of being a leader was to train people to be at least as good as yourself. Well with all due respect (and I do have a high level of respect for that person), I disagree. If that is "the" goal then it implies leadership is based on a persons capabilities/skills in a particular field. However I suspect the General of an army is not the best sniper, tank driver, unarmed combatant, etc. Nor is the CEO of a bank the best financial expert. Nor (ideally) is the prime minister/president of a country the best policy maker, politician, orator.

So why are these people the leaders? Well simply put because they are the best "leaders" ie I believe leadership is a skill/gifting in and of itself. Therefore in any organisation the role of a leader is different to the roles of those being led.

So what is the goal of a leader? To draw out the best in the people being led to achieve a particular goal/vision. A general's role is to make his soldiers into better soldiers, in whatever field, to win a battle or a war. A CEO of a corporation aims to produce experts who can provide strong growth (financial or otherwise). A head of government draws the best policies out of their executive to improve their nation. A head master develops the best educators who in turn produce the best students. And so on ... you get the idea.

If we take on this view of leadership then we understand that the role of a leader is to serve those whom they lead. The leader is to develop/draw the best from their followers who in turn will deliver the results to achieve the vision. Once we understand the why of leadership, then we can better work on the how-to of leadership (and there are a multitude of books, experts, opinions on the subject).

One final thought: everyone follows someone and everyone leads someone - at the very least we should be leading our own lives. Most of us will also have families, friends, work colleagues that we also lead in some aspect. We should be aware that our role is to serve these people, to draw the very best out of them that we can.

21 September 2010

Reading Resolution 2

An update on my reading resolution - there are 2 more books to add to the list:

Coalescent by Stephen Baxter
Relativity by Albert Einstein

Given that it's month 9 and I've only completed 5 books it may be a little hard to achieve my goal of a book a month for the year, although I do have about 3 books on the go right now so we'll see.

It's also somewhat misleading as I tend to read a lot but it's usually magazines, bibles, web articles, manuals, advertising, children's books (for my kids ... well maybe for me too) etc.

13 September 2010

Tardiness

OK, so this is a bit of a rant about something that really annoys me. If you are going to make an appointment with me or arrange to meet me or basically say "be here at this time" then don't be late!

If you are late then you are stealing my time. If you are meeting with a group of people and you are late, then you are stealing time from all of them.

Now I realise that there are valid reasons for being late ... life happens. However when it is something within your control then you are making a value judgement that whatever it is that "prevents" you from being on time is more important than those with whom you are meeting.

A simple of rule of thumb I use: time is money (in reality it's worth a lot more) so assume you are paying everyone with whom you are meeting eg I'm meeting with 12 people, I'm going to be 5 minutes late therefore I should be willing to pay 12x5min = 1 hour of their time. I generally use $150/hour as the benchmark (mainly because of my profession). So the big question is: Is the reason I'm going to be 5 minutes late worth $150? Sometimes it is but it's not often when it has a monetary cost associated with it.

So if you are late, aside from genuine unforeseeable problems, then be willing to pay the price of my (and other people's) time.