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



Friday, 20 November 2015

The quick way to using Rails

lynda.com Ruby on Rails essential training by Kevin Skoglund

Ruby on rails tutorial Learn Rails by Example Michael Hartl

Web Applications by Johm Ousterhout at Stanford Uni
(1 week)

Pick up specific things at
Railscasts by Ryan Bates

Don't bother learning CSS or HTML or Ruby

Saturday, 14 November 2015

TightVNC server for just one app window



    • Now it is possible to show a single application rather than the whole remote desktop. For that, run a server with a -shareapp CLI option and pass a running process ID as its argument.

    Tuesday, 10 November 2015

    Dev Things I did today, Tues 2015/11/11

    Tried for help with Mongoose, so I can get the Http HOST header field to display in the Mongoose Access Log

    Got confirmation of state of Play of SqueakCheck.

    It's now 20:52, so it's time I got moving further ahead.

    It's now 1:56am. No further ahead.


    Monday, 9 November 2015

    Dev Things I Did Today, Mon 2015-11-10

    Between midnight and 6am.

    Bought domain names.
    loveswordplay.com / ,co.uk
    clubknight.co.uk / .uk
    scorekeep.co.uk/ .uk
    grantlove.co.uk

    Set them up at 1&1 to point to the FreeDNS DNS servers
    ns1.afraid.org
    ns2.
    ns3.
    ns4.

    Set FreeDNS up to point to my server at 80.192.200.150/
    Port forwarding is to Stack for 80 and 443

    Tests:
    Chrome. DevTools mode, no caching

    80.192.200.150/
    clubknight.uk / .co.uk
    loveswordplay.com / .co.uk

    all return the Clubknight index page

    grantlove.co.uk returns the 'teal' Love Swordplay index page

    scorekeep.uk / .co.uk returned 404

    Created a folder for scorekeep
    M:\webroot\scorekeep
    D:\Mongoose\webroot\scorekeep

    Created index file for Scorekeep on M, and copied it to D:

    Next test:

    www.scorekeep.uk returns a Clubknight index page, not the scorekeep index page

    www.clubknight.uk/trial does not work
    clubknight.uk.to/trial does not work

    Okay - redirected clubknight.co.uk and .uk.to to
    ./
    This means they pick up the index file correctly.  But they do not pick up the /trial subdirectory properly

    Tried removing all clubknight entries, so all three use the root.

    All of them should point to exactly the same server, so there should be no need to rewrite those three names, all of them should behave the same way

    The mongoose.conf file has been wiped.  By using the Advanced Settings facility

    http://192.168.0.113/__mg_mc refers to the Mongoose Configuration file

    K, working.
    the php file was wrong, as was the access log

    And root was at D:\Mongoose instead of D:\Mongoose\web_root

    It all works now :-)  Tuesday 5:41am

    Set up a PharoCloud account





    Saturday, 7 November 2015

    To start Smalltalk on Pi

    Squeak:
    In a terminal window,
    cd /home/Squeak
    bash squeak.sh

    Pharo:
    In a terminal window,
    cd /PiPharo
    ./PharoS Pharo.image &

    Thursday, 5 November 2015

    Pharo's FileSystem





    myCurrDirectory := FileSystem disk workingDirectory .

    FileSystem 
         disk ( a class method)
     "Answer a filesystem that represents the 'on-disk' filesystem used by the host operating system."

    root ( a class method)
    ^ self disk root

    root
    "Returns the root of the receiver filesystem, i.e. / on unix"
    ^ self referenceTo: Path root

    So.
    FileSystem disk
        creates a new FileSystem object

    FileSystem disk workingDirectory
        creates a new FileSystem object and returns the current directory
    FileSystem disk root
       creates a new FileSystem object, and  magically returns the root path [I currently do not understand this code]

    I now understand this code!  Only 24 hours has past.
    I'm betting:
    FileSystem disk
        creates the new FileSystem instance, and returns
            aFileSystem, with a current disk
                Asking for its root location returns the fully qualified filepath to the root

    changeDirectory: aPath
    self workingDirectoryPath: (self resolve: aPath)  
       
    resolve: aResolvable
    ^ aResolvable asResolvedBy: self

    My brain hurts!