Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Lemmy Shitpost
  3. Not for me, tho

Not for me, tho

Scheduled Pinned Locked Moved Lemmy Shitpost
lemmyshitpost
69 Posts 50 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • electrictrombone@lemmy.worldE [email protected]

    I'm a C programmer. My first time writing Javascript and ran into some sort of bug involving a === sign or something. Javascript is a silly language.

    A This user is from outside of this forum
    A This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #45

    Truish and falsish and nullish are all concepts made up by madmen. JavaScript is the language of the damned.

    1 Reply Last reply
    0
    • tetris11@lemmy.mlT [email protected]

      Which language provides the most random alphabetically sorted sequence?

      Data
      |  N | Eng | Dut | Ger | Tur | Chi | Lex |
      |----+-----+-----+-----+-----+-----+-----|
      |  1 |   8 |   8 |   8 |   6 |   8 |   1 |
      |  2 |  11 |   3 |   3 |   5 |   2 |  10 |
      |  3 |   5 |   1 |   1 |   1 |   9 |  11 |
      |  4 |   4 |  11 |  11 |   9 |   6 |  12 |
      |  5 |   9 |   9 |   5 |   4 |   3 |   2 |
      |  6 |   1 |  10 |   9 |   2 |   4 |   3 |
      |  7 |   7 |  12 |   6 |  10 |   7 |   4 |
      |  8 |   6 |   2 |   7 |  11 |  10 |   5 |
      |  9 |  10 |   4 |   4 |  12 |  12 |   6 |
      | 10 |   3 |   5 |  10 |   8 |  11 |   7 |
      | 11 |  12 |   6 |   2 |   3 |   5 |   8 |
      | 12 |   2 |   7 |  12 |   7 |   1 |   9 |
      

      Sourced from comments in thread (English from image, Dutch from [email protected], German from [email protected] , Turkish from some rando, Chinese from [email protected], Lexicographical from [email protected])

      Plot with Correlation Scores

      We will compute the pearson correlation (r-statistic) score by comparing the base number (column 1) with the corresponding language column. We will also compute the Serial correlation, by creating staggered columns that measure how close a number is in a sequence to the one before it.

      ::: spoiler Staggered Table

      cat alphabetic.tab \
          | awk '{print $0"\t"prE"\t"prD"\t"prG"\t"prT"\t"prC"\t"prL;prE=$2;prD=$3;prG=$4;prT=$5;prC=$6;prL=$7}' \
          | tee alphabetic.tab.stagger
      

      :::

      ::: spoiler Plot Code

      gnuplot -p -e '
        set xlabel "Base Sequence";
        set ylabel "Alphabetic";
        set xtics 1,1,12;
        set ytics 1,1,12;
        set title "Alphabetic Number Plot with Correlation Score";
        set rmargin 25; set key at graph 1.5,0.9;
        set size ratio 0.45;
      
        stats "alphabetic.tab.stagger" using 1:2 name "E";
        stats "" using 1:3 name "D";
        stats "" using 1:4 name "G";
        stats "" using 1:5 name "T";
        stats "" using 1:6 name "C";
        stats "" using 1:7 name "L";
        
        stats "" using 2:8 name "ES";
        stats "" using 3:9 name "DS";
        stats "" using 4:10 name "GS";
        stats "" using 5:11 name "TS";
        stats "" using 6:12 name "CS";
        stats "" using 7:13 name "LS";
      
        set label 1 sprintf("%10s  %6s  %6s", "", "Base", "Stagger") at graph 1.07,0.95;
      
        plot "" using 1:2 with lines lw 3 title sprintf("%10s  %+.3f  %+.3f", "English", E_correlation, ES_correlation),
             "" using 1:3 with lines lw 3 title sprintf("%10s  %+.3f  %+.3f", "Dutch", D_correlation, DS_correlation),
             "" using 1:4 with lines lw 3 title sprintf("%10s  %+.3f  %+.3f", "German", G_correlation, GS_correlation),
             "" using 1:5 with lines lw 3 title sprintf("%10s  %+.3f  %+.3f", "Turkish", T_correlation, TS_correlation),
             "" using 1:6 with lines lw 3 title sprintf("%10s  %+.3f  %+.3f", "Chinese", C_correlation, CS_correlation),
             "" using 1:7 with lines lw 1 title sprintf("%10s  %+.3f  %+.3f", "Lexicon", L_correlation, LS_correlation)
      '
      

      :::

      It looks like Dutch has the lowest (near 0) correlation to both the base sequence and it's own staggered sequence, with Turkish mirroring it's staggered randomness somewhat.

      The least random alphabetic sequences are English and German.


      Updated: Added chinese and staggered analysis.

      null@slrpnk.netN This user is from outside of this forum
      null@slrpnk.netN This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #46

      This is the second comment I've seen like this from you.

      Please never stop.

      1 Reply Last reply
      2
      • D [email protected]

        Actually, it's 5 4 10 12 2 9 8 11 6 7 3 1 for me, but too lazy to edit the image

        crypto@sh.itjust.worksC This user is from outside of this forum
        crypto@sh.itjust.worksC This user is from outside of this forum
        [email protected]
        wrote on last edited by [email protected]
        #47

        Cinq Deux Dix Douze Huit Neuf Onze Quatre Sept Six Trois Un

        5 2 10 12 8 9 11 4 7 6 3 1

        1 Reply Last reply
        0
        • D [email protected]

          Actually, it's 5 4 10 12 2 9 8 11 6 7 3 1 for me, but too lazy to edit the image

          noxypaws@pawb.socialN This user is from outside of this forum
          noxypaws@pawb.socialN This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #48

          If a mechanical clock or watch was like that it would be one hell of a fascinating movement

          1 Reply Last reply
          0
          • tetris11@lemmy.mlT [email protected]

            Which language provides the most random alphabetically sorted sequence?

            Data
            |  N | Eng | Dut | Ger | Tur | Chi | Lex |
            |----+-----+-----+-----+-----+-----+-----|
            |  1 |   8 |   8 |   8 |   6 |   8 |   1 |
            |  2 |  11 |   3 |   3 |   5 |   2 |  10 |
            |  3 |   5 |   1 |   1 |   1 |   9 |  11 |
            |  4 |   4 |  11 |  11 |   9 |   6 |  12 |
            |  5 |   9 |   9 |   5 |   4 |   3 |   2 |
            |  6 |   1 |  10 |   9 |   2 |   4 |   3 |
            |  7 |   7 |  12 |   6 |  10 |   7 |   4 |
            |  8 |   6 |   2 |   7 |  11 |  10 |   5 |
            |  9 |  10 |   4 |   4 |  12 |  12 |   6 |
            | 10 |   3 |   5 |  10 |   8 |  11 |   7 |
            | 11 |  12 |   6 |   2 |   3 |   5 |   8 |
            | 12 |   2 |   7 |  12 |   7 |   1 |   9 |
            

            Sourced from comments in thread (English from image, Dutch from [email protected], German from [email protected] , Turkish from some rando, Chinese from [email protected], Lexicographical from [email protected])

            Plot with Correlation Scores

            We will compute the pearson correlation (r-statistic) score by comparing the base number (column 1) with the corresponding language column. We will also compute the Serial correlation, by creating staggered columns that measure how close a number is in a sequence to the one before it.

            ::: spoiler Staggered Table

            cat alphabetic.tab \
                | awk '{print $0"\t"prE"\t"prD"\t"prG"\t"prT"\t"prC"\t"prL;prE=$2;prD=$3;prG=$4;prT=$5;prC=$6;prL=$7}' \
                | tee alphabetic.tab.stagger
            

            :::

            ::: spoiler Plot Code

            gnuplot -p -e '
              set xlabel "Base Sequence";
              set ylabel "Alphabetic";
              set xtics 1,1,12;
              set ytics 1,1,12;
              set title "Alphabetic Number Plot with Correlation Score";
              set rmargin 25; set key at graph 1.5,0.9;
              set size ratio 0.45;
            
              stats "alphabetic.tab.stagger" using 1:2 name "E";
              stats "" using 1:3 name "D";
              stats "" using 1:4 name "G";
              stats "" using 1:5 name "T";
              stats "" using 1:6 name "C";
              stats "" using 1:7 name "L";
              
              stats "" using 2:8 name "ES";
              stats "" using 3:9 name "DS";
              stats "" using 4:10 name "GS";
              stats "" using 5:11 name "TS";
              stats "" using 6:12 name "CS";
              stats "" using 7:13 name "LS";
            
              set label 1 sprintf("%10s  %6s  %6s", "", "Base", "Stagger") at graph 1.07,0.95;
            
              plot "" using 1:2 with lines lw 3 title sprintf("%10s  %+.3f  %+.3f", "English", E_correlation, ES_correlation),
                   "" using 1:3 with lines lw 3 title sprintf("%10s  %+.3f  %+.3f", "Dutch", D_correlation, DS_correlation),
                   "" using 1:4 with lines lw 3 title sprintf("%10s  %+.3f  %+.3f", "German", G_correlation, GS_correlation),
                   "" using 1:5 with lines lw 3 title sprintf("%10s  %+.3f  %+.3f", "Turkish", T_correlation, TS_correlation),
                   "" using 1:6 with lines lw 3 title sprintf("%10s  %+.3f  %+.3f", "Chinese", C_correlation, CS_correlation),
                   "" using 1:7 with lines lw 1 title sprintf("%10s  %+.3f  %+.3f", "Lexicon", L_correlation, LS_correlation)
            '
            

            :::

            It looks like Dutch has the lowest (near 0) correlation to both the base sequence and it's own staggered sequence, with Turkish mirroring it's staggered randomness somewhat.

            The least random alphabetic sequences are English and German.


            Updated: Added chinese and staggered analysis.

            D This user is from outside of this forum
            D This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #49

            I didn't expect soneone to put that much effort into it.

            Thanks! This is awesome!

            1 Reply Last reply
            1
            • D [email protected]

              Actually, it's 5 4 10 12 2 9 8 11 6 7 3 1 for me, but too lazy to edit the image

              callyral@pawb.socialC This user is from outside of this forum
              callyral@pawb.socialC This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #50

              Portuguese

              cinco, dez, dois, doze, nove, oito, onze, quatro, seis, sete, três, um

              5 10 2 12 9 8 11 4 6 7 3 1

              cinco, dez, dois, doze, meia, nove, oito, onze, quatro, sete, três, um

              5 10 2 12 6 9 8 11 4 7 3 1

              (six can be "seis" or "meia")

              D 1 Reply Last reply
              3
              • communist@lemmy.frozeninferno.xyzC [email protected]

                I'm stupid and read the clock wrong and didn't check even a little.

                B This user is from outside of this forum
                B This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #51

                You'll fit in here just fine!

                1 Reply Last reply
                1
                • D [email protected]

                  Actually, it's 5 4 10 12 2 9 8 11 6 7 3 1 for me, but too lazy to edit the image

                  A This user is from outside of this forum
                  A This user is from outside of this forum
                  [email protected]
                  wrote on last edited by [email protected]
                  #52

                  Ah yes its nearly 8:03 o’clock

                  Or nearly 56 minutes to 11:08

                  1 Reply Last reply
                  0
                  • captain_aggravated@sh.itjust.worksC [email protected]

                    Okay, here's the challenge: Make it always tell the correct time 8:30 should point to the 8 with the little hand and the 6 with the big hand. And 8:35 shoudl point to the 7 with the big hand.

                    S This user is from outside of this forum
                    S This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #53

                    Was thinking the same thing. This has to be possible, within reason of course

                    captain_aggravated@sh.itjust.worksC 1 Reply Last reply
                    0
                    • S [email protected]

                      Was thinking the same thing. This has to be possible, within reason of course

                      captain_aggravated@sh.itjust.worksC This user is from outside of this forum
                      captain_aggravated@sh.itjust.worksC This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #54

                      I could get it done with a couple stepper motors, an Arduino, probably a couple hall effect sensors.

                      S 1 Reply Last reply
                      0
                      • D [email protected]

                        Actually, it's 5 4 10 12 2 9 8 11 6 7 3 1 for me, but too lazy to edit the image

                        A This user is from outside of this forum
                        A This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #55

                        Thanks, i hate it 🙂

                        1 Reply Last reply
                        6
                        • electrictrombone@lemmy.worldE [email protected]

                          I'm a C programmer. My first time writing Javascript and ran into some sort of bug involving a === sign or something. Javascript is a silly language.

                          D This user is from outside of this forum
                          D This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #56
                          console.log("10"+1); // "101"
                          console.log("10"-1); // 9
                          
                          F 1 Reply Last reply
                          6
                          • callyral@pawb.socialC [email protected]

                            Portuguese

                            cinco, dez, dois, doze, nove, oito, onze, quatro, seis, sete, três, um

                            5 10 2 12 9 8 11 4 6 7 3 1

                            cinco, dez, dois, doze, meia, nove, oito, onze, quatro, sete, três, um

                            5 10 2 12 6 9 8 11 4 7 3 1

                            (six can be "seis" or "meia")

                            D This user is from outside of this forum
                            D This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #57

                            Mine is Spanish

                            Cinco (5), cuatro (4), diez (10), doce (12), dos (2), nueve (9),, ocho (8), once (11), seis (6), siete (7), tres (3), una (1)

                            1 Reply Last reply
                            2
                            • D [email protected]
                              console.log("10"+1); // "101"
                              console.log("10"-1); // 9
                              
                              F This user is from outside of this forum
                              F This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #58

                              The epitomy of irony is a JavaScript developer insisting that some other language is "a fractal of bad design" without immediately acknowledging that JS is weird as hell.

                              D 1 Reply Last reply
                              2
                              • captain_aggravated@sh.itjust.worksC [email protected]

                                I could get it done with a couple stepper motors, an Arduino, probably a couple hall effect sensors.

                                S This user is from outside of this forum
                                S This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #59

                                In that case, I am officially challenging you. But if you do end up doing it. My instance is shutting down on Monday, so you won't be able to tag me 😞

                                captain_aggravated@sh.itjust.worksC 1 Reply Last reply
                                0
                                • S [email protected]

                                  In that case, I am officially challenging you. But if you do end up doing it. My instance is shutting down on Monday, so you won't be able to tag me 😞

                                  captain_aggravated@sh.itjust.worksC This user is from outside of this forum
                                  captain_aggravated@sh.itjust.worksC This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by [email protected]
                                  #60

                                  Make an account elsewhere and comment on this post.

                                  Challenge accepted.

                                  W 1 Reply Last reply
                                  0
                                  • D [email protected]

                                    Actually, it's 5 4 10 12 2 9 8 11 6 7 3 1 for me, but too lazy to edit the image

                                    S This user is from outside of this forum
                                    S This user is from outside of this forum
                                    [email protected]
                                    wrote on last edited by
                                    #61

                                    5 4 10 2 12 9 6 7 8 11 3 1

                                    1 Reply Last reply
                                    0
                                    • F [email protected]

                                      The epitomy of irony is a JavaScript developer insisting that some other language is "a fractal of bad design" without immediately acknowledging that JS is weird as hell.

                                      D This user is from outside of this forum
                                      D This user is from outside of this forum
                                      [email protected]
                                      wrote on last edited by [email protected]
                                      #62

                                      I like Lua's design. Separate addition (x+y) and concatenation (x..y) operators ftw!

                                      Edit: and just, like, everything else about Lua too

                                      F 1 Reply Last reply
                                      2
                                      • I [email protected]

                                        Transliterating from Mandarin Chinese and using English dictionary order

                                        Ba Er Jiu Liu Qi San Si Shi ShiEr ShiYi Wu Yi

                                        8 2 9 6 3 4 7 10 12 11 5 1
                                        八 二 九 六 三 四 七 十 十二 十一 五 一

                                        tetris11@lemmy.mlT This user is from outside of this forum
                                        tetris11@lemmy.mlT This user is from outside of this forum
                                        [email protected]
                                        wrote on last edited by
                                        #63

                                        Thanks, I've added it to the analysis: https://lemmy.ml/post/32382201/19537907

                                        1 Reply Last reply
                                        0
                                        • tetris11@lemmy.mlT [email protected]

                                          Which language provides the most random alphabetically sorted sequence?

                                          Data
                                          |  N | Eng | Dut | Ger | Tur | Chi | Lex |
                                          |----+-----+-----+-----+-----+-----+-----|
                                          |  1 |   8 |   8 |   8 |   6 |   8 |   1 |
                                          |  2 |  11 |   3 |   3 |   5 |   2 |  10 |
                                          |  3 |   5 |   1 |   1 |   1 |   9 |  11 |
                                          |  4 |   4 |  11 |  11 |   9 |   6 |  12 |
                                          |  5 |   9 |   9 |   5 |   4 |   3 |   2 |
                                          |  6 |   1 |  10 |   9 |   2 |   4 |   3 |
                                          |  7 |   7 |  12 |   6 |  10 |   7 |   4 |
                                          |  8 |   6 |   2 |   7 |  11 |  10 |   5 |
                                          |  9 |  10 |   4 |   4 |  12 |  12 |   6 |
                                          | 10 |   3 |   5 |  10 |   8 |  11 |   7 |
                                          | 11 |  12 |   6 |   2 |   3 |   5 |   8 |
                                          | 12 |   2 |   7 |  12 |   7 |   1 |   9 |
                                          

                                          Sourced from comments in thread (English from image, Dutch from [email protected], German from [email protected] , Turkish from some rando, Chinese from [email protected], Lexicographical from [email protected])

                                          Plot with Correlation Scores

                                          We will compute the pearson correlation (r-statistic) score by comparing the base number (column 1) with the corresponding language column. We will also compute the Serial correlation, by creating staggered columns that measure how close a number is in a sequence to the one before it.

                                          ::: spoiler Staggered Table

                                          cat alphabetic.tab \
                                              | awk '{print $0"\t"prE"\t"prD"\t"prG"\t"prT"\t"prC"\t"prL;prE=$2;prD=$3;prG=$4;prT=$5;prC=$6;prL=$7}' \
                                              | tee alphabetic.tab.stagger
                                          

                                          :::

                                          ::: spoiler Plot Code

                                          gnuplot -p -e '
                                            set xlabel "Base Sequence";
                                            set ylabel "Alphabetic";
                                            set xtics 1,1,12;
                                            set ytics 1,1,12;
                                            set title "Alphabetic Number Plot with Correlation Score";
                                            set rmargin 25; set key at graph 1.5,0.9;
                                            set size ratio 0.45;
                                          
                                            stats "alphabetic.tab.stagger" using 1:2 name "E";
                                            stats "" using 1:3 name "D";
                                            stats "" using 1:4 name "G";
                                            stats "" using 1:5 name "T";
                                            stats "" using 1:6 name "C";
                                            stats "" using 1:7 name "L";
                                            
                                            stats "" using 2:8 name "ES";
                                            stats "" using 3:9 name "DS";
                                            stats "" using 4:10 name "GS";
                                            stats "" using 5:11 name "TS";
                                            stats "" using 6:12 name "CS";
                                            stats "" using 7:13 name "LS";
                                          
                                            set label 1 sprintf("%10s  %6s  %6s", "", "Base", "Stagger") at graph 1.07,0.95;
                                          
                                            plot "" using 1:2 with lines lw 3 title sprintf("%10s  %+.3f  %+.3f", "English", E_correlation, ES_correlation),
                                                 "" using 1:3 with lines lw 3 title sprintf("%10s  %+.3f  %+.3f", "Dutch", D_correlation, DS_correlation),
                                                 "" using 1:4 with lines lw 3 title sprintf("%10s  %+.3f  %+.3f", "German", G_correlation, GS_correlation),
                                                 "" using 1:5 with lines lw 3 title sprintf("%10s  %+.3f  %+.3f", "Turkish", T_correlation, TS_correlation),
                                                 "" using 1:6 with lines lw 3 title sprintf("%10s  %+.3f  %+.3f", "Chinese", C_correlation, CS_correlation),
                                                 "" using 1:7 with lines lw 1 title sprintf("%10s  %+.3f  %+.3f", "Lexicon", L_correlation, LS_correlation)
                                          '
                                          

                                          :::

                                          It looks like Dutch has the lowest (near 0) correlation to both the base sequence and it's own staggered sequence, with Turkish mirroring it's staggered randomness somewhat.

                                          The least random alphabetic sequences are English and German.


                                          Updated: Added chinese and staggered analysis.

                                          R This user is from outside of this forum
                                          R This user is from outside of this forum
                                          [email protected]
                                          wrote on last edited by
                                          #64

                                          c/dataisbeautiful

                                          1 Reply Last reply
                                          2
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups