« first day (1626 days earlier)      last day (3319 days later) » 

12:09 AM
Took 20 minutes to prepare an answer but OP made a mistake in the question... Answer is useless :s
At least I discovered how to inject a defaultdict in a JSON load
 
12:26 AM
"Any place to find something like this already written?" Django. — davidism 1 min ago
 
 
3 hours later…
3:16 AM
@ZeroPiraeus Done. I am, as always, your obedient servent, etc. etc.
 
@WayneConrad ... I have servants now? And obedient ones, at that? This is going to make smiting my enemies so much easier :-)
 
I'll need a vial of your blood for cloning experiments my HR files, of course.
 
Um. Does my clone get to have a super power?
 
I think for the sake of narrative balance, if you have a super power you also need a mortal weakness of some sort.
 
3:24 AM
Oh, we're rolling a character. I see.
A mortal weakness. Let's go for... um... oh, here's a bad one. Lack of resistance to infomercials.
That should buy me a pretty good super power.
 
Okay then, I hereby grant your clone the power of Getting Onto The Platform Just Before The Doors Are About To Close.
 
Sweet!
 
It is done, master.
 
<monty> Excellent </burns>
Time for me to replenish my life force with souls of SO newbies get some sleep, I think. Rhubarb!
 
:) Kimchi. Seeya.
 
4:47 AM
cbg
 
5:01 AM
cbg all
 
cbg @JGreenwell
 
had a good weekend, I hope, @JonClements
 
Well... all work and no play makes Jack a dull boy :)
 
oh, hey. I made 300 rep today....wait how'd I do that? :O
oh, +100 at hitting a certain mark....here, I thought I'd done something amazing in my sleep or something
 
5:13 AM
300 hundred rep, got to virtually smack an undergrad about SO today (that it shouldn't be used as a replacement for debugging....or google). Good end of the week for me :)
 
@JGreenwell sweet :)
 
actually it was kinda cool.
Student asked me why I didn't have any questions on SO (I don't only answers at the moment) and was shocked when I said "Cause I don't have any questions worthy of SO yet."
 
@JGreenwell well - I've asked 5 in 3 years... so not a big ask question person myself... 99% of the time I either find the answer somewhere, work it out, or it's already been asked.
 
hehe...that's the point I got to smack him with
He texted me his question and I showed him the first page of google results that answered him
He was just being lazy and wanted an exact "copy and paste" answer
 
(or - sometimes - screw it, I can do this this way that I know isn't the best, but I'll come back to it later when the project's moving forward again :p)
@JGreenwell in my day... yadda yadda yadda :p
 
5:21 AM
@JonClements optimizer later! work first! ;)
Hey, I started with COBOL
seriously
 
Only uphill from there then :p
Umm... does uphill work in that context - downhill implies it got worse, but uphill sounds like it get harder... ummm
might be one to check for on EL&U :)
 
In the US, people from the north say downhill, south say uphill....none of it makes sense
except Florida, where then all say whatever cause none of them are actually from Florida
 
So all births have to be made outside the state of Florida to be registered, before they move back? :p
 
according to my wife both my kids are New Yorkers despite their birth in Florida (or the fact that I'm from Illinois)....and I'll just say she's right
 
Juts saying "yes dear" is generally an accepted way of keeping the peace :)
 
5:29 AM
.....then she got real excited when I got a call-back on a contract with an English company (didn't get it) cause she thought we'd get to move to the home of The Doctor
 
Err.... not sure how to respond to that ;)
 
can't beat geeky girls
I wish she had other reasons, but it was all Dr Who
 
"It's so nice of you to support me in my career darling..." - "It's the home of Dr Who.... but err, yeah... career... that's the main thing of course!"
 
Like that I have family in Scotland (who I understand about 1/3 of what they say)
 
5:31 AM
cbg @Robert
 
family....yeah, family....but we can visit London and see where they taped the 50th, right?
cbg @RobertGrant
 
bbias
 
5:46 AM
re-cbg
Why doesn't pip install dependencies when one installs ipython (and wants to use notebook)
 
cause it's crazy?
also in what system
 
linux
oh well - installed them now - all works
 
hmm...what dependence didn't it install. I don't remember having that problem (but I might have just had the dependency installed already)
I know there is a problem with Mac that I had to fix for my wife's laptop
 
jinja2, tornado, jsonschema, pyzmq...
 
5:49 AM
cbg @Antti
 
summertime != ftw
 
hmm...odd, I'm going to create a bunch of virtual systems tomorrow (well today now) for a VMWare demo for undergrads at school. I'll try iPython and let you know if I find anything interesting
 
@JonClements you didn't go to sleep yet or wake up already?
 
I had 2 hours snooze
Had to wait for some DBs to get back into sync because some didn't update for BST and some did... so bad stuff was happening
 
bad questions one after another
I answered a Java question with 2 paragraphs - 5 upvotes
my Python class scoping took more than half an hour and 5 upvotes...
 
5:55 AM
@AnttiHaapala I'd upvote your python (class scoping rules...) twice if I could
use of dis.dis helped me with a problem I was having translating/updating some old C code of mine
 
My answer to "Where do you put your code?" Ans: "C:\dev" got me about 50 upvotes.
SO voting is basically pointless :)
Or rather, looking at someone's score is
 
where's that q
if it is older than 2 months lets del it :d
 
Haha no it's deleted. Long gone.
 
goooooood
 
your java answer is something that I think is something I just avoid cause I avoid java questions on SO almost as much as javascript questions ;)
 
5:59 AM
@AnttiHaapala The thing with Pyramid and Paste: if I look at the wall of superpowers, Paste isn't Python 3 compatible. What am I missing? :)
 
@RobertGrant pyramid is not using Paste
it is using PasteDeploy and PasteScript
 
also cause the line "cause I'm in networking" by the OP made me want to virtually smack him a tiny bit
 
Oh, okay. I just saw it and it reminded me of what you said. But that makes sense.
Also, according to that wall, Supervisor doesn't work with python 3, but according to the Supervisor Github page, it will.
 
hmmmhm
rly?
 
Oh, still in testing
 
6:01 AM
then it is a recent port, supervisor didn't use to work
ubuntu has been a driving force there...
 
Yeah sorry it's the upcoming release
Which is cool
 
trying to push pkgs use python 3
though supervisor version does not even matter
 
What do you mean?
You can run it separately?
 
supervisor does not run your python code
it just executes commands
 
Yeah, makes sense
Having said that thing earlier, PasteScript is also red on the wos
 
6:05 AM
can't remember the story of that
our product has been running on python 3.4 for 1.5 yrs
yeah, only pastedeploy is installed
since ian bicking is one of those 2.8 guys, basically pyramid had to do "NIH"
 
user4433485
Good morning everyone!
 
cabbage
 
@AnttiHaapala ah okay, yeah
They should release that as PysteScript or something :)
 
it is the pcreate facility, it is quite specific now (and quite small)
anw, the python 2.8 folks are a cancer, not the cure.
 
Yeah it's actually really annoying; a guy I'm trying to convince to use Python just read this and now doesn't know if he should even bother with the language at all
 
6:13 AM
the guy should ask himself if he really wants to write code :)
 
The problem is people want new challenges, and would rather rewrite the same stuff in Javascript or Go than in Python again
Which I can understand
 
ㅗㅑ
Hi
 
Imagine if people had to rewrite all the JDBC drivers after every major version of Java were released
 
shit
I don't want to imagine it
 
lol :D
 
6:15 AM
@EnglishMaster cbg
 
@RobertGrant polyglotting is a trivial task if you know how it's done
but they don't bother
 
@RobertGrant Is that short for "chill black guy"?
 
how many people actually use all the __future__ imports on Python 2, always?
 
Yeah the problem is mostly emotional
 
how many uses the viewkeys on Python 2.7?
 
6:16 AM
They feel messed around, and they've got enough power to push back, so they do. You see the same in corporates all the time.
 
no, there has been idiots saying that they're not going to switch to Python 3, because it breaks division
 
Why do they say that?
 
because it breaks division
now why in hell haven't they been using from __future__ import division all the time
 
Ah okay
 
it existed on almost each python version that I have coded on...
I remembered it came in 2.1, but it was 2.2 :P
ppl are using with statement, but not from __future__ import division
if you go see the questions about "my division gives wrong resutls", ppl just say "cast one argument as float"
 
6:20 AM
If you had to choose one out of these majors, which one would you pick to study?
1) Study of African American
2) Leisure Sports science
3) Study of Women's right
4) Barista
5) Study of Cuban history
 
@AnttiHaapala Is it this thing from 2002? mail.python.org/pipermail/tutor/2002-January/011521.html
@EnglishMaster is 4) actually coffee making?
 
yeah
and theories
 
Don't make that your major. But then I would pick secret option 6) Computer Science :)
 
@RobertGrant yes it is
 
6:23 AM
it has existed for 13 fscking years for ppl to actually write forward compatible code
and no sh1t was given.
 
I wonder if people are still on Python 1 because of that :)
 
@Rob me 2
 
hmm you're confusing things?
omg now my java answer has 6 upvotes and my python answer has 5
 
@AnttiHaapala isn't it an incompatible change from 2.2 onwards?
 
6:24 AM
Hey, do you think we won't need network engineers or db admins anymore once IT infrastructure before so concrete that everything is automated?
 
6
A: Using byte, short, and other primitive types

Antti HaapalaActually in most processors that support Java, 32-bit integers are fastest to use. For example on Intel processors 32-bit integer registers have the shortest opcodes, while 16-bit integers are slightly slower to process. Furthermore most of the time using bytes or shorts wouldn't save space for y...

@RobertGrant no it is optional with from __future__ import division, required in Python 3
the point is that ppl are saying "python 3 breaks my division"
 
Oh I see, because they changed the default behaviour in Python 3
Solution: release Python 2.8 with that sort of division and Python 3 unicode, and get them to upgrade their code to Python 3 without realising :)
 
@RobertGrant impossibru
bc, it would break the code... :D
 
Wow, the "when will python 3 be released" question on there is scary. They seem to have intended it to be not too long after 2.2 was released: If Python 3.0 comes out sooner, we'll keep the 2.x line alive for backwards compatibility until at least two years from the release of Python 2.2.
At least 2 years, but more like 16
No wonder managers get mad at us - we really can't estimate
 
yeah
should have a module for Python 2.7 that helps in writing polyglot code
when importing it would throw importerror if the imported module does not use all the future imports...
 
6:38 AM
cbg @holdenweb
 
@AnttiHaapala :)
 
Could you stop saying "chill black guy"?
=D
 
Pretty sure you're the one saying that :)
And please stop, what a weird thing to say.
 
Cbg
>_>
 
user4433485
Cabbage @vaultah
 
user4433485
7:11 AM
Wow everyone is busy ?
 
user4433485
That silence
 
Cbg :)
 
user4433485
Cabbage
 
Just read that "py3 is cancer" post. What a ****
 
user4433485
Whut what?
 
7:18 AM
The problem is that you only hear about the hotheads. The people who bitch and moan. You don't hear about the thousands who get on with it.
 
user4433485
Tbh all people who say cancer are from the Netherlands, it's quite normal that the youth say that like 24/7 here
 
user4433485
I mean say cancer in any offensive way
 
user4433485
Fucked up generation
 
@Ffisegydd link?
 
@vaultah It's further up in Bob and Anttis convo. When I get off my phone I'll find it.
 
Ty
Ugh
 
What's weird is at least on the wos, I see some stuff that's still red, but most is green, and two of the big ones are stackless and gevent, which you can probably live without if you're coming to python fresh. It's only if you're upgrading that it's a problem.
I say "only", but that article seems to make the situation seem rather more dire than I'd say it is
Don't expect Eve Online to switch over to py3 in the near future :)
 
Eve have a customised version of stackless anyway.
I read a good article by their CTO on why they can't upgrade.
 
7:45 AM
I say that, and even Stackless supports Python 3
I was probably thinking of Twisted
 
Having said that, it would be good to allow importing of stuff written in 2.7 to still run. But that's probably impossible.
 
@RobertGrant the problem is that the unicode/str would mean it probably wouldn't wrok anyway
and beyond that polyglotting is really easy
 
8:03 AM
Cabbage!
 
user4433485
Cabbage @poke!
 
I should probably write a web page on writing properly polyglotting py2 and py3 code
there are some gotchas
 
user4433485
Anyone here with a tattoo?
 
I don't have any tattoo that I'd know of ...
 
user4433485
=D
 
8:05 AM
Isn’t the proper way to “polyglot” py 2 and 3 to just ignore Python 2? :P
@Katherina Oh, a new profile image.
 
user4433485
@poke Yes:D Was tired of Cesare Borgia alrdy
 
Changed profile images always confuse me for a bit…
 
user4433485
o dear
 
@Katherina you sound just like Giovanni Borgia
 
user4433485
poor Giovanni, Stabbed by his own brother
 
user4433485
8:10 AM
interested in the Renaissance @RobertGrant ?
 
@Katherina You’re interested in getting one?
 
Nah not especially in the politics
 
user4433485
@poke Yup will get one soon enough :) was just wondering about the pain
 
user4433485
I'll brb taking coffee=D
 
where, what, and why? ^^
 
8:17 AM
@poke yes
but I am talking about improper way
 
Ohhh
I see :(
 
see the @robertgrant's message ^above
2 hours ago, by Robert Grant
Yeah it's actually really annoying; a guy I'm trying to convince to use Python just read this and now doesn't know if he should even bother with the language at all
 
@Ffisegydd clever
They should expand that to cover all handmen. Handypersons. Handypeople?
 
user4433485
Back
 
user4433485
 
In fact what I would like to do (anyone want to build something with me? :) ) is a website that asks: what was wrong with your car/needed replacing and how much did it cost, for a particular garage
 
8:39 AM
To give people an idea of what should cost what
Maybe that already exists
 
@BobbyG sounds like an awesome startup idea, let's roll with it then half way through pivot into crying into ice cream when we find it's already been done.
 
user4433485
@RobertGrant I might be interessted, experience is always good. however, how do you want to do the costs etc. I am no car expert tho
 
@Ffisegydd yeah I bet it's been done :)
 
@RobertGrant in addition to that, something where you could enter whatever problem there is with your car using NL, then it would use some ML to tell where to get it fixed :P
 
@Ffisegydd Or that utter success would entail you moving to London
@AnttiHaapala yeah :)
 
8:42 AM
why are you obsessed with london :d
 
But wouldn't that be awesome? I've been thinking about it for ages.
 
lolno. That utter success would give me the seed money to start Wigglesworth Valley - The Silicon Valley Of Yorkshire!
 
@Ffisegydd that would be awesome; having everything in London is obviously stupid.
 
not funny
 
user4433485
@RobertGrant well I would gladly help you
 
8:44 AM
Oulu used to be called the Silicon Valley of Finland or Nordic countries or whatever... now it would be more aptly called a tar pit or something
 
@Katherina thanks :)
 
0
Q: SQLAlchemy: An "all-inclusive" in_

ttsiodrasIn the usual Customer -> Orders example schema, if we want to get all the Customers that made an Order with order_category_id set to 12 or 13, we would tell SQLAlchemy to... for customer in db.query(Customer)\ .join(Order, Customer.id = Order.cst_id)\ .filter(Order.order_category...

^why do ppl have such complicated requirements?
 
@Katherina Oh that doesn’t look too bad :)
 
user4433485
That's being human @AnttiHaapala, we always want the impossible :)
 
Because if they didn't, then they wouldn't need to pay us :)
 
user4433485
8:51 AM
@poke it stands for freedom and birth
 
But I do think that successful businesses in the future will design their workings more and more to be like systems that can be implemented and maintained will
 
@Katherina You also want to have it on your front shoulder?
 
user4433485
@poke not sure yet, maybe on my hip :)
 
I see :)
 
user4433485
You have any tattoo?
 
8:57 AM
No, I’m not really into pain :P
 
user4433485
No pain, No gain my dear :D
 
punches himself in the face
 
Well, I don’t usually see it as a gain :P
 
user4433485
lol well it depends
 
user4433485
It's personal, I've always liked it
 
9:01 AM
guess I will stop answering
not worth the trouble in rep.
 
Yeah, sure :) It’s just that the number of tattoos I have seen that I consider really pretty is rather low compared to the total number I have seen.
 
user4433485
a tattoo can not be ugly to those who have it , it's usually a choice with a thought to it
 
user4433485
that's why I disslike tribal tattoo's
 
Of course, it’s very subjective, it’s just my personal opinion. But I don’t have anything against people getting tattoos for whatever reason. And I think yours could look nice, so go for it :)
 
user4433485
I hope it will look nice :D
 
user4433485
9:07 AM
Not sure yet where tho
 
user4433485
@poke What kind of music do you listen to while working?
 
monday morning cbg
 
Cabbage @Martijn
 
and I'll say it just once: I hate the hour change to summer time and think the whole idea is utter nonsense and should be scrapped altogether.
there, monday morning crabbiness dealt with.
 
9:18 AM
But I like the extra hour in autumn…
 
user4433485
Cabbage @MartijnPieters
 
@Rob which company did you recommend re. jobs? Was it Reed?
 
@Ffisegydd I'd also look at cwjobs
 
I use cwjobs already.
 
@Ffisegydd definitely Reed
I have Reed and I keep my LinkedIn fairly up to date
 
9:26 AM
hrm, we have and
I dislike the latter because we normally use python as a prefix.
 
I used to use cwjobs and jobsite as well, and probably would again if I were actively looking
 
Should we burninate those and create instead?
Or just make (the smaller tag) a synonym of ?
Well that got me loads of feedback, didn't it? :-P
 
/half-asleep
 
I reckon is better
 
cbg(all)
how should I build nested tuples in the C API ? something like this: Py_BuildValue("((ffff)(ffff))", <values-go-here>); ?
 
user4433485
9:39 AM
@HamZa I know the feeling, can't even keep my eyes open. struggling
 
I instantly don't like Reed already.
 
10
Q: Does path coverage guarantee finding all bugs?

digitgopherIf every path through a program is tested, does that guarantee finding all bugs? If not, why not? How could you go through every possible combination of program flow and not find the problem if one exists? I hesitate to suggest that "all bugs" can be found, but maybe that is because path cover...

 
@Katherina I also didn't reply because I'm in no position to do so. IE: no experience in that field
 
user4433485
I wish I could go back to the 80s seems so fun
 
user4433485
I can't remember I could join chats with 1 rep?
 
9:48 AM
nvm, I found a solution -- if anyone is interested in, here it goes:
PyObject *first  = Py_BuildValue("(ffff)", <values>),
         *second = Py_BuildValue("(ffff)", <values>),
         *nested = Py_BuildValue("(OO)", first, second);
(or something like that -- I haven't tested it yet..)
 
user4433485
that's like chinese to me mate ;)
 
*chinese
not like 'cheese'
 
user4433485
Thanks:p
 
xP
 
user4433485
better?
 
9:50 AM
:)
 
@Ffisegydd why?
 
sorry, just clicked to this tab and saw this xD
 
user4433485
Np, I need to improve my english anyway
 
Their profile thing is stupid. Won't let me order my skills, won't let me select "First" for my degree (has to be "pass" or "merit" or "distinction")
 
@MartijnPieters “python-pdb” feels so redundant… “python python debugger”
 
user4433485
9:56 AM
@RobertGrant if you want to develop the car website thingy, don't forget to contact me asap mate;) I am interessted
 
Thanks :) It's on my not very to-do list, but good to know!
 
user4433485
Lunch time!
 
user4433485
I'll brb!
 
A coffee-break like “brb”? :P
 
user4433485
:pp
 
user4433485
10:01 AM
nope
 
user4433485
12:00-13:00 lunch time
 
Oh, so long! Enjoy ;)
 
user4433485
I do actually need 1 hour to eat like 1 apple and 1 sandwich
 
user4433485
So, See you in an hour=)
 
Cabbage @GamesBrainiac :-)
 
10:05 AM
@thefourtheye cbg!
How are you doing?
 
cbg @Games!
 
@GamesBrainiac lol... Have you watched Friends? There is one character called Joey and this reminds me of him saying "How you doing?" :D
 
@JonClements Hey there! And how are things?
 
Same old, same old - you?
 
@thefourtheye I've heard of friends, but alas haven't had the time to watch it (yet) :(
@JonClements All right, my Canadian Visa application got rejected. Its unfortunate, but every application in the last month seemed to be rejected from Bangladesh.
 
10:08 AM
@Games what? Why?
 
Hey what's the common courtesy if you find an outdated answer?
like, way way outdated and should be removed?
 
@paul23 riot in the streets :)
 
I can do that
 
@JonClements Well the reason was that they thought that I wouldn't come back. Based on my age (21), skill set (developer) and fluency in both French and English.
 
Is it worth "adding a context manager to contextlib module, which would restore the stream position of its argument at exit"?
 
10:09 AM
@GamesBrainiac Sorry man. I told you that I would talk to you over the weekend. But I broke my wrist. So, I am not available at my desk for the past three weekends
 
@Games umm.... seems a bit paranoid
 
@paul23 can't you improve it by editing it?
 
Well the answer is "no it's not possible" while there is nowadays in python 3.4 a library that adresses it directly
So the edit wouldn't be in the spirit of the original answer
 
ok...
 
@thefourtheye Its fine man. This is a real blow to my career plans. @JonClements Absolutely. Other reasons for rejection (heard this from other applicants) include not having enough travel experience, having too much travel experience, not old enough to be going without an escort, too old to be going without an escort etc.
(see the irony there?) :P
 
10:12 AM
@paul23 I think the "SO" way would be downvote -> leave a comment -> move on :)
 
I don't do downvotes
 
@paul23 Then post a new answer, and maybe add a comment to the accepted answer that this has changed with a link to your answer.
 
@paul23 well, you should
 
The answer was good in the past, so no reason to penalize his current points (and let him be able to set fewer bounties if he needs) cause times changed.
 
Nope, I meant down vote in general. When you down vote a question/answer you indicate that there's something wrong with it. This will distinguish that (bad) Q/A from the (good) others.
 
10:18 AM
@poke: agreed, I think we should just use pdb and be done with it.
I may be the only one with voting rights..
 
“You do not have the required score on this tag to vote for this tag synonym” boo…
 
You need 5 or more.
 
Successfully stolen an accept with a better answer! Yay.
 
It is probably easier to just retag the posts here.
Resource request
 
10:47 AM
@Ffisegydd you about to help with some pandas stuff later? :p
 
Lol. Yes. Yes I am.
 
Hi. How do i create a subkey using _winreg module?
 
Okay... let me get you a copy of the DF I'm working with
 

« first day (1626 days earlier)      last day (3319 days later) »