HNHacker News
TopNewBestAskShowJobs

oandrew

104 karma · joined October 26, 2020

hn@oandrew.dev
submissionscomments
oandrew··on Lobste.rs is now running on SQLite
Thank you!
oandrew··on Lobste.rs is now running on SQLite
I'd appreciate a lobste.rs invite if anyone has one. Email is in my profile. Thanks!
oandrew··on Zellij New WASM Plugin System
Iterm2 has tmux control mode support that enables somewhat native ui: https://iterm2.com/documentation-tmux-integration.html

There is also wezterm with its own mux server implementation: https://wezfurlong.org/wezterm/multiplexing.html

oandrew··on Connect to your Raspberry Pi over USB using gadget mode
Check this out: https://github.com/oandrew/ipod-gadget

It's a USB gadget kernel module that pretends to be an iPod to stream music to car/etc.

oandrew··on Avoiding HTTP/3 (for a while) as a pragmatic default
I've observed worse performance with caddy+http3 so I disabled it. That was especially noticable on larger files
oandrew··on Oven: The Company Behind Bun
.b
oandrew··on Async Rust doesn't have to be hard
No, since rust async is stackless. There is a stackful coroutine implementation for Rust: https://github.com/Xudong-Huang/may
oandrew··on Practical Shell Patterns I Use
One feature I really wish for in shells is something similar to Perl's unquoted strings / single line concise HEREDOC syntax / raw literal syntax. e.g.

  $ echo q(no ' escaping ` required " here)
  no ' escaping ` required " here
This would make typing sql / json much easier. To my knowledge none of the shells implement this. Does anyone know why?
oandrew··on Practical Shell Patterns I Use
bash 4 supports `|&` as an alternative to `2>&1` which looks better in pipelines e.g.

  $ docker logs container |& grep word
oandrew··on Amazon Ion – A richly-typed, self-describing, hierarchical serialization format
Interesting. Confluent Avro + Schema registry + Kafka uses exactly the same approach - binary serialized Avro datums are prefixed with schema id which can be resolved via Schema registry
oandrew··on Amazon Ion – A richly-typed, self-describing, hierarchical serialization format
So basically it's Amazon's version of Apache Avro. Avro supports binary/json serialization, schema evolution , logical types (e.g. timestamp) and other cool stuff.

https://avro.apache.org/docs/current/spec.html

oandrew··on Comparing ClickHouse to PostgreSQL and TimescaleDB for time-series data
Yes but typically with some sort of batching proxy in front of it

e.g. https://clickhouse.com/docs/en/interfaces/third-party/proxy/

oandrew··on Time(1) and CPU Frequency Scaling
you can skip shell built-ins by pretending "command":

  $ time -V
  -V: command not found

  $ command time -V
  GNU time 1.7
oandrew··on Why hardly anyone buys Google's Pixel phones
No more security updates from Google though. That'll force me to upgrade sooner that I would like. LineageOS is an option but I'm not sure how secure it is.
oandrew··on Observable Plot
How does this compare to Apache Echarts (https://echarts.apache.org/en/index.html) ?

p.s. My favorite data exploration toolkit is Clickhouse + Tabix (it uses apache echarts). e.g. https://tabix.io/doc/draw/Draw_Chart/

oandrew··on Show HN: I wrote a program to convert lines of text into trees
There is also

  tree --fromfile
e.g.

  echo a/b1 a/b2/c | xargs -n1 | tree --fromfile

  .
  └── a
      ├── b1
      └── b2
           └── c

 2 directories, 2 files
oandrew··on Visualization of 40M Cell Towers
CID is displayed in hex so it needs to be converted to decimal first.
oandrew··on My ISP Is Killing My Idle SSH Sessions
[mosh or eternal terminal] + tmux combo solves the problem (and adds other cool functionality)

https://mosh.org/

https://eternalterminal.dev/

https://github.com/tmux/tmux/wiki

oandrew··on IntelliJ Idea 2020.3.1 Is Out with Apple Silicon Support
Make sure you're using the latest JB SDK. https://intellij-support.jetbrains.com/hc/en-us/articles/206...
oandrew··on Power-cycling a USB port should be simple, right? (2017)
https://github.com/mvp/uhubctl
oandrew··on Ask HN: Good C++ code bases to read?
ClickHouse has very clean and modern C++ codebase. https://github.com/ClickHouse/ClickHouse