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
most tests are pretty similar. being able to convert a single test into 5 or 6 different ones, but with a single method and `@pytest.mark.parametrize`, is amazing
2019-02-13T15:38:19.519100
Jonas
pythondev_help_Jonas_2019-02-13T15:38:19.519100
1,550,072,299.5191
8,421
pythondev
help
Yeah that's exactly what I was looking to do
2019-02-13T15:38:57.519400
Candra
pythondev_help_Candra_2019-02-13T15:38:57.519400
1,550,072,337.5194
8,422
pythondev
help
I have a single test which runs the same stuff with different values over and over like 6 times
2019-02-13T15:39:09.519800
Candra
pythondev_help_Candra_2019-02-13T15:39:09.519800
1,550,072,349.5198
8,423
pythondev
help
insanely long winded
2019-02-13T15:39:14.520000
Candra
pythondev_help_Candra_2019-02-13T15:39:14.520000
1,550,072,354.52
8,424
pythondev
help
when is a good time to use a python array? From `import array`
2019-02-13T18:15:32.521400
Monica
pythondev_help_Monica_2019-02-13T18:15:32.521400
1,550,081,732.5214
8,425
pythondev
help
Just stick to a list
2019-02-13T18:18:19.521800
Sharita
pythondev_help_Sharita_2019-02-13T18:18:19.521800
1,550,081,899.5218
8,426
pythondev
help
Mostly when you have a large amount of numeric data, like pixels in an image.
2019-02-13T18:18:49.522300
Sasha
pythondev_help_Sasha_2019-02-13T18:18:49.522300
1,550,081,929.5223
8,427
pythondev
help
even so, if you have that much, you might as well bring numpy in and use `ndarray`s
2019-02-13T18:19:14.522700
Hiroko
pythondev_help_Hiroko_2019-02-13T18:19:14.522700
1,550,081,954.5227
8,428
pythondev
help
I see. thanks guys
2019-02-13T18:23:48.523000
Monica
pythondev_help_Monica_2019-02-13T18:23:48.523000
1,550,082,228.523
8,429
pythondev
help
This language is perfect for quizing people
2019-02-13T18:24:02.523300
Monica
pythondev_help_Monica_2019-02-13T18:24:02.523300
1,550,082,242.5233
8,430
pythondev
help
Django question here, I have a form I need to post, some of the fields need to be auto populated with info from a model. I feel like I'm stuck in a revolving door, as I want to use a for loop of the data from the model in my template however then I can't use my formset loop to create multiple forms
2019-02-13T19:52:52.525400
Janella
pythondev_help_Janella_2019-02-13T19:52:52.525400
1,550,087,572.5254
8,431
pythondev
help
I tried using hidden fields in my template but with no success
2019-02-13T19:55:16.527000
Janella
pythondev_help_Janella_2019-02-13T19:55:16.527000
1,550,087,716.527
8,432
pythondev
help
model forms and model choice fields, use them
2019-02-13T20:43:24.528100
Sharita
pythondev_help_Sharita_2019-02-13T20:43:24.528100
1,550,090,604.5281
8,433
pythondev
help
yea I just changed it to a model form and I am getting somewhere
2019-02-13T20:46:12.528300
Janella
pythondev_help_Janella_2019-02-13T20:46:12.528300
1,550,090,772.5283
8,434
pythondev
help
I finally got the post request to work
2019-02-13T20:46:39.528500
Janella
pythondev_help_Janella_2019-02-13T20:46:39.528500
1,550,090,799.5285
8,435
pythondev
help
but it is not only providing new fields to enter new data into the model, it's also bringing in fields to update the current data in the model, which I don't want
2019-02-13T20:52:25.528900
Janella
pythondev_help_Janella_2019-02-13T20:52:25.528900
1,550,091,145.5289
8,436
pythondev
help
Hello all. I've been using <http://ASP.NET|ASP.NET> to create an interface to manipulate data (standard CRUD stuff) and started looking at Flask to implement something similar using Python but is that even a worthwhile way to go? I'm concerned about expending a lot of effort inefficiently. What would you all suggest?
2019-02-13T21:18:20.531300
Junior
pythondev_help_Junior_2019-02-13T21:18:20.531300
1,550,092,700.5313
8,437
pythondev
help
<@Junior> I think this really depends on how big your application is, what it's actually used for and if you know or are willing to learn python
2019-02-13T23:18:21.533100
Candra
pythondev_help_Candra_2019-02-13T23:18:21.533100
1,550,099,901.5331
8,438
pythondev
help
file not found 404
2019-02-14T00:38:31.534000
Kia
pythondev_help_Kia_2019-02-14T00:38:31.534000
1,550,104,711.534
8,439
pythondev
help
None
2019-02-14T00:38:40.534100
Kia
pythondev_help_Kia_2019-02-14T00:38:40.534100
1,550,104,720.5341
8,440
pythondev
help
None
2019-02-14T00:39:04.534400
Kia
pythondev_help_Kia_2019-02-14T00:39:04.534400
1,550,104,744.5344
8,441
pythondev
help
It looks like you're trying to send a POST request to a local python file instead of a HTTP endpoint
2019-02-14T00:40:31.535200
Cory
pythondev_help_Cory_2019-02-14T00:40:31.535200
1,550,104,831.5352
8,442
pythondev
help
could you please share code what i am doing wrong ?
2019-02-14T00:41:57.536100
Kia
pythondev_help_Kia_2019-02-14T00:41:57.536100
1,550,104,917.5361
8,443
pythondev
help
You want to specify the upload URL, not the file.
2019-02-14T00:42:14.536300
Sasha
pythondev_help_Sasha_2019-02-14T00:42:14.536300
1,550,104,934.5363
8,444
pythondev
help
As your form action.
2019-02-14T00:43:08.536500
Sasha
pythondev_help_Sasha_2019-02-14T00:43:08.536500
1,550,104,988.5365
8,445
pythondev
help
actually upload.py is pyhon code file
2019-02-14T00:44:39.536700
Kia
pythondev_help_Kia_2019-02-14T00:44:39.536700
1,550,105,079.5367
8,446
pythondev
help
the "action=" should point to a web server URL, not a filename
2019-02-14T00:45:42.536900
Cory
pythondev_help_Cory_2019-02-14T00:45:42.536900
1,550,105,142.5369
8,447
pythondev
help
and that URL should be defined in your application to accept POST request types
2019-02-14T00:46:02.537100
Cory
pythondev_help_Cory_2019-02-14T00:46:02.537100
1,550,105,162.5371
8,448
pythondev
help
The web browser submitting the form doesn't have access to your Python files, after all.
2019-02-14T00:46:26.537300
Sasha
pythondev_help_Sasha_2019-02-14T00:46:26.537300
1,550,105,186.5373
8,449
pythondev
help
For example: <http://flask.pocoo.org/docs/1.0/quickstart/#http-methods>
2019-02-14T00:46:29.537500
Cory
pythondev_help_Cory_2019-02-14T00:46:29.537500
1,550,105,189.5375
8,450
pythondev
help
None
2019-02-14T00:56:34.537700
Kia
pythondev_help_Kia_2019-02-14T00:56:34.537700
1,550,105,794.5377
8,451
pythondev
help
<@Sasha> <@Cory>
2019-02-14T00:57:11.538700
Kia
pythondev_help_Kia_2019-02-14T00:57:11.538700
1,550,105,831.5387
8,452
pythondev
help
Ok, so change your HTML form action to `action="<http://127.0.0.1:5000/uploading>"`
2019-02-14T00:57:46.539400
Cory
pythondev_help_Cory_2019-02-14T00:57:46.539400
1,550,105,866.5394
8,453
pythondev
help
then make sure your development server is running and serving files
2019-02-14T00:58:08.539800
Cory
pythondev_help_Cory_2019-02-14T00:58:08.539800
1,550,105,888.5398
8,454
pythondev
help
now getting these logs
2019-02-14T01:02:12.540100
Kia
pythondev_help_Kia_2019-02-14T01:02:12.540100
1,550,106,132.5401
8,455
pythondev
help
Ok, that's progress. You'll need to do some debugging to find out why that KeyError is raised. Probably `fileitem = form['filename']` this key doesn't exist in that object
2019-02-14T01:04:33.541200
Cory
pythondev_help_Cory_2019-02-14T01:04:33.541200
1,550,106,273.5412
8,456
pythondev
help
Please explain me this part of code..
2019-02-14T01:38:44.541500
Aracelis
pythondev_help_Aracelis_2019-02-14T01:38:44.541500
1,550,108,324.5415
8,457
pythondev
help
what is %d,%s and % &amp;\n
2019-02-14T01:40:01.542400
Aracelis
pythondev_help_Aracelis_2019-02-14T01:40:01.542400
1,550,108,401.5424
8,458
pythondev
help
%d is for a numeric value, %s is for a string
2019-02-14T01:43:39.543000
Cory
pythondev_help_Cory_2019-02-14T01:43:39.543000
1,550,108,619.543
8,459
pythondev
help
`\n` is a linefeed (goes to next line)
2019-02-14T01:44:55.543400
Cory
pythondev_help_Cory_2019-02-14T01:44:55.543400
1,550,108,695.5434
8,460
pythondev
help
the last `%` is a python string formatting method. It's replacing %d and %s in the string with the values of self.id and self.name, respectively
2019-02-14T01:46:45.544400
Cory
pythondev_help_Cory_2019-02-14T01:46:45.544400
1,550,108,805.5444
8,461
pythondev
help
I was wondering how I could keep only my commits on a branch and discard any commit made by others
2019-02-14T01:59:29.545000
Valeri
pythondev_help_Valeri_2019-02-14T01:59:29.545000
1,550,109,569.545
8,462
pythondev
help
Tried googling but couldn't find something like that
2019-02-14T02:00:00.545600
Valeri
pythondev_help_Valeri_2019-02-14T02:00:00.545600
1,550,109,600.5456
8,463
pythondev
help
fork the project so that it's your own private repo
2019-02-14T02:00:19.545900
Cory
pythondev_help_Cory_2019-02-14T02:00:19.545900
1,550,109,619.5459
8,464
pythondev
help
Oh no!
2019-02-14T02:00:55.546400
Valeri
pythondev_help_Valeri_2019-02-14T02:00:55.546400
1,550,109,655.5464
8,465
pythondev
help
You misinterpreted I guess
2019-02-14T02:01:08.546800
Valeri
pythondev_help_Valeri_2019-02-14T02:01:08.546800
1,550,109,668.5468
8,466
pythondev
help
I just want my changes on a branch. A co-worker pushed their changes on my branch
2019-02-14T02:01:35.547400
Valeri
pythondev_help_Valeri_2019-02-14T02:01:35.547400
1,550,109,695.5474
8,467
pythondev
help
I want to discard them
2019-02-14T02:01:40.547600
Valeri
pythondev_help_Valeri_2019-02-14T02:01:40.547600
1,550,109,700.5476
8,468
pythondev
help
git?
2019-02-14T02:03:00.548400
Cory
pythondev_help_Cory_2019-02-14T02:03:00.548400
1,550,109,780.5484
8,469
pythondev
help
Basically I'm looking for a way to filter out my commits on the branch and keep them
2019-02-14T02:03:02.548500
Valeri
pythondev_help_Valeri_2019-02-14T02:03:02.548500
1,550,109,782.5485
8,470
pythondev
help
Yes
2019-02-14T02:03:04.548700
Valeri
pythondev_help_Valeri_2019-02-14T02:03:04.548700
1,550,109,784.5487
8,471
pythondev
help
you could look at `git log` to find the commit(s) you want to revert
2019-02-14T02:03:44.549400
Cory
pythondev_help_Cory_2019-02-14T02:03:44.549400
1,550,109,824.5494
8,472
pythondev
help
then use `git revert`
2019-02-14T02:03:49.549600
Cory
pythondev_help_Cory_2019-02-14T02:03:49.549600
1,550,109,829.5496
8,473
pythondev
help
No I can't
2019-02-14T02:06:49.549800
Valeri
pythondev_help_Valeri_2019-02-14T02:06:49.549800
1,550,110,009.5498
8,474
pythondev
help
The problem is the commits are in random order
2019-02-14T02:07:14.550500
Valeri
pythondev_help_Valeri_2019-02-14T02:07:14.550500
1,550,110,034.5505
8,475
pythondev
help
Depending upon when they were authored
2019-02-14T02:07:23.550800
Valeri
pythondev_help_Valeri_2019-02-14T02:07:23.550800
1,550,110,043.5508
8,476
pythondev
help
I could have cherry picked the latest commit done by me otherwise
2019-02-14T02:07:38.551300
Valeri
pythondev_help_Valeri_2019-02-14T02:07:38.551300
1,550,110,058.5513
8,477
pythondev
help
And that would have solved my problem
2019-02-14T02:07:48.551600
Valeri
pythondev_help_Valeri_2019-02-14T02:07:48.551600
1,550,110,068.5516
8,478
pythondev
help
I think I should ask this on SO, what say?
2019-02-14T02:08:06.551900
Valeri
pythondev_help_Valeri_2019-02-14T02:08:06.551900
1,550,110,086.5519
8,479
pythondev
help
Hmm I see. Not sure what would be best
2019-02-14T02:09:07.552200
Cory
pythondev_help_Cory_2019-02-14T02:09:07.552200
1,550,110,147.5522
8,480
pythondev
help
I'm new here but I imagine this server is busier during US business hours
2019-02-14T02:10:13.552600
Cory
pythondev_help_Cory_2019-02-14T02:10:13.552600
1,550,110,213.5526
8,481
pythondev
help
I am trying to use `from flask_inputs import Inputs` and `from flask_inputs.validators import JsonSchema` Given the following schema, how can I make the key `en_PH` string type but can by any value as long as its filled out? Sample data: ``` {'stops': [{'addresses': {'en_PH': {'country': 'PH', ...
2019-02-14T02:15:16.552700
Philip
pythondev_help_Philip_2019-02-14T02:15:16.552700
1,550,110,516.5527
8,482
pythondev
help
you're goddam right!
2019-02-14T02:18:21.553100
Valeri
pythondev_help_Valeri_2019-02-14T02:18:21.553100
1,550,110,701.5531
8,483
pythondev
help
Traceback (most recent call last): The number of employees 3 File "C:/Users/PCUser/Desktop/pyCharmPractice/Oops/abstraction.py", line 13, in &lt;module&gt; print(emp.__count) AttributeError: 'Employee' object has no attribute '__count'
2019-02-14T02:54:59.553600
Aracelis
pythondev_help_Aracelis_2019-02-14T02:54:59.553600
1,550,112,899.5536
8,484
pythondev
help
what is exactly wrong here
2019-02-14T02:55:33.554300
Aracelis
pythondev_help_Aracelis_2019-02-14T02:55:33.554300
1,550,112,933.5543
8,485
pythondev
help
It's the double underscore on `__count`. That is triggering a feature called "name mangling".
2019-02-14T03:12:28.556900
Sasha
pythondev_help_Sasha_2019-02-14T03:12:28.556900
1,550,113,948.5569
8,486
pythondev
help
So I'm using `django_registration` and I was sub-classing the base view class: `django_registration.views.RegistrationView`: <https://django-registration.readthedocs.io/en/3.0/views.html#django_registration.views.RegistrationView>. However I want to use a method `send_activation_email` that is in the `django_registrati...
2019-02-14T03:13:33.558100
Jamey
pythondev_help_Jamey_2019-02-14T03:13:33.558100
1,550,114,013.5581
8,487
pythondev
help
Once you explained that "you want a function with this signature and gives this output for this input", then it was a case of figuring out the correlation.
2019-02-14T03:27:27.558200
Malena
pythondev_help_Malena_2019-02-14T03:27:27.558200
1,550,114,847.5582
8,488
pythondev
help
I came up with the formula using the good ol' trial and error method. :wink:
2019-02-14T03:27:58.558400
Malena
pythondev_help_Malena_2019-02-14T03:27:58.558400
1,550,114,878.5584
8,489
pythondev
help
Oh, I'm pretty ok at Python. I meant, more so, whether a Full Stack approach is overkill in general just to have a manageable interface versus a GUI toolkit. But I might just continue with Flask because it couldn't hurt.
2019-02-14T03:42:34.559100
Junior
pythondev_help_Junior_2019-02-14T03:42:34.559100
1,550,115,754.5591
8,490
pythondev
help
Best method :)
2019-02-14T03:56:21.559500
Yaeko
pythondev_help_Yaeko_2019-02-14T03:56:21.559500
1,550,116,581.5595
8,491
pythondev
help
@everyone <#C07EFMZ1N|help> getting error while running app.py on aws please help me to sort out this issue
2019-02-14T06:01:28.560400
Kia
pythondev_help_Kia_2019-02-14T06:01:28.560400
1,550,124,088.5604
8,492
pythondev
help
`OSError: [Errno 13] Permission denied` What are you trying to do?
2019-02-14T06:01:57.561000
Magaly
pythondev_help_Magaly_2019-02-14T06:01:57.561000
1,550,124,117.561
8,493
pythondev
help
What's wrong w/ my code? I'm getting this " [x] = SOR(A, b, x0, tol, iter_max, w) ValueError: too many values to unpack (expected 1)
2019-02-14T06:01:58.561100
Doretha
pythondev_help_Doretha_2019-02-14T06:01:58.561100
1,550,124,118.5611
8,494
pythondev
help
you shouldn't need to use `sudo` to run a python script
2019-02-14T06:02:08.561700
Mica
pythondev_help_Mica_2019-02-14T06:02:08.561700
1,550,124,128.5617
8,495
pythondev
help
getting error while running app on aws
2019-02-14T06:02:29.561800
Kia
pythondev_help_Kia_2019-02-14T06:02:29.561800
1,550,124,149.5618
8,496
pythondev
help
same error without sudo
2019-02-14T06:03:10.562000
Kia
pythondev_help_Kia_2019-02-14T06:03:10.562000
1,550,124,190.562
8,497
pythondev
help
<@Doretha> what's the full stack trace
2019-02-14T06:03:21.562400
Mica
pythondev_help_Mica_2019-02-14T06:03:21.562400
1,550,124,201.5624
8,498
pythondev
help
hmm, are you trying to create a socket on port 80?
2019-02-14T06:03:28.562500
Magaly
pythondev_help_Magaly_2019-02-14T06:03:28.562500
1,550,124,208.5625
8,499
pythondev
help
What's the content of cmdCommand?
2019-02-14T06:05:35.562700
Magaly
pythondev_help_Magaly_2019-02-14T06:05:35.562700
1,550,124,335.5627
8,500
pythondev
help
cmd = "jadx/bin/jadx.bat -d decompiled/cam apk/file.apk" cmdCommand = os.path.join(script_dir, cmd)
2019-02-14T06:06:28.563300
Kia
pythondev_help_Kia_2019-02-14T06:06:28.563300
1,550,124,388.5633
8,501
pythondev
help
<@Doretha> in the `Graph` function you've doing `[x] = ...` not sure that's possible?
2019-02-14T06:06:40.563700
Mica
pythondev_help_Mica_2019-02-14T06:06:40.563700
1,550,124,400.5637
8,502
pythondev
help
<@Mica> here it is
2019-02-14T06:08:35.563900
Doretha
pythondev_help_Doretha_2019-02-14T06:08:35.563900
1,550,124,515.5639
8,503
pythondev
help
hmm, make sure that you have execute permission in the jadx/bin/jadx.bat file
2019-02-14T06:12:37.564200
Magaly
pythondev_help_Magaly_2019-02-14T06:12:37.564200
1,550,124,757.5642
8,504
pythondev
help
this is working when i run app locally
2019-02-14T06:13:08.564500
Kia
pythondev_help_Kia_2019-02-14T06:13:08.564500
1,550,124,788.5645
8,505
pythondev
help
`sudo chmod +x jadx/bin/jadx.bat `
2019-02-14T06:13:08.564700
Magaly
pythondev_help_Magaly_2019-02-14T06:13:08.564700
1,550,124,788.5647
8,506
pythondev
help
`[x] = SOR(A, b, x0, tol, iter_max, w)` should be `x = SOR(A, b, x0, tol, iter_max, w)`
2019-02-14T06:13:12.565000
Mica
pythondev_help_Mica_2019-02-14T06:13:12.565000
1,550,124,792.565
8,507
pythondev
help
shoud i run this "sudo chmod +x jadx/bin/jadx.bat" in linux (aws)
2019-02-14T06:13:55.565300
Kia
pythondev_help_Kia_2019-02-14T06:13:55.565300
1,550,124,835.5653
8,508
pythondev
help
<@Doretha> line 18 has a return that returns nothing
2019-02-14T06:14:13.565900
Brandi
pythondev_help_Brandi_2019-02-14T06:14:13.565900
1,550,124,853.5659
8,509
pythondev
help
yes, if but try to get the path of `/jadx.bat` right, also,since you're on linux, you may need to run a `.sh` file
2019-02-14T06:14:39.566300
Magaly
pythondev_help_Magaly_2019-02-14T06:14:39.566300
1,550,124,879.5663
8,510
pythondev
help
`.bat` files is a kind of script files used in Windows/DOS
2019-02-14T06:15:02.566600
Magaly
pythondev_help_Magaly_2019-02-14T06:15:02.566600
1,550,124,902.5666
8,511
pythondev
help
should i change .bat to .sh ?
2019-02-14T06:17:01.567100
Kia
pythondev_help_Kia_2019-02-14T06:17:01.567100
1,550,125,021.5671
8,512
pythondev
help
<@Brandi> what im just trying to do in the last part of the code is to graph the number of iterations for convergence VS omega (w)
2019-02-14T06:18:45.568100
Doretha
pythondev_help_Doretha_2019-02-14T06:18:45.568100
1,550,125,125.5681
8,513
pythondev
help
yeah but that’s bound to fail since you’re trying to unpack that return
2019-02-14T06:19:39.568700
Brandi
pythondev_help_Brandi_2019-02-14T06:19:39.568700
1,550,125,179.5687
8,514
pythondev
help
what should i do then?:slightly_frowning_face:
2019-02-14T06:19:52.568900
Doretha
pythondev_help_Doretha_2019-02-14T06:19:52.568900
1,550,125,192.5689
8,515
pythondev
help
sorry
2019-02-14T06:20:14.569300
Brandi
pythondev_help_Brandi_2019-02-14T06:20:14.569300
1,550,125,214.5693
8,516
pythondev
help
first
2019-02-14T06:20:32.569700
Brandi
pythondev_help_Brandi_2019-02-14T06:20:32.569700
1,550,125,232.5697
8,517
pythondev
help
as <@Mica> said, do not unpack since you’re only returning x
2019-02-14T06:20:49.570200
Brandi
pythondev_help_Brandi_2019-02-14T06:20:49.570200
1,550,125,249.5702
8,518
pythondev
help
also, when returning nothing, exit the while cycle I suppose, else you will fail during the plotting
2019-02-14T06:22:21.571200
Brandi
pythondev_help_Brandi_2019-02-14T06:22:21.571200
1,550,125,341.5712
8,519
pythondev
help
I just want to say I like your username. lol
2019-02-14T06:22:42.571700
Karoline
pythondev_help_Karoline_2019-02-14T06:22:42.571700
1,550,125,362.5717
8,520