FediTown
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
benni@lemmy.world to Lemmy Shitpost@lemmy.world ·
edit-2
4 天前

What did I forget?

lemmy.world

message-square
104
link
fedilink
616

What did I forget?

lemmy.world

benni@lemmy.world to Lemmy Shitpost@lemmy.world ·
edit-2
4 天前
message-square
104
link
fedilink
alert-triangle
You must log in or # to comment.
  • residentoflaniakea@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    154
    ·
    edit-2
    5 天前

    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
      link
      fedilink
      arrow-up
      70
      ·
      5 天前

      Well you gotta share that ranking now…

      • ByteJunk@lemmy.world
        link
        fedilink
        arrow-up
        49
        ·
        5 天前

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

      • residentoflaniakea@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        8
        ·
        5 天前

        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
      link
      fedilink
      English
      arrow-up
      22
      ·
      5 天前

      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
      link
      fedilink
      English
      arrow-up
      20
      ·
      5 天前

      How are you defining the entropy of a flag?

      • Ms. ArmoredThirteen@lemmy.zip
        link
        fedilink
        English
        arrow-up
        17
        ·
        5 天前

        Subtracting it’s normalized negentropy from 1

      • gandalf_der_12te@discuss.tchncs.de
        link
        fedilink
        arrow-up
        1
        ·
        5 天前

        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.

    • Axolotl@feddit.it
      link
      fedilink
      arrow-up
      18
      ·
      5 天前

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

      • residentoflaniakea@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 天前

        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.

        • Axolotl@feddit.it
          link
          fedilink
          arrow-up
          2
          ·
          5 天前

          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

    • idealotus@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      5 天前

      …and what is the stack ranked result?

      • residentoflaniakea@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 天前

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

    • drosophila@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      5
      ·
      4 天前

      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.

    • FishFace@piefed.social
      link
      fedilink
      English
      arrow-up
      6
      ·
      4 天前

      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

      • residentoflaniakea@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        5
        ·
        4 天前

        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.

    • prole@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      4
      ·
      5 天前

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

      • residentoflaniakea@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 天前

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

      • Clay_pidgin@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 天前

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

    • voodooattack@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      5 天前

      “Welcome to fun with flags!”

    • kittenzrulz123@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      2
      ·
      5 天前

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

      • residentoflaniakea@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 天前

        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.

  • passepartout@feddit.org
    link
    fedilink
    arrow-up
    77
    ·
    5 天前

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

    • bored_boar_onboard@lemmy.world
      link
      fedilink
      arrow-up
      7
      arrow-down
      2
      ·
      5 天前

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

      • neox_@sh.itjust.works
        link
        fedilink
        Français
        arrow-up
        2
        ·
        4 天前

        Also in the meantime: https://github.com/Speykious/cve-rs

  • titanicx@lemmy.zip
    link
    fedilink
    arrow-up
    4
    ·
    3 天前

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

  • tatterdemalion@programming.dev
    link
    fedilink
    arrow-up
    25
    ·
    5 天前

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

    • FatVegan@leminal.space
      link
      fedilink
      arrow-up
      4
      ·
      4 天前

      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

  • CoffeeSoldier@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    31
    ·
    5 天前

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

    • webp@mander.xyz
      link
      fedilink
      arrow-up
      20
      ·
      5 天前

      This is how you find out you’re cool 😎

      • myedition8@lemmy.world
        link
        fedilink
        arrow-up
        10
        ·
        5 天前

        Cool and autistic 😎

  • UltraGiGaGigantic@lemmy.ml
    link
    fedilink
    English
    arrow-up
    11
    ·
    4 天前

    Why do autistic people love pie charts with red circles?

    • NιƙƙιDιɱҽʂ@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      3 天前

      正直、全くわかない

      • UltraGiGaGigantic@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 天前

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

        • NιƙƙιDιɱҽʂ@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 天前

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

  • ComradeSharkfucker@lemmy.ml
    link
    fedilink
    English
    arrow-up
    40
    ·
    5 天前

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

    • zaphod@sopuli.xyz
      cake
      link
      fedilink
      arrow-up
      24
      ·
      5 天前

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

      • AllNewTypeFace@leminal.space
        link
        fedilink
        arrow-up
        5
        ·
        5 天前

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

        • Lemminary@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          5 天前

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

    • benni@lemmy.worldOP
      link
      fedilink
      arrow-up
      12
      ·
      5 天前

      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.

      • webp@mander.xyz
        link
        fedilink
        arrow-up
        3
        ·
        5 天前

        Why not put it in the JP flag?

    • brucethemoose@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      5 天前

      My interpretation is noise sensitivity. Especially when thinking.

  • traceur402@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    37
    arrow-down
    1
    ·
    5 天前

    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
      link
      fedilink
      English
      arrow-up
      22
      ·
      5 天前

      Tylenol sure is a hell of a drug

  • Obinice@lemmy.world
    link
    fedilink
    arrow-up
    34
    arrow-down
    2
    ·
    5 天前

    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

  • munsking@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    4 天前

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

  • ConstantConcern@lemmy.ca
    link
    fedilink
    English
    arrow-up
    10
    ·
    4 天前

    No dinosaurs‽‽ XD

    • Carl@sh.itjust.works
      link
      fedilink
      arrow-up
      5
      ·
      4 天前

      No space as well, or dinosaurs in space?

      • ConstantConcern@lemmy.ca
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 天前

        Either and both! 🤓

    • benni@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      4 天前

      Fixed 👍

      • ConstantConcern@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 天前

        Cool! XD

  • Naho_Zako@piefed.zip
    link
    fedilink
    English
    arrow-up
    15
    ·
    5 天前

    No Sonic mention? Shame

  • LumpyPancakes@piefed.social
    link
    fedilink
    English
    arrow-up
    20
    ·
    5 天前

    ZXJk4ZngkEKPYhO.jpg

    https://www.youtube.com/watch?v=b8HO6hba9ZE

    • ᓚᘏᗢ@piefed.social
      link
      fedilink
      English
      arrow-up
      4
      ·
      5 天前

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

  • ftbd@feddit.org
    link
    fedilink
    arrow-up
    18
    ·
    5 天前

    What’s up with Maxwell and Autism?

    • benni@lemmy.worldOP
      link
      fedilink
      arrow-up
      13
      ·
      5 天前

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

      • gandalf_der_12te@discuss.tchncs.de
        link
        fedilink
        arrow-up
        2
        ·
        5 天前

        Maxwell equations?

  • renlok@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    5 天前

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

Lemmy Shitpost@lemmy.world

lemmyshitpost@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !lemmyshitpost@lemmy.world

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

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 3.3K users / day
  • 8.56K users / week
  • 14.5K users / month
  • 29.5K users / 6 months
  • 1 local subscriber
  • 35.9K subscribers
  • 14.7K Posts
  • 300K Comments
  • Modlog
  • mods:
  • Striker@lemmy.world
  • Aer@lemmy.world
  • WiildFiire@lemmy.world
  • Decoy321@lemmy.world
  • The Picard Maneuver@startrek.website
  • Flying Squid@lemmy.world
  • The Picard Maneuver@lemmy.world
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org