What did I forget?

a year ago by benni to c/lemmyshitpost

residentoflaniakea 156 points a year 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.

path: 0 20751323, hotness: undefined, score: 156, children: 21
CelloMike 71 points a year ago

Well you gotta share that ranking now...

path: 0 20751323 20751441, hotness: undefined, score: 71, children: 2
ByteJunk 49 points a year ago

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

path: 0 20751323 20751441 20751565, hotness: undefined, score: 49, children: 0
residentoflaniakea 8 points a year 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.

path: 0 20751323 20751441 20756837, hotness: undefined, score: 8, children: 0
AnarchistArtificer 22 points a year 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

path: 0 20751323 20752713, hotness: undefined, score: 22, children: 0
FishFace 20 points a year ago

How are you defining the entropy of a flag?

path: 0 20751323 20751463, hotness: undefined, score: 20, children: 2
ArmoredThirteen 17 points a year ago

Subtracting it's normalized negentropy from 1

path: 0 20751323 20751463 20752162, hotness: undefined, score: 17, children: 0
gandalf_der_12te 1 point a year ago

i'd define it as size of an svg file that represents the flag, since more complex flag -> more fundamental elements (rectangles, circles) needed -> bigger file size -> more entropy.

path: 0 20751323 20751463 20758791, hotness: undefined, score: 1, children: 0
Axolotl_cpp 18 points a year ago

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

path: 0 20751323 20751580, hotness: undefined, score: 18, children: 2
residentoflaniakea 2 points a year ago

I tried different definitions and settled on spectral entropy. This one uses fourier transform and (I think) this takes the spacial relation of the pixels into account, as opposed to the more common Shannon definition. I'd like to share it but am not sure on how to do that: were I to use GitHub I would doxx myself.

path: 0 20751323 20751580 20758055, hotness: undefined, score: 2, children: 1
Axolotl_cpp 2 points a year ago

I see, thank you that's interessing;

Btw there is gitlab as github alternative but i think that making another gh account is just better then. Another solution is making here a spoiler with the code in it

path: 0 20751323 20751580 20758055 20761150, hotness: undefined, score: 2, children: 0
idealotus 17 points a year ago

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

path: 0 20751323 20751436, hotness: undefined, score: 17, children: 1
residentoflaniakea 2 points a year ago

That really depends on the algorithm used. Ideally it takes colous and spacial information into account. I'll keep you posted on the ranking.

path: 0 20751323 20751436 20760435, hotness: undefined, score: 2, children: 0
FishFace 6 points a year 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

path: 0 20751323 20762485, hotness: undefined, score: 6, children: 1
residentoflaniakea 5 points a year ago

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.

path: 0 20751323 20762485 20766482, hotness: undefined, score: 5, children: 0
drosophila 5 points a year ago

I like Kazakhstan's flag because I think its a nice combination of colors:

Its not very low entropy though, at least not compared to ones like Germany's or Ukraine's.

path: 0 20751323 20766843, hotness: undefined, score: 5, children: 0
prole 4 points a year ago

What is it about the flag of Japan that you like so much?

path: 0 20751323 20753710, hotness: undefined, score: 4, children: 2
clay_pidgin 1 point a year ago

Two colors, with a basic shape centered? I guess it's ok.

path: 0 20751323 20753710 20756184, hotness: undefined, score: 1, children: 0
residentoflaniakea 1 point a year ago

Simplicity I suppose. Colour combination. In my opinion if i can draw it from memory it's a good flag.

path: 0 20751323 20753710 20757497, hotness: undefined, score: 1, children: 0
voodooattack 3 points a year ago

“Welcome to fun with flags!”

path: 0 20751323 20753664, hotness: undefined, score: 3, children: 0
kittenzrulz123 2 points a year ago

I also love flags, flags are so beautiful (except the flag of Haiti, fuck you Haiti with your MS paint looking flag)

path: 0 20751323 20756622, hotness: undefined, score: 2, children: 1
residentoflaniakea 2 points a year ago

Their previous version was indeed without the coat of arms. Much cooler I think. During that time the Liechtenstein flag was identical, but they (Liechtenstein) changed it upon discovery.

path: 0 20751323 20756622 20757571, hotness: undefined, score: 2, children: 0
passepartout 78 points a year ago

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

path: 0 20751150, hotness: undefined, score: 78, children: 2
bored_boar_onboard 5 points a year ago

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

path: 0 20751150 20755824, hotness: undefined, score: 5, children: 1
neox_ 2 points a year ago path: 0 20751150 20755824 20762804, hotness: undefined, score: 2, children: 0
sharkfucker420 42 points a year ago

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

path: 0 20751207, hotness: undefined, score: 42, children: 6
zaphod 26 points a year ago

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

path: 0 20751207 20751369, hotness: undefined, score: 26, children: 2
AllNewTypeFace 5 points a year ago

Aren’t they more queer than autistic (though probably falling in the overlap)?

path: 0 20751207 20751369 20753815, hotness: undefined, score: 5, children: 1
Lemminary 5 points a year ago

As a queer, I think they're more popular with the dweebs. But they're inevitably popular with the queer dweebs.

path: 0 20751207 20751369 20753815 20758012, hotness: undefined, score: 5, children: 0
benni 12 points a year 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.

path: 0 20751207 20752648, hotness: undefined, score: 12, children: 1
webp 3 points a year ago

Why not put it in the JP flag?

path: 0 20751207 20752648 20755377, hotness: undefined, score: 3, children: 0
brucethemoose 2 points a year ago

My interpretation is noise sensitivity. Especially when thinking.

path: 0 20751207 20753154, hotness: undefined, score: 2, children: 0
traceur402 37 points a year ago

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

path: 0 20751100, hotness: undefined, score: 37, children: 1
Venus_Ziegenfalle 22 points a year ago

Tylenol sure is a hell of a drug

path: 0 20751100 20752552, hotness: undefined, score: 22, children: 0
obinice 33 points a year 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

path: 0 20751555, hotness: undefined, score: 33, children: 0
CoffeeSoldier 31 points a year ago

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

path: 0 20754213, hotness: undefined, score: 31, children: 2
webp 21 points a year ago

This is how you find out you're cool 😎

path: 0 20754213 20755313, hotness: undefined, score: 21, children: 1
myedition8 10 points a year ago

Cool and autistic 😎

path: 0 20754213 20755313 20758455, hotness: undefined, score: 10, children: 0
tatterdemalion 25 points a year ago

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

path: 0 20758668, hotness: undefined, score: 25, children: 1
FatVegan 4 points a year ago

I'm autistic and the only thing i like is D&D. Trains are fine i guess, but I don't particularly care for them

path: 0 20758668 20767771, hotness: undefined, score: 4, children: 0
BagOfHeavyStones 19 points a year ago path: 0 20752436, hotness: undefined, score: 19, children: 1
unknown 4 points a year ago

'Drop it like it's hot' is the first thing I think of when I see that pic of Thomas.

path: 0 20752436 20758480, hotness: undefined, score: 4, children: 0
ftbd 18 points a year ago

What's up with Maxwell and Autism?

path: 0 20753120, hotness: undefined, score: 18, children: 2
benni 13 points a year ago

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

path: 0 20753120 20754035, hotness: undefined, score: 13, children: 1
gandalf_der_12te 2 points a year ago path: 0 20753120 20754035 20758754, hotness: undefined, score: 2, children: 0
Naho_Zako 15 points a year ago

No Sonic mention? Shame

path: 0 20757646, hotness: undefined, score: 15, children: 0
Cikos 15 points a year ago

black people are popular with the autistics?

path: 0 20752617, hotness: undefined, score: 15, children: 2
GreenKnight23 15 points a year ago

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

path: 0 20752617 20752896, hotness: undefined, score: 15, children: 0
ivanafterall 4 points a year ago

If there's ever a race war, I'm 100% team black, if they'll have me.

path: 0 20752617 20756870, hotness: undefined, score: 4, children: 0
renlok 15 points a year ago

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

path: 0 20755441, hotness: undefined, score: 15, children: 0
idiomaddict 13 points a year ago

Conlangs!!

path: 0 20752259, hotness: undefined, score: 13, children: 0
kittenzrulz123 11 points a year 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)
path: 0 20756554, hotness: undefined, score: 11, children: 2
Sp00kyB00k 3 points a year ago

Socks as in Berkeley Sockets or socks with programming Lingo on them?

path: 0 20756554 20757828, hotness: undefined, score: 3, children: 1
kittenzrulz123 5 points a year ago

Neither, thigh highs :3

path: 0 20756554 20757828 20758431, hotness: undefined, score: 5, children: 0
UltraGiGaGigantic 11 points a year ago

Why do autistic people love pie charts with red circles?

path: 0 20766513, hotness: undefined, score: 11, children: 3
NikkiDimes 2 points a year ago

正直、全くわかない

path: 0 20766513 20779608, hotness: undefined, score: 2, children: 2
UltraGiGaGigantic 1 point 10 months ago

The 3rd character looks like an arrow so I can only assume shots have been fired.

path: 0 20766513 20779608 20800218, hotness: undefined, score: 1, children: 1
NikkiDimes 1 point 10 months ago

No, no, arrow is obviously 矢, silly! 全 is all :D

path: 0 20766513 20779608 20800218 20816783, hotness: undefined, score: 1, children: 0
SlartyBartFast 11 points a year 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.

path: 0 20755128, hotness: undefined, score: 11, children: 6
benni 6 points a year ago

A shame, you seemed an honest man.

path: 0 20755128 20756162, hotness: undefined, score: 6, children: 0
Sabata11792 5 points a year ago

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

path: 0 20755128 20757509, hotness: undefined, score: 5, children: 2
Hackworth 6 points a year ago

Present day. Present time!

path: 0 20755128 20757509 20762840, hotness: undefined, score: 6, children: 0
gandalf_der_12te 1 point a year ago

if you're that online, you should consider going offline more, tbh, meeting people irl is great :P

path: 0 20755128 20757509 20758742, hotness: undefined, score: 1, children: 0
sakuraba 2 points a year ago

The opening song Duvet became popular on tiktok and a new generation got to know Lain thanks to that

path: 0 20755128 20758610, hotness: undefined, score: 2, children: 0
eezeebee 1 point a year ago

The kids find her "gen z stare" relatable

path: 0 20755128 20758823, hotness: undefined, score: 1, children: 0
LeaveITtoThePros 10 points a year ago

No dinosaurs‽‽ XD

path: 0 20763870, hotness: undefined, score: 10, children: 4
CanadianCarl 5 points a year ago

No space as well, or dinosaurs in space?

path: 0 20763870 20765663, hotness: undefined, score: 5, children: 1
LeaveITtoThePros 2 points 10 months ago

Either and both! 🤓

path: 0 20763870 20765663 20798620, hotness: undefined, score: 2, children: 0
benni 2 points a year ago

Fixed 👍

path: 0 20763870 20768534, hotness: undefined, score: 2, children: 1
LeaveITtoThePros 1 point 10 months ago

Cool! XD

path: 0 20763870 20768534 20798615, hotness: undefined, score: 1, children: 0
Hideakikarate 10 points a year ago

Based on posts around here, the Roman Empire.

path: 0 20755215, hotness: undefined, score: 10, children: 1
gandalf_der_12te 2 points a year ago

i'm not a fan of it at all, it was a country of rapists the way they invaded their neighboring countries.

path: 0 20755215 20758728, hotness: undefined, score: 2, children: 0
Mwa 9 points a year 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.

path: 0 20758644, hotness: undefined, score: 9, children: 1
GreenShimada 3 points a year ago

TIL I am, apparently, as well.

path: 0 20758644 20758957, hotness: undefined, score: 3, children: 0
QuinnyCoded 8 points a year 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

path: 0 20764171, hotness: undefined, score: 8, children: 2
benni 3 points a year ago

Thanks Quinny, but uploading to lemmy seems to automatically convert to jpeg.

path: 0 20764171 20768531, hotness: undefined, score: 3, children: 1
QuinnyCoded 2 points a year ago

womp womp 😢

path: 0 20764171 20768531 20775885, hotness: undefined, score: 2, children: 0
tomiant 8 points a year 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.

path: 0 20753504, hotness: undefined, score: 8, children: 0
JasonDJ 7 points a year ago

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

Especially for linux.

path: 0 20763635, hotness: undefined, score: 7, children: 0
Amir 7 points a year ago

Magic the Gathering and D&D

path: 0 20756979, hotness: undefined, score: 7, children: 1
benni 4 points a year ago

You're absolutely right! I've edited the meme to contain your suggestions.

path: 0 20756979 20757488, hotness: undefined, score: 4, children: 0
cobalt32 7 points a year 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.

path: 0 20759440, hotness: undefined, score: 7, children: 0
pineapplelover 6 points a year ago

Not a fan of Japan tbh

path: 0 20755814, hotness: undefined, score: 6, children: 3
CluckN 3 points a year ago

The flag is a big plus

path: 0 20755814 20757540, hotness: undefined, score: 3, children: 2
Lemminary 12 points a year ago

No, that's Switzerland

path: 0 20755814 20757540 20757953, hotness: undefined, score: 12, children: 0
svcg 1 point a year ago

Nah, you're thinking of Switzerland.

path: 0 20755814 20757540 20767068, hotness: undefined, score: 1, children: 0
pHr34kY 6 points a year ago

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

path: 0 20753610, hotness: undefined, score: 6, children: 1
krooklochurm 5 points a year ago

Just you. They're made exclusively for you.

path: 0 20753610 20753801, hotness: undefined, score: 5, children: 0
RacerX 6 points a year ago

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

path: 0 20755478, hotness: undefined, score: 6, children: 0
Lemminary 5 points a year ago

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

path: 0 20757947, hotness: undefined, score: 5, children: 0
GarboDog 5 points a year ago

(Mostly just us) Fursuit/furry stuffs, a billion plushies, bicycles, city architecture, trams, hiding when guests are over, Star Wars, one piece, the *perfect note book * (it’s one we made from a spare book cardboard, sewed in our own pages and it in many many stickers,) Books, old English, ASL/writing what to say when non verbal and safe foods

path: 0 20766967, hotness: undefined, score: 5, children: 0
HeyThisIsntTheYMCA 5 points a year ago

Fursuiting ware

path: 0 20764936, hotness: undefined, score: 5, children: 0
munsking 4 points a year ago

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

path: 0 20777953, hotness: undefined, score: 4, children: 0
titanicx 4 points a year ago

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

path: 0 20781173, hotness: undefined, score: 4, children: 0
A_Very_Big_Fan 3 points a year ago

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

path: 0 20763077, hotness: undefined, score: 3, children: 0
baines 3 points a year ago

is this an engineering meme?

path: 0 20756144, hotness: undefined, score: 3, children: 0
HootinNHollerin 1 point a year ago
path: 0 20752607, hotness: undefined, score: 1, children: 0
unknown 1 point a year ago
path: 0 20758628, hotness: undefined, score: 1, children: 0
BarneyPiccolo 1 point a year ago

Star Wars!

When my son joined Cub Scouts, we went to our first big Cub event, some big potluck dinner, and I sat next to a kid with a Star Wars t-shirt. I love Star Wars, saw the first movie in the theater, and have been a fan my whole life, so I asked, "You a Star Wars fan?" And he started talking, and so did I.

We were having a nice conversation about Star Wars, when his mother came up and said "Are you talking about Star Wars again? What did we say about that? You can't just start talking to random strangers about Star Wars!"

I responded, "No, you don't understand, I asked him about it. I love Star Wars, too," and the kid looked really happy that I'd defended him.

His mom said, "You don't understand, he has Asbergers, he'll NEVER stop talking about it," which didn't sound so bad to me, I had lots to talk about with this kid, he was a big fan, and knew his stuff.

We parted, but I've wondered ever since if I have Asperger's about Star Wars, too. Probably Music, too.

path: 0 20768739, hotness: undefined, score: 1, children: 0
ImmersiveMatthew 1 point a year ago

This is male centric as the female’s I know in the spectrum have different interests generally speaking.

path: 0 20778834, hotness: undefined, score: 1, children: 1
benni 0 points a year ago

True, but what would be common interests of female autists? Biology? Tumblr?

path: 0 20778834 20783732, hotness: undefined, score: 0, children: 0
sunbytes 1 point a year ago

Please don't shout. I'm very sensitive to noise and I left my loops at home.

path: 0 20783952, hotness: undefined, score: 1, children: 0
someacnt 1 point a year ago

I relate to others, but isn't the Rubix cube quite common in STEM people? Dunno what that has to do with autism

path: 0 20767126, hotness: undefined, score: 1, children: 1
magic_internet_wizard 1 point a year ago

there is an objectively higher number of autistic people in stem, so both can be true

path: 0 20767126 20779200, hotness: undefined, score: 1, children: 0
vaultdweller013 1 point a year ago

Where's Fallout? I fucken swear a quarter of the fan base is autistic, the other quarters are trans, fascists, and Slavs.

path: 0 20775991, hotness: undefined, score: 1, children: 0
ZILtoid1991 0 points a year ago
> rust

bruh.wav

I prefer the actual C successor to the marriage of flesh of OCaml and C. It's actually good at game development, not just at rolling out countless of engines.

path: 0 20783508, hotness: undefined, score: 0, children: 0
lemmyshitpost
lemmyshitpost

@lemmy.world

login for more options
42351
30867
14567

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/Explicit

Content


-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

go to feed...