« first day (2441 days earlier)      last day (2493 days later) » 

12:01 AM
@Rawing So it just waits with executing the next command by default?
Theres gonna be like 600 jobs that take a minute each so it'll be a lot of commands
Right, first line of the doc I even linked myself, Run the command described by args. Wait for command to complete, then return a CompletedProcess instance. Hm, Well, truly a beginners question then. Thanks!
 
Dan
cbg
 
12:20 AM
Another question. I have something like p_test = np.array(['--W', '0.3', '--Vg', '0.1', '--w_cutoff', '0.0']). I want to convert this to --W 0.3 --Vg -.1 --w_cutoff 0.0. This I can do with *; using print(*p_test) I get exactly that. But how can I now do something like subprocess.run("python3.6 script.py" + *p_test) ? I can't seem to figure out how to put in the unpacked part
Using {}".format(*p_test)) only puts in the first part, --W
 
"python3.6 script.py " + ' '.join(p_test) should work
 
Dan
^^ yes
 
That it does! Thank you
 
 
5 hours later…
5:58 AM
recbg
@user129412 why are you using np.array for that
 
@AnttiHaapala home office cbg
 
@user129412 @Rawing slap you all
that's just wrong.
instead you should be doing a) using a list instead of np.array: p_test = ['--W', '0.3', '--Vg', '0.1', '--w_cutoff', '0.0']. Then pass the arguments to subprocess.run as a list: ['python3.6', 'script.py'] + p_test. Then notice that it is ridiculous to have a dependency to python3.6 in the path and that you want to run the script with the same interpreter as you're currently running, so replace 'python3.6' with sys.executable.
and then you'd notice that you actually want to run the script in the same interpreter, so you'd refactor it into a module and forget that subprocess.run exists.
@IljaEverilä ö
 
@AnttiHaapala ä
 
@IljaEverilä what does that mean? I was speaking Swedish to you!
 
But my Swedish is rusty :\
 
6:10 AM
The double dots on the a, is that the rust you are talking about? :-p
 
Ö, ö, hö, ö
@AshishNitinPatil What double dots? Clean your display ;P
That's actually something that happened to me once. I kept thinking that there was a typo in some text, but it was just dirt on my screen.
 
@IljaEverilä haha, you got me!
Was pretty sure you were joking, but still had to check :-p
 
@AshishNitinPatil Great success :D
 
@IljaEverilä You are doing it again with the D
 
 
1 hour later…
user7440629
7:23 AM
Hi
 
user7440629
Need one help
 
user7440629
I have log data in this format:
 
user7440629
TIMESTAMP="Jun 7 2010 15:03:49 NZST" ACCESS-TYPE="ABC" TYPE="XYZ" PACKET-
TYPE="St" REASON="bkz" CIRCUIT-ID="UIX eth 1/1/11/20" REMOTE-ID="NBC" CALLING-
STATION-ID="LKP" SUB-ID="JIK"
 
user7440629
How to read this in proper format using python
 
postgresql.org/docs/devel/static/… - cross column statistics in postgresql 10
 
user7440629
7:27 AM
in Python
 
@Olay who knows what that format is. Looks like there is a word followed by = followed by a string in parentheses
use a regular expression to scan each KEY="Value"
 
user7440629
The column name will be " TIMESTAMP", "ACCESS-TYPE" so on
 
parsed_data = {match.group(1):match.group(2) for match in re.findall(r'([^\s=]+)\s*=\s*"((?:\\.|[^"])*)"', log_data)}
^ oops, that should be re.finditer
 
7:56 AM
morning
 
can you comment on deleted answers when you have 10k rep?
 
@Rawing why would you?
 
to tell people who got bullied into deleting their answer "hey, your answer isn't so bad"
 
8:20 AM
@Rawing you can vote to undelete I think
 
8:54 AM
Cabbage
> I have re-opened this as it was incorrectly marked as a duplicate. Marking a question "why can I do x" as a duplicate of an old question saying "why can't I do x" is not helpful.
ffs, that’s why SO is such a mess.
 
@Rawing no
@poke where's this?
 
There should be a system in place that disables hammers once the question has been closed and reopened once…
 
they should be merged into one
and... perhaps hammered in the other direction
 
The older question is more general though. The answers should be just updated to reflect the current situation.
 
9:10 AM
@poke, that's a good idea. I hadn't thought of doing that. Answer to previous question updated with the newer links from here and I've re-closed this one. — David Arno 1 min ago
Yay, faith in humanity restored!
 
!
yea in that case the older question was better...
but I don't like the people who keep telling that the newer question must always be closed as a duplicate of the older
 
 
1 hour later…
10:23 AM
@poke (I know, I was just poking fun)
cbg
 
10:34 AM
@AnttiHaapala I am moving in.
although, it political correctness isn't a thing here too
 
10:49 AM
or well, there isn't any talk about PC :D
 
I don't like new "let's not offend anybody" ideas
 
11:06 AM
I'd really like to see the "move" feature added to mobile chat
^ mcve
 
@Jake C'mon mate, I literally wrote working code for you a few days ago
23 hours ago, by Rawing
Add self.clock.config(text=timecall) and it'll do a countdown show the current time.
 
11:20 AM
@Rawing Oh yeah i forgot about that sorry XD
Wait I did do that but it still doesn't work
Have a look
I think I put it in the right place
but it doesn't update
Right I am off for my lunch I will be back on in a bit
 
11:44 AM
@poke only now did I notice your coloured hammers :)
 
@Jake This is the 3rd and last time I'm saying it: self.clock.config(text=self.timecall) should be self.clock.config(text=timecall). You may want to read up on variables and scopes.
 
ohhhhhh
 
@Jake the fact that this is the third time Rawing said <the same thing> to you, I must ask you to read and understand this page.
 
I am so sorry I miss understood him, Sorry!
 
That's not enough, read and understand that page I linked to.
 
11:48 AM
Yeah I am Going to
 
Asking for help and then not bothering to read the answer multiple times shows blatant disregard for the time of others. Stop doing that.
 
@Rawing It works Like a dream Now I am sorry for the misunderstanding
@AndrasDeak I miss understood him
 
@AndrasDeak I am going to read that page now
 
thank you :)
 
11:49 AM
recbg
 
cbg
 
@AnttiHaapala ?
 
@AndrasDeak To be fair, it's a small difference that's easy to miss.
 
@Jake re-prefix - "a prefix, occurring originally in loanwords from Latin, used with the meaning “again” or “again and again” to indicate repetition, or with the meaning “back” or “backward” to indicate withdrawal or backward motion: regenerate; refurbish; retype; retrace; revert." + cbg
 
@Rawing twice :P
 
11:51 AM
@Rawing Sorry Man Thanks For The Help!
 
"This is the 3rd and last time" is the perfect signal that the other party is doing it wrong
 
ah well this is rather silly.
 
@AndrasDeak Guys Can we just calm down Please. I don't want to be know as the person who made this argumen]
argument
All I was looking for was some help and I got it
 
Hehe, no, clearly I did it:) Everyone's calm, I assure you. And there's no huge deal here, I agree. We just discussed the merit of my concerns for your behaviour
but don't worry about it too much, just make sure to make the best of the help you get in the future
 
@AndrasDeak Thanks man
 
11:56 AM
I admit that certain other users may have made me much more grumpy by default to inadequate responses to help ;)
 
XD
 
The internet is grumpy
 
 
@PaulMcGuire What does 'cbg' Mean?]
 
12:10 PM
cbg
 
Really
 
it means cabbage
 
cabbage
 
oh you know as you do XD
 
12:12 PM
CBG
let's get ready to cabbaaaaage
 
ɓ̶͙͕͙̈̆̀q̴̢̼̦̈́̀͠ɔ̵̢̘̎̇͒
 
we're off to a good start
 
that will be all
rhubarb
 
sigh....OP came back with stating they had to use builtins.list in order to get things working, while still denying that they are not assigning something to list
 
12:15 PM
The first thing a room 6 resident would teach a new programmer would be the traditional Hello World program print("Cabbage, World!")
 
agreed. it is the room6 cabbage world probram
 
no probram
 
A first step in Python probramming
 
I was going to edit it back. But I'll leave the shame
 
I like it
 
12:16 PM
me too
I think this is one of those good mistakes
learn probramming the cabbage way
 
Stochastic computing at its best. "I've got 16 gigs of probram in this baby"
or...not
but seriously rbrb for now :D
 
rbrb 😀
 
The internet has fat fingers today
 
The Joy Of Probramming
I can do this all day
 
Learn Probramming the Hard Way
 
12:20 PM
By - Idj Jaw
I think I'll go with that as my shadow writer name.
I probably should delete this too
This is why the writing should be left to Kevin
 
Yea, Kevin's really good at that. He should write a book sometime.
"The many misadventures of Kevin, the great 4-dimensional being projected unto our lowly 3D-realm"
 
@AndrasDeak :))
 
phew this was a close one
Chat HTTPS redirects did not go well. Rolling back now and investigating.
 
Wow this is old. #FirstGifComesUpForYourName https://t.co/fS1UsUFW02
 
12:41 PM
Hopefully now you've all learned your lesson to not make fun of me or I'll be forced to take chat down again. Let this be a lesson to you all.
 
hi, where can I find python 3.5 full path I installed on Windows? I forgot where it is, im looking for full path of "python.exe"
 
On my Windows machine, I use where to find stuff in the path.
 
If you can somehow start python, you can find the path by doing import sys; print(sys.executable)
 
C:\Users\Kevin\Desktop>where python.exe
C:\Programming\Python 3.5\python.exe
This is assuming it's actually in a directory within the PATH environment variable.
 
@Rawing Thank You, this is what I was looking for.
 
12:46 PM
morning everyone
 
HI. Can anyone help me with this please - stackoverflow.com/questions/44666325/…
 
Sup crow
 
user6845426
cbg all, long time :)
 
I've missed you ;_;
 
user6845426
Well I know thats not directed at me
 
12:53 PM
:37764255 Do you, corvid? :P (RE removed post)
 
poke your name keeps making me want poké
 
1:11 PM
I have been invited to a DnD group and I have ten days to come up with a backstory for a druid that is from Waterdeep, which is more or less a major metropolitan area. This is a challenge because druids are typically solitary tree-huggers.
 
what is the method called in python 3.x to connect with databases and what do i have to import for it
 
My primary idea is to have a shut-in who talks to his plants every day until they start talking back to him. I'm not sure if the DnD universe has a welfare system though so I don't know if I can justify him being unemployed but not homeless
@FluffyMe Which kind of database?
 
sql
MySQL
 
Hmm, I don't know that one, I'm afraid. Anything I could tell you, you could find out just as quickly and twice as coherently by googling "python mysql"
 
no i have trust me, but there are so many methods and if i want to use one i have to install things and when i do it gives me an error
 
1:15 PM
@FluffyMe honestly, you should google these kind of stuff.
@FluffyMe then post the exact piece of code that causes errors and somebody will try to fix
 
well okey than, thanks :)
 
Lazy solution: install nothing, use the built-in sqlite3 module instead
 
Ugh, someone asked "how do I run Flask as root" and then accepted an answer. Never run Flask as root.
 
Any reason for that, other than the general principle of "programs should only have exactly the permissions they require to do their job, and no more"?
 
That principle has been thoroughly ignored by every operating system in existance
 
1:29 PM
Because Flask.run is a dev server that is not guaranteed to be secure, efficient, or stable.
 
Feature request: create a dev server that is guaranteed to be secure, efficient, and stable.
 
Nginx + uWSGI is as close as you can get.
 
I want a server so secure and stable that I can rest a newborn baby atop it while I take a nap
 
I want a server that is so secure that it can only be accessed by localhost
 
My web server is embedded in concrete at the bottom of the Mariana Trench. It responds to pings... Sonar pings.
 
1:36 PM
one thing I am frustrated by... in github, is the left or the right dropdown on a PR the branch I want to merge into on create new pull request?
 
I'm going to re-iterate this as well, just because it is really important for future readers to realize this: "NEVER RUN FLASK AS ROOT....EVER....EVER...."idjaw 18 secs ago
 
\o cbg
 
user6845426
cbg
 
Just have to wait 3 days then I can vote to delete the question.
 
does anyone know if pymysql work with python 3.x
 
1:43 PM
5000 points to hufflepuff if anyone knows what movie I referenced in my comment link
Try not to cheat
 
@idjaw thoughts on the Knight's team picks? Also 34 won the Calder, super happy about that, haven't had a rookie win that since the 60s.
 
@idjaw I know
 
@MooingRawr Even though I'm not the biggest Fleury fan....I kinda feel bad for him that he has been picked out and looks like he's going to be rendered a backup goalie
@davidism <3 :) one of my childhood favourites
 
@FluffyMe github.com/PyMySQL/PyMySQL says, CPython >= 2.6 or >= 3.3. So, yes.
 
1:48 PM
oh come on....were those eval answers there just to have a "different" answer from the two valid ones?
wty....
 
no idea
 
Thanks for bringing it back. Looks like it is getting some clean up
 
> eval is so unnecessary that it would do the community good to not even have this as an answer. – idjaw
nice :D
 
:)
 
@idjaw He was in a shared goalie spot in Pens, I think he will be in a similar spot with Pickard.... I think they over drafted on D just so they can trade with teams that has a bit lacking on D... It's kinda a smart move I suppose :D
 
1:51 PM
yeah..we'll see how it all plays out throughout the rest of the summer
 
@Kevin i have python 3.6 will it work with that to or is it only 3.1/2/3
 
">= 3.3" means "3.3 or higher"
 
That seems obvious.
 
as far as I understand things, higher versions consume previous versions. Unless you are talking about 2.X, then I think you should be good
^^ anyone wanna correct me on that if I'm wrong?
 
ooh shit yes sorry :)
 
1:52 PM
In general, it's extremely rare that a library would work with earlier versions of 3.X and not later ones
So rare that I don't believe I've ever come across a single example
 
and at -5, still defending eval
@idjaw it's a builtin function that has it use, it all depend on your context. — Tbaki 44 secs ago
 
Also I didn't win the steak dinner :( I only got 7 right.... Oh well win some you lose some...I'm so hype for Oct 4th.
 
@Kevin - I had some issues in pyparsing with use of the traceback module - code that worked in 3.5.0 failed in 3.5.1. There is still some special code for that version.
But this is a corner case of a corner case
 
@PaulMcGuire However, are those cases that would be argued to be more of a bug in 3.5.0 behaviour?
or was it really a breaking change that was necessary?
 
@FluffyMe just a heads up, some Room Owners of this chat enforces SE's policy on languages ie... meta.stackexchange.com/questions/22232/… Don't want you to run into trouble with em in the future :D
 
1:57 PM
if you want to swear, just use variances of "yam"
we're having a yammin' good time
I got 99 bugs but a yam aint one
 
Fer yam's sake
 
But I love yams... why do we have to forsake yam's reputation :( The Yam didn't choose this life, we chose it for it
 
You have to take that up with the creators of salad.
feel free to put in a change request
but there is a 100% chance it will be rejected
 
3 2 1 Let's Yam
[high energy jazz interlude]
 
1:59 PM
Apr 15 '15 at 15:51, by davidism
> @BenjaminGruenbaum YOU are a first class, spineless tomato hiding behind a computer. Peach yammer'er YOU started these beans by deleting my earlier corn and by spinelessly garlicing me. I will NOT back down, You can permanently garlic me I don't give a YAM and will get around it. Your sprouts will be appreciated, then maybe we can start over.
 
I can't think of another word that I want to doom with yam's job.
 
My greatest momment with salad was translating a 10k flagged chat post into it.
 
wow
I'm not mad....I'm impressed
 
@Kevin can't he be a part time gardener/venus fly trap walker?
 
And then 2 years happened and we rarely see you use salad language to your fullest extent. I'm sadden by the fact that you withhold such greatness :(
 
2:01 PM
I thought about it... Like, he's an unappreciated gardener for some haughty aristocrat. They don't talk to "the help" so it's easy to meet the "solitary" requirement.
 
Also is there a rule on starring legacy comments ?
 
legacy comments?
 
I also want to work in a crazy cat lady who turns out to be a high level druid, secretly mentoring him by giving him seeds that sprout into psychotropic plants that take him on spirit walks
 
Like, going through the star board from a year ago and starring what you like? Sure, you can do that
 
and be smitten
 
2:03 PM
Like going a few years back and starring what I like that may or may not have a star
 
You just gave Kevin an idea for a bot...way to go poke
you did this...remember that.
 
A bot to do what...?
 
And/or asks him to carry out seemingly inconsequential tasks like collecting berries from the forest to treat the cats' dandruff, and it turns out they only grow deep in the lair of an evil kobold tribe. And he sort of Mr Magoos his way into their stronghold and wipes them out as a side effect
 
@poke -> going through the star board from a year ago and starring what you like
Kevin will use this to maintain his starlord reputation
 
But he already has us for starring his comments
 
2:05 PM
for message in get_chat_history(): if message.author == 'Kevin': star()
 
and he can actually not star his own comments
 
^^ I realized this when I hit enter
But in true fashion of laughing at myself.....I'm leaving it
proud of my silly!
owning it
 
:)
 
@poke he can :P
 
@poke but he can write a bot to star his comments :D
 
2:06 PM
LOL
oh no....
 
but why..? He has us
 
@AndrasDeak I don't picture her as a love interest due to the age difference. She's late 60s, and has been for the last 50 years thanks to the "slow aging" druid class feature
But nobody has ever noticed this because nobody pays attention to cat ladies. They're entirely fungible.
 
sorry, that remark of mine was a continuation of poke's preceding message
 
I think what poke is trying to imply is that Kevin has us wrapped around his finger, and we are just going to star him.
 
@poke we are humans... we aren't perfect, we might miss a message of his thus we only feed 99% of the total potential stars.... Kevin needs ALL the stars :D
 
2:07 PM
@idjaw Isn’t that how it works though?
 
@poke Yeah. I just wasn't sure if Kevin was fully aware of this.
The more he knows, the more dangerous he is.
Plus we have another Kevin in the room...they are growing
 
that cute little critter needs a hedgehug
 
yes..definitely
 
When will Kevins take over the world and force us to merge with them? To be one with Kevin..... soon we will be finding ourselves feeding on star dusts.
 
2:09 PM
August 12, 2342.
 
haha yes
 
Hmm, if I make the guy a squatter, I can avoid the employment issue entirely. Which is useful because people with regular jobs tend not to become adventurers.
 
I really want to approach idjaw's eval guy because they are acting as if they were doing OP a favour, when they are being harmful. But something tells me that there would be no net gain :/
 
@isacatinthesink
well is there?
388 tweets, 50.7k followers, following 81 users
This is a good account.
 
If I want to parse a text document and display stats, graphs, etc about the information on a webpage would something like flask or Django be the right way to go or is it overkill? I dont know if its possible with just html or php
 
2:13 PM
Of course it's possible with html, but Flask might make that a lot easier depending on your background... Django works but it all depends on what you want to do as an endgoal
 
I've spent almost a year learning python and its my first programming language. I know a little html but not enough for this.
I just dont want to invest the time learning flask and then realize I went the wrong way with it
 
You're fine with Flask.
 
awesome.
 
I see it this way, You have a chance to learn something new, even if it doesn't turn out to be what you exactly want, you've learnt something new and something that is transferable...
IIRC, I used this when learning the basic of Flask, flask.pocoo.org/docs/0.12/tutorial Maybe it will be useful for you.
 
I agree completely but I have my own deadlines that i'dl ike to finish this project within so going the right way with it is important right now
 
2:19 PM
alright. coffee shop morning over. Time to go to the office and wear 10 layers of clothing
the hotter it is outside, the colder the AC is...
 
that's not how physics works D:
 
like you would know
stop trying to fizzicks me
 
btw I left a comment for eval guy...on another unsolicited eval answer of theirs :P
so it's sort of OK
 
@idjaw I wish my office was like that. Currently, the hotter it is the same amount of AC is pumped.
 
Its the sitting in 110 degree traffic on the way to work that sucks
with 100% humidity here in dfw
 
2:25 PM
@sidnical Where are you from lol soo hot
 
between Dallas and Ft Worth Texas
Luckily not in either downtown area. Its even hotter there
 
43 degrees sounds too much for the USA though..
I assumed the temps hovered around 25 to 30 degrees
maximum
 
The American southwest has a reputation for being the hottest part of the US.
 
yes, very hot
 
 
2:31 PM
its weird to go somewhere like Arizona where they have no humidity and its even hotter. You cant tell how hot it is because your sweat evaporates before it leaves your skin. You never feel that hot gross sweaty feeling but it'll kill you if you arent drinking water.
 
@sidnical - I am just down the street in Austin, you should come to a Python meetup down here some time (and yes, Season of Beastly Hotness has come to TX).
Meanwhile, with school out, this is the Time of Reduced Traffic Congestion. Though the delta between in-school and out-school traffic gets less every year.
 
I've started seeing stuff about the Python meetings, trainings, and sacrificial gatherings
As im new to it I always feel like i'll be around people way smarter than me and anything discussed will be above my understanding
 
25 mins ago, by sidnical
I've spent almost a year learning python and its my first programming language. I know a little html but not enough for this.
you might be underestimating your knowledge
 
It is written, "if you're the smartest person in the room, you're in the wrong room"
 
that is true
Maybe i'll go to one that they have in the DFW area
 
2:41 PM
@sidnical Is what I feel like 80% of the time in here :D But It's still good since you can google stuff and learn new things
 
I cant imagine how long it took to do stuff before google and other internet resources
if I had to search 5 books to find a switch I needed for some command I wouldn't do this stuff
 
@AndrasDeak I spent 2 years in Physic during University, I don't know much about that stuff :\
 
lol
 
@sidnical You can test yourself a little w3schools.com/html/html_quiz.asp
 
somebody used my code :|
 
2:48 PM
That's a bad thing?
 
have you seen my code?
 
haha
@RompePC thats awesome, i'll have to see how much I dont remember about html.
 
Good morning. I am Noob please tell me to FOff if it's better to ask on SO. I am trying to import a matlab mat file which is a struct of arrays I want to get at one column of the array (one field). I am using: import scipy.io as sio. What I get is a <type 'numpy.ndarray'> which looks like an array of array of array. Could someone please help me interpret this:

[[array([[1]], dtype=uint8) array([[ 0.6]]) array([[1]], dtype=uint8)
array([[1]], dtype=uint8) array([[1]], dtype=uint8) array([[ 0.3]])
and perhaps suggest a way to unwrap it?
 
Hello! I am trying to do make a tkinter app that would count down form user set up value upon start button click. how would it be possible to do this?
I get start value from Entry widget
 
3:04 PM
root.after ought to be useful
 
75
Q: How do you run your own code alongside Tkinter's event loop?

Allan SMy little brother is just getting into programming, and for his Science Fair project, he's doing a simulation of a flock of birds in the sky. He's gotten most of his code written, and it works nicely, but the birds need to move every moment. Tkinter, however, hogs the time for its own event loop...

 
would it work for constant changing label like 9-8-7-6-5-4-3-2-1-0?
 
Some data I need is hidden behind an ASP.NET form which I need to interact with first. Would the most elegant/future-proof way to interact with it be to use Mechanize to simulate a browser, click events, etc, letting the website's JavaScript handle ASP.NET clientside?
 
@БеляковаАнастасия Yes.
 
DSM
Thursday cabbage for all.
 
3:17 PM
\o cbg DSM :D
 
so far it does not works. How to incorporate it correctly with button click?
 
Does salad language support variations on "cabbage", such as "cole slaw" or "sauerkraut..."?
 
DSM
It's like any other language. People use words, and then eventually they gain currency if they're popular.
Do the kids still say things are "on fleek"?
 
@БеляковаАнастасия You can loop over a function and update the label['text'] each time
 
@DSM I think so
 
3:22 PM
import tkinter as tk

def countdown():
    button.config(text=str(int(button['text'])-1))
    win.after(1000, countdown)

win= tk.Tk()
button= tk.Button(win, text='10', command=countdown)
button.grid()
win.mainloop()
 
or AF
maybe both
“My makeup is on fleek AF”?
 
yeah that
 
thank you, this worked
 
@Rawing - set command to None inside countdown, else multiple clicks on the button start multiple timers (or change the command to "pause_countdown"). And want to stop at 0 probably, since T-1 and afterward are probably too late to cancel anything.
 
It might come as a shock, but that code was only for demonstration purposes :p
 
3:28 PM
@Rawing and it was put together at ludicrous speed
 
rb folks
 
DSM
@poke: looks like I may beat you to the next milestone. ;-)
 
I didnt realise this but cabbage is also Russian slang for money: rbth.com/blogs/2013/10/10/… .. always a good start to the day.
 
wim
150k ?
offer a few bounties to make it interesting
 
I AM BACK
what kind of trouble have people been getting in to here
@wim you figure out your sqlalchemy pytest thing? I'm curious
 

« first day (2441 days earlier)      last day (2493 days later) »