Threads for 3digitdev

  1. 6
    Extra Life Charity Marathon!

    You fellow gamers should all join in. 25h (DST) marathon of video games, all for children’s hospitals! This is my 11th year participating and it’s phenomenal every year. Spread the word!

    1. 4

      Back to work after 6 weeks of parental leave! Will be interesting to make that adjustment now…

      Home life is, naturally, all baby all the time right now.

      1. 1

        Ours just turned 8 weeks and I’ve been doing part time for the past 4. Doable, but I’m still not sure what will kill my sanity first: baby or the part time coding meetings

        1. 1

          Ours just turned 8 weeks as well! I definitely don’t regret staying away for that long either; It’s gonna be interesting integrating work back into my schedule, but I definitely recommend taking the time off to any new parent from now on…. Good luck with your baby! We’re in this together. o7

      1. 7

        Starting my parental leave! 6 weeks. Jeeze. I’ve never taken longer than 2 weeks off at a time from a job… I’m sure the baby will take up most of that time, but it’s still weird to think about. My brain is acting like it does when I leave a job for good right now 😅.

        So weekend will probably be baby and coming to grips with my new reality.

        1. 4

          Another new dad gave me the advice to not expect any projects to get done and to take as many pictures as possible. He was right on both counts.

          It’s a blur and you’re so glad you can jog the memory of those special times.

          1. 1

            I can fully believe both of those things! We have been taking innumerable pictures already, and I haven’t done much when she’s asleep other than also sleep, or play minecraft so I can pause at the drop of a hat to help her. Going to be very interesting to see how my brain handles these 6 weeks…

        1. 36

          Enjoying our new baby, she’s finally here! Her name is Freya and she’s a CHUNK. 9lb 2.5oz. Moms a champ. Still in hospital for recovery so just relaxing with her on my lap and enjoying life.

          1. 2

            Congratulations! Well done, Mom!

            1. 1

              Love the name.

              1. 2

                Thank you! My wife and I wanted something unique but not ridiculous, no misspelling of common names, something short, easy to spell/pronounce, and not easily warped into a mean nickname by other kids. We feel like we nailed that niche.

                1. 1

                  Freya made it into the top ten baby names in the UK a few years back. One of my friends named his daughter Freya, thinking it would be unusual. Unfortunately, Thor came out that year and a lot of people were interested in Norse names - Freya was the most popular.

            1. 7

              👶🏼 WEDNESDAY. 😱

              1. 23

                PREPPING FOR A BABY!!

                Sorry for that, just excited. 👶🏼 Baby is DUE tomorrow, but based on factors it’s unlikely to happen then. We have an inducement scheduled for Wednesday though, so come hell or high water, I’ll be a father next week!!

                …..still hasn’t sunk in.

                Oh right, and I also have work stuff but who tf cares about that amirite?

                1. 3

                  Just had my baby a few weeks ago! Congratulations! Its a hell of a time and the world gets a lot smaller real fast.

                  1. 2


                    Time to mold a mind! :D

                    1. 2

                      Congratulations. Enjoy every moment of it!

                      1. 1


                      1. 3

                        Home: Parents arrived for an extended stay to be around for when their first grandchild is born!!! 😊👶🏼

                        Work: Normal work week, diving into some new stuff and hopefully escaping a fourth straight week of writing nothing but Postgres triggers.

                        1. 5


                          • spending most evenings prepping our nursery for the new arrival 🤗👶🏼 The major furniture is in place and I have our new baby monitor system all connected and mounted. Now it’s just unpacking, organizing, and putting away the monumental amount of baby stuff we have from showers and my wife’s nesting instinct 😅
                          • Continue working on my first-ever start-to-finish electronics project; A watch-battery-powered, motion-activated LED nightlight strip to mount under the crib in the nursery so we can not have to use lights that run constantly. 3D printing the case right now designed myself. Every piece of this has been my own design and it’s been extremely satisfying to see this go from conception to finished product with zero help from anyone.
                          • new fridge getting delivered hopefully? They messed up the delivery the first time and just went to the wrong house and never called us about it. Had to call 3 different locations to finally find out they just gave up and left it in a warehouse and never bothered to say anything to anybody. I…don’t have high hopes for this next delivery either now.


                          • Day 4 in a row of doing nothing but writing Postgres triggers/functions. Hopefully an end in sight soon.
                          1. 1

                            So exciting! If this is your first, I can tell you it is the start of an amazing, magical journey.

                            Our baby didn’t sleep in the crib the first few years. We were too attached, and had her sleep in our bed.

                            The crib was used to store toys.

                          1. 4

                            Next ultrasound for our soon-to-be daughter is today – hopefully this time she doesn’t block her face with an arm and we can see her full face for the first time! (the “4D” ultrasounds are INCREDIBLE)

                            Other than that, starting a new training regimen for our dogs thanks to help from a professional trainer. Not bad dogs (all dogs are good dogs) but very stubborn and we want them to be more obedient the first time we say something rather than when they feel like it.

                            1. 3

                              First “real” week at my new job! Huge codebase to learn, and have to re-orient myself in Typescript after a few years of pure Python.

                              Looking forward to the challenge!

                              1. 1

                                Flying to Hawaii for a company retreat and my first week with the company for my new job! Helluva start to a new job, gonna be hard to top.

                                1. 7

                                  Just bought a drone on my friend’s recommendation (DJI Mini 2) in preparation for a trip to Hawaii in about a week.

                                  Going to spend my weekend with that friend, flying our drones and learning the ropes a bit more from him (I have some experience but he’s quite good at it).

                                  ….Provided it STOPS RAINING HERE

                                  1. 2

                                    10 years of python and I never knew about that last one! That could actually be really handy, thanks for the article!

                                    1. 5

                                      I just accepted a new job offer! I will be putting in my 2 weeks tomorrow morning.

                                      36% pay raise, more stable company, and bonus: my first day at the new job will be spent in HAWAII for a well-timed company meetup! I’m pretty stoked about it all.

                                      Sad to leave behind Python (my sweet prince) for Typescript, but excited to expand my horizons again!

                                      1. 1
                                        • Pokemon Legends: Arceus
                                        • Basic planning for re-doing our fire pit area with flatstone + brick
                                        • …Pokemon Legends: Arceus. It’s really fun, okay?!
                                        1. 2

                                          That’s a great tip! I personally just made a terminal alias so I can do jira 1234 and it opens but I am glad to see solutions for people who don’t live in the terminal! I might even add this so I can find one no matter where I am without switching applications.

                                          1. 6
                                            • on Saturday I will be live-streaming my wife and I as we find out the gender of our first child! So fucking excited!
                                            • celebrating my birthday on Saturday (along with the above!)
                                            • noobish carpentry: trying (and so far failing) to build a floating shelf. Oh well, such is the learning process. Just wish plywood wasn’t so damned expensive right now haha
                                            • if I manage to get a shelf done, I’m gonna finally be able to set up my projector and then I can spend my remaining time (and most of the next month) playing Elden Ring and Horizon Forbidden West on the giant new projector setup!
                                            1. 1

                                              Update: The second attempt shelf is looking much better! Thank god…

                                              1. 1

                                                celebrating my birthday on Saturday (along with the above!)

                                                Parabens/happy birthday!

                                              1. 1

                                                Not super interesting I reckon. But the ones I use the most.

                                                ..='cd ..'
                                                ip='ip -br -c'
                                                home='git --work-tree=/home/fox --git-dir=/home/fox/.config/home.git'
                                                i3conf='vim ~/.config/i3/config'
                                                zshrc='vim ~/.config/zsh/.zshrc && source ~/.config/zsh/.zshrc'|

                                                I don’t really have a lot of super useful aliases. Most of the time is spent making git config aliases and vim stuff.

                                                1. 1

                                                  Is that BSD or a mac? My ip doesn’t know either flag.

                                                  1. 2

                                                    That is iproute2. The goal is to have ip be brief by default because I simply do not care about all the information.

                                                    λ ~ » /usr/bin/ip a
                                                    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
                                                        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
                                                        inet scope host lo
                                                           valid_lft forever preferred_lft forever
                                                        inet6 ::1/128 scope host
                                                           valid_lft forever preferred_lft forever
                                                    2: wlp0s20f3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
                                                        link/ether 10:3d:1c:e9:f5:cf brd ff:ff:ff:ff:ff:ff
                                                        inet brd scope global dynamic noprefixroute wlp0s20f3
                                                           valid_lft 78751sec preferred_lft 78751sec
                                                        inet6 fe80::9f2c:5a98:d8ef:b06e/64 scope link noprefixroute
                                                           valid_lft forever preferred_lft forever
                                                    3: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
                                                        link/ether 90:2e:16:5e:1a:b5 brd ff:ff:ff:ff:ff:ff
                                                    14: enp36s0u1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
                                                        link/ether 00:50:b6:9f:fe:25 brd ff:ff:ff:ff:ff:ff
                                                    λ ~ » ip a
                                                    lo               UNKNOWN ::1/128
                                                    wlp0s20f3        UP    fe80::9f2c:5a98:d8ef:b06e/64
                                                    enp0s31f6        DOWN
                                                    enp36s0u1        DOWN
                                                    1. 1

                                                      Thanks, but that’s why I was asking:

                                                      ii  iproute2                              5.5.0-1ubuntu1

                                                      ip -br doesn’t work and neither does ip -c or ip -br -c.

                                                      And now I finally grasped that it would output the same as 'ip' - so it is -brief -color. Sorry, brainfart (ofc I searched before I asked that last question..) :P

                                                      Apparently I have never used either flag and didn’t notice them in the manual. – signed, someone gowing up with ifconfig

                                                      1. 1

                                                        Yeah I found the documentation for these commands a bit lacking when I started utilizing them initially.

                                                  2. 1

                                                    ..='cd ..'

                                                    I was going to post this as my most useful, because I just it all the time.

                                                    I also have ...="cd ../.." and so on for going up more levels. Probably not useful beyond four or five levels due to how quickly can you count how deep you are in the CWD.

                                                    Edit: Just to be clear, I’m talking about me visually counting up how many levels deep I am in the directory tree. Beyond three or four, I tend to just go up that much, and then look and see where I am and maybe do it again, with my finger hovering over the ‘.’ key. I don’t have a problem rapidly tapping out the ‘.’ nine times to go up 8 levels, the difficulty (for me) is determining that I want to go up 8, vs. 7 or 9 levels.

                                                    1. 1

                                                      Don’t want to keep posting it so I’ll link to the reply i made to the parent:


                                                      You might like to use it too!

                                                    2. 1

                                                      You (and others) might be interested in the one from my post to this:

                                                      function up() {
                                                        local d=""
                                                        for ((i=1 ; i <= limit ; i++))
                                                        d=$(echo $d | sed 's/^\///')
                                                        if [ -z "$d" ]; then
                                                        cd $d

                                                      Allows you to just do up 4 to get cd ../../../..


                                                      1. 2

                                                        Even more fun (only works in zsh, as far as I know):

                                                        function rationalize-dot {
                                                            if [[ $LBUFFER = *... ]]; then
                                                         zle -N rationalize-dot
                                                         bindkey . rationalize-dot

                                                        You can make this even better by adding setopt auto_cd to your config, so that if you type a directory path zsh automatically changes to that directory.

                                                        1. 1

                                                          I tend to use for smart CDing, personally!

                                                        2. 2
                                                          alias .="cd .."
                                                          alias ..="cd ../.."
                                                          alias ...="cd ../../.."
                                                          alias ....="cd ../../../.."
                                                          1. 1

                                                            Interesting. I’ve never tried to install / use those “smart” cd replacements, where you can type “cd foobar” and it looks at your recent working directories to find a “foobar” and go there.

                                                            I was thinking about a variant of your up function that does something like that, where I can type “up foo” in the current directory:


                                                            And so it just looks into successive parent directories for anything matching “foo”, and the first one it finds is the destination.

                                                            1. 2

                                                              oh man – just use Autojump I use it on every machine i own and it’s a GODSEND.

                                                              1. 1

                                                                That was what I was talking about. I’ll have to give it or maybe zoxide a try and see if I stick with it.

                                                        1. 3

                                                          Aliases I always add:

                                                          alias ..='cd ..'
                                                          alias new='mkdir && cd'
                                                            1. 3

                                                              I make k a function which inspects the args and splices in $KUBE_CONTEXT and $KUBE_NAMESPACE in appropriate places, so that I can use .envrc and direnv(1) to work in the appropriate kubernetes context and namespace for a given app.

                                                              1. 2

                                                                God yes. When people see I have that they chuckle, and then after maybe 10 minutes of working in k8s with them, they immediately make the alias too.