Ben Chuanlong Du's Blog

It is never too late to learn.

Computer Vision Libraries in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

resize

resize Image resampling library in pure Rust. - Fast, with support for many pixel formats - No encoders/decoders, meant to be used with some external library - Tuned for resizing to the …

Tips on Rustfmt

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Configuring Rustfmt

tab_spaces = 4
max_width = 90
chain_width = 70
newline_style = "unix"
use_field_init_shorthand = true
use_small_heuristics = "Max"

References

https://github.com/rust-lang/rustfmt

Rust and Spark

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

The simplest and best way is to leverage pandas_udf in PySpark. In the pandas UDF, you can call subprocess.run to run any shell command and capture its output.

from pathlib …

Zellij Is the Best Terminal Multiplexer

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

zellij options --disable-mouse-mode

https://github.com/zellij-org/zellij

Persistent Sessions

A detached session becomes a persistent session.

ctrol + o: d

You can re-attach a session using

zellij attach session_name