Monday, 28 May 2012

BHAA Wordpress Schema ERD

Using yuml to outline how the existing BHAA schema tables might interact with the wordpress tables. The 'user' is faily simple but how we handle 'events' will be a discussion point. Tables ending in '_Q' are questionable.

Wednesday, 9 May 2012

Updating my CV with hresume, twitter bootstrap and github

I've always found updating the format of my CV quite a pain, and during the most recent review of my CV is decided that an XML based approach would be the best.

First step was to convert the details in my existing word doc cv to a XML format. I looked at xml resume format but decided to use the hr-xml format in the end.

Next step is to use a xsl transform to convert the xml into an output format. While researching the transforms I found the hresume mircoformat which seems well supported. Madgex provide a tool for converting a html format into a PDF/Word format which solved one of my problems.

In order to ensure a level of sanity to the html layout and fonts, i decided to reuse the twitter-bootstrap resources.

While working on the xml cv file and xsl transform i used my github repository to track changes. The final piece of the puzzle was where to host the generated html resume file. I found that github provided this via the gh-pages branch which allows a file to be served as raw html to a browser.

The hresume html is hosted here and the madgex pdf is linked on the right hand column of this blog. Now to get the CV out to the market.

Wednesday, 11 April 2012

Pear and phpunit

Update PEAR to the latest PHPUnit version

    sudo pear upgrade PEAR
    sudo pear config-set auto_discover 1
    sudo pear install

from the files are installed to


which should contain

assure@snapdragonubuntu:/usr/share/php$ ls -al PHPUnit/
drwxr-xr-x  7 root root  4096 2012-01-17 14:28 .
-rw-r--r--  1 root root 13302 2012-01-17 14:28 Autoload.php
drwxr-xr-x  4 root root  4096 2012-01-17 14:28 Extensions
drwxr-xr-x  9 root root  4096 2012-01-17 14:28 Framework
drwxr-xr-x  2 root root  4096 2012-01-17 14:28 Runner
drwxr-xr-x  2 root root  4096 2012-01-17 14:28 TextUI
drwxr-xr-x  7 root root  4096 2012-01-17 14:28 Util

The versions can be verified by

pear list -c phpunit
Installed packages, channel
Package            Version State
File_Iterator      1.3.1   stable
PHPUnit            3.6.7   stable
PHPUnit_MockObject 1.1.1   stable
PHP_CodeCoverage   1.1.2   stable
PHP_Invoker        1.0.1   stable
PHP_Timer          1.0.2   stable
PHP_TokenStream    1.1.3   stable
Text_Template      1.1.1   stable

Ensure the php.ini files have this path on the include path


should both include the PEAR php share libraries

    ; UNIX: "/path1:/path2"
    include_path = ".:/usr/share/php"

Thursday, 5 April 2012

The Best 10K Workout - Week 3

We supposed to be 1*2Mile and then 4*1mile but having created the garmin workouts i discovered that only one workout can be downloaded. The downloaded workout was 6*1mile - here are the details

Split,Time,Distance,Elevation+,Elevation-,Avg Pace,Avg Moving Pace,Best Pace,Avg HR,Max HR

Was surprised by the simular times of the first four, usual fifth slowdown and had idea that the sixth might have been quicker but the overall times are quicker.

These UCD tuesdays sessions might be paying some dividend. 10miler in ballyliffin this weekend. First of the 2mile sessions next week - am tempted to jump to 2*2M+2*1M.

Saturday, 31 March 2012

The Best 10K Workout - Week 2

Week 2 was supposed to be Thursday but got moved to Sat evening after a near disaster with the BHAA DCC ladies chip timing. The lap was around Bushy Park


In general it seemed a bit more consistent but lap 5 stands out as lacking concentration.

Monday, 26 March 2012

The Best 10K Workout - Week 1

The first of the 10km specific sessions was a 6 times 1 mile with 3 mins recovery. I did a 15min warmup 

Lap Mile Pace
1 5:25.3 3:23
2 5:14.0 3:16
3 5:12.3 3:15
4 5:17.5 3:18
5 5:23.8 3:22
6 5:29.8 3:26

10 min cool down.

Looking at the times i should have done some strides before the first one, since the 10s diff between 1 and 2 is too much. Over the 6 laps the average pass was 3.20 which indicates a 33.3x 10km time. Need to get the finger out for the next scheduled session which is 1*2Mile + 4*1Mile on thursday.

The schedule is outlined here

Monday, 5 March 2012

Joomla Admin Component

The aim of this blog is to outline the structure and files that make up a custom joomla 2.5 component, the impact of the naming convention and which core joomla classes the various layers extend from. In the example the component name is 'abc' and the its main focus is on CRUD operations on a book entity.