Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)TR
Posts
2
Comments
429
Joined
2 yr. ago

  • Born & raised in the US, lived in Poland for the past several years. Speak a good bit of polish, enough to navigate most interactions with strangers but not enough for deep conversations with the father-in-law.

  • I have 113k images going back two decades. The screenshot above doesn't include RAW files, with those included I'm around 2 terabytes of total storage.

    • Immich is in fact a photo album, and a damn good one at that.
    • Immich keeps google's grubby paws off my photos. I don't need or want anyone datamining every precious memory I have in order to modify my behavior to their benefit.
    • Immich shares photos between my wife and my phones.
    • Immich ensures that if I lose my phone, my photos aren't lost.
    • Immich lets me easily re edit and re-export RAW files without creating duplicates or losing metadata
    • Immich lets me conveniently share photos with friends and family without requiring them to have an account anywhere.

    Mostly I self-host things when I want data synchronized between multiple devices, or I don't want to lose it in the event I lose the device it was created on.

    Also, like, phone screens are tiny and typing on them is terrible? Why would you want to do everything on your phone?

  • This is a bit of a big ask and maybe something that needs to be done in lemmy core, but I’d love it if posts of the same image/link posted around the same time were consolidated into one item in the feed.

  • Grim, slurp, tesseract, and apparently the deepl SDK for Ruby? That was an interesting choice, younger me.

     bash
        
    #! /bin/zsh
    # Select an area of the screen, Screenhot, OCR, and translate it to english.
    
    temp_image=$(mktemp --suffix '.png')
    grim -g "$(slurp)" "$temp_image"
    
    # DPI of 120 seems to work OK for screenshots.
    source_text=$(tesseract "$temp_image" - --dpi 120 -l pol+deu) 
    
    translated_text=$(~/scripts/translate "$source_text")
    
    wl-copy $translated_text
    
    notify-send 'Translation: ' "$translated_text" --expire-time=60000 --category 'translation'
    
    rm $temp_image
    
      

    Translate script:

     ruby
        
    #! /bin/ruby
    require_relative 'deepl_request'
    
    puts Translator::DeeplRequest
           .new(ARGV.join ' ')
           .translation
    
      

    This script is a bit hacky and one-off, I wouln't just copy-paste it.

    • super+u shows a wofi menu allowing me to fuzzy find a credential from my password manager and copy its username
    • super+p same thing but for passwords
    • super+o same thing but for TOTP codes
    • super+t allows me to select an area of the screen, take a screenshot, run it through OCR, translate it to English via the deepl API, and then pop up the result as a desktop notification and also copy it to the clipboard. (I’m not fluent in the language of the country I live in)
    • ”lock” and „request” based suspend management, so my backup scripts or other long running jobs can keep the computer from sleeping until they are done.
  • I’ve tried to use that NonEmptyArray type in the past and it was a real pain in the ass getting the type checker to believe that no, for realsies this array is not empty I just checked the length two lines ago. Is there some trick I don’t know or has it gotten smarter about that in recent updates?