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
How do I build with nginx image that has already been pulled?
2017-07-14T22:03:57.659740
Deedee
pythondev_help_Deedee_2017-07-14T22:03:57.659740
1,500,069,837.65974
85,303
pythondev
help
`FROM <http://docker.io/nginx:stable-alpine|docker.io/nginx:stable-alpine>`
2017-07-14T22:04:47.664185
Rickey
pythondev_help_Rickey_2017-07-14T22:04:47.664185
1,500,069,887.664185
85,304
pythondev
help
the whole repo-name?
2017-07-14T22:05:20.666940
Deedee
pythondev_help_Deedee_2017-07-14T22:05:20.666940
1,500,069,920.66694
85,305
pythondev
help
ok
2017-07-14T22:05:21.667031
Deedee
pythondev_help_Deedee_2017-07-14T22:05:21.667031
1,500,069,921.667031
85,306
pythondev
help
nice!
2017-07-14T22:07:18.676426
Deedee
pythondev_help_Deedee_2017-07-14T22:07:18.676426
1,500,070,038.676426
85,307
pythondev
help
one last questions
2017-07-14T22:07:22.676701
Deedee
pythondev_help_Deedee_2017-07-14T22:07:22.676701
1,500,070,042.676701
85,308
pythondev
help
`COPY /home/lex/Development/` is in Dockerfile Produces ``` Step 3/3 : COPY /home/lex/Development/Web /usr/share/nginx/html lstat home/lex/Development/Web: no such file or directory ```
2017-07-14T22:09:16.686107
Deedee
pythondev_help_Deedee_2017-07-14T22:09:16.686107
1,500,070,156.686107
85,309
pythondev
help
directory exists
2017-07-14T22:09:44.688218
Deedee
pythondev_help_Deedee_2017-07-14T22:09:44.688218
1,500,070,184.688218
85,310
pythondev
help
just noticed that what is in `COPY` is correct, but different from what error shows. Missing `/` at begining
2017-07-14T22:12:10.699541
Deedee
pythondev_help_Deedee_2017-07-14T22:12:10.699541
1,500,070,330.699541
85,311
pythondev
help
a `VOLUME` is a better option
2017-07-14T22:17:22.724440
Rickey
pythondev_help_Rickey_2017-07-14T22:17:22.724440
1,500,070,642.72444
85,312
pythondev
help
was just reading that... `-v` right?
2017-07-14T22:17:37.725553
Deedee
pythondev_help_Deedee_2017-07-14T22:17:37.725553
1,500,070,657.725553
85,313
pythondev
help
oh... VOLUME in the actual Dockerfile?
2017-07-14T22:17:50.726564
Deedee
pythondev_help_Deedee_2017-07-14T22:17:50.726564
1,500,070,670.726564
85,314
pythondev
help
and that will keep them synced so I can dev on local and updates container on the fly?
2017-07-14T22:18:20.728721
Deedee
pythondev_help_Deedee_2017-07-14T22:18:20.728721
1,500,070,700.728721
85,315
pythondev
help
just `VOLUME /usr/share/nginx/html`
2017-07-14T22:18:33.729624
Rickey
pythondev_help_Rickey_2017-07-14T22:18:33.729624
1,500,070,713.729624
85,316
pythondev
help
that'll map to whichever folder Dockerfile is in?
2017-07-14T22:19:53.735454
Deedee
pythondev_help_Deedee_2017-07-14T22:19:53.735454
1,500,070,793.735454
85,317
pythondev
help
and the `-v` option when you run your container,something like `docker run -v /home/lex/Development/Web:/usr/share/nginx/html bla..`
2017-07-14T22:20:36.738833
Rickey
pythondev_help_Rickey_2017-07-14T22:20:36.738833
1,500,070,836.738833
85,318
pythondev
help
YOUUUUUUU!
2017-07-14T22:20:52.739876
Deedee
pythondev_help_Deedee_2017-07-14T22:20:52.739876
1,500,070,852.739876
85,319
pythondev
help
``` Removing intermediate container a056d20559af Successfully built 904a43d4d ```
2017-07-14T22:21:11.741253
Deedee
pythondev_help_Deedee_2017-07-14T22:21:11.741253
1,500,070,871.741253
85,320
pythondev
help
:smile:
2017-07-14T22:21:13.741331
Deedee
pythondev_help_Deedee_2017-07-14T22:21:13.741331
1,500,070,873.741331
85,321
pythondev
help
<@Rickey> :taco:
2017-07-14T22:21:30.742489
Deedee
pythondev_help_Deedee_2017-07-14T22:21:30.742489
1,500,070,890.742489
85,322
pythondev
help
Hi. I'm trying to deploy a Flask/Jade python 3.4 app to Azure. I'm rolling with the built in template that comes with visual studio 2017, and publishing from visual studio as well. the publish goes well, I can see the files made it but I'm getting some splash page instead of my Flask site. Anyone run into something similar to this and solve it before? any help appreciated
2017-07-14T22:24:24.754643
Lester
pythondev_help_Lester_2017-07-14T22:24:24.754643
1,500,071,064.754643
85,323
pythondev
help
EASILY, 2 hrs searching online, watching pointless vids, and reading outdated material. EASILY! Before I came here to ask.
2017-07-14T22:27:02.765821
Deedee
pythondev_help_Deedee_2017-07-14T22:27:02.765821
1,500,071,222.765821
85,324
pythondev
help
<@Rickey> :taco:
2017-07-14T22:27:21.767112
Deedee
pythondev_help_Deedee_2017-07-14T22:27:21.767112
1,500,071,241.767112
85,325
pythondev
help
you are welcome
2017-07-14T22:28:34.772189
Rickey
pythondev_help_Rickey_2017-07-14T22:28:34.772189
1,500,071,314.772189
85,326
pythondev
help
I was just modifyng the populate_user from a django app that handles auth. Needed it to be `first_name initial`
2017-07-14T22:31:16.784169
Mariano
pythondev_help_Mariano_2017-07-14T22:31:16.784169
1,500,071,476.784169
85,327
pythondev
help
Hi. I can't get the lid off this jar.
2017-07-15T02:57:03.757615
Thomasina
pythondev_help_Thomasina_2017-07-15T02:57:03.757615
1,500,087,423.757615
85,328
pythondev
help
i always hit it on the side rim against the counter, that's my tip of the day... or maybe night... hmm
2017-07-15T02:58:54.763309
Kiersten
pythondev_help_Kiersten_2017-07-15T02:58:54.763309
1,500,087,534.763309
85,329
pythondev
help
That did the trick! Thanks a bunch!
2017-07-15T02:59:26.764952
Thomasina
pythondev_help_Thomasina_2017-07-15T02:59:26.764952
1,500,087,566.764952
85,330
pythondev
help
lol, ok ok, but before we go any further, what's in the jar?
2017-07-15T03:00:28.769800
Kiersten
pythondev_help_Kiersten_2017-07-15T03:00:28.769800
1,500,087,628.7698
85,331
pythondev
help
What if I helped open something.. i dunno.. like pickled sardines or something
2017-07-15T03:00:49.771041
Kiersten
pythondev_help_Kiersten_2017-07-15T03:00:49.771041
1,500,087,649.771041
85,332
pythondev
help
i will feel bad
2017-07-15T03:00:58.771598
Kiersten
pythondev_help_Kiersten_2017-07-15T03:00:58.771598
1,500,087,658.771598
85,333
pythondev
help
Oh, no worries, it's just bread.
2017-07-15T03:01:24.773404
Thomasina
pythondev_help_Thomasina_2017-07-15T03:01:24.773404
1,500,087,684.773404
85,334
pythondev
help
After I take it out of the can I don't usually eat it all so I put it in a jar.
2017-07-15T03:02:16.776574
Thomasina
pythondev_help_Thomasina_2017-07-15T03:02:16.776574
1,500,087,736.776574
85,335
pythondev
help
bread in a can? bread in a jar? are we from the same world?
2017-07-15T03:09:05.799867
Kiersten
pythondev_help_Kiersten_2017-07-15T03:09:05.799867
1,500,088,145.799867
85,336
pythondev
help
yeah, how does it work?
2017-07-15T03:34:21.884496
Suellen
pythondev_help_Suellen_2017-07-15T03:34:21.884496
1,500,089,661.884496
85,337
pythondev
help
it's like milk in a plastic bag
2017-07-15T03:34:57.886690
Suellen
pythondev_help_Suellen_2017-07-15T03:34:57.886690
1,500,089,697.88669
85,338
pythondev
help
wait, those exist :open_mouth:
2017-07-15T03:35:05.887208
Suellen
pythondev_help_Suellen_2017-07-15T03:35:05.887208
1,500,089,705.887208
85,339
pythondev
help
Whenever I travel to Poland and go get milk from the store it throws me off 'cause they have it sitting on the shelves in one of those juice cardboard-y containers. Weird.
2017-07-15T03:44:34.919613
Kiersten
pythondev_help_Kiersten_2017-07-15T03:44:34.919613
1,500,090,274.919613
85,340
pythondev
help
Yes, it's the greatest thing since sliced bread!
2017-07-15T03:45:03.921360
Thomasina
pythondev_help_Thomasina_2017-07-15T03:45:03.921360
1,500,090,303.92136
85,341
pythondev
help
wow
2017-07-15T03:45:20.922357
Kiersten
pythondev_help_Kiersten_2017-07-15T03:45:20.922357
1,500,090,320.922357
85,342
pythondev
help
i've never seen that before
2017-07-15T03:45:26.922671
Kiersten
pythondev_help_Kiersten_2017-07-15T03:45:26.922671
1,500,090,326.922671
85,343
pythondev
help
Well if you think that's weird, I hear in some places bread comes in a bag!
2017-07-15T03:46:12.925300
Thomasina
pythondev_help_Thomasina_2017-07-15T03:46:12.925300
1,500,090,372.9253
85,344
pythondev
help
Milk I get, but _bread_?!
2017-07-15T03:46:51.927386
Thomasina
pythondev_help_Thomasina_2017-07-15T03:46:51.927386
1,500,090,411.927386
85,345
pythondev
help
`view-source:<https://www.betfair.com/exchange/plus/politics>` why is there no data site?
2017-07-15T04:44:36.125890
Georgeann
pythondev_help_Georgeann_2017-07-15T04:44:36.125890
1,500,093,876.12589
85,346
pythondev
help
So, I have an import error that I've been trying to solve (with help from here) for the past two days and still haven't been able to solve. I'm building a REST API and I've put my source into its own module titled `broadway`. I'm implementing an app factory pattern. In `__main__.py` I have `from broadway import create_app, models, util`, and `create_app` is defined in `__init__.py`. These are the entire contents of `__init__.py`: ```from flask import Flask from . import config from .external import init_app # App factory function def create_app(config_data): app = Flask('broadway') app.config.from_object(config.DevelopmentConfig) app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False external.init_app(app) return app``` When running my application locally with `python -m broadway` the application returns the following error: `from broadway import create_app, models, util - ModuleNotFoundError: No module named 'broadway'`
2017-07-15T04:48:20.138787
Thomasina
pythondev_help_Thomasina_2017-07-15T04:48:20.138787
1,500,094,100.138787
85,347
pythondev
help
Strangely commenting out `app.config.from_object(config.DevelopmentConfig)` in `__init__.py` fixes the error. This is not a real solution of course since then my app is missing vital configuration info. Also, in this example the parameter (`config.DevelopmentConfig`) is hard-coded as originally `config_data` was passed to it but I changed it to make sure the data being passed wasn't the actual issue.
2017-07-15T04:50:32.146294
Thomasina
pythondev_help_Thomasina_2017-07-15T04:50:32.146294
1,500,094,232.146294
85,348
pythondev
help
I just don't get how the line in `__init__.py` relates to the import error at all.
2017-07-15T04:52:59.154252
Thomasina
pythondev_help_Thomasina_2017-07-15T04:52:59.154252
1,500,094,379.154252
85,349
pythondev
help
Also, I put a bunch of `print()`s throughout my code to see what was going on. They _all_ printed, even the ones after the actual `create_app` function runs in `__main__.py`.
2017-07-15T04:54:26.158635
Thomasina
pythondev_help_Thomasina_2017-07-15T04:54:26.158635
1,500,094,466.158635
85,350
pythondev
help
It was suggested that this was a problem with the Flask development server. After running my app with the Flask CLI it launched without errors. Then the problem was that all the endpoints of my API returned 404s, even though there were no errors in the actual Python reported (Flask's debug mode was on).
2017-07-15T04:55:22.161605
Thomasina
pythondev_help_Thomasina_2017-07-15T04:55:22.161605
1,500,094,522.161605
85,351
pythondev
help
`python -m unittest discover` What this command do?
2017-07-15T07:21:23.664538
Christy
pythondev_help_Christy_2017-07-15T07:21:23.664538
1,500,103,283.664538
85,352
pythondev
help
hi,
2017-07-15T08:07:07.832816
Darnell
pythondev_help_Darnell_2017-07-15T08:07:07.832816
1,500,106,027.832816
85,353
pythondev
help
:open_mouth: Same. I thought <@Thomasina> was kidding this whole time. Looks like something I'd try, though, TBH.
2017-07-15T08:33:17.933312
Deedee
pythondev_help_Deedee_2017-07-15T08:33:17.933312
1,500,107,597.933312
85,354
pythondev
help
Hi is anyone active ?
2017-07-15T09:17:26.116542
Madaline
pythondev_help_Madaline_2017-07-15T09:17:26.116542
1,500,110,246.116542
85,355
pythondev
help
Does sitting down class as active?
2017-07-15T09:17:58.118664
Krysta
pythondev_help_Krysta_2017-07-15T09:17:58.118664
1,500,110,278.118664
85,356
pythondev
help
That all depends on the class. :slightly_smiling_face:
2017-07-15T09:18:35.121243
Madaline
pythondev_help_Madaline_2017-07-15T09:18:35.121243
1,500,110,315.121243
85,357
pythondev
help
I have a code challenge that I'm working on from Google.. they give it to you when you do certain searches. It's a recruiting tool to get candidates for interviews.
2017-07-15T09:20:52.131121
Madaline
pythondev_help_Madaline_2017-07-15T09:20:52.131121
1,500,110,452.131121
85,358
pythondev
help
I've found a few solutions but they don't seem to be scaling up for some reason.
2017-07-15T09:21:08.132301
Madaline
pythondev_help_Madaline_2017-07-15T09:21:08.132301
1,500,110,468.132301
85,359
pythondev
help
I have to find the largest number that can be divided by 3.
2017-07-15T09:21:38.134337
Madaline
pythondev_help_Madaline_2017-07-15T09:21:38.134337
1,500,110,498.134337
85,360
pythondev
help
&gt; dont seem to be scaling up Can you explain?
2017-07-15T09:22:42.138722
Signe
pythondev_help_Signe_2017-07-15T09:22:42.138722
1,500,110,562.138722
85,361
pythondev
help
They give a number 954311 and the largest number that is divisible is 94311
2017-07-15T09:23:22.141551
Madaline
pythondev_help_Madaline_2017-07-15T09:23:22.141551
1,500,110,602.141551
85,362
pythondev
help
The length of the number can be up 10 digits long.
2017-07-15T09:23:57.143867
Madaline
pythondev_help_Madaline_2017-07-15T09:23:57.143867
1,500,110,637.143867
85,363
pythondev
help
Mine works perfectly up to 6 but beyond that I think there is an error
2017-07-15T09:24:21.145656
Madaline
pythondev_help_Madaline_2017-07-15T09:24:21.145656
1,500,110,661.145656
85,364
pythondev
help
My latest attempt was the fastest to execute but failed 4 of 5 tests. I don't get the error from them so I dont know why it failed.
2017-07-15T09:26:19.154643
Madaline
pythondev_help_Madaline_2017-07-15T09:26:19.154643
1,500,110,779.154643
85,365
pythondev
help
In other attempts it ran slower (I built a set of permutations) and passed 4 out 5 tests.
2017-07-15T09:28:27.163474
Madaline
pythondev_help_Madaline_2017-07-15T09:28:27.163474
1,500,110,907.163474
85,366
pythondev
help
Knowing that the number of digits in the list can grow up to 10.. my guess is it's not scaling up properly.
2017-07-15T09:29:02.165708
Madaline
pythondev_help_Madaline_2017-07-15T09:29:02.165708
1,500,110,942.165708
85,367
pythondev
help
Tell me what your code does when the number isnt divisible by 3
2017-07-15T09:29:13.166423
Signe
pythondev_help_Signe_2017-07-15T09:29:13.166423
1,500,110,953.166423
85,368
pythondev
help
In your own words
2017-07-15T09:29:18.166770
Signe
pythondev_help_Signe_2017-07-15T09:29:18.166770
1,500,110,958.16677
85,369
pythondev
help
If the number is not divisible by three it increments down one and checks the next one if that is divisible by three.
2017-07-15T09:30:16.171189
Madaline
pythondev_help_Madaline_2017-07-15T09:30:16.171189
1,500,111,016.171189
85,370
pythondev
help
Ok. What if the number "decrement by one" cant be made with the numbers in the list?
2017-07-15T09:31:18.176006
Signe
pythondev_help_Signe_2017-07-15T09:31:18.176006
1,500,111,078.176006
85,371
pythondev
help
Let me explain more. First I take the list of numbers and I sort them high to low. I join the values together, appending one to the other.
2017-07-15T09:32:20.180995
Madaline
pythondev_help_Madaline_2017-07-15T09:32:20.180995
1,500,111,140.180995
85,372
pythondev
help
So 5,3,4,1,2 becomes 5,4,3,2,1 then 54321
2017-07-15T09:32:45.183190
Madaline
pythondev_help_Madaline_2017-07-15T09:32:45.183190
1,500,111,165.18319
85,373
pythondev
help
I then iterate down from the 54321 until I find the first number divisible by 3.
2017-07-15T09:33:07.184810
Madaline
pythondev_help_Madaline_2017-07-15T09:33:07.184810
1,500,111,187.18481
85,374
pythondev
help
then I return that
2017-07-15T09:33:10.185013
Madaline
pythondev_help_Madaline_2017-07-15T09:33:10.185013
1,500,111,190.185013
85,375
pythondev
help
Yes. So your list is [5,4,3,2,1] but 54320 wouldnt be possible because 0 isnt in your list
2017-07-15T09:34:00.188869
Signe
pythondev_help_Signe_2017-07-15T09:34:00.188869
1,500,111,240.188869
85,376
pythondev
help
The range gives me the iteratable. At that point the list is gone.
2017-07-15T09:34:51.192965
Madaline
pythondev_help_Madaline_2017-07-15T09:34:51.192965
1,500,111,291.192965
85,377
pythondev
help
Exactly
2017-07-15T09:35:02.193802
Signe
pythondev_help_Signe_2017-07-15T09:35:02.193802
1,500,111,302.193802
85,378
pythondev
help
I do see the number increment down and I do get a return result that is divisible by 3.
2017-07-15T09:35:25.195561
Madaline
pythondev_help_Madaline_2017-07-15T09:35:25.195561
1,500,111,325.195561
85,379
pythondev
help
Ok walk me through the problem in just words and you doing it by hand. Dont use your code.
2017-07-15T09:36:04.198318
Signe
pythondev_help_Signe_2017-07-15T09:36:04.198318
1,500,111,364.198318
85,380
pythondev
help
If i give you the list [2,2,2,2,7], what is your process?
2017-07-15T09:36:52.201772
Signe
pythondev_help_Signe_2017-07-15T09:36:52.201772
1,500,111,412.201772
85,381
pythondev
help
let's use [8,7,2,6,4] as the 2's will hide some steps
2017-07-15T09:37:32.204441
Madaline
pythondev_help_Madaline_2017-07-15T09:37:32.204441
1,500,111,452.204441
85,382
pythondev
help
so I need to turn that in to 87642
2017-07-15T09:37:47.205570
Madaline
pythondev_help_Madaline_2017-07-15T09:37:47.205570
1,500,111,467.20557
85,383
pythondev
help
then find the largest number that is equal to or less then that number and is divisible by 3
2017-07-15T09:38:07.207095
Madaline
pythondev_help_Madaline_2017-07-15T09:38:07.207095
1,500,111,487.207095
85,384
pythondev
help
Lets use [8,7,3,6,2] since the largest num isnt divisible by 3
2017-07-15T09:38:49.210188
Signe
pythondev_help_Signe_2017-07-15T09:38:49.210188
1,500,111,529.210188
85,385
pythondev
help
That's the point.
2017-07-15T09:38:58.210811
Madaline
pythondev_help_Madaline_2017-07-15T09:38:58.210811
1,500,111,538.210811
85,386
pythondev
help
Exactly
2017-07-15T09:39:13.211895
Signe
pythondev_help_Signe_2017-07-15T09:39:13.211895
1,500,111,553.211895
85,387
pythondev
help
It has to be closest to or equal.
2017-07-15T09:39:24.212679
Madaline
pythondev_help_Madaline_2017-07-15T09:39:24.212679
1,500,111,564.212679
85,388
pythondev
help
So, whats the next number you try?
2017-07-15T09:39:31.213146
Signe
pythondev_help_Signe_2017-07-15T09:39:31.213146
1,500,111,571.213146
85,389
pythondev
help
After 87643 fails, then what?
2017-07-15T09:39:49.214472
Signe
pythondev_help_Signe_2017-07-15T09:39:49.214472
1,500,111,589.214472
85,390
pythondev
help
my code is stepping down to 87641, then 87640, etc..
2017-07-15T09:40:06.215859
Madaline
pythondev_help_Madaline_2017-07-15T09:40:06.215859
1,500,111,606.215859
85,391
pythondev
help
checking each for % 3 == 0
2017-07-15T09:40:26.217669
Madaline
pythondev_help_Madaline_2017-07-15T09:40:26.217669
1,500,111,626.217669
85,392
pythondev
help
AH!
2017-07-15T09:40:59.220180
Madaline
pythondev_help_Madaline_2017-07-15T09:40:59.220180
1,500,111,659.22018
85,393
pythondev
help
Ok, is 87642 a valid answer to the problem where the input is [8,7,6,4,3]?
2017-07-15T09:41:02.220456
Signe
pythondev_help_Signe_2017-07-15T09:41:02.220456
1,500,111,662.220456
85,394
pythondev
help
I realize where I made one mistake..
2017-07-15T09:41:13.221276
Madaline
pythondev_help_Madaline_2017-07-15T09:41:13.221276
1,500,111,673.221276
85,395
pythondev
help
OK the number has to use all numbers in the set..
2017-07-15T09:41:40.223240
Madaline
pythondev_help_Madaline_2017-07-15T09:41:40.223240
1,500,111,700.22324
85,396
pythondev
help
Let me show you my other approach if you don't mind.
2017-07-15T09:41:49.223856
Madaline
pythondev_help_Madaline_2017-07-15T09:41:49.223856
1,500,111,709.223856
85,397
pythondev
help
&gt; finds the largest number that can be made from some or all of these digits
2017-07-15T09:42:47.228020
Signe
pythondev_help_Signe_2017-07-15T09:42:47.228020
1,500,111,767.22802
85,398
pythondev
help
In this approach. I take all the numbers in the set and create every permutation from them. Then increment through the new list in descending order.
2017-07-15T09:42:55.228633
Madaline
pythondev_help_Madaline_2017-07-15T09:42:55.228633
1,500,111,775.228633
85,399
pythondev
help
In this one, I filter the list to remove duplicates.
2017-07-15T09:43:26.230970
Madaline
pythondev_help_Madaline_2017-07-15T09:43:26.230970
1,500,111,806.23097
85,400
pythondev
help
I also break up the sets by length because I hit a memory limit error on submission. In that case the first hit for 954311 is 94311.
2017-07-15T09:44:43.236524
Madaline
pythondev_help_Madaline_2017-07-15T09:44:43.236524
1,500,111,883.236524
85,401
pythondev
help
Good. Your on the right track.
2017-07-15T09:45:27.240025
Signe
pythondev_help_Signe_2017-07-15T09:45:27.240025
1,500,111,927.240025
85,402