darwin Questions
4
I've noticed in the AWS console that our website got a lot of more requests than normally. Especially in the night hours (Europe time).
Then I've checked the nginx logs and now I know that a lot...
5
Solved
Any pointers how to setup Terraform v0.14.0 on a Apple M1 , as tfenv doesn't support v0.14.0 on Apple M1
tfenv install v0.14.0
Installing Terraform v0.14.0
Downloading release tarball from https://...
Coppersmith asked 24/3, 2022 at 17:25
2
Solved
I'm porting a Linux C++03 application to Darwin OS X and have some code that reads the symbolic link at /proc/self/exe to determine the directory in which the executable running is located.
How ca...
Crossly asked 26/3, 2014 at 23:46
2
The way I normally start a long-running shell script is
% (nohup ./script.sh </dev/null >script.log 2>&1 & )
The redirections close stdin, and reopen stdout and stderr; the nohu...
1
When analysing crash reports, I'm seeing a Non UI role that I have never seen before. I am trying to understand what state of the app it corresponds to.
Hardware Model: iPhone7,2
Code Type: ARM-64...
Varick asked 14/7, 2018 at 16:29
3
Solved
I'm having an issue with running Prisma in my project. Running npx prisma generate works, but then running my app I get:
/Users/user/Desktop/project/node_modules/@prisma/client/runtime/index.js:364...
Katlynkatmai asked 5/1, 2022 at 21:47
9
This question seems to be all over google, but the answers all point to using System Profiler. That's nice, but with System Profiler all you get is something that looks like this:
DasKeyboard:
...
1
Solved
I use fexecve(3) on Linux to execute a binary held in a memfd.
Is there an equivalent for macOS? I've tried execve("/dev/fd/%d", [], []), but it failed with EACCES. Copying the file from that path...
Vitrescent asked 2/7, 2018 at 22:13
3
Solved
On Darwin, the POSIX standard clock_gettime(CLOCK_MONOTONIC) timer is not available. Instead, the highest resolution monotonic timer is obtained through the mach_absolute_time function from mach/ma...
6
3
Solved
I'm having problems getting my rsync syntax right and I'm wondering if my scenario can actually be handled with rsync. First, I've confirmed that rsync is working just fine between my local host an...
1
Solved
I ran a 'helloworld' to try GDB on mac but after typing run it output
[New Thread 0x1903 of process 69034]
and then nothing.
I've waited an hour and still nothing. Having done certification and...
2
Solved
How can I get the darwin version at runtime?
I know that I can get the macOS or iOS version using [[NSProcessInfo processInfo] operatingSystemVersion], but I want the Darwin version.
There are tab...
Avilla asked 27/12, 2016 at 18:9
1
I am new in UnsafeRawPointer.
As I got I need to allocate unsafe memory in my extension and send pointer to my app where has to cast and release it.
Below is a sketch of what I want to do.
I'd l...
Northernmost asked 3/10, 2019 at 19:50
2
Pulling my hair out getting CFNotificationCenterAddObserver to work in Swift.
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(),
UnsafePointer<Void>(self),
iosL...
Chromatics asked 29/10, 2014 at 17:31
3
Solved
I have been using arc4random() and arc4random_uniform() and I always had the feeling that they wasn't exactly random, for example, I was randomly choosing values from an Array but often the values ...
Ibnrushd asked 7/1, 2015 at 6:35
1
Apple has either removed all manual pages or I simply can't find them at their new location (specifically macOS) — it's as if they've just conveniently wiped them from existence.
↳ Mac OS X Manual ...
3
Solved
I am trying to find a way to include the PI constant in my Swift code. I already found help in another answer, to import Darwin which I know gives me access to C functions.
I also checked the Math...
2
I'm playing around with swift and have the following simple code
I want to check how "sqrt" function is implemented, so I tried to click on "Darwin.C.math" link but nothing happened. I googled ...
1
Is there an easy to use tool-chain to compile code for Darwin (mac's OS) from Linux?
For example, I would like to compile libpcap (or tcpdump) on a Linux machine and run in on my MAC. I've come ac...
Ephraimite asked 9/9, 2016 at 10:10
5
Solved
I want to change the rpath of an executable using install_name_tool, but I can't figure out what the rpath is right now. install_name_tool requires both the old and the new rpath's to be given on t...
Caressa asked 20/9, 2012 at 22:26
4
Solved
I'm trying to install Valgrind on a Mac with Snow Leopard but am getting an error. This is what I'm typing into Terminal.
$ curl -O http://valgrind.org/downloads/valgrind-3.8.1.tar.bz2
$ md5sum va...
3
Solved
dtruss appears to be a useful tool to analyze the (mis-)behaviour of applications on OS X. The closes thing I found to my beloved strace on linux. But interpreting its output requires an understand...
Alrick asked 3/12, 2012 at 9:45
1
Using POSTMAN , everything is fine :
I pass the same headers,params,... to superagent as following :
const superagent = require('superagent');
const grab = require('ps-grab');
superagent.get(...
Lillith asked 15/10, 2016 at 20:43
1
Solved
What is the name of the low-level keyboard device in macOS (somewhere in Darwin / Mach / IOKit) that corresponds to /dev/input in Linux? (e.g. /dev/input/event0)
Context: I'm asking because want t...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.