News for hackers. Stuff that matters.

mattround

Re:Clone-a-Lisa on Sunday August 20, 2023 @04:10AM (#37197146)
There's a very bad canvas bug in Android Chrome on some devices that's making the original show through - you're supposed to be painting on white (been looking for a workaround & it's fixed in Chrome Canary)
Re:Clone-a-Lisa on Sunday August 20, 2023 @04:01AM (#37197104)
There's a bug in Android Chrome with certain devices that thoroughly breaks some canvas operations, you're not supposed to be painting over the original. Been looking for workarounds but so far only managed to make it glitch in different ways (apparently it's fixed in Chrome Canary)
Re:Clone-a-Lisa on Sunday August 20, 2023 @03:59AM (#37197086)
I'm guessing you have an add-on that alters page colours, eg to force dark mode..?
Re:Clone-a-Lisa on Sunday August 20, 2023 @03:51AM (#37197054)
"Party game realm" is a great compliment!
Re:Clone-a-Lisa on Sunday August 20, 2023 @03:28AM (#37196972)
No, I'm not aware of anyone building their career on my tool.
Re:Clone-a-Lisa on Saturday August 19, 2023 @06:41PM (#37194074)
It's just simple HTML/CSS/JS and canvas manipulation; scoring is done using 'difference' compositing & checking pixel RGB values, and brushes are built up from bog-standard canvas strokes.
Re:Clone-a-Lisa on Saturday August 19, 2023 @06:07PM (#37193795)
All client-side; would've been nice to store & play back the drawing process, but that would've been a lot of extra work and created a whole load more UI/design/clutter problems to solve (it was very much a keep-it-small-and-get-it-launched project, around 2.75 days total).
Re:Clone-a-Lisa on Saturday August 19, 2023 @06:02PM (#37193746)
Would've been nice to do that (& maybe play back the drawing process), but I was keen to keep the project small & get it launched (took 2.75 days in total, I tweeted the dev process).
Re:Clone-a-Lisa on Saturday August 19, 2023 @04:58PM (#37193123)
(So yes, you can rack up points from simple blocks of colour up to a point, but need to get the shapes right to go higher)
Re:Clone-a-Lisa on Saturday August 19, 2023 @04:48PM (#37193028)
I made this game; in case anyone's wondering how the scoring works: It draws your version over the original with 'difference' compositing, then downscales the result (using 'medium' quality to avoid most pixels getting skipped) and adds up the R, G & B values for every pixel in that small image. This total is then compared with the total difference for the initial state (which represents 0%).

Darker areas have the biggest initial difference, and the whole pic is darker than the initial canvas, so get a lot of paint down and pay most attention to the dark bits, you'll soon get over 70%. 85% is v good, and I think 90% is probably possible with enough skill and speed.

Re:Hamster Invaders on Saturday January 21, 2023 @03:16AM (#34464811)
Is your mute switch on..?
Re:The Kilobyte’s Gambit on Monday March 08, 2021 @08:05AM (#26385257)
I wouldn't be surprised if it doesn't cover that, I can imagine it'd be tricky to include without adding tens of bytes (10-20 bytes could be freed up by using slightly hackier function calls to/from the display, so perhaps Óscar will add more features/intelligence one day)
Re:The Kilobyte’s Gambit on Monday March 08, 2021 @04:18AM (#26383665)
I was a bit lax using 'moves', it's 4 ply, so that's 2 full moves.
Re:The Kilobyte’s Gambit on Sunday March 07, 2021 @06:25PM (#26380783)
Original engine's here (only looks ahead 3 steps instead of 4) https://nanochess.org/archive/tiny_chess_2.html
Re:The Kilobyte’s Gambit on Sunday March 07, 2021 @06:24PM (#26380774)
This is the same engine but doesn't look quite as far ahead https://nanochess.org/archive/tiny_chess_2.html
Re:The Kilobyte’s Gambit on Sunday March 07, 2021 @06:01PM (#26380644)
I added it out of desperation after around 100 people on reddit claimed the black pawns are "cheating".
Re:The Kilobyte’s Gambit on Sunday March 07, 2021 @05:59PM (#26380631)
It looks 4 steps ahead with a points system for pieces & positions, but has no sense of broader strategy. (The original code looked ahead 3 moves, but browsers & devices have improved a lot in the last 11 years)
Re:Programming Language Creator or Serial Killer? on Saturday January 23, 2021 @04:24AM (#25880895)
You might also enjoy Goth or Moth?

https://vole.wtf/goth-or-moth/

Re:Programming Language Creator or Serial Killer? on Saturday January 23, 2021 @04:23AM (#25880891)
Hi, I made the quiz and tried to design it to make judging by appearance work as poorly as possible, so the initial daft premise then becomes something a little bit more interesting as you get some wrong. But I think it's reasonable to be wary of the issue, particularly with endless problems emerging nowadays with facial recognition tech.
Re:Scunthorpe Sans – a self-censoring font on Sunday May 10, 2020 @03:23PM (#23135319)
Those saying you're taking this too seriously are wrong - the project is a joke, but the issues you highlight aren't.

I made the font, and if it was a serious attempt at a moderation tool or trying to comprehensively cover 'bad words' then such slurs would certainly be included. But it's VERY limited in scope, there's just enough for the joke to work (core 4-letter words plus a set of words people grumbled were missing) and it's focused around what most people would consider to be everyday swearing (rather than discriminatory or highly contextual terms). I also felt that adding slurs to such a limited word list would risk highlighting them & encouraging their use to make 'funny' screenshots etc

Please keep questioning these things, I'm well aware that even silly projects can raise serious issues and try to give them enough thought.