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
I run it on the server directly, it runs fine
2019-03-19T16:25:48.069600
Kandy
pythondev_help_Kandy_2019-03-19T16:25:48.069600
1,553,012,748.0696
14,121
pythondev
help
basically - uses Selenium to open a page, log in, click a link, look for resulting text, then right that value to the db
2019-03-19T16:27:48.069800
Kandy
pythondev_help_Kandy_2019-03-19T16:27:48.069800
1,553,012,868.0698
14,122
pythondev
help
write that value...
2019-03-19T16:28:52.070000
Kandy
pythondev_help_Kandy_2019-03-19T16:28:52.070000
1,553,012,932.07
14,123
pythondev
help
...I don't get it, I tried again and now it seems to be working
2019-03-19T16:37:32.070500
Dione
pythondev_help_Dione_2019-03-19T16:37:32.070500
1,553,013,452.0705
14,124
pythondev
help
as per the docs at <https://www.django-rest-framework.org/api-guide/viewsets/#marking-extra-actions-for-routing>
2019-03-19T16:37:56.070700
Dione
pythondev_help_Dione_2019-03-19T16:37:56.070700
1,553,013,476.0707
14,125
pythondev
help
thanks anyway
2019-03-19T16:38:06.071100
Dione
pythondev_help_Dione_2019-03-19T16:38:06.071100
1,553,013,486.0711
14,126
pythondev
help
i don't understand
2019-03-19T16:43:41.071200
Deon
pythondev_help_Deon_2019-03-19T16:43:41.071200
1,553,013,821.0712
14,127
pythondev
help
is it not working at all? or is it just slow?
2019-03-19T16:43:51.071400
Deon
pythondev_help_Deon_2019-03-19T16:43:51.071400
1,553,013,831.0714
14,128
pythondev
help
it never completes
2019-03-19T16:45:52.071600
Kandy
pythondev_help_Kandy_2019-03-19T16:45:52.071600
1,553,013,952.0716
14,129
pythondev
help
the job just perpetually runs
2019-03-19T16:46:02.071800
Kandy
pythondev_help_Kandy_2019-03-19T16:46:02.071800
1,553,013,962.0718
14,130
pythondev
help
on the step
2019-03-19T16:46:07.072000
Kandy
pythondev_help_Kandy_2019-03-19T16:46:07.072000
1,553,013,967.072
14,131
pythondev
help
I have an object which is extending a threading.thread object, and I am running around 100 of these threads each has its own attributes
2019-03-19T17:42:57.073200
Doretta
pythondev_help_Doretta_2019-03-19T17:42:57.073200
1,553,017,377.0732
14,132
pythondev
help
When I try to reach a variable of sub-threads from parent thread, sub threads are crashing
2019-03-19T17:44:07.074400
Doretta
pythondev_help_Doretta_2019-03-19T17:44:07.074400
1,553,017,447.0744
14,133
pythondev
help
Is it normal, and how can I read these variables from outside of the thread objects
2019-03-19T17:45:21.075500
Doretta
pythondev_help_Doretta_2019-03-19T17:45:21.075500
1,553,017,521.0755
14,134
pythondev
help
The threads are continuously running in an infinite loop, operating a predefined set of functions as a cycle
2019-03-19T17:46:10.076700
Doretta
pythondev_help_Doretta_2019-03-19T17:46:10.076700
1,553,017,570.0767
14,135
pythondev
help
I assume by “crash” you mean they’re throwing python exceptions or stalling. Python guarantees that individual python bytecodes run atomically, and that you can’t (outside of bugs) get a segfault from multithreading. But it doesn’t guarantee no race conditions.
2019-03-19T17:58:22.078200
Letty
pythondev_help_Letty_2019-03-19T17:58:22.078200
1,553,018,302.0782
14,136
pythondev
help
you can wrap access in a threading.Lock <https://docs.python.org/3/library/threading.html> or have the threads push status updates into a queue <https://docs.python.org/3/library/queue.html>
2019-03-19T17:59:31.079200
Letty
pythondev_help_Letty_2019-03-19T17:59:31.079200
1,553,018,371.0792
14,137
pythondev
help
Thanks, I will check that
2019-03-19T18:00:16.079700
Doretta
pythondev_help_Doretta_2019-03-19T18:00:16.079700
1,553,018,416.0797
14,138
pythondev
help
Is there an old guy trying to learn Python as a first language noob channel? Just wanted to ask before I drop that kind of question.
2019-03-20T01:03:50.081600
Cherie
pythondev_help_Cherie_2019-03-20T01:03:50.081600
1,553,043,830.0816
14,139
pythondev
help
Indeed, <#C07EW4DNE|learning_python>
2019-03-20T01:05:57.081900
Sasha
pythondev_help_Sasha_2019-03-20T01:05:57.081900
1,553,043,957.0819
14,140
pythondev
help
Great, thanks.
2019-03-20T01:06:15.082100
Cherie
pythondev_help_Cherie_2019-03-20T01:06:15.082100
1,553,043,975.0821
14,141
pythondev
help
hey folks, need to pass ordered dict into a function which accepts kwargs and retain the order, can this be done ??
2019-03-20T03:22:08.083400
Nena
pythondev_help_Nena_2019-03-20T03:22:08.083400
1,553,052,128.0834
14,142
pythondev
help
I believe that will work as of Python 3.6.
2019-03-20T03:27:44.083900
Sasha
pythondev_help_Sasha_2019-03-20T03:27:44.083900
1,553,052,464.0839
14,143
pythondev
help
yes use ordereddict from collections
2019-03-20T03:46:34.084500
Major
pythondev_help_Major_2019-03-20T03:46:34.084500
1,553,053,594.0845
14,144
pythondev
help
it maintains order <@Nena>
2019-03-20T03:47:00.085000
Major
pythondev_help_Major_2019-03-20T03:47:00.085000
1,553,053,620.085
14,145
pythondev
help
I have a data in json format something like `{"check_no": "4.0", "level": "high", "region": "us-east-1", "value": "rds info", "score": "scored", "type": "INFO"}` multiple lines like these can django html template suggestion, for a neat UI
2019-03-20T04:02:09.086300
Broderick
pythondev_help_Broderick_2019-03-20T04:02:09.086300
1,553,054,529.0863
14,146
pythondev
help
None
2019-03-20T04:27:10.088600
Tanja
pythondev_help_Tanja_2019-03-20T04:27:10.088600
1,553,056,030.0886
14,147
pythondev
help
hey <@Major> it does maintain, but right when i pass it as kwargs order changes.
2019-03-20T04:28:41.088900
Nena
pythondev_help_Nena_2019-03-20T04:28:41.088900
1,553,056,121.0889
14,148
pythondev
help
didn’t get, why you need an order in the first place for an kwargs ? sample code pls
2019-03-20T04:33:42.089200
Major
pythondev_help_Major_2019-03-20T04:33:42.089200
1,553,056,422.0892
14,149
pythondev
help
How does someone pass a folder as an `.env` variable? Say I have a folder named `home`, is it correct to assign it in the .env file as `FOLDER = 'home'` or there needs to be a trailing slash indicating that it is a directory?
2019-03-20T04:37:57.090400
Jamey
pythondev_help_Jamey_2019-03-20T04:37:57.090400
1,553,056,677.0904
14,150
pythondev
help
<@Tanja> Not entirely sure whats the question is, but look up .format or f-strings instead of the %s syntax, much clearer and easier to read (and %s is a bit out of fashion). I think using them might solve the issues you are seeing. <https://pyformat.info/> and <https://realpython.com/python-string-formatting/> gives some good advices
2019-03-20T04:38:37.090700
Yaeko
pythondev_help_Yaeko_2019-03-20T04:38:37.090700
1,553,056,717.0907
14,151
pythondev
help
<@Jamey> Not entirely sure what the .env file means, is it used by some framework? But normally enviroment variables are just strings, so you need to sort it out when using it.
2019-03-20T04:41:02.092700
Yaeko
pythondev_help_Yaeko_2019-03-20T04:41:02.092700
1,553,056,862.0927
14,152
pythondev
help
If you use `os.path.join` (or similar function from `pathlb`) to create a path, the separators are sorted out by that function.
2019-03-20T04:41:50.094400
Yaeko
pythondev_help_Yaeko_2019-03-20T04:41:50.094400
1,553,056,910.0944
14,153
pythondev
help
It is a file used to store values that could be set using `export` e.g. (in this case) `export FOLDER=home` in the terminal
2019-03-20T04:42:41.095200
Jamey
pythondev_help_Jamey_2019-03-20T04:42:41.095200
1,553,056,961.0952
14,154
pythondev
help
I don't think using directory name as a string in an `.env` file is something bad. I guess you'll be using it later with something like `Path.joinpath(os.environ.get('FOLDER'))` or `os.path.join(...)` then no need to worry about slashes (either way you might want to use `os.sep` for something specific).
2019-03-20T04:48:50.099400
Russ
pythondev_help_Russ_2019-03-20T04:48:50.099400
1,553,057,330.0994
14,155
pythondev
help
<@Russ> thanks. Will do :taco:
2019-03-20T04:54:42.099900
Jamey
pythondev_help_Jamey_2019-03-20T04:54:42.099900
1,553,057,682.0999
14,156
pythondev
help
Hey how do I turn this post curl command line with multiple `:` into a python POST request? ``` curl -X POST <https://c21bc7:@esignatures.io/api/contracts> -d '{"template_id": "20ac76c9","signers":[{"name":"Sam Signer","email":"EMAIL ADDRESS"}]}'``` My best attempt is the following: ``` def send_signature_request(message): ''' sends a signature request ''' payload = { 'template_id': '20ac76c9' 'signers':[ { 'name':'Sam Signer', 'email':'<mailto:[email protected]|[email protected]>' } ] } r = <http://requests.post|requests.post>('<https://c21bc7:@esignatures.io/api/contracts>', json=payload)```
2019-03-20T06:45:27.102200
Conchita
pythondev_help_Conchita_2019-03-20T06:45:27.102200
1,553,064,327.1022
14,157
pythondev
help
looks good. is it working ?
2019-03-20T06:46:56.103400
Jimmy
pythondev_help_Jimmy_2019-03-20T06:46:56.103400
1,553,064,416.1034
14,158
pythondev
help
Forgot to mention - getting syntax error
2019-03-20T06:47:35.104500
Conchita
pythondev_help_Conchita_2019-03-20T06:47:35.104500
1,553,064,455.1045
14,159
pythondev
help
``` 'signers':[ ^ SyntaxError: invalid syntax```
2019-03-20T06:47:38.104800
Conchita
pythondev_help_Conchita_2019-03-20T06:47:38.104800
1,553,064,458.1048
14,160
pythondev
help
Just discovered my error hehe
2019-03-20T06:47:59.105800
Conchita
pythondev_help_Conchita_2019-03-20T06:47:59.105800
1,553,064,479.1058
14,161
pythondev
help
Missing comma
2019-03-20T06:48:02.106000
Conchita
pythondev_help_Conchita_2019-03-20T06:48:02.106000
1,553,064,482.106
14,162
pythondev
help
did anyone connected aws rds postgres db to s3. i was looking for any plugins or options havent found ? anyone knows how to do it, it will be really helpful
2019-03-20T06:48:02.106200
Rhona
pythondev_help_Rhona_2019-03-20T06:48:02.106200
1,553,064,482.1062
14,163
pythondev
help
Hello, I'm trying to read .off file and I found the library meshpy that help in this, but all what I'm finding is this : ```<https://berkeleyautomation.github.io/meshpy/api/io.html#offfile> ``` and in fact I don't have the enough knowledge to know how to work with this to reach what I want, reading the file and working with the output of it.
2019-03-20T06:48:16.106500
Tanja
pythondev_help_Tanja_2019-03-20T06:48:16.106500
1,553,064,496.1065
14,164
pythondev
help
I'm currently hosting my static website on Netlify and need to implement a digital signature feature. Would it be achievable to embed that on a static website or does it move into the dynamic territory? I'm pretty fresh into the world of web dev :slightly_smiling_face: This is the instructions from the e-signature providers - <https://esignatures.io/docs/api#embedded-signing> ``` The sign page can be embedded into an iframe. Steps: Create a contract with POST#contracts, and specify embedded=yes The response json will include a data:contract:signers:embedded_url for every signer In the iframe html code, replace the EMBEDDED_URL with the embedded_url for each signer respectively Optional: Specify the redirect_url when creating a contract, so the signers will be redirected to that given page. Please note that the redirect_url will only be loaded within the iframe.```
2019-03-20T06:55:55.109000
Conchita
pythondev_help_Conchita_2019-03-20T06:55:55.109000
1,553,064,955.109
14,165
pythondev
help
That should be possible with Javascript running on on the site, but that's a bit out of scope for Python
2019-03-20T07:43:55.110500
Yaeko
pythondev_help_Yaeko_2019-03-20T07:43:55.110500
1,553,067,835.1105
14,166
pythondev
help
None
2019-03-20T08:36:55.111000
Jolanda
pythondev_help_Jolanda_2019-03-20T08:36:55.111000
1,553,071,015.111
14,167
pythondev
help
Where are you running this code? Looks ok in a Python shell to me ```&gt;&gt;&gt; '''NSERT INTO Municipio(CodigoMunicipio, Nome, idEstado) VALUES('%s', '%s', (SELECT idEstado FROM Estado WHERE Sigla = '%s') )''' %(row_['Codigo'], row_['Municipio'].decode('utf-8').encode('utf-8'), row['UF']) "NSERT INTO Municipio(CodigoMunicipio, Nome, idEstado) VALUES('test', 'b'test'', (SELECT idEstado FROM Estado WHERE Sigla = 'test') )"```
2019-03-20T08:41:17.111300
Melynda
pythondev_help_Melynda_2019-03-20T08:41:17.111300
1,553,071,277.1113
14,168
pythondev
help
Decoding binary to utf-8 then re-encoding it again is pointless, isn't it?
2019-03-20T08:41:51.111500
Melynda
pythondev_help_Melynda_2019-03-20T08:41:51.111500
1,553,071,311.1115
14,169
pythondev
help
You're going to run into SQL Injection vulnerabilities if you directly format SQL strings like that too – don't do it.
2019-03-20T08:42:23.111700
Melynda
pythondev_help_Melynda_2019-03-20T08:42:23.111700
1,553,071,343.1117
14,170
pythondev
help
I'm using pycharm on linux machine
2019-03-20T08:45:44.112000
Jolanda
pythondev_help_Jolanda_2019-03-20T08:45:44.112000
1,553,071,544.112
14,171
pythondev
help
Guys need help with PyQt5
2019-03-20T09:06:05.112400
Janis
pythondev_help_Janis_2019-03-20T09:06:05.112400
1,553,072,765.1124
14,172
pythondev
help
If you have a question, please just ask it. Please do not ask for topic experts; do not DM or ping random users. We cannot begin to answer a question until we actually get a question. <http://sol.gfxile.net/dontask.html|*Asking Questions*>
2019-03-20T09:07:44.112500
Leana
pythondev_help_Leana_2019-03-20T09:07:44.112500
1,553,072,864.1125
14,173
pythondev
help
When I try to close the entire application using 'X' Button. It pops up an message dialog and even when i press No it closes the application
2019-03-20T09:08:03.112600
Janis
pythondev_help_Janis_2019-03-20T09:08:03.112600
1,553,072,883.1126
14,174
pythondev
help
Hello. somebody here have some nice materials or links how to build and structure flask app to use it with graphql in microservice world?
2019-03-20T10:04:02.114100
Sabrina
pythondev_help_Sabrina_2019-03-20T10:04:02.114100
1,553,076,242.1141
14,175
pythondev
help
Hello, i have made a simple script to say welcome to new users, but today the code failed, with this kind of error "NoneType object is not subscriptable"
2019-03-20T10:07:03.115400
Lourie
pythondev_help_Lourie_2019-03-20T10:07:03.115400
1,553,076,423.1154
14,176
pythondev
help
None
2019-03-20T10:07:11.115500
Lourie
pythondev_help_Lourie_2019-03-20T10:07:11.115500
1,553,076,431.1155
14,177
pythondev
help
Knowing how to ask a good question is a highly invaluable skill that will benefit you greatly in any career. Two good resources for suggestions and strategies to help you structure and phrase your question to make it easier for those here to understand your problem and help you work to a solution are: • <https://www.mikeash.com/getting_answers.html> • <https://stackoverflow.com/help/how-to-ask>
2019-03-20T10:09:41.118100
Leana
pythondev_help_Leana_2019-03-20T10:09:41.118100
1,553,076,581.1181
14,178
pythondev
help
<@Lourie> you don’t give anything for us to work with, so not sure how we can help you
2019-03-20T10:09:59.119000
Hiroko
pythondev_help_Hiroko_2019-03-20T10:09:59.119000
1,553,076,599.119
14,179
pythondev
help
<@Sabrina> maybe <https://github.com/graphql-python/graphene/issues/545>?
2019-03-20T10:10:46.120700
Hiroko
pythondev_help_Hiroko_2019-03-20T10:10:46.120700
1,553,076,646.1207
14,180
pythondev
help
I now but also and I cant get more info...during try except thats the only message I get
2019-03-20T10:10:50.121100
Lourie
pythondev_help_Lourie_2019-03-20T10:10:50.121100
1,553,076,650.1211
14,181
pythondev
help
<https://github.com/NovemberOscar/Flask-GraphQL-Large-Application-Example>
2019-03-20T10:10:59.121700
Hiroko
pythondev_help_Hiroko_2019-03-20T10:10:59.121700
1,553,076,659.1217
14,182
pythondev
help
<@Hiroko> thx! I will take a look into that! :slightly_smiling_face:
2019-03-20T10:12:46.123800
Sabrina
pythondev_help_Sabrina_2019-03-20T10:12:46.123800
1,553,076,766.1238
14,183
pythondev
help
<@Lourie> if that is the full extent of your `try` block then the error is coming from your template
2019-03-20T10:15:21.126400
Clemmie
pythondev_help_Clemmie_2019-03-20T10:15:21.126400
1,553,076,921.1264
14,184
pythondev
help
I have a log file being generated and imported into Python as a dictionary of dictionaries, call it `d` for now, which can also have an unknown number of sub-dictionaries within them. The keys can change, and the number of sub-dictionaries/how deep they go can change and be of arbitrary depth as far as number of nested dictionaries based on the hardware config, ie `d['key1']` may have a dictionary with several more. that can also have several more within that. Are there any tools in the standard Python tools to get the structure of `d`? I have a function that works to print the structure to a txt file, but if there's something that already exists then I'd rather use that.
2019-03-20T10:15:57.126800
Cherish
pythondev_help_Cherish_2019-03-20T10:15:57.126800
1,553,076,957.1268
14,185
pythondev
help
<@Lourie> I am wary if those two lines of code are in try except clause, that doesn't make immediate sense. Can you post more code so we can understand the state of things when the error happens
2019-03-20T10:18:42.129700
Clemmie
pythondev_help_Clemmie_2019-03-20T10:18:42.129700
1,553,077,122.1297
14,186
pythondev
help
<@Clemmie> thanks I get it,, its an mistake that happend with djangotemplatetags :slightly_smiling_face:
2019-03-20T10:42:54.130900
Lourie
pythondev_help_Lourie_2019-03-20T10:42:54.130900
1,553,078,574.1309
14,187
pythondev
help
<@Cherish> You want just the dict keys for all nested dicts or what do you mean by structure?
2019-03-20T10:42:56.131000
Yaeko
pythondev_help_Yaeko_2019-03-20T10:42:56.131000
1,553,078,576.131
14,188
pythondev
help
just the dict keys for all the nested dicts
2019-03-20T10:43:14.131300
Cherish
pythondev_help_Cherish_2019-03-20T10:43:14.131300
1,553,078,594.1313
14,189
pythondev
help
As a flat list or a nested structure? Not sure if there is anything in the standard libs, but should be fairly simple recursive function
2019-03-20T10:44:18.131900
Yaeko
pythondev_help_Yaeko_2019-03-20T10:44:18.131900
1,553,078,658.1319
14,190
pythondev
help
yeah, I have a recursive function to do it that outputs to a txt file or prints out the keys like ```key1: subkey1 subsubkey1 subkey2 ....``` I was mostly just curious if there were something in the standard libs that did something similar
2019-03-20T10:47:40.135000
Cherish
pythondev_help_Cherish_2019-03-20T10:47:40.135000
1,553,078,860.135
14,191
pythondev
help
I got interested and tried to search/poke around but couldn't find anything
2019-03-20T11:04:38.135900
Yaeko
pythondev_help_Yaeko_2019-03-20T11:04:38.135900
1,553,079,878.1359
14,192
pythondev
help
Hey peeps, I'm looking for a way to approach a specific thing I want to accomplish with python. Though I currently have no idea how best to approach it. I want to identify a niche for tweets by putting 10 tweets in one word count, and then comparing it with a file that holds keywords. So let's say a user posts a sentence like `Want to the gym today and I've never had such sore muscles!` , i want to match this with one big file that holds keywords to multiple niches. ```Fitness { gym, muscle, muscles, soremuscle,gymrat} fashion {clothing,legging,hoodie} niche {keyword1,keyword2,keyword3} ``` So I want to analyze my text, count the amount of keywords that return and then say: Fitness niche is most counted, followed by fashion... Does anyone know how I would best approach it? I'm no expert in python (yet :stuck_out_tongue: ) and I have no idea how to best tackle this
2019-03-20T11:37:35.140200
Lucius
pythondev_help_Lucius_2019-03-20T11:37:35.140200
1,553,081,855.1402
14,193
pythondev
help
count(category_list, word)
2019-03-20T11:54:20.142900
Shawana
pythondev_help_Shawana_2019-03-20T11:54:20.142900
1,553,082,860.1429
14,194
pythondev
help
<@Lucius> this problem is called 'categorization' or 'classification'
2019-03-20T11:55:09.143800
Bethany
pythondev_help_Bethany_2019-03-20T11:55:09.143800
1,553,082,909.1438
14,195
pythondev
help
so you had to use lists of words for your categories. and you could iterate over every word in your sentence, or you build some comprehensions around that
2019-03-20T11:55:11.143900
Shawana
pythondev_help_Shawana_2019-03-20T11:55:11.143900
1,553,082,911.1439
14,196
pythondev
help
you want to classify sentences as belonging to a particular 'class' such as "fitness", "fashion", ...
2019-03-20T11:55:38.144500
Bethany
pythondev_help_Bethany_2019-03-20T11:55:38.144500
1,553,082,938.1445
14,197
pythondev
help
sounds about right yeah :slightly_smiling_face:
2019-03-20T11:55:49.144700
Lucius
pythondev_help_Lucius_2019-03-20T11:55:49.144700
1,553,082,949.1447
14,198
pythondev
help
great! This can be relatively complicated or straightforward. If you want good accuracy, it will be very complex. But what you describe could work for simple cases
2019-03-20T11:56:25.145500
Bethany
pythondev_help_Bethany_2019-03-20T11:56:25.145500
1,553,082,985.1455
14,199
pythondev
help
you can do things like split the words in the sentence, and check for overlap with your keyword file
2019-03-20T11:57:02.146500
Bethany
pythondev_help_Bethany_2019-03-20T11:57:02.146500
1,553,083,022.1465
14,200
pythondev
help
yeah I've noticed that. Whenever I was google'ing these things I would end up in machine learning :stuck_out_tongue: Which is way out of my comfort zone atm
2019-03-20T11:57:19.146900
Lucius
pythondev_help_Lucius_2019-03-20T11:57:19.146900
1,553,083,039.1469
14,201
pythondev
help
yes this is usually done by neural nets/deep learning nowadays
2019-03-20T11:57:31.147300
Bethany
pythondev_help_Bethany_2019-03-20T11:57:31.147300
1,553,083,051.1473
14,202
pythondev
help
so, use count() and iterate
2019-03-20T11:57:36.147400
Shawana
pythondev_help_Shawana_2019-03-20T11:57:36.147400
1,553,083,056.1474
14,203
pythondev
help
try your approach first and see if it works
2019-03-20T11:57:50.147700
Bethany
pythondev_help_Bethany_2019-03-20T11:57:50.147700
1,553,083,070.1477
14,204
pythondev
help
look into `collections.Counter`
2019-03-20T11:58:10.148200
Bethany
pythondev_help_Bethany_2019-03-20T11:58:10.148200
1,553,083,090.1482
14,205
pythondev
help
sounds good! Thanks to the both of you for your input!
2019-03-20T12:00:02.148500
Lucius
pythondev_help_Lucius_2019-03-20T12:00:02.148500
1,553,083,202.1485
14,206
pythondev
help
if you find it's not enough, feel free to ask <#C0JB9ATQV|data_science>
2019-03-20T12:01:30.148800
Bethany
pythondev_help_Bethany_2019-03-20T12:01:30.148800
1,553,083,290.1488
14,207
pythondev
help
:thumbsup:
2019-03-20T12:03:33.149000
Lucius
pythondev_help_Lucius_2019-03-20T12:03:33.149000
1,553,083,413.149
14,208
pythondev
help
but i guess this approach would require me to use multiple keywords files/collections right?
2019-03-20T12:03:58.149400
Lucius
pythondev_help_Lucius_2019-03-20T12:03:58.149400
1,553,083,438.1494
14,209
pythondev
help
the tricky thing may be using a file as a database for niches -&gt; keywords
2019-03-20T12:05:49.150300
Jorge
pythondev_help_Jorge_2019-03-20T12:05:49.150300
1,553,083,549.1503
14,210
pythondev
help
The trick will be to automatically group the words, since it is near impossible to know these groups of words beforehand. I'd probably look into some hierarchical clustering, prior to a great layer of normalization (remove words like "the", "a", put all verbs in present form, transform plurals into singulars, etc)
2019-03-20T12:10:52.153700
Contessa
pythondev_help_Contessa_2019-03-20T12:10:52.153700
1,553,083,852.1537
14,211
pythondev
help
sounds like i found myself quite a challenge :smiling_face_with_smiling_eyes_and_hand_covering_mouth:
2019-03-20T12:15:04.154200
Lucius
pythondev_help_Lucius_2019-03-20T12:15:04.154200
1,553,084,104.1542
14,212
pythondev
help
there are some natural language processing libraries that could help: <https://www.nltk.org/book/ch05.html>
2019-03-20T12:17:00.155000
Genesis
pythondev_help_Genesis_2019-03-20T12:17:00.155000
1,553,084,220.155
14,213
pythondev
help
look into topic modelling
2019-03-20T13:09:13.156200
Bethany
pythondev_help_Bethany_2019-03-20T13:09:13.156200
1,553,087,353.1562
14,214
pythondev
help
Sorry if this is too broad, but I'm looking for some guidance with deployment options. I've been writing various Python utilities for a few years and I'm now gearing up to deploy my first flask app. I'm looking into various options and I'm having some trouble determining why I'd choose one option over another. It's my hope that I can share a little about what I'm trying to do and someone can point me in the right direction. I'm specifically interested to hear about the preferred way to get my code onto the production server (and updated as needed) and what I should be using to run this in production.
2019-03-20T14:16:27.156700
Angila
pythondev_help_Angila_2019-03-20T14:16:27.156700
1,553,091,387.1567
14,215
pythondev
help
This is a very low traffic app that will be hosted locally on a centos box and only accessible on our network. It's a simple web-based UI that take a JSON file as an input and returns a tar file containing 10 or so files (XML, various text files, epub). The code is managed in a git repository.
2019-03-20T14:17:01.156900
Angila
pythondev_help_Angila_2019-03-20T14:17:01.156900
1,553,091,421.1569
14,216
pythondev
help
If it's small and being hosted locally you could probably just install Apache and WSGI_Mod and do it all yourselff
2019-03-20T14:18:47.158000
Claudine
pythondev_help_Claudine_2019-03-20T14:18:47.158000
1,553,091,527.158
14,217
pythondev
help
I've considered just pulling from the repo to get the code on the server, but that doesn't feel like the right call. I've looked into setuptools, but that seems like it's intended to solve a different set of problems.
2019-03-20T14:18:48.158200
Angila
pythondev_help_Angila_2019-03-20T14:18:48.158200
1,553,091,528.1582
14,218
pythondev
help
to me it actually sounds like the right call
2019-03-20T14:19:09.159100
Carlo
pythondev_help_Carlo_2019-03-20T14:19:09.159100
1,553,091,549.1591
14,219
pythondev
help
one simple option: pull into a "cache" folder, and copy into a release folder
2019-03-20T14:19:35.160600
Joette
pythondev_help_Joette_2019-03-20T14:19:35.160600
1,553,091,575.1606
14,220