How to run amd64 docker image on arm64 host platform?

Using –platform is correct. On my M1 Mac I’m able to run both arm64 and amd64 versions of the Ubuntu image from Docker Hub. The machine hardware name provided by uname proves it. # docker run –rm -ti –platform linux/arm/v7 ubuntu:latest uname -m armv7l # docker run –rm -ti –platform linux/amd64 ubuntu:latest uname -m x86_64 … Read more

Puppeteer/chromium on Mac chronically prompting “accept incoming network connection?”

We were having the same issue after upgrade our puppeteer and MacOS. One solution we have is to instruct puppeteer to use our own Chrome instead of the bundled chromium by specifying the executablePath. Below is a Typescript snippet how we specify it. Same thing if you use vanilla JS. Sometimes that still is not … Read more

How to start Docker for Mac daemon on boot?

TL;DR Running Docker for Mac as a standalone service is not supported. Instead run Docker in a VirtualBox VM, either by creating a plain VM or using docker-machine. Then set the Virtualbox VM up to run at boot. This is the LaunchAgent I use for Virtualbox: <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” … Read more

Is it possible to turn on/off “do not disturb” for OS X programmatically

Unfortunatelly (yet unsurprisingly), there’s no public API for dealing with user’s notifications preferences, one of which is Do Not Disturb mode (DND). Nevertheless if your want to provide the feature of turning DND on and off in your application, you’re not out of luck actually: there’re three ways for you to choose from. #1. Run … Read more

Error Executing security dump-trust-settings in Sublime Text 3

Edit 20/09/2016 The Package Control has now fixed and released the update with the following change log: Package Control Version 3.2 Release Notes This version of Package Control focuses on bug-fixes, with notable changes including: OS X TLS trust roots are exported using APIs to prevent the error message displayed to some El Capitan users … Read more

Change localhost directory for Yosemite Apache 2.4

I’ve just installed Yosemite and I managed to change the DocumentRoot without any problems. First I modified the following lines in /private/etc/apache2/httpd.conf: DocumentRoot “/Library/WebServer/Documents” <Directory “/Library/WebServer/Documents”> Options FollowSymLinks Multiviews AllowOverride None </Directory> to: DocumentRoot “<CUSTOM_PATH>” <Directory “<CUSTOM_PATH>”> Options Indexes FollowSymLinks Multiviews AllowOverride All </Directory> The above will set a custom DocumentRoot, enable directory listing and … Read more

Trackpad gesture to switch to header/source

This is the correct and best answer. It works. It is posted by “@Buyin” above. Another individual commented that it doesn’t work. He is wrong. It works, I’ve confirmed it. It restores the three finger vertical swipe to switch between interface and implementation files (.h and .m) in xCode in Lion. From your terminal: Change … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)