User Controls

Lanny_loves = faggots

  1. #1
    GGG victim of incest [my veinlike two-fold aepyornidae]
    print("you're all a bunch of " + Lanny_loves)

    #especially you scron
    The following users say it would be alright if the author of this post didn't die in a fire!
  2. #2
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    For the rest of NIS: I am officially mentoring GGG in Python.

    But GGG, one bit of feedback here...

    Since "faggots" isn't wrapped in quotation marks, it's technically not a string.

    So if you haven't assigned a value earlier to the variable/object
    faggots
    , you're gonna get some kind of "Undefined" error.

    But other than that, keep it up.
    The following users say it would be alright if the author of this post didn't die in a fire!
  3. #3
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Also, another tip, way less vital (in that it won't result in errors or anything), but there are usually stylistic conventions that are followed, such as how to name variables.


    I would have probably gone with...


    lanny_loves = "faggots"

    print("you're all a bunch of " + lanny_loves)

    #especially you scron


    There's also camelCase (e.g. lannyLoves), but these stylistic concerns can become very contentious.

    However, if you want to get a bit more fancy and actually incorporate scron directly into your code, consider making "lanny_loves" into a list (commonly called an array in pretty much every other language, but I mean, calling it a list makes sense - one of the many reasons I really like Python, and especially suggest if for beginners)...


    # Sets some booleans (true/false binary values) for later...
    lanny_loves_faggots = True
    scron_is_a_faggot = True

    # Creates an empty list of faggots that Lanny loves...
    faggots_that_lanny_loves = []

    if lanny_loves_faggots and scron_is_a_faggot:
    faggots_that_lanny_loves.append("scron")

    print(faggots_that_lanny_loves)


    Outputs: ["scron"].

    And you get a list (with only one entry, however) of the "faggots that Lanny loves."

    You would access it by numerical indexing, and remember, arrays/lists start at zero.


    print(faggots_that_lanny_loves[0])


    Outputs: "scron".
  4. #4
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Next up are dictionaries (again, a python-specific term for a very common, simple data structure, that consists of key-pairs). You will end up using them A LOT in the future...


    faggotry_status_of_nis_posters = {
    "Lanny": True,
    "GGG": True, # Hey, these are booleans, so you're going to want some more precise code here, or to throw an error in your case.
    "scron": True,
    "gadzooks": False
    }

    def is_poster_gay(poster):
    if faggotry_status_of_nis_posters[poster]:
    print(poster + " is a faggot.")
    else:
    print(poster + " is not a faggot.")

    is_poster_gay("GGG")

    # Outputs: "GGG is a faggot."

    is_poster_gay("gadzooks")

    # Outputs: "gadzooks is not a faggot."
  5. #5
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Don't worry if it seems a bit much, since I'm throwing new data structures at you (list/arrays, dictionaries/key-value-pairs, etc), and even made a very simple function with a condition (if X, do Y; else, do Z).
  6. #6
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    For the rest of NIS: Also, for the record, I did not start him on this faggotry theme. But I did encourage him to make programming more fun/humorous/entertaining to help motivate yourself to learn. It works for a lot people, especially myself.
    The following users say it would be alright if the author of this post didn't die in a fire!
  7. #7
    aldra JIDF Controlled Opposition
    python is for latent homosexuals

    §m£ÂgØL will be extra good at it because he's a blatant homosexual, putting him ahead of his peers
    The following users say it would be alright if the author of this post didn't die in a fire!
  8. #8
    -SpectraL coward [the spuriously bluish-lilac bushman]
  9. #9
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by aldra python is for latent homosexuals

    I know you are, but what am I!?

    Originally posted by aldra §m£ÂgØL will be extra good at it because he's a blatant homosexual, putting him ahead of his peers

    I did kinda lol though.
  10. #10
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by -SpectraL

    So basically it's a way to obscure the data you're presenting over the web so that no-one can reverse engineer the raw text it's constructed from?

    A lot of new web frameworks do that by default.

    For example, I don't think you can parse ReactJS pages so easily by just looking at the client-side source code.
  11. #11
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Ok, our next lesson will use a conditional to test if a value is above a certain threshold...

    It also incorporates a DICTIONARY that LOOKS LIKE an array/list (don't get confused by this. It's still a key/value pair, except that the keys are mostly (except for one that is commented out) numerical.

    Note, however, that dictionaries in python, or merely "(JSON) objects" in JavaScript, and other forms of key/value pair data structures DO NOT PRESERVE ORDER.

    This particular instance of a dictionary will be able to act kind of like it has preserved order, but that's just because of the particular key schema we're giving it...


    kinsey_scale = {
    0: 'Exclusively heterosexual',
    1: 'Predominantly heterosexual, only incidentally homosexual',
    2: 'Predominantly heterosexual, but more than incidentally homosexual',
    3: 'Equally heterosexual and homosexual',
    4: 'Predominantly homosexual, but more than incidentally heterosexual',
    5: 'Predominantly homosexual, only incidentally heterosexual',
    6: 'Exclusively homosexual',
    # 'X': 'No socio-sexual contacts or reactions'
    }

    faggotry_status_of_nis_posters = {
    "Lanny": 5,
    "GGG": 4,
    "scron": 2,
    "gadzooks": 1
    }

    def is_poster_gay(poster):
    if faggotry_status_of_nis_posters[poster] > 0:
    print(poster + " is " + kinsey_scale[faggotry_status_of_nis_posters[poster]])
    print(poster + ", therefore, is a faggot.")
    else:
    print(poster + ", therefore, is not a faggot.")

    is_poster_gay("Lanny")
    is_poster_gay("GGG")
    is_poster_gay("scron")
    is_poster_gay("gadzooks")


    Outputs the following:

    Lanny is Predominantly homosexual, only incidentally heterosexual
    Lanny, therefore, is a faggot.
    GGG is Predominantly homosexual, but more than incidentally heterosexual
    GGG, therefore, is a faggot.
    scron is Predominantly heterosexual, but more than incidentally homosexual
    scron, therefore, is a faggot.
    gadzooks is Predominantly heterosexual, only incidentally homosexual
    gadzooks, therefore, is a faggot.

    Basically, everyone on NIS is a faggot of one variety or another.
  12. #12
    -SpectraL coward [the spuriously bluish-lilac bushman]
    Originally posted by gadzooks So basically it's a way to obscure the data you're presenting over the web so that no-one can reverse engineer the raw text it's constructed from?

    A lot of new web frameworks do that by default.

    For example, I don't think you can parse ReactJS pages so easily by just looking at the client-side source code.

    Aldra deconstructed it successfully. Scary, innit?
  13. #13
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by -SpectraL Aldra deconstructed it successfully. Scary, innit?

    He actually went from:

    //Page Begin
    '6B',
    't!3E 35~U42u"(38$664543GG6533;: :39y,39&.?,3E%65j03+;3813;: :39{~U42uk`tMR4543,3837#,!&$m0A39350D;38"+hq454331@S`x:,3E38+.x3C;?(62MR3544',
    '@@S3731&-%:w/36-;38"+`65h1A33 1C32*27;q@SMR3E(38m0A39351A,+!0E)360739/#y}x? $)3637v2739/#62MR4543,3837#,!&$m0A39351F $02)%36`3C38!u`36)$/61',
    'y!,3C;#/,343D;`GG"MRhi38(-35*&i62#3C37x07+ (:34p61`q@S3DU4244@:30.3C273E64")%36htj1E -0F!27053D3C.634543GGvou65wGG65o++;#3D-~U4244@q*#',
    '*!393Em1501160F1C0B0A1C}z02(3C,0A#*!393Eoy130A0Bth3D+/,66#39og|w;*38$)34664543v39303434-w19"y0D39&30j0F+//;,383Ey1337h05#39-,3Dh1D# 3C|w3C 3E!3C~U42',
    'u65%3C!3Cv44@q;/3C31i(,:+?:&?#3D}z.3D:wvo3E3D*!(3Dn3027393E"w/*/66,,32%.!;?3Ew*(/kj/3E#37$&38p{63hxyz}i62U423D/35-}zk0F0C0B1F061Eji&',
    '$37+65jjy~ov61qkj;35)36#thnjsn~psoy!34!27!p{63n~7F|{o62664543v+363235h$/3931/3Cuk1A020A14zv44@my`xt39j,35)?&th.3C.,-;hs65)36383C3Em-',
    '39(-th0F,34,2727hm*)"-th7Fi62x%(32!3C.?3C!wokunji$,34%65j+3E#18.362730hm/!343D,wo1A,31+"j 3Cnv660Em,31%39,kGGy`xh&$.35);#th,35%*',
    '3C61m1A31/+h10%38+`1527$27,66gqs44@;3832x+iwmh{U42?+?y,39un1E%3834+h1E38"3727x0F3C/3E*`19/(##y063727%mvTJ.);j37#:xuim1E-35(!-mvTJ/ ',
    '&(qsxn.3Evy#qh323C,+`(htj3D+/35383D62j0E(37h 39m-(3Dh.38(38343D;3Dj193634+-($m3C363D:vj0C-343D%393Emzgs+65jj09323D38(38(y&37:i39 30343Do`q@',
    'S)3E`39jp64`"32336336:}kx34j@S%34;,j3630&p38iwp35!q33*w~i3Dx-%39(y#x6362373062)3E`39jp64`"3233633638,3D:3D62j`qiqx{thq7F6134j@S%34;,j3630&',
    'p38iwpy,396132+!3C32,`n06181A0B01h0F1F0E12140F011Dm64$`U42,&3E3C`#)%/?-h7F01i-383C33+h30%38y,37;,64m1E/37,+33(y.37?gm6462MR3E(38m3003373D273E(+}hs',
    '3E"$35%p3C;?(p3731&-%:w/(-2762j3134,38s6562.37/66/+*3E/,66*% ~i%35rh@S`xhi)?383330!27-or);273C$393C32po3E#)-(65jx66%3C)? 3Dw|u323D; 30',
    ',;,3Du27%jp{310B&?#-%*63626330$66)3D&3Ev{~64g39t@S|w.&38 gMRt66("3D39664543GG6533;: :39y,39&.?,3E%65j03+;3813;: :39{~U42uk`tMR45433D$37',
    '$37?g%3D3C.xui193434123D)%1D$370F(-27q@SMRg66g`gMRt6639.+)(3CwGGTJ64g!3E 35~');
    //Page End

    ...to legible text, without referring to the so-called ZokLock code or documentation?
  14. #14
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    OK NOBODY GIVE ME THE ANSWER... I'M FUCKING CLOSE...
  15. #15
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    DAMNIT, I'm stuck here...


    for (j = 6; j < h.length; j++) {
    for (i = 0; i < h[j].length; i++) {
    xs = h[j].charAt(i)
    if (x.indexOf(xs) >= 0) {
    i++;
    xs = xs + h[j].charAt(i);
    c = parseInt(xs, 16);
    } else c = t.indexOf(xs);
    c = c ^ 44 ^ t.indexOf(pw.charAt(m));
    m++;
    if (m == n) m = 0;
    if (c == 13) {
    document.writeln(s);
    s = '';
    } else if (c == 10) {;
    } else s = s + t.charAt(c);
    }
    }


    I'm converting it all to python.

    It's all syntactically correct....

    But it's trying to turn a letter "t" to a hex value....

    FUCK...

    I will get this...
  16. #16
    Ghost Black Hole
    What the fuck are you talking about
  17. #17
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    So it's going through this list of strings...


    [
    't!3E 35~U42u"(38$664543GG6533;: :39y,39&.?,3E%65j03+;3813;: :39{~U42uk`tMR4543,3837#,!&$m0A39350D;38"+hq454331@S`x:,3E38+.x3C;?(62MR3544',
    '@@S3731&-%:w/36-;38"+`65h1A33 1C32*27;q@SMR3E(38m0A39351A,+!0E)360739/#y}x? $)3637v2739/#62MR4543,3837#,!&$m0A39351F $02)%36`3C38!u`36)$/61',
    'y!,3C;#/,343D;`GG"MRhi38(-35*&i62#3C37x07+ (:34p61`q@S3DU4244@:30.3C273E64")%36htj1E -0F!27053D3C.634543GGvou65wGG65o++;#3D-~U4244@q*#',
    '*!393Em1501160F1C0B0A1C}z02(3C,0A#*!393Eoy130A0Bth3D+/,66#39og|w;*38$)34664543v39303434-w19"y0D39&30j0F+//;,383Ey1337h05#39-,3Dh1D# 3C|w3C 3E!3C~U42',
    'u65%3C!3Cv44@q;/3C31i(,:+?:&?#3D}z.3D:wvo3E3D*!(3Dn3027393E"w/*/66,,32%.!;?3Ew*(/kj/3E#37$&38p{63hxyz}i62U423D/35-}zk0F0C0B1F061Eji&',
    '$37+65jjy~ov61qkj;35)36#thnjsn~psoy!34!27!p{63n~7F|{o62664543v+363235h$/3931/3Cuk1A020A14zv44@my`xt39j,35)?&th.3C.,-;hs65)36383C3Em-',
    '39(-th0F,34,2727hm*)"-th7Fi62x%(32!3C.?3C!wokunji$,34%65j+3E#18.362730hm/!343D,wo1A,31+"j 3Cnv660Em,31%39,kGGy`xh&$.35);#th,35%*',
    '3C61m1A31/+h10%38+`1527$27,66gqs44@;3832x+iwmh{U42?+?y,39un1E%3834+h1E38"3727x0F3C/3E*`19/(##y063727%mvTJ.);j37#:xuim1E-35(!-mvTJ/ ',
    '&(qsxn.3Evy#qh323C,+`(htj3D+/35383D62j0E(37h 39m-(3Dh.38(38343D;3Dj193634+-($m3C363D:vj0C-343D%393Emzgs+65jj09323D38(38(y&37:i39 30343Do`q@',
    'S)3E`39jp64`"32336336:}kx34j@S%34;,j3630&p38iwp35!q33*w~i3Dx-%39(y#x6362373062)3E`39jp64`"3233633638,3D:3D62j`qiqx{thq7F6134j@S%34;,j3630&',
    'p38iwpy,396132+!3C32,`n06181A0B01h0F1F0E12140F011Dm64$`U42,&3E3C`#)%/?-h7F01i-383C33+h30%38y,37;,64m1E/37,+33(y.37?gm6462MR3E(38m3003373D273E(+}hs',
    '3E"$35%p3C;?(p3731&-%:w/(-2762j3134,38s6562.37/66/+*3E/,66*% ~i%35rh@S`xhi)?383330!27-or);273C$393C32po3E#)-(65jx66%3C)? 3Dw|u323D; 30',
    ',;,3Du27%jp{310B&?#-%*63626330$66)3D&3Ev{~64g39t@S|w.&38 gMRt66("3D39664543GG6533;: :39y,39&.?,3E%65j03+;3813;: :39{~U42uk`tMR45433D$37',
    '$37?g%3D3C.xui193434123D)%1D$370F(-27q@SMRg66g`gMRt6639.+)(3CwGGTJ64g!3E 35~'
    ]


    And it's trying to convert each character using a password ('default' in this case) as a cryptographic key/dictionary.

    But I'm humbly enough to admit that I'm still working out the conversion between each wacky looking character and its hex value.

    I'm a determined mofo, though, so at some point today I will have figured it out, and essentially rewrote the exact same code but in Python.
  18. #18
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by Ghost What the fuck are you talking about

    With the faggotry stuff?

    Or the ZokLock program?

    Or just in general in this thread?
  19. #19
    Ghost Black Hole
    Oh it's computer programming I was confused because it's not in T&T
  20. #20
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Wait, the password is 'default', right?
Jump to Top