• 0 Posts
  • 24 Comments
Joined 1 year ago
cake
Cake day: July 4th, 2023

help-circle







  • bastian_5@sh.itjust.workstoWholeSomeMemes@lemmy.mlGood job
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    1 year ago

    They don’t know they’re getting someone in trouble, they just know that if they act a certain way when they smell something, they get a treat. That’s why this tweet is horrifying, because they’re training the dog to do that when they smell pizza, which means that you get to be searched because you smell vaguely of pizza.

    Also cats can be trained to do the same thing. They just like dogs more because they’re easier to find/notice if they wander off a little bit, and can bite people.






  • Depends on if you’re using lossless or lossy compression. Lossless compression will usually make it bigger, because it relies entirely on data being formatted so their are common patterns or elements that can be described with fewer parts. Like, an ok compression algorithm for a book written in English and stored as Unicode would be to convert it to ASCII and have a thing that will denote Unicode if there happens to be anything that can’t convert. An encrypted version of that book would look indestinguishable from random characters, so compressing it at that point would just put that Unicode denoter before every single character, making the book end up taking more space.



  • And the fact that it can grow data means you should really put a test to make sure that the compressed data is actually smaller… I once had something refuse to allow me to upload a file that was well below their 8Mb file limit while it was claiming it was above the limit, and I’m assuming it was because they were testing the size after compression and that file grew from 6Mb to above the limit.