Recent Updates Toggle Comment Threads | Keyboard Shortcuts

  • Wayne 10:34 pm on February 3, 2015 Permalink | Reply  

    how to move wordpress site to new url on the same server. 

    1. Setup new directory and copy across all  old files.

    2. Edit functions.php of old site.

    Add these two lines to the file, immediately after the initial “<?php” line.


    reload admin pages a few times. remove the 2 lines

    3. Update URL’s in database tables.

    On new site, replace all URL’s in database. Use ‘Better Search replace’ plugin on database with old url to new url (serialised that’s why you need this
    plugin) on all tables

    4. Redirect old site.


  • Wayne 9:38 am on January 12, 2015 Permalink | Reply
    Tags: analytics,   

    How to set up custom dimension tracking in wordpress 

    I wanted to compare 2 different wordpress themes.

    I’m using a plugin called SES theme test or something like that and it swaps between 2 themes so I den test them. But I need to set up analytics to gather the data as follows:


    1. Set up google analytics to look for custom variables.

    Firstly go to your analytics interface and click on the ‘Admin’ tab (blue) then on the ‘Properties Settings’ (here it’s selected – orange.

    Firstly go to your analytics interface and click on the 'Admin' tab (blue) then on the 'Properties Settings' (here it's selected - orange.


    Screen Shot 2015-01-12 at 8.26.36 pm

    Now go down and click on ‘Custom Definitions’ (above) then on Custom Dimensions (below.)

    Screen Shot 2015-01-12 at 8.26.44 pm




    Then click on ‘New Custom Dimension’ button





    Screen Shot 2015-01-12 at 8.26.53 pm


    Then fill in the ‘Name’, i just entered ‘theme name’. It’s just for your own reference.

    Screen Shot 2015-01-12 at 8.28.27 pm


    It will then show you the code to add to your theme:

    Screen Shot 2015-01-12 at 8.23.27 pm



    STEP 2, add code to theme

    REplace ga(‘send’, ‘pageview’);

    ga(‘send’, ‘pageview’, {
    ‘dimension1′: ‘get(‘Name’) ?>’

    Now analytics will pick up the theme name.

  • Wayne 12:57 am on September 30, 2014 Permalink | Reply
    Tags: phone, technology   


  • Wayne 12:18 am on September 30, 2014 Permalink | Reply  

    rsync server backup 

    How to back up your web server via the terminal

    This will backup your entire remote server to your local Macintosh computer.

    rsync –recursive –verbose –archive –progress –stats –size-only –dry-run ~/Sites/

    TO do for real repeat the command with –dry-run removed!

    Here’s how to make it so you don’t need to type in your password each time you rsync to the remote machine:

    1. Open the terminal window and type ssh-keygen -t rsa
    Follow the prompts and use the defaults for the filenames it gives you. Don’t enter in a password.
    2. Go to the finder menu Go|Go to Folder and type in ~/.ssh
    You should then have two new files id_rsa and
    3. Use your ftp program to copy into the .ssh directory in the home folder on your server machine, and rename it to authorized_keys.

    If server IP address changed you need to delete entry from known_hosts file on local mac with this terminal ommand:

    ssh-keygen -R hostname

  • Wayne 1:48 am on July 1, 2014 Permalink | Reply  

    Legality of taking photos of people in NSW and publishing htem

  • Wayne 10:55 am on June 25, 2014 Permalink | Reply  

    remove ds-store files from zip file 

    If you are trying to  upload theme to and are getting the following error:

    ds_store Hidden Files or Folders found

    Here is an app that will remove the offending files from your folder…


  • Wayne 1:06 am on May 8, 2014 Permalink | Reply  

    How to change the tailshaft bearing or universal joint in a Toyota Granvia Grand Hiace van 

    I can’t believe the lack of info on HiACE vans.

    Here’s how I changed a tailshaft in case anyone else wanted to try it.

    1. Better to have a pit or hoist. Very hard to do lying under van.
    2. Mark with white-out or white paint a line along tailshaft/dif/gearbox so you can line everything up again later.  Be very precise. It needs to be within about 5mm accurate when you line it all up again. Especially around the centre bearing.
    3. Undo 4 bolts that join rear uni joint to diff drive shaft. You may need to move car back and forward to make this easier. It won’t fall apart – prise 2 flanges apart with large screwdriver.
    4. Undo 2 centre bearing bolts. Support.
    5. As you drop tailshaft, remove shaft from gearbox.
    6. Put tail shaft in vice.
    7. Undo centre uni joint.
    8. Mark centre bearing thread with white-out or take a photo so you know which way it’s lined up. Undo centre bearing bolt. This is a huge bolt, done op  tightly, and it has a chisel hit in it to stop it moving. There’s a washer that then comes off after bolt.
    9. My old bearing then just pulled off by hand.
    10. Put a little grease inside new bearing and sit new bearing on, but don’t hit it on. Be careful to line it up properly.
    11. Do up bolt and this will press bearing on.
    12. Do it up tight. Then hit with chisel in the right spot to fix it permanently.
    13. Put it all back together.


    mark well, very well.

    chisel hit bearing thread before re-assembly

    easier as 2 man job to help lift tail shaft.

    easier in pit or on hoist.

    Total time approx 2 hours. This was the first time I’ve changed a tailshaft bearing.




  • Wayne 11:29 pm on March 2, 2014 Permalink | Reply  

    wp clean up plugin 

    This plugin a beauty for trimming a bloated akismet database from wordpress. See here my kismet has over 600,000 entries of spam – bloating my wordpress table and slowing my site down. This plugin removes them with a click. No need to use phpmyadmin.


    Screen Shot 2014-03-03 at 10.27.04 am

  • Wayne 10:48 pm on January 28, 2014 Permalink | Reply  

    LOVE Fisher and Paykel 

    Our 10 year old washing machine pump motor has a small leak around the shaft.
    1. Download Fisher and Paykel service manual from the web.
    2. Order new pump  from ebay (from ASAP spare parts) for $36.30.
    3. Undo old motor and put new motor in – I DIDN’T EVEN NEED A SCREW DRIVER – It just had a plastic tab to flip and the pump motor screwed out with 1/3 turn.


    Diagnose leaky pump: 15 min

    Find and order part: 30 min.

    Time for part to arrive: 4 days.

    Undo old pump and install new pump:  5 min.

    Thanks Fisher and Paykel.


  • Wayne 3:23 am on November 16, 2013 Permalink | Reply  

    For those of you interested in health issues, I’ve started a little blog here keeping tabs on controversial health issues.

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc