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
because it doesn't complete
2017-11-05T09:49:40.000014
Ciera
pythondev_help_Ciera_2017-11-05T09:49:40.000014
1,509,875,380.000014
99,303
pythondev
help
it's in a `While True`
2017-11-05T09:49:50.000079
Ciera
pythondev_help_Ciera_2017-11-05T09:49:50.000079
1,509,875,390.000079
99,304
pythondev
help
yeah, but i thought running that async would just let me to proceed
2017-11-05T09:50:32.000074
Tyrone
pythondev_help_Tyrone_2017-11-05T09:50:32.000074
1,509,875,432.000074
99,305
pythondev
help
basically, i have a Bot() class that is doing something with the received message, a TestMachine() class which is generating a lot of bots with random parameters and an Interceptor() class which connects to the socket (so `connect_socket()` is part of Interceptor() ). i don’t want to pass the bot collection to the inte...
2017-11-05T09:51:02.000032
Tyrone
pythondev_help_Tyrone_2017-11-05T09:51:02.000032
1,509,875,462.000032
99,306
pythondev
help
if that makes sense
2017-11-05T09:51:06.000010
Tyrone
pythondev_help_Tyrone_2017-11-05T09:51:06.000010
1,509,875,466.00001
99,307
pythondev
help
if it was js or something i could call the bot on the message receive event, but here i am stuck
2017-11-05T09:52:00.000023
Tyrone
pythondev_help_Tyrone_2017-11-05T09:52:00.000023
1,509,875,520.000023
99,308
pythondev
help
well the interceptor could pass the incoming message to `TestMachine` and that route it to the correct/all bots
2017-11-05T09:52:02.000003
Ciera
pythondev_help_Ciera_2017-11-05T09:52:02.000003
1,509,875,522.000003
99,309
pythondev
help
hum
2017-11-05T09:53:34.000026
Tyrone
pythondev_help_Tyrone_2017-11-05T09:53:34.000026
1,509,875,614.000026
99,310
pythondev
help
that sounds pretty good, stupid me. thanks!
2017-11-05T09:53:43.000100
Tyrone
pythondev_help_Tyrone_2017-11-05T09:53:43.000100
1,509,875,623.0001
99,311
pythondev
help
What is the difference in using _mkdir dirName_ and_ %mkdir dirName_ in jupyter notebook
2017-11-05T10:13:53.000038
Mandie
pythondev_help_Mandie_2017-11-05T10:13:53.000038
1,509,876,833.000038
99,312
pythondev
help
the latter is just an alias for the `mkdir` command
2017-11-05T10:14:45.000044
Meg
pythondev_help_Meg_2017-11-05T10:14:45.000044
1,509,876,885.000044
99,313
pythondev
help
<@Meg> ,so we can use any of them. It won't affect the outcome,right?
2017-11-05T10:17:06.000007
Mandie
pythondev_help_Mandie_2017-11-05T10:17:06.000007
1,509,877,026.000007
99,314
pythondev
help
I think you’re misunderstanding me.. check out <http://ipython.readthedocs.io/en/stable/interactive/magics.html#line-magics> for more info
2017-11-05T10:18:18.000129
Meg
pythondev_help_Meg_2017-11-05T10:18:18.000129
1,509,877,098.000129
99,315
pythondev
help
Now I got it, thanks
2017-11-05T10:23:40.000015
Mandie
pythondev_help_Mandie_2017-11-05T10:23:40.000015
1,509,877,420.000015
99,316
pythondev
help
:thumbsup:
2017-11-05T10:25:59.000071
Meg
pythondev_help_Meg_2017-11-05T10:25:59.000071
1,509,877,559.000071
99,317
pythondev
help
hi….can someone help me figure out how to download a file from S3 to a [something] to store in an array?
2017-11-05T18:38:38.000034
Dexter
pythondev_help_Dexter_2017-11-05T18:38:38.000034
1,509,907,118.000034
99,318
pythondev
help
basically i have an s3 bucket with images, and i want to download all of them and store them in an array
2017-11-05T18:38:57.000011
Dexter
pythondev_help_Dexter_2017-11-05T18:38:57.000011
1,509,907,137.000011
99,319
pythondev
help
and use that array for an opencv face detection engine
2017-11-05T18:39:07.000031
Dexter
pythondev_help_Dexter_2017-11-05T18:39:07.000031
1,509,907,147.000031
99,320
pythondev
help
Anyone has some advice on the following and how to solve this: - There are 2 suppliers for a company with completely different API’s (one is XML over https, the other is WSDL with SOAP) - Each supplier has a set of actions (Push an order, Get order status, Get return, Get Stockcounts). - Each of these actions requires ...
2017-11-05T18:42:20.000050
Casie
pythondev_help_Casie_2017-11-05T18:42:20.000050
1,509,907,340.00005
99,321
pythondev
help
can anyone help me with a simpler one? i want to only call a function once every 5 seconds at the most (within a while loop that’s always running)
2017-11-05T20:31:01.000054
Dexter
pythondev_help_Dexter_2017-11-05T20:31:01.000054
1,509,913,861.000054
99,322
pythondev
help
so i want something like this:
2017-11-05T20:31:06.000033
Dexter
pythondev_help_Dexter_2017-11-05T20:31:06.000033
1,509,913,866.000033
99,323
pythondev
help
```now = curTime() if now - lastTime &gt;=5: do_something() lastTime = now()```
2017-11-05T20:31:58.000113
Dexter
pythondev_help_Dexter_2017-11-05T20:31:58.000113
1,509,913,918.000113
99,324
pythondev
help
how do i set the current date/time into a variable, and then how do i compare two variables to see the difference in seconds between them?
2017-11-05T20:32:31.000188
Dexter
pythondev_help_Dexter_2017-11-05T20:32:31.000188
1,509,913,951.000188
99,325
pythondev
help
<@Dexter> I'm not at my computer so I can't send any examples. But are you using the time library? <https://docs.python.org/2/library/time.html>
2017-11-05T20:37:17.000095
Lory
pythondev_help_Lory_2017-11-05T20:37:17.000095
1,509,914,237.000095
99,326
pythondev
help
<@Bella> ill check that out, thanks!
2017-11-05T21:12:41.000111
Dexter
pythondev_help_Dexter_2017-11-05T21:12:41.000111
1,509,916,361.000111
99,327
pythondev
help
<@Casie> this sounds like a very good use case for Composition
2017-11-05T21:28:21.000131
Marcie
pythondev_help_Marcie_2017-11-05T21:28:21.000131
1,509,917,301.000131
99,328
pythondev
help
Anyone has some advice on the following and how to get data: Do you know the data dump or API for acquiring timezone by geoname_id?
2017-11-06T02:19:00.000121
Jonnie
pythondev_help_Jonnie_2017-11-06T02:19:00.000121
1,509,934,740.000121
99,329
pythondev
help
I see that #general has become <#C07EFBK3R|announcements>. Is <#C07EFMZ1N|help> the general question asking channel now?
2017-11-06T02:44:38.000056
Jama
pythondev_help_Jama_2017-11-06T02:44:38.000056
1,509,936,278.000056
99,330
pythondev
help
<@Jama> Well, the channel description does say "ask anything"... Personally I'd rather be in a channel dedicated to solving code snippets rather than answering large general questions, but that's just like my opinion man
2017-11-06T02:53:31.000024
Scot
pythondev_help_Scot_2017-11-06T02:53:31.000024
1,509,936,811.000024
99,331
pythondev
help
<@Dexter> You could do something like this using time.time()
2017-11-06T03:01:35.000045
Jama
pythondev_help_Jama_2017-11-06T03:01:35.000045
1,509,937,295.000045
99,332
pythondev
help
<@Dexter> Nice, thanks! let me know please when you finished
2017-11-06T05:27:55.000414
Bella
pythondev_help_Bella_2017-11-06T05:27:55.000414
1,509,946,075.000414
99,333
pythondev
help
Hi guys , does anyone know another package apart from scikit-learn to do Random Forest in Python?
2017-11-06T05:45:45.000019
Ronald
pythondev_help_Ronald_2017-11-06T05:45:45.000019
1,509,947,145.000019
99,334
pythondev
help
<@Ronald> not sure about any other package but if you can try <https://machinelearningmastery.com/implement-random-forest-scratch-python/>
2017-11-06T07:18:06.000210
Mandie
pythondev_help_Mandie_2017-11-06T07:18:06.000210
1,509,952,686.00021
99,335
pythondev
help
<@Dexter> if you need to access s3 you should be trying to use the boto3 library.
2017-11-06T09:07:38.000057
Johana
pythondev_help_Johana_2017-11-06T09:07:38.000057
1,509,959,258.000057
99,336
pythondev
help
&gt; pyboto3 &gt; Pythonic Interface for AWS boto3 that gives you autocomplete on every service WHYYYYYY?! WHY THIS IS NOT PRESENT BY DEFAULT IN BOTO3 ITSELF?
2017-11-06T09:09:30.000556
Collette
pythondev_help_Collette_2017-11-06T09:09:30.000556
1,509,959,370.000556
99,337
pythondev
help
boto3 is soooo painful to use because of constant use of ⌘+⇥
2017-11-06T09:10:34.000086
Collette
pythondev_help_Collette_2017-11-06T09:10:34.000086
1,509,959,434.000086
99,338
pythondev
help
between the console and the browser
2017-11-06T09:10:42.000094
Collette
pythondev_help_Collette_2017-11-06T09:10:42.000094
1,509,959,442.000094
99,339
pythondev
help
haha, that’s a good point.
2017-11-06T09:11:15.000203
Johana
pythondev_help_Johana_2017-11-06T09:11:15.000203
1,509,959,475.000203
99,340
pythondev
help
wish they had something similar for st3 ..
2017-11-06T09:15:47.000051
Winnifred
pythondev_help_Winnifred_2017-11-06T09:15:47.000051
1,509,959,747.000051
99,341
pythondev
help
It upsets me that we now have libraries to fix typehinting for other libraries
2017-11-06T09:19:27.000006
Vada
pythondev_help_Vada_2017-11-06T09:19:27.000006
1,509,959,967.000006
99,342
pythondev
help
without actually bringing those changes into the problematic library
2017-11-06T09:19:40.000284
Vada
pythondev_help_Vada_2017-11-06T09:19:40.000284
1,509,959,980.000284
99,343
pythondev
help
I doubt this problematic library will ever be actually fixed.
2017-11-06T09:21:13.000334
Collette
pythondev_help_Collette_2017-11-06T09:21:13.000334
1,509,960,073.000334
99,344
pythondev
help
I understand the aws team's desire to avoid duplication of parameters, responses and documentation duplication
2017-11-06T09:21:51.000358
Collette
pythondev_help_Collette_2017-11-06T09:21:51.000358
1,509,960,111.000358
99,345
pythondev
help
It's much simpler to generate classes and methods from an existing XML schema than to maintain a couple of dozens of fully documented SDKs
2017-11-06T09:23:39.000326
Collette
pythondev_help_Collette_2017-11-06T09:23:39.000326
1,509,960,219.000326
99,346
pythondev
help
is there a specific channel for OpenCV projects, or should I ask here?
2017-11-06T10:03:40.000752
Dexter
pythondev_help_Dexter_2017-11-06T10:03:40.000752
1,509,962,620.000752
99,347
pythondev
help
here is probably best
2017-11-06T10:13:13.000640
Meg
pythondev_help_Meg_2017-11-06T10:13:13.000640
1,509,963,193.00064
99,348
pythondev
help
cool
2017-11-06T10:14:49.000563
Dexter
pythondev_help_Dexter_2017-11-06T10:14:49.000563
1,509,963,289.000563
99,349
pythondev
help
so i’ve got a basic face detection / recognition script
2017-11-06T10:15:01.000699
Dexter
pythondev_help_Dexter_2017-11-06T10:15:01.000699
1,509,963,301.000699
99,350
pythondev
help
and it works great with a webcam
2017-11-06T10:16:16.000094
Dexter
pythondev_help_Dexter_2017-11-06T10:16:16.000094
1,509,963,376.000094
99,351
pythondev
help
it detects all the faces just like it should
2017-11-06T10:16:23.000458
Dexter
pythondev_help_Dexter_2017-11-06T10:16:23.000458
1,509,963,383.000458
99,352
pythondev
help
but for some reason, when using an IP camera feed, it can’t detect anything
2017-11-06T10:16:33.000158
Dexter
pythondev_help_Dexter_2017-11-06T10:16:33.000158
1,509,963,393.000158
99,353
pythondev
help
the feed itself shows up fine in the resulting video window, every frame, every second
2017-11-06T10:16:54.000370
Dexter
pythondev_help_Dexter_2017-11-06T10:16:54.000370
1,509,963,414.00037
99,354
pythondev
help
but it never is able to detect any faces
2017-11-06T10:16:59.000366
Dexter
pythondev_help_Dexter_2017-11-06T10:16:59.000366
1,509,963,419.000366
99,355
pythondev
help
not sure what im doing wrong
2017-11-06T10:17:02.000526
Dexter
pythondev_help_Dexter_2017-11-06T10:17:02.000526
1,509,963,422.000526
99,356
pythondev
help
hmm, can you confirm that the image data is loading in your script?
2017-11-06T10:17:57.000489
Meg
pythondev_help_Meg_2017-11-06T10:17:57.000489
1,509,963,477.000489
99,357
pythondev
help
maybe its coming in as a different format than the webcam?
2017-11-06T10:18:10.000484
Meg
pythondev_help_Meg_2017-11-06T10:18:10.000484
1,509,963,490.000484
99,358
pythondev
help
how do i confirm?
2017-11-06T10:18:28.000141
Dexter
pythondev_help_Dexter_2017-11-06T10:18:28.000141
1,509,963,508.000141
99,359
pythondev
help
here are the relevant lines
2017-11-06T10:19:07.000726
Dexter
pythondev_help_Dexter_2017-11-06T10:19:07.000726
1,509,963,547.000726
99,360
pythondev
help
logging
2017-11-06T10:19:09.000553
Meg
pythondev_help_Meg_2017-11-06T10:19:09.000553
1,509,963,549.000553
99,361
pythondev
help
debugger
2017-11-06T10:19:13.000381
Meg
pythondev_help_Meg_2017-11-06T10:19:13.000381
1,509,963,553.000381
99,362
pythondev
help
or try recognizing somethign other than a face
2017-11-06T10:19:19.000230
Sirena
pythondev_help_Sirena_2017-11-06T10:19:19.000230
1,509,963,559.00023
99,363
pythondev
help
`video_capture = cv2.VideoCapture("<http://192.168.1.2/axis-cgi/mjpg/video.cgi>")`
2017-11-06T10:19:19.000613
Dexter
pythondev_help_Dexter_2017-11-06T10:19:19.000613
1,509,963,559.000613
99,364
pythondev
help
```while True: # Grab a single frame of video ret, frame = video_capture.read() # Resize frame of video to 1/4 size for faster face recognition processing small_frame = cv2.resize(frame, (0, 0), fx=0.25, fy=0.25) # Only process every other frame of video to save time if process_this_frame: ...
2017-11-06T10:19:35.000112
Dexter
pythondev_help_Dexter_2017-11-06T10:19:35.000112
1,509,963,575.000112
99,365
pythondev
help
what should i output?
2017-11-06T10:19:44.000295
Dexter
pythondev_help_Dexter_2017-11-06T10:19:44.000295
1,509,963,584.000295
99,366
pythondev
help
because this `cv2.imshow('Video', frame)` outputs the feed to my screen, and it looks fine
2017-11-06T10:20:01.000788
Dexter
pythondev_help_Dexter_2017-11-06T10:20:01.000788
1,509,963,601.000788
99,367
pythondev
help
i see everything i expect to see
2017-11-06T10:20:07.000035
Dexter
pythondev_help_Dexter_2017-11-06T10:20:07.000035
1,509,963,607.000035
99,368
pythondev
help
(meaning, the video feed)
2017-11-06T10:20:23.000195
Dexter
pythondev_help_Dexter_2017-11-06T10:20:23.000195
1,509,963,623.000195
99,369
pythondev
help
hmm
2017-11-06T10:20:55.000024
Meg
pythondev_help_Meg_2017-11-06T10:20:55.000024
1,509,963,655.000024
99,370
pythondev
help
so, does that url require any kind of login?
2017-11-06T10:21:05.000612
Meg
pythondev_help_Meg_2017-11-06T10:21:05.000612
1,509,963,665.000612
99,371
pythondev
help
or is it password protected?
2017-11-06T10:21:10.000344
Meg
pythondev_help_Meg_2017-11-06T10:21:10.000344
1,509,963,670.000344
99,372
pythondev
help
nope….
2017-11-06T10:21:12.000031
Dexter
pythondev_help_Dexter_2017-11-06T10:21:12.000031
1,509,963,672.000031
99,373
pythondev
help
and when the script is running, there’s a cv2 window that’s open, and it shows the feed from the camera perfectly
2017-11-06T10:21:29.000539
Dexter
pythondev_help_Dexter_2017-11-06T10:21:29.000539
1,509,963,689.000539
99,374
pythondev
help
it just never seems to detect any faces
2017-11-06T10:21:41.000390
Dexter
pythondev_help_Dexter_2017-11-06T10:21:41.000390
1,509,963,701.00039
99,375
pythondev
help
interesting
2017-11-06T10:21:43.000414
Meg
pythondev_help_Meg_2017-11-06T10:21:43.000414
1,509,963,703.000414
99,376
pythondev
help
and when i switch the feed to be my webcam, the exact same application works perfectly
2017-11-06T10:21:59.000260
Dexter
pythondev_help_Dexter_2017-11-06T10:21:59.000260
1,509,963,719.00026
99,377
pythondev
help
do you know how to debug python?
2017-11-06T10:21:59.000564
Meg
pythondev_help_Meg_2017-11-06T10:21:59.000564
1,509,963,719.000564
99,378
pythondev
help
not so much, im just getting started
2017-11-06T10:22:10.000583
Dexter
pythondev_help_Dexter_2017-11-06T10:22:10.000583
1,509,963,730.000583
99,379
pythondev
help
should i get pycharm?
2017-11-06T10:22:16.000139
Dexter
pythondev_help_Dexter_2017-11-06T10:22:16.000139
1,509,963,736.000139
99,380
pythondev
help
what I suspect is the feed from the IP camera is different in some way from the web camera
2017-11-06T10:22:45.000210
Meg
pythondev_help_Meg_2017-11-06T10:22:45.000210
1,509,963,765.00021
99,381
pythondev
help
the cv2 window showing the feed probably knows how to handle the difference
2017-11-06T10:23:06.000342
Meg
pythondev_help_Meg_2017-11-06T10:23:06.000342
1,509,963,786.000342
99,382
pythondev
help
but the face detection script doesn’t
2017-11-06T10:23:14.000601
Meg
pythondev_help_Meg_2017-11-06T10:23:14.000601
1,509,963,794.000601
99,383
pythondev
help
hmmm
2017-11-06T10:23:41.000159
Dexter
pythondev_help_Dexter_2017-11-06T10:23:41.000159
1,509,963,821.000159
99,384
pythondev
help
so, in this case, an IDE with a debugger would probably help
2017-11-06T10:23:46.000079
Meg
pythondev_help_Meg_2017-11-06T10:23:46.000079
1,509,963,826.000079
99,385
pythondev
help
interesting…..is there a way to convert the “read” frame into some other format?
2017-11-06T10:23:54.000568
Dexter
pythondev_help_Dexter_2017-11-06T10:23:54.000568
1,509,963,834.000568
99,386
pythondev
help
short of that, put in logging statements in your face detector code
2017-11-06T10:23:56.000378
Meg
pythondev_help_Meg_2017-11-06T10:23:56.000378
1,509,963,836.000378
99,387
pythondev
help
can u recommend an ide?
2017-11-06T10:24:00.000407
Dexter
pythondev_help_Dexter_2017-11-06T10:24:00.000407
1,509,963,840.000407
99,388
pythondev
help
I like pycharm, and think you would get by fine with the free version
2017-11-06T10:24:14.000613
Meg
pythondev_help_Meg_2017-11-06T10:24:14.000613
1,509,963,854.000613
99,389
pythondev
help
and as far as conversions, you would have to dig in the opencv documentation for that
2017-11-06T10:24:41.000484
Meg
pythondev_help_Meg_2017-11-06T10:24:41.000484
1,509,963,881.000484
99,390
pythondev
help
if you don't want to jump into an IDE right this moment, you can also insert python debugger statements and debug on the cmd line, if that somehow sounds preferable to you
2017-11-06T10:25:52.000353
Sirena
pythondev_help_Sirena_2017-11-06T10:25:52.000353
1,509,963,952.000353
99,391
pythondev
help
otherwise, I second <@Meg>'s vote for pycharm
2017-11-06T10:26:14.000177
Sirena
pythondev_help_Sirena_2017-11-06T10:26:14.000177
1,509,963,974.000177
99,392
pythondev
help
ipdb is a good interactive debugger
2017-11-06T10:27:26.000086
Ciera
pythondev_help_Ciera_2017-11-06T10:27:26.000086
1,509,964,046.000086
99,393
pythondev
help
k…setting up pycharm now
2017-11-06T10:27:28.000253
Dexter
pythondev_help_Dexter_2017-11-06T10:27:28.000253
1,509,964,048.000253
99,394
pythondev
help
in cmd line
2017-11-06T10:27:31.000166
Ciera
pythondev_help_Ciera_2017-11-06T10:27:31.000166
1,509,964,051.000166
99,395
pythondev
help
will try the breakpoint on the read, and see if i can determine the frame format
2017-11-06T10:27:39.000166
Dexter
pythondev_help_Dexter_2017-11-06T10:27:39.000166
1,509,964,059.000166
99,396
pythondev
help
standby
2017-11-06T10:27:40.000458
Dexter
pythondev_help_Dexter_2017-11-06T10:27:40.000458
1,509,964,060.000458
99,397
pythondev
help
how do i add a python interpreter
2017-11-06T10:29:21.000402
Dexter
pythondev_help_Dexter_2017-11-06T10:29:21.000402
1,509,964,161.000402
99,398
pythondev
help
in the build configuration
2017-11-06T10:29:26.000291
Dexter
pythondev_help_Dexter_2017-11-06T10:29:26.000291
1,509,964,166.000291
99,399
pythondev
help
the dropdown is empty and i can’t see where to add anything
2017-11-06T10:29:32.000003
Dexter
pythondev_help_Dexter_2017-11-06T10:29:32.000003
1,509,964,172.000003
99,400
pythondev
help
nvm i got it
2017-11-06T10:30:55.000253
Dexter
pythondev_help_Dexter_2017-11-06T10:30:55.000253
1,509,964,255.000253
99,401
pythondev
help
ok
2017-11-06T10:34:23.000548
Dexter
pythondev_help_Dexter_2017-11-06T10:34:23.000548
1,509,964,463.000548
99,402