# Log 2022-10-02 ## Yabai commands You can resize managed windows in [[yabai]]: - [Resizing like in chunkwm · Issue #200 · koekeishiya/yabai · GitHub](https://github.com/koekeishiya/yabai/issues/200) ``` ctrl + cmd - h : yabai -m window west --resize right:-20:0 2> /dev/null || yabai -m window --resize right:-20:0 ctrl + cmd - j : yabai -m window north --resize bottom:0:20 2> /dev/null || yabai -m window --resize bottom:0:20 ctrl + cmd - k : yabai -m window south --resize top:0:-20 2> /dev/null || yabai -m window --resize top:0:-20 ctrl + cmd - l : yabai -m window east --resize left:20:0 2> /dev/null || yabai -m window --resize left:20:0 ``` Or absolute resizing and [[jq]] stuff: ```shell yabai -m query --windows | jq '.[] | select(.title | test("^MyTitle.*quot;)).id' | xargs -I{} yabai -m window {} --resize abs:1000:1000 # or WINDOW_SEL=$(yabai -m query --windows |jq '.[] | select (.title | contains("MyTitle")) | .id') yabai -m window $WINDOW_SEL --resize abs:1000:1000 ``` ## Obsidian CSS snippets for configuring view width I couldn't figure out how to set the width of the page (I could either make it quite narrow by toggling the "readable" option, or have it full-width). I added the following CSS snippet to `.obsidian/snippets` and toggled it in Appearance -> CSS Snippets: ```css .CodeMirror-scroll, .markdown-preview-section, .markdown-source-view { max-width: 60rem; margin: auto; } ``` I consulted: - [A fix for ugly long lines in fullscreen v2 - Share & showcase - Obsidian Forum](https://forum.obsidian.md/t/a-fix-for-ugly-long-lines-in-fullscreen-v2/1279/33) and - [Adjustable "Readable Line Length" - Feature requests - Obsidian Forum](https://forum.obsidian.md/t/adjustable-readable-line-length/7564/20) But had no success with the `--line-width` setting. ## Capture Looking at solder paste extruders for a [[3D Printer]]: This is DIY and looks pretty cool, using the [DRV8825 Stepper Motor Controller IC](https://www.ti.com/lit/ds/symlink/drv8825.pdf) and a syringe from [Site Unreachable](http://www.sge.com/products): ![[2022-10-02-1664712059420.jpeg]] ![[2022-10-02-1664712097341.jpeg]] ![[2022-10-02-1664712118986.jpeg]] - [Hand Held Solder Paste Micro-dispenser | Hackaday.io](https://hackaday.io/project/140560-hand-held-solder-paste-micro-dispenser) Ready made tool: - [I-Extruder - solder paste dispenser and Pick & Place tool - I-Extruder solder paste dispensers](https://www.i-extruder.com/en/) ### Looking for information about AMBA and microcontroller buses (or [[Computer Bus]] in general) I want to understand what "deterministic bus fabric" means in the context of the [[rp2040]], and realize I never looked into [[ARM AMBA]] in detail. Of course, the standard bus would be [[BOOK - Computer Organization and Design - David A. Patterson, John L. Hennessy]] or [[BOOK - Computer Architecture - John L. Hennessy, David A. Patterson]], but they focus on the CPU and not really the peripherals. There is an [[ARM]] edition of [[BOOK - Computer Organization and Design - David A. Patterson, John L. Hennessy]]: - [Computer Organization and Design ARM Edition: The Hardware Software Interface (The Morgan Kaufmann Series in Computer Architecture and Design): Patterson, David A., Hennessy, John L.: 9780128017333: Amazon.com: Books](https://www.amazon.com/Computer-Organization-Design-ARM-Architecture/dp/0128017333) But it doesn't have much about AMBA. - [System on a chip - Wikipedia](https://en.wikipedia.org/wiki/System_on_a_chip#Intermodule_communication) I found these books: This one is pretty academic (and 2004), not sure how useful it is overall. - [Multiprocessor Systems-on-Chips (Systems on Silicon): Jerraya, Ahmed, Wolf, Wayne: 9780123852519: Amazon.com: Books](https://www.amazon.com/Multiprocessor-Systems-Chips-Systems-Silicon/dp/012385251X) - [https://www.ele.uva.es/~jesman/BigSeti/ftp/Microcontroladores/ARM/Arm System-On-Chip Architecture.pdf](https://www.ele.uva.es/~jesman/BigSeti/ftp/Microcontroladores/ARM/Arm%20System-On-Chip%20Architecture.pdf) A nice relevant collection: - [soc - Booklist](https://3lib.net/booklist/933633/a839ef) Ok, this book has the goods: - [Modern System-on-Chip Design on Arm – Arm®](https://www.arm.com/resources/education/books/modern-soc) And this one might be even better: - [Fundamentals of SoC Design on Arm Cortex-M eBook – Arm®](https://www.arm.com/resources/ebook/fundamentals-of-soc) - [https://armkeil.blob.core.windows.net/developer/Files/pdf/ebook/arm-fundamental-soc.pdf](https://armkeil.blob.core.windows.net/developer/Files/pdf/ebook/arm-fundamental-soc.pdf) ## More SWD [[rp2040]] info from Matt - [Initial rp2040 support. by cbiffle · Pull Request #538 · oxidecomputer/hubris · GitHub](https://github.com/oxidecomputer/hubris/pull/538) ## More writing and research for [[rp2040]] article Writing up about - [[Rust Embassy]]. - [GitHub - rp-rs/rp-hal: A Rust Embedded-HAL for the rp series microcontrollers](https://github.com/rp-rs/rp-hal) Holy crap this is actually quite amazing: - [rp-hal/pico_i2c_oled_display_ssd1306.rs at main · rp-rs/rp-hal · GitHub](https://github.com/rp-rs/rp-hal/blob/main/boards/rp-pico/examples/pico_i2c_oled_display_ssd1306.rs)