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
hi <@Ciera> before i imported numy i did round rom built in
2017-12-06T03:47:24.000244
Blaine
pythondev_help_Blaine_2017-12-06T03:47:24.000244
1,512,532,044.000244
102,403
pythondev
help
same effect
2017-12-06T03:47:42.000233
Blaine
pythondev_help_Blaine_2017-12-06T03:47:42.000233
1,512,532,062.000233
102,404
pythondev
help
:disappointed:
2017-12-06T03:47:45.000310
Blaine
pythondev_help_Blaine_2017-12-06T03:47:45.000310
1,512,532,065.00031
102,405
pythondev
help
there might be an answer here <https://docs.python.org/3/tutorial/floatingpoint.html#tut-fp-issues>
2017-12-06T03:48:10.000056
Ciera
pythondev_help_Ciera_2017-12-06T03:48:10.000056
1,512,532,090.000056
102,406
pythondev
help
but i will check yout tutorial, i read a lot at stackoverlflow, and from what i understood numpy round with 128b accuracy
2017-12-06T03:48:22.000028
Blaine
pythondev_help_Blaine_2017-12-06T03:48:22.000028
1,512,532,102.000028
102,407
pythondev
help
Trying to think about Blockchain but for open RTB bidding. Creating a block chain or an idea of one for a transaction of a bought / sold impression in digital advertising. Instead of self.data = data I was hoping to use data Asa. Dictionary to store multiple values within data
2017-12-06T04:28:50.000030
Amee
pythondev_help_Amee_2017-12-06T04:28:50.000030
1,512,534,530.00003
102,408
pythondev
help
If that makes sense?
2017-12-06T04:28:55.000264
Amee
pythondev_help_Amee_2017-12-06T04:28:55.000264
1,512,534,535.000264
102,409
pythondev
help
I don't quite get what you mean
2017-12-06T04:31:05.000366
Winnie
pythondev_help_Winnie_2017-12-06T04:31:05.000366
1,512,534,665.000366
102,410
pythondev
help
what do you want to happen when a block is initialised?
2017-12-06T04:31:42.000027
Winnie
pythondev_help_Winnie_2017-12-06T04:31:42.000027
1,512,534,702.000027
102,411
pythondev
help
For it to capture the data generate a hash and a time stamp. I think I am way over my head lol.
2017-12-06T04:40:19.000041
Amee
pythondev_help_Amee_2017-12-06T04:40:19.000041
1,512,535,219.000041
102,412
pythondev
help
Still pretty new to python the fundamentals I get. Maybe a block chain project is ott for the moment
2017-12-06T04:41:13.000129
Amee
pythondev_help_Amee_2017-12-06T04:41:13.000129
1,512,535,273.000129
102,413
pythondev
help
``` class Block: def __init__(self, index, timestamp, data, previoius_hash): self.index = index self.timestamp = timestamp self.data = data self.previoius_hash = previoius_hash ```
2017-12-06T04:41:27.000049
Winnie
pythondev_help_Winnie_2017-12-06T04:41:27.000049
1,512,535,287.000049
102,414
pythondev
help
does that not achieve what you're after?
2017-12-06T04:41:34.000235
Winnie
pythondev_help_Winnie_2017-12-06T04:41:34.000235
1,512,535,294.000235
102,415
pythondev
help
It does but now how can I specify what goes into data.
2017-12-06T04:49:26.000346
Amee
pythondev_help_Amee_2017-12-06T04:49:26.000346
1,512,535,766.000346
102,416
pythondev
help
Thats what was confusing me slightly as I want data to be a dictionary like my first example
2017-12-06T04:49:47.000310
Amee
pythondev_help_Amee_2017-12-06T04:49:47.000310
1,512,535,787.00031
102,417
pythondev
help
``` ... data = { 'buyer': 123456, 'seller': 654321, 'cpm': 1.00, 'url': '<https://google.com>' } Block(index, timestamp, data, timestamp) ```
2017-12-06T04:50:35.000381
Winnie
pythondev_help_Winnie_2017-12-06T04:50:35.000381
1,512,535,835.000381
102,418
pythondev
help
it's whatever you want it to be
2017-12-06T04:50:43.000332
Winnie
pythondev_help_Winnie_2017-12-06T04:50:43.000332
1,512,535,843.000332
102,419
pythondev
help
Ok I get it now. As that doesn’t haven’t to be in a function it can just be a single dictionary
2017-12-06T04:52:07.000088
Amee
pythondev_help_Amee_2017-12-06T04:52:07.000088
1,512,535,927.000088
102,420
pythondev
help
`time_in_range` missing in action
2017-12-06T04:53:28.000044
Wade
pythondev_help_Wade_2017-12-06T04:53:28.000044
1,512,536,008.000044
102,421
pythondev
help
Hi, quite new to python here. I would like to create a script that collects video stream and do some image processing on the frames then proceed to send the frames to the server. On the side while serving a flask application that shows the video feed. I would like to have some guidance on how do i approached this as mo...
2017-12-06T05:30:47.000277
Maxine
pythondev_help_Maxine_2017-12-06T05:30:47.000277
1,512,538,247.000277
102,422
pythondev
help
What specifically you have trouble with?
2017-12-06T05:35:45.000329
Suellen
pythondev_help_Suellen_2017-12-06T05:35:45.000329
1,512,538,545.000329
102,423
pythondev
help
basically im having trouble showing the frames in the flask application
2017-12-06T05:40:51.000364
Maxine
pythondev_help_Maxine_2017-12-06T05:40:51.000364
1,512,538,851.000364
102,424
pythondev
help
here's a gist of what i have
2017-12-06T05:44:49.000229
Maxine
pythondev_help_Maxine_2017-12-06T05:44:49.000229
1,512,539,089.000229
102,425
pythondev
help
<https://gist.github.com/anonymous/08edbaf788f8c4c5d342ab03779bd18b>
2017-12-06T05:44:50.000436
Maxine
pythondev_help_Maxine_2017-12-06T05:44:50.000436
1,512,539,090.000436
102,426
pythondev
help
that works fine but the problem with that is faces wont be sent to the server if there is no request
2017-12-06T05:46:44.000356
Maxine
pythondev_help_Maxine_2017-12-06T05:46:44.000356
1,512,539,204.000356
102,427
pythondev
help
Anyone knows how to get IE11 on Win7 to send along credentials when loading a script from our application? We have a script that is behind auth, and works perfectly on Chrome/FF/Safari/Win10 IE but when we try to get this script on Win7 IE11 it shows our login page? When opening in a new tab it works… It’s on a differ...
2017-12-06T06:24:13.000212
Casie
pythondev_help_Casie_2017-12-06T06:24:13.000212
1,512,541,453.000212
102,428
pythondev
help
<@Casie> what kind of auth?
2017-12-06T06:46:40.000254
Marcie
pythondev_help_Marcie_2017-12-06T06:46:40.000254
1,512,542,800.000254
102,429
pythondev
help
<@Marcie> the default Django session auth
2017-12-06T06:47:22.000068
Casie
pythondev_help_Casie_2017-12-06T06:47:22.000068
1,512,542,842.000068
102,430
pythondev
help
the js file gets rendered from a view
2017-12-06T06:47:39.000138
Casie
pythondev_help_Casie_2017-12-06T06:47:39.000138
1,512,542,859.000138
102,431
pythondev
help
check the network dev tools to see if the cookie header is being sent along with the JS request
2017-12-06T06:53:02.000069
Marcie
pythondev_help_Marcie_2017-12-06T06:53:02.000069
1,512,543,182.000069
102,432
pythondev
help
i remember some similar behaviour with an internal tool at my last job that was on the intranet and had some security settings in IE11 that didnt allow the cookie to be passed along with it in some conditions
2017-12-06T06:53:44.000211
Marcie
pythondev_help_Marcie_2017-12-06T06:53:44.000211
1,512,543,224.000211
102,433
pythondev
help
<@Marcie> will check
2017-12-06T07:25:41.000266
Casie
pythondev_help_Casie_2017-12-06T07:25:41.000266
1,512,545,141.000266
102,434
pythondev
help
Guys I am looking for a postgre gui client. Something like phpMyAdmin but for postgre. Aaaaand preferably free
2017-12-06T09:10:12.000009
Jeanette
pythondev_help_Jeanette_2017-12-06T09:10:12.000009
1,512,551,412.000009
102,435
pythondev
help
pgadmin?
2017-12-06T09:10:31.000175
Suellen
pythondev_help_Suellen_2017-12-06T09:10:31.000175
1,512,551,431.000175
102,436
pythondev
help
thank you!
2017-12-06T09:12:43.000143
Jeanette
pythondev_help_Jeanette_2017-12-06T09:12:43.000143
1,512,551,563.000143
102,437
pythondev
help
solution is
2017-12-06T10:02:04.000193
Blaine
pythondev_help_Blaine_2017-12-06T10:02:04.000193
1,512,554,524.000193
102,438
pythondev
help
<https://gist.github.com/janpauldahlke/42f6773a7b0ff5cf63aaaddf11b32dc9>
2017-12-06T10:02:17.000539
Blaine
pythondev_help_Blaine_2017-12-06T10:02:17.000539
1,512,554,537.000539
102,439
pythondev
help
:thumbsup:
2017-12-06T10:08:03.000678
Ciera
pythondev_help_Ciera_2017-12-06T10:08:03.000678
1,512,554,883.000678
102,440
pythondev
help
Hey guys! Can someone help me. I am new at Python and I am stuck on this script for 2 days. I have script (<https://gist.github.com/2filip3/bd8d0f26491572c1cce355e9f7e0d366>)that monitors folder and notifies me when files are changed. I want to notify me on email but I don't want my email to get spammed because the fil...
2017-12-06T10:31:03.000076
Ivonne
pythondev_help_Ivonne_2017-12-06T10:31:03.000076
1,512,556,263.000076
102,441
pythondev
help
It supposed to be running on server 2.7 Python
2017-12-06T10:31:59.000278
Ivonne
pythondev_help_Ivonne_2017-12-06T10:31:59.000278
1,512,556,319.000278
102,442
pythondev
help
I don't understand
2017-12-06T10:33:16.000579
Winnie
pythondev_help_Winnie_2017-12-06T10:33:16.000579
1,512,556,396.000579
102,443
pythondev
help
<@Ivonne> You &gt; notifies me when files are changed but also &gt; I can get notified ONLY when files are NOT CHANGED OR CREATED
2017-12-06T10:33:52.000508
Winnie
pythondev_help_Winnie_2017-12-06T10:33:52.000508
1,512,556,432.000508
102,444
pythondev
help
can you clarify?
2017-12-06T10:34:05.000509
Winnie
pythondev_help_Winnie_2017-12-06T10:34:05.000509
1,512,556,445.000509
102,445
pythondev
help
Yeah sure. Script I am running is monitoring my folder. In that folder i have files tar.gz that are being updated every 5 sec. In my script I get notifications about every change that happens in specified folder. Now, because I wont to get those notifications on email, I need to rewrite script so it doesn't notify on e...
2017-12-06T10:37:08.000824
Ivonne
pythondev_help_Ivonne_2017-12-06T10:37:08.000824
1,512,556,628.000824
102,446
pythondev
help
are these like rolling log files?
2017-12-06T10:38:28.000588
Sirena
pythondev_help_Sirena_2017-12-06T10:38:28.000588
1,512,556,708.000588
102,447
pythondev
help
do you maybe only want a notification when a new file gets created?
2017-12-06T10:38:51.000210
Sirena
pythondev_help_Sirena_2017-12-06T10:38:51.000210
1,512,556,731.00021
102,448
pythondev
help
Sounds like he just wants to be notified when his script crashes
2017-12-06T10:39:17.000394
Scot
pythondev_help_Scot_2017-12-06T10:39:17.000394
1,512,556,757.000394
102,449
pythondev
help
Could just put an atexit handler on the script
2017-12-06T10:42:37.000589
Sirena
pythondev_help_Sirena_2017-12-06T10:42:37.000589
1,512,556,957.000589
102,450
pythondev
help
What happens if the host crashes?
2017-12-06T10:42:56.000202
Scot
pythondev_help_Scot_2017-12-06T10:42:56.000202
1,512,556,976.000202
102,451
pythondev
help
Not saying it's relevant in this case
2017-12-06T10:43:11.000395
Scot
pythondev_help_Scot_2017-12-06T10:43:11.000395
1,512,556,991.000395
102,452
pythondev
help
then the script-monitoring script probably went with it
2017-12-06T10:43:15.000660
Sirena
pythondev_help_Sirena_2017-12-06T10:43:15.000660
1,512,556,995.00066
102,453
pythondev
help
¯\_(ツ)_/¯
2017-12-06T10:43:21.000096
Sirena
pythondev_help_Sirena_2017-12-06T10:43:21.000096
1,512,557,001.000096
102,454
pythondev
help
need a little more specifics if we're going to go down this particular rabbit hole
2017-12-06T10:43:43.000483
Sirena
pythondev_help_Sirena_2017-12-06T10:43:43.000483
1,512,557,023.000483
102,455
pythondev
help
I think it might be easier to use a process manager to monitor the first script
2017-12-06T10:44:28.000443
Ciera
pythondev_help_Ciera_2017-12-06T10:44:28.000443
1,512,557,068.000443
102,456
pythondev
help
than check if files are being created/modified
2017-12-06T10:44:43.000213
Ciera
pythondev_help_Ciera_2017-12-06T10:44:43.000213
1,512,557,083.000213
102,457
pythondev
help
depends on how the first script typically stops working
2017-12-06T10:45:13.000354
Sirena
pythondev_help_Sirena_2017-12-06T10:45:13.000354
1,512,557,113.000354
102,458
pythondev
help
I need to monitor files, not script guys.
2017-12-06T10:55:30.000685
Ivonne
pythondev_help_Ivonne_2017-12-06T10:55:30.000685
1,512,557,730.000685
102,459
pythondev
help
Script can be runing but the server that are downloading files from can be busy or at full capacity so my files wouldn't get updated and changeed
2017-12-06T10:56:30.000161
Ivonne
pythondev_help_Ivonne_2017-12-06T10:56:30.000161
1,512,557,790.000161
102,460
pythondev
help
I just need to modify script which i've put above in the link so it can notifies me when the files are NOT updated
2017-12-06T10:57:13.000762
Ivonne
pythondev_help_Ivonne_2017-12-06T10:57:13.000762
1,512,557,833.000762
102,461
pythondev
help
sounds like you should define the files you want to be notified of updates with a unique prefix or suffix
2017-12-06T10:57:34.000152
Meg
pythondev_help_Meg_2017-12-06T10:57:34.000152
1,512,557,854.000152
102,462
pythondev
help
and your script will check all modified files for that
2017-12-06T10:58:02.000448
Meg
pythondev_help_Meg_2017-12-06T10:58:02.000448
1,512,557,882.000448
102,463
pythondev
help
if it matches, send an email
2017-12-06T10:58:08.000571
Meg
pythondev_help_Meg_2017-12-06T10:58:08.000571
1,512,557,888.000571
102,464
pythondev
help
I am monitoring whole folder, and i can get notifications on every change. Now I just need tomake little change to notifies me when the files are not changing but I don't know how to do that
2017-12-06T11:00:17.000630
Ivonne
pythondev_help_Ivonne_2017-12-06T11:00:17.000630
1,512,558,017.00063
102,465
pythondev
help
use an interval
2017-12-06T11:00:49.000186
Meg
pythondev_help_Meg_2017-12-06T11:00:49.000186
1,512,558,049.000186
102,466
pythondev
help
are you certain there will not be any files there which are _normally_ not changing?
2017-12-06T11:00:55.000127
Sirena
pythondev_help_Sirena_2017-12-06T11:00:55.000127
1,512,558,055.000127
102,467
pythondev
help
check every 30 seconds or so for changes
2017-12-06T11:01:00.000527
Meg
pythondev_help_Meg_2017-12-06T11:01:00.000527
1,512,558,060.000527
102,468
pythondev
help
yah, just stat the files and check for update times more than X seconds old
2017-12-06T11:01:21.000003
Sirena
pythondev_help_Sirena_2017-12-06T11:01:21.000003
1,512,558,081.000003
102,469
pythondev
help
```for file in file_list: if (os.path.getmtime(file) - time.time()) &gt; 30: print 'it has been more than 30 seconds since {} was updated'.format(file)```
2017-12-06T11:05:33.000262
Sirena
pythondev_help_Sirena_2017-12-06T11:05:33.000262
1,512,558,333.000262
102,470
pythondev
help
something like that
2017-12-06T11:05:37.000578
Sirena
pythondev_help_Sirena_2017-12-06T11:05:37.000578
1,512,558,337.000578
102,471
pythondev
help
Well I think this is helpfull but before this I would need to make a function that states whenever the file is created it should be added in the file_list so I can iterate within it. Right?
2017-12-06T11:08:25.000675
Ivonne
pythondev_help_Ivonne_2017-12-06T11:08:25.000675
1,512,558,505.000675
102,472
pythondev
help
I was more looking to find some simple solution to modify watchdog
2017-12-06T11:09:52.000548
Ivonne
pythondev_help_Ivonne_2017-12-06T11:09:52.000548
1,512,558,592.000548
102,473
pythondev
help
script above
2017-12-06T11:09:58.000271
Ivonne
pythondev_help_Ivonne_2017-12-06T11:09:58.000271
1,512,558,598.000271
102,474
pythondev
help
I don't know how many file notification events you were getting before, or how long you want to wait between checking for activity, but this is probably more efficient than the event based system
2017-12-06T11:18:34.000179
Sirena
pythondev_help_Sirena_2017-12-06T11:18:34.000179
1,512,559,114.000179
102,475
pythondev
help
the problem with the watchdog is that any event you get will always be the brand new, so you won't really be able to use it to check how 'stale' a file is unless you add some pretty wacky logic
2017-12-06T11:19:50.000382
Sirena
pythondev_help_Sirena_2017-12-06T11:19:50.000382
1,512,559,190.000382
102,476
pythondev
help
you _could_ use the watchdog to build up your file list and add new files to the list any time you catch a file creation event
2017-12-06T11:20:09.000021
Sirena
pythondev_help_Sirena_2017-12-06T11:20:09.000021
1,512,559,209.000021
102,477
pythondev
help
you could also use something else that is built for watching files. you may be able to configure syncthing’s inotify to watch the folder and hit the syncthing rest api. <https://docs.syncthing.net/dev/events.html>
2017-12-06T11:27:34.000082
Johana
pythondev_help_Johana_2017-12-06T11:27:34.000082
1,512,559,654.000082
102,478
pythondev
help
Is there a jobs board associated with this slack channel?
2017-12-06T12:40:58.000256
Arden
pythondev_help_Arden_2017-12-06T12:40:58.000256
1,512,564,058.000256
102,479
pythondev
help
<#C080T8XT2|job_board>
2017-12-06T12:42:12.000093
Suellen
pythondev_help_Suellen_2017-12-06T12:42:12.000093
1,512,564,132.000093
102,480
pythondev
help
Oh, awesome. Didn't see it listed. Thank you so much.
2017-12-06T12:46:18.000133
Arden
pythondev_help_Arden_2017-12-06T12:46:18.000133
1,512,564,378.000133
102,481
pythondev
help
:slightly_smiling_face:
2017-12-06T12:46:25.000047
Suellen
pythondev_help_Suellen_2017-12-06T12:46:25.000047
1,512,564,385.000047
102,482
pythondev
help
Guys, I have an API client and I want to extend it to track all API calls and keep logs of each call in an SQLite DB. Specifically the _get(), _post(), _put() and _delete() functions in this simple API wrapper <https://github.com/sammchardy/python-kucoin/blob/develop/kucoin/client.py>
2017-12-06T13:45:26.000095
Jama
pythondev_help_Jama_2017-12-06T13:45:26.000095
1,512,567,926.000095
102,483
pythondev
help
Whats the best way of doing that? Can I used decorators on those functions for this? Can decorators interact the variables in the decorated function scope? Or do I have to extend those functions and inject the logging/tracking stuff before the return for each of the functions that call these?
2017-12-06T13:47:39.000023
Jama
pythondev_help_Jama_2017-12-06T13:47:39.000023
1,512,568,059.000023
102,484
pythondev
help
You could create a decorator for sure
2017-12-06T13:58:16.000539
Myong
pythondev_help_Myong_2017-12-06T13:58:16.000539
1,512,568,696.000539
102,485
pythondev
help
You can use a decorator for this
2017-12-06T13:58:18.000851
Suellen
pythondev_help_Suellen_2017-12-06T13:58:18.000851
1,512,568,698.000851
102,486
pythondev
help
Can anyone help a python scrub figure a “simple error” out? I’m trying to import matplotlib (specifically, matplotlib.pyplot) and i’m getting the error ``` ImportError: No module named matplotlib.pyplot ``` I was getting this same error for when I was trying to import numpy, pandas, etc. But I somehow was able to inst...
2017-12-06T13:58:22.000747
Cecille
pythondev_help_Cecille_2017-12-06T13:58:22.000747
1,512,568,702.000747
102,487
pythondev
help
<@Cecille> Are you using a virtual environment
2017-12-06T13:59:25.000215
Myong
pythondev_help_Myong_2017-12-06T13:59:25.000215
1,512,568,765.000215
102,488
pythondev
help
(hopes you’re talking to me)
2017-12-06T14:00:19.000351
Cecille
pythondev_help_Cecille_2017-12-06T14:00:19.000351
1,512,568,819.000351
102,489
pythondev
help
Oh yeah
2017-12-06T14:00:28.000219
Myong
pythondev_help_Myong_2017-12-06T14:00:28.000219
1,512,568,828.000219
102,490
pythondev
help
Idk why it tagged that person lol
2017-12-06T14:00:34.000404
Myong
pythondev_help_Myong_2017-12-06T14:00:34.000404
1,512,568,834.000404
102,491
pythondev
help
N/w hahaha, I am (I think) I’m using jupyter notebook
2017-12-06T14:00:58.000502
Cecille
pythondev_help_Cecille_2017-12-06T14:00:58.000502
1,512,568,858.000502
102,492
pythondev
help
with anaconda?
2017-12-06T14:01:02.000276
Cecille
pythondev_help_Cecille_2017-12-06T14:01:02.000276
1,512,568,862.000276
102,493
pythondev
help
I believe
2017-12-06T14:01:06.000340
Cecille
pythondev_help_Cecille_2017-12-06T14:01:06.000340
1,512,568,866.00034
102,494
pythondev
help
OHHH
2017-12-06T14:01:07.000223
Cecille
pythondev_help_Cecille_2017-12-06T14:01:07.000223
1,512,568,867.000223
102,495
pythondev
help
Do I need to conda install those modules on?
2017-12-06T14:01:19.000523
Cecille
pythondev_help_Cecille_2017-12-06T14:01:19.000523
1,512,568,879.000523
102,496
pythondev
help
<https://stackoverflow.com/questions/38368318/installing-a-pip-package-from-within-a-jupyter-notebook-not-working>
2017-12-06T14:01:58.000446
Myong
pythondev_help_Myong_2017-12-06T14:01:58.000446
1,512,568,918.000446
102,497
pythondev
help
If you're trying to install within a jupyter notebook
2017-12-06T14:02:18.000354
Myong
pythondev_help_Myong_2017-12-06T14:02:18.000354
1,512,568,938.000354
102,498
pythondev
help
Not really sure where in that thread the answer was but I tried the most upvoted and I got the same thing
2017-12-06T14:05:44.000440
Cecille
pythondev_help_Cecille_2017-12-06T14:05:44.000440
1,512,569,144.00044
102,499
pythondev
help
Decorator can work too, but I think it's best to add a couple of lines to _request
2017-12-06T14:19:34.000806
Suellen
pythondev_help_Suellen_2017-12-06T14:19:34.000806
1,512,569,974.000806
102,500
pythondev
help
<@Cecille> Can you explain what your setup is. You say you're using a jupyter notebook correct? So all your code is in the notebook itself, yes?
2017-12-06T14:33:01.000288
Myong
pythondev_help_Myong_2017-12-06T14:33:01.000288
1,512,570,781.000288
102,501
pythondev
help
Yessir
2017-12-06T14:33:23.000020
Cecille
pythondev_help_Cecille_2017-12-06T14:33:23.000020
1,512,570,803.00002
102,502