Posts
moderation rule
Image description: 5 comments on a post, -14 of which are new
thanks for getting rid of the spammers <3
[Tutorial] Generate Canvas of Pixels Placed by Certain Users or Instances
Download the log file for canvas (check the pinned post as well in case the link changes)
Grab this snippet of code from Github (if you don't understand this code please DO NOT run it. Never run random code you grabbed from the internet if you can't read it :P)
Make sure you have Python and Python Pillow installed.
Change these variables to suite your needs
users = None
instances = None
The default None is actually "show me everything", I'm just bad at naming things.
E.g. I want to see the top 10 combined pixel placers, I would
users = "[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected]"
and set the instances to None
This would output this image
You can also set it to show pixels after a certain timestamp (although I haven't tested that properly)
Source code if you don't want to go to gist ::: spoiler spoiler
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org/>
from PIL import Image, ImageDraw
from datetime import datetime
# Get yours here https://cdn.sc07.company/canvas/2023/pixels.log.txt
log_filename = 'pixels.log.txt'
# Show pixles after this unix timestamp
start_time = 0
# Show specific users (example top 10 pixel placers)
# users = "[email protected] \
# [email protected] \
# [email protected] \
# [email protected] \
# [email protected] \
# [email protected] \
# [email protected] \
# [email protected] \
# [email protected] \
# [email protected]"
# None specified will show ALL
# CASE SENSITIVE!!!
users = None
# Instances. None specified will show ALL instances
# Example, only show blahaj and lemmy.zip
# instances = "lemmy.blahaj.zone lemmy.zip"
instances = None
# Color palette dictionary
color_palette = {
0: "000000",
1: "222222",
2: "555555",
3: "888888",
4: "CDCDCD",
5: "FFFFFF",
6: "FFD5BC",
7: "FFB783",
8: "B66D3D",
9: "77431F",
10: "FC7510",
11: "FCA80E",
12: "FDE817",
13: "FFF491",
14: "BEFF40",
15: "70DD13",
16: "31A117",
17: "0B5F35",
18: "277E6C",
19: "32B69F",
20: "88FFF3",
21: "24B5FE",
22: "125CC7",
23: "262960",
24: "8B2FA8",
25: "D24CE9",
26: "FF59EF",
27: "FFA9D9",
28: "FF6474",
29: "F02523",
30: "B11206",
31: "740C00"
}
# Function to convert hex color to RGB tuple
def hex_to_rgb(hex_color: str) -> tuple[int, int, int]:
return tuple(int(hex_color[i:i+2], 16) for i in (0, 2, 4))
# Mapping pallet index to RGB color values
color_mapping = {index: hex_to_rgb(hex_color) for index, hex_color in color_palette.items()}
# Read log
def read_log_entries(filename: str) -> list[tuple]:
log_entries = []
with open(filename, 'r') as log_file:
for line in log_file:
parts = line.strip().split('\t')
timestamp = parts[0]
user = parts[1]
x_coord = int(parts[2])
y_coord = int(parts[3])
color = int(parts[4])
action = parts[5]
log_entries.append((timestamp, user, x_coord, y_coord, color, action))
return log_entries
def filter_pixels(actions: str, start_time: int, users = None, instances = None):
log_entries = read_log_entries(log_filename)
pixel_actions = {}
for entry in log_entries:
timestamp, user, x_coord, y_coord, color, action = entry
if start_time == 0 or datetime.strptime(timestamp, '%Y-%m-%d %H:%M:%S,%f') > datetime.fromtimestamp(start_time):
if not users or user in users:
if not instances or user.split("@")[-1] in instances:
if action == actions:
pixel_actions[(x_coord, y_coord)] = (user, color_mapping[color], timestamp)
return pixel_actions
def draw_pixels(pixels, output: str) -> None:
image_size = (1000, 1000)
image = Image.new("RGB", image_size, "white")
draw = ImageDraw.Draw(image)
for pixel, (user, color, _) in pixels.items():
x, y = pixel
draw.point((x, y), fill=color)
image.save(output)
draw_pixels(filter_pixels("user place", start_time, users, instances), "output_image.png")
:::
Pixels Placed per Instance
Total number of pixels placed by each instance. This includes ones that have been overwritten.
Edit: Added undo section
| Undo | Placed | Domain |
|---|---|---|
| 5673 | 264489 | lemmy.world |
| 890 | 56092 | feddit.de |
| 704 | 35315 | lemmy.blahaj.zone |
| 510 | 28312 | lemm.ee |
| 369 | 23844 | sh.itjust.works |
| 312 | 22568 | lemmy.ml |
| 224 | 15470 | lemmy.ca |
| 223 | 13954 | toast.ooo |
| 165 | 12916 | programming.dev |
| 194 | 12106 | lemmy.zip |
| 218 | 10057 | beehaw.org |
| 92 | 9109 | lemmy.nz |
| 129 | 8186 | discuss.tchncs.de |
| 131 | 7039 | aussie.zone |
| 20 | 5980 | pawb.social |
| 82 | 5896 | mander.xyz |
| 21 | 5571 | jlai.lu |
| 62 | 4973 | feddit.nl |
| 10 | 4492 | nano.garden |
| 84 | 4450 | lemmy.dbzer0.com |
| 119 | 4413 | sopuli.xyz |
| 97 | 3703 | startrek.website |
| 49 | 3246 | lemmy.fmhy.net |
| 33 | 3214 | feddit.ch |
| 68 | 3101 | ani.social |
| 26 | 3100 | feddit.nu |
| 18 | 2906 | monero.town |
| 30 | 2692 | lemy.lol |
| 18 | 2577 | lemmy.sdf.org |
| 80 | 2526 | feddit.it |
| 27 | 2446 | infosec.pub |
| 5 | 2294 | lemmy.henknet.org |
| 6 | 2213 | lemmynsfw.com |
| 17 | 1941 | reddthat.com |
| 4 | 1820 | kerala.party |
| 24 | 1731 | lib.lgbt |
| 12 | 1726 | no.lastname.nz |
| 20 | 1726 | lemmy.mariusdavid.fr |
| 12 | 1571 | slrpnk.net |
| 38 | 1347 | feddit.dk |
| 2 | 1332 | bookwormstory.social |
| 9 | 1269 | discuss.online |
| 2 | 1239 | lemmy.sidh.bzh |
| 36 | 1232 | fl0w.cc |
| 9 | 1211 | lemmy.eco.br |
| 38 | 1170 | geddit.social |
| 3 | 1122 | szmer.info |
| 11 | 1118 | social.dn42.us |
| 30 | 1104 | lemmy.one |
| 2 | 985 | postit.quantentoast.de |
| 38 | 982 | lemdro.id |
| 1 | 924 | burggit.moe |
| 22 | 921 | midwest.social |
| 3 | 851 | lemmy.pt |
| 1 | 838 | mtgzone.com |
| 6 | 704 | lemmy.federated.club |
| 0 | 663 | casavaga.com |
| 1 | 603 | pornlemmy.com |
| 0 | 570 | lemmyrs.org |
| 20 | 568 | yiffit.net |
| 0 | 513 | lemmy.shtuf.eu |
| 0 | 467 | lemmings.world |
| 10 | 455 | lemmy.antemeridiem.xyz |
| 5 | 444 | red.cyberhase.de |
| 9 | 434 | lemmy.atay.dev |
| 1 | 350 | lemmy.ananace.dev |
| 24 | 325 | monyet.cc |
| 12 | 269 | lemmy.johnnei.org |
| 0 | 254 | wired.bluemarch.art |
| 1 | 233 | lemmy.myserv.one |
| 0 | 221 | l.antiope.link |
| 15 | 219 | lemmy.fan |
| 2 | 213 | lemmy.today |
| 1 | 208 | pricefield.org |
| 1 | 208 | lemmy.douwes.co.uk |
| 0 | 194 | fost.hu |
| 2 | 181 | dubvee.org |
| 1 | 158 | lemmy.jigoku.us.to |
| 0 | 146 | lm.bittervets.org |
| 2 | 136 | waveform.social |
| 0 | 134 | lemmy.name |
| 1 | 129 | discuss.as200950.com |
| 2 | 128 | lemmy.shinomoroll.net |
| 0 | 121 | lemmus.org |
| 1 | 119 | nebu.land |
| 0 | 112 | lemmygrad.ml |
| 1 | 107 | thegarden.land |
| 0 | 102 | lemmy.tf |
| 0 | 101 | lemmy.sedimentarymountains.com |
| 0 | 99 | endlesstalk.org |
| 0 | 95 | czech-lemmy.eu |
| 3 | 92 | lemmy.dcmrobertson.com |
| 0 | 89 | lemmy.cat |
| 1 | 86 | lemmy.horwood.cloud |
| 0 | 84 | ttrpg.network |
| 0 | 70 | lemmy.comfysnug.space |
| 69 | lemmy.dormedas.com | |
| 56 | etaorion.org | |
| 55 | compuverse.uk | |
| 49 | lemmy.sdfeu.org | |
| 44 | jemmy.jeena.net | |
| 39 | outpost.zeuslink.net | |
| 38 | rabbitea.rs | |
| 37 | lemmy.place | |
| 37 | lemmy.lukeog.com | |
| 29 | lemmy.studio | |
| 24 | orbiting.observer | |
| 23 | lzrprt.sbs | |
| 13 | thelemmy.club | |
| 12 | lmmy.net | |
| 12 | feddit.jcm.re | |
| 9 | lemmy.federa.net | |
| 9 | lemmy.dynatron.me | |
| 7 | lemmy.stuart.fun | |
| 6 | lemmy.felixperron.com | |
| 6 | lemm.live | |
| 3 | l.henlo.fi | |
| 3 | lemmy.tiebe.dev | |
| 3 | i.d0ntknow.me | |
| 2 | sha1.nl | |
| 2 | l.rickebo.com | |
| 2 | lm.paradisus.day | |
| 2 | lemmy.secnd.me | |
| 2 | lemmy.potatoe.ca | |
| 2 | leminal.space | |
| 1 | prxs.site | |
| 1 | lmmy.dk | |
| 1 | lemmy.timwaterhouse.com | |
| 1 | lemmy.run | |
| 1 | lemmy.loomy.li | |
| 1 | lemmy.kde.social | |
| 1 | lemmy.hoyle.me.uk |
All actions:
::: spoiler spoiler
| Actions | Instance |
|---|---|
| 270946 | lemmy.world |
| 57002 | feddit.de |
| 36019 | lemmy.blahaj.zone |
| 28898 | lemm.ee |
| 24286 | sh.itjust.works |
| 22880 | lemmy.ml |
| 15694 | lemmy.ca |
| 14630 | toast.ooo |
| 13081 | programming.dev |
| 12300 | lemmy.zip |
| 10275 | beehaw.org |
| 9201 | lemmy.nz |
| 8324 | discuss.tchncs.de |
| 7170 | aussie.zone |
| 6000 | pawb.social |
| 5978 | mander.xyz |
| 5592 | jlai.lu |
| 5035 | feddit.nl |
| 4534 | lemmy.dbzer0.com |
| 4532 | sopuli.xyz |
| 4502 | nano.garden |
| 3800 | startrek.website |
| 3371 | lemmy.fmhy.net |
| 3247 | feddit.ch |
| 3169 | ani.social |
| 3126 | feddit.nu |
| 2924 | monero.town |
| 2722 | lemy.lol |
| 2606 | feddit.it |
| 2595 | lemmy.sdf.org |
| 2473 | infosec.pub |
| 2299 | lemmy.henknet.org |
| 2250 | lemmynsfw.com |
| 2038 | reddthat.com |
| 1824 | kerala.party |
| 1755 | lib.lgbt |
| 1746 | lemmy.mariusdavid.fr |
| 1738 | no.lastname.nz |
| 1583 | slrpnk.net |
| 1383 | feddit.dk |
| 1355 | discuss.online |
| 1334 | bookwormstory.social |
| 1241 | lemmy.sidh.bzh |
| 1238 | fl0w.cc |
| 1220 | lemmy.eco.br |
| 1208 | geddit.social |
| 1134 | lemmy.one |
| 1129 | social.dn42.us |
| 1125 | szmer.info |
| 1093 | lemdro.id |
| 987 | postit.quantentoast.de |
| 943 | midwest.social |
| 925 | burggit.moe |
| 854 | lemmy.pt |
| 839 | mtgzone.com |
| 710 | lemmy.federated.club |
| 663 | casavaga.com |
| 604 | pornlemmy.com |
| 588 | yiffit.net |
| 570 | lemmyrs.org |
| 513 | lemmy.shtuf.eu |
| 470 | lemmings.world |
| 457 | lemmy.antemeridiem.xyz |
| 449 | red.cyberhase.de |
| 443 | lemmy.atay.dev |
| 351 | lemmy.ananace.dev |
| 349 | monyet.cc |
| 281 | lemmy.johnnei.org |
| 254 | wired.bluemarch.art |
| 234 | lemmy.myserv.one |
| 234 | lemmy.fan |
| 221 | l.antiope.link |
| 215 | lemmy.today |
| 209 | pricefield.org |
| 209 | lemmy.douwes.co.uk |
| 194 | fost.hu |
| 183 | dubvee.org |
| 159 | lemmy.jigoku.us.to |
| 146 | lm.bittervets.org |
| 138 | waveform.social |
| 134 | lemmy.name |
| 130 | discuss.as200950.com |
| 128 | lemmy.shinomoroll.net |
| 121 | lemmus.org |
| 120 | nebu.land |
| 112 | lemmygrad.ml |
| 108 | thegarden.land |
| 102 | lemmy.tf |
| 101 | lemmy.sedimentarymountains.com |
| 99 | endlesstalk.org |
| 95 | lemmy.dcmrobertson.com |
| 95 | czech-lemmy.eu |
| 89 | lemmy.cat |
| 87 | lemmy.horwood.cloud |
| 84 | ttrpg.network |
| 70 | lemmy.comfysnug.space |
| 69 | lemmy.dormedas.com |
| 57 | etaorion.org |
| 55 | compuverse.uk |
| 49 | lemmy.sdfeu.org |
| 44 | jemmy.jeena.net |
| 42 | rabbitea.rs |
| 39 | outpost.zeuslink.net |
| 38 | lemmy.lukeog.com |
| 37 | lemmy.place |
| 29 | lemmy.studio |
| 24 | orbiting.observer |
| 23 | lzrprt.sbs |
| 18 | lemmy.federa.net |
| 13 | thelemmy.club |
| 13 | feddit.jcm.re |
| 12 | lmmy.net |
| 9 | lemmy.dynatron.me |
| 9 | lemm.live |
| 7 | lemmy.stuart.fun |
| 6 | lemmy.felixperron.com |
| 3 | l.henlo.fi |
| 3 | lemmy.tiebe.dev |
| 3 | i.d0ntknow.me |
| 2 | sha1.nl |
| 2 | l.rickebo.com |
| 2 | lm.paradisus.day |
| 2 | lemmy.secnd.me |
| 2 | lemmy.potatoe.ca |
| 2 | leminal.space |
| 1 | prxs.site |
| 1 | lmmy.dk |
| 1 | lemmy.timwaterhouse.com |
| 1 | lemmy.run |
| 1 | lemmy.loomy.li |
| 1 | lemmy.kde.social |
| 1 | lemmy.hoyle.me.uk |
| ::: |
Top 10 Most Contested Pixels
Top ten most contested pixels. Not too exciting, but a special shout out for the dedication of the two users who placed at 175, 171
Users who posted at 175, 171
Top 100 Pixel Placers!
(I hope these automatically tag as I am not manually doing it lol)
Edit: This includes undoing pixels as well! I am working on removing them from this tally. Now using @[email protected]'s more accurate leaderboard https://toast.ooo/post/289361
4146 [email protected]
3898 [email protected]
3604 [email protected]
3569 [email protected]
2940 [email protected]
2878 [email protected]
2871 [email protected]
2800 [email protected]
2783 [email protected]
2727 [email protected]
2634 [email protected]
2613 [email protected]
2501 [email protected]
2495 [email protected]
2446 [email protected]
2412 [email protected]
2402 [email protected]
2366 [email protected]
2345 [email protected]
2308 [email protected]
2300 [email protected]
2285 [email protected]
2226 [email protected]
2204 [email protected]
2204 [email protected]
2192 [email protected]
2107 [email protected]
2086 [email protected]
2063 [email protected]
2043 [email protected]
2025 [email protected]
2017 [email protected]
2001 [email protected]
1923 [email protected]
1904 [email protected]
1899 [email protected]
1884 [email protected]
1882 [email protected]
1877 [email protected]
1876 [email protected]
1865 [email protected]
1817 [email protected]
1815 [email protected]
1810 [email protected]
1799 [email protected]
1798 [email protected]
1788 [email protected]
1780 [email protected]
1720 [email protected]
1706 [email protected]
1701 [email protected]
1681 [email protected]
1671 [email protected]
1664 [email protected]
1629 [email protected]
1629 [email protected]
1619 [email protected]
1613 [email protected]
1609 [email protected]
1592 [email protected]
1581 [email protected]
1564 [email protected]
1556 [email protected]
1549 [email protected]
1541 [email protected]
1540 [email protected]
1540 [email protected]
1539 [email protected]
1535 [email protected]
1503 [email protected]
1501 [email protected]
1493 [email protected]
1486 [email protected]
1471 [email protected]
1463 [email protected]
1451 [email protected]
1438 [email protected]
1431 [email protected]
1431 [email protected]
1425 [email protected]
1423 [email protected]
1411 [email protected]
1408 [email protected]
1408 [email protected]
1402 [email protected]
1388 [email protected]
1388 [email protected]
1385 [email protected]
1385 [email protected]
1374 [email protected]
1373 [email protected]
1365 [email protected]
1361 [email protected]
1344 [email protected]
1336 [email protected]
1321 [email protected]
1320 [email protected]
1311 [email protected]
1309 [email protected]
1302 [email protected]
Original list, which includes undos!
::: spoiler spoiler
4242 [email protected]
4000 [email protected]
3745 [email protected]
3612 [email protected]
3396 [email protected]
3099 [email protected]
2911 [email protected]
2902 [email protected]
2828 [email protected]
2807 [email protected]
2727 [email protected]
2702 [email protected]
2571 [email protected]
2526 [email protected]
2514 [email protected]
2497 [email protected]
2470 [email protected]
2431 [email protected]
2418 [email protected]
2406 [email protected]
2397 [email protected]
2324 [email protected]
2318 [email protected]
2260 [email protected]
2255 [email protected]
2238 [email protected]
2208 [email protected]
2185 [email protected]
2100 [email protected]
2091 [email protected]
2065 [email protected]
2051 [email protected]
2043 [email protected]
2027 [email protected]
2008 [email protected]
2006 [email protected]
1982 [email protected]
1951 [email protected]
1950 [email protected]
1909 [email protected]
1894 [email protected]
1891 [email protected]
1886 [email protected]
1872 [email protected]
1867 [email protected]
1837 [email protected]
1830 [email protected]
1827 [email protected]
1821 [email protected]
1765 [email protected]
1756 [email protected]
1755 [email protected]
1746 [email protected]
1721 [email protected]
1706 [email protected]
1703 [email protected]
1677 [email protected]
1675 [email protected]
1673 [email protected]
1649 [email protected]
1625 [email protected]
1613 [email protected]
1592 [email protected]
1588 [email protected]
1587 [email protected]
1584 [email protected]
1577 [email protected]
1570 [email protected]
1553 [email protected]
1549 [email protected]
1548 [email protected]
1536 [email protected]
1535 [email protected]
1515 [email protected]
1514 [email protected]
1511 [email protected]
1504 [email protected]
1499 [email protected]
1493 [email protected]
1488 [email protected]
1475 [email protected]
1468 [email protected]
1467 [email protected]
1447 [email protected]
1447 [email protected]
1440 [email protected]
1438 [email protected]
1431 [email protected]
1427 [email protected]
1425 [email protected]
1414 [email protected]
1409 [email protected]
1408 [email protected]
1390 [email protected]
1390 [email protected]
1387 [email protected]
1375 [email protected]
1363 [email protected]
1361 [email protected]
1337 [email protected] :::
Among us welcome at EndeavourOS logo (23, 115)
There's lots of room for more amongus by the logo (23, 115) if anyone needs places to build them :)
The amongus are welcome and will be protected
Good knowledge sources for tinkering Firefox
I am looking for alternative knowledge sources to mozillazine that's a bit more up to date.
Specifically, I am after something that explains advanced about:config options and what each sqlite file and storage directories in my profile are actually used for. When I search online for things I get unhelpful support articles from mozilla and random reddit threads with conflicting information.
I've played around with a lot of things through a lot of trial and error (I can share some about:config values if anyone's interested in them), but I'd like to be directed somewhere I can go to and check to make sure I won't break my profile.
I already use ffprofile to set up my user.js, but I'm looking for something with more documentation without having to resort to reading the source code of firefox.
Unexpected gifts
It's a gift until it's a subscription service I can't cancel lol
Issues viewing from other instances. Err 404
My friend is having issues viewing/subscribing to this community from another instance. Is it set up that way on purpose or is the community too small to be indexed?
I tried viewing here from a couple of other of instances and I just get:
404: couldnt_find_community
Wondering if this is a known issue or localised to us two. I also couldn't find any other vegan communities, so am unsure where to go from here.