Home

Post One

Published: 2023-08-10

Notes

create a note with a date stamp

$ touch $(date +%F).md

password gen

$ pwgen —symbols 16

News

I joined HackerNews. WoofnHoo haha. Used pwgen, getting closer to the command line life. Systems! I learned that cloudflare uses the production branch. Set every default branch to main? .

git make default branch production

Set the default master branch name $ git config —global init.defaultBranch main Rename the master branch: $ git branch -m main production

TODOS

  • ✔ Rachels site final edits
  • ✔ Rachels site robots.txt
  • github login
  • ✔ add Rachels site to github
  • ✔ screenshots of accessibility (text only0 on Rachels site

Find replace (vim)

:%s/find/replace/g

RUST!

Importing things means giving those imports features. Ran into this error on compiling my first Rust program. Parser is imported here, but it is only a trait, without a derive macro

clap = { version = "3", features = ["derive"]} 

https://stackoverflow.com/questions/69863208/clap-options-with-derive-macros-fails-to-compile-in-rust-clap-3-0-0-beta-5

“We all can do nothing but accept the fact that errors will occur. And in contrast to many other languages, it’s very hard not to notice and deal with this reality when using Rust: As it doesn’t have exceptions, all possible error states are often encoded in the return types of functions.”

Rust is all about the error. it defintiely helps you learn!

a nice error: ^^^ expected one of ->, where, or {