622
submitted 10 months ago* (last edited 10 months ago) by benni@lemmy.world to c/lemmyshitpost@lemmy.world
top 50 comments
sorted by: hot top new old
[-] residentoflaniakea@discuss.tchncs.de 156 points 10 months ago* (last edited 10 months 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 71 points 10 months ago

Well you gotta share that ranking now...

[-] ByteJunk@lemmy.world 49 points 10 months ago

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

[-] residentoflaniakea@discuss.tchncs.de 8 points 10 months ago

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.

[-] AnarchistArtificer@slrpnk.net 22 points 10 months 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

[-] FishFace@piefed.social 20 points 10 months ago

How are you defining the entropy of a flag?

[-] ArmoredThirteen@lemmy.zip 17 points 10 months ago

Subtracting it's normalized negentropy from 1

load more comments (1 replies)
[-] Axolotl_cpp@feddit.it 18 points 10 months ago

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

load more comments (2 replies)
[-] idealotus@lemmy.world 17 points 10 months ago

....and what is the stack ranked result?

load more comments (1 replies)
[-] FishFace@piefed.social 6 points 10 months 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

load more comments (1 replies)
load more comments (7 replies)
[-] passepartout@feddit.org 78 points 10 months ago

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

[-] bored_boar_onboard@lemmy.world 5 points 10 months ago

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

load more comments (1 replies)
[-] sharkfucker420@lemmy.ml 42 points 10 months ago

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

[-] zaphod@sopuli.xyz 26 points 10 months ago

No idea. Cat ears seem to be more popular with computer science people, should've put them on the Rust logo instead.

load more comments (2 replies)
[-] benni@lemmy.world 12 points 10 months 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)
load more comments (1 replies)
[-] traceur402@lemmy.blahaj.zone 37 points 10 months 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 22 points 10 months ago

Tylenol sure is a hell of a drug

[-] obinice@lemmy.world 33 points 10 months 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

[-] CoffeeSoldier@sh.itjust.works 31 points 10 months ago

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

[-] webp@mander.xyz 21 points 10 months ago

This is how you find out you're cool 😎

[-] myedition8@lemmy.world 10 points 10 months ago

Cool and autistic 😎

[-] tatterdemalion@programming.dev 25 points 10 months ago

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

load more comments (1 replies)
[-] BagOfHeavyStones@piefed.social 18 points 10 months ago
load more comments (1 replies)
[-] ftbd@feddit.org 18 points 10 months ago

What's up with Maxwell and Autism?

[-] benni@lemmy.world 13 points 10 months ago

I wanted to represent science, math and engineering with those.

load more comments (1 replies)
[-] Cikos@lemmy.world 15 points 10 months ago

black people are popular with the autistics?

[-] GreenKnight23@lemmy.world 15 points 10 months ago

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

load more comments (1 replies)
[-] renlok@lemmy.world 15 points 10 months ago

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

[-] Naho_Zako@piefed.zip 15 points 10 months ago

No Sonic mention? Shame

[-] idiomaddict@lemmy.world 13 points 10 months ago
[-] UltraGiGaGigantic@lemmy.ml 11 points 10 months ago

Why do autistic people love pie charts with red circles?

load more comments (3 replies)
[-] SlartyBartFast@sh.itjust.works 11 points 10 months 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.

[-] benni@lemmy.world 6 points 10 months ago* (last edited 10 months ago)

A shame, you seemed an honest man.

[-] Sabata11792@ani.social 5 points 10 months ago

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

[-] Hackworth@piefed.ca 6 points 10 months ago

Present day. Present time!

load more comments (1 replies)
load more comments (2 replies)
[-] kittenzrulz123@lemmy.dbzer0.com 11 points 10 months 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 (2 replies)
[-] Hideakikarate@sh.itjust.works 10 points 10 months ago

Based on posts around here, the Roman Empire.

load more comments (1 replies)
[-] LeaveITtoThePros@lemmy.ca 10 points 10 months ago
load more comments (4 replies)
[-] Mwa@thelemmy.club 9 points 10 months ago* (last edited 10 months 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.

load more comments (1 replies)
[-] QuinnyCoded@sh.itjust.works 8 points 10 months ago* (last edited 10 months 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

load more comments (2 replies)
[-] tomiant@piefed.social 8 points 10 months 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.

[-] cobalt32@lemmy.blahaj.zone 7 points 10 months 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 7 points 10 months ago

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

Especially for linux.

[-] pineapplelover@lemmy.dbzer0.com 6 points 10 months ago
load more comments (3 replies)
[-] RacerX@lemmy.zip 6 points 10 months ago

I obsess over half of these things and my kids' mom the other. Our kids never stood a chance.

[-] pHr34kY@lemmy.world 6 points 10 months ago* (last edited 10 months ago)

It needs timepieces. Or am I the only one who likes NTP, ISO-8601, sundials and Casio F-91Ws?

load more comments (1 replies)
[-] HeyThisIsntTheYMCA@lemmy.world 5 points 10 months ago

Fursuiting ware

[-] Amir@lemmy.ml 5 points 10 months ago* (last edited 10 months ago)

Magic the Gathering and D&D

load more comments (1 replies)
load more comments
view more: next ›
this post was submitted on 29 Nov 2025
622 points (95.1% liked)

Lemmy Shitpost

42118 readers
5738 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 3 years ago
MODERATORS