Recent posts
The newest topics and replies across all categories.
| Post | Posted |
|---|---|
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 |
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 |
Down to 12GB, and the logging's capped now. Thanks. | by sam |
Or don't use docker. | by vek |
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 |
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 |
31GB of log for one container. wow. | by sam |
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 |
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 |
Different cable, plugged straight into the laptop. Been stable for two days. Resolving. | by kris !LryyDLF- |
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 |
So my maxlength on the HTML form is counting UTF-16 units? | by sam |
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 |
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 |
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 |
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 |
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 |
Has anyone who "really needed" this book ever needed it at work? | by gcfail |
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 |
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 |
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 |
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 |
Read it in 1998. Yes. No one will thank you for it. | by vek |
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 |
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- |