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
But the problem is that writing DSL's in a programming language without a macro language is hard...
2017-08-17T08:34:14.000082
Lanita
pythondev_help_Lanita_2017-08-17T08:34:14.000082
1,502,958,854.000082
89,903
pythondev
help
Oh, so that's actually an XY problem
2017-08-17T08:34:40.000030
Collette
pythondev_help_Collette_2017-08-17T08:34:40.000030
1,502,958,880.00003
89,904
pythondev
help
<https://sharknet.us/2014/04/06/stop-creating-dsls/>
2017-08-17T08:35:42.000005
Collette
pythondev_help_Collette_2017-08-17T08:35:42.000005
1,502,958,942.000005
89,905
pythondev
help
No, it's fucking not. gaah.
2017-08-17T08:36:47.000392
Lanita
pythondev_help_Lanita_2017-08-17T08:36:47.000392
1,502,959,007.000392
89,906
pythondev
help
There's nothing wrong with DSL's, if they show up all the time
2017-08-17T08:36:56.000032
Lanita
pythondev_help_Lanita_2017-08-17T08:36:56.000032
1,502,959,016.000032
89,907
pythondev
help
What I'm doing is representing a schema through code
2017-08-17T08:37:32.000213
Lanita
pythondev_help_Lanita_2017-08-17T08:37:32.000213
1,502,959,052.000213
89,908
pythondev
help
sql is a DSL. HTML is a dsl. json schema is a dsl. a Dockerfile is a DSL...
2017-08-17T08:39:08.000407
Lanita
pythondev_help_Lanita_2017-08-17T08:39:08.000407
1,502,959,148.000407
89,909
pythondev
help
Language
2017-08-17T08:39:16.000418
Krysta
pythondev_help_Krysta_2017-08-17T08:39:16.000418
1,502,959,156.000418
89,910
pythondev
help
<@Lanita> that doesn't mean you have to create your own DSL.
2017-08-17T08:39:43.000050
Collette
pythondev_help_Collette_2017-08-17T08:39:43.000050
1,502,959,183.00005
89,911
pythondev
help
There is a time and place for DSL's. My example is not, because the resulting code isn't much more reasonable than what I started off with
2017-08-17T08:40:05.000222
Lanita
pythondev_help_Lanita_2017-08-17T08:40:05.000222
1,502,959,205.000222
89,912
pythondev
help
But if I were to create hundreds of these and build a framework off of it, then it *would* make sense.
2017-08-17T08:40:30.000241
Lanita
pythondev_help_Lanita_2017-08-17T08:40:30.000241
1,502,959,230.000241
89,913
pythondev
help
one might argue that any application is its own DSL
2017-08-17T08:41:18.000486
Lanita
pythondev_help_Lanita_2017-08-17T08:41:18.000486
1,502,959,278.000486
89,914
pythondev
help
Hi guys, I am a newbie in Python. I know what I should do but the syntax is killing me. I am working on a subscription task. We got 3 different memberships in our company. I have got the upgraded members already. I need to differentiate renewed and new members from each other now. In our db, there is a subscription tab...
2017-08-17T09:09:04.000187
Octavia
pythondev_help_Octavia_2017-08-17T09:09:04.000187
1,502,960,944.000187
89,915
pythondev
help
in SQL?
2017-08-17T09:12:46.000300
Suellen
pythondev_help_Suellen_2017-08-17T09:12:46.000300
1,502,961,166.0003
89,916
pythondev
help
Python
2017-08-17T09:30:59.000364
Octavia
pythondev_help_Octavia_2017-08-17T09:30:59.000364
1,502,962,259.000364
89,917
pythondev
help
that's kind of the thing DBs are good with :slightly_smiling_face: but alright
2017-08-17T09:32:36.000069
Suellen
pythondev_help_Suellen_2017-08-17T09:32:36.000069
1,502,962,356.000069
89,918
pythondev
help
can you show your current code? how do you fetch data, etc?
2017-08-17T09:32:50.000511
Suellen
pythondev_help_Suellen_2017-08-17T09:32:50.000511
1,502,962,370.000511
89,919
pythondev
help
so that there's a base we can start with
2017-08-17T09:32:58.000186
Suellen
pythondev_help_Suellen_2017-08-17T09:32:58.000186
1,502,962,378.000186
89,920
pythondev
help
of course
2017-08-17T09:32:58.000525
Octavia
pythondev_help_Octavia_2017-08-17T09:32:58.000525
1,502,962,378.000525
89,921
pythondev
help
I asked in Django is there a way I can define a critical section for a whole block of code in Django? I have two services running at the same time and I don't want a "start service" thread running at the same time as a "remove service" thread. However on reflection I feel this might be a more "how to manage concurrency...
2017-08-17T10:30:30.000101
Maida
pythondev_help_Maida_2017-08-17T10:30:30.000101
1,502,965,830.000101
89,922
pythondev
help
is anybody here able to advise please?
2017-08-17T10:30:47.000098
Maida
pythondev_help_Maida_2017-08-17T10:30:47.000098
1,502,965,847.000098
89,923
pythondev
help
I could probably do a hacky way and solve this with updates through the DB
2017-08-17T10:31:36.000541
Maida
pythondev_help_Maida_2017-08-17T10:31:36.000541
1,502,965,896.000541
89,924
pythondev
help
hi everyone so I was going through this tutorial and <https://api.slack.com/tutorials/tunneling-with-ngrok> but did'nt quite get the Step 2: Refactor our script to work with Slack has ayone worked for something similar in python?
2017-08-17T11:45:44.000421
Juli
pythondev_help_Juli_2017-08-17T11:45:44.000421
1,502,970,344.000421
89,925
pythondev
help
<@Juli> are you stick on the slack oauth2 part, or what?
2017-08-17T11:47:59.000359
Beula
pythondev_help_Beula_2017-08-17T11:47:59.000359
1,502,970,479.000359
89,926
pythondev
help
yes <@Beula> I am stucked with the oauth and event subscription part
2017-08-17T11:50:35.000458
Juli
pythondev_help_Juli_2017-08-17T11:50:35.000458
1,502,970,635.000458
89,927
pythondev
help
So my main goal is to create these interactive buttons right! So for that I have to create this slack app and in the request Url i use ngrok followed by a /slackmessage . Now I will have to do two things right. 1. Create an endpoint to handle post request to this request url and then respond to slack and 2. Within that...
2017-08-17T12:15:13.000389
Juli
pythondev_help_Juli_2017-08-17T12:15:13.000389
1,502,972,113.000389
89,928
pythondev
help
Correct me if I am wrong anywhere. This is what I understood
2017-08-17T12:16:25.000327
Juli
pythondev_help_Juli_2017-08-17T12:16:25.000327
1,502,972,185.000327
89,929
pythondev
help
and help in python for the same?
2017-08-17T12:16:41.000617
Juli
pythondev_help_Juli_2017-08-17T12:16:41.000617
1,502,972,201.000617
89,930
pythondev
help
&gt; Within that Slack oauth and event subscripition also comes into play right not necessarily. If you have only one team you can do that in the slack app interface
2017-08-17T12:17:06.000096
Ciera
pythondev_help_Ciera_2017-08-17T12:17:06.000096
1,502,972,226.000096
89,931
pythondev
help
Then how is client id, client secret and verification token etc come into play here?
2017-08-17T12:18:16.000246
Juli
pythondev_help_Juli_2017-08-17T12:18:16.000246
1,502,972,296.000246
89,932
pythondev
help
It works without authentication?
2017-08-17T12:18:29.000393
Juli
pythondev_help_Juli_2017-08-17T12:18:29.000393
1,502,972,309.000393
89,933
pythondev
help
you can find them in your app page
2017-08-17T12:19:19.000584
Ciera
pythondev_help_Ciera_2017-08-17T12:19:19.000584
1,502,972,359.000584
89,934
pythondev
help
after you install it on your dev team
2017-08-17T12:19:26.000156
Ciera
pythondev_help_Ciera_2017-08-17T12:19:26.000156
1,502,972,366.000156
89,935
pythondev
help
Because in this blog also the author said it did'nt work for her without authentication so i thought its necessary <https://tutorials.botsfloor.com/slack-app-or-bot-user-integration-842c3843eea8>
2017-08-17T12:20:07.000274
Juli
pythondev_help_Juli_2017-08-17T12:20:07.000274
1,502,972,407.000274
89,936
pythondev
help
Yaa I got that but then do I not have to write a code to handle those parameters/tokens in the request/response to that Url?
2017-08-17T12:22:11.000126
Juli
pythondev_help_Juli_2017-08-17T12:22:11.000126
1,502,972,531.000126
89,937
pythondev
help
Or is it done by itself?
2017-08-17T12:23:52.000387
Juli
pythondev_help_Juli_2017-08-17T12:23:52.000387
1,502,972,632.000387
89,938
pythondev
help
for action I don't think you need to perform any authentification on your side
2017-08-17T12:25:15.000655
Ciera
pythondev_help_Ciera_2017-08-17T12:25:15.000655
1,502,972,715.000655
89,939
pythondev
help
you can check with the verification token if the request is coming from slack but it's not mandatory
2017-08-17T12:26:05.000061
Ciera
pythondev_help_Ciera_2017-08-17T12:26:05.000061
1,502,972,765.000061
89,940
pythondev
help
I think this is the part where I am stucked/not able to understand properly. Any python/flask example to handle request response to these request URL without Oauth?
2017-08-17T12:27:39.000407
Juli
pythondev_help_Juli_2017-08-17T12:27:39.000407
1,502,972,859.000407
89,941
pythondev
help
I went to <@Alesia> but still not able to understand it from there
2017-08-17T12:28:36.000346
Juli
pythondev_help_Juli_2017-08-17T12:28:36.000346
1,502,972,916.000346
89,942
pythondev
help
where is the best book about design patterns and algorithms (in python?)
2017-08-17T12:31:29.000526
Chantell
pythondev_help_Chantell_2017-08-17T12:31:29.000526
1,502,973,089.000526
89,943
pythondev
help
you need to put an url in the interactive message setting and have a flask app listening on this url
2017-08-17T12:32:19.000479
Ciera
pythondev_help_Ciera_2017-08-17T12:32:19.000479
1,502,973,139.000479
89,944
pythondev
help
and you should be good
2017-08-17T12:32:24.000075
Ciera
pythondev_help_Ciera_2017-08-17T12:32:24.000075
1,502,973,144.000075
89,945
pythondev
help
<@Chantell> To be honest, I don't find design patterns are as important in Python as they are in Java or C++. A lot of the big problems that the traditional design patterns solve don't really exist to the same degree with Python
2017-08-17T12:32:35.000203
Gabriele
pythondev_help_Gabriele_2017-08-17T12:32:35.000203
1,502,973,155.000203
89,946
pythondev
help
I don't really have a python example on hand :confused:
2017-08-17T12:32:36.000418
Ciera
pythondev_help_Ciera_2017-08-17T12:32:36.000418
1,502,973,156.000418
89,947
pythondev
help
<@Chantell> The Python Cookbook used to be a good collection of algorithms and snippets, but I've not read the Python 3 edition
2017-08-17T12:33:49.000029
Gabriele
pythondev_help_Gabriele_2017-08-17T12:33:49.000029
1,502,973,229.000029
89,948
pythondev
help
agree with <@Gabriele>
2017-08-17T12:33:55.000311
Liberty
pythondev_help_Liberty_2017-08-17T12:33:55.000311
1,502,973,235.000311
89,949
pythondev
help
and it has some design pattern implentations there
2017-08-17T12:34:15.000445
Liberty
pythondev_help_Liberty_2017-08-17T12:34:15.000445
1,502,973,255.000445
89,950
pythondev
help
okay.. I own an older edition of the python cookbook.. I was looking at it last night.. Maybe I just need to buy the new one.
2017-08-17T12:35:05.000266
Chantell
pythondev_help_Chantell_2017-08-17T12:35:05.000266
1,502,973,305.000266
89,951
pythondev
help
o gosh.. the older edition i have from 2013 is the newest one. Okay
2017-08-17T12:35:54.000105
Chantell
pythondev_help_Chantell_2017-08-17T12:35:54.000105
1,502,973,354.000105
89,952
pythondev
help
oh…just remembered there is <https://github.com/faif/python-patterns> where you can find implementations of different patterns, but I never used it :slightly_smiling_face: in work, more for study purpose
2017-08-17T12:38:25.000356
Liberty
pythondev_help_Liberty_2017-08-17T12:38:25.000356
1,502,973,505.000356
89,953
pythondev
help
yeah.. this is mostly to advance my perspective.. not for a specific work project.
2017-08-17T12:38:54.000005
Chantell
pythondev_help_Chantell_2017-08-17T12:38:54.000005
1,502,973,534.000005
89,954
pythondev
help
I already tried that but will try it again! Should it handle both get and post?
2017-08-17T12:39:07.000421
Juli
pythondev_help_Juli_2017-08-17T12:39:07.000421
1,502,973,547.000421
89,955
pythondev
help
post only I think. Not sure
2017-08-17T12:40:04.000663
Ciera
pythondev_help_Ciera_2017-08-17T12:40:04.000663
1,502,973,604.000663
89,956
pythondev
help
should be in the doc
2017-08-17T12:40:10.000232
Ciera
pythondev_help_Ciera_2017-08-17T12:40:10.000232
1,502,973,610.000232
89,957
pythondev
help
So I already try with post
2017-08-17T12:40:31.000052
Juli
pythondev_help_Juli_2017-08-17T12:40:31.000052
1,502,973,631.000052
89,958
pythondev
help
let me try it again
2017-08-17T12:40:42.000029
Juli
pythondev_help_Juli_2017-08-17T12:40:42.000029
1,502,973,642.000029
89,959
pythondev
help
Does os.abspath not work with isfile properly? I have ``` # String conversion so we can handle the field file with the OS module. resource_file = str(resource_file) # Ensure we have absolute path to the file. resource_abspath = os.path.abspath(resource_file) # Ensure the resource is a file. try...
2017-08-17T13:16:24.000458
Maida
pythondev_help_Maida_2017-08-17T13:16:24.000458
1,502,975,784.000458
89,960
pythondev
help
are you using 3.6?
2017-08-17T13:20:54.000525
Meg
pythondev_help_Meg_2017-08-17T13:20:54.000525
1,502,976,054.000525
89,961
pythondev
help
yep
2017-08-17T13:29:44.000225
Maida
pythondev_help_Maida_2017-08-17T13:29:44.000225
1,502,976,584.000225
89,962
pythondev
help
I think
2017-08-17T13:29:51.000583
Maida
pythondev_help_Maida_2017-08-17T13:29:51.000583
1,502,976,591.000583
89,963
pythondev
help
actually i dont know what django is using
2017-08-17T13:29:58.000249
Maida
pythondev_help_Maida_2017-08-17T13:29:58.000249
1,502,976,598.000249
89,964
pythondev
help
is there a way top force it to 3.6?
2017-08-17T13:30:03.000548
Maida
pythondev_help_Maida_2017-08-17T13:30:03.000548
1,502,976,603.000548
89,965
pythondev
help
are you using a virtualenv?
2017-08-17T13:30:10.000255
Meg
pythondev_help_Meg_2017-08-17T13:30:10.000255
1,502,976,610.000255
89,966
pythondev
help
My venv
2017-08-17T13:30:12.000331
Maida
pythondev_help_Maida_2017-08-17T13:30:12.000331
1,502,976,612.000331
89,967
pythondev
help
so you can do `python -V` in the command line with the venv active
2017-08-17T13:30:34.000308
Meg
pythondev_help_Meg_2017-08-17T13:30:34.000308
1,502,976,634.000308
89,968
pythondev
help
```(python3VirtualEnvironment) mmacheerpuppy@mmacheerpuppy-ProBook:~/bark/bark_drive/bark/bark_project$ pyton -V No command 'pyton' found, did you mean: Command 'python' from package 'python-minimal' (main) Command 'python' from package 'python3' (main) Command 'pytone' from package 'pytone' (universe) pyton: comman...
2017-08-17T13:31:08.000348
Maida
pythondev_help_Maida_2017-08-17T13:31:08.000348
1,502,976,668.000348
89,969
pythondev
help
when i load the shell
2017-08-17T13:31:12.000078
Maida
pythondev_help_Maida_2017-08-17T13:31:12.000078
1,502,976,672.000078
89,970
pythondev
help
its 3.5
2017-08-17T13:31:18.000492
Maida
pythondev_help_Maida_2017-08-17T13:31:18.000492
1,502,976,678.000492
89,971
pythondev
help
`python`, not `pyton`
2017-08-17T13:32:06.000465
Meg
pythondev_help_Meg_2017-08-17T13:32:06.000465
1,502,976,726.000465
89,972
pythondev
help
Ha well
2017-08-17T13:32:49.000110
Maida
pythondev_help_Maida_2017-08-17T13:32:49.000110
1,502,976,769.00011
89,973
pythondev
help
Yeah says python 3.52
2017-08-17T13:32:53.000441
Maida
pythondev_help_Maida_2017-08-17T13:32:53.000441
1,502,976,773.000441
89,974
pythondev
help
Oh I see the issue
2017-08-17T13:39:35.000281
Maida
pythondev_help_Maida_2017-08-17T13:39:35.000281
1,502,977,175.000281
89,975
pythondev
help
its my logic
2017-08-17T13:39:37.000536
Maida
pythondev_help_Maida_2017-08-17T13:39:37.000536
1,502,977,177.000536
89,976
pythondev
help
I hope
2017-08-17T13:39:41.000515
Maida
pythondev_help_Maida_2017-08-17T13:39:41.000515
1,502,977,181.000515
89,977
pythondev
help
wait no
2017-08-17T13:40:43.000459
Maida
pythondev_help_Maida_2017-08-17T13:40:43.000459
1,502,977,243.000459
89,978
pythondev
help
its not
2017-08-17T13:40:44.000410
Maida
pythondev_help_Maida_2017-08-17T13:40:44.000410
1,502,977,244.00041
89,979
pythondev
help
Yeah I'm not sure what's up with this, it should be picking up the ZIP
2017-08-17T13:41:26.000155
Maida
pythondev_help_Maida_2017-08-17T13:41:26.000155
1,502,977,286.000155
89,980
pythondev
help
put a breakpoint at the `if`
2017-08-17T13:43:40.000578
Meg
pythondev_help_Meg_2017-08-17T13:43:40.000578
1,502,977,420.000578
89,981
pythondev
help
and see what `resource_path` is
2017-08-17T13:43:49.000197
Meg
pythondev_help_Meg_2017-08-17T13:43:49.000197
1,502,977,429.000197
89,982
pythondev
help
ah strange
2017-08-17T13:54:32.000113
Maida
pythondev_help_Maida_2017-08-17T13:54:32.000113
1,502,978,072.000113
89,983
pythondev
help
I see what the issue is now
2017-08-17T13:54:53.000384
Maida
pythondev_help_Maida_2017-08-17T13:54:53.000384
1,502,978,093.000384
89,984
pythondev
help
That's the root dir of the project
2017-08-17T13:55:21.000429
Maida
pythondev_help_Maida_2017-08-17T13:55:21.000429
1,502,978,121.000429
89,985
pythondev
help
it should be /bark_resources/resource/[serial]/file
2017-08-17T13:56:04.000309
Maida
pythondev_help_Maida_2017-08-17T13:56:04.000309
1,502,978,164.000309
89,986
pythondev
help
is django interfering with this perhaps
2017-08-17T13:56:38.000051
Maida
pythondev_help_Maida_2017-08-17T13:56:38.000051
1,502,978,198.000051
89,987
pythondev
help
The uploads are going to the right place
2017-08-17T13:57:32.000027
Maida
pythondev_help_Maida_2017-08-17T13:57:32.000027
1,502,978,252.000027
89,988
pythondev
help
but the reading isn't
2017-08-17T13:57:35.000663
Maida
pythondev_help_Maida_2017-08-17T13:57:35.000663
1,502,978,255.000663
89,989
pythondev
help
but
2017-08-17T13:58:29.000074
Maida
pythondev_help_Maida_2017-08-17T13:58:29.000074
1,502,978,309.000074
89,990
pythondev
help
you should build your path with MEDIA_ROOT
2017-08-17T13:58:31.000015
Meg
pythondev_help_Meg_2017-08-17T13:58:31.000015
1,502,978,311.000015
89,991
pythondev
help
profile pictures work
2017-08-17T13:58:33.000173
Maida
pythondev_help_Maida_2017-08-17T13:58:33.000173
1,502,978,313.000173
89,992
pythondev
help
```MEDIA_ROOT = os.path.join(BASE_DIR, 'bark_resources/resources') MEDIA_URL = '/resources/'```
2017-08-17T13:58:43.000725
Maida
pythondev_help_Maida_2017-08-17T13:58:43.000725
1,502,978,323.000725
89,993
pythondev
help
is what i have
2017-08-17T13:58:56.000272
Maida
pythondev_help_Maida_2017-08-17T13:58:56.000272
1,502,978,336.000272
89,994
pythondev
help
yup
2017-08-17T13:59:00.000470
Meg
pythondev_help_Meg_2017-08-17T13:59:00.000470
1,502,978,340.00047
89,995
pythondev
help
so construct the rest of the file path with that
2017-08-17T13:59:10.000149
Meg
pythondev_help_Meg_2017-08-17T13:59:10.000149
1,502,978,350.000149
89,996
pythondev
help
start it, actually
2017-08-17T13:59:15.000445
Meg
pythondev_help_Meg_2017-08-17T13:59:15.000445
1,502,978,355.000445
89,997
pythondev
help
and then append the serial
2017-08-17T13:59:19.000368
Meg
pythondev_help_Meg_2017-08-17T13:59:19.000368
1,502,978,359.000368
89,998
pythondev
help
and filename
2017-08-17T13:59:27.000619
Meg
pythondev_help_Meg_2017-08-17T13:59:27.000619
1,502,978,367.000619
89,999
pythondev
help
oh so manually
2017-08-17T13:59:33.000551
Maida
pythondev_help_Maida_2017-08-17T13:59:33.000551
1,502,978,373.000551
90,000
pythondev
help
I've been calling um
2017-08-17T13:59:40.000291
Maida
pythondev_help_Maida_2017-08-17T13:59:40.000291
1,502,978,380.000291
90,001
pythondev
help
the file from the file field
2017-08-17T13:59:47.000689
Maida
pythondev_help_Maida_2017-08-17T13:59:47.000689
1,502,978,387.000689
90,002