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
I'm not that familiar with docker but there are probably tutorial online or ask in <#C22DMH61M|devops> :slightly_smiling_face:
2018-02-26T08:42:30.000112
Micki
pythondev_help_Micki_2018-02-26T08:42:30.000112
1,519,634,550.000112
36,124
pythondev
help
I have set another one similar to it and it works, the only reason this one is different is because it has optgroups in it as well. Is there a way I can get the default value to the be the selected option?
2018-02-26T08:43:46.000580
Milo
pythondev_help_Milo_2018-02-26T08:43:46.000580
1,519,634,626.00058
36,125
pythondev
help
<@Micki> okay thanks
2018-02-26T09:02:04.000004
Brittaney
pythondev_help_Brittaney_2018-02-26T09:02:04.000004
1,519,635,724.000004
36,126
pythondev
help
can i get a sample? or a link?
2018-02-26T09:02:46.000465
Brittaney
pythondev_help_Brittaney_2018-02-26T09:02:46.000465
1,519,635,766.000465
36,127
pythondev
help
Hi everyone, Does anyone know a python package to manage real time file ingest in python ?
2018-02-26T09:43:59.000574
Miranda
pythondev_help_Miranda_2018-02-26T09:43:59.000574
1,519,638,239.000574
36,128
pythondev
help
im struggling with tkinter and trying to get the input from an entry widget, what i would really really like (i’m writing a sudoku board btw) would be for the user to click the square they want to enter a number in and to have an entry widget appear right there on the canvas, and for the user to enter a number in it an...
2018-02-26T11:46:09.000407
Talia
pythondev_help_Talia_2018-02-26T11:46:09.000407
1,519,645,569.000407
36,129
pythondev
help
but atm even just mucking about on IDLE i can’t get even a button to return what i want
2018-02-26T11:46:30.000235
Talia
pythondev_help_Talia_2018-02-26T11:46:30.000235
1,519,645,590.000235
36,130
pythondev
help
nothing works
2018-02-26T11:49:11.000433
Talia
pythondev_help_Talia_2018-02-26T11:49:11.000433
1,519,645,751.000433
36,131
pythondev
help
the ones i try are indic. by # and ive tried plenty more
2018-02-26T11:49:30.000907
Talia
pythondev_help_Talia_2018-02-26T11:49:30.000907
1,519,645,770.000907
36,132
pythondev
help
How can I take a timestamp pulled from json as a string `2018-02-26T17:04:14.000Z` and convert it to unix timestamp? This is python3
2018-02-26T12:08:20.000426
Lorrine
pythondev_help_Lorrine_2018-02-26T12:08:20.000426
1,519,646,900.000426
36,133
pythondev
help
<@Lorrine> <https://docs.python.org/3.4/library/time.html#time.strptime>
2018-02-26T12:29:57.000307
Huong
pythondev_help_Huong_2018-02-26T12:29:57.000307
1,519,648,197.000307
36,134
pythondev
help
@blooze i had the same problem and ended up just using `$timestamp[0:10]`
2018-02-26T12:34:26.000203
Elisha
pythondev_help_Elisha_2018-02-26T12:34:26.000203
1,519,648,466.000203
36,135
pythondev
help
quick n dirty but using the actual time/datetime classes would probably be better practice
2018-02-26T12:34:55.000577
Elisha
pythondev_help_Elisha_2018-02-26T12:34:55.000577
1,519,648,495.000577
36,136
pythondev
help
then you lose the time, though
2018-02-26T12:35:10.000653
Brande
pythondev_help_Brande_2018-02-26T12:35:10.000653
1,519,648,510.000653
36,137
pythondev
help
time is relative who needs it
2018-02-26T12:35:24.000320
Elisha
pythondev_help_Elisha_2018-02-26T12:35:24.000320
1,519,648,524.00032
36,138
pythondev
help
people converting datetimes to timestamps ¯\_(ツ)_/¯
2018-02-26T12:35:46.000476
Brande
pythondev_help_Brande_2018-02-26T12:35:46.000476
1,519,648,546.000476
36,139
pythondev
help
lol, ya in my case I just needed the date
2018-02-26T12:36:03.000729
Elisha
pythondev_help_Elisha_2018-02-26T12:36:03.000729
1,519,648,563.000729
36,140
pythondev
help
i might just be a noob but the datetime class is not as intuitive as other languages
2018-02-26T12:36:23.000245
Elisha
pythondev_help_Elisha_2018-02-26T12:36:23.000245
1,519,648,583.000245
36,141
pythondev
help
im grabbing it from a json api and posting it to influxdb
2018-02-26T12:36:27.000138
Lorrine
pythondev_help_Lorrine_2018-02-26T12:36:27.000138
1,519,648,587.000138
36,142
pythondev
help
I'd say that <@Huong> link is the right direction. strptime &amp; the time module are what you're looking for
2018-02-26T12:38:25.000583
Elisha
pythondev_help_Elisha_2018-02-26T12:38:25.000583
1,519,648,705.000583
36,143
pythondev
help
hopefully you have better luck than I did
2018-02-26T12:38:35.000167
Elisha
pythondev_help_Elisha_2018-02-26T12:38:35.000167
1,519,648,715.000167
36,144
pythondev
help
you probably want if from the `ðatetime` module but it's almost the same
2018-02-26T12:39:07.000361
Micki
pythondev_help_Micki_2018-02-26T12:39:07.000361
1,519,648,747.000361
36,145
pythondev
help
I was trying something like this originally ``` date_convert = datetime.datetime.strptime(time, "%Y-%m-%dT%H:%M:%S.%fZ") unixtime = datetime.datetime(date_convert).timestamp() ```
2018-02-26T12:39:35.000021
Lorrine
pythondev_help_Lorrine_2018-02-26T12:39:35.000021
1,519,648,775.000021
36,146
pythondev
help
wtf is that d :open_mouth:
2018-02-26T12:39:38.000492
Micki
pythondev_help_Micki_2018-02-26T12:39:38.000492
1,519,648,778.000492
36,147
pythondev
help
lol i thought that was dirt on my monitor
2018-02-26T12:40:02.000622
Elisha
pythondev_help_Elisha_2018-02-26T12:40:02.000622
1,519,648,802.000622
36,148
pythondev
help
same
2018-02-26T12:40:06.000020
Lorrine
pythondev_help_Lorrine_2018-02-26T12:40:06.000020
1,519,648,806.00002
36,149
pythondev
help
I guess he is trying to break your cut + paste
2018-02-26T12:40:45.000105
Huong
pythondev_help_Huong_2018-02-26T12:40:45.000105
1,519,648,845.000105
36,150
pythondev
help
@blooze ill give you a taco if you figure that out and then come back and tell me how to convert that timestamp to a str of `yyyy-mm-dd`
2018-02-26T12:40:52.000431
Elisha
pythondev_help_Elisha_2018-02-26T12:40:52.000431
1,519,648,852.000431
36,151
pythondev
help
Load it into a datetime then `strftime` it?
2018-02-26T12:41:24.000282
Huong
pythondev_help_Huong_2018-02-26T12:41:24.000282
1,519,648,884.000282
36,152
pythondev
help
the whole thing?
2018-02-26T12:42:02.000152
Lorrine
pythondev_help_Lorrine_2018-02-26T12:42:02.000152
1,519,648,922.000152
36,153
pythondev
help
i spent maybe 30 mins trying to figure that out but i kept getting errors
2018-02-26T12:42:02.000460
Elisha
pythondev_help_Elisha_2018-02-26T12:42:02.000460
1,519,648,922.00046
36,154
pythondev
help
time is fun, don't forget timezones
2018-02-26T12:42:18.000224
Huong
pythondev_help_Huong_2018-02-26T12:42:18.000224
1,519,648,938.000224
36,155
pythondev
help
its UTC
2018-02-26T12:42:23.000640
Lorrine
pythondev_help_Lorrine_2018-02-26T12:42:23.000640
1,519,648,943.00064
36,156
pythondev
help
Here ya go: ``` from datetime import datetime date = '2018-02-26T17:04:14.000Z' date_format = '%Y-%m-%dT%H:%M:%S.%fZ' parsed_time = datetime.strptime(date, date_format) print(parsed_time.date()) ```
2018-02-26T12:45:38.000017
Brande
pythondev_help_Brande_2018-02-26T12:45:38.000017
1,519,649,138.000017
36,157
pythondev
help
ooo lemme ssh on into my dev server and see if that works for me...
2018-02-26T12:46:10.000449
Elisha
pythondev_help_Elisha_2018-02-26T12:46:10.000449
1,519,649,170.000449
36,158
pythondev
help
it’s technically a `date` but yeah, the str representation is what you need
2018-02-26T12:46:51.000020
Brande
pythondev_help_Brande_2018-02-26T12:46:51.000020
1,519,649,211.00002
36,159
pythondev
help
`%S.%f` i think is what I was missing before
2018-02-26T12:48:08.000600
Elisha
pythondev_help_Elisha_2018-02-26T12:48:08.000600
1,519,649,288.0006
36,160
pythondev
help
nice <@Brande> :taco:
2018-02-26T12:48:24.000708
Elisha
pythondev_help_Elisha_2018-02-26T12:48:24.000708
1,519,649,304.000708
36,161
pythondev
help
this got me the unix timestamp
2018-02-26T12:50:22.000237
Lorrine
pythondev_help_Lorrine_2018-02-26T12:50:22.000237
1,519,649,422.000237
36,162
pythondev
help
``` date_convert = datetime.datetime.strptime(time, "%Y-%m-%dT%H:%M:%S.%fZ") unixtime = date_convert.timestamp() ```
2018-02-26T12:50:32.000350
Lorrine
pythondev_help_Lorrine_2018-02-26T12:50:32.000350
1,519,649,432.00035
36,163
pythondev
help
ahh so `.timestamp()` is the unix timestamp and `.date()` is just the date part?
2018-02-26T12:51:36.000249
Elisha
pythondev_help_Elisha_2018-02-26T12:51:36.000249
1,519,649,496.000249
36,164
pythondev
help
nice
2018-02-26T12:51:39.000152
Elisha
pythondev_help_Elisha_2018-02-26T12:51:39.000152
1,519,649,499.000152
36,165
pythondev
help
yep
2018-02-26T12:51:40.000617
Brande
pythondev_help_Brande_2018-02-26T12:51:40.000617
1,519,649,500.000617
36,166
pythondev
help
and there is also `.time()`
2018-02-26T12:51:53.000261
Brande
pythondev_help_Brande_2018-02-26T12:51:53.000261
1,519,649,513.000261
36,167
pythondev
help
sweet
2018-02-26T12:51:58.000503
Elisha
pythondev_help_Elisha_2018-02-26T12:51:58.000503
1,519,649,518.000503
36,168
pythondev
help
pretty sure all my trouble was from an incorrect format option
2018-02-26T12:52:12.000155
Elisha
pythondev_help_Elisha_2018-02-26T12:52:12.000155
1,519,649,532.000155
36,169
pythondev
help
date formatting is a PITA
2018-02-26T12:52:23.000138
Brande
pythondev_help_Brande_2018-02-26T12:52:23.000138
1,519,649,543.000138
36,170
pythondev
help
although, stripping the first 10 chars out is super quick
2018-02-26T12:52:34.000207
Elisha
pythondev_help_Elisha_2018-02-26T12:52:34.000207
1,519,649,554.000207
36,171
pythondev
help
and all my timestamps are in the same format so /shrug
2018-02-26T12:52:51.000133
Elisha
pythondev_help_Elisha_2018-02-26T12:52:51.000133
1,519,649,571.000133
36,172
pythondev
help
I had a good time of it handling talking to an API that was in Eastern tz
2018-02-26T12:52:51.000683
Huong
pythondev_help_Huong_2018-02-26T12:52:51.000683
1,519,649,571.000683
36,173
pythondev
help
Learned a lot of this mess working with that
2018-02-26T12:52:59.000465
Huong
pythondev_help_Huong_2018-02-26T12:52:59.000465
1,519,649,579.000465
36,174
pythondev
help
<@Elisha> you deserve to burn in the fire of datetime :burn:
2018-02-26T12:53:27.000757
Micki
pythondev_help_Micki_2018-02-26T12:53:27.000757
1,519,649,607.000757
36,175
pythondev
help
but it will probably come soon enough
2018-02-26T12:53:34.000569
Micki
pythondev_help_Micki_2018-02-26T12:53:34.000569
1,519,649,614.000569
36,176
pythondev
help
But do you also need `calendar` :thinking_face:
2018-02-26T12:53:50.000551
Huong
pythondev_help_Huong_2018-02-26T12:53:50.000551
1,519,649,630.000551
36,177
pythondev
help
depending on your timezone and summer time :smile:
2018-02-26T12:54:04.000189
Micki
pythondev_help_Micki_2018-02-26T12:54:04.000189
1,519,649,644.000189
36,178
pythondev
help
<@Micki> I felt the heat, ill stick with my hacky solutions until absolutely neccesary
2018-02-26T12:54:33.000155
Elisha
pythondev_help_Elisha_2018-02-26T12:54:33.000155
1,519,649,673.000155
36,179
pythondev
help
I'd like to work with python professionally but for now it's just fun time personal projects
2018-02-26T12:54:54.000012
Elisha
pythondev_help_Elisha_2018-02-26T12:54:54.000012
1,519,649,694.000012
36,180
pythondev
help
thanks everyone!
2018-02-26T12:55:46.000690
Lorrine
pythondev_help_Lorrine_2018-02-26T12:55:46.000690
1,519,649,746.00069
36,181
pythondev
help
It's not a hacky solution it's MVP
2018-02-26T12:55:48.000253
Huong
pythondev_help_Huong_2018-02-26T12:55:48.000253
1,519,649,748.000253
36,182
pythondev
help
:smile:
2018-02-26T12:55:56.000043
Huong
pythondev_help_Huong_2018-02-26T12:55:56.000043
1,519,649,756.000043
36,183
pythondev
help
every time I see someone use <http://requests.post|requests.post> its used as a variable `r = <http://requests.post|requests.post>(url, data)` can I just use `<http://requests.post|requests.post>(url, data)` in a for loop without setting a variable?
2018-02-26T14:12:17.000649
Lorrine
pythondev_help_Lorrine_2018-02-26T14:12:17.000649
1,519,654,337.000649
36,184
pythondev
help
Should be able to
2018-02-26T14:14:09.000773
Garrett
pythondev_help_Garrett_2018-02-26T14:14:09.000773
1,519,654,449.000773
36,185
pythondev
help
thanks
2018-02-26T14:14:55.000220
Lorrine
pythondev_help_Lorrine_2018-02-26T14:14:55.000220
1,519,654,495.00022
36,186
pythondev
help
<@Lorrine> i would advice you to always set timeouts: `<http://request.post|request.post>(url, data, timeout=2)`
2018-02-26T14:28:35.000320
Meredith
pythondev_help_Meredith_2018-02-26T14:28:35.000320
1,519,655,315.00032
36,187
pythondev
help
You dont want you requests to hang indefinitely in prod
2018-02-26T14:29:47.000284
Meredith
pythondev_help_Meredith_2018-02-26T14:29:47.000284
1,519,655,387.000284
36,188
pythondev
help
Good point, thank you
2018-02-26T14:30:58.000173
Lorrine
pythondev_help_Lorrine_2018-02-26T14:30:58.000173
1,519,655,458.000173
36,189
pythondev
help
Is there a proper way to do a try: for <http://requests.post|requests.post> as well?
2018-02-26T14:32:55.000430
Lorrine
pythondev_help_Lorrine_2018-02-26T14:32:55.000430
1,519,655,575.00043
36,190
pythondev
help
what do you mean? try/except/else/finally is just a python statement, you can use it with any python library if you want to catch some request-specific exception, you usually do it like this ``` try: data = requests.get(url, params=params, timeout=timeout).json() except requests.Timeout: print('timeout') except...
2018-02-26T14:40:59.000148
Meredith
pythondev_help_Meredith_2018-02-26T14:40:59.000148
1,519,656,059.000148
36,191
pythondev
help
hi guys! why so little people use threads for discuss problems in slack?
2018-02-26T15:40:47.000477
Mariann
pythondev_help_Mariann_2018-02-26T15:40:47.000477
1,519,659,647.000477
36,192
pythondev
help
I like when everyone can see my discussion, more opportunity to shitpost memes
2018-02-26T15:48:09.000148
Elisha
pythondev_help_Elisha_2018-02-26T15:48:09.000148
1,519,660,089.000148
36,193
pythondev
help
in addition, you have all your comments hidden from view <@Mariann>
2018-02-26T15:57:41.000147
Floy
pythondev_help_Floy_2018-02-26T15:57:41.000147
1,519,660,661.000147
36,194
pythondev
help
unless you scroll up and look for it
2018-02-26T15:57:50.000409
Floy
pythondev_help_Floy_2018-02-26T15:57:50.000409
1,519,660,670.000409
36,195
pythondev
help
what do you like about them?
2018-02-26T15:58:27.000156
Floy
pythondev_help_Floy_2018-02-26T15:58:27.000156
1,519,660,707.000156
36,196
pythondev
help
i think it's not right expose each discuss message for all members of such big group.
2018-02-26T16:52:32.000156
Mariann
pythondev_help_Mariann_2018-02-26T16:52:32.000156
1,519,663,952.000156
36,197
pythondev
help
if somebody is interesting in some message he can 'follow tread' or take a part in discuss. then he will be informed about updates. other peoples will not be disturbed
2018-02-26T16:56:26.000706
Mariann
pythondev_help_Mariann_2018-02-26T16:56:26.000706
1,519,664,186.000706
36,198
pythondev
help
and main channel will have only titles of topics. i think it very convinient
2018-02-26T16:57:56.000357
Mariann
pythondev_help_Mariann_2018-02-26T16:57:56.000357
1,519,664,276.000357
36,199
pythondev
help
Hi <@Mariann>, the topic being discussed aside, it's better not to default to "he" when talking (or thinking) about a generic person/slack member. Singular they would be better, more inclusive
2018-02-26T17:08:29.000423
Laronda
pythondev_help_Laronda_2018-02-26T17:08:29.000423
1,519,664,909.000423
36,200
pythondev
help
("if somebody is interested... they can follow... then they will be informed...")
2018-02-26T17:09:33.000557
Laronda
pythondev_help_Laronda_2018-02-26T17:09:33.000557
1,519,664,973.000557
36,201
pythondev
help
I think it's nice to see other people's discussions, to learn something from them or to be able to participate. If a discussion is still going on but hidden in a thread, no-one except those who joined early will know about it. This is also unhelpful if you're looking for help or a solution.
2018-02-26T17:14:36.000528
Laronda
pythondev_help_Laronda_2018-02-26T17:14:36.000528
1,519,665,276.000528
36,202
pythondev
help
And i think this slack has enough channels that it doesn't feel like any channel is getting "flooded"?
2018-02-26T17:15:18.000054
Laronda
pythondev_help_Laronda_2018-02-26T17:15:18.000054
1,519,665,318.000054
36,203
pythondev
help
Imo threads are more useful if you still want to comment on something that is not being actively discussed anymore, when the discussion in the channel has moved on. Or for off-topic content (not that applicable to this slack, i guess, but in other slacks, spoilers and content that needs content warnings goes into threa...
2018-02-26T17:18:41.000331
Laronda
pythondev_help_Laronda_2018-02-26T17:18:41.000331
1,519,665,521.000331
36,204
pythondev
help
would be interesting to hear what other people think about the threading topic. One problem I have when reading a large channel like this is that there are often multiple topics going on at the same time, which makes it very difficult to read afterwards
2018-02-26T19:45:46.000283
Irene
pythondev_help_Irene_2018-02-26T19:45:46.000283
1,519,674,346.000283
36,205
pythondev
help
Hello, don't ask why but I have to make `a.b.c == 'something'`. Is this the way to doing it? ```class a(object): class b(object): c = 'something'```
2018-02-26T22:05:21.000168
Carly
pythondev_help_Carly_2018-02-26T22:05:21.000168
1,519,682,721.000168
36,206
pythondev
help
by "the way" I mean succinct and effective
2018-02-26T22:05:52.000090
Carly
pythondev_help_Carly_2018-02-26T22:05:52.000090
1,519,682,752.00009
36,207
pythondev
help
<@Carly> <https://repl.it/repls/LowestHopefulDaemons>
2018-02-26T22:25:44.000189
Aleida
pythondev_help_Aleida_2018-02-26T22:25:44.000189
1,519,683,944.000189
36,208
pythondev
help
How often do you find yourself using dictionaries? What types of data do you come across that requires dictionaries?
2018-02-26T22:27:44.000241
Chi
pythondev_help_Chi_2018-02-26T22:27:44.000241
1,519,684,064.000241
36,209
pythondev
help
<@Chi> &gt; What types of data do you come across that requires dictionaries? All kinds of mappings &gt; How often do you find yourself using dictionaries? All of the time
2018-02-26T22:30:53.000095
Aleida
pythondev_help_Aleida_2018-02-26T22:30:53.000095
1,519,684,253.000095
36,210
pythondev
help
Do you have a background in some other language? Maybe java?
2018-02-26T22:31:15.000164
Aleida
pythondev_help_Aleida_2018-02-26T22:31:15.000164
1,519,684,275.000164
36,211
pythondev
help
I'm a SQL Dev. Still beginner at Python. I feel I've only ever used lists. And dictionaries seem very important.
2018-02-26T22:31:53.000033
Chi
pythondev_help_Chi_2018-02-26T22:31:53.000033
1,519,684,313.000033
36,212
pythondev
help
you can use dictionaries for more than just data, you can assign functions or classes to the values too.
2018-02-26T22:33:49.000043
Verline
pythondev_help_Verline_2018-02-26T22:33:49.000043
1,519,684,429.000043
36,213
pythondev
help
But that's because everything is an object in python, even functions or classes
2018-02-26T22:34:35.000249
Aleida
pythondev_help_Aleida_2018-02-26T22:34:35.000249
1,519,684,475.000249
36,214
pythondev
help
Ahh, see that seems really cool. I never figured you could do that.
2018-02-26T22:34:48.000243
Chi
pythondev_help_Chi_2018-02-26T22:34:48.000243
1,519,684,488.000243
36,215
pythondev
help
Just don't abuse it :slightly_smiling_face:
2018-02-26T22:35:54.000092
Aleida
pythondev_help_Aleida_2018-02-26T22:35:54.000092
1,519,684,554.000092
36,216
pythondev
help
I will try :slightly_smiling_face: thanks for the help!
2018-02-26T22:36:45.000251
Chi
pythondev_help_Chi_2018-02-26T22:36:45.000251
1,519,684,605.000251
36,217
pythondev
help
`filename[-3:]` *
2018-02-26T22:40:24.000201
Aleida
pythondev_help_Aleida_2018-02-26T22:40:24.000201
1,519,684,824.000201
36,218
pythondev
help
Ooh, that is very nice! Thank you very much.
2018-02-26T22:46:24.000094
Chi
pythondev_help_Chi_2018-02-26T22:46:24.000094
1,519,685,184.000094
36,219
pythondev
help
I am trying to retrieve a business associated with a unique id in my API.
2018-02-27T01:31:25.000106
Hans
pythondev_help_Hans_2018-02-27T01:31:25.000106
1,519,695,085.000106
36,220
pythondev
help
But I keep getting a 404 error even though I have dummy data that should be returned when I make the GET request.
2018-02-27T01:32:14.000003
Hans
pythondev_help_Hans_2018-02-27T01:32:14.000003
1,519,695,134.000003
36,221
pythondev
help
<@Hans> I suspect the businessId passed into get_business is a string but the one in dict is an int
2018-02-27T01:35:30.000117
Lashandra
pythondev_help_Lashandra_2018-02-27T01:35:30.000117
1,519,695,330.000117
36,222
pythondev
help
<@Lashandra> So I should convert `businessId` into an `int` for it to work?
2018-02-27T01:37:48.000072
Hans
pythondev_help_Hans_2018-02-27T01:37:48.000072
1,519,695,468.000072
36,223