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

Tuesday, 3 May 2016

Setting up the Virgin Router (yet again)

Now we have 4 networks:

XXHTWN
XXHTWN2-5G   (and if need be, XXHTWN2)
XXHTWN3  (and if need be, XXHTWN3-5G)



Network 1 uses design book chapter
Network 2 uses foil title
Network 3 uses the original design book with faulty doors.

Saturday, 30 April 2016

Extending a Wi-Fi Network with a Medion Wi-Fi Extender E85029 (MD 87119)

There are two key ways of extending a Wi-Fi network's coverage.

Repeater
Uses wi-fi to connect back to the central router.
Half of the wi-fi capacity is taken up with connections back to the central wi-fi router.

Access Point
Uses cables to connect back to the central router
All of the wi-fi capacity is available for client connections

Wi-fi client
Uses cable to reach to a cable-only LAN client device.
Uses wi-fi to communicate back to the central router

The repeater/access point will have it's own subnet.

Sometimes hard-coded, sometimes not.

For instance, the Medion Repeater/Access Point uses

192.168.66.xxx

.001 for the access point
.254 for the repeater
.253 as wif-fi client






Sunday, 27 March 2016

Mercurial: Pull from Bitbucket

In TortoiseHg:
Select repository
Choose the Synchronise screen  (Refresh style circular arrows on top icons row)
Select the appropriate source repository from bottom-left pane
Click on "Pull incoming changes from remote URL" button (icons above bottom-left pane)

This will give two heads in the branch graph.

Select the tip
Right-click and "Update"

The newly-arrived new tip will become the local tip