Friday, 30 December 2011
Dec 30th 2011
There will be one blog from now on so i merged the content of cycleaustralia.blogspot.com adventurtures-of-a-slite-300.blogspot.com to emeraldjava.blogspot.com, it was quite easy once i found the blogspot import export tool. Added the next 7 bhaa event and story details to glfusion. Having some trouble trying to create a function on the mysql instance on the mac. And the Rover decided it didn't want to start this evening, so the plan evening run in dublin had to be cancelled.
Monthly Km's
Details of the monthly km's ran in 2011. The plan is to update the 2012 details here. September sticks out like a sore thumb with the madness of wisdom tooth removal.
Thursday, 29 December 2011
Saturday, 24 December 2011
Marathon Time Progression
Stockholm 2002 1/7/2002 3:30:00
Zurich 2003 1/5/2003 3:01:09
Berlin 2004 1/8/2004 3:00:00
Rotterdam 2005 1/4/0205 2:44:44
Zurich 2006 1/5/2006 3:02:20
Dublin 2006 31/10/2006 2:56:38
Cork 2007 1/6/2007 3:00:00
Dublin 2008 31/10/2008 3:52:53
Dublin 2009 31/10/2009 2:57:05
Dublin 2011 31/10/2011 2:43:02
Friday, 23 December 2011
Racetec Event Setup
Racetec Event Setup Tutorial
A guide to setting up and configuring an event and races in Racetec.
Monday, 19 December 2011
Sunday, 18 December 2011
RaceTec Notes
A Race can have multiple events, each event has race numbers, splits, categories
Splits/Laps
Waves - gun start, seeding and batches.
Teams
Gun Time - time of finish line read
Net Time - finish - start time. In event setup set finish time = net time option.
Splits/Laps
Waves - gun start, seeding and batches.
Teams
Gun Time - time of finish line read
Net Time - finish - start time. In event setup set finish time = net time option.
RFID Ultra Notes
Modes
- Start - reads chip once per second. 1 second gating.
- Finish - reads 30 times per second with signal strength identify best time
Gating
- Per Reader - two times from reader
- Per Box - Single first read time only
- First Time Seen
LCD Display
Time Last Chip Code
Signal Strength Voltage Gating Mode & Interval
Antenna Mode & Session Chip Reads
Gating Mode & Interval : R (per Reader) or B (per Box) 1 (seconds gating)
Antenna : 1 (on) 0 (off) for each antenna
Reader Mode & Session : S (Start) or F (Finish). Session ID
Thursday, 15 December 2011
Git on a USB Stick
Having loads of hassel the with git, ssh and https access to github.com, so i decided to setup git on a usb stick. I can work away during the day and synch to github at night.
I followed this tutorial
http://blog.costan.us/2009/02/synchronizing-git-repositories-without.html
http://swoes.blogspot.com/2009/02/setting-up-git-offline-work-via-usb.html
And these are the basic commands i ran.
mkdir /media/Transcend/git/com_bhaa
git clone --bare . /media/Transcend/git/com_bhaa/.git
git remote add usb file:///media/Transcend/git/com_bhaa/.git
assure@snapdragonubuntu:~/bhaa/zend/trunk/joomla/components/com_bhaa$ git remote -v
usb file:///media/Transcend/git/com_bhaa/.git (fetch)
usb file:///media/Transcend/git/com_bhaa/.git (push)
assure@snapdragonubuntu:~/git/com_bhaa$ git clone file:///media/Transcend/git/com_bhaa/.git .
Cloning into ....
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (6/6), done.
assure@snapdragonubuntu:~/git/com_bhaa$ ls
index.html router.php
assure@snapdragonubuntu:~/git/com_bhaa$ git remote add usb file:///media/Transcend/git/com_bhaa/.gitassure@snapdragonubuntu:~/git/com_bhaa$ git pull usb master
From file:///media/Transcend/git/com_bhaa/
* branch master -> FETCH_HEAD
Already up-to-date.
assure@snapdragonubuntu:~/git/com_bhaa$ git remote -v
origin file:///media/Transcend/git/com_bhaa/.git (fetch)
origin file:///media/Transcend/git/com_bhaa/.git (push)
usb file:///media/Transcend/git/com_bhaa/.git (fetch)
usb file:///media/Transcend/git/com_bhaa/.git (push)
git clone --bare . /media/Transcend/git/joomala_bhaa.git
git remote add usb file:///media/Transcend/git/joomala_bhaa.git
assure@snapdragonubuntu:~/poconnell/code/joomla_bhaa$ git remote -v
usb file:///media/Transcend/git/joomala_bhaa.git (fetch)
usb file:///media/Transcend/git/joomala_bhaa.git (push)
assure@snapdragonubuntu:~/poconnell/code/joomla_bhaa$ git push usb
Counting objects: 12, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (11/11), 2.67 KiB, done.
Total 11 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (11/11), done.
To file:///media/Transcend/git/joomala_bhaa.git
9067f85..dbc96e6 master -> master
Thursday, 24 November 2011
eclipse.ini
eclipse.ini as of 24/11/2011
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
-showlocation
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505
-vm
/usr/lib/jvm/java-6-sun/jre/lib/amd64/server/libjvm.so
-product
com.springsource.sts.ide
--launcher.defaultAction
openFile
-vmargs
-Xss4m
-XX:PermSize=246m
-XX:+CMSClassUnloadingEnabled
-XX:ReservedCodeCacheSize=128m
-XX:CompileThreshold=5
-XX:MaxGCPauseMillis=10
-XX:MaxHeapFreeRatio=70
-XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode
-XX:+CMSIncrementalPacing
-Dosgi.requiredJavaVersion=1.5
-Xmn128m
-Xms1024m
-Xmx2048m
-Xss1m
-XX:PermSize=128m
-XX:MaxPermSize=512m
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
-showlocation
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505
-vm
/usr/lib/jvm/java-6-sun/jre/lib/amd64/server/libjvm.so
-product
com.springsource.sts.ide
--launcher.defaultAction
openFile
-vmargs
-Xss4m
-XX:PermSize=246m
-XX:+CMSClassUnloadingEnabled
-XX:ReservedCodeCacheSize=128m
-XX:CompileThreshold=5
-XX:MaxGCPauseMillis=10
-XX:MaxHeapFreeRatio=70
-XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode
-XX:+CMSIncrementalPacing
-Dosgi.requiredJavaVersion=1.5
-Xmn128m
-Xms1024m
-Xmx2048m
-Xss1m
-XX:PermSize=128m
-XX:MaxPermSize=512m
Thursday, 28 July 2011
TestLinkAPI missing custom fields
I have this sample program using the TestLinkAPI v1.9.2-2. I want to return the list of custom fields for a TestLink projects test cases.
The exported xml output from TestLink for the suite is
package testlink; import br.eti.kinoshita.testlinkjavaapi.TestLinkAPI; import br.eti.kinoshita.testlinkjavaapi.TestLinkAPIException; import br.eti.kinoshita.testlinkjavaapi.model.TestCase; import br.eti.kinoshita.testlinkjavaapi.model.TestSuite; import br.eti.kinoshita.testlinkjavaapi.util.Util; import java.net.MalformedURLException; import java.net.URL; /** * Hello world! * http://testlinkjavaapi.sourceforge.net/sample1.html */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); String url = "http://xx/testlink/lib/api/xmlrpc.php"; String devKey = "xx"; TestLinkAPI api = null; URL testlinkURL = null; try { testlinkURL = new URL(url); } catch ( MalformedURLException mue ) { mue.printStackTrace( System.err ); System.exit(-1); } try { api = new TestLinkAPI(testlinkURL, devKey); } catch( TestLinkAPIException te) { te.printStackTrace( System.err ); System.exit(-1); } System.out.println(api.sayHello()); System.out.println(api.getTestProjectByName("xx")); TestSuite suite = api.getFirstLevelTestSuitesForTestProject(new Integer(1))[0]; TestCase[] testcases = api.getTestCasesForTestSuite(suite.getId(), true, null); for(int c = 0;c
The exported xml output from TestLink for the suite is
But the program output is
Hello! TestProject [id=1, name=Touchpoint, prefix=TP, notes=, enableRequirements=true, enableTestPriority=true, enableAutomation=true, enableInventory=true, isActive=true, isPublic=true] Install TestCase [id=3, name=Import Indexes, testSuiteId=null, testProjectId=null, authorLogin=null, summary=null, steps=[], preconditions=null, testImportance=null, executionType=null, order=100, internalId=null, checkDuplicatedName=null, actionOnDuplicatedName=null, versionId=2, version=null, parentId=2, customFields=[], executionStatus=n] n [] TestCase [id=5, name=Import Models, testSuiteId=null, testProjectId=null, authorLogin=null, summary=null, steps=[], preconditions=null, testImportance=null, executionType=null, order=101, internalId=null, checkDuplicatedName=null, actionOnDuplicatedName=null, versionId=2, version=null, parentId=2, customFields=[], executionStatus=n] nThere are no Custom Fields listed.
Testlink Automated Tests
Looking at how to define automated test cases within the TestLink tool this morning so I installed v1.9.3 painlessly. As per chapter 4 of the Jenkins TestLink Plug-in: The Definitive Guide the trick is to define and assign a 'Custom Field' to record the java class name or testng suite. Since we're not using jenkins I'll probally follow the basic steps and use http://code.google.com/p/testlink-api-java-client/ to pull the details from Testlink within my bamboo build.
In the testlink/config.inc.php update the following settings to enable the API and enable test automation
/** XML-RPC API availability (disabled by default) */
$tlCfg->api->enabled = TRUE;
/* [Test Executions] */
// ENABLED -> enable XML-RPC calls to external test automation server new buttons will be displayed on execution pages
// DISABLED -> disable
$tlCfg->exec_cfg->enable_test_automation = ENABLED;
In the testlink/config.inc.php update the following settings to enable the API and enable test automation
/** XML-RPC API availability (disabled by default) */
$tlCfg->api->enabled = TRUE;
/* [Test Executions] */
// ENABLED -> enable XML-RPC calls to external test automation server new buttons will be displayed on execution pages
// DISABLED -> disable
$tlCfg->exec_cfg->enable_test_automation = ENABLED;
Saturday, 7 May 2011
jaudiotagger logging levels
To quickly disable the verbose the logging from the jaudiotagger library just set this at the start of your program.
Logger.getLogger("org.jaudiotagger").setLevel(Level.OFF);
Logger.getLogger("org.jaudiotagger").setLevel(Level.OFF);