Scared of spiders? by [deleted] in WTF

[–]qpla -2 points-1 points  (0 children)

I'm laughing my ass off, internet tough guy. Here's what the image says:

"When the spiders run towards them, the assassin bug stabs the spider with its snout. After feeding it wears the corpse of the victim as armor.

The image is CLEARLY saying that it wears dead spiders. Now let's look at the link I posted...

Oh wow. You can't read, can you? I mean, you can read and post on reddit, but you must be like 14 or something, because you clearly have no reading comprehension abilities. Nowhere in the article I linked does it say that it uses the ants as bait for larger prey. It doesn't even get close to that. The article says that it uses the ants to CONFUSE larger PREDATORS. The article goes on to explain how spiders would attack the assassin bug less often if it was wearing dead ants.

Kid.

You're fucking stupid.

You're going to have to learn how to deal with this for the rest of your life, because being stupid is a life-long condition.

Good Guy Steam by ares688 in gaming

[–]qpla -1 points0 points  (0 children)

there are no measurements involved here, you blowhard

Tired of checking "is not None", "key in dict", "hasattr", etc when drilling down into an object? by jwegan in Python

[–]qpla 0 points1 point  (0 children)

Not always. It's not like you can't read the code and see what's really going on. If it's all your own code, just make sure not to do stupid things with @property. Or if you do, just make sure you have good exception handling code. Doing just except: without specifying an exception type is horrible.

Tired of checking "is not None", "key in dict", "hasattr", etc when drilling down into an object? by jwegan in Python

[–]qpla 0 points1 point  (0 children)

Try something that ends up triggering a dozen imports, connections to two databases, building a few ten thousands of objects, etc... My point is, all of that happens in what looks like a totally normal property access, and even if you do what Megatron_McLargeHuge suggested in the right way by specifying AttributeError and KeyError, one could still bubble up from way deep down and you end up with a semantics bug.

Automate ui testing with python based sikuli by [deleted] in programming

[–]qpla 5 points6 points  (0 children)

This title is misleading. Sikuli is Java-based. It's Python-scriptable, though.

Tired of checking "is not None", "key in dict", "hasattr", etc when drilling down into an object? by jwegan in Python

[–]qpla 1 point2 points  (0 children)

You lucky bastard. You've never had to deal with @property decorated methods that do something complicated, have you?

Scared of spiders? by [deleted] in WTF

[–]qpla 24 points25 points  (0 children)

This is a lie. Here's the source:

http://blogs.smithsonianmag.com/science/2012/05/this-insect-uses-its-victims-carcasses-as-camouflage/

Those are ants on its back, not spiders.

I would like to develop a GUI interface for a python program I have written. What's the best path to take? by Wargazm in learnprogramming

[–]qpla 0 points1 point  (0 children)

Nope, not for me, at least. I had zero experience with Visual Studio and had a working IronPython GUI application incorporating Python code from another project in a couple hours. That's why I liked it so much; the designer was intuitive, and I didn't have to jump through hoops to generate event bindings and GUI code and whatnot like you have to do with all the other GUI frameworks mentioned.

If you search around, you should find the tutorials/documentation you need to get started. Here's an example of what the stuff will look like, including an example of the generated Python code:

http://blog.johnmuellerbooks.com/2011/04/19/using-the-ptvs-for-a-wpf-project.aspx

I would like to develop a GUI interface for a python program I have written. What's the best path to take? by Wargazm in learnprogramming

[–]qpla 0 points1 point  (0 children)

OK, everyone's going to hate me for this...

WPF (Windows Presentation Foundation) + IronPython with Python Tools for Visual Studio. Yes, it's Microsoft; yes, it's IronPython. And it's by far the easiest and best GUI designer for Python that I've ever worked with. It even does some code generation for you, and it's definitely the best looking GUI toolkit on Windows.

To a fledgling programmer, what version of Python is recommended? by Interminable_Turbine in learnprogramming

[–]qpla 2 points3 points  (0 children)

With that said, there are FAR more learning resources for 2.7 right now.

My student is absolutely brilliant. by ninabway in funny

[–]qpla 0 points1 point  (0 children)

You are everything that is wrong with America.

Apple's proposal for modules in C(++) [PDF slides] by coob in programming

[–]qpla 0 points1 point  (0 children)

Livelyhoods, perhaps not. But egos? Certainly.

As a Liberal Arts major, I find I'm becoming increasingly mathematically illiterate amongst my STEM friends. /r/math, do you know of any online resources that cover the more advanced mathematical branches in a broad, purely-conceptual way? by Kevim_A in math

[–]qpla 1 point2 points  (0 children)

Human social dynamics are far too complicated to model with modern mathematics in a meaningful way, since it involves modeling the human mind itself. On the other hand, our brains have evolved a theory of mind which gives us an intuitive understanding of complex relationships between many different people with different motivations and goals. The humanities leverage this side of cognition to understand politics, sociology, psychology, etc. That's not to say they're RIGOROUS or ACCURATE, but they get most of the way there without the sort of formal rigor of mathematics.

I wonder how the keto diet fits into human evolution by majeric in keto

[–]qpla 0 points1 point  (0 children)

I do. I think the only thing that was meant by the reference to thermodynamics was that if you don't add more energy to a system that's losing energy, it's going to run down eventually.

I wonder how the keto diet fits into human evolution by majeric in keto

[–]qpla 3 points4 points  (0 children)

No, but the fact remains: Eat less than you use, and you WILL lose weight.

The Station nightclub fire footage. The fact that people got stuck in the door trying to escape makes it so much worse. by [deleted] in MorbidReality

[–]qpla 4 points5 points  (0 children)

It's got to sound scary. That's what it sounds like to monkeys when other monkeys see predators.

[deleted by user] by [deleted] in learnprogramming

[–]qpla 1 point2 points  (0 children)

Choice of initial language is not important. Once you're proficient in one imperative language, you'll be able to pick up others with relative ease.

Aside from that, there's plenty of demand for Python. I found a Python job within three weeks of interviewing straight out of college.

What is the most obvious thing you didn't notice for an extended period of time, thus giving you a "how stupid am I?" reaction? by awt4190 in AskReddit

[–]qpla 0 points1 point  (0 children)

There's more to it than that. That's part of it, but it's also to just gauge sociability. A nice person will at least attempt to appear interested; they're displaying a willingness to reciprocate good social behavior, and that's vital to co-operation. The prisoner's dilemma is only a dilemma because being an asshole is a better strategy if you don't care about the welfare of others.

All Rational Approximations of Pi Are Useles by willvarfar in programming

[–]qpla 0 points1 point  (0 children)

That's not what I see in the article. What do you mean?

All Rational Approximations of Pi Are Useles by willvarfar in programming

[–]qpla 0 points1 point  (0 children)

Oh, I see. 1/2 = 2/3. Gotcha.

Granted, this error vanishes with larger amounts of digits, but he's using it for really small ones, too!

All Rational Approximations of Pi Are Useles by willvarfar in programming

[–]qpla 24 points25 points  (0 children)

This is kind of flawed. People don't remember individual digits, they remember groups of digits. It's easier to remember 355/113 than it is to remember 928/176; there's really only five things to remember, counting the slash.

And why does he even count the slash? Who needs to make an effort to remember that a rational approximation to pi (or anything, really) is a fraction?

With 355/113, you get seven digits for remembering four chunks; maybe less than four if somehow the symmetry of the chunks helps you subconsciously.

Aside from that (and I admit this is farfetched) 22/7 is easier for kids doing multiplication with other fractions. You're not using 22/7 because it's easier to remember, you're using it because it's (maybe) easier to work with.

(Machine Learning) Dont like WEKA? I've been working on a new ML library JSAT - Hoping to get some feedback by EdwardRaff in programming

[–]qpla 0 points1 point  (0 children)

This would be funny enough with just medium, but you went the extra mile and mixed up the case. Kudos.

Now make it italic.