Readit News logoReadit News
amcpu commented on Starship Flight 7   spacex.com/launches/missi... · Posted by u/chinathrow
s1artibartfast · a year ago
Doh!
amcpu · a year ago
Nuts!
amcpu commented on Monolith – CLI tool for saving complete web pages as a single HTML file   github.com/Y2Z/monolith... · Posted by u/iscream26
al_borland · 2 years ago
I use read-it-later type services a lot, and save more than I read. On many occasions I've gone back to finally read things and find that the pages no longer exist. I'm thinking moving to some kind of offline archival version would be a better option.
amcpu · 2 years ago
I use a locally hosted YaCy instance with cached results to work around this scenario. Much of the content I am interested in is kept locally, so it’s good enough. When I have a bunch of “read later” tabs that pile up, I copy all their URLs into the crawler form with “Store to Web Cache” checked and it accomplishes what I described. Just another option to consider.
amcpu commented on A lesson in dockerizing shell scripts   bhupesh.me/publishing-my-... · Posted by u/bhupesh
zdw · 2 years ago
Are "Random shell scripts from the internet" categorically worse than "random docker images from the internet"?

With the shell script, you can literally read it in an editor to make sure it isn't doing anything that weird. A single pass through shellcheck would likely tell you if it's doing anything that is too weird/wrong in terms of structure.

Auditing a docker container is way more difficult/complex.

"Dockerize all the things", especially in cases when the prereqs aren't too weird, seems like it wastes space, and also is harder to maintain - if any of the included components has a security patch, it's rebuild the container time...

amcpu · 2 years ago
The dive utility helps tremendously for exploring the filesystem contents of a container image. Combine that with the output of `docker inspect` to look at the metadata and you should be able to have a good understanding of what it will do when running as a container.
amcpu commented on Pinball Map: Crowd-sourced worldwide map of public pinball machines   pinballmap.com/... · Posted by u/technophiliac
busterarm · 2 years ago
Guided by the pinball map... The driver - still unknown to me
amcpu · 2 years ago
Came here to scan the comments for someone else who would have posted that reference. So glad I found it! :)
amcpu commented on WordPerfect for Unix character terminals   github.com/taviso/wpunix... · Posted by u/metadat
boffinAudio · 3 years ago
vim: select your text, press the ~ key until you get the case you want ..
amcpu · 3 years ago
You could also use the vim :%!python3 your_script.py (where your_script.py does the work to format the text) command that takes the text of the buffer as stdin to the script and replaces the buffer contents with stdout of the script. This can also be combined with visual mode linewise to only replace specific lines of the buffer (must work on entire lines selected).
amcpu commented on DRY is an over-rated programming principle?   gordonc.bearblog.dev/dry-... · Posted by u/gcassie
lowercased · 3 years ago
> People not able to factor out functions or structure their code in a readable way. Variables are called v1, v2, v3. Unit testing seen as a waste of time. CI seen as a fun toy. They lack the experience to even notice the difference.

Had a colleague work under a 'team lead'. Needed to take a form with variable amount of rows of input data - max 50 - and take data, parse it, and store it. Took 20-30 lines of code. Next day "I don't trust loops, these need to be unlooped". Really? This was all in writing and stated out loud in a meeting with witnesses, and everyone agreed. "Loops can be tricky - they don't always work like you think" (something like that). So a 30 line block of code with a loop around it became 1200+ lines with 'v1, v2, v3.... v50', with 'ifs' around each one to check if that row number was also submitted.

The code to generate the form was, of course, a loop that spat out holders for 50 rows. THAT was OK, because someone else's team wrote that a while back (really??) and ... it was already done and in production. The lead could not put their stamp on it.

Very very very weird. Having half a dozen other people all nod their head suggesting that a 30 line loop is fraught with danger, and the correct answer is copy/paste 50 times. Felt like gaslighting, to my recollection. Worked in same dept, just not on same project together, but enough of this was heard/pickedup across the dept.

And... my colleague and I aren't there any more, and to my knowledge, that team lead is still there.

amcpu · 3 years ago
Sounds like something out of https://blog.codinghorror.com ! :)
amcpu commented on Show HN: Bike – macOS Native Outliner   hogbaysoftware.com/bike/... · Posted by u/jessegrosjean
ubermonkey · 4 years ago
Well, you just did.

OrgMode relies on emacs, which is not exactly in the same class of software that this is. This is "one thing well" stuff. Emacs and OrgMode are pretty much the other side of the continuum.

amcpu · 4 years ago
I’ve been having good success with _basic_ outlining functionality of Org Mode in VS Code using the “VS Code Org Mode” extension. No need for emacs for this use case. The built-in VS Code folding works really well and then combining with GitLab which has rendering support for Org Mode when committing/pushing commits. Plus, since everything I’m doing is already in Org Mode syntax, I can move to other editors later if desired. It’s a good solution for my needs, at least.
amcpu commented on How many Linux commands can a 7 year old learn?   thejavaguy.org/posts/008-... · Posted by u/ivanche
0des · 4 years ago
recent distros or of all time?
amcpu · 4 years ago
Any, I was just curious. :)
amcpu commented on How many Linux commands can a 7 year old learn?   thejavaguy.org/posts/008-... · Posted by u/ivanche
bradleybuda · 4 years ago
If you want to teach a kid the command line, I highly recommend ‘sl’ as a first command - my two-year-old had never forgotten it: https://github.com/mtoyoda/sl
amcpu · 4 years ago
I honestly cannot remember ever typing sl instead of ls. Funny little “utility” in place there. It doesn’t appear to be part of a minimal Ubuntu installation, have you found it install “out of the box” with any Linux distros?
amcpu commented on Korn Meets KoRN   kornshell.com/fun/... · Posted by u/sgt
edmcnulty101 · 4 years ago
Eat corn while listening to Korn music while using the Korn shell.
amcpu · 4 years ago
> Eat corn while listening to Korn music while using the Korn shell. … to compile the kernel.

u/amcpu

KarmaCake day25October 21, 2013View Original