« first day (2046 days earlier)      last day (2892 days later) » 
04:00 - 17:0017:00 - 00:00

user559633
now that it's closed, should i delete my answer? not sure on what the custom is for that (posted it so that some point fiend didn't just copy/paste my comment into an answer for dem internet points)
 
@tristan I think it's ok. Make it community wiki, if you don't want to score any rep from it.
 
user559633
it's pretty specific in the error message, and there are better dupe targets, so i doubt it will end up being useful
 
I don't self-delete in such cases.
But then again, I'm closer to the "point fiend" end of the spectrum, sooo
 
user559633
to be safe: you're not the kind of person i had in mind when i made that comment
 
5:09 PM
Overwaaaaaaaatch tomorrow.
 
FWIW, there's a reasonably good self-deleted answer there from a 3.3k rep user. But he doesn't mention the property stuff, so yours is better. :)
 
user559633
Yeah, I saw that self-delete. I put in properties as a sort of "yeah, your question is doomed, but here's a consolation prize"
 
My oldest friend moved three states away and clearly wants to try to bond with his hometown chums by playing Overwatch, but my computer does not meet the technical specs for even the lowest graphical settings.
I wonder if I can convince him to buy me a new one.
 
user559633
depends why he moved, i suppose. e.g. if i move to venice because "the supercar laws are far more relaxed there", then it's a reasonable ask vs. if i moved to newark because i couldn't afford rent anywhere else
 
@Kevin Doooooo it. Spend some of that KevinScript Kickstarter money.
 
DSM
5:14 PM
Speaking of which, when do we start getting our rewards?
 
He's the most finance-minded of the South Jersey Super Best Friends, so if anyone's going to have money to pay for my computer, it's him.
 
user559633
are 'orange man' and 'woo girl' characters in the south jersey super best friends (SJSBF)
 
user559633
super power of retaining driver's license after the 5th dui
 
Nah. my neighborhood is more Philadelphian than Jerseyan, culturally.
 
@thefourtheye
github b0rken
I am testing travis-ci but it doesn't see any new commits :D
 
5:19 PM
@DSM Due to a shipping error, all rewards currently reside in the lowest ring of Tartarus. Be sure to pack plenty of water and at least one lyre.
 
As @vaultah pointed out I would need the question to be backed by python SO community. I do not have the prerequisite reputation required to post. Then can somebody tell the community about this question and see if they can back it? I think this pretty constructive and maybe accepted by community. Thanks in advance — Abhinav Garg 2 mins ago
I still believe it shouldn't be on SO, though
 
DSM
Under modern rules I agree it's OT.
 
Maybe we should give AbhinavGarg some rep to chat here
 
Speaking of NJ being stereotypically awful. The TV show Steven Universe takes place in an alternate universe where, among other things, all the names of the states are different. PA is called "Keystone" and the characters live in "Delmarva"*. At one point, they travel north, and one character remarks "what is this awful place?" I immediately knew a New Jersey joke was about to occur, but wondered how they could do it with a fantastical alternate name. But they ended up just calling it "Jersey"
So it seems that NJ is some kind of nexus of terribleness, a constant axis about which the multiverse rotates.
(*a real thing, but not the name of a state)
 
@vaultah He's got 20 points, he can chat here.
 
5:30 PM
@Kevin I don't hate some of north jersey.
 
@PM2Ring because I just upvoted his question
 
@vaultah Ah.
 
I like the parts that are at least 4 blocks from any major highway.
The stuff one sees from the turnpike is not representative of the place, on average
 
The Needs More Sportsmanship suggestion appears to be popular. I wonder if it'll ever happen...
 
@Kevin that concept sounds a bit Pratchetty
 
5:43 PM
Now I want a Dark Tower / Discworld crossover.
 
@vaultah oh deer jesus why are there 3 upvotes on that post?
twitch
Ah, to let OP chat
well, I don't think upvoting blatantly off topic questions is the way for that
8 questions, 1 answer
so much for community support
 
it's awful :(
@AndrasDeak yeah, changed my vote
 
thanks
well, you know what I mean
 
6:00 PM
where are the general breaking points for python version IE... 2.7 and 3 are defiantly different now I assume as far as backward compatibility that 3.5 is not really the same as 3... so the conclusion I am coming or seeing is every time the "X.Y" Y version changes you better really go back and look what your doing? Would this be a proper assumption?
 
Wha?
 
@Scribbles 3.0 is mostly forward-compatible up to 3.5
2.7 -> 3 was an exception to the rule
 
Flask doesn't support anything < 3.3
 
There will be new features introduced in 3.5 over 3, but there should be no breaking changes.
 
Ok that makes sense
 
6:01 PM
You should just use 3 anyway :P
Forget about 2, tis a silly place.
 
there has been some minor API deprecations from 3.0 to 3.5, but nothing drastic
usually it is a silly thing fixed here and there.
@Scribbles for example, what is your timezone?
 
Yeah I am just making sure that I have things setup right since I had a whole bunch of code cross referencing libs between 2.7 to 3.5 and I kinda made a whole mess
centeral usa
 
for example in pythons <3.5,
time 6:00:00 pm (central usa) was considered false
 
As everyone knows though, 6pm is the Falsing hour.
 
whereas 6:00:01 pm was a trueish value
they fixed it, now all datetime.time objects are True.
but the change was backwards-incompatible.
 
6:06 PM
Wait, seriously? That's absurd.
 
@MorganThrapp yes
 
@MorganThrapp it's because it's 00:00 UTC.
 
@MorganThrapp it was documented too, why, didn't you know?
 
Which was classed as "0"
 
the magic method in Python 2 was called __nonzero__
 
6:07 PM
So in the same way that 0 or "" are Falsey, so was that.
 
so someone thought, "well, midnight is 00:00:00"
 
It just seems crazy that time was ever false.
 
"that's all zeroes"
 
I agree that it's a major cockup.
 
@MorganThrapp then... someone asked "hey what about the timezones"
"ah well, we return False from __nonzero__ whenever the time is 00:00:00... in UTC"
 
6:08 PM
interesting
 
@AndrasDeak Sure, it's a bad question, but he seems like he has good intentions. OTOH, we gave him the rep to come here and chat and he did nothing...
 
that is the most idiotic API decision ever
but it was documented.
 
As idiotic as naming your library and type the same thing? :P
 
ppl occasionally ocmplained about it making no sense, so it was finally removed in 3.5
well, yes among other things.
I personally think they didn't do anything right with the datetime library.
Zope corp financed its development, IIRC.
 
@PM2Ring I have no issues with OP's intentions (well, it is a bit presumptuous to assume that their blatantly off-topic question should be kept as an exception), but that shouldn't affect the post's score at all
 
6:09 PM
and then they ended up using all sorts of dateutil's and such, because it didn't work
 
Philosophical: is documented idiocy > undocumented idiocy?
 
I'd rather people upvoted OP's other, possibly on-topic questions instead
 
@JRichardSnape I think so
 
@JRichardSnape >>
 
@Scribbles another thing that was fixed only in Python 3.5
EINTR handling on Unixen. Linux mostly
 
6:11 PM
well thats good to hear because these day I only run linux, Microsoft can pull there heads from there... and I like apple but I don't have 2gs every-time I want a decent machine.
 
@Scribbles @MorganThrapp ^ "in Boolean contexts, a time object is considered to be true if and only if, after converting it to minutes and subtracting utcoffset() (or 0 if that’s None), the result is non-zero."
 
DSM
The upvote issue is an example of where people have to hack around missing features in SO.
 
@AndrasDeak Well, the question is now closed and at -3. And hopefully the OP won't try a similar thing again.
 
"Before Python 3.5, a datetime.time object was considered to be false if it represented midnight in UTC. This behavior was considered obscure and error-prone and has been removed in Python 3.5. See issue 13936 for full details."
 
6:14 PM
yup
@AnttiHaapala the witch lobby was taken over
 
@MorganThrapp how'd you answer this guy: "There is no plan, other than the BDFL asking for a survey of what is happening with code that relies on this in the real world. FTR I'm completely against this change. I see no reason to change something that's been in use for maybe nine years and does what it's documented to do, based on somebody's expectations, failure to read the documents and buggy code..."
"... To me it would be a nail in the coffin of Python's very conservative, and to me extremely proper, view of maintaining backward compatibility"
 
@AnttiHaapala Its back up now, I guess.
 
yeah it is
I managed to make travis build my C extension and upload it to pypi automatically, yay
 
6:22 PM
yeah in windows you cannot have anything good.
a different mechanism is needed.
 
@AnttiHaapala Can you verify if the change I suggested looks okay, w.r.t pty? I read about that, after having that discussion with you. So, I have a feeling that the solution might be shaky.
 
this is just test code right?
 
@MorganThrapp I went with too broad
 
@BhargavRao That too.
 
6:26 PM
@thefourtheye I am a bit tired so I am afraid I am not really sharp atm
 
@AnttiHaapala Yup. This code is used to test psuedo terminal cases
@AnttiHaapala No problem. Check whenever you are free :-)
Just @-mentioned you in that thread :D
 
6:43 PM
Trying to put text over a progress bar in tkinter. I've tried using Label and Canvas using create text. Both of these solutions render a default background. Afaik, you can't set them to have a transparent background. Which of course looks yucky with the progress bar disappearing behind the label. Anyone ever done something like this before?
 
@clickhere I don't think you're going to have much luck with that. See stackoverflow.com/a/20960929/4014959
 
DSM
7:06 PM
Wow, that takes me back. Andrew and I used to hang out on the same tags, back when he was a heavy SO user.
 
@PM2Ring I like the joke from that user's profile.
> Some people, when confronted with a problem, think "I know, I'll use itertools."

Now they have next(takewhile(not_, count())) problems.
 
@user2290820 ? Why are you pinging a specific user?
And why are you linking your newly asked question? Please see sopython.com/chatroom for the room rules.
 
Is it just me or does the Flask + Flask modules leave something to be desired on the documentation side.
 
@MorganThrapp :) It's a shame Andrew doesn't post as much as he used to. When I first started on SO he was prolific.
 
7:12 PM
@Scribbles It's you.
:P
 
Well its like I can get parts to work but not all together lol
 
@PM2Ring Yeah, I don't know that I've ever seen him around.
 
DSM
On balance though it's probably good that the community cycles. People can burn out after too long reading gruesomely awful questions, but there are always newbies to take up the slack.
 
@user2290820 Quite an unclear post there. And exactly what Fizzy mentioned, Don't link your newly posted questions here. See 3rd point here github.com/sopython/sopython-site/issues/…
 
When people get burned out they just sit on the porch in their favourite chatroom and shout at kids who step on their lawn.
And by people I mean me. And Davidism.
Mostly I just shout at them. Davidism is American though so he shoots them.
 
7:20 PM
> You don't have permission to access /uploads/images/original/wolf3db.jpg on this server.
 
BB-gun wounds build character. And they reverse iron deficiency, if the pellet stays embedded under the skin.
 
Sure. BB guns.
Also everyone should buy Overwatch because there's no region locking so EU and US can play together.
 
DSM
When I see "wolf3db" I think of Wolf 359 instead.
@Ffisegydd: how up-to-date a machine is needed?
 
Not too bad, really.
Graphics card might be the thing that gets people, as I don't think older integrated gpu would do it.
But the processor and RAM is pretty minimal.
 
Aww man. I wasn't planning on getting Overwatch because I'm not sold on it yet. I played the tutorial in closed beta and that was it. :P
 
7:25 PM
It's so good.
 
hrmph. I can't think of a good way to do this. I have an array and a pointer to a "current" element. I want to get 5 elements, where I get the current, two to the right, and two to the left. But if it is at the beginning or end, just get the current and 4 to the left/right
 
Hello! I would like to know if it's possible for Travis CI to not run any scripts for my IRC Bot program?
 
@tom_mai78101 Is this a Python problem?
 
DSM
@corvid: what if you're at position 1?
 
@DSM 1 to the left, current element, and three to the right, if that makes sense
 
7:27 PM
@Ffisegydd Python scripts as Travis CI? Just wondering.
 
I was thinking of filtering and then slicing to get it
 
@Ffisegydd the latency in EU-US matches will be quite high, won't it?
 
@tom_mai78101 Yes but your issue is with Travis CI, rather than Python, so you might not get much help here.
@vaultah I would assume that they wouldn't allow it if it weren't technologically possible.
 
I presume Travis CI is some kind of football player.
 
@Ffisegydd Thanks. I'll try to find Travis CI chatrooms.
 
7:28 PM
@tom_mai78101 I doubt there is a Travis CI chat on Stack Overflow, possibly there will be a sys admin chat in one of the other SE sits.
 
@Ffisegydd Then I have no idea where to ask.
 
That's what I'm saying, one of the other SE sites might be a better fit.
Such as Server Fault.
 
> A policeman sees a drunk man searching for something under a streetlight and asks what the drunk has lost. He says he lost his keys and they both look under the streetlight together. After a few minutes the policeman asks if he is sure he lost them here, and the drunk replies, no, and that he lost them in the park. The policeman asks why he is searching here, and the drunk replies, "this is where the light is."
 
Travis CI is a ServerFault topic?
I didn't know that./
 
I don't know.
Maybe?
 
7:32 PM
Ok.
 
"the ground by this lamppost is well lit, so I'll look for my keys here" = "this room about python is well-populated, so I'll ask my Travis CI question here"
 
I don't understand, please explain in the form of a parable.
 
One day a student came to Moon and said: “I understand how to make a better garbage collector. We must keep a reference count of the pointers to each cons.”

Moon patiently told the student the following story:

    “One day a student came to Moon and said: ‘I understand how to make a better garbage collector...
 
@kevin that reminds me of one the gems that you picked using your Star Script.
Jan 28 at 15:43, by tristan
in Lounge<C++>, Jan 30 '15 at 2:30, by Borgleader
"Hi I have a question about my retirement fund"
"Sir this is a convenience store..."
"I know but it's the only thing open at this hour"
 
That's a good one.
If I'm honest, the lamppost parable doesn't apply perfectly here because it is conceivable that one of us would know something about this Travis guy, whereas the keys won't be under the lamppost under any circumstances.
Other than circumstances like "an eagle picks up the keys, then drops them near the lamppost"
Likewise, a convenience store clerk might know a small amount about financial planning, but it's still not advisable to ask him about it.
 
DSM
7:39 PM
Someone else's keys might. To my astonishment I opened up someone else's locker at the gym with my combination a few weeks ago. (Admittedly I realized later it was more likely that he'd forgotten to actually close the lock and I didn't notice because I wasn't paying attention.)
 
user559633
lol same, but i had to tow the car and sell it for parts before realizing that i had walked up to a honda and not a volkswagen
 
Bah, Phys Rev B submission page is sooo helpful. "EPS format preferred", it says. Preferred. I go and upload a few pdfs, check their autogenerated version, "conversion successful", yay! But the generated pdf only contains the first 2 pages, their conversion silently croaked on the first figure:P
 
DSM
Phys Rev D is where all the action is anyway. ;-)
 
alas, B is what I do:P
 
:D Phys wars
 
7:48 PM
That is so Phys Rev B.
 
right?
 
DSM
I'm going to work the phrase "so Phys Rev B" into a conversation this week. Maybe I can impress my new colleagues!
 
cbg again
 
cbg
 
7:49 PM
master of univ... C extension building reporting in.
 
Colleague: "But that has been shown to be a tangible thing" DSM: "That's so Phys rev B"
 
ugg... fail practice... lol
 
DSM
Time to head to the gym before tonight's celebrations begin. Rhubarb for all!
 
rhubarb @DSM
 
7:52 PM
rhubarb DSM
 
@AndrasDeak :D
 
@Scribbles flask documentation is rather terse...
especially flask-sqlalchemy documentation :D
 
Rhubarb all, Time to sleep
 
good night
 
8:10 PM
I have been chasing my tail in circles lol
 
@DSM Phys Rev B 4 life.
 
I mean I am all set with the routing and templating that works great
 
I only published two papers during my thesis, but both were PRB.
 
Fizzy in with the Rev B crew. Reprazent.
 
At some point should publish the other 2 chapters...and the 2-3 experiments I didn't even put in the thesis...
And pretty sure I'm due to be on 4-5 other papers as a supporting author
 
8:17 PM
that's always nice
 
It'd be nice to get them out, but it doesn't really matter for me anymore.
 
yeah, I figured
 
Mostly just gives me more points on my Dr card.
 
Gotta get dem points on the Dr card. Dr. Fizzy, 3rd dan.
 
You been drinking, Snape?
 
8:22 PM
Nah - just feeling silly.
 
Giving my first interview tomorrow.
 
However - a drink sounds like a fine plan. Heads to cupboard
Are you interviewing as part of a large panel or just you?
 
2 of us.
 
break a leg...wait, this is python...break a rib
 
In fact the person I'm interviewing with is my career mentor, and he interviewed me about this time last year.
 
8:24 PM
yeah - good luck. Ah - an old hand (at least relatively).
 
In 4 days time it'll be a year since my viva too
 
Sounds like cause for a celebration. And it's a Friday. Gin calling.
 
And I've got it off.
Got a 5 day weekend.
 
@JRichardSnape Longin calling?
 
8:33 PM
:D
 
 
1 hour later…
9:58 PM
Hi. Anyone knows how to create a decorator, labeled, "@Required", telling the developers that this function is truly required when subclassing a class/object?
 
like a virtual pure function in C++?
I have no idea
abstractmethod:
6
A: Are Python pure virtual functions possible and/or worth it?

user2357112Abstract base classes already do what you want. abstractmethod has nothing to do with letting you call the method with super; you can do that anyway. Instead, any methods decorated with abstractmethod must be overridden for a subclass to be instantiable: >>> class Foo(object): ... __metaclas...

 
10:13 PM
ok... dead in the water... cannot get my database to respond correctly while using Flask. and python 3.5
 
11:07 PM
@Scribbles you might want to improve that question, it's not informative at all as to what you're trying to do or what problem you're having. Remove all narration as well, it's irrelevant.
 
11:25 PM
oh sorry I have been all day and I guess that who I was talking to is gone now
 
Also, I can't reproduce your issue. I just created a database, installed mysqlclient, opened a connection with both it and sqlalchemy, and had no problem executing a query.
 
can you post that code you tested maybe I my be typing something wrong...
i really just want to be able to query the database don't care if I have to use raw SQL
 
conn = MySQLdb.connect(db='example')
c = conn.cursor()
cursor.execute('select * from post where title = %s', ('hello',))
print(cursor.fetchall())
Assuming you've created a table "post" with a column "title" and inserted a record with title="hello".
 
def database():

	db = MySQLdb.connect(host="localhost", port=3306, user="root", passwd="admin", db="echo")
	cursor = db.cursor()
	cursor.execute( "INSERT INTO `post` (`hello`) VALUES (null), ('hello_world')" )
	db.commit()
	db.close()

	return redirect(url_for('index'))
I got that to work a few days ago but seemed to be hit or miss
 
Yes, I know, I already told you I saw your question.
 
11:32 PM
oh sorry
 
What does "hit or miss" mean? It works.
 
well at first I was using 2.7 now on 3.5 seems to be giving me a problem
 
> Currently, MySQLdb only runs on Python 2 and development has been stopped. mysqlclient is fork of MySQLdb and provides Python 3 support as well as some bugfixes.
"Giving me a problem" is not a valid problem description.
 
ok let me do try that thanks
Is my import line going to change for MySQLdb while using mysqlclient
 
11:54 PM
No, it provides an equivalent api.
 
04:00 - 17:0017:00 - 00:00

« first day (2046 days earlier)      last day (2892 days later) »