Please see latest draft and conversation in the bips repository PR #1378
Here's how to get your environment set up to:
- Develop iOS and Android apps using Rust.
- Enable GUI debugging of Rust projects in Xcode.
If you just want to enable GUI debugging of macOS Rust projects in Xcode, I'm not actually sure whether you need cargo-mobile at all. But one benefit of installing it is that it automatically installs rust-xcode-plugin for you, giving you syntax highlighting of Rust sources in Xcode.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bitcoin-cli getrawtransaction 54e48e5f5c656b26c3bca14a8c95aa583d07ebe84dde3b7dd4a78f4e4186e713 | sed 's/0100000000000000/\n/g' | tail -n +2 | cut -c7-136,139-268,271-400 | tr -d '\n' | cut -c17-368600 | xxd -p -r > bitcoin.pdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## NOTE ## | |
| If you just need to build, and you don't need to hack on GTK 4 itself, you can | |
| probably just use brew. That is the simplest and fastest way to get started. | |
| ``` | |
| brew install gtk4 | |
| ``` | |
| At that point, /usr/local/bin/gtk4-demo is there, and all the others. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Heavily based on ideas from https://github.com/LuaJIT/LuaJIT/blob/v2.1/src/lj_opt_fold.c | |
| // The most fundamental deviation is that I eschew the big hash table and the lj_opt_fold() | |
| // trampoline for direct tail calls. The biggest problem with a trampoline is that you lose | |
| // the control flow context. Another problem is that there's too much short-term round-tripping | |
| // of data through memory. It's also easier to do ad-hoc sharing between rules with my approach. | |
| // From what I can tell, it also isn't possible to do general reassociation with LJ's fold engine | |
| // since that requires non-tail recursion, so LJ does cases like (x + n1) + n2 => x + (n1 + n2) | |
| // but not (x + n1) + (y + n2) => x + (y + (n1 + n2)) which is common in address generation. The | |
| // code below has some not-so-obvious micro-optimizations for register passing and calling conventions, | |
| // e.g. the unary_cse/binary_cse parameter order, the use of long fields in ValueRef. |
- Create a new non-root user, follow the prompts:
# adduser <new-username> - Give sudo permissions to the new user:
# usermod -aG sudo <new-username> - Ensure that sudo is installed (
which sudo; if none, install it:apt install sudo) - Check groups for new user:
# groups <new-username> - Edit sshd_config settings:
# vim /etc/ssh/sshd_config - Under "Authentication", change
PermitRootLoginfrom yes to no:"PermitRootLogin no" - (Optional) Change "MaxAuthTries" to a lower value to limit login attempts for any user:
"MaxAuthTries 4" - Save the changes:
:wq(save and exit vim)
Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[