Category "macos"

Pygame/Python/Terminal/Mac related

I'm a beginner, I have really hit a brick wall, and would greatly appreciate any advice someone more advanced can offer. I have been having a number of extreme

how to run amd64 docker images on arm64 host platform

I have an m1 mac and I am trying to run a amd64 based docker image on my arm64 based host platform. However, when I try to do so (with docker run) I get the fol

Docker Wordpress tar: <file> Cannot change ownership to uid 33, gid 33: Operation not permitted

I have created a docker-compose file for local development using Wordpress, and I've finally got NFS working (normal volume mount was too slow, because of Docke

Getting the difference between two Dates (months/days/hours/minutes/seconds) in Swift

I am trying to get the difference between the current date as NSDate() and a date from a PHP time(); call for example: NSDate(timeIntervalSinceReferenceDate: 14

Is there any way to find the scaling coefficient for a CGDisplay?

I'm currently doing some tests to see if my app runs correctly on Retina Macs. I have installed Quartz Debug for this purpose and I'm currently running a scaled

Libnotify: notify_register_coalesced_registration failed with code 9 on line 2835

I found the following message repeating repeating many many times (~5 times/minute) in the system.log on my macos x: Apr 5 12:23:52 macbook-air Google Chrome H

How to pass arguments to homebrew service

I have installed beanstalkd using homebrew but am unable to increase the maximum job size. This is normally done by passing the -z argument as "-z byte_size"

macOS Terminal: `ls` sorts results with capitalised names first

How can I fix this default sorting behaviour for ls in the macOS Terminal? I want the results to be case-insensitive and alphabetised. Here is an example to il

M1 docker preview and keycloak 'image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)' Issue

I just downloaded Docker Preview v3.1 https://docs.docker.com/docker-for-mac/apple-m1/ and tried running keycloak. Anyone else running into this issue? docker r

Xcode on Mac App Store can't install, show disk space not enough

I'm using macOS to install Xcode 10.1. I have 18.43 GB free disk space on my Mac, but when I click the install button next to Xcode in the App Store, it always

Constrain mouse movement to region in OS X without jitter

I would like to constrain mouse movement to a specific rectangular region of the screen in OS X 10.11. I modified some code from MouseTools (below) to do this b

HTML-like table layout (i.e. auto-resizing table cells) in SwiftUI View?

I’d like to render a table of text cells in my SwiftUI View in a way, that every cell auto-resizes just so much that the text fits in it. So I did this:

Problem with building Docker image from Dockerfile

my task is to create a docker container from my own Dockerfile using ubuntu:18.10 and run pdflatex in this container. My system is MacOs, my Dockerfile looks li

Python - Tkinter not support MacOS Mojave Dark Mode

I have a problem with the support of Dark Mode on MacOS in python Tkinter. I used python 3.6 with ActiveTlc 8.5 and the Dark Mode works fine, the window titleba

Is Safari extension development possible in Windows 10?

I am working on extension development for multi-browsers. I have developed the extension for Chrome, Edge now I want to convert the same extension for Safari. I

How to give Flutter SDK Path in Android Studio on Mac os, How to update Flutter SDK path in MACOS?

I have installed the Android studio and the plugin's DART,FLUTTER to kickstart the flutter but as i am not able to give path of sdk while creating my very first

IntelliJ on macOS, how do I jump to previously defined bookmark?

On IntelliJ mac, is there a way to add a bookmark on the code where we can jump to that piece of code with a shortcut I can add a bookmark by using F11 or comma

I am trying to use flutter Isolate with database data. But it's throwing an error. I don't know why is it happening?

I'm using the hive database. My code is: HiveStocktaking? stocktaking = _database.getStocktakingById(_stocktakingId); StocktakingStats stocktaki

Cannot connect to Postgres server running through brew services

I've been looking for a solution for this and could not find a working solution. I've installed postgres using brew (brew install postgres) in my MacBook and

OS X: How can I get path to Desktop directory on macOS?

How can I get file path to Desktop directory as a string on macOS. I need it to be done in pure C or with some C-level framework.