News for hackers. Stuff that matters.

fleekonpoint

Re:Thoughts on Mechanical Keyboards and the ZSA Moonlander on Saturday September 27, 2025 @02:20AM (#45393568)
Not sure if the author is reading these comments but if you like the Moonlander but don’t like how the thumb cluster is tied to the tenting angle, I strongly recommend their ZSA tenting solution. It makes the whole thing a lot sturdier but more importantly it lets you adjust the tenting angle independently from the thumb cluster angle. You can also probably find used ones online.

I know you mention it already in the article but it is really worth trying out. You even get more tenting angles that would previously be impossible without it. And it just makes the whole thing a lot sturdier.

Re:The past, present, and future of UI at GitHub on Friday January 24, 2025 @10:16PM (#42819138)
Even using the AWS Console on a 13in screen is painful
Re:My Struggle with Doom Scrolling on Wednesday January 22, 2025 @12:24PM (#42795214)
I used to do this with Reddit but lately more than half of my feed is their recommended posts which include a lot of negative or ragebait content. Maybe a plugin can help with this
Re:So You Want to Write Java in Neovim on Saturday December 28, 2024 @11:52AM (#42532299)
There’s a yazi nvim plugin too!
Re:I Kind of Like Rebasing on Friday June 21, 2024 @05:37PM (#40754085)
I also like rebasing. Sometimes my squashing cannot be completed without manual intervention, so I'll do a squash merge into a temporary branch instead:

   git checkout main
   git checkout -b squash-branch 
   git merge --squash [branch-to-rebase]
At this point I usually git diff the two branches as a sanity check before merging back into main:

    git diff [branch-to-rebase]
    git checkout main
    git merge squash-branch
I am normally able to squash rebase 99% of the time using git rebase -i main, but doing a git merge --squash into a temp branch has saved me a lot of hassle over the years.
Reminds me of this xkcd:

https://xkcd.com/917/

That one closed about a year back unfortunately.
I see, it might be heavy handed but running them inside Docker containers might provide you with the isolation you're looking for. You could also build and share these images with your teammates.

I've actually started using a lot of different CLI tools with Docker, especially when the tool isn't available for my OS.

I use a separate directory and venv for each script. To execute the script, I use a shell script to call the venv's python interpreter. This is also how I use python scripts with cron/systemd.

    #!/bin/bash
    # myscript.sh
    venv/bin/python3 myscript.py
You could also skip the shell script and use aliases in your .bashrc.
Re:Ask HN: Do You Test in Production? on Saturday January 14, 2023 @05:33PM (#34384793)
We run canaries in Prod, it isn’t as extensive as our integration tests that run in our test stages but it still tests happy paths for most of our APIs.
Re:Vim: ZZ and zz: Do you know the difference? on Monday January 09, 2023 @01:49PM (#34314306)
Very cool!
Re:Vim: ZZ and zz: Do you know the difference? on Monday January 09, 2023 @01:46PM (#34314274)
I use zz a lot, I also like C-d and C-u which scroll the document up and down without moving the cursor. I've mapped these to C-j and C-k to make them easier to use:

  nnoremap <C-j> 4<C-d>
  nnoremap <C-k> 4<C-u>
  vnoremap <C-j> 4<C-d>
  vnoremap <C-k> 4<C-u>
I set it to scroll 4 lines at a time but you can tweak the number to make it scroll faster or slower.

Unrelated but I also have a command to remove highlighting from search results:

  nnoremap <silent> <C-l> :nohl<CR><C-l>
Re:My Coffee Maker Just Makes Coffee on Monday January 09, 2023 @01:31PM (#34314054)
Not OP but I have a electric burr grinder. You can also ask coffee shops to grind the beans for you (mention that it is for a French press so they get the grind right). It takes me about a minute 90 seconds to clean mine, I turn it upside down to get most of the grinds in the trash and then I rinse out the rest and dry. I clean it with soap maybe once a week.
Re:Ask HN: What Are You Learning? on Friday June 25, 2021 @09:32PM (#27638216)
How to take care of myself. I've neglected it for too long. With my 30th birthday coming up, I've started to exercise, meditate, cook healthier food, and get plenty of sleep. It's had a huge positive impact on my mental health. I would definitely recommend any or all of these practices to anyone.
Re:The Hair Dryer Incident (2014) on Thursday June 17, 2021 @04:39PM (#27544304)
"To hate me is to give me breath, to fight me is to give me strength"

I've been listening to the self-esteem meditations on headspace and this is the same thing that they are recommending. I am amazed at how effective it has been.

The last time that happened, it started a civil war.
Re:Basic Social Skills Guide (2012) on Wednesday November 20, 2019 @05:47PM (#21589465)
Thank you for this. I will try to look at things this way.
This Washington Post article says that teen drug use is down in Colorado after they passed marijuana legalization: https://www.washingtonpost.com/news/wonk/wp/2017/12/11/follo.... I think it's due to the reasons that others have mentioned - that minors can't buy it illegally from stores and the drug dealers they used to buy from are now irrelevant.