Web Developer by day, and aspiring Swift developer at night.

  • 1 Post
  • 66 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle





  • dohpaz42@lemmy.worldtoLinux@lemmy.mlThis $149 RISC-V Tablet Runs Ubuntu 24.04
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    2
    ·
    edit-2
    23 days ago

    The ram options available for this tablet are better than what the iPad had when it first came out, and are pretty on par with more modern versions. Source

    The idea of using a tablet as a computer is not exactly a selling point for me. What id love to see is an app market space for tablets like this. Something that competes with Apple and Google; especially if it had a focus on home automation and security. Gaming would be a close second.


  • dohpaz42@lemmy.worldtoADHD memes@lemmy.dbzer0.comEXPLAIN
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 month ago

    I’ve found that instead of trying to “clear my mind”, that picking an image and focusing on just that image helps achieve a similar state. For me, I picture myself sitting in a chair in the middle of a dark, empty room. Whenever I realize my mind is wandering, I go back to concentrating on me sitting in that room.


  • dohpaz42@lemmy.worldtoProgrammer Humor@programming.devJSON Query Language
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    1
    ·
    2 months ago

    It’s normal to denormalize data in a relational database. Having a lot of joins can be expensive and non-performant. So it makes sense to use a common structure like JSON for storing the demoralized data. It’s concise, and still human readable and human writable.

    Why should I spin up a NoSQL solution when 99% of my data is relational?



  • Spending money on projects you either won’t ever do, or you won’t start for at least a year, so the materials sit around collecting dust.

    Fun fact: I once was going to build this kick-ass workbench/cabinet for my garage. I bought the cabinet-grade plywood and lean backing, as well as the very expensive soft-closing drawer slides. That was probably 5 years ago, I think? I still haven’t opened the UPS package of drawer slides.



  • dohpaz42@lemmy.worldtoProgrammer Humor@programming.devWhich one???
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    1
    ·
    2 months ago

    So, assuming bash is your shell, the ~/.bash_profile is executed for login shells for the user logging in.

    ~/.bashrc is the initialization script for when starting a bash session (for the current user).

    In my experience, the ~/.bashrc will also execute ~/.bash_profile if it exists. So you can use either.




  • I think it’s kind of okay to commit credentials and configuration used for the local dev environment (and ONLY the local one).

    No. Never.

    E.g. when you require some infrastructure like a database inside a container for your app. Not every dev wants to manually set a few dozen configuration entries when they quickly want to checkout and run the app

    In this situation, it would be better to write a simple script that can generate fresh and unique values for the dev.

    Laziness is not an excuse.