User Controls
Posts by gadzooks
-
2018-12-15 at 3:22 AM UTC in If someone offered you $10,000
Originally posted by HTS This is gonna sound edgy, but why?
Because murder is wrong.
I mean, come on, HTS, really?
You're right, it really does sound edgy, and I sincerely hope that was your one and only intent in asking that.
Even though I do enjoy ethical debates, even some that others would think completely unrealistic or inconsequential, and I play devil's advocate for so many things because of how much I enjoy the very act of debate and rational discourse.
But, when it comes to the murder question, it seems pretty simple a solution to me.
Ask yourself:
1. Would I mind if someone came along and killed me without my consent?
And, since some people might just be edgy enough, or perhaps suicidal enough, to say "yes" to #1...
2. Would you mind if someone came along and killed the one person you care most about in the world, without their consent?
Very few people are 'edgy' enough to answer yes to that one.
Although some use the copout that they "don't have anyone in their lives they care about that much."
I consider that an edgy copout response as well though. -
2018-12-15 at 3:18 AM UTC in If someone offered you $10,000
-
2018-12-15 at 3:16 AM UTC in Old white men make me sickThe best of all times, though, is "24 cis-males, 4 transwomen, 3 transmen, 1 cis-female dwarf, 8 goats, 4 jars of mayonaise, and a broken wine bottle."
I think they banned that one from the Internet though. -
2018-12-15 at 3:10 AM UTC in Lanny_loves = faggotsFor some further explanation about the inner workings of our calculate_penis_surcharge() function:
# First note that you have to define your function by giving it a name, and telling it what arguments/parameters to expect.
# In this case, we only pass into it one argument/parameter - The length of a single slave's penis.
def calculate_penis_surcharge(penis_length):
# First, we check if this particular slave is above average in penis length...
if penis_length > AVERAGE_PENIS_LENGTH:
# If they are, then we use the built in "abs()" function to get the ABSOLUTE difference between the two values, and divide that by the average, to get the difference as a percentage.
return 1 * (abs(penis_length - AVERAGE_PENIS_LENGTH)) / AVERAGE_PENIS_LENGTH
elif penis_length < AVERAGE_PENIS_LENGTH:
# Note that we return a negative value if the penis length is below average.
return -1 * (abs(penis_length - AVERAGE_PENIS_LENGTH)) / AVERAGE_PENIS_LENGTH
else:
# This returns zero if any of the slaves are exactly average.
return 0
And there you may notice that I have a bug in my code.
Since the penis surcharge is meant to be like a tax of sorts that is applied to the originally defined COST_PER_SLAVE above, the flaw in my code is that it will actually multiple by ZERO if the slave's penis is exactly 6.0 inches.
For the record, that was unintentional, but it brings up a very valuable lesson about programming.
Bugs happen, and they happen a lot - no matter how experienced you are, you will make mistakes.
I won't start teaching you about Unit Testing yet, but it's a very useful way to ensure that your code does what it needs to do.
But that lesson is for another day.
STAY TUNED! -
2018-12-15 at 3:01 AM UTC in Lanny_loves = faggotsAlso, after just like two drinks in me, the whims of my ADHD have once again blown in yet another direction.
I'm going to give a short Python tutorial based off of your slave trade code example above...
I've modified it slightly to demonstrate some more Python (and general programming) principles that you can maybe benefit from.
print("Due to an overwhelming number of people purchasing slaves simply for homoerotic sexual activities, we now charge for each slave by penis length.")
# Note that I capitalize these variable names.
# It is not necessary, but common practice to capitalize what are called CONSTANTS - they are assigned a value once, and this value is not altered anywhere.
PRICE_PER_AFRICAN_SLAVE = 3.50
FIVE_DOLLAR_OFF_COUPON = 5
AVERAGE_PENIS_LENGTH = 6.0
# The following is a list of slaves with unique attributes (in this case, penis length, in inches).
list_of_slaves_by_penis_length = [
8.5,
4.8,
6.0,
6.5,
7.0,
3.9,
9.5
]
# You can get the total number of slaves, even though it is irrelevant for this version of the program, by using Python's built in LEN function.
total_number_of_slaves = len(list_of_slaves_by_penis_length)
# Note that this also works for strings...
print(len("This is a sentence."))
# Outputs: 19 (since there are 19 characters in the string).
# Next, we will define a function that will contain an IF... ELIF... ELSE... conditional statement, and some simple math to calculate the penis length surcharge we will be applying to each slave.
# The penis surcharge is basically a measure of how much bigger, or smaller, they are than an arbitrarily chosen average length. If they are under that length, they cost less. If they are over that average length, they cost more.
def calculate_penis_surcharge(penis_length):
if penis_length > AVERAGE_PENIS_LENGTH:
return 1 * (abs(penis_length - AVERAGE_PENIS_LENGTH)) / AVERAGE_PENIS_LENGTH
elif penis_length < AVERAGE_PENIS_LENGTH:
return -1 * (abs(penis_length - AVERAGE_PENIS_LENGTH)) / AVERAGE_PENIS_LENGTH
else:
return 0
# Next, we use a "for each" type loop to iterate through the initial list of slaves (by penis length)...
total_cost = 0
for slave in list_of_slaves_by_penis_length:
final_price = price_of_african_slave + price_of_african_slave * calculate_penis_surcharge(slave)
# Note that the total cost is accumulatively added to with each final price.
total_cost += final_price
print("Total cost of these slaves, after accounting for penis length surcharge and five dollars off coupon, comes out to " , end="")
print(total_cost - five_dollars_off_coupon, end="")
print(" dollars.")
# Outputs: "Total cost of these slaves, after accounting for penis length surcharge and five dollars off coupon, comes out to 21.95 dollars."
So there you have some new and potentially useful concepts, and framed in the same context as your original code, thus keeping things consistent. -
2018-12-15 at 2:49 AM UTC in Lanny_loves = faggots
Originally posted by GGG The answer to your question totse, is that he doesn't make a living. He threatened somebody with a deadly weapon and now the state considers him unstable, so they pay him to just stay at home and away from society.
You're Canadian right? He's buying meth with your tax dollars. How does that feel?
You really refuse to acknowledge HTS as a 'she'/'her'?
I thought everyone even remotely in the LGBT boat was supportive of one another.
Your avatar is a freaking rainbow flag!
WTF, GGG?
You are an enigma. -
2018-12-15 at 1:28 AM UTC in Lanny_loves = faggots
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. -
2018-12-15 at 1:18 AM UTC in Lanny_loves = faggots
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. -
2018-12-15 at 1:10 AM UTC in Lanny_loves = faggots
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. -
2018-12-15 at 12:43 AM UTC in Old white men make me sick
Originally posted by -SpectraL If you watch too much of that shit you will destroy your mind and desensitize yourself in future life.
Probably.
Call me crazy, but I've always found disturbing shock sites to be both disturbing and shocking to look at.
Especially the violent ones.
I mean, tubgirl features no violence, and technically isn't even sexual (except for maybe a very, very exclusive fetishist club), so I have no idea what long-term effect looking at ones like would have.
Either way, I'm not looking to find out. -
2018-12-15 at 12:37 AM UTC in Lanny_loves = faggots
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. -
2018-12-15 at 12:27 AM UTC in When you're at the store buying liquor and walk into the 'mixer' aisle
-
2018-12-15 at 12:21 AM UTC in Does anybody else notice that everybody who abused bundy as a teenager is essentially retarded?
Originally posted by vindicktive vinny you have no idea how hard it is to convey your thoughts and ideas in a language you dont even use or speak irl.
Actually, I do personally have some idea. After all, I was in French immersion from Kindergarten through to grade 12.
That means I had to speak French every single day for over 12 years.
But, of course, I wouldn't be very good at the aforementioned challenge threads if I had to do it in French or some other language. That would definitely make it way more difficult. -
2018-12-14 at 11:52 PM UTC in Old white men make me sick
Originally posted by MORALLY SUPERIOR BEING III: The Quest for 911 Truth Never seen those all together before.
I genuinely feel sick right now.
Someone should make a giant collage of every shock site out there.
And then hack google.com or facebook.com and put it right there in high resolution one day.
The world would go nuts. -
2018-12-14 at 11:50 PM UTC in ITT: We speak only mono-syllabically
-
2018-12-14 at 11:44 PM UTC in Old white men make me sick
Originally posted by Flatulant_bomb You are way off topic! Reported.
You can't talk about old white men without eventually bringing up lemon party, and you can't just talk about lemon party without reminiscing about goatse, tubgirl, meatspin, or mantrain.
And then once the classics are a part of the open discussion, pretty much any shock site/image/video becomes relevant. -
2018-12-14 at 11:41 PM UTC in If someone offered you $10,000
Originally posted by mmQ But the se7en head deliverer never was the wiser as to what he delivered so you can't really say it was ethically wrong.
That's a really good point.
I wouldn't consider him to be ethically responsible for what he did.
But, if you deliver packages with such specific instructions, and for particularly high amounts of money, then you might be guilty of some ethical naivety for not even considering that you're possibly contributing to something morally ambiguous. -
2018-12-14 at 11:38 PM UTC in Old white men make me sick
Originally posted by mmQ You haven't even heard of 3 guys 1 hammer yet claim to be an afficianado of obscure internet culture??
So, SO SAD. Thoughts and prayers.
OHH, I've heard of the event, just not the name.
Yeah I googled it. It's those wacky Ukranian kids.
It also reminds me of the Canadian with the icepick.
Some fucked up shit. -
2018-12-14 at 11:37 PM UTC in Old white men make me sickI am so, so tempted to just spam all the 1,000 post SG threads titled something like "When did you last do X?" or "How are you feeling today?", etc... with all of the above shock images.
Without any NSFW warnings or spoiler tags, of course.
But my angels of a better nature prevent me from doing so. -
2018-12-14 at 11:34 PM UTC in Old white men make me sick
Originally posted by mmQ It's also worth noting 2 girls 1 cup is fake, whereas the timeless classic 3 guys 1 hammer is all too (enjoyably) real.
Interesting...
I never actually watched 2 girls 1 cup.
Obviously I knew of it, and would recognize the first few seconds any time I was tinyurl tricked into opening it.
But I have admittedly never heard of 3 guys 1 hammer.
Honestly, none of these sound appealing to me.
Now meatspin... I think my record was like 200 consecutive spins.
(but not really tho).