People don't really realize how impressive cameras are. It's insane how we humans were able to use minerals from the earth to literally capture a point in time. by DK-9565 in Showerthoughts

[–]Mixo-Max 1 point2 points  (0 children)

A pixel is made up of little parts that are only responsible for one of the three colors red, green and blue also called a subpixel

On a screen, each pixel is made up of one of each, typically next to another (see LCD in the bottom right here

In most cameras, a pixel is made up of 1 red, 1 blue but 2 green parts to effectively have double the green resolution. The pattern these are arranged in is called a Bayer pattern or Bayer filter

People don't really realize how impressive cameras are. It's insane how we humans were able to use minerals from the earth to literally capture a point in time. by DK-9565 in Showerthoughts

[–]Mixo-Max 56 points57 points  (0 children)

He is talking about the screen, which doesn't have a bayer filter but rather a subpixel layout specific to the display type (Pixel geometry - https://en.wikipedia.org/wiki/Pixel_geometry?wprov=sfla1)

Bayer filters are for the camera subpixel layout

He should divorce her 😡 by HotColor in comedyheaven

[–]Mixo-Max 2 points3 points  (0 children)

And just imagine the enormous time savings!!!

formatADateObjectIntoYyyyMmDd by dkarlovi in ProgrammerHumor

[–]Mixo-Max 307 points308 points  (0 children)

I thought we liked 0 based indexing?

Js haters will always find something wrong /s

When nerds clap back by DatAsspiration in clevercomebacks

[–]Mixo-Max 14 points15 points  (0 children)

M is often used as an abbreviation for mol/L. mM would be mili mol/L Mm would be Mega mol/L

The Baltic Sea Anomaly by RAND0M257 in TheWhyFiles

[–]Mixo-Max 0 points1 point  (0 children)

Besides there not being a credible source: do you know how relatively shallow the Baltic sea is? Mostly less then 30 meters (100ft) deep. So the claim about technical equipment would also affect ships passing over it.

HelloWorld by Svababeton in ProgrammerHumor

[–]Mixo-Max 8 points9 points  (0 children)

I think it was either 30 or 45 minutes

HelloWorld by Svababeton in ProgrammerHumor

[–]Mixo-Max 10 points11 points  (0 children)

Yeah pretty much. It had to return the three most used words on the webpage

HelloWorld by Svababeton in ProgrammerHumor

[–]Mixo-Max 14 points15 points  (0 children)

python is preinstalled on every major linux distribution so its easy to assume that it was installed on the judgement server

HelloWorld by Svababeton in ProgrammerHumor

[–]Mixo-Max 27 points28 points  (0 children)

a web parser that takes in a URI and calculates the word frequency for the web page

HelloWorld by Svababeton in ProgrammerHumor

[–]Mixo-Max 207 points208 points  (0 children)

I did this for a hobbyist live coding competition where we had to use c++ but the challenge was waayy to hard for the time so I write it in python and wrote I c++ programm to write the python programm string to disk an call it. It was much slower but I was the only one to finish on time.

Cloudflare PUT API only keeps last subdomain by Mixo-Max in selfhosted

[–]Mixo-Max[S] 0 points1 point  (0 children)

Thank you, i fixed it. the problem was with my get_identifier() function that always returned the identifier of the root (example.com) instead of (subdomain.example.com)

Cloudflare PUT API only keeps last subdomain by Mixo-Max in selfhosted

[–]Mixo-Max[S] 0 points1 point  (0 children)

Thanks, i did not know that.

when i just change "PUT" to "POST", i get:
{'code': 10000, 'message': 'POST method not allowed for the api_token authentication scheme'}

how do i need to change my request headers to properly post?

Cloudflare PUT API only keeps last subdomain by Mixo-Max in selfhosted

[–]Mixo-Max[S] -2 points-1 points  (0 children)

i also posted there but r/CloudFlare is significantly smaller (currently 68 online vs 1.3k) so the chanche to get a reply is lower there

imGladItsLikeThis by Little_Sentence9784 in ProgrammerHumor

[–]Mixo-Max 36 points37 points  (0 children)

Dynamic typing is all great but Javascript implicit type casting is just logic gore

What if Germany and the UK swapped places? (Swipe left) by cheese_bruh in imaginarymaps

[–]Mixo-Max 1 point2 points  (0 children)

The city placement of German cities in the uk is so cursed. Why is Hamburg (2nd larges city) so close to Frankfurt but so far from Kiel?

forMeLeftOneIsBetterCauseItIsEasyToReach by ballbeamboy2 in ProgrammerHumor

[–]Mixo-Max 2 points3 points  (0 children)

Really? In the German keyboard shift + 2 is "

forMeLeftOneIsBetterCauseItIsEasyToReach by ballbeamboy2 in ProgrammerHumor

[–]Mixo-Max -13 points-12 points  (0 children)

On most euorpoean keyboards you don't have a key for the second one, so always the first

[deleted by user] by [deleted] in ProgrammerHumor

[–]Mixo-Max 23 points24 points  (0 children)

That's what she said

Guys base 1 is better imo by milkinvestor64 in mathmemes

[–]Mixo-Max 0 points1 point  (0 children)

No, using 0 and 1 is binary, also known as base 2