« first day (1795 days earlier)      last day (3378 days later) » 

18:00
I don't want to step on anyone's toes or break the rules, so quick question-- the rules say that you shouldn't discuss your question until a significant amount of time has passed without a satisfactory answer. Would 3 hours constitute a significant amount, or is it better to wait a little longer?
24 hours +
Understood. Thank you!
72 hours to really let it air out.
Speaking of, in the interests of trying to not let my bounty go to waste.
0
Q: wxPython threads blocking

Morgan ThrappThis is in the Phoenix fork of wxPython. I'm trying to run a couple threads in the interests of not blocking the GUI. Two of my threads work fine, but the other one never seem to hit its bound result function. I can tell that it's running, it just doesn't seem to properly post the event. Here'...

Well - I'm expecting @vaultah's question to be concise and perfectly formed, when it finally sees the light of day
18:01
@MorganThrapp It's still just returning a derived class from a base class, but the parent class is being passed in by name, so we can get access to the name string for the derived class.
Joran, c'mon man, you gotta help Morgan sort this stuff out.
@PM2Ring Ohhh, I gotcha. I didn't read it too closely, but I'll have to once I have more time.
@AaronHall He tried, the one answer I got was from him.
No worries.
I agree with Snape. Expectations on @vaultah are for very good content.
I knew I should have learned wxPython.
18:05
@Kevin Other than my current issue, I really like it.
DSM
DSM
Bah. Tkinter should be good enough for anybody.
Yes, but I could get twice as many upvotes if I knew twice as many libraries...
I wonder why only "GAP" is not highlighted in the second code block of this question.
@Kevin I assume because it's all caps instead of class case.
That's a reasonable explanation.
@Alice In case that rule seems a little strange: it's nice to let new questions sit for a while so when we discuss it here we don't end up duplicating stuff that the answerers post. And vice versa: it's annoying to figure out stuff here that's effectively invisible to the people reading the question only to have them duplicating what we've said. :)
Yep. GAP isn't a class name, it's a constant name.
18:21
@PM2Ring No, it makes total sense! You don't want people clogging up the chat for homework problems and such. I just wasn't sure exactly what constituted a 'significant time'. That's why I asked. I also asked because my question was about pandas and data analysis, and not just straight-up python, so I thought it might be prudent to wait a little longer because less people know pandas compared to ordinary python.
good call all round. You've got an expert just answered, as well, I think...
The usual justification I use for that rule is: anyone interested in answering questions in here, is already watching the main questions list, so advertising your question won't attract any new eyeballs.
So it's not so much that it's irritating, as much as it is unproductive
(although some may find it irritating anyway)
By waiting 2-3 days, hopefully some fresh users will circulate into the room, some of which would not have seen the question when it first appeared
@Kevin Hmm, I hadn't thought about it like that. The unproductive-ness of it makes sense, though. Plus, I don't want to deprive other question-askers of the conversations that we have in here. Thank you for your explanation!
@MorganThrapp I'll revisit it this afternoon (assuming im not up to my eyes in actual work)
@JoranBeasley Thanks. :) If you need any more information from me, let me know!
18:27
I might wait till tonight actually (my home pc is all setup for wx3.0 ...
that way I can give you a wx3.0 answer (it will still be py2.7 though )
@Alice FWIW, not many of the regulars here are Pandas experts (I'm certainly not!). Short simple questions are welcome here in Chat, especially if the question seems like it doesn't warrant a "proper" question on the main SO site.
Either way. :) It's not a huge priority, the actual meat of the calculation still has tons of bugs for me to fix.
@PM2Ring Good to know, thank you!
No worries.
Hmm - anyone notice a weird white shadow transparency issue on the new tab logo for chat? seems OK for main site - although that might just be caching.
18:30
I noticed something strange about an hour ago, but I can't replicate it now.
DSM
DSM
@JRichardSnape: no, you're right. I see the same weirdness.
Speaking of bugs, turns out that sorting your data before you put it into a dict will fail. Good job, me.
Mmm, I seem to remember they do some highly distributed server thing, so might be served differently to different parts of the world
They look identical to me in this (admittedly old) version of Firefox.
@DSM I'd be mad if I'd just paid some designers $n to "clean" my logo where n was large
Might be chrome only - I'm on a chromebook
DSM
DSM
18:32
Huh. I'm using Chromium.
I see it too, but it's very small (chrome)
I see it in Chrome on Windows 10.
I was/am on firefox
yeah, there's a white border around each of the orange rectangles, it looks awful
18:34
Mine isn't nearly that bad
Mine's just like DSM picture and I agree with @davidism - it looks awful / amateur
yeah, they need to add alpha to it.
I'm sure they're in the process.
DSM
DSM
#tuesdayafternoonproblems
be kind, rewind for everyone you meet is fighting a hard battle
18:42
Debugged - cdn.sstatic.net/stackoverflow/img/favicon.ico?v=c8 has incorrect alpha, cdn.sstatic.net/stackoverflow/img/favicon.ico?v=4f32ecc8f43d (main site favicon) appears to be alright. Don't know if one's old and one's the new or just versioning
Yes, I'm bored
True that, aaron
Man, the tuesday afternoon struggle is real
With triple-quoted strings, is there a way to ignore a line break?
I wonder if the torque from all our spinning technology (optical drives, hard disk platters, etc...) is affecting the spin of the Earth to any degree.
@MorganThrapp Yeah, put a "\" at the end of the line
x = "abc\
def"""
print x
#result: abcdef
18:47
Although it does sound like something you could do an XKCD blog on. If they all spin the same way, all mounted the same way up etc etc etc. But the result will be no.
don't do that, use implicit concatenation
x = ('abc'
     "def")
^^^ Python parses as a single string.
DSM
DSM
@Kevin: I think that guy's getting confused about what "decimal digits" means here.
user559633
edit: TRIGGER WARNING: ROUGH LANGUAGE. be kind, for everyone you meet needs coddling because the internet is full of fucktards now
18:50
@Kevin Beautiful, thank you.
@tristan Yeah, when I say be kind, I mean mostly just to me. :)
user559633
@AaronHall yeah, that's how everyone means it
@tristan "now"
user559633
@Alice "full"
@DSM Yep. I blame C for not having a len function.
DSM
DSM
You've been cv-plsing pretty quickly lately, davidism.. I know we have the "no hope of redemption" exception, but still. :-)
wasn't paying attention :-(
user559633
for virtualenvwrapper.sh users does $ workon x simply activate the virtualenv?
@tristan it will activate the env, change to the project directory if that's configured, and run any of the env setup scripts
user559633
18:55
@davidism thanks. i assume the env setup scripts are named predictably or there's a command to list them?
user559633
i'm reverse engineering a rube goldberg machine :/
indirection galore?
user559633
you know it. deployment process that's kicked off from some fabric/ssh scripts, lots of "ssh and copy paste", with scripts littered throughout bashrc and in each dir
user559633
@davidism thanks, really appreciated.
18:57
@Kevin C has a strlen(). But it has to scan the string to find the \0 terminator byte.
user559633
sorry for the lazy question, just wasn't sure what exactly it would be called and if there was some idiom that's popular among its users
I've never actually used any of those hooks, even though at least the postactivate one seems useful for setting env vars and such.
user559633
i don't use virtualenvwrapper -- too "magic"
Nerd snipe: determine the total kinetic energy of the Earth due to its rotation.
Snape not sniped
user559633
18:59
i'm trying to tease out which things are local customizations of an old version of virtualenvwrapper, which things are not related, and which things aren't even working.
You can assume it's spherical and of even density, unless you're extra bored
user559633
@JRichardSnape haha nice. nerdsnaping
iirc - pm2 is pretty good at ellipsoidal earth calcs...
I mean .. isn't SO just one giant nerd-snipe website?
DSM
DSM
There are lots of published approximations for the Earth's moment of inertia, and that's the only hard part.
19:01
Finding the kinetic energy should help you determine how many hard drives you'd need to spin to counteract it in any observable way.
Can't just take the mass and assume a uniform sphere?
I'm inclined to guess it would require more energy than all of humanity uses
I wonder if iron at the molten core is any denser than iron at the surface.
I keep falling asleep reading this reportlab documentation...
Hm, does python have "Futures"? Like the async handler
19:04
I think so
@corvid you can't be serious. Try searching "python futures".
user559633
@corvid Yeah, probably a 2.8 and a 3.6 release within the next 3 years.
Oh, it's not in python 2.7... I thought I was doing something wrong
the first result of the search is the library for py < 3.2
19:11
@Kevin Ok. The kinetic energy of a rotating body is ½Iω², where I is the moment of inertia & ω is the angular velocity. For a solid (uniform) sphere, I = 2mr²/5, according to this List of moments of inertia. The Google Calculator knows the mass & radius of the Earth, so plugging this into the Google search box: (2/5)*(mass of earth) * (radius of earth)^2 * (2*pi/day)^2 yields 5.1393537 × 10^29 joules
Async is hard to debug :\
Wikipedia says, "In 2012, the IEA estimated that the world energy consumption was 155,505 terawatt-hour (TWh), or 5.598 × 10^20 joules." So that means halting the spin of the Earth would take 10^9 years. Or whatever the time unit for world energy consumption is.
10^9 of something, in any case.
Curiously, while you were typing that I divided my last calculation by 10^9 years and got 1.6285977 × 10^13 watts.
Oops, my build failed with a cryptic error. Last time this happened, I had to reboot to get it working again. BRB
I just want to put a gyro at the equator and spin the poles to the equator.
19:18
So yeah, you'd need to apply 16.3 terawatts continuously for a billion years to counteract the Earth rotation. Of course, figuring out how to apply that energy is another question. :)
I just want a gyro.
I just want a giro (1970s UK joke)
@MorganThrapp Get a Powerball, they're great fun.
My brother got one of them for Christmas one year. Became quite addictive for a few days
@PM2Ring I just like this stock photo.
19:22
That's literally me right now. Are they good for preventing arthritis in any way? lol
According to their site, yes.
I've heard the baoding(spelling?) balls are good too
@Programmer I don't know about preventing arthritis. But they can certainly help with mobility problems. FWIW, I'd virtually stopped playing guitar due to joint pain before I got into Powerball, but these days I can play for hours at a stretch. Also, I was often getting a cold index finger after intensive mouse use, but Powerball cured that.
@PM2Ring Well i guess I didn't necessarily mean prevent, but aid the pains and aches caused from being in front of a computer all day (literally my life).
Understood. I found a Powerball made a significant improvement. In conjunction with going for walks.
19:30
It's only $20. That's about $50 less than I was expecting.
What exactly did you mean by cold index finger? Some sort of numbing?
@MorganThrapp Yeah, they've dropped in price a bit since I bought mine. Make sure you get one with a speedo/counter, though. But I'm pretty sure you can buy that later as an add-on, if you want. And IIRC they even have a Bluetooth speedo thingy.
@Programmer It's hard going (I went through the tables section at length). I found the place where I first had a go at reportlab - it was this Q&A stackoverflow.com/a/30782222/838992. Thought it might help you because the library I found there is a little more user friendly if it is full featured enough for your needs. As I said before, though, I'm no expert in this area.
@Programmer Kindo of. But before it gets to the stage of going numb you generally get a cold feeling in the finger.
So a repetitive stress can cure an injury caused by repetitive stress.
19:40
@JRichardSnape Thanks! The only thing that is bothering me currently with reportlab is that I don't have white space in between tables, but I think I can add and empty row at the beginning of tables to bandage it. Otherwise, I think reportlab will do.
19:55
@AaronHall Not exactly. In normal use, you don't hold the Powerball in one fixed position, and you swap hands regularly, so the work load gets distributed. You can certainly injure yourself using a Powerball incorrectly. It's recommended to take it easy at first, until you get used to it. It takes most people a while to get the hang of keeping it spinning.
rhubarb
https://stackoverflow.com/questions/32594360/how-to-take-a-break-whi‌​le-hearing-pyttsx-decoded-speech
@MorganThrapp There are lots of reasons to create classes inside functions (think closures).
@PatrickMaupin It still just feels super wrong.
@PM2Ring Cool, my dad often complains of poor finger circulation, so maybe this will be useful to him.
I'll add it to his christmas list just below "personal attack drone"
I wonder if there are any cases in the Python stdlib source where classes are created in functions.
20:10
Product idea: rather than a drone which attacks your enemies, create a drone that attacks its owner, a la Cato from The Pink Panther
waves his hands in a contrarian gesticulation
notices an improvement in his carpal tunnel pain
Nevermind I'm a bit slow
more gesticulations, presumably
hums Hurts So Good
Is there a way to trace into a 3rd party module in PyCharm's debugger? pymssql is throwing some weird errors, and I want to figure out why.
20:24
Can't you try opening it with idle?
@MorganThrapp Alt+Shift+F7 maybe?
@CodyPiersall I tried that. :/ It seems like they only ship a .pyd.
Ooooh
Yeah, I don't know anything about debugging .pyds. Time to give up all hope.
It's claiming I'm passing too many arguments to a stored procedure, but as far as I can tell, I'm only passing the one.
Maybe one is too many.
20:30
Nope, turns out that if you pass in a string as the argument, it decides that the string is actually a list of arguments and passes each character in sequence to the stored procedure.
Because that's a sane thing to do.
So I have to wrap it in a tuple.
Ah, classic.
20:53
@MorganThrapp that's just how the dbapi works in general, execute takes the query to execute and a list of parameters. It's an incredibly common problem to see on SO.
@davidism Ahhh, gotcha. I knew that was the case with execute, I just didn't know it extended to callproc too. I guess that makes sense, though.
Farewell cabbages folks :^)
self.rbrb()
global name self is not defined
21:08
@MorganThrapp Why does it feel wronger than any other closure?
@PatrickMaupin I'm not sure. Maybe just because I haven't seen it before.
The whole reason I use Python is because it's dyamic, and sometimes it's really useful to be able to dynamically create classes.
Oh, happy day -- someone just accepted an answer I wrote a month ago so I get some rep today even though I'm too busy to earn it.
This is the third or fourth "serve video with flask" question in the last few days, after months of none. Is there some class about videos going on or something?
Usually I dupe close them, but this one isn't even developed enough for that.
21:20
port = int(sys.argv[2]) if len(sys.argv) > 2 else 8080 Is that pythony? Something about it rubs me wrong, but I can't put my finger on what.
Repeating sys.argv and 2 I guess.
I noticed that too about the video questions in Flask
try:
    port = int(sys.argv[2])
except IndexError:
    port = 8080
@QuestionC ^ EAFP
but personally I'd rather use argparse or click than mess with argv directly
@PatrickMaupin for example?
22:22
@AaronHall One thing I've done is to create classes for DTD elements. Another thing is to create efficient classes for JTAG accesses. If you have a structure that is not 32 bit aligned in target memory, and your JTAG accesses have to be 32 bit aligned, it is useful to create a structure that could have 0 or 1 bytes followed by 0 or 1 16 bit words followed by N 32 bit words followed by 0 or 1 16 bit word followed by 0 or 1 bytes.
Like this
22:39
Just seen Legend. Very good film.
23:38
@QuestionC, the word is "Pythonic" :P
Legend? Like with Will Smith? oh another movie...
23:50
I'm the Jerry Lewis to your Dean Martin.

« first day (1795 days earlier)      last day (3378 days later) »