the_real_monte

joined 1 year ago

Didn't mean to post twice. Testing from PyCharm. Got a connection error on this one, but I guess it went through

Linda Cardellini voices Lylla in Vol 3 and is also Laura Barton

[–] the_real_monte@sh.itjust.works 3 points 1 month ago (1 children)

I just finished deploying Canvas Stats. All of the data should be updated and correct now.

16
submitted 1 month ago* (last edited 2 weeks ago) by the_real_monte@sh.itjust.works to c/canvas@toast.ooo
 

There was an error with the fediverse-auth on the Canvas site where after a certain point new logins started being logged as all lower case which created duplicates of 59 users and were treated as separate users. I have merged all of the duplicate accounts and rebuild the database.

This also means that all of the stats on Canvas Stats are incorrect. The canvas Stats app has been updated with the new data.

You can find the fixed database dump sql file on my github: https://raw.githubusercontent.com/TheRealMonte/data-files/main/2024/canvas-2024-fixed-sql.sql The file is 33,568 kB.

The SQL file has 4 tables:

  • users (user_id, username, ranking, total_pixels_placed)
  • colors (color_id, color_name, color_hex)
  • pixels (log_id, user_id, x_cord, y_cord, color_id, time_placed, is_mod_action, is_top, time_deleted)
  • top_cord (top_cord_id, user_id, x_cord, y_cord, count_placed)

The users table includes the rank and total pixels placed for each user. Deleted pixels are not counted. There are 13 users who deleted every pixel the placed. They are still ranked, but their total pixel count is 0.

The colors table includes the color ID, name, and hex which when joined with the pixels table can be used to easly select the color name or hex.

The pixels table includes the username, x and y coordinates, color ID, the time the pixel was placed, if the pixel was a moderator placement, if the pixel can be seen in the final image, and the time the pixel was deleted or NULL.

The top_cord table includes the x and y coordiantes for the coordinate each user placed the most pixels on along with the count.

The only data not included here is the pixel color counts for each user. You an find the pixel color counts for a user by selecting:

SELECT color_name, count(color_name) FROM public.pixels JOIN users on users.user_id = pixels.user_id JOIN colors on colors.color_id = pixels.color_id WHERE username = <username> GROUP BY color_name

 

Another update to Canvas Stats app. You can now view your pixels you placed during the event in your browser and download the pixels as a png image!

[–] the_real_monte@sh.itjust.works 9 points 1 month ago* (last edited 3 weeks ago)

Canvas Stats, hosted on Github pages. The web app lets you search for a user who participated in the event. Current features:

  • View your ranking based on number of pixels place
  • View what color pixels you placed and how many
  • View the coordinate where you placed the most pixels and other users who had the same top coordinate
  • View the pixels you placed and download them as a png image!
  • View the stats from the 2023 event and compare how you did each year
  • View all of the pixels placed of just one color
  • NEW: The app will display in dark mode based on your device's setting
  • NEW: You can now save Canvas Stats as a PWA

click here to view the web app.

view the code here

Thanks, I can't believe I forgot the link. I have updated the post

 

I have updated Canvas Stats with the new data from the sql log. Rankings should mostly be the same as the old data, but your total pixel count will be lower since deleted pixels no longer count. A new feature to the site is you can now see if your top coordinate placed is also another users top coordinate placed, which would mean you were probably battling it out over a pixel.

I am also generating images of individual user's pixels. If anyone is interested, just send me a DM. Here is an example of just the pixels that @rrconkle@lemmy.zip placed:

If you would prefer the background to be black instead of white, let me know in your DM.

Another feature I added was overall stats for the event.

[–] the_real_monte@sh.itjust.works 6 points 1 month ago (1 children)

I can help you out if there is something you are looking for. I have a script that I can run on my computer to generate an image of just one user's pixels, or a group of users. I have not gone through the new data yet, but should have something by the end of today.

I'm going to look at the data and try to make a list of similar wars between users.

No problem! I'm glad people are using my web app!

[–] the_real_monte@sh.itjust.works 8 points 1 month ago (2 children)

I checked my csv file and both of the txt files Grant posted. I found 1700 lines that had your username. I ran some code to get every color you placed and still got the same results: ['000000': Black, 'unset: Undo', 'FFFFFF': White, 'F14FB4': Magenta, 'FDE111': Yellow, 'B9C3CF': Light Grey, '0334BF': Blue, 'F66E08': Rust, '777F8C': Medium Grey, '1F1E26': Dark Grey, '424651': Deep Grey, 'FF9F17': Orange, 'FFFFA5': Pastel Yellow].

If you did place red pixels (or any other shade of red/pink), it was not recorded in the log files. Maybe the pixels where lost during one of the downtimes during the event.

69
Canvas Stats Website (sh.itjust.works)
submitted 1 month ago* (last edited 3 weeks ago) by the_real_monte@sh.itjust.works to c/canvas@toast.ooo
 

Hi everybody! I have finished building a web app that allows you to search for a user and view their stats from the event! The app will tell you your overall ranking, number of pixels placed, the coordinate you placed the most pixels on, and how many of each color you placed.

I will probably add more features to the website, but I wanted to get something out there so everyone could see how they did.

Thanks @grant@toast.ooo for providing the data.

Here is the link to the web app.

[–] the_real_monte@sh.itjust.works 4 points 1 month ago* (last edited 1 month ago) (3 children)

For example: 142446@toast.ooo placed a pixel at (10, 262) 1417 times, which is how they got to the top of the rankings

[–] the_real_monte@sh.itjust.works 4 points 1 month ago (4 children)

I have also created a file that lists the coordinates that a user place a pixel at the highest number of times.

view more: next ›