Progrider

Programming discussion

Recent posts

The newest topics and replies across all categories.

PostPosted
Help · post #2

Nearly always permissions. On the server: chmod go-w ~ chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys sshd ignores the file if your home directory is group-writable. ssh -v on your side will show w…


by oldpc
Help · post #1

Trying to log in to the school's little server. I used ssh-copy-id, and it said one key added. It still asks me for a password every time.


by bea
Help · post #7

Down to 12GB, and the logging's capped now. Thanks.


by sam
Help · post #6

Or don't use docker.


by vek
Help · post #5

docker system prune -a removes all images not used by a running container. Leave out --volumes unless you've read what that does. People have lost databases.


by lintroller !-TjZOnKc
Help · post #4

daemon.json: { "log-driver": "json-file", "log-opts": { "max-size": "10m", "max-file": "3" } } Only applies to containers created after you restart the daemon, so recreate them. For now truncate -s 0 …


by rproxy
Help · post #3

31GB of log for one container. wow.


by sam
Help · post #2

docker system df -v to see the breakdown. Usual suspects are old images from rebuilds, build cache, and container logs. The logs are in /var/lib/docker/containers//-json.log and by default they grow f…


by rproxy
Help · post #1

VPS started failing writes. du says most of it is /var/lib/docker. I only have four containers! How do I find out what it is and what's safe to delete?


by sam
Help · post #3

Different cable, plugged straight into the laptop. Been stable for two days. Resolving.


by kris !LryyDLF-
Findings · post #4

Yes. maxlength and JS length both. For most text you'd never notice. It's names, and anyone using emoji, that hit it.


by ines
Findings · post #3

So my maxlength on the HTML form is counting UTF-16 units?


by sam
Findings · post #2

Rust's s.len() is bytes, chars().count() is code points, and graphemes need a crate. At least it's obvious you're choosing.


by ferrous
General · post #3

Same. Navidrome on the home server pointed at the folder, phone syncs a subset. Cover art I gave up on and let the server fetch it.


by Anonymous
Findings · post #1

Third bug report this year from a form that "limits names to 20 characters". 'é'.length is 2 in JS (e + combining accent), while 'é' typed as one code point is 1. They look identical. Most emoji are …


by ines
General · post #6

there's #lang sicp in racket if you don't want to install a scheme. and a javascript edition, which i will not comment on


by Anonymous
Handoffs · post #2

Trim before the comment, I'd say. Otherwise key=value ; note leaves trailing space on the value and someone will compare it. Quoted values can come later.


by jf
General · post #5

Has anyone who "really needed" this book ever needed it at work?


by gcfail
Findings · post #2

The run subcommand is the part people miss. Any script that exits non-zero on bad works, doesn't have to be the test suite.


by jf
Findings · post #3

The same holds in Postgres. And on either one, if the query selects only columns that are in the index, you can skip the table entirely. Bonus speedup that people miss.


by marta_k !izYA-5cv
General · post #4

You could get the fact that it isn't magic. I don't think you get the feeling that a program is something you can pull apart.


by carcdr
General · post #3

Worked through most of it. The value for me was seeing that an interpreter isn't magic. You could get that from a shorter book, like Crafting Interpreters, and it would be more directly useful.


by ferrous
General · post #2

Read it in 1998. Yes. No one will thank you for it.


by vek
Findings · post #1

Tests started failing somewhere in the last ~60 commits. Instead of checking out commits by hand: git bisect start git bisect bad HEAD git bisect good v0.4.2 git bisect run npm test Seven steps, found…


by Anonymous
General · post #2

Still do. Compilations go in a "Various" folder with the album name, and I set the album artist tag so players group them. Beets can do the sorting for you if the tags are mostly right.


by kris !LryyDLF-
All times shown in UTC.