88
What did I forget? (lemmy.world)
submitted 1 month ago* (last edited 1 month ago) by benni@lemmy.world to c/lemmyshitpost@lemmy.world
top 50 comments
sorted by: hot top controversial new old
[-] residentoflaniakea@discuss.tchncs.de 16 points 1 month ago* (last edited 1 month ago)

I see a flag. I like flags. Especially the Japanese flags. I don't specifically care for Japan, but the flag is one of my favourites. I prefer flags with low entropy: so I wrote a script once that ranks the nations flags by entropy so I could quantify my preference. Thanks for letting me infodump a bit.

Edit: Due to people aski g for it: here is the top ten of my ranking:

Nations' flag entropy ranking (n=208). 
Image source: Wikimedia.

0	white_field			-1.439759075204976e-10
1	Indonesia			3.3274441922278752
2	Germany			3.391689777286108
3	South_Ossetia			3.8174437373506778
4	Monaco			3.9718936201427066
5	Poland			3.9719290780440133
6	Austria			4.372592975412404
7	Ukraine			4.405280849871184
8	Hungary			4.4465472496385985
9	Albania			4.6134257669087395
10	Mauritius			4.707109405551959
11	Luxembourg			4.721346585737304

Here's how I defined the entropy value for each flag:

def color_weighted_spectral_entropy(image):
    b_channel, g_channel, r_channel = cv2.split(image)
    
    # Calculate spectral entropy for each channel
    def channel_spectral_entropy(channel):
        f_transform = np.fft.fft2(channel)
        f_shifted = np.fft.fftshift(f_transform)
        magnitude_spectrum = np.abs(f_shifted)
        if np.sum(magnitude_spectrum) > 0:
            normalized = magnitude_spectrum / np.sum(magnitude_spectrum)
        else:
            normalized = magnitude_spectrum
        # Entropy calculation with color channel weighting
        epsilon = 1e-10
        entropy = -np.sum(normalized * np.log2(normalized + epsilon))
        
        return entropy
    
    weighted_entropy = (
        0.333 * channel_spectral_entropy(b_channel) +
        0.333 * channel_spectral_entropy(g_channel) +
        0.333 * channel_spectral_entropy(r_channel)
    )
    
    return float(weighted_entropy)

"White_field" is just an array that holds zeroes. I use this as a sanity check. Code is on github. I can send DM to whomever is interested. I guess it can also be searched for.

[-] CelloMike@lemmy.world 7 points 1 month ago

Well you gotta share that ranking now...

[-] ByteJunk@lemmy.world 5 points 1 month ago

And that script. I'm curious how you implemented it.

I owe it to the community. Since I don't have it anymore I am coding it up again. Allow me some time - it's weekend and I have family to look after.

[-] FishFace@piefed.social 3 points 1 month ago

Hmm. It seems weird that any tricolour flags would have different entropies, but I don't know how you would otherwise do a multichannel entropy.

I was imagining a kolmogorov-esque doodad

Yes! And weirder that bicolour banded flags are not consistently on top. I suspect some float errors. I just know that using the typical Shannon style does even worse. I might add some filter that calculates a differential or something.

[-] FishFace@piefed.social 2 points 1 month ago

How are you defining the entropy of a flag?

[-] ArmoredThirteen@lemmy.zip 1 points 1 month ago

Subtracting it's normalized negentropy from 1

[-] AnarchistArtificer@slrpnk.net 2 points 1 month ago

I love that you have multiple people replying to you asking for technical details on how you ranked the flag entropy. This is how you know that you are amongst your people here <3

[-] Axolotl_cpp@feddit.it 2 points 1 month ago

How do you rate entropy? Is the script open source so we can see it?

load more comments (2 replies)
load more comments (3 replies)
[-] tatterdemalion@programming.dev 10 points 1 month ago

I'm not autistic but I like most of these things.

[-] LeaveITtoThePros@lemmy.ca 7 points 1 month ago
[-] CanadianCarl@sh.itjust.works 5 points 1 month ago

No space as well, or dinosaurs in space?

[-] LeaveITtoThePros@lemmy.ca 1 points 4 weeks ago

Either and both! 🤓

[-] QuinnyCoded@sh.itjust.works 6 points 1 month ago* (last edited 1 month ago)

haterner miku!!!!

*edit, since OP is adding things in I removed the white background. Also for OP, you can use https://www.remove.bg/upload for that, you don't get the full quality image but for this use case it's good enough

[-] Naho_Zako@piefed.zip 5 points 1 month ago

No Sonic mention? Shame

[-] passepartout@feddit.org 5 points 1 month ago

C and Rust mentioned in one meme? Be more careful to not cause a ruckus next time.

[-] bored_boar_onboard@lemmy.world 2 points 1 month ago

Yeah, please limit your programming language mentions to memory safe languages only!

load more comments (1 replies)
[-] UltraGiGaGigantic@lemmy.ml 5 points 1 month ago

Why do autistic people love pie charts with red circles?

load more comments (3 replies)
[-] cobalt32@lemmy.blahaj.zone 4 points 1 month ago

You forgot pride flags, blahaj, astronomy, and psychedelics. I would also say far-left politics, but there's plenty of right-wing autists out there too.

[-] JasonDJ@lemmy.zip 4 points 1 month ago

Thinkpads are objectively good laptops tho. At least T series.

Especially for linux.

[-] HeyThisIsntTheYMCA@lemmy.world 3 points 1 month ago

Fursuiting ware

[-] obinice@lemmy.world 3 points 1 month ago

Stupidly large murika style cars are gonna be a no from me dawg

Look at that thing, the bonnet comes up to this stomach!

Not autism approved nu-uh

[-] titanicx@lemmy.zip 3 points 1 month ago

Aren't these things like popular among, well, people in general? There isn't really anything here that sticks out.

[-] CoffeeSoldier@sh.itjust.works 3 points 1 month ago

Is this how I find out I'm autistic??

[-] webp@mander.xyz 5 points 1 month ago

This is how you find out you're cool 😎

[-] myedition8@lemmy.world 2 points 1 month ago

Cool and autistic 😎

[-] kittenzrulz123@lemmy.dbzer0.com 3 points 1 month ago

Me except im not that intrested in Japan (I love Vietnam tho), im not that intrested in Minecraft (ive just played it for too long), not that intrested in Pokémon (never got into it). You forgot a few things tho

  1. Programming socks
  2. Star Trek
  3. :3
  4. Mechanical keyboards
  5. Walkable cities (and a general obsession with people focused city planning)
load more comments (1 replies)
[-] traceur402@lemmy.blahaj.zone 3 points 1 month ago

Wow, the precision with which this struck me is concerning. I'm really, incredibly autistic at all times aren't I?

[-] Venus_Ziegenfalle@feddit.org 2 points 1 month ago

Tylenol sure is a hell of a drug

[-] renlok@lemmy.world 3 points 1 month ago

I feel personally attacked, how did you know my entire personality

[-] Cikos@lemmy.world 2 points 1 month ago

black people are popular with the autistics?

[-] GreenKnight23@lemmy.world 1 points 1 month ago

I have met far more certifiably autistic black anime fans than white ones.

load more comments (1 replies)
[-] SlartyBartFast@sh.itjust.works 2 points 1 month ago

Why is Lain so popular these days? I still have my rips from 20 years ago on an old hard drive.

I just don't seem to understand.

[-] Sabata11792@ani.social 1 points 1 month ago

We started living in a terminally online cyberpunk dystopia around 2020.

[-] Lemminary@lemmy.world 2 points 1 month ago

Japan, Lemmy, Minecraft. Damn, I think I'm autistic.

[-] A_Very_Big_Fan@lemmy.world 2 points 1 month ago

Not me learning how to solve a rubix cube last week and buying 3 more cubes recently

[-] ftbd@feddit.org 2 points 1 month ago

What's up with Maxwell and Autism?

load more comments (1 replies)
[-] tomiant@piefed.social 2 points 1 month ago

I didn't use to be autistic.

But then it got hyped so I got on board and now I am also autistic.

Because I don't want to be different from my peers.

[-] Mwa@thelemmy.club 2 points 1 month ago* (last edited 1 month ago)

i see linux,minecraft,japan(i just like the games that originate from this country mostly),thinkpad,C,Rust
wait....
I think I’m autistic.

[-] Hideakikarate@sh.itjust.works 2 points 1 month ago

Based on posts around here, the Roman Empire.

load more comments (1 replies)
[-] munsking@lemmy.world 2 points 1 month ago

i'm pretty sure playing eve online is a diagnostic criterium for aspergers

[-] sharkfucker420@lemmy.ml 2 points 1 month ago

What do the cat ears have to do with Maxwell's equations

[-] benni@lemmy.world 1 points 1 month ago

Couldn't nicely put pngs with transparent backgrounds in there for these two, so they both got white backgrounds and put next to each other.

load more comments (1 replies)
[-] Amir@lemmy.ml 2 points 1 month ago* (last edited 1 month ago)

Magic the Gathering and D&D

load more comments (1 replies)
[-] pineapplelover@lemmy.dbzer0.com 1 points 1 month ago
load more comments (2 replies)
load more comments
view more: next ›
this post was submitted on 29 Nov 2025
88 points (91.5% liked)

Lemmy Shitpost

36307 readers
802 users here now

Welcome to Lemmy Shitpost. Here you can shitpost to your hearts content.

Anything and everything goes. Memes, Jokes, Vents and Banter. Though we still have to comply with lemmy.world instance rules. So behave!


Rules:

1. Be Respectful


Refrain from using harmful language pertaining to a protected characteristic: e.g. race, gender, sexuality, disability or religion.

Refrain from being argumentative when responding or commenting to posts/replies. Personal attacks are not welcome here.

...


2. No Illegal Content


Content that violates the law. Any post/comment found to be in breach of common law will be removed and given to the authorities if required.

That means:

-No promoting violence/threats against any individuals

-No CSA content or Revenge Porn

-No sharing private/personal information (Doxxing)

...


3. No Spam


Posting the same post, no matter the intent is against the rules.

-If you have posted content, please refrain from re-posting said content within this community.

-Do not spam posts with intent to harass, annoy, bully, advertise, scam or harm this community.

-No posting Scams/Advertisements/Phishing Links/IP Grabbers

-No Bots, Bots will be banned from the community.

...


4. No Porn/ExplicitContent


-Do not post explicit content. Lemmy.World is not the instance for NSFW content.

-Do not post Gore or Shock Content.

...


5. No Enciting Harassment,Brigading, Doxxing or Witch Hunts


-Do not Brigade other Communities

-No calls to action against other communities/users within Lemmy or outside of Lemmy.

-No Witch Hunts against users/communities.

-No content that harasses members within or outside of the community.

...


6. NSFW should be behind NSFW tags.


-Content that is NSFW should be behind NSFW tags.

-Content that might be distressing should be kept behind NSFW tags.

...

If you see content that is a breach of the rules, please flag and report the comment and a moderator will take action where they can.


Also check out:

Partnered Communities:

1.Memes

2.Lemmy Review

3.Mildly Infuriating

4.Lemmy Be Wholesome

5.No Stupid Questions

6.You Should Know

7.Comedy Heaven

8.Credible Defense

9.Ten Forward

10.LinuxMemes (Linux themed memes)


Reach out to

All communities included on the sidebar are to be made in compliance with the instance rules. Striker

founded 2 years ago
MODERATORS