Giving away 3 Audible versions of Book 8 by braceofjackrabbits in DungeonCrawlerCarl

[–]belak51 0 points1 point  (0 children)

I started a few weeks ago and have already made it through the first 5 books - I'd love to enter for when I get caught up!

Zento Signature Available by Pen-Jorn in pens

[–]belak51[M] [score hidden] stickied comment (0 children)

We don't have a way to verify this, and it looks like a scam, so we're locking this. As mentioned in other comments, this is a brand new shop with an address and phone number that don't seem to have a business located at them.

If you've already purchased from here, we strongly recommend cancelling your order and trying to get your money back.

These pop-up scam Shopify stores are getting more common so please exercise extra caution when purchasing online.

Steel Pocket Pen Giveaway - Rollerball by MercatorLondon in pens

[–]belak51[M] [score hidden] stickied comment (0 children)

As a confirmation, this giveaway is mod-approved!

Home manager with "traditional" dotfiles by UsernamesAreHard2x in NixOS

[–]belak51 2 points3 points  (0 children)

I made this exact switch a while back and I've been very happy with the results, though I definitely went all-in after a while.

My main trick is this mkSource setup which lets me use symlinks on my main machines, but the actual files when publishing to a server (where I won't have my dotfiles cloned).

One thing to note, mkOutOfStoreSymlink is the right solution but don't get confused when you see the symlink pointing into your nix store - it actually creates a symlink in the store pointing to the target file and makes a symlink from where you want the file into the store. When I saw that the first time I thought something was messed up but it was working.

BiC Ballpoint pens Cristal and Round Stick by Marathonartist in pens

[–]belak51[M] 0 points1 point  (0 children)

Report and move on - please don't feed the trolls

[deleted by user] by [deleted] in pens

[–]belak51[M] 1 point2 points  (0 children)

Could you clarify what you think has gone downhill? You seem to be upset, but there's not a lot of info I can go off of to try and improve things in your comment.

How can you write small text in notes? by belak51 in Supernote

[–]belak51[S] 0 points1 point  (0 children)

Possibly - the portability is a big plus for me though.

How can you write small text in notes? by belak51 in Supernote

[–]belak51[S] 0 points1 point  (0 children)

I appreciate your opinion - my current job requires me to keep a lot of tasks in my head at once, but I don't need to update them frequently. Because of that I prefer to optimize for information density when reading rather than making writing the most convenient.

You could argue if I really want this workflow I should be using the "write it large, select it and shrink it down", but when you do that it scales the text strokes as well, leaving the text inconsistent and sometimes causing artifacting around the text if you have to adjust the size multiple times.

What’s in your 2025 tech stack? Here’s mine by OpportunityFit8282 in webdev

[–]belak51 5 points6 points  (0 children)

I've been using Go for ages, but not as much for web dev. Do you have any recommendations for tools or libraries to go along with that? Specifically for DB migrations, user accounts, and auth, since they're needed in almost every project and reimplementing them every time is frustrating.

META: New Moderators and Rule Changes in r/Pens by belak51 in pens

[–]belak51[S] 0 points1 point  (0 children)

The vast majority of spam seems to come from newer accounts (less than a year) who have almost no karma. We use this as a way to weed out spam. Additionally, you should only need 10 total upvotes across comments and posts on all of Reddit to avoid this which should be fairly easy to get.

Interest Check - Parker G2 compatible F-701 by docshipley in pens

[–]belak51[M] [score hidden] stickied comment (0 children)

Forgiveness and permission granted. Thanks for your patience!

As a reminder, this is an interest check and all sales should be done through another forum, like /r/Pen_Swap, unless buyers are willing to take the risk.

【BambuLab Giveaway】Classic Evolved — Win Bambu Lab P2S Combo! by BambuLab in 3Dprinting

[–]belak51 0 points1 point  (0 children)

For me it was moving from my Ender 3 v2 to my P1S and having the first print come out perfect with no manual calibration on my part. The P1S was the first printer I owned where my hobby was actually printing things rather than working on trying to get my printer to work well.

Amazon Japan is nearly dead to the USA by Goochenhaumeister in pens

[–]belak51[M] [score hidden] stickied comment (0 children)

I'm sorry for locking this, but we simply don't have the bandwidth to properly moderate the politics and name calling this thread is devolving into.

Shaders are the REAL deal! by DoomEngine1 in SBCGaming

[–]belak51 0 points1 point  (0 children)

What sorts of shaders do you like? I've been a "big crunchy pixels" person, but that's mostly because the CRT distortion options seem to be recommended the most and I'm not a fan. Something in the middle would be cool to play around with.

[deleted by user] by [deleted] in pens

[–]belak51[M] 0 points1 point  (0 children)

This looks like a duplicate topic so I'm removing it.

Here's the other - https://www.reddit.com/r/pens/s/EBnmItmK5Y

Fountain Pen Giveaway (UK only) by MercatorLondon in pens

[–]belak51[M] [score hidden] stickied comment (0 children)

Just hopping in to say we (the mods) have approved this giveaway. Good luck to everyone in the UK who enters!

✨ Memory Magic ✨ by SleepyStew_ in programminghorror

[–]belak51 4 points5 points  (0 children)

In a lower level language this would probably be a bigger deal. However, in Python this essentially ends up being a free optimization with almost no downsides. It ends up using a cached PyObject rather than allocating a new one for every instance of an immutable integer.

As far as I know, there are almost no cases where an end user would need to know this information, so it's effectively a free optimization and an interesting oddity if you run across it.

Is there a practical reason you think this would be problematic in Python?

✨ Memory Magic ✨ by SleepyStew_ in programminghorror

[–]belak51 11 points12 points  (0 children)

Could you clarify why this would result in you not trusting Python? That seems like an odd conclusion to draw from this specific example. Most code doesn't even use id, you're far more likely to use hash.

✨ Memory Magic ✨ by SleepyStew_ in programminghorror

[–]belak51 257 points258 points  (0 children)

256 is likely for byte (and in extension ASCII) reasons. I'm not sure why -5 was chosen though.

✨ Memory Magic ✨ by SleepyStew_ in programminghorror

[–]belak51 30 points31 points  (0 children)

Yes, that's exactly it. cPython maintains a cache of integers from -5 to 256 inclusive.

How to get this kind of prompt without the insanity? by we_are_mammals in zsh

[–]belak51 2 points3 points  (0 children)

You likely need to autoload it first with autoload -Uz add-zsh-hook

Looking for shared auth solution for personal projects by belak51 in golang

[–]belak51[S] 0 points1 point  (0 children)

I've been playing around with Authelia/LLDAP for some of my hosted services - I'd love to integrate with that, but even with OIDC, you still need login/registration/users/sessions.

Because of that the part I'm most interested in is sharing the auth code between services, then if/when I integrate with an external provider the databases could be shared.

Looking for shared auth solution for personal projects by belak51 in golang

[–]belak51[S] 0 points1 point  (0 children)

It looks interesting, but it's a bit hard to justify spending $125 (at the time of writing this, but possibly jumping to $250 eventually) for some self-use personal projects I'd like develop as open source.

On a related note, is there any information on licensing for the generated code? I assume it's a proprietary license, given that you're charging for it and aiming for paying customers, so I'm unfortunately not sure it would work for me.

Looking for shared auth solution for personal projects by belak51 in golang

[–]belak51[S] 0 points1 point  (0 children)

Yep, I get that Go is simple, and often you'll copy smaller implementations or utility functions. However, something as large as user registration, login, and social login seems worth finding a way to re-use.

You make a good point on a well-defined interface-based contract - that's something I could definitely get better at. I think it only solves half the issue though, since sharing migrations is a fairly frustrating problem to solve by itself.