ERR_SOCKET_NOT_CONNECTED on my Macbook Pro? But why?

September 20, 2017 Leave a comment

I’ve been getting frustrating errors on my Macbook Pro running Mac OS X Sierra for the last month or two.

In Chrome, the error is ERR_SOCKET_NOT_CONNECTED – but I also get the same outcome in Firefox and Safari, where they variously report that the connection was reset or failed.

My next step is to try to capture it in TCPDUMP; I did a quick test with defaults, but then somehow it managed to entirely reset my machine, and the problem seems to have been temporarily fixed for now – but it does come back each time.

Googling this error typically comes up with Flushing sockets in Chrome, or fixing a DNS issue. However, neither of these work in this case, and the problem is much more wide ranging. I’ve found that:

– The problem affects all browsers on the computer (Chrome, Firefox, Safari)
– The problem affects only HTTP websites. ie:
– Sites that are HTTP (, always DO NOT work
– Sites that are HTTPS (,, etc) DO always work
– Sites that are HTTP that immediately redirect to HTTPS (eg. DO work
– Sites that are HTTP but can also be forced to HTTPS (eg. DO work

Hence the problem appears to definitely be around HTTP – as if something on my Mac is blocking inbound HTTP responses, or sending back a reset.

As to what could be doing that:
– I have the Mac OS X firewall enabled, blocking all inbound ports that are not attached to whitelisted apps, as well as stealth mode enabled. However, I have whitelisted Chrome and it makes no difference. Also, turning off the firewall made no difference.
– Trend Micro’s AV engine, which I can’t disable, but which reports no blocked web traffic
– CarbonBlack’s agent installed, which I have no visibility over
– Palo Alto Networks SSL VPN client, which makes no difference if connected or disconnected
– Private Internet Access’s client, with impact unknown at present.
– I have various browser blockers  – uBlock Origin, Do Not Track, Vanilla Cookie manager – but these don’t seem to change the outcome either

I’ll keep an eye on this. It does seem to stand apart from all the google search hits I’ve found so far – various Google Chromium discussions, and some ‘fixit’ sites – and I’ll likely have to get into verbose TCPDUMPs to figure it out when it reoccurs.

Categories: Computing

My new best iOS video editor

July 24, 2017 Leave a comment

I’ve been on the lookout for a video editor to replace the excellent Clips since Flylabs was bought by Google and their software disappeared.

I only do videos for social use – mainly photo and video montages from events with friends. I rarely use anything over than split/splice/trim, set to a music track. However, I try to build a narrative against the track, which requires:

  • cutting on the beats of the track
  • Switching  scene/location as the verse changes
  • trying to keep the mood of the media fitting with the mood of that part of the track
  • and with the media roughly in chronological order

Hence the app needs to support me editing in that way.

Why I miss Clips

Now – Clips was amazing. Downright amazing. Because it allowed me to view the clips in a scrubber view, allowing me to position the ends of each clip to match the track, yet also allowed me to reorder, trim, and edit the clips in-situ. 

What that mean, is that I could start at the beginning of the song, and work the clips into shape as the song progressed… I’d play a short section, then trim, edit, speed up, re-focus those clips, then replay. It was so fluid and easy to use – Flylabs are geniuses. They must be, as no-one else has replicated that.

However – there is a reasonable second choice. It’s GoPro’s Quik.

Quik is in itself stunning… it will take a bunch of media, a track, and then automatically identify the beats and timing of the track, and automatically cut the clips to fit it. So all the manual work I mention above is done for me (or is it….)

Not only that, but it’ll also apply a theme to the video – not just fonts, but types of filters, transitions, and loads of other good stuff which looks thoroughly professional. If you didn’t have a clear idea of what you wanted to put in your video, you could just take what it churns out, share it, and people would be wowed.
Lack of control

The trouble is, it doesn’t necessarily do some of the things I describe above. It can’t detect the mood of the track… say, take a slowdown, and switch to showing calm evening shots from the collection, and then cut back to action shots when the tempo picks up.

Also, it rarely guesses which parts of a video to clip correctly. For example, for a video of our friends jumping into the pool in slow motion, I would want 2s of the jump starting, 4-5s of us in mid-air in slow motion, and then 3-4s of us splashing down. Quik showed a clip before we started jumping, then a clip of us all vanished under water… not quite right.

So – I need manual control. And, with recent developments in Quik, I’ve found you can get just that.
So, how does Quik capture all those little details that makes it so productive

Ordering photos

So, first, ordering photos. Quik is great here, in that while you can select all of a range, it will also allow you to add photos one at a time, in the order that you add them. This means that you can swipe and down your camera roll, picking out photos in the order that you want to produce them in (which may not necessarily be exactly the same as the true timeline), and Quik will keep that order. Awesome!

Beat cuts

Did I say that Quik automatically times cuts to fit into the beat of the music you selected? Yes? Well, it does that just fine – you won’t need to touch most of those timings. Boo yah!

Video re-trims

That pool-splash video that was all wrong? With Quik, it’s easy to make it right. There are three reasons why.

  • Quick-to-edit: Once you’ve realised that clip is all wrong, you can simply tap it in-situ, and the edit icon pops up. One tap gets you editing the clip, and the re-trim is right there. It also supports all the expected iOS gestures like hold to zoom for a fine edit. You also need to toggle the radio button to force Quik to accept your trimming, rather than its own.
  • Quick-to-duplicate: But wait – I wanted three parts of that clip. I’ve trimmed the first, but how do I get the other two? Well, with Quik, it’s another quick tap to duplicate the clip, with the duplicate appearing right after. You can then tap-to-edit that, and adjust the trimmer to select the second sub-clip you want. Then do it again for the third.
  • Play-from-here: By tapping the clip you’re on, and pressing play on the main video, you can see where that clip now appears in relation to the soundtrack as well as all the other clips. This, you could expect, but it’s the little detail of tapping the clip you just edited, rather than having to move a scrubber to find the relevant position manually, that makes it so quick to use.
  • Drag-to-reorder: Again, to be expected, but works so well. You drag the clips around, hit play, and see what effect it had.

Putting it all together

What the GoPro design team have done here, is sneak in all these little workflow optimisations that just allow you to edit the video to the soundtrack, working from beginning to end, without getting interrupted by niggles along the way. It’s a very hard act to pull off, but they’ve done it.

RIP Clips

But still, it’s not clips. Clips was the best. If you’re a developer and you want an idea for a product, write Clips again. I’ll buy it again. Maybe Google will too.

Categories: Uncategorized

Blocking Foscams from phoning home using DD-WRT

June 28, 2017 Leave a comment


I just bought myself a couple of Foscam FP9821P’s, and found that they phone home to a cloud server. That was kinda of expected – if you offer an easy app that scans a QR code and automatically connects you to the camera, then there must be a cloud service in-between.

What was more surprising, is that there’s absolutely no way to turn this off. Even if you toggle everything off, it will still phone out via UDP. I had expected that maybe I could disable UPNP for it and that would help, but it’s irrelevant – the cameras ‘phone’ out to several domains using UDP outbound, and there’s no configuration option to stop it. Foscam support confirm this.

So – it looks like I’ll have to block it at the firewall instead. One reason for using DD-WRT was that I would have this kind of granular control on specific devices. I would also VLAN them too, but am taking my DD-WRT config a step at a time.


So, this was the traffic reported by DD-WRT beforehand (from the Foscam’s wired ethernet)

Screen Shot 2017-06-28 at 11.25.58

Locking down the IP range

First, I set up static DHCP addresses for the WiFi MAC addresses printed on the back of the cameras, so that their IP addresses sit within a tight range altogether. On my router, this is at


Blocking those IPs

Then, I create a policy under (again, my router address) to block any outbound internet traffic from the Foscam IP’s. Rather than try to reverse-engineer the domains those IPs are resolving from and block those domains, which might end up as a wild goose chase if there are fallback domains or even additional hardcoded IPs, I’m just blocking all internet-bound traffic – which is really a more accurate representation of what I’m trying to achieve.

This is the main page at the top, and the sub-page/window at the bottom which pops up when you click Edit List of clients.


Screen Shot 2017-06-28 at 11.29.29

I’ve changed the fields boxed in red – I’m setting a 24/7 Access Restriction to the internet from the Foscam WiFi IP addresses.

Now this is in place, I unplugged the ethernet cable, and watched how the outbound IP addresses went.

Screen Shot 2017-06-28 at 11.35.31

All outbound attempts via the router are dropped. And nothing else.

And can I access it within my LAN still?

Screen Shot 2017-06-28 at 11.37.19

Yes! Sorted!


Categories: Uncategorized

Read-testing a drive with 7-Zip hash check

June 11, 2017 Leave a comment

I recently needed to test that all files on a backup drive were readable. The question was, what was the fastest way that I could do an ad-hoc check on those files?

It turns out, that 7-Zip (which I had installed already) comes with a context menu option in Explorer for generating a hash check on a file. Although it’s intended for comparing file integrity, this involves reading the entire file in order to generate the hash, so it does the job.

To use, simply Shift-Select all files on the drive, and generate a hash. I wasn’t sure about CRC, so I selected SHA-1.

As it turned out, it was pretty quick. It took a while to warm up, but eventually both Windows Task Manager and the WinZip dialogue said they were reading at 100MB/s. Since my Western Digital 4TB USB3 drive shows public benchmarks at 114MB/s sustained for sequential read, and the file-based hash has no guarantee on file size or sequentiality, I was very happy with that speed.


Of course, generating the hash is CPU-intensive, and my Mac Pro was using 30% CPU in the Win10 VM, but since it seemed to be ripping through the drive as fast as possible anyway, I didn’t mind.

Of course, this isn’t a comprehensive test – it only tests files, not the whole disk, and if the sectors are dodgy but the drive manages to read the file anyway, then you’ll be unaware of that problem. But this was only intended to check that I should be able to read that backup drive in the offchance my VM migration fails, and I also had a cloud backup (albeit much more work to retrieve) so it was low risk.


Categories: Uncategorized

An excellent bluetooth speakerphone – the Bose Mini Soundlink 2

April 24, 2017 Leave a comment

So a few weeks ago, I was on the train into London heading to a critical workshop with a big customer. We had hired a hotel meeting room, we had the SVP in the room with his team, and other stakeholders from around the world dialling in to the webex. I’d spent the week preparing, when I got a text:

“Have you got a speakerphone? The meeting room doesn’t have one.”


So – turn to Dr Google. A few checks of “the best bluetooth speakerphone”, and by the time it was my stop, I had a shortlist. I walked to the meeting via a department store, where I picked up a Bose Mini Soundlink 2.


So – we road-tested it in the critical meeting, in front of the customer, and it did fantastically! We’ve since used it for an internal zoom call in our own office, and again, it’s brilliant. The sound quality and presence is excellent, as you’d expect, but more importantly, the microphone appears excellent. It had no problem picking up a heavily accented analyst from 8m/24ft away in that hotel boardroom and everyone on the call heard them without an issue, where even most dedicated speakerphones would have struggled to pick up the voice.

Of course – if you were looking for a mobile bluetooth speakerphone, you’d probably look for something from Plantronics, Logitech, Belkin, or similar – either a business electronics manufacturer, or maybe some cheaper PC or eBay vendor. But this is an un-obvious, yet logical choice; this device has a mic in it, this is one of its functions, and, as you’d expect from Bose, it’s excellent. So why not?

In summary:

  • It’s available on Amazon, in any department store or airport, and reasonably priced at GBP140 (discounted now that the model III has been released)
  • The sound quality and mic pickup “just work”, are of immaculate quality, and are hassle-free, even in a decent-size room
  • It’s small and portable, although weighty
  • It has an excellent battery life
  • Charges off standard microUSB (it sits on a light, thin charging dock you might take with you)
  • Worked fine over bluetooth with my Macbook Pro 15″ and Zoom
  • Turning up with a Bose product in a customer meeting isn’t going to hurt at all
  • Also pretty good for music in the hotel room (smile)

If you’re often hitting issues with crowding around a laptop on a concall, your iPhone on speaker, or even worse, a customer’s poor-quality speakerphone that mystifies anyone as to why it wasn’t thrown out long ago, then I would recommend adding one of these to your road warrior’s toolkit!

Categories: Uncategorized

Impossible to recover a discontinued iOS app

March 25, 2017 Leave a comment

You may have seen me enthusing previously about “Clips” by Fly Labs, a simple and fluid video editing app which was perfection itself. I wasn’t the only one who thought so, as Google aquihired the company, and shut down the app, removing it from the App Store. 

I had it on my phone, so was happy… and then my phone had serious corruption issues, and hence I was forced to restore it from backup… only to find the app was gone.

So – how do you restore a discontinued app you once had?

You can’t. At all. There are many suggestions on the web, but they relate to older versions of iOS and iTunes. As of last year, every avenue of doing so has been  shut down by Apple:

  • You can’t download the app from the App Store if it’s no longer there. Even if you previously owned it
  • If you backed up your phone to iCloud, you also won’t get the app back. iCloud only backs up your data, and then instructs your phone to restore the apps from… the App Store.
  • If you have another device with the app (such as a family member’s phone), you’re not getting it from them either, even if you share an Apple ID. Apple has removed iOS functionality that once allowed you to copy purchased apps from your phone to iTunes as a .IPA file
  • If you backed up your phone to iTunes in its entirety…. you MIGHT find the app restored. This is something I’ve yet to try

So – for those apps you haven’t yet backed up, it’s too late. Here’s what to do for those you can still download, in case they’re discontinued in the future:

  • In Mac/Windows iTunes, show your purchased apps in the App Store, and click to download them to your PC: that’s still possible. They’ll be downloaded to your iTunes music/data directory
  • Back them up, for good. I use CrashPlan cloud, since it allows me to back up an entire history of my files for as far back as I’ve been using it, with no risk of deleting older backups.

I am naturally going to complain like hell to Apple, and they are naturally going to do nothing about it.

Categories: Uncategorized

Certify Expenses Review – driving me nuts

February 11, 2017 1 comment

I’ve just googled Certify reviews, to see if I’m the only one finding this a nightmare… and it seems like I am!

I’m not sure why; maybe the reviewers have been using paper-based systems until now? My personal use of expenses has been most recently with Expensify, our corporate SAP-based system, and before that, Excel sheets. And Certify is just a huge blocker to my productivity.

Let’s look at some gripes:

  • It doesn’t work offline: although there’s this concept of ‘wallet’ which is local to the phone, you can’t open the app without network connectivity, as the first screen is a login screen.
  • You have to log in every time you open the app, although it saves your password. WHY? WHAT APP EVER DOES THIS, EVER?! Surely much of the utility of using a phone-based app is that you authenticate partly by the fact you have the phone, which is something you have, often behind a lockscreen, something you are/know. Thus, the app itself has a session cookie which keeps you logged in.
  • You can’t edit expense data on the web app. Believe me, I’ve tried. Is it hidden?
  • They don’t auto-populate emailed receipts – the OCR app is embedded in the phone, so anything that doesn’t come through the phone camera has to be edited manually… BUT you can only do that in the phone, after syncing the receipts on their servers back into your phone by explicitly pressing the “Sync” button in the phone app.
    • Still with me? Good!
  • The OCR of photographed receipts is flaky – they seem to find an amount, but rarely anything else. Expensify seemed to use “mechanical turks” (ie. people doing manual data entry in a low-wage country), which is, well, far more accurate!
  • Adding a receipt is a simple 16-click process:
    • Open the app
    • Log in
    • Press “Add Receipt”
    • Select your resolution (WTF?! Shouldn’t they know?)
    • Snap the photo
    • Click “Use Photo”
    • Press “Autofill”
    • (These steps may vary according to your company category selection):
      • Select your Department
      • Select your Category
      • Confirm the amount OCR’d was correct
      • Type Vendor (it has autocomplete once you start typing)
      • Type Location (same)
      • Type Reason
      • Select Reimburseable/Billable if appropriate
    • Save
    • Hit Sync again to sync (only needed when reporting)
  • Compare this to a force-press on the Expensify app, and simply snapping the receipt, to cover steps 1-7


Seriously! Why?!?!? Surely any UI/UX designer on the team, or even a developer, would see this app has a horrible experience against so many other apps, even outside the realm of expenses software.

On the upside, I suspect possible the business back-office processes and dashboards are great, beacuse they often are on an app that is this user-unfriendly.


And yes; I’m a company employee, writing this blog post about software that’s supposed to make my life easier and make me more productive on my primary role. Because it just so doesn’t!


Categories: Uncategorized