Readit News logoReadit News
bean-weevil commented on A cross-platform multi-target dotfiles manager written in Rust   github.com/Shemnei/punktf... · Posted by u/michidk
mdaniel · a year ago
FWIW, you don't have to do that rename dance; git allows specifying the name of the .git metadata directory via `git --git-dir=$HOME/.git_hidden ...` or `GIT_DIR=$HOME/.git_hidden git ...`

I don't know how big your .gitignore must be when trying to use a tool that wants to own every file and directory to manage your /home but if that works for you, more power to ya

bean-weevil · a year ago
Start with ls -a -w1 > .gitignore, then edit it and delete everything you want to track.
bean-weevil commented on The Pentium contains a complicated circuit to multiply by three   righto.com/2025/03/pentiu... · Posted by u/Tomte
efitz · a year ago
A long time ago on the 6502 I was trying to figure out how to quickly multiply by 3 in assembly and I came up with:

1. Shift-left

2. Add original value

For multibyte values use rotate left which carries, and do the rotates from LSB to MSB. Then clear carry, then do the adds from LSB to MSB with carries. Should work for any word size.

Ofc I was a teenager but this seemed clever and simple to me.

Was (am) I just missing something?

bean-weevil · a year ago
This is covered in the article. See the section "Implementing a fast ×3 circuit with carry lookahead"
bean-weevil commented on When Professor Bryant Lin got cancer, he taught a class about it   nytimes.com/2025/02/26/us... · Posted by u/danso
bean-weevil · a year ago
I'm starting to understand why people are willing to pay for the new york times.
bean-weevil commented on LeetCode but You Can Force People to Code in Light Mode   beatcode.dev/... · Posted by u/weebao
user9999999999 · a year ago
"Runtime analysis? How is that possible?" I thought...

https://github.com/beatcode-official/server/blob/42169027dda...

bean-weevil · a year ago
Lmao. They need to call that out so the users know not to believe it
bean-weevil commented on Pee If You Want to Go Deeper (2021)   peeifyouwanttogofaster.co... · Posted by u/mooreds
bean-weevil · a year ago
> PEE SLOWLY

Ok, this has got me curious - is this an anatomical difference? I'm male and I find it very, very uncomfortable to pee slowly. Almost painful.

bean-weevil commented on Making my debug build run 100x faster so that it is finally usable   gaultier.github.io/blog/m... · Posted by u/broken_broken_
bean-weevil · a year ago
Why not just compile that particular object with optimizations on and the rest of the file with optimizations off?
bean-weevil commented on Amazon's killing a feature that let you download and backup Kindle books   theverge.com/news/612898/... · Posted by u/marban
loloquwowndueo · a year ago
This renders my kindle gen 2 useless, as its only connectivity is/was via cellular network which doesn’t work anymore (2g or something). I’ve been having to download and then transfer via usb for years.
bean-weevil · a year ago
I recommend complaining to support if this ends up affecting you. It wouldn't surprise me if they can turn it back on for you (idk if it's likely, but I feel like it's worth a try.)
bean-weevil commented on Reassessing Wayland   dudemanguy.github.io/blog... · Posted by u/GalaxySnail
palata · a year ago
I have been using Sway since end of 2023. The only thing that I can't get is sharing a window in videoconf calls. I have to share the whole screen.

Other than that, it all just works!

bean-weevil · a year ago
I also use sway. I'm considering switching to hyprland because it supports this.
bean-weevil commented on I tasted Honda’s spicy rodent-repelling tape and I will do it again (2021)   haterade.substack.com/p/i... · Posted by u/voxadam
taurknaut · a year ago
Damn I could have gotten the "no fluff" version by looking at wikipedia or just googling.

Why do people expect their non-fiction reading to be entertaining? That's not the point and I inherently don't trust your judgement if that's what you're looking for. At some point you've got to provide insight.

bean-weevil · a year ago
I can't believe you just called a blogpost about eating rodent repellent "nonfiction reading"!
bean-weevil commented on Undergraduate shows that searches within hash tables can be much faster   quantamagazine.org/underg... · Posted by u/Jhsto
varjag · a year ago
tl;dr sublinear worst case query and insertion in hash tables.
bean-weevil · a year ago
Specifically, (log x)^2

u/bean-weevil

KarmaCake day227September 24, 2023View Original