This guide documents how to mount a remote server's directory as a network drive on macOS using SSHFS.
- macOS (tested on macOS Sequoia)
- SSH access to remote server configured in
~/.ssh/config - Homebrew installed
The big reason to do this is that LLDB has no ability to "follow-fork-mode child", in other words, a multi-process target that doesn't have a single-process mode (or, a bug that only manifests when in multi-process mode) is going to be difficult or impossible to debug, especially if you have to run the target over and over in order to make the bug manifest. If you have a repeatable bug, no big deal, break on the fork from the parent process and attach to the child in a second lldb instance. Otherwise, read on.
Don't make the mistake of thinking you can just brew install gdb. Currently this is version 10.2 and it's mostly broken, with at least two annoying bugs as of April 29th 2021, but the big one is https://sourceware.org/bugzilla/show_bug.cgi?id=24069
$ xcode-select install # install the XCode command-line tools| # Load relevant libraries | |
| import numpy as np | |
| import numba as nb | |
| import matplotlib.pyplot as plt | |
| # Goal is to implement a numba compatible polyfit (note does not include error handling) | |
| # Define Functions Using Numba | |
| # Idea here is to solve ax = b, using least squares, where a represents our coefficients e.g. x**2, x, constants | |
| @nb.njit |
If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.
Recently, I deleted some files by mistake in a Ubuntu machine with an ext4 fs. These notes document the steps I took to get them back.
With that out the way, let's begin.