workspace
stringclasses
1 value
channel
stringclasses
1 value
sentences
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
sentence_id
stringlengths
44
53
timestamp
float64
1.5B
1.56B
__index_level_0__
int64
0
106k
pythondev
help
ok.
2019-04-28T15:12:13.446200
Frankie
pythondev_help_Frankie_2019-04-28T15:12:13.446200
1,556,464,333.4462
21,121
pythondev
help
might be a good idea
2019-04-28T15:12:18.446400
Frankie
pythondev_help_Frankie_2019-04-28T15:12:18.446400
1,556,464,338.4464
21,122
pythondev
help
You also might consider logging an error message somewhere.
2019-04-28T15:12:39.447100
Sasha
pythondev_help_Sasha_2019-04-28T15:12:39.447100
1,556,464,359.4471
21,123
pythondev
help
yeah. I mean it will be logged into the activity log on the server (that's where this print output came from)
2019-04-28T15:13:09.447600
Frankie
pythondev_help_Frankie_2019-04-28T15:13:09.447600
1,556,464,389.4476
21,124
pythondev
help
it's not technically logging but any stdout stuff is maintained in the server's log file
2019-04-28T15:13:36.448200
Frankie
pythondev_help_Frankie_2019-04-28T15:13:36.448200
1,556,464,416.4482
21,125
pythondev
help
so I can `tail -200 /var/log/eb-activity.log` to see stuff for example
2019-04-28T15:14:20.449300
Frankie
pythondev_help_Frankie_2019-04-28T15:14:20.449300
1,556,464,460.4493
21,126
pythondev
help
Gotcha. But right now it just silently skips an invalid profile. You might want to print something if the `except` clause is triggered.
2019-04-28T15:14:33.449700
Sasha
pythondev_help_Sasha_2019-04-28T15:14:33.449700
1,556,464,473.4497
21,127
pythondev
help
ohhh true good point
2019-04-28T15:14:44.449900
Frankie
pythondev_help_Frankie_2019-04-28T15:14:44.449900
1,556,464,484.4499
21,128
pythondev
help
that's much easier than what I did before which was log into the admin and findthe offending profile based on the ones above/below it, lol
2019-04-28T15:15:11.450500
Frankie
pythondev_help_Frankie_2019-04-28T15:15:11.450500
1,556,464,511.4505
21,129
pythondev
help
since they are organized in the CSV by date joined it was easy for me to find it but I like your way better
2019-04-28T15:15:28.450900
Frankie
pythondev_help_Frankie_2019-04-28T15:15:28.450900
1,556,464,528.4509
21,130
pythondev
help
this can definitely be fine tuned now :slightly_smiling_face:
2019-04-28T15:15:52.451100
Frankie
pythondev_help_Frankie_2019-04-28T15:15:52.451100
1,556,464,552.4511
21,131
pythondev
help
sweeeet 6561 users exported :open_mouth:
2019-04-28T15:27:41.451400
Frankie
pythondev_help_Frankie_2019-04-28T15:27:41.451400
1,556,465,261.4514
21,132
pythondev
help
I apologize in advance 6,561 times, but mailchimp here I come.
2019-04-28T15:28:00.451800
Frankie
pythondev_help_Frankie_2019-04-28T15:28:00.451800
1,556,465,280.4518
21,133
pythondev
help
lol
2019-04-28T15:28:03.452000
Frankie
pythondev_help_Frankie_2019-04-28T15:28:03.452000
1,556,465,283.452
21,134
pythondev
help
Hi, I'm already a proficient powershell developer and I want to translate what I know to python. Are there any good resources for me specifically?
2019-04-28T15:43:27.453300
Emelda
pythondev_help_Emelda_2019-04-28T15:43:27.453300
1,556,466,207.4533
21,135
pythondev
help
From what I've seen, everything is very similar.
2019-04-28T15:43:52.453800
Emelda
pythondev_help_Emelda_2019-04-28T15:43:52.453800
1,556,466,232.4538
21,136
pythondev
help
I would ask people in the user forums at <http://python.org|python.org> to start.
2019-04-28T16:36:42.455200
Clayton
pythondev_help_Clayton_2019-04-28T16:36:42.455200
1,556,469,402.4552
21,137
pythondev
help
anyone know an atom plugin to simply run the file I am working on? vscode has this, but nothing is working on atom for me
2019-04-28T17:06:17.456100
Priscilla
pythondev_help_Priscilla_2019-04-28T17:06:17.456100
1,556,471,177.4561
21,138
pythondev
help
Trying to 'import ArgumentParserModule' : <https://github.com/paulgureghian/MXNet_Projects/blob/master/MXNet_Gluon.ipynb>
2019-04-28T17:13:34.457000
Clayton
pythondev_help_Clayton_2019-04-28T17:13:34.457000
1,556,471,614.457
21,139
pythondev
help
None
2019-04-28T17:14:06.457200
Clayton
pythondev_help_Clayton_2019-04-28T17:14:06.457200
1,556,471,646.4572
21,140
pythondev
help
Does it have to with 'main' not being defined ?
2019-04-28T17:14:48.458000
Clayton
pythondev_help_Clayton_2019-04-28T17:14:48.458000
1,556,471,688.458
21,141
pythondev
help
<@Priscilla> search for `script` in packages.
2019-04-28T17:23:08.458400
Maricruz
pythondev_help_Maricruz_2019-04-28T17:23:08.458400
1,556,472,188.4584
21,142
pythondev
help
then I think the hotkey is something like crtl+shift+b
2019-04-28T17:23:14.458600
Maricruz
pythondev_help_Maricruz_2019-04-28T17:23:14.458600
1,556,472,194.4586
21,143
pythondev
help
I'd recommend just running code in command line/PowerShell though - more visibility
2019-04-28T17:23:39.459200
Maricruz
pythondev_help_Maricruz_2019-04-28T17:23:39.459200
1,556,472,219.4592
21,144
pythondev
help
i was using script, it wont run for some reason, some issue thats been open for years, thanks for the response though! i appreciate it
2019-04-28T17:29:46.460100
Priscilla
pythondev_help_Priscilla_2019-04-28T17:29:46.460100
1,556,472,586.4601
21,145
pythondev
help
None
2019-04-28T17:45:16.460200
Priscilla
pythondev_help_Priscilla_2019-04-28T17:45:16.460200
1,556,473,516.4602
21,146
pythondev
help
oh jeez, i think i am having a hard time because i am missing a step, i need to assign these variables to their own ... something idk, so that it runs a test, receives the true or false, then repeats that process with the next device... maybe a for statement within the main()?
2019-04-28T17:54:19.463600
Priscilla
pythondev_help_Priscilla_2019-04-28T17:54:19.463600
1,556,474,059.4636
21,147
pythondev
help
or something along these lines maybe.
2019-04-28T17:55:57.463900
Priscilla
pythondev_help_Priscilla_2019-04-28T17:55:57.463900
1,556,474,157.4639
21,148
pythondev
help
this one thing is more of a pain in the ass than anticipated... im freaking out man
2019-04-28T17:56:34.464600
Priscilla
pythondev_help_Priscilla_2019-04-28T17:56:34.464600
1,556,474,194.4646
21,149
pythondev
help
<@Priscilla> I'm not exactly sure what you're trying to do, but I'd make a dictionary to hold the results from the test: ``` test_dict = {} serials = get_serials() for serial in serials: test_dict[serial]['test_1_results'] = test1(serial) test_dict[serial]['test_2_results'] = test2(serial) test_dict[serial]['test_3_results'] = test3(serial) ``` Or something like that...
2019-04-28T18:01:07.467400
Maricruz
pythondev_help_Maricruz_2019-04-28T18:01:07.467400
1,556,474,467.4674
21,150
pythondev
help
hang on, sorry i am trying to see if i can fit that in
2019-04-28T18:06:15.468100
Priscilla
pythondev_help_Priscilla_2019-04-28T18:06:15.468100
1,556,474,775.4681
21,151
pythondev
help
None
2019-04-28T18:09:53.468200
Priscilla
pythondev_help_Priscilla_2019-04-28T18:09:53.468200
1,556,474,993.4682
21,152
pythondev
help
boy i am sick of typing serial numbers lol
2019-04-28T18:10:29.468600
Priscilla
pythondev_help_Priscilla_2019-04-28T18:10:29.468600
1,556,475,029.4686
21,153
pythondev
help
for testing you should just do `serials = [312, 645, 879]` and comment out `serials = get_serials()` so you don't have to keep typing numbers.
2019-04-28T18:11:37.469700
Maricruz
pythondev_help_Maricruz_2019-04-28T18:11:37.469700
1,556,475,097.4697
21,154
pythondev
help
i took out the test1 and 3 because those dont exist yet
2019-04-28T18:11:39.469800
Priscilla
pythondev_help_Priscilla_2019-04-28T18:11:39.469800
1,556,475,099.4698
21,155
pythondev
help
omg your right
2019-04-28T18:11:48.470000
Priscilla
pythondev_help_Priscilla_2019-04-28T18:11:48.470000
1,556,475,108.47
21,156
pythondev
help
that looks good to me...is that `test_dict` what you're wanting your end data to look like?
2019-04-28T18:13:15.470900
Maricruz
pythondev_help_Maricruz_2019-04-28T18:13:15.470900
1,556,475,195.4709
21,157
pythondev
help
typo on line 12 btw, should be `'test2_results'`
2019-04-28T18:14:38.471400
Maricruz
pythondev_help_Maricruz_2019-04-28T18:14:38.471400
1,556,475,278.4714
21,158
pythondev
help
where are those `None` coming from you think? should i just post it all?
2019-04-28T18:16:10.472100
Priscilla
pythondev_help_Priscilla_2019-04-28T18:16:10.472100
1,556,475,370.4721
21,159
pythondev
help
Ya just post it all - what's your `test_2` function returning?
2019-04-28T18:17:53.472500
Maricruz
pythondev_help_Maricruz_2019-04-28T18:17:53.472500
1,556,475,473.4725
21,160
pythondev
help
this is gonna hurt
2019-04-28T18:18:18.472700
Priscilla
pythondev_help_Priscilla_2019-04-28T18:18:18.472700
1,556,475,498.4727
21,161
pythondev
help
None
2019-04-28T18:18:35.472800
Priscilla
pythondev_help_Priscilla_2019-04-28T18:18:35.472800
1,556,475,515.4728
21,162
pythondev
help
Yeah, line 138: `out = print(report(serials))`. The return value of `print()` is `None`.
2019-04-28T18:22:01.474400
Sasha
pythondev_help_Sasha_2019-04-28T18:22:01.474400
1,556,475,721.4744
21,163
pythondev
help
In the function `test_2`, you're not actually calling any of the sub functions
2019-04-28T18:22:03.474500
Maricruz
pythondev_help_Maricruz_2019-04-28T18:22:03.474500
1,556,475,723.4745
21,164
pythondev
help
so `test_2` isn't going to return anything (i.e. it returns `None`
2019-04-28T18:22:19.474900
Maricruz
pythondev_help_Maricruz_2019-04-28T18:22:19.474900
1,556,475,739.4749
21,165
pythondev
help
Oh nvm, I can't read
2019-04-28T18:23:47.475600
Maricruz
pythondev_help_Maricruz_2019-04-28T18:23:47.475600
1,556,475,827.4756
21,166
pythondev
help
Line 131 isn't what you want either: `if oct_power_reset_flag and ocm1_power_reset_flag and relay1_temp_set == True:`... you're not calling the functions, just referencing the functions themselves.
2019-04-28T18:24:10.476100
Sasha
pythondev_help_Sasha_2019-04-28T18:24:10.476100
1,556,475,850.4761
21,167
pythondev
help
Right right ^^^
2019-04-28T18:24:20.476300
Maricruz
pythondev_help_Maricruz_2019-04-28T18:24:20.476300
1,556,475,860.4763
21,168
pythondev
help
working on it
2019-04-28T18:24:37.476600
Priscilla
pythondev_help_Priscilla_2019-04-28T18:24:37.476600
1,556,475,877.4766
21,169
pythondev
help
changed it
2019-04-28T18:26:27.476900
Priscilla
pythondev_help_Priscilla_2019-04-28T18:26:27.476900
1,556,475,987.4769
21,170
pythondev
help
oh my god
2019-04-28T18:26:36.477100
Priscilla
pythondev_help_Priscilla_2019-04-28T18:26:36.477100
1,556,475,996.4771
21,171
pythondev
help
holy
2019-04-28T18:26:38.477300
Priscilla
pythondev_help_Priscilla_2019-04-28T18:26:38.477300
1,556,475,998.4773
21,172
pythondev
help
shit it work\ed
2019-04-28T18:26:43.477500
Priscilla
pythondev_help_Priscilla_2019-04-28T18:26:43.477500
1,556,476,003.4775
21,173
pythondev
help
:face_with_monocle: is the `none` in outputs coming from line156?
2019-04-28T18:33:14.478700
Priscilla
pythondev_help_Priscilla_2019-04-28T18:33:14.478700
1,556,476,394.4787
21,174
pythondev
help
line 156 is actually unnecessary I think, you can delete it
2019-04-28T18:35:40.479100
Maricruz
pythondev_help_Maricruz_2019-04-28T18:35:40.479100
1,556,476,540.4791
21,175
pythondev
help
Anyone know any bank of images in PNG? What I need are clues for example, maps and cars or dolls, is to practice simulating auto racing in pygame for example
2019-04-28T18:36:35.479300
Melia
pythondev_help_Melia_2019-04-28T18:36:35.479300
1,556,476,595.4793
21,176
pythondev
help
<@Priscilla> I'm not exactly sure but I think you should remove the `print` from `passed = print(' ' + sn_str + ' PASS - TEST 2')` and `failed`
2019-04-28T18:39:07.480000
Maricruz
pythondev_help_Maricruz_2019-04-28T18:39:07.480000
1,556,476,747.48
21,177
pythondev
help
just do `passed = ' ' + sn_str + ' PASS -TEST2'`
2019-04-28T18:39:21.480400
Maricruz
pythondev_help_Maricruz_2019-04-28T18:39:21.480400
1,556,476,761.4804
21,178
pythondev
help
if you want to print your results to the console, you don't need to store them in a dictionary like I recommended
2019-04-28T18:40:03.480900
Maricruz
pythondev_help_Maricruz_2019-04-28T18:40:03.480900
1,556,476,803.4809
21,179
pythondev
help
have `test_2` return a string then when looping through your serials you can just do
2019-04-28T18:40:27.481500
Maricruz
pythondev_help_Maricruz_2019-04-28T18:40:27.481500
1,556,476,827.4815
21,180
pythondev
help
its going to be entirely console based
2019-04-28T18:40:44.482100
Priscilla
pythondev_help_Priscilla_2019-04-28T18:40:44.482100
1,556,476,844.4821
21,181
pythondev
help
``` for serial in serials: print (test_2(serial)) ```
2019-04-28T18:40:53.482300
Maricruz
pythondev_help_Maricruz_2019-04-28T18:40:53.482300
1,556,476,853.4823
21,182
pythondev
help
BTW, your mental model of `and` is a little off. `if foo and bar and baz == True` evaluates like `if (foo) and (bar) and (baz == True)`, i.e. it's doing some "truthiness" checks and an equality check first, then `and`ing the results.
2019-04-28T18:44:13.484300
Sasha
pythondev_help_Sasha_2019-04-28T18:44:13.484300
1,556,477,053.4843
21,183
pythondev
help
<@Maricruz> i like that much more, simpler code
2019-04-28T18:44:26.484600
Priscilla
pythondev_help_Priscilla_2019-04-28T18:44:26.484600
1,556,477,066.4846
21,184
pythondev
help
<@Sasha> i didnt know that! thanks for letting me know
2019-04-28T18:45:41.485100
Priscilla
pythondev_help_Priscilla_2019-04-28T18:45:41.485100
1,556,477,141.4851
21,185
pythondev
help
yes! removed the `None` didnt kneed the var at 140
2019-04-28T18:53:24.486000
Priscilla
pythondev_help_Priscilla_2019-04-28T18:53:24.486000
1,556,477,604.486
21,186
pythondev
help
<https://opengameart.org/> <https://gamedev.stackexchange.com/questions/20/where-can-i-find-free-sprites-and-images>
2019-04-28T19:04:13.486400
Carmen
pythondev_help_Carmen_2019-04-28T19:04:13.486400
1,556,478,253.4864
21,187
pythondev
help
so i have a `while True:` loop in my main, and it constantly prints out the pass/fail to the console, if i wanted it to only print when finished I would need to place that `while True` in the `test_2` function, does that sound right?
2019-04-28T19:23:07.488900
Priscilla
pythondev_help_Priscilla_2019-04-28T19:23:07.488900
1,556,479,387.4889
21,188
pythondev
help
You would probably want to accumulate the output in a string variable, and then print it at the end.
2019-04-28T19:24:07.489400
Sasha
pythondev_help_Sasha_2019-04-28T19:24:07.489400
1,556,479,447.4894
21,189
pythondev
help
Or use the test results in the dict to create the output after all the testing has been done.
2019-04-28T19:26:23.489900
Sasha
pythondev_help_Sasha_2019-04-28T19:26:23.489900
1,556,479,583.4899
21,190
pythondev
help
ill go with the former, dont have dicts anymore
2019-04-28T19:32:05.490300
Priscilla
pythondev_help_Priscilla_2019-04-28T19:32:05.490300
1,556,479,925.4903
21,191
pythondev
help
damn I have so many API keys for various stuff it's getting kinda annoying. lol
2019-04-28T19:38:15.490700
Frankie
pythondev_help_Frankie_2019-04-28T19:38:15.490700
1,556,480,295.4907
21,192
pythondev
help
mailchimp, aws, iex, newsapi, quandl, alphavantage ... seems like the list is neverending to the point I'm about to just create a `keys.py` and import it :smile:
2019-04-28T19:39:17.491900
Frankie
pythondev_help_Frankie_2019-04-28T19:39:17.491900
1,556,480,357.4919
21,193
pythondev
help
it doesnt like this, why doesnt it like this?
2019-04-28T19:55:13.492000
Priscilla
pythondev_help_Priscilla_2019-04-28T19:55:13.492000
1,556,481,313.492
21,194
pythondev
help
Same mental-model problem you had with `and`. The `or` operator has to deal with full self-contained expressions, not referencing variables elsewhere in the line. You want `if float_tp4 &gt;= 13.1 or float_tp4 &lt;= 16.5:`. Note also that it's `&gt;=` rather than `=&gt;`.
2019-04-28T20:03:31.493900
Sasha
pythondev_help_Sasha_2019-04-28T20:03:31.493900
1,556,481,811.4939
21,195
pythondev
help
aha
2019-04-28T20:06:38.495000
Priscilla
pythondev_help_Priscilla_2019-04-28T20:06:38.495000
1,556,481,998.495
21,196
pythondev
help
And note that this will be true for any float value. Did you want it to be the other way around, such that the value is between 13.1 and 16.5?
2019-04-28T20:06:39.495100
Sasha
pythondev_help_Sasha_2019-04-28T20:06:39.495100
1,556,481,999.4951
21,197
pythondev
help
in between
2019-04-28T20:06:52.495300
Priscilla
pythondev_help_Priscilla_2019-04-28T20:06:52.495300
1,556,482,012.4953
21,198
pythondev
help
i changed them though
2019-04-28T20:07:24.496000
Priscilla
pythondev_help_Priscilla_2019-04-28T20:07:24.496000
1,556,482,044.496
21,199
pythondev
help
There's a handy shortcut for that: `if 13.1 &lt;= float_tp4 &lt;= 16.5`. Or you can do it with an `and` clause.
2019-04-28T20:07:42.496400
Sasha
pythondev_help_Sasha_2019-04-28T20:07:42.496400
1,556,482,062.4964
21,200
pythondev
help
your way is much more readable i think
2019-04-28T20:08:52.496700
Priscilla
pythondev_help_Priscilla_2019-04-28T20:08:52.496700
1,556,482,132.4967
21,201
pythondev
help
what do you think? I am going to run this for all of the test points then use a function called `report()` to check all the test points to be true or false. and if any are false then `report()` will return `FAIL`
2019-04-28T20:13:44.496800
Priscilla
pythondev_help_Priscilla_2019-04-28T20:13:44.496800
1,556,482,424.4968
21,202
pythondev
help
You should probably get into the habit of searching for `"= print"` in your code. Every time you do that, it's a mistake, since `print()` always returns `None`.
2019-04-28T20:15:15.497900
Sasha
pythondev_help_Sasha_2019-04-28T20:15:15.497900
1,556,482,515.4979
21,203
pythondev
help
is this the correct way?
2019-04-28T20:16:45.498600
Priscilla
pythondev_help_Priscilla_2019-04-28T20:16:45.498600
1,556,482,605.4986
21,204
pythondev
help
Yep. You can also just `return 'pass'` if you want to.
2019-04-28T20:17:18.499100
Sasha
pythondev_help_Sasha_2019-04-28T20:17:18.499100
1,556,482,638.4991
21,205
pythondev
help
alright, i think <@Maricruz> told me that just a min ago too lol
2019-04-28T20:17:54.499600
Priscilla
pythondev_help_Priscilla_2019-04-28T20:17:54.499600
1,556,482,674.4996
21,206
pythondev
help
how long you guys been programming?
2019-04-28T20:27:09.499900
Priscilla
pythondev_help_Priscilla_2019-04-28T20:27:09.499900
1,556,483,229.4999
21,207
pythondev
help
6 years or so out of college for me
2019-04-28T20:29:06.000400
Hiroko
pythondev_help_Hiroko_2019-04-28T20:29:06.000400
1,556,483,346.0004
21,208
pythondev
help
nice
2019-04-28T20:29:54.000600
Priscilla
pythondev_help_Priscilla_2019-04-28T20:29:54.000600
1,556,483,394.0006
21,209
pythondev
help
heavily for about 3-4 years but I've been codey since the days of like geocities and dreamweaver lol
2019-04-28T20:30:42.001400
Frankie
pythondev_help_Frankie_2019-04-28T20:30:42.001400
1,556,483,442.0014
21,210
pythondev
help
I think my first website used blinking text and an embedded midi file if that tells you anything :smile:
2019-04-28T20:31:07.001900
Frankie
pythondev_help_Frankie_2019-04-28T20:31:07.001900
1,556,483,467.0019
21,211
pythondev
help
lol wow
2019-04-28T20:31:52.002400
Priscilla
pythondev_help_Priscilla_2019-04-28T20:31:52.002400
1,556,483,512.0024
21,212
pythondev
help
this is my flagship app: <https://www.lazyfa.com/explore>
2019-04-28T20:36:54.003000
Frankie
pythondev_help_Frankie_2019-04-28T20:36:54.003000
1,556,483,814.003
21,213
pythondev
help
My first computer stored programs on audio cassettes. :sweat:
2019-04-28T20:37:46.003900
Sasha
pythondev_help_Sasha_2019-04-28T20:37:46.003900
1,556,483,866.0039
21,214
pythondev
help
hey very nice <@Frankie>
2019-04-28T20:38:11.004300
Priscilla
pythondev_help_Priscilla_2019-04-28T20:38:11.004300
1,556,483,891.0043
21,215
pythondev
help
lmao <@Sasha>
2019-04-28T20:38:16.004500
Frankie
pythondev_help_Frankie_2019-04-28T20:38:16.004500
1,556,483,896.0045
21,216
pythondev
help
I think oregon trail was about my limit :smile:
2019-04-28T20:38:27.004900
Frankie
pythondev_help_Frankie_2019-04-28T20:38:27.004900
1,556,483,907.0049
21,217
pythondev
help
which is prob much more recent than yours :stuck_out_tongue:
2019-04-28T20:38:39.005200
Frankie
pythondev_help_Frankie_2019-04-28T20:38:39.005200
1,556,483,919.0052
21,218
pythondev
help
Heh, just a few years I think.
2019-04-28T20:40:01.005800
Sasha
pythondev_help_Sasha_2019-04-28T20:40:01.005800
1,556,484,001.0058
21,219
pythondev
help
Did you have a little gizmo to cut notches in floppy discs? :wink:
2019-04-28T20:41:14.006800
Sasha
pythondev_help_Sasha_2019-04-28T20:41:14.006800
1,556,484,074.0068
21,220