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
and if you have any trouble ask for assistance and show what you already have
2017-08-19T06:35:23.000059
Suellen
pythondev_help_Suellen_2017-08-19T06:35:23.000059
1,503,124,523.000059
90,203
pythondev
help
How can I build a pip freeze for a certain project not all what's installed in my environment?
2017-08-19T08:14:03.000028
Gertude
pythondev_help_Gertude_2017-08-19T08:14:03.000028
1,503,130,443.000028
90,204
pythondev
help
<@Gertude> create a virtualenv, install your requirements and run pip freeze
2017-08-19T08:17:35.000021
Marcie
pythondev_help_Marcie_2017-08-19T08:17:35.000021
1,503,130,655.000021
90,205
pythondev
help
<@Marcie> Thank you, already started a project without a virtualenv :disappointed:
2017-08-19T08:18:15.000026
Gertude
pythondev_help_Gertude_2017-08-19T08:18:15.000026
1,503,130,695.000026
90,206
pythondev
help
<@Gertude> you can fix that!
2017-08-19T08:29:12.000042
Beula
pythondev_help_Beula_2017-08-19T08:29:12.000042
1,503,131,352.000042
90,207
pythondev
help
<@Beula> Thank you, I did by just removing all what I don't know manually with a text editor.
2017-08-19T08:29:44.000028
Gertude
pythondev_help_Gertude_2017-08-19T08:29:44.000028
1,503,131,384.000028
90,208
pythondev
help
Hello. I need help with tensorflow. I have a bottle server that sends an image to a tensorflow script which categorizes the image
2017-08-19T13:16:18.000077
Prudence
pythondev_help_Prudence_2017-08-19T13:16:18.000077
1,503,148,578.000077
90,209
pythondev
help
After I send images around 5 or 10 times, it starts slowing down. The performance decreases a lot. The first time, the script runs in 1 second, and by the fifth or tenth time, it takes almost more than one minute.
2017-08-19T13:16:31.000007
Prudence
pythondev_help_Prudence_2017-08-19T13:16:31.000007
1,503,148,591.000007
90,210
pythondev
help
This is the code that I use to categorize the images using tensorflow
2017-08-19T13:17:27.000080
Prudence
pythondev_help_Prudence_2017-08-19T13:17:27.000080
1,503,148,647.00008
90,211
pythondev
help
And that is the code that I use to run the server
2017-08-19T13:18:12.000059
Prudence
pythondev_help_Prudence_2017-08-19T13:18:12.000059
1,503,148,692.000059
90,212
pythondev
help
This is the line that slows down after many images: `predictions = sess.run(softmax_tensor, {'DecodeJpeg/contents:0': image_data})`
2017-08-19T13:19:14.000084
Prudence
pythondev_help_Prudence_2017-08-19T13:19:14.000084
1,503,148,754.000084
90,213
pythondev
help
How can I improve performance?
2017-08-19T13:19:38.000042
Prudence
pythondev_help_Prudence_2017-08-19T13:19:38.000042
1,503,148,778.000042
90,214
pythondev
help
what are your server specs (ram, cpu)? How often are images sent to tensorflow?
2017-08-19T13:21:47.000114
Meg
pythondev_help_Meg_2017-08-19T13:21:47.000114
1,503,148,907.000114
90,215
pythondev
help
4GB Ram, 2 cores 1.8GHz. Right now, I'm sending the images myself through postman so it is not something specific, but I tried sending one image, wait until I get a result, I give it 5 extra seconds, and then send another image
2017-08-19T13:25:43.000045
Prudence
pythondev_help_Prudence_2017-08-19T13:25:43.000045
1,503,149,143.000045
90,216
pythondev
help
The first 5 times it gives a result in one or two seconds, then it starts slowing down
2017-08-19T13:27:47.000047
Prudence
pythondev_help_Prudence_2017-08-19T13:27:47.000047
1,503,149,267.000047
90,217
pythondev
help
I wonder if there’s a memory leak
2017-08-19T13:29:40.000077
Meg
pythondev_help_Meg_2017-08-19T13:29:40.000077
1,503,149,380.000077
90,218
pythondev
help
and more resources are being used, specifically ram
2017-08-19T13:29:57.000060
Meg
pythondev_help_Meg_2017-08-19T13:29:57.000060
1,503,149,397.00006
90,219
pythondev
help
also, with your tf script, move the import outside the `recognize` function
2017-08-19T13:31:16.000066
Meg
pythondev_help_Meg_2017-08-19T13:31:16.000066
1,503,149,476.000066
90,220
pythondev
help
because its a wasted import each time
2017-08-19T13:31:24.000096
Meg
pythondev_help_Meg_2017-08-19T13:31:24.000096
1,503,149,484.000096
90,221
pythondev
help
Is there a python module to profile that?
2017-08-19T13:31:55.000063
Prudence
pythondev_help_Prudence_2017-08-19T13:31:55.000063
1,503,149,515.000063
90,222
pythondev
help
its a code smell
2017-08-19T13:33:41.000011
Meg
pythondev_help_Meg_2017-08-19T13:33:41.000011
1,503,149,621.000011
90,223
pythondev
help
only import modules in a function if you really need it locally and it costs alot to import
2017-08-19T13:34:04.000015
Meg
pythondev_help_Meg_2017-08-19T13:34:04.000015
1,503,149,644.000015
90,224
pythondev
help
I mean a module to profile the allocated memory
2017-08-19T13:34:48.000046
Prudence
pythondev_help_Prudence_2017-08-19T13:34:48.000046
1,503,149,688.000046
90,225
pythondev
help
<https://docs.python.org/3.6/library/profile.html>
2017-08-19T13:34:58.000097
Meg
pythondev_help_Meg_2017-08-19T13:34:58.000097
1,503,149,698.000097
90,226
pythondev
help
I'll run it and hope to find the problem
2017-08-19T13:37:28.000117
Prudence
pythondev_help_Prudence_2017-08-19T13:37:28.000117
1,503,149,848.000117
90,227
pythondev
help
do you know if tf.session is actually releasing your mem?
2017-08-19T13:37:43.000038
Winnifred
pythondev_help_Winnifred_2017-08-19T13:37:43.000038
1,503,149,863.000038
90,228
pythondev
help
that’s a good question
2017-08-19T13:38:06.000039
Meg
pythondev_help_Meg_2017-08-19T13:38:06.000039
1,503,149,886.000039
90,229
pythondev
help
beautifulsoup has a bug, that with a context manager like that, it still doesn’t release memory if used in a loop 1000-1500 items long
2017-08-19T13:38:32.000037
Meg
pythondev_help_Meg_2017-08-19T13:38:32.000037
1,503,149,912.000037
90,230
pythondev
help
I assumed it does, since it's the recommended way according to tensorflow documentation. I'll try closing it manually
2017-08-19T13:39:04.000038
Prudence
pythondev_help_Prudence_2017-08-19T13:39:04.000038
1,503,149,944.000038
90,231
pythondev
help
i would check github and see if this is an issue
2017-08-19T13:39:10.000023
Winnifred
pythondev_help_Winnifred_2017-08-19T13:39:10.000023
1,503,149,950.000023
90,232
pythondev
help
ok, so are you using a dev server for this or guicorn/wsgi?
2017-08-19T14:10:36.000025
Meg
pythondev_help_Meg_2017-08-19T14:10:36.000025
1,503,151,836.000025
90,233
pythondev
help
eg, bottle/flask dev server
2017-08-19T14:10:48.000026
Meg
pythondev_help_Meg_2017-08-19T14:10:48.000026
1,503,151,848.000026
90,234
pythondev
help
I'm using bottle
2017-08-19T14:11:10.000034
Prudence
pythondev_help_Prudence_2017-08-19T14:11:10.000034
1,503,151,870.000034
90,235
pythondev
help
yes
2017-08-19T14:12:14.000034
Meg
pythondev_help_Meg_2017-08-19T14:12:14.000034
1,503,151,934.000034
90,236
pythondev
help
but the dev server, eg command line start utility, or nginx/apache with gunicorn/wsgi?
2017-08-19T14:12:36.000014
Meg
pythondev_help_Meg_2017-08-19T14:12:36.000014
1,503,151,956.000014
90,237
pythondev
help
becuase if this is on your local machine with zero prduction configuration, its either your machine or a memory leak
2017-08-19T14:16:09.000050
Meg
pythondev_help_Meg_2017-08-19T14:16:09.000050
1,503,152,169.00005
90,238
pythondev
help
Dev server I think, I'm running it from command line
2017-08-19T14:16:11.000015
Prudence
pythondev_help_Prudence_2017-08-19T14:16:11.000015
1,503,152,171.000015
90,239
pythondev
help
alright
2017-08-19T14:16:18.000037
Meg
pythondev_help_Meg_2017-08-19T14:16:18.000037
1,503,152,178.000037
90,240
pythondev
help
what happens when you wait one minute in between
2017-08-19T14:16:34.000062
Meg
pythondev_help_Meg_2017-08-19T14:16:34.000062
1,503,152,194.000062
90,241
pythondev
help
and run `top` to see what your system’s free memory looks like during that time
2017-08-19T14:17:03.000043
Meg
pythondev_help_Meg_2017-08-19T14:17:03.000043
1,503,152,223.000043
90,242
pythondev
help
When I waited on minute after receiving a result, it was almost the same, it was eventually taking more time to get a result. Free memory sometimes decreased a lot when I sent data, and sometimes it decreased just a little, but eventually I had less free memory
2017-08-19T14:59:54.000046
Prudence
pythondev_help_Prudence_2017-08-19T14:59:54.000046
1,503,154,794.000046
90,243
pythondev
help
I tried not using anymore the context manager, and instead I used `sess = tf.Session()` and `sess.close()` to close it, but I had the same results
2017-08-19T15:01:59.000083
Prudence
pythondev_help_Prudence_2017-08-19T15:01:59.000083
1,503,154,919.000083
90,244
pythondev
help
what size are the images?
2017-08-19T15:05:47.000061
Winnifred
pythondev_help_Winnifred_2017-08-19T15:05:47.000061
1,503,155,147.000061
90,245
pythondev
help
18kb
2017-08-19T15:06:16.000022
Prudence
pythondev_help_Prudence_2017-08-19T15:06:16.000022
1,503,155,176.000022
90,246
pythondev
help
have you tried this not using bottle?
2017-08-19T15:17:27.000014
Winnifred
pythondev_help_Winnifred_2017-08-19T15:17:27.000014
1,503,155,847.000014
90,247
pythondev
help
No, do you think bottle could be the problem?
2017-08-19T15:18:12.000027
Prudence
pythondev_help_Prudence_2017-08-19T15:18:12.000027
1,503,155,892.000027
90,248
pythondev
help
no, it shouldn’t
2017-08-19T15:19:35.000001
Meg
pythondev_help_Meg_2017-08-19T15:19:35.000001
1,503,155,975.000001
90,249
pythondev
help
but would be interesting if you can run this code standalone with an image
2017-08-19T15:19:47.000006
Meg
pythondev_help_Meg_2017-08-19T15:19:47.000006
1,503,155,987.000006
90,250
pythondev
help
take the web server out of the equation and test with just tensorflow
2017-08-19T15:19:58.000001
Meg
pythondev_help_Meg_2017-08-19T15:19:58.000001
1,503,155,998.000001
90,251
pythondev
help
would give clues to which direction you should go into
2017-08-19T15:20:18.000021
Meg
pythondev_help_Meg_2017-08-19T15:20:18.000021
1,503,156,018.000021
90,252
pythondev
help
I don’t really know. I’m trying to isolate issue.
2017-08-19T15:20:25.000094
Winnifred
pythondev_help_Winnifred_2017-08-19T15:20:25.000094
1,503,156,025.000094
90,253
pythondev
help
I tried two things, first I called the function to categorize in a loop, and got same result, by the 5th time it was slowing down. Then I tried to call in a loop my code to categorize as if from the command line, using `os.system("python label_image.py image.jpg")` and it worked, it always took around 2 seconds. So, does that mean that it is a memory problem? Or perhaps something when I import tensorflow
2017-08-19T15:41:16.000014
Prudence
pythondev_help_Prudence_2017-08-19T15:41:16.000014
1,503,157,276.000014
90,254
pythondev
help
does travis-ci support any kind of test that requires a database?
2017-08-19T15:45:56.000031
Tandra
pythondev_help_Tandra_2017-08-19T15:45:56.000031
1,503,157,556.000031
90,255
pythondev
help
you can request some services to be present
2017-08-19T15:47:12.000010
Ciera
pythondev_help_Ciera_2017-08-19T15:47:12.000010
1,503,157,632.00001
90,256
pythondev
help
I suppose mysql/postgres should be one of them
2017-08-19T15:47:20.000091
Ciera
pythondev_help_Ciera_2017-08-19T15:47:20.000091
1,503,157,640.000091
90,257
pythondev
help
also is it recommended to test for returns from a sqlalchemy query&gt;?
2017-08-19T15:47:25.000049
Tandra
pythondev_help_Tandra_2017-08-19T15:47:25.000049
1,503,157,645.000049
90,258
pythondev
help
I would
2017-08-19T15:48:26.000052
Meg
pythondev_help_Meg_2017-08-19T15:48:26.000052
1,503,157,706.000052
90,259
pythondev
help
<@Prudence> have you pulled the tensorflow import outside of the function?
2017-08-19T15:49:00.000017
Meg
pythondev_help_Meg_2017-08-19T15:49:00.000017
1,503,157,740.000017
90,260
pythondev
help
cheers :+1:
2017-08-19T15:49:14.000017
Tandra
pythondev_help_Tandra_2017-08-19T15:49:14.000017
1,503,157,754.000017
90,261
pythondev
help
Yes, it is at the beginning of the file
2017-08-19T15:49:41.000015
Prudence
pythondev_help_Prudence_2017-08-19T15:49:41.000015
1,503,157,781.000015
90,262
pythondev
help
ah `<http://travis.ci|travis.ci>` is an actual domain :smile:
2017-08-19T15:50:27.000027
Ciera
pythondev_help_Ciera_2017-08-19T15:50:27.000027
1,503,157,827.000027
90,263
pythondev
help
yeah thats just weird
2017-08-19T15:50:35.000036
Tandra
pythondev_help_Tandra_2017-08-19T15:50:35.000036
1,503,157,835.000036
90,264
pythondev
help
maybe they plan to migrate there
2017-08-19T15:50:45.000003
Ciera
pythondev_help_Ciera_2017-08-19T15:50:45.000003
1,503,157,845.000003
90,265
pythondev
help
it's for cote d'ivoire
2017-08-19T15:51:16.000002
Ciera
pythondev_help_Ciera_2017-08-19T15:51:16.000002
1,503,157,876.000002
90,266
pythondev
help
<https://github.com/tensorflow/tensorflow/issues/10408>
2017-08-19T15:51:31.000015
Meg
pythondev_help_Meg_2017-08-19T15:51:31.000015
1,503,157,891.000015
90,267
pythondev
help
<@Prudence>
2017-08-19T15:51:38.000005
Meg
pythondev_help_Meg_2017-08-19T15:51:38.000005
1,503,157,898.000005
90,268
pythondev
help
oh, country TLD
2017-08-19T15:51:57.000007
Meg
pythondev_help_Meg_2017-08-19T15:51:57.000007
1,503,157,917.000007
90,269
pythondev
help
LoL, spot on <@Meg>
2017-08-19T15:52:28.000025
Winnifred
pythondev_help_Winnifred_2017-08-19T15:52:28.000025
1,503,157,948.000025
90,270
pythondev
help
one does what one can :smile:
2017-08-19T15:53:15.000028
Meg
pythondev_help_Meg_2017-08-19T15:53:15.000028
1,503,157,995.000028
90,271
pythondev
help
That solved the problem :grinning: I had to use `with tf.Graph().as_default(), tf.Session() as sess:` instead of two separate contexts. Thank you <@Meg> <@Winnifred>
2017-08-19T16:06:21.000078
Prudence
pythondev_help_Prudence_2017-08-19T16:06:21.000078
1,503,158,781.000078
90,272
pythondev
help
quick question about git. After my initial git add . Do I need to add anything next time I want to commit and push something?
2017-08-19T18:01:26.000029
Gisela
pythondev_help_Gisela_2017-08-19T18:01:26.000029
1,503,165,686.000029
90,273
pythondev
help
Because I'm in my local repository, the git commit command would notice changes and add them to be pushed, right? :slightly_smiling_face:
2017-08-19T18:02:08.000067
Gisela
pythondev_help_Gisela_2017-08-19T18:02:08.000067
1,503,165,728.000067
90,274
pythondev
help
git add every time you want to commit and push something
2017-08-19T18:02:08.000106
Virginia
pythondev_help_Virginia_2017-08-19T18:02:08.000106
1,503,165,728.000106
90,275
pythondev
help
That's how I do mine... :slightly_smiling_face:
2017-08-19T18:02:31.000032
Virginia
pythondev_help_Virginia_2017-08-19T18:02:31.000032
1,503,165,751.000032
90,276
pythondev
help
ok ok :slightly_smiling_face: Do you use add . or add specific files/folders?
2017-08-19T18:02:48.000049
Gisela
pythondev_help_Gisela_2017-08-19T18:02:48.000049
1,503,165,768.000049
90,277
pythondev
help
I might do too many changes before I commit them so I end up doing git add . because I can't keep track of eveything. Kinda defeats the purpose of git.. :stuck_out_tongue:
2017-08-19T18:03:44.000021
Gisela
pythondev_help_Gisela_2017-08-19T18:03:44.000021
1,503,165,824.000021
90,278
pythondev
help
add what you're working on
2017-08-19T18:03:46.000043
Tandra
pythondev_help_Tandra_2017-08-19T18:03:46.000043
1,503,165,826.000043
90,279
pythondev
help
Thanks vulgar. I'll do that in the future. No very experiences with git yet.
2017-08-19T18:04:28.000040
Gisela
pythondev_help_Gisela_2017-08-19T18:04:28.000040
1,503,165,868.00004
90,280
pythondev
help
not*
2017-08-19T18:04:30.000067
Gisela
pythondev_help_Gisela_2017-08-19T18:04:30.000067
1,503,165,870.000067
90,281
pythondev
help
if you don't wait 3 months to commit it's ok :troll: :smile:
2017-08-19T18:04:36.000019
Ciera
pythondev_help_Ciera_2017-08-19T18:04:36.000019
1,503,165,876.000019
90,282
pythondev
help
if you're using github <https://desktop.github.com/> makes it rather simple
2017-08-19T18:04:54.000084
Tandra
pythondev_help_Tandra_2017-08-19T18:04:54.000084
1,503,165,894.000084
90,283
pythondev
help
plenty of gui clients for git though which help
2017-08-19T18:05:14.000021
Tandra
pythondev_help_Tandra_2017-08-19T18:05:14.000021
1,503,165,914.000021
90,284
pythondev
help
the pycharm integration is also :thumbsup:
2017-08-19T18:05:18.000105
Ciera
pythondev_help_Ciera_2017-08-19T18:05:18.000105
1,503,165,918.000105
90,285
pythondev
help
Thanks. :slightly_smiling_face: I'll check it out. Yeah, I'm using pycharm so I'll definitely do that.
2017-08-19T18:05:43.000001
Gisela
pythondev_help_Gisela_2017-08-19T18:05:43.000001
1,503,165,943.000001
90,286
pythondev
help
Hi guys
2017-08-20T04:06:37.000006
Bette
pythondev_help_Bette_2017-08-20T04:06:37.000006
1,503,201,997.000006
90,287
pythondev
help
I have a text file with 6000 email ids
2017-08-20T04:06:50.000050
Bette
pythondev_help_Bette_2017-08-20T04:06:50.000050
1,503,202,010.00005
90,288
pythondev
help
My problem is the file is like this <http://www.website.com|www.website.com> <mailto:[email protected]|[email protected]>
2017-08-20T04:07:36.000022
Bette
pythondev_help_Bette_2017-08-20T04:07:36.000022
1,503,202,056.000022
90,289
pythondev
help
I want to remove all website names and would like to keep email ids
2017-08-20T04:08:08.000028
Bette
pythondev_help_Bette_2017-08-20T04:08:08.000028
1,503,202,088.000028
90,290
pythondev
help
Any idea how i can get it done
2017-08-20T04:08:27.000036
Bette
pythondev_help_Bette_2017-08-20T04:08:27.000036
1,503,202,107.000036
90,291
pythondev
help
You could do that with some regex magic.. assuming you have a reliable pattern that you can match, then transform the data to exclude the websites and format the emails however you like
2017-08-20T04:10:57.000021
Reanna
pythondev_help_Reanna_2017-08-20T04:10:57.000021
1,503,202,257.000021
90,292
pythondev
help
Can you upload a screenshot of your dataset
2017-08-20T05:27:52.000017
Kevin
pythondev_help_Kevin_2017-08-20T05:27:52.000017
1,503,206,872.000017
90,293
pythondev
help
If all the website names are at odd places.. Then simply remove those line if they don't have anything else in them.. Make a copy of dataset before experiment..
2017-08-20T05:28:57.000034
Kevin
pythondev_help_Kevin_2017-08-20T05:28:57.000034
1,503,206,937.000034
90,294
pythondev
help
All website names were beginning with www. So I just want to match those lines and delete it
2017-08-20T05:55:21.000038
Bette
pythondev_help_Bette_2017-08-20T05:55:21.000038
1,503,208,521.000038
90,295
pythondev
help
<@Reanna> Like u said it seems I need to use regular expression
2017-08-20T05:56:09.000070
Bette
pythondev_help_Bette_2017-08-20T05:56:09.000070
1,503,208,569.00007
90,296
pythondev
help
Quick CSS question. Excuse the lingo, I'm a total css beginner. I got a div: ```&lt;div class="col-md-4"&gt; ... some content. &lt;/div&gt;``` It has the css tag ```.col-md-4 { position: relative; width: 100%; min-height: 1px; padding-right: 15px; padding-left: 15px; }``` I want to add padding-top: 15px without modifying the "original" or global .col-md-4 css. How do I add to that class (?) a top padding on just one instance on my index page?
2017-08-20T07:07:50.000016
Gisela
pythondev_help_Gisela_2017-08-20T07:07:50.000016
1,503,212,870.000016
90,297
pythondev
help
tips: user backticks ` or triple backticks ``` around code for nicer formatting in slack :slightly_smiling_face:
2017-08-20T07:08:51.000041
Ciera
pythondev_help_Ciera_2017-08-20T07:08:51.000041
1,503,212,931.000041
90,298
pythondev
help
Thanks. tried that but I think i used the wrong 'character'
2017-08-20T07:09:17.000010
Gisela
pythondev_help_Gisela_2017-08-20T07:09:17.000010
1,503,212,957.00001
90,299
pythondev
help
yep. Have to find it on my keyboard. Sec :9
2017-08-20T07:09:28.000023
Gisela
pythondev_help_Gisela_2017-08-20T07:09:28.000023
1,503,212,968.000023
90,300
pythondev
help
for your question the idea would be to create a second class just for `padding-top` and add this to the element classes
2017-08-20T07:09:59.000025
Ciera
pythondev_help_Ciera_2017-08-20T07:09:59.000025
1,503,212,999.000025
90,301
pythondev
help
but I'm no css expert
2017-08-20T07:10:05.000007
Ciera
pythondev_help_Ciera_2017-08-20T07:10:05.000007
1,503,213,005.000007
90,302