mac os x – Android adb doesn’t see android device on macOS Catalina

macos – 10.15.7

device – xiaomi redmi 3s

adb works fine with android emulator, but it doesn’t see real device, which is has debug mode turned on.

When I connect real device via usb, I see that device is charging, but I don’t see an option to choose File Transfer connection on device.

ADB connection with device works fine on my Windows PC. How to make macos to see real device ?

macos – Noob struggling to tell terminal to install scikit-image 0.16.2 for Pyxelate

I’m using macOS Catalina version 10.15.7
I think this should be a very easy install, but apparently not.
At first, I spotted terminal told me I don’t have Cython. Ok. I installed it, then it gave me a long ass error command, which I have no idea to solve. I barely know what it meant.
And Pyxelate can’t take newest version of scikit-image.
Is that my clang’s file isn’t match the pip3? If so, how can I fix that? I really have no idea.

  13 warnings and 1 error generated.
  4 warnings generated.
  error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/usr/local/lib/python3.9/site-packages/numpy/core/include -I/usr/local/lib/python3.9/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/tcl-tk/include -I/usr/local/Cellar/python@3.9/3.9.1_6/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c skimage/restoration/_unwrap_2d.c -o build/temp.macosx-10.15-x86_64-3.9/skimage/restoration/_unwrap_2d.o -MMD -MF build/temp.macosx-10.15-x86_64-3.9/skimage/restoration/_unwrap_2d.o.d" failed with exit status 1
  ERROR: Failed building wheel for scikit-image

ERROR: Command errored out with exit status 1: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv(0) = '"'"'/private/var/folders/34/x6521nrj71sb1tmxtpcxsj4c0000gn/T/pip-install-25qrnc9w/scikit-image_5d68c8ee27804ffa8db02d899fd06b99/'"'"'; __file__='"'"'/private/var/folders/34/x6521nrj71sb1tmxtpcxsj4c0000gn/T/pip-install-25qrnc9w/scikit-image_5d68c8ee27804ffa8db02d899fd06b99/'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);'"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/34/x6521nrj71sb1tmxtpcxsj4c0000gn/T/pip-record-hddyaqi4/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/scikit-image Check the logs for full command output.

macos – History of OpenSSH in Mac OS

What is the history of OpenSSH in Mac OS, i.e.

  • when did Mac OS switch to OpenSSH, and
  • which versions of Mac OS since then shipped which version of OpenSSH?

My quick initial search did not turn up much, but I’m hoping such a resource exists.
This information would be useful, e.g., to figure out since when certain features (e.g. “netcat mode -W”) are supported in Mac OS.

P.S. The spelling “Mac OS” here is used loosely and not meant to denote a specific era of the operating system.

macos – How can I troubleshoot this re-occuring prompt to give a mysterious app security access?

For a couple months now, I’ve been getting this error, periodically, a few times a day, randomly. It’s been happening ever since I’ve gotten my new Macbook (I did the thing where I connected both laptops with a USB-C and copied everything over the first time i launched the new laptop)

enter image description here

Never have I ever, on this laptop, or in my last laptop, installed this before, to my knowledge. I have googled the error and found nothing

This application also does not exist in /Applications or ~/Applications, and there’s no process that looks like this in Activity Monitor.

I also did a disk search with sudo find / -name network and there were 0 hits that looked like this could be it

I also checked login items in my Account preferences, and this doesn’t exist either.

Even if I restart my machine, it will eventually show up again

I also do not run much on my machine. Here are my login items, and besides that day-to-day I use Xcode, SourceTree, and Chrome.

In the past I have used Shadow App and Parallels, I’m thinking maybe one of those apps may have placed something in that was just sleeping, and then got backed up onto my new machine… but I still can’t find anything.

Does anybody know how I can troubleshoot this further? it’s been driving me crazy!
enter image description here

macos – Why is Options button for Photos app missing in iCloud settings?

I’ve turned on family sharing and want to share photos. There should be a shared album in Photos called “Family” but it’s not there. I’ve found instructions that say I have to use the Options button in the iCloud settings for Photos, but that button doesn’t show up for me.
screenshot of icloud apps settings

How can I get that Options button to show up?

python – Unable to fix this building issue in macOs big Sur? Always getting this error while installing requirements? Any fixes?

Running install for pandas … error
ERROR: Command errored out with exit status 1:
command: ‘/Users/jashlodhavia/Desktop/Ask Employer whatsapp number/venv/bin/python’ -u -c ‘import sys, setuptools, tokenize; sys.argv(0) = ‘”‘”‘/private/var/folders/ys/0nmf5m0x66b7v8c1d4h9qzcc0000gn/T/pip-install-q838xcwd/pandas/'”‘”‘; file='”‘”‘/private/var/folders/ys/0nmf5m0x66b7v8c1d4h9qzcc0000gn/T/pip-install-q838xcwd/pandas/'”‘”‘;f=getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(file);‘”‘”‘rn'”‘”‘, ‘”‘”‘n'”‘”‘);f.close();exec(compile(code, file, ‘”‘”‘exec'”‘”‘))’ install –record /private/var/folders/ys/0nmf5m0x66b7v8c1d4h9qzcc0000gn/T/pip-record-3xis382a/install-record.txt –single-version-externally-managed –compile –install-headers ‘/Users/jashlodhavia/Desktop/Ask Employer whatsapp number/venv/include/site/python3.6/pandas’
cwd: /private/var/folders/ys/0nmf5m0x66b7v8c1d4h9qzcc0000gn/T/pip-install-q838xcwd/pandas/

/Users/jashlodhavia/Desktop/Ask Employer whatsapp number/venv/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: “Using deprecated NumPy API, disable it by ” “#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION” (-W#warnings)
#warning “Using deprecated NumPy API, disable it by ”
pandas/_libs/src/datetime/np_datetime.c:518:5: error: implicit declaration of function ‘convert_datetimestruct_to_datetime’ is invalid in C99 (-Werror,-Wimplicit-function-declaration)
convert_datetimestruct_to_datetime(fr, d, &result);
pandas/_libs/src/datetime/np_datetime.c:518:5: note: did you mean ‘pandas_datetimestruct_to_datetime’?
pandas/_libs/src/datetime/np_datetime.c:514:14: note: ‘pandas_datetimestruct_to_datetime’ declared here
npy_datetime pandas_datetimestruct_to_datetime(PANDAS_DATETIMEUNIT fr,
pandas/_libs/src/datetime/np_datetime.c:530:5: error: implicit declaration of function ‘convert_timedelta_to_timedeltastruct’ is invalid in C99 (-Werror,-Wimplicit-function-declaration)
convert_timedelta_to_timedeltastruct(fr, val, result);
pandas/_libs/src/datetime/np_datetime.c:530:5: note: did you mean ‘pandas_timedelta_to_timedeltastruct’?
pandas/_libs/src/datetime/np_datetime.c:527:6: note: ‘pandas_timedelta_to_timedeltastruct’ declared here
void pandas_timedelta_to_timedeltastruct(npy_timedelta val,
1 warning and 2 errors generated.
error: command ‘clang’ failed with exit status 1
Rolling back uninstall of pandas
Moving to /Users/jashlodhavia/Desktop/Ask Employer whatsapp number/venv/lib/python3.6/site-packages/pandas-1.1.5.dist-info/
from /Users/jashlodhavia/Desktop/Ask Employer whatsapp number/venv/lib/python3.6/site-packages/~andas-1.1.5.dist-info
Moving to /Users/jashlodhavia/Desktop/Ask Employer whatsapp number/venv/lib/python3.6/site-packages/pandas/
from /Users/jashlodhavia/Desktop/Ask Employer whatsapp number/venv/lib/python3.6/site-packages/~andas
ERROR: Command errored out with exit status 1: ‘/Users/jashlodhavia/Desktop/Ask Employer whatsapp number/venv/bin/python’ -u -c ‘import sys, setuptools, tokenize; sys.argv(0) = ‘”‘”‘/private/var/folders/ys/0nmf5m0x66b7v8c1d4h9qzcc0000gn/T/pip-install-q838xcwd/pandas/'”‘”‘; file='”‘”‘/private/var/folders/ys/0nmf5m0x66b7v8c1d4h9qzcc0000gn/T/pip-install-q838xcwd/pandas/'”‘”‘;f=getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(file);‘”‘”‘rn'”‘”‘, ‘”‘”‘n'”‘”‘);f.close();exec(compile(code, file, ‘”‘”‘exec'”‘”‘))’ install –record /private/var/folders/ys/0nmf5m0x66b7v8c1d4h9qzcc0000gn/T/pip-record-3xis382a/install-record.txt –single-version-externally-managed –compile –install-headers ‘/Users/jashlodhavia/Desktop/Ask Employer whatsapp number/venv/include/site/python3.6/pandas’ Check the logs for full command output. – MacOS misbehavior with Fonts in the Notes app

I can’t figure out if I’m in a certain mode or if there’s a bug in the app but whenever I try to increase or decrease the font of text in the Notes app the direction is always to go Bigger

Format -> Font -> Bigger
Format -> Font -> Smaller

Is there any explanation for that? Is the Notes app buggy when pasting in formatted text from webpages and html in general? I can’t make heads or tails of this behavior.

Notes -> Format -> Font

macos – Big Sur 11.1: AppleScript to Automatically Change Wi-Fi Networks

So, like a user reported here on Stack Exchange, the built-in “networksetup” command in terminal is pretty unreliable at times. It’s slow, and I’ve found for some reason dot1x never actually establishes properly for some types of Wi-Fi networks in my home. The solution: Create an AppleScript to simulate mouse clicks on the menubar to change between Wi-Fi networks.

Why is networksetup so slow compared to manually changing Wi-Fi networks?

The below script has worked fine for me until Big Sur:

use application "System Events"

property process : a reference to application process "SystemUIServer"
property menu bar : a reference to menu bar 1 of my process
property menu bar item : a reference to (menu bar items of my menu bar ¬
    where the description contains "Wi-Fi")
property menu : a reference to menu 1 of my menu bar item
property menu item : a reference to menu items of my menu

to joinNetwork given name:ssid as text
    local ssid
    if not (my menu bar item exists) then return false
    click my menu bar item
    repeat until my menu exists
        delay 0.5
    end repeat
    set M to a reference to (my menu item where the name contains ssid)
    repeat 20 times --> 10 seconds @ 0.5s delay
        if M exists then exit repeat
        delay 0.5
    end repeat
    click M
end joinNetwork

joinNetwork given name:"my network ssid"

The reason why it broke is that Wi-Fi is no longer technically a direct option under the main menu bar. Instead, it’s relegated to the Control Center in Big Sur, and I think there may even be another sub-module it’s technically nested it within the UI. I’ve been reading for hours about people trying to overcome this challenge in Big Sur, for example, to automate a click on specific Bluetooth device, but many AppleScripts people wrote apparently broke in the 11.1 update, and I have no easy starting point here for how to figure out how to accomplish what I am trying to do for Wi-Fi.

Any help here would be tremendously appreciated.

Side note: I know the same user also posted a method using AppleScriptObjC, but as people pointed out, it’s a huge security risk because you need to put your password somewhere as plaintext. The UI script is therefore the better option in my mind, so I’d like to get it to work again.