Better HN
topnewbestaskshowjobs
Log inSign up

oandrew

104 karma · joined Oct 26, 2020 (6y ago) · 22 submissions

hn@oandrew.dev
Submissions

comment 4mo ago · link · parent

Thank you!

comment 4mo ago · link · parent

I'd appreciate a lobste.rs invite if anyone has one. Email is in my profile. Thanks!

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

I've observed worse performance with caddy+http3 so I disabled it. That was especially noticable on larger files

comment 4y ago · link · parent

.b

comment 4y ago · link · parent

No, since rust async is stackless. There is a stackful coroutine implementation for Rust: https://github.com/Xudong-Huang/may

comment 4y ago · link · parent

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?

comment 4y ago · link · parent

bash 4 supports `|&` as an alternative to `2>&1` which looks better in pipelines e.g.

  $ docker logs container |& grep word

comment 5y ago · link · parent

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

comment 5y ago · link · parent

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

comment 5y ago · link · parent

Yes but typically with some sort of batching proxy in front of it

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

comment 5y ago · link · parent

you can skip shell built-ins by pretending "command":

  $ time -V
  -V: command not found

  $ command time -V
  GNU time 1.7

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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/

16.

Show HN: ipod-gadget – stream digital audio to iPod compatible docks/cars(github.com ↗)

1 points · by oandrew · 5y ago · discuss

comment 5y ago · link · parent

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

comment 5y ago · link · parent

CID is displayed in hex so it needs to be converted to decimal first.

comment 5y ago · link · parent

[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

comment 5y ago · link · parent

Make sure you're using the latest JB SDK. https://intellij-support.jetbrains.com/hc/en-us/articles/206...

comment 6y ago · link · parent

https://github.com/mvp/uhubctl

comment 6y ago · link · parent

ClickHouse has very clean and modern C++ codebase. https://github.com/ClickHouse/ClickHouse