News for hackers. Stuff that matters.
Re:Show HN: Web search using a ChatGPT-like model that can c... by tobr on Thursday December 08, 2022 @02:21PM (#33911971)
> how do i mix two colors (hexadecimal rgb string) in js

> ANSWER

> To mix two colors in JavaScript, you can use the color-mix property. This property takes three parameters: the colorspace, the color to be mixed, and the percentage of that color to mix. For example, to mix the colors #FFFFFF and #8FBC8, you would use the following code:

> let newColor = document.createElement;

> // Outputs: #8FBC8

This is all just wrong from beginning to end. It seems to be confusing JS and CSS, too.

Re:Show HN: Web search using a ChatGPT-like model that can c... by nigamanth on Thursday December 08, 2022 @11:28PM (#33917447)
I mean with all the data on the internet it's hard to differentiate between what's right and wrong. Perhaps your question can also be refined to:

"How do I mix two colors in vanilla JavaScript?" This doesn't confuse rgb string and it still asks the same question.

Re:Show HN: Web search using a ChatGPT-like model that can c... by tobr on Friday December 09, 2022 @12:57AM (#33918048)
Ok, but if I use this to ask about something I genuinely need help with, how am I supposed to know that? And I don’t really think the problem is that it can’t differentiate between sources that are right and wrong. The sources are perfectly fine. It’s the summary that is bananas.