Readit News logoReadit News
houzi commented on On Running systemd-nspawn Containers (2022)   benjamintoll.com/2022/02/... · Posted by u/cautious-fly
houzi · 6 months ago
Does breaking out of the container give you root?
houzi commented on Show HN: Keypub.sh – OAuth for the terminal using SSH keys   keypub.sh/... · Posted by u/messh
theamk · 8 months ago
Looking at their demos immediately brought back the memories of parsing TUI's using ad-hoc "expect" rules.

I honestly don't get the point of TUIs...

A real command-line interface is extremely useful - it's trivially scriptable, works direct or with ssh, scroll-back buffer logs what happened, commands stay in my shell history, I can copy-paste commands to a friend over chat system, or into shell script, and it's easy for app authors too. Its my first choice for my apps.

If low-color fixed-width character grid is not cutting it, then native app or web app is a great second step, or even intermediate solutions, like generating HTML files from CLI tool and opening them in default browser. You have to invest some effort, but you have infinite ways to design your interface, and it's still in user's familiar environment.

But those charm.sh TUI applications seem utterly useless and highly annoying. They give up all of the terminal advantages: my shell's history is useless, my favorite ways to edit commands does not apply (as they have their own editor), I cannot scroll back and see what the program just printed, I cannot script it, I cannot log it, I cannot search it, I cannot redo the previous action, the color scheme is not the one I've picked... At least with web apps I can parse html and/or hit underlying API directly - no such luck with TUI apps.

At least the good news is that TUI apps are not getting any traction, and I can completely understand why.

houzi · 8 months ago
TUI's have one thing going for them: Copy paste anything! IntelliJ doesn't let me copy any text it shows me.

Also, TUI's have their place. I haven't looked much at GUI alternatives, but k9s is really great.

Would also assume that interactive apps are simpler to implement if it's a TUI.

houzi commented on What happens to our breath when we type, tap, scroll   npr.org/2024/06/10/124729... · Posted by u/nequo
kstenerud · a year ago
That seems to be what all the meditation people say. I've done it many times, and it goes like this:

Ok, lie down. Relax muscles, sinking down, good breathe...

Bored.

Bored bored bored OMG this is so boring!

Breathe, breathe, try not to think of how boring this is!

Bored bored bored oh a bird is chirping. Chirp chirp chirp and gone.

Bored bored bored bored bored holy shit when does this end?

My fingers are flicking now. Bored bored bored bored fuck it I'm done. Waste of an hour.

My friend: wasn't that awesome?

Uhh.. let's just go build something.

houzi · a year ago
Love how well you articulate these notions. They are truly valid for most of us. It also means you're doing it right. The point then is to stay with the practice until you can stop fighting the notion of boredom and instead be "friends" with it. Just be fine with the boredom. Learn to relax in it. Hope you'll try it again.
houzi commented on Self hosting in 2023   grifel.dev/decentralizati... · Posted by u/michalwarda
sandreas · 3 years ago
I personally prefer to self host Proxmox with ZFS. It is ready for enterprise use and can be easily backed up via external drives. There is even a Raspberry Port (https://github.com/pimox/pimox7), but I would never use a Raspberry to self-host again (not because it is not suitable or reliable, just because I need a little more power)

I use

  Fujitsu D3417-B1
  Xeon e3-1225v5
  32GB DDR4 ECC
  Samsung 980 Pro 2TB (with up-to-date firmware)
  Pico PSU 150w
and it is using 9.3W in Idle and about 12W running my daily services. It can even run a macOS VM for experimenting / software development, USB-Passthrough, Replication, etc. etc.

It is rock solid stable, not too power hungry, can run nearly ANYTHING and I never looked back.

houzi · 3 years ago
While I like Proxmox and have used it in a startup, I wouldn't recommend it for enterprise simply due to how flaky the Terraform integration was the last time I checked. Probably a year or two ago. Regardless, the Terraform integration was done in the typical open source fashion of a single developer, where I'd question the amount of resources put into getting the software past 80% completion. The company behind Proxmox does not seem to prioritize the enterprise market segment.

We ended up using the REST API for automated provision management and there are certainly warts. It's a far cry from being a turn-key solution, which I'd argue is preferred by a large enterprise.

It's great for click-ops if that's your use case, but that also wouldn't qualify as an enterprise use case.

houzi commented on Running systemd without systemd-journald   declassed.art/en/blog/202... · Posted by u/axy
qbasic_forever · 3 years ago
Do you have an example of when systemd is not used for good?
houzi · 3 years ago
It's quite annoying to not be able to use common tools for DNS queries like `dig`, when using `systemd-resolved` for DNS. I think you might have to sometimes flush the caching feature of `systemd-resolved` as well.

It's fine, I guess. But it did take a while to learn the new ways.

I think this is the main complaint from users with decades of experience. Their scripts and old knowledge stops working.

houzi commented on Making pip installs a little less slow   pythonspeed.com/articles/... · Posted by u/zdw
Galanwe · 3 years ago
The size of python packages is becoming an increasingly worrying issue.

A lot of maintainers don't pay attention to excluding test cases and artifacts from their packages, leading to ridiculous package size growth.

Last I checked numpy was close to 100MB, a huge chunk of that being test case artifacts.

Django packages all translations for all languages to ever exist.

Pandas bundles pre-built dynamic libraries with debug symbols.

Etc.

Most of my "production" virtualenvs are close to a GB nowadays, which is insane.

houzi · 3 years ago
This! Especially with pandas.

I did have a look at numpy and on my machine the tests did not bloat it as much as you made me believe. The `core/tests/` modules are 3MB and the `__pycache__` doubled it to 6MB. What do you refer to as "test case artifacts"? The modules, pycache, or both?

Also, wrt you statement on pandas; is it the debug symbols that account for the bloat, or the libs themselves?

houzi commented on This site is now a “shinobi website”   tdarb.org/posts/shinobi-w... · Posted by u/bradley_taunt
iforgotpassword · 3 years ago
Interesting idea to go full plaintext. Especially the commenting idea sounds wild.

While I'm generally all for minimalism and like reading plain text documents that follow some simple formatting scheme, the one thing that annoys me about it is links not being clickable, at least on mobile. I think on desktop there's actually a "visit url" Item in the right click menu, but no such thing on mobile (Firefox). You long-press the url, then it selects part of the it, manually fiddle with the markers left and right to get the full url selected, Copy, tap into address bar and paste. Is there a better way?

houzi · 3 years ago
You're consuming the content in a browser, when it's supposed to be consumed by an RSS reader.
houzi commented on This site is now a “shinobi website”   tdarb.org/posts/shinobi-w... · Posted by u/bradley_taunt
iamtedd · 3 years ago
Having no URLs clickable as hyperlinks is the literal antithesis of the web.
houzi · 3 years ago
You're consuming the content in a browser, when it's supposed to be consumed by an RSS reader.
houzi commented on How to Learn Nix   ianthehenry.com/posts/how... · Posted by u/brendanfalk
yewenjie · 3 years ago
My two-cents for learing Nix:

0. Give up the expectation of figuring it out quick

1. Read the official manual instead of tutorials

2. Read example configurations from public repos

houzi · 3 years ago
Wrt to 1), how often do you reckon a beginner is faced with:

> By default, `args` is a set of derivation names denoting derivations in the active Nix expression. These are realised, and the resulting output paths are installed.

?? - I think the author really hits the nail on the head with this point.

u/houzi

KarmaCake day49September 21, 2013View Original