« first day (2292 days earlier)      last day (2664 days later) » 

12:06 AM
rhubarb
 
Cabbage o/
 
wim
12:31 AM
@BadgerCat It depends on the context. Sometimes it's bad, overused, and just makes the code less readable. Sometimes, you really need it, because you have no idea what *args and **kwargs could be (e.g. writing a general purpose decorator).
 
Thanks badger twin
 
Hello everyone :D
 
 
3 hours later…
3:36 AM
@WayneWerner Are most of those consoles actually hooked up / playable?
 
4:00 AM
I assume that their setup is. Mine aren't hooked up yet :(
 
cbg
repcap yesterday for answering one C question, can't remember the last time that happened with Python :D
 
Cabbage
@AnttiHaapala Nice work if you can get it. :)
@DSM I added an import-free version to that answer
 
wim
5:00 AM
Why did TigerHawk hammer this? stackoverflow.com/q/41820174/674039
Sometimes I think this gold badge hammer thing is given way too early. There are guys that make a lot of mistakes with it.
 
5:27 AM
@wim because T3 :P
@wim not the first time, but surprisingly the hammer statistics kind of support that they're pretty accurate, just that they hammer a lot.
 
5:41 AM
Please see the duplicates or use google first before submitting a new question. When posting a question here, SO lists possible duplicates; and it doesn't allow even you to post the question without in python3.4 because that title already exists. — Antti Haapala 7 secs ago
 
6:12 AM
@wim FWIW, TigerHawk used to be a regular here until several people suggested that he was perhaps a little over-zealous in his use of the dupe hammer. OTOH, I've found that TigerHawk is open to constructive criticism of his dupe target choices.
 
 
2 hours later…
8:36 AM
I see we're speaking of the devil. :P
 
Hi, @TigerhawkT3 :sheepish grin:
FWIW, I fully sympathize with the urge to hammer dupes before the crap starts rolling in. OTOH, I think it's better to allow a little crap through while we're searching for a high-quality dupe target that matches the question.
 
I'm actually here for a Python question. I installed 3.6, and for some reason it won't pop a tkinter window when in an interactive session in my system's terminal. No error message or anything, just doesn't show the window. Works fine from IDLE or saved scripts. I'm loath to post a question about it because it'd probably be closed as "can't reproduce." Any ideas?
 
@TigerhawkT3 perhaps it exits before the window is opened
ah or in interactive session
 
@TigerhawkT3 IDLE is a bit funny with Tkinter, because it's a Tkinter program itself.
 
I guess the event loop doens't work
 
8:42 AM
I thought maybe I installed it wrong somehow, so I uninstalled and reinstalled (twice), with reboots. No dice.
 
I rarely try to do Tkinter stuff in the standard REPL, but your problem sounds vaguely familiar. Can you post a MCVE? I haven't upgraded to proper 3.6 yet - I'm still running an alpha build.
 
import tkinter
root = tkinter.Tk()
 
@PM2Ring :F
 
That's literally it, and I get no window.
 
can't confirm
I get a window
 
8:44 AM
That's why I don't think it'd be a good question.
 
my custom-built 3.6 final+patches on ubuntu
 
Doing import tkinter as tk;tk.Tk() in the Python 3.6.0a0 REPL shows a root window for me.
 
VTC, typo or cannot reproduce. :P
 
python3 -c "import tkinter;tkinter.Tk();tkinter.mainloop()" also works.
@AnttiHaapala I suppose I should upgrade... Or maybe I'll wait for 3.7 :)
 
root.mainloop() brings up the window, but then the terminal doesn't respond until the mainloop exits (when the window closes).
 
8:54 AM
@PM2Ring you could then do 3.7pre-alpha and tell that "unfortunately I cannot make any statements about 3.7, because mine isn't an actual version.
 
cbg
 
9:06 AM
Cabbage!
Note to self: You can dismiss other’s arguments simply by calling them pedantic.
 
George Carlin: "My opinion is that you shouldn't have an opinion" :D
Gobi
 
cbg o/
 
9:22 AM
I need a small help with the answer (stackoverflow.com/a/7880726/1030110 the first one with scipy.ndimage.map_coordinates). I'm trying to adapt the code for my need, but it doesn't work as expected.
 
Anyone knows if Anaconda ships with a proper Python version?
 
Cbg :)
 
Well, I was going to install 3.6 on another machine that I rarely use, but as soon as I turned it on it started Windows Updates and now it's basically unresponsive, so I'm going to leave it alone for a few hours and try again after Microsoft is done molesting it. But I'll report back later.
 
@poke seems like it does docs.continuum.io/anaconda/pkg-docs
 
Really odd
 
9:36 AM
nice qa, updated
 
hm?
 
9:51 AM
Cabbage
 
@BhargavRao gobi
 
Atacama
 
You might be knowing what "gobi" means. Dont ya?
patta gobi to be precise :D
 
Answer: program it until it works (paraphrasing). I comment that the answer is no help at all. Response: Then it's like spoon-feeding. I just gave a hint which can solve the problem
Yeah, your hint really helped!
 
google.co.in is blocked, malware.
 
10:00 AM
cbg
 
cbg
 
cbg
 
Was there ever any request for slicing inside pythons string format mini language? It would save me a lot of headaches.
also checking SO I've seen it was suggested a few times.
 
@GLaDOS use an f string?
 
@AnttiHaapala :) I don't suppose there's a simple way to upgrade my Python 3.6.0a0 is there? Or do I have to download the tarball & build it from scratch? I guess that's no big deal, since I can refer to the info you posted here last time.
 
10:02 AM
The mini language is, in my opinion, actually too complex by including attribute lookups and indexing.
 
@MartijnPieters f strings are evaluations at run time and do not support pre configured strings.
 
@MYGz Gotcha. Thanks
 
It's in that limbo world; not really Python but looking enough like Python that people expect it to be Python.
@GLaDOS I know. But you can use slicing ;-)
Whohoo, I'm a 'dear' now.
No problem. Dear ! — Jay Parikh 37 secs ago
 
dears are cute
but you are ninja, not dear
 
@MartijnPieters Yes, it was a possibility, and I also thought about using eval. But it's way too much.
 
10:04 AM
@MartijnPieters reply with
> I'm not your dear, honey.
 
@BhargavRao too tempting. I won't. Thanks though, darling!
 
Damn, I laughed at my own joke and got caught in the meeting
 
@BhargavRao reply with 'sorry, dears'?
 
Ok, I'll just minimize the window. Trying to maintain a straight face. :D
 
Must. resist. visiting other answers of that user.
 
10:11 AM
@Martijn According to him you are spoiling fellow programmers by too much spoon feeding :D
 
@MartijnPieters In that case, and seeing that it isn't something that exists currently, where can I submit a feature request for that? You might know
 
@MYGz Spare the rod, spare the child!
 
It happens on the other machine too.
Well, stomp on frogs and shove a crowbar up my nose!
 
@GLaDOS send it to the Python-ideas list, or open a feature request in the Python bug tracker (do search first).
 
10:25 AM
@MartijnPieters Yeah, I joined the mailing list now, and am looking at the bug tracker. Thank you
@MartijnPieters Do you think this is a feasible request?
 
@MartijnPieters Shouldn't feature requests be PEP drafts?
 
Could there be some sort of tkinter conflict with multiple versions of Python 3 installed side by side without any sort of venv?
 
@GLaDOS If presented well, perhaps. I think it's just adding : parsing.
 
@GLaDOS I don't imagine that the core devs will have much enthusiasm to add yet another feature to the string format mini language - it's already overly complicated. And we now have f-strings, which I presume will gradually take over the bulk of formatting tasks. OTOH, I guess f-strings aren't great for some stuff.
 
10:41 AM
@khajvah not necessarily. Feature requests that add significant new features should, but smaller requests don't.
Expanding how the formatting slots are defined to include : parsing to support a slice isn't exactly PEP-sized.
I do think there is going to be a lot of push-back there though. Next up: request to support commas to so you can do the same on numpy arrays (or other objects that support tuples). And then other types for keys. Etc.
 
cbg
@MartijnPieters stupid restrictions :D
just proves that Python core devs do not know how to build proper parsers, it would be possible to write a recursive parser... but then, it would mean that f'' definitely isn't a single token :P
 
cbg
 
@AnttiHaapala it just proves that supporting [integer_index|string_key] and .attr_name in placeholders was a step too far. It's a template, not a programming language!
 
Yes, I might have been tempted to restrict keys to integer literals/substitutions and variable names. But hey ... that's what I get for staying away from python-dev. I'm certainyl not about to second-guess the people who do the actual work ...
 
If I install the proper Python 3.6 do I need to re-install the stuff I previously installed with pip3.6, or can I just copy the folders over from /opt/python3.x/lib/python3.6/site-packages ?
 
11:01 AM
@PM2Ring I don't see why copying shoudln't work
 
There's also a pip folder & a pip-9.0.1.dist-info folder in site-packages/. What do I do about those?
I guess the make process will install pip there so I don't need to worry about that...
 
 
1 hour later…
12:21 PM
cbg
 
cbg
 
Yassssss
Get to use sqlalchemy on this new project
does the sqlalchemy dance
 
whole new level of "it's not a bug, it's a feature". I thought I wrote a correct code for a feature, then the requirements changed and I revisited the code. Turns out, the code should have worked with the new requirements but had a bug, so it had the previous feature.
 
12:36 PM
Better than writing code that had an unintended bug, then people start using that bug to do crazy things :)
 
this is all because of many-JOIN query
I am confused
 
@IntrepidBrit ObXKCD:
 
Admin is correct
 
ok, SQL is shit
 
I heard that SQL doesn't like you either
 
12:51 PM
@PM2Ring :D
lol
 
@IntrepidBrit it's bullying me
right now
 
@khajvah Noticing that you're confused is the first step in realising that you have an incorrect mental model, so that's a good thing.
 
Let me draw my joins
 
A pen is mightier than sword, But a computer is mightier than pen and sword and also the programmer (sometimes)!
 
this is it
well, a few level simplified version of it
actually, it's not entirely accurate picture
I did it in easy way, with "UNION"
 
1:16 PM
It took me 5 minutes this morning to even get my car door open. I wonder how the group in Montreal is doing...
 
snow?
hangover?
 
or lack of coffee
but probably snow
 
my bet is on snow too
 
I got 2" of rain
yippee
 
that's like 5 cm
 
1:17 PM
freedom units only pls
 
FOSS units
 
I love aerospace units
height in feet, horizontal distance in kilometers
 
the kind that puts the Mars orbiter below the surface?
 
speed in knots
 
1:18 PM
It was freezing rain, I believe. My car was an icicle.
 
@excaza light years
 
GPS coordinates in every possible format
@AndrasDeak reminds me of that time I was converting feet to meters by multiplying by 2.2808
whoops
 
my car is about 0.05 * 10^(-12) light years away from me
cool
 
how many beardseconds?
 
@excaza 0.05 * 10^(-12) * [beardseconds/light years]
 
1:26 PM
FFF is the only way forwards
 
9.4605284 × 10^10 beard seconds
 
icicle sounds so Apple
 
iSickle
 
@khajvah you might find entity-relationship diagrams (ERDs) more tractable than your Venn diagrams
 
already wrote the query
I had to use UNION
and decouple two distinct type because there was intersection(which my venn diagram doesn't show) which I didn't need
 
1:37 PM
Aggregation on a given data would be better to push down into sql query or do it in pandas?
 
@MYGz is the speed critical? Is the amount of data fixed ?
 
speed is critical
data increases by seconds.
 
there will come time when it won't fit in pandas right?
RAM I mean
so sql seems to be the only option
 
need to show data on admin panel. we recycle table after it grows to 2-3gigs.
 
sql should be faster in any ways
 
1:45 PM
Currently use table_yearmonthdate syntax to keep recycling. Master data goes into Amazon Redshift to handle large queries.
 
there will be big overhead. Retrieving 2GBs of data to populate pandas on every request isn't sane
 
Right. The ease of use of pandas is tempting. We don't have frame works where you do a pandas syntax and it gets translated to sql query?
 
disclaimer: I don't know pandas, so I don't know about its magic tricks but I doubt there are any that can help you
@MYGz are you using postgres?
 
MySQL
And Mongo
Mongo, just to make sure it gulps down everything.
 
dunno
 
1:54 PM
Mongo doesn't do type checking. And throws very few errors, unlike RDBs which will shout and refuse to ingest for minor things.
 
@MYGz well, if your data is perfectly relational, it won't shout out
 
@excaza real professionals convert using google's search bar
 
yeah :)
 
@MYGz And besides, Mongo DB Is Web Scale
 
@AndrasDeak I should make a helper function that just queries google for unit conversions
 
2:00 PM
@PM2Ring "No joins, so fast" I want to write a paper on this
 
@PM2Ring haha, watched that one, I like that statement. "If you are just looking for speed why don't you write it to dev/null instead" :D
 
@PM2Ring :D
 
the only point of mongodb is that it can be distributed but even in that case, there are better alternatives
 
More than distributed, it helps us when data is missing or is of other type.
 
@excaza just make it web scale
 
2:06 PM
@MYGz do you do 2 phase commits?
 
Haven't used the sharding feature yet.
 
if I were a database person, I'd insist on calling it sharting
 
haha
 
@MYGz it doesn't matter
two-phase commit is for making sure you don't lose data if something happens to the db
 
nah, not using anything of that sort.
 
2:10 PM
also, take a look at: arangodb.com it has transactions, at least
 
I got peanut butter and nutella pretzels are you guys jealous?
 
nope
I can have nutella biscuits anytime I want:P
 
@MYGz relational databases can do documents too, fwiw. No screaming and shouting involved.
Though documents are better left to document dbs :P
 
@IljaEverilä json fields?
 
Aye
And hstore and what not
 
2:11 PM
json-fields are pain to query
 
They're not the best fit, true
But in general I think of documents as blobs
otoh in the prev corp we did have to query a document column, but SQLA eases the pain quite a bit
 
Aggregation is crazy in mongo.
100 nested loops for 1 complex aggregation.
 
Last time checking mongo everything other than "fetch a document / fetch all documents" was crazy :|
But that was years ago
 
@IljaEverilä True for most applications. Most of the time the data is relational with some unstructured stuff
 
@khajvah could imagine some "we have our business stuff as attributes, customer's custom stuff as document" thingie
 
2:16 PM
my new company uses MongoDb
will see how it goes
but they have hundreds of millions rows
 
\o cbg
 
whats that \o for?
 
@khajvah much scale
 
cbg
going web scale :D
 
@MYGz it's a pictogram of a person waving his hand
 
2:18 PM
@AndrasDeak They have about 300m users, I imagine they have billion row stuff too
 
wow.
 
:/
 
ah. could get it, with some effort. :D
o/ left hand
 
yup
or right hand, from behind the person
 
right
 
2:24 PM
babbage
 
luggage
or Joule
or something
 
Like, the person the unit of energy is named after?
 
a unit, but yes:P
 
Oh, the unit itself. I thought they might have worked with Charles Babbage or something
 
they could've, but I'm entirely ignorant when it comes to history of science
or regular history
or the lives of other people
or other people in general
and I didn't feel like googling Babbage's bio:P
 
2:28 PM
have you guys seen La La Land?
 
sounds like they sing in it
 
seems* like
 
There is a memory trick, it says you should keep the things/people you want to remember on the places in your journey(that you regularly take and have it in your memory) and visualize with all your 5 senses. You won't forget then :D
 
I read La La Land out loud in my head, so it's "sounds like" in terms of my internal loopback
 
@AndrasDeak it's a musical
 
2:29 PM
no way
 
a famous one, I thoough you knew
@AndrasDeak dead serious
 
I wouldn't know, although I like Emma Stone
 
yeah she is good
 
what frameworks in python are generally used for dealing with TCP/HTTP sockets?
 
Define "dealing with?"
 
2:31 PM
frameworks?
 
"python"?
 
And do you mean either, or "HTTP over TCP" only?
 
@corvid Check pumpkinLB if you need a load balancer as well.
 
@khajvah With Ryan G. as main actor? or is there another La La Land ?
Cause I heard good things from the one with Ryan in it lol
 
@MooingRawr yes, him and Emma Stone
 
2:32 PM
@corvid it's for tcp.
 
@KevinMGranger Writing to and reading from a socket, creating and closing connections, basic stuff like that
 
it has amazing reviews
@corvid so HTTP or ?
 
La La Land? I saw it about 3 times for free, and I think different things every time I see it. It's not flawless, but it's very good
 
I don't care for Emma Stone, I think out of all the "real" actors out there, my favourite would have to be: Male: Morgan Freeman/Jackie Chan. Female: Anne Hathaway.
 
I'll stick with quality musicals such as Frozen
 
2:34 PM
^ I second that motion ;3
 
@AndrasDeak not webscale
noob
 
In other words, you want something that is strictly HTTP parsing and whatnot, not some fancy web framework with routes and views? The only think I remotely know of like that is Hyper but I think that's HTTP2 only(?)
 
How the dancing scene was filmed is interesting: mobile.twitter.com/madebysan/status/823635426401538051
 
Whens prison break season5 starting?
 
2:35 PM
Hmm, I feel like someone's serial voting me. I keep getting two votes on old answers lately.
 
There are probably frameworks out there that let you just use their lower-level parts, I think aio-http does that
 
I guess I'll get a revert at some point.
 
up or down?
 
Anyway, cabbage all.
 
cbg
 
2:36 PM
@AndrasDeak up
 
hmm, weird
 
@KevinMGranger s/frameworks/http clients/servers
 
I'd take you for the "attracting serial downvotes" kind
 
Tomb Raider movie has started filming! screenrant.com/tomb-raider-movie-reboot-filming-starts
 
@AndrasDeak haha
 
2:36 PM
@davidism I don't think you'll get a revert past 24 hours
@corvid ooh she was great in Ex Machina
so sad to see her career crumble so fast
 
@davidism \o cbg how goes it. Maybe someone is just thankful for your help with some Flask question or something.
 
I've gotten both directions of serial voting before. I finally realized that I can flag downvoting that doesn't get reverted.
 
@KevinMGranger but tbh, I think he is confused
 
@davidism and upvoting:P
 
>_>
 
2:39 PM
but I think that mods will be less hasty to investigate serial upvotes
 
Voting at high speeds on different users is not serial upvoting?
 
different users: no
 
That people do for the suffrage tag.
 
no, that's stupid but nothing blocks it
 
badge I mean
 
2:40 PM
it's assumed that people don't go out of their way to blindly upvote all sorts of things (yeah right)
it's fairly impossible to automatically guard against abuse of this kind
 
> fairly impossible
 
Had funny moment the other day. Someone downvoted all the answers and the question. One of the answerer got so curious he commented below all answers "Who downvoted????" and He inquired the OP as well "Did you just downvote all the answer???". The poor OP with only 1 Rep said "I did not downvote no answer" :D
 
2:56 PM
ha
 
*2
 

« first day (2292 days earlier)      last day (2664 days later) »