" vlog "


Warning: Illegal string offset 'paged' in /srv/users/serverpilot/apps/mattstone/public/wp-content/themes/blogify/archive.php on line 55

Warning: Illegal string offset 'tag' in /srv/users/serverpilot/apps/mattstone/public/wp-content/themes/blogify/archive.php on line 55
The desk of Disney Fan

The life and times of a Disney fan…

I love Disney… there isn’t really much more to add here, I could end this blog right now and it would explain a large portion of my personality.

Like a lot of children I grew up watching Disney movies and was lucky enough for my family to make a visit to Walt Disney World in Florida in the spring of 1992. We visited all of the main Disney parks including Magic Kingdom, Epcot Centre, and MGM Studios (now known as Walt Disney Studios), we also visited Universal Studios, Busch Gardens, Seaworld (if the 7 year old me had seen Blackfish I’m sure I wouldn’t have visited), and a few other Florida landmarks that escape me.

My first experience of the Disney theme parks happened when I was 7 years old so no doubt is now seen through rose-tinted glasses but I’m confident that when I do make a return to Florida my experience will be just as magical, and will be the start of an annual pilgrimage for someone who finds everything Disney to be something magical.

Although it’s been 23 years since that epic holiday, I’ve filled the gap by visiting Disneyland Resort Paris on multiple occasions, in fact next month for our wedding anniversary myself and my gorgeous wife Dianne (see her blog at http://www.dianne-stone.co.uk if she ever gets round to posting to it!) will be celebrating our 2nd wedding anniversary at Disneyland Paris staying at Sequoia Lodge which in the lead up to Christmas is probably one of the best hotels to stay at with its mountain lodge theme.

This will be my 10th time at Disneyland Paris, and next year we are planning to visit Walt Disney World, we also want to make a visit to Disneyland, Anaheim (earlier in this blog you’ll see we drove Route 66 but for reasons which now allude me we didn’t visit the original Disney park and opted for the Warner Brothers Studio Tour instead!).

This upcoming trip to Disney comes at a time when Disneyland Paris is going through a transformation after being brought under tighter control by the Disney Corporation and is currently undergoing a massive refurbishment programme to update the rides for their 25th anniversary. I’m particularly excited about this as I often point out to my wife on our visits the lack of maintenance in this park that doesn’t ‘adhere’ to the Disney standards I become accustomed to in Florida in the early 90’s.

Laravel Forge Screenshot

Fixing the nginx $_SERVER[‘HTTPS’] issue on a Laravel Forge Load Balancer

Recently I’ve been experimenting with Laravel Forge and Linode to build a new server platform for the new CloudMonitor app I’m currently building (http://www.rockandscissor.com), and after a couple of attempts and quite a few support tickets to Taylor Otwell, Creator of Laravel and Forge, I’ve finally managed to configure a Load Balancer and 2 servers running a MySQL Master-Master sync, and using Unison to keep the web directories synced.

However I came across a problem which is fairly common on Load Balanced or Reverse Proxy setups that use SSL. The Load Balancer itself terminates the SSL connection on port 443 and the traffic is sent from the Load Balancer to the servers across the local network on port 80. The problem arises with any software that uses the $_SERVER[‘HTTPS’] = ‘on’ global variable such as WordPress, Magento, OpenCart etc due to this global variable not being set, this is because traffic comes to the server through HTTP (port 80) instead of HTTPS (port 443).

So how do we fix this? Well even though this isn’t technically a bug (please excuse my title on this article) as the traffic isn’t coming to the server in a secure fashion, and the $_SERVER[‘HTTP_X_FORWARDED_PROTO’] global variable is set to indicate which protocol is being used to the server. Unfortunately for reasons I’ve yet to discover, and I’m sure there are technical reasons, the software mentioned above doesn’t look at this additional variable to do SSL detection. The most common solution for this problem is to modify your source code to look at this global variable, or to install a plugin/module that incorporates the workaround. Whilst this would fix the problem I wanted to find a way to add this fix that would work for any application I decided to install without having to modify the core source code or add additional plugins/modules. On each of the servers you will need to edit your nginx configuration files and change the following code section from this:

location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}

to this (add in the red lines to the existing code):

set $my_http "http";
set $my_ssl "off";
set $my_port "80";

if ($http_x_forwarded_proto = "https") {
set $my_http "https";
set $my_ssl "on";
set $my_port "443";
}

location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param HTTPS $my_ssl;
include fastcgi_params;
}

Many thanks to Taylor Otwell for responding to my continuous questions and Sonassi.com for their great article which pointed me in the right direction for my Nginx Reverse Proxy/Nginx setup: Magento HTTPS Re-direct Loop.

DJI Phantom FC40 1.1km (0.7 miles) range

This is a combined video of two tests using the DJI Phantom FC40 with the aim of getting the maximum possible range with minimal modification to the standard equipment. The first test was made using the stock controller and camera with the only addition being an un-modified wireless repeater.

The second test was made after modifying the controller with a RM-SPA connector and attaching a 5.8GHz circular polarised antenna. We also changed the antenna’s on our repeater to larger 8dbi antenna’s. The Phantom itself and the FC40 camera remain un-modified.

Extra equipment used:
1 x Tenda W3002R Wireless N Router/Repeater (http://www.amazon.co.uk/gp/product/B0…)
1 x MiniUPS (http://www.alibaba.com/product-detail…)
2 x TP-Link TL-ANT2408C 2.4GHz Antenna (http://www.amazon.co.uk/gp/product/B0…)
2 x Mini PCI to RP-SMA Pigtail Antenna (http://www.amazon.co.uk/gp/product/B0…)
1 x Neewer 5.8GHz Circular Polarised Antenna Set (http://www.amazon.co.uk/gp/product/B0…)

The Tenda W3002R is a very powerful little router, and at just over £20 it’s an absolute bargain, I’ve used them in many situations where a more powerful WiFi signal was needed and can’t recommend them enough. The Mini UPS powers the repeater for about 10 hours so is ideal for this application.

I was quite surprised by the performance of the Neewer 5.8GHz circular antenna (I only used the TX version on the transmitter and have yet to modify the Phantom), as these appear to be a cheap version of the similar FatShark antennas.

In my next video I plan will show the equipment used and the setup prior to flight as we attempt to safely beat this record.

Flying around Brean Leisure Park

Seeing that the owners of Brean Leisure Park are friends of the family they let us test out the new DJI Phantom FC40 quadcopter I received as a Christmas present over their park and this was our first chance to try out the WiFi repeater that increased our range to about 150 metres (previously we barely made 100 metres).

The next step is to upgrade the antennas to see what sort of distance we can safely fly (and maintain a visual sighting of) the quadcopter so enjoy the latest video and keep checking out my blog for more.