taaz

joined 2 years ago
[–] [email protected] 3 points 1 week ago* (last edited 1 week ago)

Not a frontend dev but whenever I need to make something web, I just use Bootstrap. I believe that was the way to do web UIs after jQuery and before all the big frameworks.
So, maybe look into bootstrap guides? It's basically html+css+js with premade goodies (at least it was last time I had to do web stuff).

[–] [email protected] 2 points 1 week ago (1 children)

Not gonna lie, this is tempting.

I have "just" two 27"s where one is primary (240hz) im front of me and other is a secondary on the right side for stuff like discord or documentation etc.

Though I am very unsure about the curve. My primary is curved and it kind of sucks for media.

Also how do you game on something like this?

[–] [email protected] 5 points 1 week ago* (last edited 1 week ago)

My instance is close to two years old now, and on average has had about 2 MAU, with no (local) communities.

Currently we have about 700 active federated communities (that had any federated activity within last month), out of 900.[^1]

The on-disk size of both lemmy and pict-rs database[^2]

postgres@postgres:~$ pwd
/var/lib/postgresql
postgres@postgres:~$ du -sh data/
31G	data/

I use pict-rs with S3 provider and the bucket size is currently at 22.82 GB (read: external network storage, this is probably mostly just thumbnails[^3]).

So in total there is almost 54GBs spent just for lemmy.

So assuming you have 100G remaining after system stuff and dedicate that box only to lemmy (and pict-rs media files) and use it mostly for yourself [^4], you should be alright for about 3-4 years (assuming that I am gaining about 27GBs total per year and that you will federate with a similar amount of a similarly active communities).

If you offload media storage to a hosted S3 bucket[^5] then you should be good for a lot longer as you will only need space for the postgres databases.

[^1]: The rest is either dead (instance gone) or no one is subscribed to them anymore (as such my instance is not getting any new content from there: neither posts nor comments or votes)

[^2]: Postgres itself reports about 2G less, don't really know why but I am guessing it has something to do with the filesystem being btrfs

[^3]: Edit: I currently do not use the "privacy" mode of pict-rs where it proxies all content (so that a bad guy can't post an image link to his server and unmask users IPs), this would increase the S3 size and slightly postgres size.

[^4]: You should use Lemmy Subscriber Bot to automatically federate little bit of random communities so that public All feed is not exact copy (minus NSFW comms) of whatever you as the only user subscribe to.

[^5]: Though keep in mind that S3 buckets eventually cost some money too, for example Cloudflare R2 charges $0.015 per 1GB, above the first 10GBs.

[–] [email protected] 5 points 1 week ago (2 children)

Considering this thread, guess I should look into why zigbee with mqtt is better then just the default zigbee HA gives.

[–] [email protected] 7 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

Usually, you would use a formatter anyway - it's good to know the standard way but for day to day coding I just have a shortcut bound that runs ruff format (you can even have it done automatically on file save).

[–] [email protected] 1 points 3 weeks ago* (last edited 3 weeks ago)

Love this bit, I usually don't understand half of what's happening and many references fly over my head but it's hard to resist their explosions of laughter.

[–] [email protected] 6 points 3 weeks ago (1 children)

Sadly, it seems todays law allows them to force you to unlock it, otherwise they straight up treat you as a terrorist. At least in UK it seems (source: Britannica youtuber getting detained when returning home to UK)

[–] [email protected] 8 points 1 month ago

Linus: Are you going to say the AI word?

I’m not going to say the AI word, unless you want me to.

No, no, no.

Hahah

[–] [email protected] 24 points 1 month ago* (last edited 1 month ago)

Oh finally.

The news on this is mixed. “All the tool authors have signaled they can and would implement the PEP as an export format,” said Cannon, but that does not mean they would adopt it as their sole lock file format. The creator of uv, Charlie Marsh, said that “today, the PEP 751-style pylock.toml files are not sufficient to replace uv.lock,” but that support will be added for export.

This sounds little better then "here is 13th standard" even though it's not feature full.

[–] [email protected] 1 points 1 month ago* (last edited 1 month ago)

Ah bere it is, I have scrolled deep enough

 

cross-posted from: https://biglemmowski.win/post/4480202

This is a follow up to the DRM'd polish trains.

 

This is a follow up to the DRM'd polish trains.

 

cross-posted from: https://biglemmowski.win/post/3682899

https://lab401.com/ (I guess one of the bigger supplier/e-shop of hacking tools in EU) has a sale going on.

If you are interested you can check it out but I have another question, has anyone actually found the hamster?
I've even started scouring the page sources, considering the nature of the site it wouldn't be unusual to have it hidden literally but no bueno.
The 200EUR hamsters were gone within few hours so I must be doing something wrong or... :shrug:

47
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]
 

From https://www.youtube.com/watch?v=TSFJ2OH1PQA
Not affiliated with this in an way, I just think this guy (N-O-D-E) is making some great stuff that's worth sharing.

1
submitted 7 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]
 

I've remembered this exists and there seems to be some very recent activity in the repo so if you didn't know what was possible with TUI graphics now you know! (recommended watching with sound :)

Official site: https://notcurses.com/
Repo: https://github.com/dankamongmen/notcurses

PS: dank (the guy behind it) is definitely one of a kind, just read the releases haha

PPS: here is a doom running through notcurses in the terminal: https://www.youtube.com/watch?v=a_w5rh3c76g

 

cross-posted from: https://biglemmowski.win/post/2418820

For me, the most interesting point was the short mention of open sourcing Factorio (around 2:40). Kovarex seems to be very much open to the idea, he mentions that (as an approximation) maybe two years after the DLC after things calm down ...

(Hope this is not much of a titlegore)

 

cross-posted from: https://biglemmowski.win/post/2418820

For me, the most interesting point was the short mention of open sourcing Factorio (around 2:40). Kovarex seems to be very much open to the idea, he mentions that (as an approximation) maybe two years after the DLC after things calm down ...

 

For me, the most interesting point was the short mention of open sourcing Factorio (around 2:40). Kovarex seems to be very much open to the idea, he mentions that (as an approximation) maybe two years after the DLC after things calm down ...

 

Small disclaimer this is from the txt log which is not exactly complete, there are few pixels missing here and there.

One second of the video is about 30 minutes of drawing (one frame contains 1 minute of drawing, 30 frames per second)

Also a little bit of bragging - couldn't resist the challenge and got this all glued together in Python! Which is obviously a valid tool for this considering the rich data processing ecosystem.
Well maybe except the video generation part... definitely except the video generation - Pyav - bindings for ffmpeg, are really badly documented, luckily they have at least good enough examples.

The short story of how:

  • little bit of python script to convert the txt log into csv
  • from csv to pandas, there I made a few cleaning passes to get the "format" just right (mainly dealing with the mod_fill action)
  • pyav, ffmpeg and the world of video - oh boy:
    • for each one minute of drawing data
    • replay them over the canvas (numpy RGB array)
    • embed/copy the canvas into the video frame (another ndarray)
    • (add the timestamp above the canvas - cv2)
    • invoke pyav magic to mux/append it into the video
    • hope that your numpy array slices, splices, "broadcasts", pyav codec options and stream configurations are correct. Otherwise, watch as you end up with 1GB+ of mp4 file - 3 hours to watch whole (1s/30fps) with really bad resolution or inverted/wrong colors:)

If anyone wants to tweak this or has ideas how to make this better just hit me up. Can also put the code somewhere if wanted.

What a wild ride ha!

1
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]
 

cross-posted from: https://biglemmowski.win/post/1465956

If you are using https://github.com/wereii/lemmy-thumbnail-cleaner please stop and disable it as soon as possible.

We have found a security issue that allows any user to make LTC delete any locally hosted image.

I will be posting more details soon and editing this to include the information.

E: https://github.com/wereii/lemmy-thumbnail-cleaner/issues/10

view more: next ›