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 pear.phpunit.de/PHPUnit


from http://stackoverflow.com/questions/1528717/phpunit-require-once-error the files are installed to

/usr/share/php

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 pear.phpunit.de:
============================================
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

    /etc/php5/apache2/php.ini
    /etc/php5/cli/php.ini

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
 1,5:10.1,1.60,4,6,3:14,3:11,2:41,157,169,
 2,5:10.9,1.60,9,8,3:14,3:11,2:31,161,173,
 3,5:11.0,1.60,9,9,3:14,3:12,2:36,163,174,
 4,5:11.5,1.60,8,8,3:15,3:14,2:28,163,173,
 4,5:14.5,1.60,7,7,3:17,3:14,2:37,163,170,
 6,5:19.5,1.60,8,7,3:20,3:18,2:34,161,170,
 Summary,48:36.9,47:17.0,11.36,45,47,4:17,4:10,2:28,145,174

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.

http://connect.garmin.com/activity/165003822

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.