A cranky biologist who means well. My hobbies include long walks off short piers and anything science related.

  • 0 Posts
  • 44 Comments
Joined 1 year ago
cake
Cake day: June 25th, 2023

help-circle
  • Cloning, once you have done it once, is a dead simple process, relatively. Figuring it out the first time was hard, but since Dolly (the first cloned sheep, born at University of Idaho) there have been high levels of publication on sheep cloning specifically.

    Anymore, anyone who can parse reasonably complex instructions and has access to the kind of facilities any large animal vet might have could do this. It takes more money than I personally command but an even slightly well off person could afford it.


  • Back when Perl was the language of choice for bioinformatics, I found a huge performance boost pre-processing large (~1Tb) text files using built in unix tools like sed and awk with regex. So while it might take me a full hour to peck out the correct incantation, the task would then run in an hour, compared to four hours or more for the same task using Perl.

    So many pipes…


  • meyotch@slrpnk.nettoMemes@lemmy.mlEven paper glows
    link
    fedilink
    arrow-up
    2
    ·
    6 months ago

    Whew, thanks for not being a knee-jerk about my ‘mental prosthetic’! It takes real skill and understanding, I think, to even write the pseudocode or plain language description of a working script. After all, describing the problem and the outline of the solution is usually the hardest part. Pecking out the syntax takes the bulk of the time, but if you can avoid that step, what is lost? Very little in my experience.

    I’ve begun collecting an assortment of custom python and shell script utilities to accomplish routine or one-off tasks for which system utilities don’t exist. You bet you are still learning when doing it this way. After all, you have to understand the code well enough to tell if the output is what you need.


  • meyotch@slrpnk.nettoMemes@lemmy.mlEven paper glows
    link
    fedilink
    arrow-up
    2
    ·
    6 months ago

    I agree.

    Does it count if one uses an LLM to help compose the shell script? I mean, I can and have written gnarly scripts by hand but it can take half an hour to work out a single line sometimes for a simple task versus 10 minutes describing it in plain language.

















  • meyotch@slrpnk.nettoLinux@lemmy.mlSystemd timer unit
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 months ago

    Your systemd file looks ok, but I think it’s doing exactly what you are telling it.

    The solution may lie in the backup.service. Is that code you can modify? The OnCalendar=weekly doesn’t specify when in the week the service should run so that config may be vague.

    If I understand the desired function here, you will need the service up all the time. It will just wait politely and occasionally run the specific backup script. It’s up to the backup script to determine when the last backup was made and either exit early because it hasn’t been a week or run the backup and reset a flag file.

    At least that’s the approach I would take. Systemd is a very vigilant, but very stupid, service manager. It just watches and triggers services based on just a few criteria. Any logic more complex needs to go in the service itself.