Newbie adventures in trying to lazily tokenize an input stream with

gist.github.com/datagrok/1d13c

With a link to someone's massive blog post on the same subject with a more thorough walkthrough: poeticoding.com/elixir-stream-

Well, that took a while but my changes to add support for the SH1106 OLED display driver IC are now merged upstream into QMK master! 馃帀 github.com/qmk/qmk_firmware/pu

Does this mean I can now put "C-language embedded driver development" on my resume? 馃槻

(no, my changes were tiny)

I've been adding very important features to my #aquarium monitoring setup tonight.

I got a little 128x64 I2C OLED display for $2.50. It said in the product listing that it used an SSD1306 driver IC, which made me think it would work with firmware.

I hooked it up but it only showed static.

So I read some datasheets and learned some stuff and did some hacking and now (or very soon) QMK will support this OLED display too! (Turns out it actually uses an SH1106.)

Pictured: the wireless receiver for my Mitosis , with a speaker and this OLED display attached.

:thaenkin: python zip(*rows) is matrix transpose

>>> [(1, 2, 3), (4, 5, 6)]
[(1, 2, 3), (4, 5, 6)]
>>> list(zip(*_))
[(1, 4), (2, 5), (3, 6)]
>>> list(zip(*_))
[(1, 2, 3), (4, 5, 6)]

>>> [[1, 2, 3], [4, 5, 6]]
[[1, 2, 3], [4, 5, 6]]
>>> numpy.transpose(_).tolist()
[[1, 4], [2, 5], [3, 6]]
>>> numpy.transpose(_).tolist()
[[1, 2, 3], [4, 5, 6]]

:thaenkin: hey it rhymes too

鈥楬TML, CSS and our vanishing industry entry points鈥
rachelandrew.co.uk/archives/20

this says so many things i agree with, i hardly know where to begin pulling quotes. web design and dev used to be something you could organically transition toward from a variety of other roles or hobbies. there was a broad, porous space between laypeople and ultra nerds. this zone created a culture i was able to grow and succeed within. it is now nearly gone.

馃泿锔 Website update:

- Still a bunch of CSS cleanup to do, but I've got marginalia working! 馃槏 Soon I want to get a "light theme" toggle going.

- Lots of revision to my article re: "purist free software systems shouldn't shun non-free programs"
datagrok.org/gpl/shun/

- Some revision to my "exec the arguments" draft, including implementation in bash, c, python, rust, and scheme
datagrok.org/src/exec-args/

@datagrok warning: afaik bitstream vera also has worse coverage of international scripts.

Do you find that on some sites, emojis show up as outlines instead of color images? If so, try uninstalling DejaVu fonts and installing Bitstream Vera fonts instead.

github.com/eosrei/twemoji-colo

鈥 So I am excited to say that as soon as I get all the detritus swept up from having ham-handedly smashed their CSS together with mine, I'll have nice mobile-friendly marginalia and sidenotes on my Markdown-source-format webpages! It's already mostly-working! I've wanted this for so long! 馃榿

Cascading style sheets -/+ Show more

Cascading style sheets -/+ Show more

a do-while loop in shell script Show more

TIL Two popular textbooks on mathematics for data science (one for math experts and one for everybody else) both offer complete downloadable PDFs at no cost!

An Introduction to Statistical Learning
www-bcf.usc.edu/~gareth/ISL/

The Elements of Statistical Learning
web.stanford.edu/~hastie/ElemS

(Grumble grumble I wish they were epub though)

馃憖 Updated draft: "The 'run the arguments trick,'" up to 3k words now on this ode to these four little characters: "$@"

datagrok.org/src/exec-args

Added new Rust and Guile Scheme examples, plus lots of revision.

Just a few more improvements then I can rip the "draft" warning label off.

Attempting to implement this bit of shell script in .

exec "$@"

My first working attempt used eval with quasiquoting and it looked very messy. Second attempt:

(let ((args (cdr (program-arguments))))
(apply execlp (car args) args))

It works, but is it idiomatic? Is this how you'd write that? Can it be shorter or clearer?

馃憖 Unfinished draft article about one of my favorite pieces of shell script:

"$@"

"The 'run the arguments' trick":
datagrok.org/src/exec-args/

So you're saying I could achieve my life goal of becoming a scruffy mountain hermit while still enjoying screaming fast internet, sending kids to high quality public schools, and able to get to a busy international airport in 2 hours all without owning a car? How do I apply

Making plans to visit and explore around one of the least-used train stations on the entire Nankai line the next time I visit Japan, and I am vibrating with excitement!

There's something about reliable public transit being available in the beautiful middle of nowhere that just thrills me.

(Get this: despite having fewer than 20 passengers per day, trains depart from this station at least hourly from 5am to 9pm 馃槏)

Show more
Cybrespace

锝冿綑锝傦綊锝咃綋锝愶絹锝冿絽: the social hub of the information superhighway

jack in to the mastodon fediverse today and surf the dataflow through our cybrepunk, slightly glitchy web portal