User Controls

Lanny_loves = faggots

  1. #21
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by Ghost Oh it's computer programming I was confused because it's not in T&T

    T&T is not like BLTC.

    BLTC has an unfair advantage as a specialized subforum since, you know, everybody does drugs.

    But not everybody is a computer nerd.
  2. #22
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Python's "some_string.index(some_substring)", which is basically the closest equivalent to JavaScript's "some_string.indexOf(some_substring)", has these subtle nuances that are throwing my Python version off.

    I need to take a break from this.

    But I will persist.
  3. #23
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    This is the string I'm getting in the end...



    I'm just not shifting my bits properly or something.

  4. #24
    Ghost Black Hole
    You should program a darknet market
  5. #25
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by Ghost You should program a darknet market

    That's a lot of unnecessary work.

    Aren't there a bunch already out there?

    I bought some stuff off of Dream Market a few weeks ago.
  6. #26
    -SpectraL coward [the spuriously bluish-lilac bushman]
    Originally posted by gadzooks He actually went from:



    …to legible text, without referring to the so-called ZokLock code or documentation?

    He deciphered it perfectly and posted the whole script that's well obfuscated within the script I made and posted above. That's why I'm convinced he actually works for some kind of very high-level law enforcement cyber outfit. Only a handful of people could have done it. The obfuscated script is actually a clever fork bomb written in standard html and should still work on all browsers.
  7. #27
    -SpectraL coward [the spuriously bluish-lilac bushman]
    Originally posted by gadzooks Wait, the password is 'default', right?

    I left the password as not required, but it could easily have one.
  8. #28
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by -SpectraL He deciphered it perfectly and posted the whole script that's well obfuscated within the script I made and posted above. That's why I'm convinced he actually works for some kind of very high-level law enforcement cyber outfit. Only a handful of people could have done it. The obfuscated script is actually a clever fork bomb written in standard html and should still work on all browsers.

    Well, this is the bulk of the code "unminified":


    var pw = 'default';
    var t = '\00\01\02\03\04\05\06\07\010\t\n\013\014\r\016\017\020\021\022\023\024\025\026\027\030\031\032' +
    '\033\034\035\036\037\040!\042#$%&\047()*+,-./0123456789:;\074=\076?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\134]^_`abcdefghijkl' +
    'mnopqrstuvwxyz{|}~ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—˜™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПР' +
    'СТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя';
    var x = '0123456789ABCDEF';
    var i, j, xs;
    var c = 0;
    for (i = 0; i < pw.length; i++) c = c ^ t.indexOf(pw.charAt(i));
    if (c != parseInt(h[5].charAt(0) + h[5].charAt(1), 16)) {}
    for (i = 0; i < 5; i++) document.writeln(h[i]);
    for (i = 0; i < 40; i++) document.writeln();
    var n = pw.length;
    var m = 0;
    var s = '';
    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 was able to convert it almost all to Python because I'm versatile in JS as well as Python.

    Basically, all it's doing is using that variable t...


    var t = '\00\01\02\03\04\05\06\07\010\t\n\013\014\r\016\017\020\021\022\023\024\025\026\027\030\031\032' +
    '\033\034\035\036\037\040!\042#$%&\047()*+,-./0123456789:;\074=\076?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\134]^_`abcdefghijkl' +
    'mnopqrstuvwxyz{|}~ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—˜™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПР' +
    'СТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя';


    and the variable pw...


    var pw = 'default';


    As well as the arbitrarily chosen integer 44 to do some bit shifting, incorporating both the t string and the pw string...


    c = c ^ 44 ^ t.indexOf(pw.charAt(m));


    I'm telling you, I'm damn close.

    I suppose I could just run it in JS as is.

    But I really wanna transpile it to Python.
    The following users say it would be alright if the author of this post didn't die in a fire!
  9. #29
    GGG victim of incest [my veinlike two-fold aepyornidae]
    Originally posted by gadzooks 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.

    Lol yeah I forgot that bit. I've got it down now though. Almost done with my first lesson. The % function is really weird to me still. I can't imagine when it would be useful, unless it had another purpose besides figuring out the re-reindeer of a division problem.

    Literally my first day so i dont feel too bad about it. I wish I knew I'd enjoy this earlier in life. Maybe i could still be a virgin.
  10. #30
    GGG victim of incest [my veinlike two-fold aepyornidae]
    This is about as complex as I can get right now. I just got home so I'm hoping to do more than just lines of text and numbers by tonight.

    price_of_african_slave = 3.50
    number_of_slaves = 10
    five_dollars_off_coupon = 5

    print("total cost of these slaves comes out to " , end="")
    print(price_of_african_slave * number_of_slaves - five_dollars_off_coupon , end="")
    print(" dollars.")

    african_string_1 = "We should give every Asaian male"
    african_string_2 = 2
    african_string_3 = "strong african slaves cause they deserve it man"
    african_string_final = african_string_1 + " " + str(african_string_2) + " " + african_string_3
    print(african_string_final)


    Question, what is better to do when I want to add a space? "something" + " " + "something" ORRRR "something " + "something"

    Is there any reason to do one or the other?
    The following users say it would be alright if the author of this post didn't die in a fire!
  11. #31
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by GGG Lol yeah I forgot that bit. I've got it down now though. Almost done with my first lesson. The % function is really weird to me still. I can't imagine when it would be useful, unless it had another purpose besides figuring out the re-reindeer of a division problem.

    Literally my first day so i dont feel too bad about it.

    Modulo/modulus?

    It's useful for things like determining whether a integer is odd or even, for example.

    It might sound like an obscure use-case, but one day in the future, you will end up using it.

    And yeah, you are doing pretty well, I didn't mean to throw too much at you all at once, but I can help give you some guidance with regards to how to prioritize certain things.

    You will be using lists/arrays and dicts/key-val-pairs A LOT.

    There are certain fundamental data structures and syntax patterns that you basically use 90% of the time.

    The Pareto principle is pretty relevant here, actually.

    There are some things that will always be confusing, too.

    Like recursion. You get better at it, but I'm skeptical that there is anyone that is truly comfortable with particularly complex recursive functions.

    And a neat thing with Python is list comprehensions (again, don't think too much about this, I'm just showing you an example of something you'll want to take advantage of later):


    my_list = [i for i in range(50)]


    This would give you a list of integers from 0 through to 49.

    But these list comprehensions (and dict comprehensions are possible too) can get ever more complex.

    Here's an example of one I have used like a dozen times, but have to google it EVERY SINGLE TIME I use it.

    I just cannot wrap my head around how it works.

    It's like some kind of wizardry to me:


    flat_list = [item for sublist in l for item in sublist]


    It looks simple as fuck, but I can never remember off the top of my head the precise ordering of these elements.

    Basically what that does is flattens a nested list (I.e. a list that may or may not contain other lists as entries).

    So, for example:


    my_list_of_lists = [[0,1,2], [3,4,5], [6,7,8]]


    Using the above list comprehension...


    flat_version_of_list = [item for sublist in my_list_of_lists for item in sublist]

    print(flat_version_of_list)

    # Outputs: [0,1,2,3,4,5,6,7,8]



    Originally posted by GGG I wish I knew I'd enjoy this earlier in life.

    I, too, regret not learning it sooner, but it's never too late.

    If I recall correctly, you're actually a bit younger than I was when I started programming.

    Originally posted by GGG Maybe i could still be a virgin.

    Lol.

    I'll admit, I had most of the sex in my life before I even wrote my first fully functioning program (besides like, "print 'hello world' in QBASIC in high school, etc).

    So yeah, that may be one good reason to get really into computers later in life.
  12. #32
    GGG victim of incest [my veinlike two-fold aepyornidae]
    It is a lot, but I'm probably going to come back to this thread in a few weeks or a month when I can understand it better. I'm still trying to get the fundamentals down. Can't really do much of anything.

    Did you start with Python? You might've told me before, I forget.
  13. #33
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by GGG This is about as complex as I can get right now. I just got home so I'm hoping to do more than just lines of text and numbers by tonight.

    price_of_african_slave = 3.50
    number_of_slaves = 10
    five_dollars_off_coupon = 5

    print("total cost of these slaves comes out to " , end="")
    print(price_of_african_slave * number_of_slaves - five_dollars_off_coupon , end="")
    print(" dollars.")

    african_string_1 = "We should give every Asaian male"
    african_string_2 = 2
    african_string_3 = "strong african slaves cause they deserve it man"
    african_string_final = african_string_1 + " " + str(african_string_2) + " " + african_string_3
    print(african_string_final)


    Question, what is better to do when I want to add a space? "something" + " " + "something" ORRRR "something " + "something"

    Is there any reason to do one or the other?

    Well, there's actually a third way that's even better in this particular case, but perhaps not always.

    You can do any of the following:


    print("The following number " + str(integer) + " is cool.")

    # Or...

    print("The following number", integer, "is cool.")

    # Notice how you're not even converting the integer to a string.
    # Python, at least Python 3.x, handles multiple arguments for the built-in print function.

    # Now, if you were to do the following...

    print("The following number " + integer + " is cool.")

    # You would get an error.


    Anyway, as a general rule, though, I wouldn't bother separating strings from each other unless you need to place something variable in between.

    Later on, you'll learn about string formatting, which will also be very relevant when (not if, when you start learning about Flask and the Jinja template engine).

    But let's leave some of that for later.

    Master the fundamentals first, then gradually work your way up.

    And most importantly, have fun along the way.
    The following users say it would be alright if the author of this post didn't die in a fire!
  14. #34
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by GGG Did you start with Python? You might've told me before, I forget.

    Actually, I didn't discover Python for quite a while.

    I started with some very basic essentials when I was kid using QBASIC.

    It was a procedural language that had things like "GOTO LINE 40" to skip around and create what is known as "control flow" in programming.

    It was fun for making the computer make random beeping sounds or to print ASCII cocks and stuff like that.

    Then I didn't really do any programming for years, maybe even a decade total.

    I started getting back into it via web development (HTML and CSS mostly), but then you always want to incorporate some "client-side" scripting using JavaScript. So JavaScript was where I picked up most of the fundamental syntax.

    I also bought a book on Ruby at one time and worked my way through it.

    I honestly haven't written a single line of Ruby code since, but, it was still helpful, since programming languages all share certain universal commonalities (for the most part - I don't want to digress into imperative or functional languages yet, or even how object-oriented languages work, which constitute the vast majority, including Python and JS - you'll get there when you're ready).

    But when I discovered Python, I fell in love with it.

    I have had to write code in Java (note: Java and JavaScript have absolutely nothing to do with each other, and I think whoever named JavaScript pulled off the world's most confusing troll job), as well as C, C++, C#, etc (and even assembly, but we are not going to go there yet).

    There's a lot more boilerplate code for those languages (basically, you have to write a lot more code to see the same results that you get with simpler languages like Python).

    So virtually all my hobby and web projects are done in Python, as well as any scripts I write to automate tasks for work.

    I use Python for like 90% of my hobby and personal projects, and then for work, I mostly use JavaScript.

    You will pretty much need to learn JavaScript at some point, but stick with Python for now, the transition will be relatively seamless.
    The following users say it would be alright if the author of this post didn't die in a fire!
  15. #35
    HTS highlight reel
    Originally posted by gadzooks It was fun for making the computer make random beeping sounds or to print ASCII cocks and stuff like that.

    Using QBASIC for this bullshit is how I spent my 10th grade IT class. That takes me back. 😅
    The following users say it would be alright if the author of this post didn't die in a fire!
  16. #36
    totse3.com Space Nigga
    Originally posted by HTS Using QBASIC for this bullshit is how I spent my 10th grade IT class. That takes me back. 😅

    What do you do for a living?
  17. #37
    GGG victim of incest [my veinlike two-fold aepyornidae]
    I'M A BABY
  18. #38
    GGG victim of incest [my veinlike two-fold aepyornidae]
    Originally posted by totse3.com What do you do for a living?

    lol
  19. #39
    totse3.com Space Nigga
    Originally posted by GGG lol

    what is so funny
  20. #40
    HTS highlight reel
    Originally posted by totse3.com What do you do for a living?

    Smoke meth and masturbate, play video games, you know how it is.~
Jump to Top