Monday, 9 October 2017

Details of the Belle Poule .cotcot file

It appears to be an FIE-standard XML file

Root tag CompetitionIndividuelle

Tag
CompetitionIndividuelle
Attrs
Couleur="#hhhhhh" Hex RGB code
ID="59d6f347"  <8 hexigits, as a string>
Annee="yyyy"
Arme="F" [or S or E, I'm guessing]
Sexe="FM" [I'm guessing the other options are "F" or "M"]
Categorie="M13" [for Moins de 13? - Under 13]
Niveau="X" [???]
Date="dd.mm.yyyy"
Appel="11:00"
Scratch="11:20"
Debut="11:30"
TitreLong="PaFF Trial 3"
URLorganisateur="http://paff.uk.to"
ScoreAleatoire="0"
TailleMinimaleEquipe="3"
ClassementDefautEquipe="9999"
ClassementManuel="0"
Lieu="Edinburgh"


FENCERS

Fencers ("Tireurs")
Statut
= Status

"F"
Entered, not checked-in
"Q"
Checked-in

Sexe
= Gender   "M" or "F"

Nom
= Surname (last name in the import file)

Prenom
=First Name

Equipe
= Team within a Club

DateNaissance
DoB, in the date format of BP's host

Nation
Ligue
Club
Categorie
Ranking  All set to "0"
Rating
Exporte  All set to "0"

Equipes

i.e. Teams - within clubs

Arbitres

Referees

Phases 

Attributes
PhaseEnCours="0"

Tags Within Phases

TourDePoules (Pools round)

PhaseID="2"
ID="Round #1" /* user input in Preferences */
ScoreMax="5"
RepartitionEquilibre="1"
PhaseSuivanteDesQualifies="3"

PhaseDeTableaux (DE)

PhaseId="3"
ID=""
ScoreMax="10"
PlaceTirees="0"

Classement General  (Final results?)

PhaseId="4"
ID="4"

</Phases>

So within phases, each round is set up (whether pools or DE) , and then the Final the Pools or DE is set up, then the final results

Questions: What happens when you change the Max Score for a round of Pools, after it has been previously set up?


Originally, test data was
Pools - 1 round
DE

And there was Pools PhaseId 2
DE Phase ID 3
Classification PhaseId 4

On deleting the DE table in BP, it was removed from the Phases, and the follwing Phases had their PhaseID decreased by 1

Adding a second round of pools to the formula forces teh pools for the first round of pools to be defined.

Getting the info by name from the whole document means that that I pick up the Tireur tags in TourDePoules and Poule as  well as in Tireur






Saturday, 7 October 2017

TrueSkill Calculator

Here is an implementation of TrueSkill in C#

This is the simplest implentation - 1 player versus one player

https://github.com/moserware/Skills/blob/master/Skills/TrueSkill/TwoPlayerTrueSkillCalculator.cs

Loading XML data into the browser

Implicit rules for XML


It requires an encoding defintition in the <xml> statement
To be loaded as a unity, it requires a top-level node - e.g. "catalog" in "books.xml"

The file suffix must be .xml
Re-naming a valid .xml file with a different suffix causes a null object to be returned.



That node

The XML file needs to be suffixed as .xml

The load process for a Belle Poule .cotcot file is currently

Save the .cotcot file into the appropriate /org/<org>/<competition>/[<event>/] folder in CK

How do you do that, when BP is storing locally, and CK is remote?


Copy the .cotcot file, changing its suffix to .xml

Load the .xml into the browser




On save, save as .xml

Copy the .xml file, and rename to <prevFileName>suffix.cotcot

Load into BP




Thursday, 21 September 2017

Bringing the Test and Dev repositories back into line with the long-term stable Production

The Production repository of April 2016 has been live and stable for 17 months now, and I'd forgotten what I'd been up to in Dev.

So I wanted to overwrite the Dev and Test with Production, but without losing the changesets graph and numbering.

However, there was a problem. The Production repository decided it was no longer matched to the Dev and Test ones.

So...
I copied the Production directory, to get a complete back-up, including pools data.

I over-wrote the files in Dev directory with the files from Production (excepting the .hg files).
I checked everything that had changed, keeping notes in Notepad of the interesting stuff.
I committed the changes in Dev, then pull/update-d them into Test.
I cloned Test to create a new Production.

This in effect took Dev and Test back to Commit 511.

This will require re-writing the Dev changes in Commits 512 to 519.






Wednesday, 20 September 2017

Eliminated the "Loading" text

What I did

I've commented out both of them from  templates/gawainRefHead-L3.phtml file in Test

Result

This eliminates the "loading" text.
and eliminates the vertical scrolling on the screen
The screen was sized to the viewport. "loading" appeared below the viewport, which made the webpage larger than 1 screen.

Resolves Issues  

101,116, (get rid of 'loading' and a duplicate), and
222,223,225, hunting for and eliminating the .map files I thought were the cause.

Tests

Tested for existing pools - 
PaFF/PaFF_20/Rd P4
Test/20170920/of_4
Created a new pool
Test/20170920/of_7

Test results : only observed difference was a lack of the "loading" text.

Test Conclusion

Only jQuery has been used to date, jQuery Mobile has been loaded, but not been used.

Why it worked 

ClubKnight currently loads  jQuery Mobile 1.3.1
jQuery Mobile is supposed to automagically load its .css files.  (For styling and for structure)
It was not loading any .css files in ClubKnight.

jQuery Mobile includes a "Loading" screen while the web page is loading, containing <H1>loading</H1>

jQuery Mobile's Css files include a version which only contains the structure, but not any of the themes, to allow you to hand-roll styling for the UI elements, while accessing the structural widgets.

The version for ClubKnight is
http://code.jquery.com/mobile/1.3.1/jquery.mobile.structure-1.3.1.css

I can't find where the .css  gets specified, so I don't know how to
a) load the .css from the local server
b) specify that particular version

I looked through the jQuery Mobile.js - did not see any loading instructions.

Alternatives tried

I tried manually loading the relevant .css file.  This overwrote the button styling I had created.

Sunday, 10 September 2017

Minifying my own .js files.

functions.js

is now stored as two versions:  functions.max.js (the version that I am creating) and functions.min.js (the minified version)

Depending on the stage I'm in, I copy the appropriate one into functions.js

Functions.js gets loaded by the poolsheets.

According to minifierUsed.txt in GawainDocumentation:
Minifier used.
http://refresh-sf.com/

Thursday, 7 September 2017

ClubKnight servers and Mercurial Repositories - which is which

The repositories at present 2017-09-07

Production server
To start: desktop shortcut "Mongoose 5.5. on D"

Files stored in
web url:
   http://clubknight.uk/
file location
   D:\Mongoose\webroot\
Mercurial repository named:
   web_root

web url:
    http://clubknight.uk/trial
file location
    D:\Mongoose\webroot\trial
Mercurial repository named:
    trialOnD

To back up production system data, copy:
   D:\Mongoose\webroot\ 
      to 
   M:\D-Mongoose Backup

Development server
To start: ???
web url:
   ???
file location:
   either
Mercurial repository:  gawainDev-Dev
 
Test Server
To start: desktop shortcut "Mongoose 5.5. on M"
http://clubknight.uk:8080/trial
M:\webroot\trial
Mercurial:  trialOnM