« first day (2031 days earlier)      last day (2903 days later) » 
01:00 - 17:0017:00 - 23:00

5:01 PM
yeah
that one
I think that's enough
perhaps make clean
then make
I do not know exactly how well the deps are handled in there.
 
Well, I just did a plain make, and I didn't get a message about missing modules this time.
Now running make test. But it looks like it's going to take a long time and I'm getting pretty tired - it's just after 3AM
I think I better ^C it and do the make test again tomorrow
 
I have both versions 2.7.10 and 3.5.1, but I can't install a package for 3.5.1
 
Thanks for all your help, @Antti. I couldn't have done this without you.
Rhubarb
 
I don't have a command called pip3.
Should I switch C:\Python27 with C:\Users\Admin\AppData\Local\Programs\Python\Python35-32?
 
@PM2Ring you can do make test at night :d
 
5:20 PM
In IDLE 3.5
Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import numpy
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import numpy
ImportError: No module named 'numpy'
>>>
In command prompt
Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>>
 
@AnastasiaDunbar how'd you install nupy?
 
´pip install numpy´

It just got installed in Python 3.5.1.
63
Q: Installing python module within code

chuwyI need to install a package from PyPi straight within my script. Maybe there's exists module or distutils (distribute, pip) ability which allows me just execute something like pypi.install('requests') and requests will be installed into my virtualenv, and I should not type pip install requests in...

 
hello guys
 
It still installs for older version of Python.
 
If I want the user to input a word, and catch it if he inputs a number, how can I ? numbers can also be treated as strings
 
5:26 PM
Why do you need two versions of Python @AnastasiaDunbar?
@justastudent Sorry, what?
 
@Ffisegydd Because Python 2.7.10 can't import numpy.
 
@AnastasiaDunbar No, I mean why did you have two python installations to begin with?
And yes numpy does work on Python 2.7
 
@Ffisegydd I need to take the name of the user, but if he inputs numbers, I want to ask him again, the following doesn't seem to work
try:
 
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.
 
try:
x=raw_input()
cuz if he enters a number, x will treat those numbers as strings, so it'll be fine
 
5:31 PM
You need to try to convert it to a number and then catch the error (if it's not a string-that-looks-like-a-number) if it occurs.
@AnastasiaDunbar I don't understand what you're doing or what you've done to install numpy, but you still haven't answered my question.
 
@AnastasiaDunbar @Ffisegydd asked why do you need python 2
 
Just pip install numpy
 
Never mind.
 
@Ffisegydd thanks m8
 
Because python 3 didn't exist? I don't remember.
 
5:32 PM
@justastudent so b12341234 is a good name?
@justastudent also, is there any particular reason for using Python 2? School requirement? If not, switch to Python 3 for brighter future :d
 
@AnttiHaapala hmmmm not really, I actually thought py2 have more documentation that py3, as I thought it was new xD
 
@justastudent py3 has been around for 8 years now
 
 while(True):
    try:
        x = float(raw_input())
        break
    except:
        print("Not a number")
@justastudent Like that?
 
@AnttiHaapala true lol, that was silly of me, to decide so quickly on the older version, but I think I am switching to py3, on the next project
 
How do I get numpy to work on Python 2?
 
5:37 PM
I'd suggest you uninstall one of your versions first.
 
Uninstall Python 2?
 
It'll only cause confusion going forward until you need two for an extremely specific purpose.
I'd suggest you use 3 over 2, yes.
 
What about raw_input() and input()
 
What about them?
 
@AnastasiaDunbar not really, if it captures that the input is float or int, to continue, but if it can't, then that means the input is a string, which is exactly what I need
 
5:38 PM
raw_input is not defined in Python 3.
 
It's not, you just use input in Python 3.
 
But I need to convert every Python 2 file to Python 3 version.
 
It does the same job as raw_input.
 
How do I replace raw_input to input for every file I've created?
 
well, anyways, thanks guys ^_^
 
5:39 PM
float(x)==float(int(x))
 
@AnastasiaDunbar sorry? Can you not just use find and replace? If you'd like we could just screen share and I'll do everything for you - for a modest consultancy fee.
 
I have like a file of many .py files.
 
At this point though, I'm afraid I'm going to walk away.
 
They all are for Python 2.
 
user559633
How modest @Ffisegydd?
 
5:41 PM
@tristan Garlic-flavoured modest.
 
user559633
Oh, I can totally pay you in garlic knots
 
I'd really like some wild garlic pesto and bruschetta right now.
 
user559633
I will happily spend all day cooking if that's the cost of you working with me :D
 
@AnastasiaDunbar 2to3 exists
as its name says, it converts pretty much automatically most python2 scirpts to python3
 
how about this ?
http://paste.ofcode.org/4q6bnVHgGiu7r2A3CgFwZQ
trying to make a handler inside a class, what should the arguments be ? (event,self) ?
 
user559633
5:45 PM
 
@tristan fastest way to a man's heart is through the stomach - means you avoid the rib cage.
@justastudent if you need to ask what to do with self, then you should be looking at tutorials on OOP in Python.
You shouldn't be asking in here.
 
@justastudent perhaps you should read a python tutorial :D
a python 3 tutorial
the
 
user559633
a python 3.5 tutorial
 
user559633
a
 
a python 3.5.1 tutorial
 
user559633
5:46 PM
sorry i'm as tired as a bike
 
@AnttiHaapala @Ffisegydd oh, does the question show how much of illiterate I am with OOP ?
 
user559633
stop objectifying your code
 
@justastudent Yes. You're asking about basic, basic, basic syntax.
 
I could just copy my py3 version of numpy to p2.
 
no you just couldn't do, end of discussion.
 
5:49 PM
@Ffisegydd oh, let me check again xD, thanks anyways :D
 
Python3 runs libraries from Python2.
 
user559633
blinks
 
laughs
 
evenings
evening
 
picard.jpg
 
5:51 PM
coughs
 
user559633
fa...fancifully sips red bull
 
alucard.jpg
 
Evenin' all
 
user559633
hey JRS :)
 
hey
I'm sad to see on the starboard that I missed out on some things:P
 
user559633
5:52 PM
hey is for horses!
 
Why's Python3 not on C: but on C:\Users\Admin\AppData\Local\Programs?
 
@AndrasDeak yeah, PM2Ring compiled himself Python 3!
 
@AnastasiaDunbar if you keep on asking questions like this, you'll be kicked out of the room.
 
@Ffisegydd Why?
 
You're asking non-sensical questions that we could never help with as it is to do with your computer.
 
5:53 PM
@AnttiHaapala did it hurt for him?
 
You keep on asking for help and when someone engages with you, you refuse to answer their questions - instead continuing to ask random questions.
 
@AndrasDeak while doing that he found out that his distro was EOLed 2+months ago
 
I'd say "lol" but I'm worried you're trolling
 
no, it is true :d
 
5:55 PM
he's using Mepis linux, and it is based on debian squeeze
 
wow, never heard of it (which is not a very strong statement, I'm not that knowledgeable in distros)
 
it was eoled in february, after 5 years of existence... but the problem is he's using a derived distro :/
so you cannot upgrade it... no one ever developed it past that version
 
So he's been using Python 2 up till now? And you were on speaking terms regardless? :O
 
It's good to compile Python at least once, I reckon. Food for the soul :)
 
5:58 PM
yeah
so he's jumping from 2.6 to 3.6 :D
 
nice:D
It must be a really refreshing feeling for his pores and stuff
 
I want 3.6 D:
 
wait, 3.6 is not a thing, is it?:P
 
It's in dev.
 
ah
so from ancient edge to bleeding edge?
 
6:00 PM
yes
 
I remember Antti inspired me to compile 3.5 and insert some debugging in the C to understand a grammar based bug. That made me jump 2.7 -> 3.5. His evangelism is catching :D
 
though I suggested he'd install in /opt
 
user559633
              W
            W E
          W E B
        W E B S
      W E B S C
    W E B S C A
  W E B S C A L
W E B S C A L E
E B S C A L E
B S C A L E
S C A L E
C A L E
A L E
L E
E
4
 
PLANETSCALE
 
I've got 3.4 on my ubuntu for getting used to
 
user559633
6:02 PM
@AndrasDeak 14.04.4 or 16.04?
 
I've been forcing myself to do my little fiddling this with 3. Of course the only difference for my code is print() vs print "" :D
@tristan 14.04, I prefer LTS
but I plan on switching to debian "soon"
 
user559633
16.04 is LTS
 
wat:O
 
user559633
it was debian the whole time o__O
 
user559633
ubuntu is just debian in a fursuit
 
6:03 PM
actual debian, without canonical
 
Removing numpy file from lib made numpy work on Python 2.7.10.
 
user559633
 
user559633
current status
 
man, I'd hate to pat that thing
as bad as Russian roulette
 
Wrong way round
 
user559633
6:05 PM
thanks fizzy ;) always forget when converting from img to link
 
@Ffisegydd I think I am done with numpy problem.
 
@Ffisegydd you mean girl on pussycat is not the right order?
 
current status
 
@AnastasiaDunbar Good for you. Please don't ask questions and abuse the room like that again. You will be kicked.
 
6:06 PM
and I'm about to have coffee
 
@Ffisegydd Okay, it just a big mistake of me being confused with installing packages.
 
I missed the chain of events, but I'm sure the problem wasn't the nature of your problem, but your treatment of said problem and the corresponding communication strategy
 
I suck at English.
 
I'm sharing my current addiction with you: slither.io
 
sounds Harry Potter-y
is this...a Nokia-grade snake game?
 
6:09 PM
it's MMOSNAKE!
 
MMO?
lol
 
but you can hit your own tail
it's the other snakes you can't hit
 
I see
too bad my browser's already lagging when I browse:D
 
user559633
if you hit other snakes, sometimes they explode and other times you die. what determines that?
 
length? incident angle?
No lightning bolts...right?:(
 
6:14 PM
if you hit the snakes body you explode. Same applies to others that hit you
so your head touches body...boom boom
so you have to avoid those collisions and try to get others to hit your body.
when they explode you collect their goodness and get longer
 
encircling is the (cruel) path to success iirc
 
huh, so it is Highlander!
 
@JRichardSnape yes. It happened to me several times and then I started doing it too
 
that's some nice applied game theory right there
or maybe just sociology:P
 
:D no prisoners dilemma here. Survival of the fittest. He with the longest snake... No, I won't continue that...
 
6:19 PM
:D
yeah I thought of prisoner's first, but I agree it doesn't apply
there's no such thing as cooperation
but still, "immoral" behaviour leading to a temporary advantage to the immoral few, but then general morality dropping as a result and everybody trying to screw over the rest
 
Probably the pareto optimal solution would be a load of concentric revolving snakes, where no one could move without making everything worse.
 
I found donald trump snake. A ridiculously long snake draped in the american flag.
 
or parallel snakes to infinity
 
Ah yes, the world is not infinite, I think. I found the edge
Nice one for an out of context read, there.
 
user559633
6:23 PM
ugh i need to not be playing this
 
yeah the best strategy is not playing, probably
like with Cookie clicker
 
Ha, you've been caught. My prior experience meant I knew the danger.
 
Thus Tristan's startup has failed, not with a bang, but with a crap internet game.
 
user559633
at least with cookie clicker, i wrote some js to run in a headless background
 
don't you dare bash the Tristangame
 
user559633
6:29 PM
3903, okay adding an entry to /etc/hosts to stop this
 
:D
we should revisit this one:
2 hours ago, by tristan
here lies tristan: he was salty about being bad at baseball until he died at the pizza buffet
with something about snakes
 
user559633
oh never mind, this game has "snakes"
 
So, I have to supervise the final mid-term of my physics students tomorrow from 8 AM. The obvious solution would be to go to sleep early. I'll be enervated all day instead.
 
user559633
6k. the key to winning is griefing
 
hmm what's the difference between add_tag and selection_range ?
 
6:39 PM
ummm...is there context?
did I miss it?
 
shakes magic 8 ball
Reply hazy, try again
 
@justastudent their specific implementation might differ in Python 3
 
@AndrasDeak ok, how do I paste in a snippet of a code here ?
 
it depends on how long the snippet is, and a possible answer is "you don't"
 
if it isn't long, just paste it in its own message, highlight it and press ctrl-k
if it is long, just create a pastebin
 
6:50 PM
ok one sec
 
@idjaw (don't even need to highlight)
since the whole "code block format" thing is binary
 
OMG you're right!
:O
thanks :)
 
self.textbox=ttk.Entry(master)
self.textbox.bin("<Control-a>", self.select_all)
def select_all(self,event):
self.admit_entry.selection_range(0, END)
ok, this is not working X(
and btw it's packed, forgot to copy that
 
user559633
7:27 PM
 
7:53 PM
@JonC just finished the last episode of Masterchef.
I don't know if you've seen it, but my favourite won, so I'm happy :P
 
How many times did the greengrocer say *"Cooking doesn't get tougher than this"?
Yuck - new firefox plugin interferes with chat edit. Not long for this parish
 
@JRichardSnape Just the once, but they repeated it often.
Not a fan, @JRich?
 
I am equivocal. Which is fairly unlike me. I find it compulsive if it's on, but find myself very often laughing at Gregg Wallace as he basically says everything sweet is wonderful and then waits for Torode the toad to speak first if there's anything controversial or that requires actual knowledge of cooking.
the toad is harsh, it's just for his wide mouth, not his general being.
 
8:11 PM
cbg people
 
cbg Marko
 
what's up? :)
 
not much
spending the weekend working on my homework
 
are you at college?
 
yeah
 
8:27 PM
what are you studying?
 
many branches of math, CS, physics
mostly technical subjects
 
I mean what collage are you at lol :D
 
Did you mean to ask "where are you studying?" then? :P
As you did ask "what (subjects) are you studying?"
 
Maybe "what level"?
i.e. degree, A-levels, PhD...
 
Yeah, that's what I meant, just expressed wrongly :P
 
8:31 PM
maybe he clearly meant "where are you studying", get over it:P
 
@Marko that was what my college is trying to teach me :D can't say the name of the college, sorry
 
yeah, not everybody can enjoy the luxury of names;)
 
I'm thoroughly confused (it takes very little on a Sunday evening).
 
by what?
 
OK, let me reform my question again, because again we misunderstood, when you go to collage at least here you choose the area of study(branch or call it whatever) and it has one name ( like Computer Science, Maths, English language ) , now what branch you're at :D that's what i meant
 
8:34 PM
@AndrasDeak The luxury of names thing.
 
oh sorry
I was just noting that while many people use their fake names on SO, others prefer/have to stay anonymous, which is inherited to specifics about one's job/education
 
No need to apologise - I spend a decent chunk of my life somewhat confused :)
 
Well my use of English probably doesn't help either:)
 
@MarkoMackic ah, it's called "applied mathematics"
 
That's it :D
 
8:36 PM
faculty?
 
yeah
 
I'm always unsure, though
sometimes I suspect that faculty is the largest subdivision of a university, led by a dean
other times I think that faculty is something like "applied mathematics"
 
@AndrasDeak Ha - your English is almost flawless. I saw you use enervated before - most native speakers wouldn't even use that correctly ;)
 
during these other times I call these things "courses" instead:P
@JRichardSnape aww thanks:)
Actually, I often want to say something like enervated (being constantly sleep-deprived), but I can never find a word that seems to express my state strongly enough
but after many reads through the thesaurus, I always end up with something like enervated:D
either that or fatigued
but that sounds milder to me, or more of a physical kind of being tired (?)
 
Good day everyone!
 
8:40 PM
Yeah - fatigued implies physical, enervated, sorta worn out mentally / through being on edge / anxious for a long time.
 
hello
@JRichardSnape awesome, thank you:)
 
i'm facing an issue with new style classes in python2. i have a baseclass which inherits from object but i'm still getting an error when i try to use super() from the child class
i should probably be filing a bug or opening an issue on odoo's github repo
 
Code? Error?
 
@danidee maybe, but make sure you include the code to reproduce that.
 
and the weirdest thing is that it's for only a specific method. other methods seem to work fine when i call them with super()
 
8:45 PM
Typo? Does that method even exist in the parent?
 
yeah. it exists and it was so shocking that other addons made by the odoo devs call super(theirclass, self).write(self, cr, uid, ids, context)
and no error is thrown
i've gotten a temporary workaround by calling the method from the baseclass directly and passing my arguments to it. but it doesn't feel right :(
 
Well. There's not much else we can do without some code and the actual error.
 
@Ffisegydd do you have any experience with odoo?....maybe i could drop a pastebin (code's kinda long). if you don't mind
 
None at all. But the fact that it works for other people makes me very suspicious that there's not a bug and instead it's a mistake you've made.
 
9:07 PM
am i permitted to use s*** :D
i was assigning my class name to something else at the beginning of my method
what made it hard to debug was that it still returned an instance of the class i was trying to call super from
@Ffisegydd...thanks so much...i feel so silly right now :)
 
Fizzy, The Catalyst of Debuggingness
 
9:22 PM
Yeah...he is
 
9:38 PM
Finally watched some new Doom stuff...already the trailer makes me sick:D
 
Why does Doom the movie...keep coming to my mind
 
cabbage
 
user559633
10:39 PM
cbg
 
10:54 PM
and rhubarb
 
01:00 - 17:0017:00 - 23:00

« first day (2031 days earlier)      last day (2903 days later) »