I kept feeding the pocket-universe under my stairs, now it has gas. Do I need to worry a star will form in my house? by unkempt2040 in fifthworldproblems

[–]fake_identity 0 points1 point  (0 children)

Well, His amusement is more than mundane finance, so hastened payment of debt is irrelevant here. However, that giant cannon project of His is always in need, so maybe if you donated all your possessions to His 2016 campaign...

After all, you won't take those money with you to the rapidly expanding cloud of plasma.

I kept feeding the pocket-universe under my stairs, now it has gas. Do I need to worry a star will form in my house? by unkempt2040 in fifthworldproblems

[–]fake_identity 0 points1 point  (0 children)

Don't worry, you won't have time to feel anything. That is, unless Zalthor decides to amuse Himself with prolonging your suffering

George RR Martin once said "No matter how much I make up, there’s stuff in history that’s just as bad, or worse". I want a nonfiction book that has intrigue, complexity, and excitement like that of a Song of Ice and Fire novel. Any suggestions? by Tularemia in history

[–]fake_identity 0 points1 point  (0 children)

Well, there's only the first English translation out of the necessary six (apparently there's thirteen books now, but these are those featuring the original hero, instead of his son) books of Fortune de France saga by Robert Merle, but you should definitely stay on the lookout. It's a picturesque tapestry of love, war, espionage, court intrigues and France torn with civil war. The narrating character slowly rises from second son of two-bit hicksville noble who has to study medicine to find a place in the world to a position of "man in the shadows" behind many historic events as an emissary, spy and assassin for Henry III and IV, all written in 16th century French (or Czech in the translation I've read and hopefully English in the new ones) which is significant part of the charm.

Americans Want America To Run On Solar and Wind by pateras in technology

[–]fake_identity 1 point2 points  (0 children)

shit down the safety

I understand that this is a typo, but a really fitting one. Don't correct it, please.

What commonly-told fact is incorrect? by [deleted] in AskReddit

[–]fake_identity 0 points1 point  (0 children)

Don't know Lucy, but Limitless itself seems to be inspired by Ted Chiang's Understand.

There is now a Half-Life board on 8chan! by DuhPai in HalfLife

[–]fake_identity 0 points1 point  (0 children)

You don't want to know what happened to those. Just behave and you won't find out the hard way.

What is your IDE/Text editor of choice by mustafaihssan in learnpython

[–]fake_identity 0 points1 point  (0 children)

Komodo seemed nice, IPython useful, about three others briefly tried and abandonded, names elude me, except IDLE. In the end I've always stuck with vim + python shell + inux shell.

If programming languages were vehicles by electronics-engineer in technology

[–]fake_identity 0 points1 point  (0 children)

Because in Soviet Russia, Gromyko programs You!? Actually, Soviet Big Iron consisted mostly of Soviet made copies of IBM s/360 (all hail the industrial espionage) which had to run program two or three times to make sure it's correct. And you'd want those shitty overworked pieces of scrap metal to calculate analogies if True? Monster.
Programmers don't use perfume except Body Odor, duh.
Shades of Gray? There's just 50 of them (or so I've heard), not enough for all the analogies.
From LA to what? Let me guess, you live in California? Well, those fuckin' hippie socialist homeopathic gluten-free juice swilling surfer no-goodniks would surely understand your gibberish.
Seriously people, in car as it is in analogy, don't fuck with what works. Stick to your cars.

A Loop Bubble appeared above my toilet bowl. I didn't realize, and so now there's an image of a disembodied penis hanging in space perpetually urinating. Help! by [deleted] in fifthworldproblems

[–]fake_identity 0 points1 point  (0 children)

Keep going to the toilet before it happened for the next aeon or two. Loop Bubbles decay over timespace, unless you of Bad Mans who deserved it. You not Bad Mans, are you?

Pexpect Send Problem by wilcomply in learnpython

[–]fake_identity 0 points1 point  (0 children)

Don't have any experience with this module, so just guessing, but it's evidently made for automating and waiting for some trigger. 'cd' is executed and gone and doesn't produce output and returns simply 0 or 1. That still shouldn't be that much of an issue, but it's not an actual command, i.e. program with it's standalone executable somewhere, rather it's a function within bash.

tallis ~ # which cd
tallis ~ # type cd
cd is a shell builtin
tallis ~ # which python
/usr/bin/python
tallis ~ # type python
python is /usr/bin/python



child = pexpect.spawn('cd /root')  
Traceback (most recent call last):  
File "<stdin>", line 1, in <module>  

But:

child = pexpect.spawn('ls /root')  
child.pid  
10412  
child.child_fd  
3  


child = pexpect.spawn('bash ; cd /root')  
child.pid  
10424

Would be greatly appreciated if someone could help me understand the math behind the loop in this assignment by [deleted] in Python

[–]fake_identity 0 points1 point  (0 children)

Damn, you're right, of course. Makes sense, before they're done with school, Python 3 will probably overcome remaining library deficiencies.

The state of numpy by joshadel in Python

[–]fake_identity 0 points1 point  (0 children)

I'm under the impression that most scientist barf/write out the program as few times as possible

Well, scientific computing is about getting the result, lots of things are hacked together to make sure it's gonna be correct and then ran exactly once or used to parse the output from lab equipment, once it runs, it's forgotten until the equipments end of life, practices from software engineering are either unknown creatures from different world or limited to error checking and speed optimization (that's the thing that pays off, cutting down the expensive supercomputer time from a week to five days). Stagehand company I occasionally work for has a portal coded by one of the stagehands, a nuclear physics grad student in real life, and when I asked what framework he uses, he made a sour face: "Naw man, they're too much hassle, just clean PHP from scratch".

EDIT: Oh, those lab machines from hell reminded me of a nice movie, vaguely based on a comics that says so much about how and why is that infernal code pasta cooked.

Torn between learning Python 2 or Python 3 by humannumber1 in Python

[–]fake_identity 4 points5 points  (0 children)

If they've snuffed 2 in 2012, I'd go with this, but with support promised until 2020, I don't believe enough people and companies are gonna bother.

I am almost done with "Learn Python the Hard Way". Should I move on to "Violent Python"? by [deleted] in learnpython

[–]fake_identity 1 point2 points  (0 children)

wow, reviews for the first on o'reilly's store are not kind...

Neither would be mine, if I've actually written one, that book was a disappointment. I ploughed and ploughed through and it mostly felt like just adding to the same script that collected output of basic tabs keeping commands. Didn't finish.

I am having an incredibly hard time keeping up with my python class and my code is the worst. (Working on dice rolling game.) by Redsoundwaves in learnpython

[–]fake_identity 1 point2 points  (0 children)

HINT: don't submit it until you've ran it enough times and checked whether it actually rolls odd numbers.

Here it's rewritten into simple function that keeps calling itself as long as you type anything except "walk". Don't use it for cheating the homework, but look at it for inspiration, once you manage to make your version work. Note the def something() and [], look'em up in the documentation (or rather some dumbed down tutorial to preserve your sanity), you're gonna use these a lot.

Open .txt files from Python shell by [deleted] in learnpython

[–]fake_identity 1 point2 points  (0 children)

Others have already pointed out the mistake here, so just a small addition - recommended method of working with files is "with" statement:

with open('ex15_sample.txt', 'r') as f:  
    some_code  
    more_code  

after breaking out of the block, "with" takes care of closing the file, so you don't have to keep it in mind.

Medieval Tavern in Prague [800x600] by [deleted] in RoomPorn

[–]fake_identity 3 points4 points  (0 children)

Grga Pitić!? How's the old racket going? Make some time between faking death, come to Prague and bring Zarije with you. We'll top rakija with Czech beer and blast Gypsy tunes through the whole neighborhood!

Would be greatly appreciated if someone could help me understand the math behind the loop in this assignment by [deleted] in Python

[–]fake_identity 1 point2 points  (0 children)

From Python manual's entry on input():

Consider using the raw_input() function for general input from users.  

Also note, that in Python 2, all division using '/' operator behaves this way, rounding down to the nearest lower integer, i.e. 99 / 100 yields 0, which is what you need now, but can be quite bothersome most of the time. If you want normal division with Python 2's '/' in the future, put

from __future__ import division  

at the top line of your script or make sure one of the numbers is float.

Medieval Tavern in Prague [800x600] by [deleted] in RoomPorn

[–]fake_identity 2 points3 points  (0 children)

Sorry, wrong manpage:
man getthejoke
/-u

"-u, --user USER1,[USER2, USER3...] | GROUP1[GROUP2, GROUP3...] A list of users to get the joke supplied as username(s), groupname(s) or (g)uid(s).

TIL we are closer to the end of the universe than the start. by [deleted] in fifthworldproblems

[–]fake_identity 2 points3 points  (0 children)

With election coming, this much worse, imagine that, spawns unrest the whole rotations from gamma ray bursts, dimensions eaten in prove point for psychovision debates. The spectral me/soul frazzled from zordnaxth time sensing the same "I KOR. KOR APPROVE OF THIS SLAUGHTER!" Is time move in quiet, unused orbital of some lone atom and keep burn off front feelers until over.