• 2 Posts
  • 34 Comments
Joined 8 个月前
cake
Cake day: 2026年2月15日

help-circle


  • BiscuityCat@lemmy.worldtomemes@lemmy.world•Expressions
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    3 天前

    You are right. It is just removal of the bracketed text. The input is multi-line string, so only flag used was the multi-line mode.

    These are string lines I have encountered and how I wanted to change them:

    1. "[...]"               -> ""
    2. "-[...]"              -> ""
    3. "-[...] text"         -> "-text"
    4. "-text [...]"         -> "-text"
    5. "[...] text [...]"    -> "text"
    6. "-[...] text [...]"   -> "-text"
    

    The main point is that I needed to remove the dash only if there is no other text on the line.

    I have tried the regex you are suggesting at the beginning, but it failed at points (3) and (6).

    EDIT: It just occurred to me that the first line of my comment sounds like stupid AI. 🤦




  • That’s why I hate banking apps. It’s 5-factor authentication for me and it’s seriously annoying.

    The factors for logging into the internet banking are:

    1. Having a password manager - Something I have
    2. Remembering a master password - Something I know
    3. Having a banking app on the phone (🤮) - Something I have
    4. Using a password to log in to a user that has the app installed (I have a GrapheneOS and the banking app requires Gurgle services, so the services and apps must be separated) - Something I know
    5. Using a PIN inside the banking app to confirm the login - Something I know





  • I have written my CV in HTML, CSS, little bit of JavaScript and handlebars.js library (single JS file). I have all the texts inside JSON files (one file per language). I can switch between languages simply by changing a variable and refreshing the page.

    When I need to update the CV, I just change the text and print the CV as a webpage into a PDF using an Ungoogled Chrome (Firefox has a bug that causes the page to print in a slightly wrong size).

    It may be overkill for some, but for me it was easier to properly style the page using a CSS than using Writer/Word.



  • I’m still scared every time I have to update something, so I try to avoid updates if possible.

    Most of the time when I had to update Windows or some software, something would break (and no previous bug would be fixed) and I would have to spend a whole day trying to fix the stupid issue.

    TBH, I don’t even remember if an update ever fixed something for me (but it probably happened at least once).