Category "macos"

How can I install emacs correctly on OS X?

I tried doing: brew install emacs --HEAD --use-git-head --with-cocoa --with-gnutls --with-rsvg --with-imagemagick But when I do emacs --version emacs --vers

Click through custom NSWindow

I have custom NSWindow with custom NSView set as its contentView. The window gets initialized with: [window setOpaque:NO]; [window setBackgroundColor: [NSColo

How do I implement a global keyboard hook using GTk2 C# Visual Studio on mac?

This is not a duplicate question. I have read lots of implementations of low level / global keyboard hooks using C# but none of them have yet provided a solutio

Could not find public_suffix-2.0.4 in any of the sources

It started when I tried to add the Google Tag Manager Gem to my local installation of Jekyll. A little background here, I'm using homebrew and rbenv. My r

On zipfile read of shapefile from URL, fault for initial value not str

Using Python 3.5, following example for reading shapefile zipfile from URL and updating for P3.5. Code is below. I've looked at other cases and attempted to a

What is the exit code of the MacOS /usr/bin/python3 stub?

If you run /usr/bin/python3 on a MacOS system that has yet to install the system python3 it pops up a dialog that says: "Xcode-select: note: no developer tools

How to update python 3.6 to 3.7 using Mac terminal

OK I was afraid to use the terminal, so I installed the python-3.7.2-macosx10.9 package downloaded from python.org Ran the certificate and shell profile scripts

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