All posts by George

Proxy server Fix

Just worked out (yes – I’m that slow..) that all I needed to so was change the $_SERVER environment variable so that I can properly record the IP address of incoming requests.

Since I set up the proxy server a while ago to split out the websites onto different virtual machines, all my site stats recorded the proxy server as the originating site of the web page requests. Which was sort of true – everything was coming via the proxy server – but I do like to know where in the world people are coming from looking at this site.

For the record the fix just required this entry in the wp-config.php file. I basically rewrite the REMOTE_ADDR variable to look into where the proxy has forwarded it from.

/* By MGV on 20200607 - New entry to handle proxy server
     - this will allow us to see the real IP of the client
     - rather than the proxy server IP */

$_SERVER['REMOTE_ADDR']=$_SERVER['HTTP_X_FORWARDED_FOR'] ;

I guess this could blow up if the site goes to a different server, but for now, its getting the right Internet address for site stats.

Two rides

A long weekend, one extra day, one extra ride.

Saturday Ride

The Munda Biddi was wet, and difficult. Just a bit of a loop done here. The most interesting thing was the conveyor belt road. Thats a 52 Km conveyor belt for bauxite from the Huntley mine to Pinjarra where its turned into aluminium.

So, a pretty hard ride. Wet and sunny in equal amounts. Only 30Km but that’s off road riding for you. With a well earned lunch and coffee afterwards. Thanks to all the restrictions, that meant driving to Mundijong to get anything…

So a map here of the ride, with Perth included. Its that little circle at the bottom in cyan…

Monday Ride

Despite all that – we were still good enough to ride again today. At least on a road ride. For at least three of us, anyway. A much easier, if longer, 40 Km ride around perth. From home to Canning bridge, then to Claremont and back over the Canning before returning home. So much easier than off road..

Yes – I had fun cutting and pasting this image together from my cycle computer.

Saturday Ride

The ride to nowhere. Nowhere being the international airport. There was a security guy there who didn’t want us to take photos of the Rio Tinto COVID signs. Couldn’t figure out why, as there wasn’t anyone there, and we could take photos of the airport terminals.

Also interesting to see the new train station being built. Its strangely in the center of the terminal, near the air traffic control tower. That might seem good, but its actually a long way away from the terminals. Hope the travellators go fast.

Still a good 50 Km ride, the day before the storm.

Weekend at Home

Can’t complain really – its been a nice weekend overall. Have enjoyed myself and relaxed.

I think its time to start getting back into the exercise again. Gyms open up in a week I think, based on the reduction in restrictions. I’ll need it.

Certainly had a good ride, even if the start had to be delayed due to the really cold weather.

Got to play with my raspberry pi’s. The new case works well without needing a fan. Definitely the way to go. Cute little critter. And really quite amazing for what it costs.

Macbook Air

Just arrived today, making most of the updates, well, up to date.

I think I’m really going to like this laptop. Ironically not a pro model, but I think its going to do everything I need. I guess I can cope with the thermal heating when and if it happens for the harder stuff.

Its pretty well specced out:

  • Quad Core i7 – yes, arguably no benefit over the i5, but I’m good with that.
  • 16 GB ram. As much as you can put into an air in 2020
  • 1 TB SSD. Not as much as I could have gotten, but enough to future proof it.
  • Oh yes, it doesn’t have a butterfly keyboard, but it does have an escape key. I’m pretty happy with this keyboard. Its good.