Search This Blog

Tuesday, July 16, 2019

Marcus Graduates LAW

Tuesday night we went to witness, support and cheer Marcus as he graduated with a Bachelor of Law.

I went to Thallon st and got changed.  Megan and I drove to Brigidine in Megan's car and picked up Jemma.  We continued to UQ.  Megan dropped Jemma and I near Mayne Hall.  Jemma was in her sports uniform and wanted to change into something more formal.  Megan went to park the car and Jemma went and changed in the Law library toilets.  We managed to meet up with Marcus & Sophie and shortly thereafter Chris and Dan appeared having parked at Toowong rowing club.  It too a while for Megan to join us but eventually we were all together and the photos began.  Then we traped across to the UQ centre.


































Thursday, July 11, 2019

MRP MySQL v PDO

XAMPP on my laptop is now running PHP V7.3.3
The old procedural API commands have been removed from PHP.  The jargon word is depricated.
My MRP system is full of the procedural calls.

QUESTION 1 - PDO or MySQLi
Reading a few web sites
https://websitebeaver.com/php-pdo-vs-mysqli
https://www.w3schools.com/php/php_mysql_connect.asp
"Both are object-oriented, but MySQLi also offers a procedural API."
So I will use MySQLi

CHANGES


OLD NEW  note the i's
. .
. .
mysql_fetch_array($result, MYSQL_ASSOC); $row = mysqli_fetch_array($result, MYSQLI_ASSOC);
. .
mysql_query($query) $dB = $GLOBALS['db'];
mysqli_query($dB , $query)
. .
. .
. .
. .


$result = @mysql_pconnect("localhost", "user", "pass");
$result = mysqli_connect($host, $username, $password);

// https://stackoverflow.com/questions/22834458/deprecated-mysql-pconnect
// UPDATE: As pconnects have nearly no benefit,
// you should replace mysql_pconnect with mysql_connect in your scripts anyway.
if (!function_exists("mysql_pconnect"))
{
    function mysql_pconnect($host, $username, $password)
        {
        //return mysqli_connect("p:".$host, $username, $password);
        return mysqli_connect($host, $username, $password);
        }
}.


mysql_select_db ( string $database_name [, resource $link_identifier = NULL ] ) : bool

@mysql_select_db("db name")
mysqli_select_db ( $result , $dbname ) 

So it looks like the old way, the "link" was optional


Selects the default database to be used when performing queries against the database connection.
https://www.php.net/manual/en/mysqli.select-db.php
mysqli_select_db ( mysqli $link , string $dbname ) : bool
The link is the identifier returned by mysqli_connect
so I need
mysqli_select_db ( $result , $dbname

mysql_query()


mysql_query ( string $query [, resource $link_identifier = NULL ] ) : mixed
mysqli_query ( mysqli $link , string $query [, int $resultmode = MYSQLI_STORE_RESULT ] ) : mixed

mysql_num_fields()
mysqli_num_fields($result)

mysql_fetch_array($result, MYSQL_ASSOC);
Note: MYSQL_ASSOC does not exist in PHP7
mysqli_fetch_assoc ( mysqli_result $result ) : array


mysql_insert_id
mysqli_insert_id ( mysqli $link ) : mixed
$urn = mysqli_insert_id($dB);






Tuesday, June 11, 2019

NK Rowing Speakers Repair



I bought a couple of speakers off ebay.  Two styles as I do not know if either will last the distance.

The description to search for on ebay is:
57mm speaker waterproof
Step 1 is solder the wires onto the new speaker.
Step 2 is bend the wire like this so the seal will be to the black outer.
 Step 3 Run the silicone around before putting the speaker in.

This silicone is a bit runny.  It would be nice to have a more viscous sealant.
Step 4 a bit of extra silicone where the wire goes in
 Unusual.  Water got into this one.
 Someone has done a replacement however they don't understand how the speaker works.  The extra sealant stops the sound getting from the cone to the vent holes.


Tuesday, May 28, 2019

Jemma Rowing GCRASRA

Saturday we had another regatta.

All the girls did really well.
I was coming down with some kind ofcold flu thing and ended up having a hour sleep in the middle of the day.

The weather was beautiful. 













Monday, May 6, 2019

Centenary Boat Trailer Wiring

I am going to check the wiring on the Centenary Rowing Club Boat Trailer.

This trailer has dual braked axles with a break away system and on board battery and a 7 pin flat plug.

The trailer must be towed by a vehicle fitted with a brake controller.  In fact Queensland regulations require the brake controller to be in the tow vehicle.


So the first thing is that it seems difficult to find information.  This web page has a nice description of the system
https://findthingy.com/trailer-plug-and-socket-pinout/











































Looks like we can buy a new switch for $8

which is way way better than $30-$80 that the trailer places seem to want








Thursday, April 25, 2019

ANZAC Dawn Service





2:30am alarm. Jemma and I arose. 
3:00am met guide group at oxley station.  
Megan hopped on at Sherwood. 
3:15am train to Central. 
Dawn service at post office square. 
Then the guides walked in search of breakfast. First to pancake manor. Then sanchuros. Was so glad they decided to keep moving. Eventually settling on the coffee club. 





Friday, April 12, 2019

Home to an empty house

The wife has gone.
The dog has gone.
The junk has gone.
The furniture is almost gone.
The house is pretty bare.
Even the cat is gone.
The turtle is here.
I'm powerless.
Nobody.
I came home and the pillow and a blanket are gone from the bed I've been using. Obviously not mine but that they just vanish kind of feels disempowering. I'm a nothing.
Alone in the empty house.
Children would play.
People disconnected