Category "macos"

CGDisplayIOServicePort is deprecated in OS X >= 10.9, how to replace?

I did small app to allow quickly change screen resolutions on multiple monitors. I want to show product name as title of the monitor, and it's very simple to fi

NodeJS error "EMFILE, too many open files" on Mac OS

For sometime I am having the following error: Error: EMFILE, too many open files '/Users/blagus/Gallery/Websites/Nicsware/Pills/resources/core/auth.node.js'

What does "source" do in Mac iTerm2 terminal?

I put in the command source followed by my file path and I was wondering what the source command does in the iTerm2 terminal? Any help on this would be welcome.

How to force macOS File Provider Extension to re-enumerate items

Is there a way to force macOS File Provider Extension to re-enumerate items for given parent container? I am aware that we can signalEnumerator(for: .workingSet

How to read a specific value in PLIST file in terminal

I'm trying to access a specific property in a plist file on my MAC OS, but the name of that property has a space in it and I cannot access it. here is the reque

Removing Java 8 JDK from Mac

So I installed the beta of JDK 8 a while ago to look at some of the examples. I thought for sure by now, it's easy to change between versions. Doing some Play

BSTR's and VARIANT's under... mac os x

Under mac os x I have office 2011 and its excel and VBA, and I have gcc-5.3.0's g++. I played a lot to passing arrays (of numerical built-in types) from VBA to

Go programs won't run after MacOS Catalina upgrade

This might be a weird question, but some programs written in Go won't run on my MacBook Pro after MacOS Catalina upgrade. However a basic "Hello World" program

cx_freeze MacOs : Bad Python Path

I got a problem trying to compile any python program with cx_freeze on Mac. For now the program i'm trying to get an executable is the following: print('Hello W

Open a folder in vscode through Finder in macOS?

On my windows pc, I would just double click a folder and click "Open in VS Code" to a open a folder, which saved time for me when looking through lots of code o

How can I easily switch between PHP versions on Mac OSX?

I would like to test my application on PHP 5.3 up to PHP 7.0. Where and how can I install the versions and how can I switch them by running a small script?

Can't access OVM Samba share MacOs / iOS (Invalid argument)

I have Open Media Vault set up on Raspberry Pi. I have connected an external drive, created the required shared folders, enabled SMB/CIFS. Everything works grea

Unable to install python twint package under MacOS Catalina

I want to install pip3 install twint but I get the error: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/

Why I get SSL errors while installing packages on Docker(on mac)?

I am running Docker through Docker Desktop on a MacOS, and I am having a lot of trouble installing packages in my container because it is being unable to verify

Installing M2Crypto inside of virtualenv without installing swig to the system

I am working in a virtual environment and when I pip install M2Crypto on a machine that happens to have swig installed (system-wide) then it installs fine. I ne

Install gitk on Mac

How can I install gitk on a Mac? From their official website, it seems gitk comes with Git, but the version of my Git (git version 1.7.12.4 (Apple Git-37)) does

Docker running really slow on mac after PHP 7.4 > 8 update

We've recently updated our docker config from PHP7.4 to PHP8 running on Ubuntu 20.04. For most of the team this has been fine. For me and one other (both using

Unable to import opengl.gl in python on macos

I am using OpenGL to render a scene in python. My code works perfectly fine on windows but, for some reason, I'm having issues when importing opengl.gl on MacOS

ReSwift and State with a reference type property

Since ReSwift is based around immutability of State, the Swift struct is obvious choice to work with. But what if I really need a reference type property in a

Import error with psycopg2: symbol not found in flat namespace '_PQbackendPID'

Does anyone know how to fix this import error? I am working on macOS Monterey version 12.0.1. from psycopg2._psycopg import (# noqa ImportError: dlopen(/Users/m