All posts tagged Apple

I’m currently running SmokePing in a container on a Mac mini – using Docker for Mac, and of course HyperKit. And after a couple of hours of running Hyperkit suddenly consumes all CPU allocated to it, and freezes the container. Nothing short of killing Hyperkit will stop or restart the container.

NewImage

And trying to read up on this reveals a lot of postings with this problem, but very few (if any) consistent solutions.

Fairly frustrating.

What seems to be a common thread is the use of the MacOs filesystem to persist data from the applications running in the container. In my case Smoking stores all its configuration and data files in a configurable place in the hosts filesystem through a setup like this :

#!/bin/bash
docker create –name smokeping -e PUID=1000 -e PGID=1000 -e TX=Europe/London -p 82:80 -v /Users/gisvold/docker/smokeping/config:/config \
-v /Users/gisvold/docker/smokeping/data:/data –restart unless-stopped linuxserver/smokeping

Running “top” inside the container show no real cpu usage in the container

NewImage

And it does not increase significantly up until the moment it freezes the container and my terminal session is terminated by the container.

So it looks like Hyperkit is the problem here, and reading documentation there seems to be a possibility that the use of the MacOs filesystem to store the data files may be the culprit, but with one new theory I have on why.

It runs out that there is a new configuration for syncing filesystem data between the host OS and the container.

According to the official documentation of Docker for Mac,
Docker 17.04 CE Edge adds support for two new flags to the docker run -v, –volume option, cached and delegated, that can significantly improve the performance of mounted volume access on Docker for Mac.
There are 3 different flags that you can use in the –volume option:
consistent: perfect consistency (host and container have an identical view of the mount at all times)
cached: the host’s view is authoritative (permit delays before updates on the host appear in the container)
delegated: the container’s view is authoritative (permit delays before updates on the container appear in the host)

So I have tried the following new configurations :

#!/bin/bash
docker create –name smokeping -e PUID=1000 -e PGID=1000 -e TX=Europe/London -p 82:80 -v /Users/gisvold/docker/smokeping/config:/config:cached \
-v /Users/gisvold/docker/smokeping/data:/data:cached –restart unless-stopped linuxserver/smokeping

This did not help, so the last option was :

#!/bin/bash
docker create –name smokeping -e PUID=1000 -e PGID=1000 -e TX=Europe/London -p 82:80 -v /Users/gisvold/docker/smokeping/config:/config:delegated \
-v /Users/gisvold/docker/smokeping/data:/data:delegated –restart unless-stopped linuxserver/smokeping

In addition to this I excluded the data directory from Time Machine backups – as there are around 80 RRD database files there – and this means that they change constantly, and all of them are therefore being backed up every hour, or rather every 2 hours, coinciding with the extremely high CPU load.

For now the container has been running with very low Cpu usage  < 4% – but it has only been 4 hours so I’m not going to break out the champagne yet.

NewImage

This is typical misunderstanding of iBeacon.

Virgin Atlantic airlines is now rolling out a pilot program for Bluetooth-based iBeacons to be stationed throughout Heathrow Airport’s Terminal 3, in an effort to “provide a greater customer experience” for travellers, the airline said. The proximity-based technology, which can send push notifications to those who permit it as information becomes relevant, can alert users of facilities in the lounge, pull up boarding passes as flyers approach the gates, or update flight status.

[From MacNN | Virgin Atlantic testing iBeacon technology at London’s Heathrow]

Just to set the story straight – iBeacons only broadcast a ID message – and nothing else to the users phone, it is up to the software on the phone to do any triggering, reception of messages etc. The iBeacon is incredibly simple – so simple that it only took me a few minutes to set one up on one of our Raspberry Pi’s.

I’ve been testing a new email client – Airmail.

So far it looks really good – but I have a few interesting issue – including this rather cryptic message when trying to create a event :

201404130929.jpg

I’ve used the excellent Securityspy server software running on a Mac Mini for years – it’s rock stable, and it just works.

But with every new camera you either need to find it among one of the pre-configured devices, or you have to cut-and-try.

And the camera I just bought as a outdoor camera is among those – so to help others trying to do the same – here is a working setup:

201404061820.jpg

Btw. this is the camera :

201404061822.jpg

At long last – and very sensible.

Apple offers “Refund for In-App Purchases made by a minor”

Apple sent an email today to its iTunes account holders who have made in-app purchases. The email gave account holders the chance to ask for a refund for any and all in app purchases made by a minor.

I think this is beyond fair. Here’s the text of the email.

Dear iTunes account owner,

Apple is committed to providing parents and kids with a great experience on the App Store. We review all app content before allowing it on our store, provide a wide range of age-appropriate content, and include parental controls in iOS to make it easy for parents to restrict or disable access to content.

We’ve heard from some customers that it was too easy for their kids to make in-app purchases. As a result, we’ve improved controls for parents so they can better manage their children’s purchases, or restrict them entirely. Additionally, we are offering refunds in certain cases. Our records show that you made some in-app purchases, and if any of these were unauthorized purchases by a minor, you might be eligible for a refund from Apple.

Please follow the steps below to submit a refund request:

• Find your in-app purchase records. Check your email for iTunes receipts or use a computer to sign in to your iTunes account and view your Purchase History.
• Use this link to submit your refund request to Apple.
• Provide the requested information and enter “Refund for In-App Purchases made by a minor” in the Details section.

Apple will review your request and contact you via email about your refund status. All refund requests must be submitted no later than April 15, 2015. If you have any questions or need further assistance with your refund request, please contact Apple. To learn more about parental controls in iOS, please see this article.

Thank you.

App​le

[From iPhone, iPad, Mac, Apple opinion and news | The Loop]

I have used BusyCal for years – we bought a family license once upon a time.

So I’m looking forward to trying out their new BusyContacts

Introducing BusyContacts
BusyContacts is a complete replacement for the built-in Contacts app on OS X that is designed to make creating, finding, and managing contacts faster and more efficient.
BusyContacts brings to contact management the same power, flexibility, and sharing capabilities that BusyCal users have enjoyed with their calendars. What’s more, BusyContacts and BusyCal integrate seamlessly together to become the ultimate contact and calendar solution on the Mac.
BusyContacts syncs with the built-in Contacts app on OS X and iOS and supports all leading cloud services, including iCloud, Google Contacts, Exchange, Facebook, Twitter and LinkedIn.

201403280245.jpg

[From BusyContacts]

This is a very unscientific test of upload speeds across our wireless network where I uploaded a number of fairly big files to a server – first with AFP and the using SMB2 (from 20:00) – quite a bit faster.

But as I said – unscientific, so more tests to follow.

201403262025.jpg

Useful command : ” /usr/sbin/system_profiler SPAirPortDataType” gives y a list of all wireless and non wireless network your mac can see :


201403261334.jpg  

slightly embarrassingly I had not noticed this at all

In OS X Mavericks, Apple will begin migrating from its own legacy Apple Filing Protocol to Microsoft’s SMB2 in an effort to enhance performance, security and cross platform file sharing.

Macs running OS X 10.9 Mavericks will automatically default to using SMB2 when talking to each other, and fall back to AFP when file sharing with Macs running previous versions of OS X or when working with Time Machine backups.

[From Apple shifts from AFP file sharing to SMB2 in OS X 10.9 Mavericks]

I just tried to use SMB from my laptop to my fileserver – and it worked. I will need to do some testing later on to see if there are any real advantages at the moment.

Livescribe seems to have signed up a 3rd party that is using their SDK to add functionality to a existing app

Livescribe has announced its first SDK partner app to integrate with its device. The Livescribe 3 smartpen allows users to transfer handwritten notes into digital form on one’s smartphone or tablet. Notes appear immediately within the companion Livescribe+ mobile app for iOS via Bluetooth. Third-party developer Gorillized, makers of Outline and Outline+, now offers compatibility with the pen. Other developers are being welcomed by Livescribe to apply for access to the SDK. The Livescribe 3 smart pen is priced at $150, with its Pro edition available for $200.

[From MacNN | Briefly: Livescribe 3 SDK partner app, 500px iOS app remote uploading]

12346Next