@AaronMiller Haha! I hadn't seen that one before. It's a good reminder for us IT folks who can't understand why anyone would struggle with e.g. uploading a file...
@AaronMiller I didn't keep the solution I wrote, so I'm not sure. I think it was five or six threads, though.
@AaronMiller Classic geochemists. Unlike programmers, who can accurately tell that the average person probably only knows about brainfuck, lisp and Malbolge
@BrowncatPrograms My dad tried explaining what the grant he was working on was about by starting with "So you know what cholangiocarcinoma is right? Well..." :P
@Dudecoinheringaahing answer: carcinoma starts in organ tissues; sarcoma starts in "supportive" tissues (bones, muscles); leukaemia starts in white blood cells; etc.
Quipu: You have Quipu You spend hours creating the correct threads and knots to climb up to the princess Unfortunately, the princess preferred the Aztecs over the Incas
You have Pip You write a simple expression to rescue the princess from the castle using a ladder Due to operator precedence, you end up rescuing the castle from a ladder using the princess
You could eliminate the "maybe" problem by destroying the universes where it doesn't work, so that the only universes that survive are the ones where it worked, and everybody lives happily ever after
You have Mathematica There's a built-in for rescuing princesses You end up paying a fortune to extract the princess from the proprietary notebook format
You have HAL/S You rescue the princess from the dragon, the castle, and everything else on the surface of the Earth, but you lose your shield in the process The princess dies a fiery death at Mach 25
Okay, so which sounds less complicated grayscale -> chromatic or chromatic -> grayscale? I personally believe the latter is less complicated, but, any second opinions?
You have Go You arrive at the castle with 12MB of stuff you don't need The princess has already moved to another somewhere else in the Cloud Native Landscape
@Adám chromatic -> grayscale? Isn't that (in its simplest form) just an average? I know there's the weighted method too, but I didn't think it was complicated. Perhaps that boils down to the accuracy?
You have QBasic You spend hours trying to decide how to store a map of a castle when you aren't given its exact size You give up and go back to throwing bananas at gorillas
I still say it's a better language for beginning programming than most of the languages beginning programming is taught in these days.
The "given its exact size" joke is based on an abortive plan of mine to implement tinylisp in QBasic. I realized that memory management using just fixed-size arrays was going to be a pain and scratched the project.
Well that was fun...our school has an early release day today, so lunch is a bit earlier than usual. I guess the lunch people didn't know that, so when we got there the cafeteria doors were shut. They're these thick steel garage-door-like things, and by the time they were opened like 200 people had queued up behind them. So there were hundreds of hungry high school students ducking and crawling underneath the doors as they opened, and swarming everywhere there was food :p
@Adám ? I'm not sure I follow; if the simplistic form of chromatic to grayscale is the average, then wouldn't you need to increase each component by a factor of 3 (may have phrased that wrong, so r * 3?)?
@ngn no, because I know that I know nothing about K, so I didn't want to give any false info
@Tacoタコス for an image of resolution 2x2, you store a 2x2 array of pixels. For greyscale, each pixel is just a value from black to white. For colour, each pixel is three values representing amounts of Red, Green, and Blue
@Tacoタコス If I had an image represented as a 3D array of [0,255] values, 1 layer (luminosity) and then rows and columns, and I wanted to convert it to RGB, I'd make that 1 layer into 3 identical layer (luminosity of R, G, B).
So to convert colour -> greyscale, the easiest way is to take an average of the three R G B values and treat it as an brightness value for some shade of grey/black/white
For greyscale -> colour, the simplest way is to replicate the brightness value three times, once for each of red, green, and blue, which still produces an image that looks grey (because the R G B channels are all equal), but is encoded as an RGB image
So I suppose to run the challenge by everyone before I flesh it out in the sandbox; given a color represented by a six digit hexadecimal value, output a six digit hexadecimal value, representing that color in grayscale.
I'd say they both have problems. To me, the colored pepper still looks darker than the background, so the max is very wrong; but yes, the avg is too dark.
CMQ: do y'all have ice cream trucks where you live
reason for asking: i just heard one outside - it's been a really long time since I last saw one as far as I remember and kinda forgot they were a thing
@BrowncatPrograms ah. I don't think I've actually seen one where I currently live but I don't really remember; I think last time I saw one was where I used to live (moved like 3 years ago)
@BrowncatPrograms lol yeah i don't think they're nearly as common
i've only seen one like once or maybe twice in my life in my old neighborhood
I don't think there's really any organization of ice cream trucks, it's probably just people buying trucks and going around selling ice cream on their own
So I wouldn't really expect any geographic patterns
yeah, i don't think there's some organization to it. which if i'm being cynical sounds really prone to use by people who want to hurt people / specifically children
now that i think about it you probably need to register as a food business (+ there's probably extra for food truck businesses specifically)