• 4 Posts
  • 212 Comments
Joined 19 days ago
cake
Cake day: September 14th, 2025

help-circle





  • If it’s cooler outside than in, then in general opening the windows and having the AC on will cool things off faster than just one or the other.

    Caveats might include the AC output being near a window and it being cooler inside near the window, or humidity. But absent that, sure, both will cool it down faster.

    Once the inside temperature drops below outside, though, probably want to close the windows or turn off the AC.

    I’d also add that if your AC has a ventilation-only mode that can pull outside air in — a window unit or ducted unit probably does, split mini won’t, portable may not — that’ll help cool the inside and be more energy-efficient than running the compressor, if you don’t care about getting inside colder than ambient temperatures. Might also consider putting a box fan in a window or two, which could also drastically increase air turnover rate.

    I live in a pretty comfortable climate and normally always have an open window and a small fan near the ceiling blowing air out the window, to have more airflow than would normally be the case with purely-passive ventilation.

    If you’re in an environment that doesn’t get much humidity — the Southwest in the US is a good example — you might also consider an evaporative cooler, which won’t give you the potential very cold temperatures of an air conditioner (given enough power), but will cool things below ambient temperatures without needing much power.



  • slow

    rsync is pretty fast, frankly. Once it’s run once, if you have -a or -t passed, it’ll synchronize mtimes. If the modification time and filesize matches, by default, rsync won’t look at a file further, so subsequent runs will be pretty fast. You can’t really beat that for speed unless you have some sort of monitoring system in place (like, filesystem-level support for identifying modifications).



  • sed can do a bunch of things, but I overwhelmingly use it for a single operation in a pipeline: the s// operation. I think that that’s worth knowing.

    sed 's/foo/bar/'  
    

    will replace all the first text in each line matching the regex “foo” with “bar”.

    That’ll already handle a lot of cases, but a few other helpful sub-uses:

    sed 's/foo/bar/g'  
    

    will replace all text matching regex “foo” with “bar”, even if there are more than one per line

    sed 's/\([0-9a-f]*\)/0x\1/g  
    

    will take the text inside the backslash-escaped parens and put that matched text back in the replacement text, where one has ‘\1’. In the above example, that’s finding all hexadecimal strings and prefixing them with ‘0x’

    If you want to match a literal “/”, the easiest way to do it is to just use a different separator; if you use something other than a “/” as separator after the “s”, sed will expect that later in the expression too, like this:

    sed 's%/%SLASH%g  
    

    will replace all instances of a “/” in the text with “SLASH”.


  • I would generally argue that rsync is not a backup solution.

    Yeah, if you want to use rsync specifically for backups, you’re probably better-off using something like rdiff-backup, which makes use of rsync to generate backups and store them efficiently, and drive it from something like backupninja, which will run the task periodically and notify you if it fails.

    rsync: one-way synchronization

    unison: bidirectional synchronization

    git: synchronization of text files with good interactive merging.

    rdiff-backup: rsync-based backups. I used to use this and moved to restic, as the backupninja target for rdiff-backup has kind of fallen into disrepair.

    That doesn’t mean “don’t use rsync”. I mean, rsync’s a fine tool. It’s just…not really a backup program on its own.




  • tal@olio.cafetoSelfhosted@lemmy.worldhow do I find process that leads to oom?
    link
    fedilink
    English
    arrow-up
    19
    arrow-down
    1
    ·
    edit-2
    2 days ago

    OOMs happen because your system is out of memory.

    You asked how to know which process is responsible. There is no correct answer to which process is “wrong” in using more memory — all one can say is that processes are in aggregate asking for too much memory. The kernel tries to “blame” a process and will kill it, as you’ve seen, to let your system continue to function, but ultimately, you may know better than it which is acting in a way you don’t want.

    It should log something to the kernel log when it OOM kills something.

    It may be that you simply don’t have enough memory to do what you want to do. You could take a glance in top (sort by memory usage with shift-M). You might be able to get by by adding more paging (swap) space. You can do this with a paging file if it’s problematic to create a paging partition.

    EDIT: I don’t know if there’s a way to get a dump of processes that are using memory at exactly the instant of the OOM, but if you want to get an idea of what memory usage looks at at that time, you can certainly do something like leave a top -o %MEM -b >log.txt process running to get a snapshot every two seconds of process memory use. top will print a timestamp at the top of each entry, and between the timestamped OOM entry in the kernel log and the timestamped dump, you should be able to look at what’s using memory.

    There are also various other packages for logging resource usage that provide less information, but also don’t use so much space, if you want to view historical resource usage. sysstat is what I usually use, with the sar command to view logged data, though that’s very elderly. Things like that won’t dump a list of all processes, but they will let you know if, over a given period of time, a server is running low on available memory.


  • tal@olio.cafetoTechnology@lemmy.world60hz Displays are a slideshow
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    2 days ago

    I’m the other way. I’d rather have battery life on cell phones, and turn the refresh rate down.

    On a desktop, where the power usage is basically irrelevant, then sure, I’ll crank the refresh rate way up. One of the most-immediately-noticeable things is the mouse pointer, and that doesn’t exist on touch interfaces.




  • tal@olio.cafetopics@lemmy.world...
    link
    fedilink
    English
    arrow-up
    83
    ·
    edit-2
    2 days ago

    Note that this is Jane Goodall (a famous researcher on chimpanzees, who studied a troupe in Africa for some time). Relevant:

    https://files.catbox.moe/1h368p.jpg

    This sparked a controversy:

    https://www.cbr.com/far-side-jane-goodall-gary-larson-feud/

    Okay, in August 1987, Larson did a strip where the punchline involved Goodall. The strip drew the following letter to the editor at the Arizona Daily Star…

    To the editor:

    I was appalled when I saw Gary Larson’s “The Far Side” cartoon in the Star Aug. 26. This was of two Larson animals - presumably chimpanzees - in a tree. One, which was evidently supposed to be the female, was picking a long hair from the other’s shoulder. The caption read: “Well, well - another blond hair…Conducting a little more ‘research’ with that Jane Goodall tramp?”

    To refer to Dr. Goodall as a tramp is inexcusable - even by a self-described “loony” as Larson. The cartoon was incredibly offensive and in such poor taste that readers might well question the editorial judgment of running such an atrocity in a newspaper that reputes to be supplying the news to persons with a better than average intelligence. The cartoon and its message were absolutely stupid.

    Dr. Goodall is a world-renowned scientist who has devoted 28 years of her life to studying chimpanzees in the wild. Her findings have caused the scientific world to redefine the meaning of the word “mankind” with her discoveries that include the erroneous presumption that man was the only primate to make and use tools, a distinction that - until her findings disproved it - been a measure of superiority of human beings over other primates.

    With no alignment to any animal welfare group, Dr. Goodall is working very hard to instigate better treatment of chimpanzees in biomedical laboratories. Dr. Goodall has vowed to speak out for those animals that cannot speak for themselves.

    “Tramp?” Hardly.

    The irresponsibility of the Star in choosing to run such an obscenity is disgusting. In fact, any woman should be insulted by the reference that the female - in this case, a typical Larson eyeglass-wearing animal - would be unaware of what Dr. Goodall’s research really is, its seriousness and the assumption that a female only would have the mentality to look for sexual implications.

    Sue Engel

    Executive Director

    The Jane Goodall Institute

    Yikes, so I guess Larson really offended Goodall, huh? Well, not so fast…

    Goodall hadn’t actually seen the strip herself, and when she DID see it, she thought it was funny. She didn’t think it was ACTUALLY calling her a tramp (and that’s clearly not the implication of the strip). She would later write an introduction to one of Larson’s Far Side collections.

    Going further, she even licensed the strip for shirts that were sold at The Jane Goodall Institute for years!

    EDIT: Ah, I just discovered that someone else just posted this in another post on [email protected], and I assume that merde — being merde — probably posted this image in response, so I’m probably working backwards here, but I’ll leave it up.


  • Not what you’re asking, but I can probably do better.

    I’d give decent odds that the issue you’re hitting is the thing that many Fediverse instances are hitting. There have been a lot of badly-written and very aggressive scraper-bots hammering servers all over (the Web, not just the Threadiverse) to try to find text to train AI models. If you’ve seen discussion on Anubis recently, that was aimed at trying to mitigate the load from that.

    Many instances dealt with this by disallowing anonymous access. This sucks, because it’d be nice to let people use an instance without logging in, but it did apparently drastically reduce the bot load.

    You can probably just pick an instance that doesn’t provide for anonymous access.