As mentioned, my plan is to head off and explore other areas of the state, in anticipation of which I’ve picked up my hire car.
Sadly, hiring the Mustang of my dreams would have depleted the budget to such an extent that I’d have been obliged to spend the next fortnight sleeping in it, so I’ve settled for a fairly run-of-the-mill Nissan. It does however have all the modern bluetooth toys one could want, plus cruise control.
Interesting factoid: whenever I hire a car in the UK, I always get the hard sell on upgrades/extra insurance. In the home of capitalism, I got five seconds’ scrutiny of my UK licence, ten seconds to swipe my credit card, and then I was handed the keys and sent on my way.
Meanwhile, earlier today, I enjoyed the SF Botanic Gardens. A bargain at $9 (it’s a nice touch that they let the locals in for free), and I literally took some time off to smell the roses.
Enjoyed the open top bus tour round San Francisco. Also cleared up the official name of the Golden Gate Bridge’s colour (or should that be color…).
Apparently it’s Fleet Week this week, which means (a) the US Navy are thundering overhead in various warplanes showing off, and (b) hotel prices are going up over the weekend (from the country that brought you Uber surge pricing…). So I’m going to head off and explore other parts of northern California, and possibly do a few more days in S.F. on my way back down.
Given that I am planning to spend nearly four weeks in the USA, I thought it would be worth buying a local SIM card for data purposes. I wasn’t particularly anxious to find out about Three’s clear-as-mud roaming pricing via an enormous bill when I got back.
I ended up buying an 16GB Lycamobile “data only” SIM at the airport for $95 (incuding sales tax) – it lasts for 30 days. That seemed rather on the steep side (verging on vertical); I suspect they over-charge the incoming tourists for something which could be obtained more cheaply at a corner shop – but when you’ve been up for 18 hours and need internet to work out transport to your hotel, the “pay up and shut up” reflex kicks in.
They did at least have a SIM poking tool which they used to put the card in my phone (that’s one thing I forgot to pack). Once again, the dual SIM capability in OnePlus phones comes in handy – I can leave the UK SIM in slot one just in case anyone sends me a text, but send all the data via slot two.
As you can see from the screenshot, it works pretty well, at least in the middle of SF. I’ll update at the end of the trip on how well it holds up outside cities (and indeed when I move into other states).
I’m not the sort of person who feels the need to be doing something every minute of every day, especially when on holiday. And since this is a solo trip, I gave some thought to evening entertainment.
Netflix, Amazon, iPlayer et al are all perfectly possible to use, WiFi permitting (and with the occasional VPN tunnel back to the UK where required), but since I own quite a lot of physical DVDs still, I thought I’d take some along. After all, WiFi in hotels isn’t always up to streaming, and DVDs don’t take up vast amounts of space if you take them out of the packaging.
I bought myself the cheapest external DVD drive on Amazon (naturally, my laptops haven’t had optical drives for years). I assumed the software side of things would be a simple matter of installing VLC. Somewhat to my surprise, it wasn’t!
VLC flatly refused to open DVDs without saying why. I eventually worked out that the drive had been shipped set to the “wrong” DVD region (i.e. not the one matching 99% of UK DVDs), but VLC wasn’t smart enough to tell me that.
Even with that fixed, menus didn’t work and the playback was blocky. Interestingly, though, Microsoft have a paid-for option in the Windows store. For £12.49 I could buy the “DVD Player” app. Since it was the one smart enough to tell me about the region encoding thing (even when in trial mode), I reluctantly parted with the dosh. It Just Works – fair play to Microsoft, but I can’t help but wonder if driving sales of this means less incentive to make it easy for third party apps to make DVD playback work on Windows?
Omertà unfortunately prevents me from telling you why I’ve been experimenting with this lesser known corner of Apache HTTPD, but I can at least write up a few hints, since this is a sparsely documented area.
Let’s set the scene: you have some sort of web site or web app. You want to make some alterations which could literally be achieved by running find and replace over the site/application output. However, you either can’t or don’t want to modify the site/app directly.
You might well be running the site behind an Apache HTTPD proxy in any case – all my Django sites are like this, so Apache can serve the static content.
Wouldn’t it be convenient if there was some way of having the proxy do a little light modification of the content on its way to the end user?
There is. However, if the wording on that page about writing output filters in C puts you off (it certainly put me off!), don’t despair. Just dig a little deeper and you will discover that you can write filters in any old programming language and have Apache call them.
There were just a couple of things I had to watch out for when getting this working in Apache 2.4:
The filter chain includes gzip/deflate if you have that on, which is pretty much the norm these days. So you need to force the ordering of your filters if you don’t want your script being fed gzipped content (duh!)
You can use ExtFilterOptions to dump stderr from your filter into the Apache error log, which is handy for diagnostic purposes when staring at a blank page
It’s not obvious from the documentation that filters will work in a Location block, but they do.
Fortunately, in my case, the filtered elements were rarely used pages of an application, but I can imagine this might start to rack up some performance problems if you did it too enthusiastically across a site
A Boeing 787-9, somewhere over Greenland. Tuesday, October 8th
It’s been the best part of a decade since I blogged here about a feature-length holiday. And whilst I’ve no cause to complain about the number of countries I’ve visited since then (Croatia, Slovenia, Montenegro, Cyprus, Spain, Italy, Ireland, Holland, Belguim, Luxembourg, the Czech Republic and the USA (for work)), most of those have been shorter trips around Europe.
However, I get a rather generous 22 days’ long service leave for reaching my 10th anniversary at work, so that seemed like an ideal time to go further afield.
Which brings me neatly to San Francisco. I flew out this morning on Virgin Atlantic, which I was quite impressed by. The food, entertainment and service levels in economy were good, though it also helped that I had an aisle seat and nobody sitting in the middle of my row. The forty-five minute delay in leaving Heathrow, and the 90 minute (!!!) delay in getting through US Customs were rather less pleasant, but I’m here now and checked into a somewhat retro, but serviceable, motel.
I might not manage a post every day, but I’ll report back on my progress around northern California, then down to Los Angeles and home via New York City.