• 4 Posts
  • 122 Comments
Joined 2 years ago
cake
Cake day: January 25th, 2024

help-circle


  • I recommend you gnu parallel. It does similar things, but runs the commands in parallel. And it’s way easier to pipe than xargs. If you really need it to run one command at a time you can give number of cores to 1. And it also has progress bars, colors to differentiate stdout fo different commands, etc.

    Basic example: to echo each line

    parallel echo < somefile.txt

    To download all links, number of jobs 4, show progress

    parallel -j 4 --bar ''curl -O" < links.txt

    You can do lot more stuffs with inputs, like placing them wherever with {}, numbers ({1} is first) that allow multiple unique arguments, transformers like remove extension, remove parent path, etc. worth learning





  • Now I’m thinking why don’t we make an image editor that we can customize the simple UI. Like users choose which sliders and tools to put on the ui, it’ll be simple UI with like just 5-10 buttons/sliders/tools, but you van customize it to have basically anything. That way you can simply drag drop tools make new UI and then use it for specific use cases.

    Maybe already existing tools have that options. Or maybe we need to make a new one, in that case, it’d be nice if we could just add all different tools in dlls or sth, so that you can only download/keep the tools you use.





  • I haven’t really gone full typst on notes. But honestly my notes are mostly just texts, so it doesn’t really matter what I’m writing it in. I should be able to get it to typst with a few find and replace for old one. Math will be easier in typst, so I’m at least writing the new notes in typst when I need those.

    But I think for future notes I’ll do typst, specially if I have to share those notes it’s easier to send PDFs. Many of my colleagues get confused if I send markdown, so I had to export them to pdf for sharing anyway.







  • I had an idea I wonder if the energy thing can be salvaged. Like uranium to lead happens naturally and the energy is too little from a single atom. But we don’t have to do things naturally. If I’m controlling the atom itself, maybe I can just split all protons and neutrons from the uranium at once, then I have a bunch of free particles that can go collide with other atoms and start a chain reaction.

    I think most powers, even with limitations, probably is going to be useful once we know the clear limits. Maybe not the one that need so much energy and the results are random so you can fail and not be able to try again.