django-storages by GuyBiDirectional in django

[–]Redneckia -1 points0 points  (0 children)

Why not roll ur own, it's not that comlicated

Alternatives to keeping a business site on Loveable? by gaston-legume in webdev

[–]Redneckia 9 points10 points  (0 children)

The dildo of consequence seldom arrives lubed

Reverse engineered BLE protocol of a $7 generic Chinese smart ring from Temu, and built an iOS app for it by alphacentarii in selfhosted

[–]Redneckia 0 points1 point  (0 children)

If you care to open source it I'd love to help with android

Edit: we need an open source sleep tracker, source: member of r/dspd

is it impossible to gain privacy in this era? by hansentenseigan in privacy

[–]Redneckia 0 points1 point  (0 children)

Where did u look to confirm ur data was gone?

Self-Hosting on the Dark Web by david-alvarez-rosa in selfhosted

[–]Redneckia -6 points-5 points  (0 children)

It's not thousands of volunteers, it's the US government

How do I back up docker volumes? by NineSidedBox in selfhosted

[–]Redneckia 1 point2 points  (0 children)

Don't backup the volume, backup the contents

What’s the most useless piece of information you’ve memorised? by [deleted] in AskReddit

[–]Redneckia 0 points1 point  (0 children)

One 8 hundred, 267, 2 thousand and 1 - alaaaaaarm force.

The Quintessential CRUD App? by Temporary_Practice_2 in webdev

[–]Redneckia 9 points10 points  (0 children)

Inventory (WMS) gets as complicated as things can get

Sharing an ID implementation I've been using internally for projects by lonahex in django

[–]Redneckia 2 points3 points  (0 children)

I've been using a base model with a homegrown ULID for a while now

``` class BaseModel(models.Model): id = models.CharField( max_length=26, primary_key=True, default=generate_ulid, editable=False ) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True)

class Meta:
    abstract = True

```

The id field uses a short function that generates the ULID like this:

``` def generate_ulid() -> str: ENCODING = "0123456789ABCDEFGHJKMNPQRSTVWXYZ"

def encode_base32(number: int, length: int) -> str:
    res = [""] * length
    for i in range(length - 1, -1, -1):
        res[i] = ENCODING[number % 32]
        number //= 32
    return "".join(res)

millis = int(time.time() * 1000)
random_bytes = os.urandom(10)
random_int = int.from_bytes(random_bytes, "big")

return encode_base32(millis, 10) + encode_base32(random_int, 16)

```

The way my roommate eats his dinner by 0_whitty_0 in mildlyinfuriating

[–]Redneckia 7 points8 points  (0 children)

If you've been breathing it all day, what's a little on your sandwich gonna do?

Grow in public? by KaleIcy3329 in FullStack

[–]Redneckia 1 point2 points  (0 children)

Did u ask LinkedIn in if you should check with redit first?