Skip to main content






To my parents’ generation, finding the best deal to a fault was something to brag about.

Funny how finding the worst deal (luxury goods, luxury vehicles, fads/trends, etc.) is what’s "in" today. :/



"Using a 4,000 pound box to move a 200 pound man is never going to be efficient." — FortNine








Having to make heavy use of complicated multiprocessing libraries because of the #GIL is peak #Python. :(

Tech Cyborg reshared this.




This apparently doesn't work correctly. When I tried it, a bunch of log lines were duplicated. 😞

class LzmaFileHandler(FileHandler):
    def _open(self) -> IO[str]:
        return lzma.open(
            self.baseFilename,
            self.mode,
            encoding=self.encoding,
            errors=self.errors,
        )

I had to switch it to this to get it to work:
class CompressionAlgorithm(Enum):
    lzma = "lzma"
    gzip = "gzip"
    bzip2 = "bzip2"


def _compressed_handler(
    opener: Callable[[Path, str], IO[str]],
    filename: Path,
    mode: str = "at",
) -> logging.Handler:
    stream = opener(filename, "at")
    stream.reconfigure(write_through=True)
    atexit.register(stream.close)
    return StreamHandler(stream)
 
 
COMPRESSION_HANDLERS: Mapping[CompressionAlgorithm, Callable[[Path, str], logging.Handler]] = {
    CompressionAlgorithm.lzma: partial(_compressed_handler, lzma.open),
    CompressionAlgorithm.gzip: partial(_compressed_handler, gzip.open),
    CompressionAlgorithm.bzip2: partial(_compressed_handler, bz2.open),
}

Also, lzma buffers a ton in memory before writing, so it didn't really work for my purpose. Even bz2 didn't work, so I had to use gzip. 🙃

#Python

Tech Cyborg reshared this.















So tired of feeling overwhelmed by life. :'(





It's kind of wild how much mental clarity I get just by putting in earplugs. :P








People are angry at Gen Z taking photos of airport trays. Here’s what’s really going on


No sooner have airports introduced new scanning machines so you don’t need to unpack your carry-on bags, than a trend emerges where you photograph all your loose items in your airport security tray.

The “airport tray aesthetic” has taken off on TikTok, Instagram and Pinterest as people share artfully arranged shots of their sunglasses, shoes, toiletries and reading material inside the regulation polypropylene dishes.

Don’t expect crumpled plastic bags stuffed with toothpaste and Pepto-Bismol. This is aspirational travel, where your 35mm film camera nestles between your vintage loafers and your first-edition copy of “On the Road.”


#CNN #News #travel #GenZ #airport #airline #flight #aviation




Anyone else really like major key conversions of songs that were originally in a minor key? :3 #music

https://youtu.be/CZOTnQgr0RY