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
Thanks guys! I’ll look into doing the separate module now
2017-12-19T14:28:23.000486
Rosamaria
pythondev_help_Rosamaria_2017-12-19T14:28:23.000486
1,513,693,703.000486
104,903
pythondev
help
much appreciated! <@Myong>++ <@Meg>++ <@Suellen>++
2017-12-19T14:28:37.000307
Rosamaria
pythondev_help_Rosamaria_2017-12-19T14:28:37.000307
1,513,693,717.000307
104,904
pythondev
help
:thumbsup: '
2017-12-19T14:29:06.000505
Meg
pythondev_help_Meg_2017-12-19T14:29:06.000505
1,513,693,746.000505
104,905
pythondev
help
FYI, instead of using a karmabot or something with `++`, we use tacos
2017-12-19T14:29:23.000379
Meg
pythondev_help_Meg_2017-12-19T14:29:23.000379
1,513,693,763.000379
104,906
pythondev
help
`@name :taco:`
2017-12-19T14:29:35.000008
Meg
pythondev_help_Meg_2017-12-19T14:29:35.000008
1,513,693,775.000008
104,907
pythondev
help
just for reference :smile:
2017-12-19T14:29:46.000511
Meg
pythondev_help_Meg_2017-12-19T14:29:46.000511
1,513,693,786.000511
104,908
pythondev
help
<@Meg> :taco: <@Myong> :taco: <@Suellen> :taco:
2017-12-19T14:29:55.000521
Rosamaria
pythondev_help_Rosamaria_2017-12-19T14:29:55.000521
1,513,693,795.000521
104,909
pythondev
help
naturally naturally
2017-12-19T14:29:57.000666
Rosamaria
pythondev_help_Rosamaria_2017-12-19T14:29:57.000666
1,513,693,797.000666
104,910
pythondev
help
:slightly_smiling_face:
2017-12-19T14:30:03.000419
Myong
pythondev_help_Myong_2017-12-19T14:30:03.000419
1,513,693,803.000419
104,911
pythondev
help
:tada:
2017-12-19T14:30:07.000188
Suellen
pythondev_help_Suellen_2017-12-19T14:30:07.000188
1,513,693,807.000188
104,912
pythondev
help
nom nom nom :slightly_smiling_face:
2017-12-19T14:30:21.000029
Meg
pythondev_help_Meg_2017-12-19T14:30:21.000029
1,513,693,821.000029
104,913
pythondev
help
Truly a Taco Tuesday!
2017-12-19T14:30:35.000799
Suellen
pythondev_help_Suellen_2017-12-19T14:30:35.000799
1,513,693,835.000799
104,914
pythondev
help
:wink:
2017-12-19T14:30:38.000046
Rosamaria
pythondev_help_Rosamaria_2017-12-19T14:30:38.000046
1,513,693,838.000046
104,915
pythondev
help
Thanks dudes
2017-12-19T14:30:39.000433
Rosamaria
pythondev_help_Rosamaria_2017-12-19T14:30:39.000433
1,513,693,839.000433
104,916
pythondev
help
love this slack team.
2017-12-19T14:30:43.000556
Rosamaria
pythondev_help_Rosamaria_2017-12-19T14:30:43.000556
1,513,693,843.000556
104,917
pythondev
help
I usually hangout in <#C0JB9ATQV|data_science> but finding myself writing python unrelated to DS now as well
2017-12-19T14:30:57.000413
Rosamaria
pythondev_help_Rosamaria_2017-12-19T14:30:57.000413
1,513,693,857.000413
104,918
pythondev
help
Yo I got tacos earlier. Still one left
2017-12-19T14:31:05.000155
Myong
pythondev_help_Myong_2017-12-19T14:31:05.000155
1,513,693,865.000155
104,919
pythondev
help
So I am setting up a postgresql db for the first time and I figured out that it creates a new postgres user that you use to access the interactive shell and if I want to access the db with psycopg2 then I also need to run my python script as the postgres user, however this is annoying given the setup I have in my serer...
2017-12-19T14:42:31.000254
Lory
pythondev_help_Lory_2017-12-19T14:42:31.000254
1,513,694,551.000254
104,920
pythondev
help
you want to edit the `pg_hba.conf` file
2017-12-19T14:43:46.000395
Meg
pythondev_help_Meg_2017-12-19T14:43:46.000395
1,513,694,626.000395
104,921
pythondev
help
<https://www.postgresql.org/docs/9.1/static/auth-pg-hba-conf.html>
2017-12-19T14:43:47.000283
Meg
pythondev_help_Meg_2017-12-19T14:43:47.000283
1,513,694,627.000283
104,922
pythondev
help
Alternatively you can create a database level user rather than use a system based user
2017-12-19T14:44:20.000211
Antionette
pythondev_help_Antionette_2017-12-19T14:44:20.000211
1,513,694,660.000211
104,923
pythondev
help
<https://www.postgresql.org/docs/8.0/static/user-manag.html#DATABASE-USERS>
2017-12-19T14:44:21.000431
Antionette
pythondev_help_Antionette_2017-12-19T14:44:21.000431
1,513,694,661.000431
104,924
pythondev
help
there is only one user on the server and it is in charge of running everything since this isn't something anyone will be logging into on a regular basis
2017-12-19T14:45:10.000701
Lory
pythondev_help_Lory_2017-12-19T14:45:10.000701
1,513,694,710.000701
104,925
pythondev
help
It is just a few logging scripts I need to run, a small webserver to server up an API and a few daemons, had I known postgres created a user I would of just cheated and written everything under that postgres user but now I'm pretty far down the line and decided now was a good time to learn psql and switch off mysql
2017-12-19T14:46:36.000305
Lory
pythondev_help_Lory_2017-12-19T14:46:36.000305
1,513,694,796.000305
104,926
pythondev
help
Oh that's interesting <@Antionette> that's probably what I want to do
2017-12-19T14:52:05.000204
Lory
pythondev_help_Lory_2017-12-19T14:52:05.000204
1,513,695,125.000204
104,927
pythondev
help
<@Frieda> Thanks man! I was able to pull in a senior dev to walk me through it all step by step. Going to read through the resource you provided later :grimacing:
2017-12-19T14:59:15.000256
Russ
pythondev_help_Russ_2017-12-19T14:59:15.000256
1,513,695,555.000256
104,928
pythondev
help
Trying to hook up a mongo db with a api for my client side to run algorithms. Any best practices/architecture I should take into account?
2017-12-19T15:48:17.000150
Jamaal
pythondev_help_Jamaal_2017-12-19T15:48:17.000150
1,513,698,497.00015
104,929
pythondev
help
use postgres
2017-12-19T15:48:39.000286
Joann
pythondev_help_Joann_2017-12-19T15:48:39.000286
1,513,698,519.000286
104,930
pythondev
help
Do you prefer it over Mongodb?
2017-12-19T15:49:22.000579
Jamaal
pythondev_help_Jamaal_2017-12-19T15:49:22.000579
1,513,698,562.000579
104,931
pythondev
help
yes
2017-12-19T15:49:31.000459
Joann
pythondev_help_Joann_2017-12-19T15:49:31.000459
1,513,698,571.000459
104,932
pythondev
help
boo I got Mongo to work. Will look at the docs for Postgres. Any tips on a simple api I can use?
2017-12-19T15:50:10.000266
Jamaal
pythondev_help_Jamaal_2017-12-19T15:50:10.000266
1,513,698,610.000266
104,933
pythondev
help
Normally I would google something like this, but wanted to ask people on here to get some feedback. Do not feel like getting hacked.
2017-12-19T15:50:58.000209
Jamaal
pythondev_help_Jamaal_2017-12-19T15:50:58.000209
1,513,698,658.000209
104,934
pythondev
help
a simple API for what tho?
2017-12-19T15:51:33.000287
Joann
pythondev_help_Joann_2017-12-19T15:51:33.000287
1,513,698,693.000287
104,935
pythondev
help
currently we have a mongo db instance with user data that needs to call a different db to get a score for a candidate.
2017-12-19T15:54:40.000321
Jamaal
pythondev_help_Jamaal_2017-12-19T15:54:40.000321
1,513,698,880.000321
104,936
pythondev
help
So ideally the algorithm db would get information and send back a score for the client side db to show
2017-12-19T15:55:14.000616
Jamaal
pythondev_help_Jamaal_2017-12-19T15:55:14.000616
1,513,698,914.000616
104,937
pythondev
help
you can whip up a custom flask API in no time, dunno how reasonable that is for you
2017-12-19T16:02:22.000621
Ozie
pythondev_help_Ozie_2017-12-19T16:02:22.000621
1,513,699,342.000621
104,938
pythondev
help
just route http requests directly to an SQL call
2017-12-19T16:02:38.000026
Ozie
pythondev_help_Ozie_2017-12-19T16:02:38.000026
1,513,699,358.000026
104,939
pythondev
help
i went from 0 python knowledge to a working API in a sunday afternoon
2017-12-19T16:02:53.000433
Ozie
pythondev_help_Ozie_2017-12-19T16:02:53.000433
1,513,699,373.000433
104,940
pythondev
help
mine in particular just calls stored procedures so i don't have to worry about SQL injection
2017-12-19T16:03:13.000103
Ozie
pythondev_help_Ozie_2017-12-19T16:03:13.000103
1,513,699,393.000103
104,941
pythondev
help
apache + mod_wsgi + pyenv + flask-restfull
2017-12-19T16:03:46.000433
Ozie
pythondev_help_Ozie_2017-12-19T16:03:46.000433
1,513,699,426.000433
104,942
pythondev
help
:point_up: + postgres :smile:
2017-12-19T16:13:19.000380
Ciera
pythondev_help_Ciera_2017-12-19T16:13:19.000380
1,513,699,999.00038
104,943
pythondev
help
hi all, been struggling with the following issue for a few hours now, I'm trying to use the variables created in the while loop, ive tried setting them to none first, global, and a bunch of other ideas, but im stuck. its a simple image editing program that creates multiple squares from a single image. It runs, but fail...
2017-12-19T17:12:27.000017
Fabian
pythondev_help_Fabian_2017-12-19T17:12:27.000017
1,513,703,547.000017
104,944
pythondev
help
how can I change a iterator in a for loop ? ``` for i in range(10): if i == 2: i+= 2 print(i) ```
2017-12-19T17:14:15.000215
Dimple
pythondev_help_Dimple_2017-12-19T17:14:15.000215
1,513,703,655.000215
104,945
pythondev
help
<@Dimple> <https://stackoverflow.com/questions/8544559/how-to-correctly-modify-the-iterator-of-a-loop-in-python-from-within-the-loop>
2017-12-19T17:15:13.000330
Fabian
pythondev_help_Fabian_2017-12-19T17:15:13.000330
1,513,703,713.00033
104,946
pythondev
help
I had to look that up today for something else
2017-12-19T17:15:42.000074
Fabian
pythondev_help_Fabian_2017-12-19T17:15:42.000074
1,513,703,742.000074
104,947
pythondev
help
<@Fabian> I saw this post but is there a way to do it without use ```del``` or ```remove()``` instructions ?
2017-12-19T17:17:22.000254
Dimple
pythondev_help_Dimple_2017-12-19T17:17:22.000254
1,513,703,842.000254
104,948
pythondev
help
I think the way you used it should work? let me open up a console
2017-12-19T17:18:22.000630
Fabian
pythondev_help_Fabian_2017-12-19T17:18:22.000630
1,513,703,902.00063
104,949
pythondev
help
yep
2017-12-19T17:20:09.000384
Fabian
pythondev_help_Fabian_2017-12-19T17:20:09.000384
1,513,704,009.000384
104,950
pythondev
help
<@Fabian> it doesn't work (the way I used). This works on c++.
2017-12-19T17:20:09.000445
Dimple
pythondev_help_Dimple_2017-12-19T17:20:09.000445
1,513,704,009.000445
104,951
pythondev
help
i just got it to work on the console
2017-12-19T17:20:25.000149
Fabian
pythondev_help_Fabian_2017-12-19T17:20:25.000149
1,513,704,025.000149
104,952
pythondev
help
```&gt;&gt;&gt; for i in range(10): ... if i == 2: ... i+=2 ... print(i) ... 4 &gt;&gt;&gt;```
2017-12-19T17:20:48.000077
Fabian
pythondev_help_Fabian_2017-12-19T17:20:48.000077
1,513,704,048.000077
104,953
pythondev
help
make sure you're using the right indentation
2017-12-19T17:22:16.000194
Fabian
pythondev_help_Fabian_2017-12-19T17:22:16.000194
1,513,704,136.000194
104,954
pythondev
help
If anyone is able to help me out with this, I would totally appreciate it
2017-12-19T17:23:59.000151
Fabian
pythondev_help_Fabian_2017-12-19T17:23:59.000151
1,513,704,239.000151
104,955
pythondev
help
<@Fabian> the output should be this (c++ on left): <https://i.imgur.com/BXmUZIo.png>
2017-12-19T17:38:01.000147
Dimple
pythondev_help_Dimple_2017-12-19T17:38:01.000147
1,513,705,081.000147
104,956
pythondev
help
ops. right
2017-12-19T17:38:10.000270
Dimple
pythondev_help_Dimple_2017-12-19T17:38:10.000270
1,513,705,090.00027
104,957
pythondev
help
ahh then you need to do something different in python
2017-12-19T17:38:32.000452
Fabian
pythondev_help_Fabian_2017-12-19T17:38:32.000452
1,513,705,112.000452
104,958
pythondev
help
yep.. I will do a while loop. :slightly_smiling_face:
2017-12-19T17:39:26.000404
Dimple
pythondev_help_Dimple_2017-12-19T17:39:26.000404
1,513,705,166.000404
104,959
pythondev
help
there you go
2017-12-19T17:39:34.000540
Fabian
pythondev_help_Fabian_2017-12-19T17:39:34.000540
1,513,705,174.00054
104,960
pythondev
help
<@Fabian> I found a way to do it with the same way of c++: ``` myList = iter(range(10)) for i in myList: if i == 1: myList.__next__() myList.__next__() print(i, end="") ``` `output: 1456789`
2017-12-19T17:53:40.000149
Dimple
pythondev_help_Dimple_2017-12-19T17:53:40.000149
1,513,706,020.000149
104,961
pythondev
help
a little ugly but works.
2017-12-19T17:54:08.000070
Dimple
pythondev_help_Dimple_2017-12-19T17:54:08.000070
1,513,706,048.00007
104,962
pythondev
help
yeah i don't even know c++ so thats over my head lol
2017-12-19T17:54:32.000232
Fabian
pythondev_help_Fabian_2017-12-19T17:54:32.000232
1,513,706,072.000232
104,963
pythondev
help
is there such a thing as an API schema query, I know API are (loosely) convention based. Is there some common query to return the schema?
2017-12-19T18:20:11.000179
Seema
pythondev_help_Seema_2017-12-19T18:20:11.000179
1,513,707,611.000179
104,964
pythondev
help
that's what swagger and the like are for, right?
2017-12-19T18:20:46.000357
Frieda
pythondev_help_Frieda_2017-12-19T18:20:46.000357
1,513,707,646.000357
104,965
pythondev
help
okay, I'll go check it out
2017-12-19T18:20:58.000346
Seema
pythondev_help_Seema_2017-12-19T18:20:58.000346
1,513,707,658.000346
104,966
pythondev
help
Hi! I'm wondering if anyone could help me out with updating SciPy to the newest version. I've looked all over on how to update it, but I'm stuck. I'm running a Mac, happy to provide any more details!
2017-12-19T18:21:11.000003
Lakeesha
pythondev_help_Lakeesha_2017-12-19T18:21:11.000003
1,513,707,671.000003
104,967
pythondev
help
<@Frieda> I'm thinking on the opposite side, as the consumer, is there a way to ask Swagger, can I see your schema?
2017-12-19T18:22:00.000037
Seema
pythondev_help_Seema_2017-12-19T18:22:00.000037
1,513,707,720.000037
104,968
pythondev
help
i could be completely wrong re: swagger
2017-12-19T18:22:01.000022
Frieda
pythondev_help_Frieda_2017-12-19T18:22:01.000022
1,513,707,721.000022
104,969
pythondev
help
<@Seema> i really doubt there's a standard for that. a lot of people try to hide their API
2017-12-19T18:22:28.000030
Frieda
pythondev_help_Frieda_2017-12-19T18:22:28.000030
1,513,707,748.00003
104,970
pythondev
help
or in my case, hey government body with public API, your documentation is meh, just show me your structure
2017-12-19T18:22:43.000088
Seema
pythondev_help_Seema_2017-12-19T18:22:43.000088
1,513,707,763.000088
104,971
pythondev
help
it'd be awesome if you could do `/api/schema.json` and get a map of the api
2017-12-19T18:24:17.000259
Frieda
pythondev_help_Frieda_2017-12-19T18:24:17.000259
1,513,707,857.000259
104,972
pythondev
help
yes! exactly
2017-12-19T18:24:28.000109
Seema
pythondev_help_Seema_2017-12-19T18:24:28.000109
1,513,707,868.000109
104,973
pythondev
help
yeah, i don't think that exists
2017-12-19T18:26:49.000052
Frieda
pythondev_help_Frieda_2017-12-19T18:26:49.000052
1,513,708,009.000052
104,974
pythondev
help
but i'd happily sign a petition
2017-12-19T18:26:53.000354
Frieda
pythondev_help_Frieda_2017-12-19T18:26:53.000354
1,513,708,013.000354
104,975
pythondev
help
```&gt;&gt;&gt; resp = requests.get(url) &gt;&gt;&gt; resp.raise_for_status &lt;bound method Response.raise_for_status of &lt;Response [500]&gt;&gt; ```
2017-12-19T18:27:20.000231
Seema
pythondev_help_Seema_2017-12-19T18:27:20.000231
1,513,708,040.000231
104,976
pythondev
help
¯\_(ツ)_/¯
2017-12-19T18:27:39.000069
Seema
pythondev_help_Seema_2017-12-19T18:27:39.000069
1,513,708,059.000069
104,977
pythondev
help
just bumping this again now that there's more activity
2017-12-19T18:31:35.000411
Fabian
pythondev_help_Fabian_2017-12-19T18:31:35.000411
1,513,708,295.000411
104,978
pythondev
help
which variables and in what manner do you want to use them?
2017-12-19T18:33:52.000339
Seema
pythondev_help_Seema_2017-12-19T18:33:52.000339
1,513,708,432.000339
104,979
pythondev
help
I'm a bit confused about the ingestion, the instr.txt gets opened and read once, correct? If so, your `while line:` is indented -&gt; performed under the open(). Is that intended for some reason...???
2017-12-19T18:40:23.000289
Seema
pythondev_help_Seema_2017-12-19T18:40:23.000289
1,513,708,823.000289
104,980
pythondev
help
I dont think so, it's the variables at the bottom
2017-12-19T18:43:25.000031
Fabian
pythondev_help_Fabian_2017-12-19T18:43:25.000031
1,513,709,005.000031
104,981
pythondev
help
`major_columns, major_rows` etc
2017-12-19T18:43:53.000145
Fabian
pythondev_help_Fabian_2017-12-19T18:43:53.000145
1,513,709,033.000145
104,982
pythondev
help
so right now, for example, all the arguments to range at the bottom, are undefined apparently
2017-12-19T18:44:50.000148
Fabian
pythondev_help_Fabian_2017-12-19T18:44:50.000148
1,513,709,090.000148
104,983
pythondev
help
okay.... I'm starting to wrap my head around what you're doing, you're attempting to manually, line by line, assign the values
2017-12-19T18:49:24.000010
Seema
pythondev_help_Seema_2017-12-19T18:49:24.000010
1,513,709,364.00001
104,984
pythondev
help
use a list accumulator, close out the while loop and then you can iterate through the accumulator. Or you'd really rather skip the iterator, you can straight assign the values manually
2017-12-19T18:51:55.000245
Seema
pythondev_help_Seema_2017-12-19T18:51:55.000245
1,513,709,515.000245
104,985
pythondev
help
could you show me an example of what you mean? how would i assign the values manually?
2017-12-19T18:55:06.000175
Fabian
pythondev_help_Fabian_2017-12-19T18:55:06.000175
1,513,709,706.000175
104,986
pythondev
help
```lines = [] with open("instr.txt") as f: for line in f: lines.append(f) ```
2017-12-19T18:55:10.000108
Seema
pythondev_help_Seema_2017-12-19T18:55:10.000108
1,513,709,710.000108
104,987
pythondev
help
then you could go with lines[0], lines[1], it's not the most pythonic way but it'll get you there
2017-12-19T18:56:24.000042
Seema
pythondev_help_Seema_2017-12-19T18:56:24.000042
1,513,709,784.000042
104,988
pythondev
help
ok I think I can wrap my head around that, may ask you one or two related questions if i get stuck
2017-12-19T18:57:06.000082
Fabian
pythondev_help_Fabian_2017-12-19T18:57:06.000082
1,513,709,826.000082
104,989
pythondev
help
go ahead and ask the room, I may be returning a gift that I forgot to return earlier today (doh!)
2017-12-19T18:57:38.000349
Seema
pythondev_help_Seema_2017-12-19T18:57:38.000349
1,513,709,858.000349
104,990
pythondev
help
During the while loop, you're re-assigning the same variable several times without doing anything to them
2017-12-19T18:58:48.000297
Corrinne
pythondev_help_Corrinne_2017-12-19T18:58:48.000297
1,513,709,928.000297
104,991
pythondev
help
Might be worth reading the document in. iterating over the lines using a for loop as <@Seema> suggested and making lists of items you need
2017-12-19T19:00:09.000420
Corrinne
pythondev_help_Corrinne_2017-12-19T19:00:09.000420
1,513,710,009.00042
104,992
pythondev
help
anyone has locking experience? this seems quite good: <https://gist.github.com/ionrock/3015700> (it will also delete stale locks)
2017-12-19T19:01:13.000075
Jesusa
pythondev_help_Jesusa_2017-12-19T19:01:13.000075
1,513,710,073.000075
104,993
pythondev
help
thank you guys, ill try screwing with it once I get pycharm to start up
2017-12-19T19:01:32.000041
Fabian
pythondev_help_Fabian_2017-12-19T19:01:32.000041
1,513,710,092.000041
104,994
pythondev
help
Probably worth throwing in a screenshot or sample of the `instr.txt` too
2017-12-19T19:02:37.000159
Corrinne
pythondev_help_Corrinne_2017-12-19T19:02:37.000159
1,513,710,157.000159
104,995
pythondev
help
oh i included that in the post
2017-12-19T19:03:49.000221
Fabian
pythondev_help_Fabian_2017-12-19T19:03:49.000221
1,513,710,229.000221
104,996
pythondev
help
its at the bottom
2017-12-19T19:03:52.000241
Fabian
pythondev_help_Fabian_2017-12-19T19:03:52.000241
1,513,710,232.000241
104,997
pythondev
help
Pycharm will undoubtedly start shouting at you haha
2017-12-19T19:03:58.000254
Corrinne
pythondev_help_Corrinne_2017-12-19T19:03:58.000254
1,513,710,238.000254
104,998
pythondev
help
hahah
2017-12-19T19:04:05.000304
Fabian
pythondev_help_Fabian_2017-12-19T19:04:05.000304
1,513,710,245.000304
104,999
pythondev
help
i see what you mean, was confused for a sec lol
2017-12-19T19:04:32.000072
Fabian
pythondev_help_Fabian_2017-12-19T19:04:32.000072
1,513,710,272.000072
105,000
pythondev
help
Ok i see the file sample
2017-12-19T19:04:42.000117
Corrinne
pythondev_help_Corrinne_2017-12-19T19:04:42.000117
1,513,710,282.000117
105,001
pythondev
help
here's a post that goes a little more in depth as to my intent with an example source file <https://codereview.stackexchange.com/questions/183187/crop-multiple-images-from-single-image/183222#183222>
2017-12-19T19:05:32.000154
Fabian
pythondev_help_Fabian_2017-12-19T19:05:32.000154
1,513,710,332.000154
105,002