Questions tagged [macos]

macOS (formerly known as OS X or Mac OS X) is the desktop operating system from Apple, found on Macintosh computers. Use this tag only if your question relates to using macOS APIs or macOS-specific behavior, not because you happen to run your code on macOS. Questions relating to using or troubleshooting macOS are off-topic, and belong to the Ask Different community.

0
votes
0answers
7 views

How to update pip properly on Mac

I have a small question regarding upgrading pip. I've installed python 3.7.3 via homebrew and added export PATH="/usr/local/opt/python/libexec/bin:$PATH" to my .zshrc. The paths to pip and python ...
0
votes
1answer
20 views

Check if an app is pre-installed or protected on OS X

Checking the app by the author 'Apple' isn't a good choice because some other apps from Apple like 'Xcode' or 'Numbers' are not system apps. I also thought about 'Date Added' but it seems not a good ...
3
votes
0answers
27 views

How do I compile a Haskell Mach-O executable that exports a symbol?

How do I compile a Haskell executable (not a library) using GHC >=8.2.1 (preferably on 8.6.*) on macOS 10.14.5 that successfully foreign exports a function (i.e. exposes it as a public symbol in the ...
0
votes
0answers
5 views

How can I get only the overall cpu usage (like msi afterburner) in terminal (macosx) as a single value e.g. 59%

Can't find any way to get an overall CPU usage value like MSI afterburner with mac terminal. Already tried searching for answers for weeks. ps -A -o %cpu | awk '{ cpu += $1} END {print cpu}' The ...
1
vote
0answers
17 views

Why this static_assert not compile on MacOS? Strange typeid() issue [duplicate]

I have code I try to compile on 64 bit MacOS with clang. #include <cstdint> int main(){ static_assert(std::is_same<long, int64_t>::value, ""); } I did some checks and both long and ...
0
votes
0answers
14 views

Gtk.jl getting started example button issue

I want to make a simple GUI application using Julia and Gtk, however when trying the Getting started example on Gtk.jl the button does not show up. I am just getting started using both Julia and Gtk, ...
0
votes
0answers
27 views

Indeterminate progress indicator not animating

The progress indicator does not start animating even if I use queues or sleep. I have a function that reads contents of a directory and for each mp3 file it gets the file tags. Also, I read posts ...
0
votes
0answers
17 views

Compiling LWJGL jar on Mac, 'java.nio.FloatBuffer.flip()Ljava/nio/FloatBuffer;'. Works in Eclipse, but not when exported

I'm creating Shaders in my LWJGL engine, and I am able to successfully run the Jar from Eclipse using Java 8, however, when exported via Maven build, compiled for Mac and run on a Mac, will give off ...
-2
votes
0answers
22 views

How to merge files in a directory such that 1 million files become 1000 new files, each consisting of 1000 original files?

I have a folder with 1 million (text) files. I want to merge the first 1000 files into a new file called 1. Then the next 1000 files into a new file called 2. And so on. This way I would end up ...
0
votes
0answers
15 views

Writing to thermal sensor Mac OSX

I just bought an Apple Macbook Pro 13 Mid 2010. After fixing some issues with it, I was able to boot it. Now, however, the fan after a few seconds is ramping up full speed and does not go back to ...
0
votes
0answers
16 views

How to connect to a host machine's Docker service?

I'm new to using Docker, and I have both a MySQL server (port 3308) and a Flask App (port 8000) in a container. The application works on my host machine, however, I would like to access the ...
1
vote
0answers
22 views

Programmatically disable “Shake to find pointer” MacOS feature without hiding cursor

I am aware of this question, but that's different to what I am looking for, as the accepted answer hides the cursor. I'm writing software that remaps the left mouse button to the left CTRL key. I ...
0
votes
0answers
9 views

Correctly detecting CAPSLOCK events on MacOS

I create an Event tap: _eventTap = CGEventTapCreate( kCGHIDEventTap, // kCGSessionEventTap, kCGHeadInsertEventTap, kCGEventTapOptionDefault,...
-2
votes
0answers
13 views

Difference in free disk space on Mac [on hold]

I have 250 GB on my Mac, If I look through the "Storage" - free 127 GB, and if I look through the "Disk Utility", then 63 GB. Which one is relevant?
0
votes
0answers
17 views

pbcopy in Python to copy to the clipboard on OSX?

I am receiving the following error when trying to use pbcopy to add the output to the clipboard. I tried different variations of the command and still no luck. Does anyone have any ideas where I may ...
0
votes
0answers
13 views

cocoa - how to make a non-sandbox macOS app start at login?

I am developing a non-sandbox macOS app which is not going to be released in App Store, and I want to make the app to run when user log in. The current method I have found is to use Service ...
0
votes
1answer
12 views

DataTable.AsEnumerable() does not Exist on my Visual Studio For Mac System.Data [duplicate]

I downloaded Visual Studio for Mac to give it a try. I am working with data and linq. When I try the following, AsEnumerable does not exist. using System.Linq; using System.Data; namespace ...
0
votes
0answers
19 views

How to save hours when I tapped a button with Swift? [duplicate]

I'm back for a new question... lol. Today I search how to save hours in a form of list when I tapped an button with Swift. So, for example: Tapped button - 01:00 PM START Tapped button - 01:05 PM ...
0
votes
1answer
10 views

How to restrict macOS internet to only allow internet over OpenVPN?

I have a problem where i want to allow macOS internet only if its connected via OpenVPN. I have the IP address of the VPN i have achieved the same on Windows using firewall but i can't seem to find ...
0
votes
0answers
17 views

How to detect when user drops an image on a NSImageView with Swift?

I'm trying to detect when a user drops an image on an NSImageView instantiated by code. The idea is that when the image is released an action occurs. How could I do this with code? let imageHolder = ...
0
votes
0answers
14 views

Combining Animoji and AVSpeechSynthesizer with Swift?

I'm attempting to mix and match Animoji and the AVSpeechSynthesizer so that I could call a list of quotes and have an Animoji visually present and available and speaking them. I'm not sure if this ...
0
votes
1answer
14 views

Why doesnt crontab execute my node script?

I wrote a node script that i want to execute every day using crontab. Was looking for a way to find out what root crontab has or how to navigate to my script but could figure it out.. /usr/local/bin/...
0
votes
0answers
14 views

Excel 2016 for MAC - SQL-Oracle (Actual technologies): How to pass a cell date value to a SQL for Oracle DDBB

I'm trying to get data from an Oracle DDBB with a query from excel 2016 for MAC using the ACTUAL technology connector and wanted to pass a value from a cell to filter by date, different errors I got; ...
0
votes
0answers
15 views

VS Shell Command 'code' install returns 'command not available'

I am attempting to set up VS code and install the shell command 'code'. When I open up the command line, type in "Shell command" and select the install option, it returns "This command is not ...
3
votes
0answers
77 views

Latest version of Anaconda throwing warning

I just downloaded Anaconda 4.6.11 macos 64-bit command line installer. The installation was successful. But when I hit conda create -n py3 python=3 it throws me a warning as follows: WARNING: The ...
0
votes
1answer
18 views

NSWindow IBOutlet is not remaining synchronous

Mac OS X code using IBOutlet that does not update continuously during a function but does update at the end of the function. I am using Xcode 10.2.1. I have tried display, update, displayIfNeeded, ...
0
votes
0answers
27 views

How can I reduce energy usage from infinite CAAnimation? (Animated Gradient)

I want to include an animated gradient in my application and I'm currently using CATransition for the task. However the animation has very high energy usage on both iOS as well as macOS (I develop ...
0
votes
0answers
26 views

macOS Mojave v.10.14.5 home [on hold]

Suddenly my Mac change the name to HUAWEI_Mate_20_lite-fdcb7 and I don't know where it come from and how to change it doing ~/.bash_profile: HUAWEI_Mate_20_lite-fdcb7:~ peris$ cat ~/.bash_profile ...
1
vote
0answers
17 views

creating a simd::float2 from an initializer list

I can't create a simd::float2 from an initializer list: #include <simd/simd.h> void f(simd::float2) { } int main() { f({0.0f,0.0f}); // Doesn't work f(simd::float2{0.0f,0.0f}); // ...
0
votes
1answer
25 views

Theoretically simple: CSV of filenames and dates from all subdirectories (Unix(OSX)

so what I want to do seems simple but... I just can't get it to work. I have a random folder with multiple subdirectories including a lot of files (like 2k). Now I want to write a little program / ...
0
votes
1answer
32 views

How search for a file/folder by a string query in OS X?

Like Finder, you give it a string query and it returns a list of files with the matching string, I do not want to use the other method of getting all the files in a directory and then iterating it one ...
1
vote
1answer
25 views

What is proper way to define define-key in emacs

I am trying to make toggle insert/normal mode in evil in spacemacs. I have successfully accomplished that with code down there. But LED light next to Caps-lock on my macbook pro 2018 13' stoped ...
0
votes
0answers
23 views

Any chance to trigger a kevent w/o knowing the owning queue? Any Alternatives?

I need to design a "wait-for-event-objects" thingy that could accept opaque event objects and able to block until one of them is signaled. It should work on MacOS/Linux/Windows. So for Linux/Windows ...
-2
votes
0answers
32 views

Accidentally run git clean -fdx on desktop

I did a huge mistake. I thought its may project directory but it was Desktop on which I run comman git clean -fdx. It deleted my whole data, please tell how I can recover my data back. I'm using macOs ...
0
votes
0answers
19 views

Mac OSX save image programatically in Photo Booth in Mac

I want to save image programatically in photo booth app in mac. is there any possible to do this?any help will be appreciated.
2
votes
0answers
29 views

Issue with unity 3d build on Mac OS [on hold]

I'm coding a gamification application where the interactions with the end user is performed with microphone and webcam. I'm using a 2019 mac mini with unity 3D 2018. During the coding session with ...
0
votes
0answers
11 views

Safari filters network requests of the same type

I am currently sending two requests to my server, both with the same url but different headers. Everything works fine in Chrome, but Safari filters one request and give both the same response. But I ...
0
votes
0answers
8 views

How can I make mydomain.com.localhost point to my VM's IP in Mac?

On MacOS, how can I make domain.com.localhost point to my VM's IP running Windows 10? I have set up IIS with one site with a wildcard * so that all domains resolves to this site, so that I can put ...
0
votes
0answers
7 views

The 'Always Allow' button not showed when accessing keychain

While I was archiving iOS package through XCode, it told me that it needed to access system keychain. So, I put in my account and password then pushed the 'Allow' button, But soon it asked me again. ...
0
votes
0answers
24 views

IBM Informix NodeJS Setup Issues - The INFORMIXSERVER value is not listed in the sqlhosts file or the Registry

I am attempting to connect Informix with NodeJS on MacOS but coming up against issues configuring the environment correctly. In my ~/.bash_profile I have the following: export INFORMIXDIR=/...
0
votes
0answers
12 views

How to not show Mac OS crash reporter when my software crashes while developing?

Can I configure Mac OS to not show me crash reporter dialog when I get a crash in the software tool that I am developing? In particular I'm asking about dotnet crashes.
1
vote
1answer
35 views

Swift SHA256 encryption returns different encrypted string compare to Objective C

I am migrating some codes from objective c to swift. I want to encrypt a string with a key using SHA 256 algorithm in swift. But comparing to Objective C implementation swift code returns different ...
0
votes
1answer
22 views

Building ios app on ubuntu with apple hardware

I am Flutter developer and using Ubuntu as primary OS. Is there some chance to fully developing ios app? I know that need macOS and XCode, so I can buy some mac, but I want using Ubuntu as primary ...
1
vote
1answer
53 views

Converting UnsafeMutableRawPointer to String(utf8) in swift

The question is simple How to convert UnsafeMutableRawPointer? to String(encoding: utf8) in swift. I get some data from socket written in obj c, the model class looks like @interface PTData : ...
0
votes
0answers
21 views

how to compile the Tensorflow source code

when I compile the TensorFlow source code by Mac, I meet the following problem like: ERROR: /private/var/tmp/_bazel_xmly/88507af8aae72d6d7037a76bc898c925/external/protobuf_archive/BUILD:260:1: ...
0
votes
0answers
39 views

Painting program working on Windows but not on my Mac?

I've made a simple program where you should be able to hold and drag the mouse to paint something. Now, this program works fine on my Windows, but when I try the exact same code on my Mac, the 10x10 ...
0
votes
2answers
16 views

can get mac address of wifi with react Native? (when not connect to wifi)

I want to have unique wifi name from my database. can i get mac address or BSSID by react Native? i want to select technolojy of react native if it can do this .is there any body to help me
0
votes
1answer
37 views

Where does “npm install -g <package>” install the package?

I have installed some packages using npm install -g and was wondering were they were actually installed? If I use npm install they are installed in the current directory under node_modules it appears....
0
votes
0answers
6 views

macOS L2CAP Bluetooth sockets

I need to open Bluetooth sockets on Mac. LightBlue seemed great but then it turned out that in the Mac version, everything having to do something with L2CAP is just not implemented and pretty surely, ...
0
votes
0answers
12 views

XPC Communication with Bluetooth Chip

I am looking for a good guide / tutorial that shows the basics of XPC communication with the Bluetooth chip on OS X / macOS. IOBluetooth uses those messages itself but I’d like to try to skip ...

http://mssss.yulina-kosm.ru