|
Cat Face Joe posted:who's hbag hbag balls
|
# ¿ Apr 4, 2021 04:57 |
|
|
# ¿ Apr 28, 2024 05:29 |
|
Smythe posted:the thing only tabulates the first 50 probes which makes it worthless kuz the real good numbers will come from cool ppl who have pages and pages of probies. sorry thank you for the update smythe, and he’ll, i agree
|
# ¿ May 31, 2021 04:28 |
|
check this out. its just sad
|
# ¿ May 31, 2021 05:28 |
|
Jonny 290 posted:holy the gently caress the fetch time on these is insane we need to get you behind a CDN my fellow poster hook them up with some free fastly credits or something
|
# ¿ May 31, 2021 06:05 |
|
im seeing like 900ms over here
|
# ¿ May 31, 2021 06:07 |
|
AnimeIsTrash posted:If you have a .edu email, digitalocean used to give out a $100 voucher. I think the lowest tier of hosting is about $5 a month so you can get a little under 2 years worth of hosting out of it. vultr’s lowest tier is $3.50 a month for a similar type of vps, they also have some kind of sign up bonus. if you really want to cheap out like me
|
# ¿ May 31, 2021 06:26 |
|
hbag posted:honestly im pretty sure that's because atm im not caching the images so it's doing the math again every single time (the responses are cached to keep the script from sending like 6 billion get requests) sounds like its time for redis
|
# ¿ May 31, 2021 12:32 |
|
Shaggar posted:
n00b
|
# ¿ May 31, 2021 15:12 |
|
hbag posted:
you’res is fake
|
# ¿ May 31, 2021 15:27 |
|
Sagebrush posted:yeah no that 100,000-hour probe only locked you out for less than a day. this is stolen valor. exactly.
|
# ¿ May 31, 2021 15:32 |
|
thank you for merging my pull request, op
|
# ¿ Jun 1, 2021 16:31 |
|
hbag posted:is that some kind of tool that abstracts this torment so i just tell it what i want it to do and then it generates the yaml poo poo for me azure is microsoft aws
|
# ¿ Jun 1, 2021 16:44 |
|
Smythe posted:your users dont know they have a cisco ip phone. its just "the phone" not only do they not know. they don’t want to know and don’t care
|
# ¿ Jun 2, 2021 02:03 |
|
hbag posted:quick give me cool ideas for lovely web toys to make for the forums a service you can subscribe to that autosnypes the thread of your choice
|
# ¿ Jun 2, 2021 06:31 |
|
something that scans ppl’s post history to figure out which forums are their regular forums they post in
|
# ¿ Jun 2, 2021 06:34 |
|
a toribot that interrupts ongoing discussions about x by posting “x is from pittsburgh”
|
# ¿ Jun 2, 2021 06:35 |
|
how about an autobumper to keep your favorite threads from falling off the first page
|
# ¿ Jun 2, 2021 06:38 |
|
a client like awful app but it only shows you the good posts
|
# ¿ Jun 2, 2021 06:45 |
|
eschaton posted:a forums authentication provider yo hbag if you actually did this it would be pretty impressive to future employers i bet
|
# ¿ Jun 2, 2021 11:29 |
|
it’s a few steps up from serving a png file with flask, sure
|
# ¿ Jun 2, 2021 11:48 |
|
hbag posted:well anyway now im trying to figure out if there's a way to test if an image is entirely transparent if you dig in to the png spec youll find this shouldnt really be that hard. start here: https://www.w3.org/TR/PNG/#11transinfo
|
# ¿ Jun 2, 2021 15:09 |
|
hbag posted:welp after reading this im not sure if theres an alpha channel for the ENTIRE image's transparency or if there's only alpha channels for individual pixels realistically your image library probably can do this for you. without having used it before i'd probably try this method and see if the max value for the alpha band is 0, assuming there is an alpha band https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.getextrema idk if that will actually work but read the docs imo
|
# ¿ Jun 2, 2021 15:31 |
|
hbag posted:i dont think checking the transparency of a pixel at most 32,400 times is very efficient 32,400 is not a big number for a computer though
|
# ¿ Jun 2, 2021 15:37 |
|
whatever server that repl.it feels like letting me use for free was able to compare 32,400 integers to 0 in under 7 milliseconds
|
# ¿ Jun 2, 2021 15:51 |
|
Sagebrush posted:i have a ryzen with 24 logical processors. sounds like you could handle a whole megapixel sized image with that bad boy
|
# ¿ Jun 2, 2021 16:06 |
|
hbag posted:in a shocking turn of events it actually worked first time pro tip: if you use a statically typed compiled language you’ll encounter this more often imo
|
# ¿ Jun 2, 2021 16:25 |
|
rotor posted:hbag, are you familiar with nntp lol
|
# ¿ Jun 3, 2021 01:51 |
|
mystes posted:You can just iterate through the pixels and check the alpha value, but unless people are using giant transparent avatars maybe you should just check whether the avatar is like 5x5 or smaller? yeah and because this problem is embarrassingly parallel you can parallelize it for efficiency, each “process” only needs to check one pixel each and your result is still accurate code:
|
# ¿ Jun 3, 2021 02:52 |
|
mystes posted:Fart simpson is just trying to make everything complicated. i already posted a link to the pillow docs for the built in method that tells you the min and max pixel values for an entire band of the whole image seems pretty simple and useful here to me
|
# ¿ Jun 3, 2021 03:16 |
|
Storysmith posted:okay so the code assumes you have a 1-dimensional list that has all the pixel values of your av image. actually from what i can tell in the docs, it forks 32,400 new python interpreter processes and sends the alpha value of one pixel and the is_transparent function to each process. each process calls is_transparent on the value of the one pixel it was assigned, and passes the result back to the main process. the main process collects all the results and puts them into a sequence called x, and all() tells you if all of them are transparent, or at least one isn’t transparent so basically what you said but it’s forking a new process for each pixel to maximize parallelization
|
# ¿ Jun 3, 2021 06:00 |
|
Sagebrush posted:As noted earlier a single threaded version checks the whole avatar in 7 milliseconds so you could have people doing this 12 million times a day on average before you even start to overlap requests, let alone produce noticeable lag. that 7 milliseconds also included constructing the list of values and printing to console too!
|
# ¿ Jun 3, 2021 06:02 |
|
eschaton posted:it’ll just be so much pain to write in the first place that you’ll decide to do something else use both imo
|
# ¿ Jun 3, 2021 06:20 |
|
amazing that the fake venezuelan president is also the guy who unleashed python on the world. what a piece of work
|
# ¿ Jun 3, 2021 15:32 |
|
hbag posted:honestly i barely even know what an svg is svg is cool. this is an svg i whipped up by hand in notepad.exe, that’s how easy svg is https://forums.somethingawful.com/showthread.php?threadid=3967994
|
# ¿ Jun 4, 2021 03:41 |
|
lol never mind the svg share hosting website didn’t pay their bandwidth bill
|
# ¿ Jun 4, 2021 03:42 |
|
Jonny 290 posted:Bump!
|
# ¿ Oct 14, 2021 10:22 |
|
is this the “everyone liveblogs about hbags posts” thread?
|
# ¿ Oct 22, 2021 05:59 |
|
|
# ¿ Apr 28, 2024 05:29 |
|
AnimeIsTrash posted:bump
|
# ¿ Apr 10, 2022 16:39 |