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
same 3.6+
2017-08-10T11:02:35.208456
Beula
pythondev_help_Beula_2017-08-10T11:02:35.208456
1,502,362,955.208456
89,403
pythondev
help
thanks guys
2017-08-10T11:04:56.306170
Ciera
pythondev_help_Ciera_2017-08-10T11:04:56.306170
1,502,363,096.30617
89,404
pythondev
help
<@Meghan> <@Gabriele> :taco:
2017-08-10T11:05:05.312195
Ciera
pythondev_help_Ciera_2017-08-10T11:05:05.312195
1,502,363,105.312195
89,405
pythondev
help
you have enough <@Beula> :smile:
2017-08-10T11:05:27.327309
Ciera
pythondev_help_Ciera_2017-08-10T11:05:27.327309
1,502,363,127.327309
89,406
pythondev
help
You're discriminating because I am the 1%!?
2017-08-10T11:05:42.337401
Beula
pythondev_help_Beula_2017-08-10T11:05:42.337401
1,502,363,142.337401
89,407
pythondev
help
any tacos meant for <@Beula> can be sent my way
2017-08-10T11:06:04.353297
Patty
pythondev_help_Patty_2017-08-10T11:06:04.353297
1,502,363,164.353297
89,408
pythondev
help
you just need to do a MIITM reroute for <@Beula> tacos
2017-08-10T11:06:38.376438
Meg
pythondev_help_Meg_2017-08-10T11:06:38.376438
1,502,363,198.376438
89,409
pythondev
help
<@Meg> maybe i have one now :slightly_smiling_face:
2017-08-10T11:23:34.049180
Patty
pythondev_help_Patty_2017-08-10T11:23:34.049180
1,502,364,214.04918
89,410
pythondev
help
that’s what happens when your taco king.
2017-08-10T11:38:01.633158
Johana
pythondev_help_Johana_2017-08-10T11:38:01.633158
1,502,365,081.633158
89,411
pythondev
help
ppl stop giving you tacos
2017-08-10T11:38:06.636401
Johana
pythondev_help_Johana_2017-08-10T11:38:06.636401
1,502,365,086.636401
89,412
pythondev
help
the problem with this whole taco thing is that it just makes me want tacos. :confused:
2017-08-10T11:52:49.212826
Junita
pythondev_help_Junita_2017-08-10T11:52:49.212826
1,502,365,969.212826
89,413
pythondev
help
and they aren’t exactly a thing in germany.
2017-08-10T11:53:02.221122
Junita
pythondev_help_Junita_2017-08-10T11:53:02.221122
1,502,365,982.221122
89,414
pythondev
help
You could maybe start a trend there? Be the hipster of tacoism
2017-08-10T11:54:04.262070
Beula
pythondev_help_Beula_2017-08-10T11:54:04.262070
1,502,366,044.26207
89,415
pythondev
help
be the first currywurst taco entrepreneur :smile:
2017-08-10T11:55:29.318559
Tandra
pythondev_help_Tandra_2017-08-10T11:55:29.318559
1,502,366,129.318559
89,416
pythondev
help
some bastard started a “mission-style” burrito shop here in town
2017-08-10T12:17:09.135774
Junita
pythondev_help_Junita_2017-08-10T12:17:09.135774
1,502,367,429.135774
89,417
pythondev
help
and he says when in California he “saw” a lot of burrito shops and wanted to open one here
2017-08-10T12:18:04.167586
Junita
pythondev_help_Junita_2017-08-10T12:18:04.167586
1,502,367,484.167586
89,418
pythondev
help
and the decorations are quite authentic california, but apparently he saw a bunch but never ate at any because they are weird
2017-08-10T12:18:22.178410
Junita
pythondev_help_Junita_2017-08-10T12:18:22.178410
1,502,367,502.17841
89,419
pythondev
help
Maybe trying to adapt it for the common European pallet?
2017-08-10T12:19:53.232986
Beula
pythondev_help_Beula_2017-08-10T12:19:53.232986
1,502,367,593.232986
89,420
pythondev
help
I mean I get doing things like making it less spicy so people here will eat it
2017-08-10T12:20:29.254824
Junita
pythondev_help_Junita_2017-08-10T12:20:29.254824
1,502,367,629.254824
89,421
pythondev
help
but for example quesadillas - what are the only two damn things you need for a quesadilla?
2017-08-10T12:20:45.263959
Junita
pythondev_help_Junita_2017-08-10T12:20:45.263959
1,502,367,645.263959
89,422
pythondev
help
Meat, cheese and tortilla :troll:
2017-08-10T12:21:16.282552
Beula
pythondev_help_Beula_2017-08-10T12:21:16.282552
1,502,367,676.282552
89,423
pythondev
help
the cheese, and a tortilla. and I mean everybody loves simple stuff like that, but he put this weird stuff called kräuterquark in it instead
2017-08-10T12:21:28.289982
Junita
pythondev_help_Junita_2017-08-10T12:21:28.289982
1,502,367,688.289982
89,424
pythondev
help
Do you know any similarities to that?
2017-08-10T12:21:56.306125
Beula
pythondev_help_Beula_2017-08-10T12:21:56.306125
1,502,367,716.306125
89,425
pythondev
help
All the Google results are in German!
2017-08-10T12:22:43.334368
Beula
pythondev_help_Beula_2017-08-10T12:22:43.334368
1,502,367,763.334368
89,426
pythondev
help
it’s kind of hard to explain
2017-08-10T12:22:45.335590
Junita
pythondev_help_Junita_2017-08-10T12:22:45.335590
1,502,367,765.33559
89,427
pythondev
help
Looks like a kind of dip or sauce?
2017-08-10T12:22:58.343506
Beula
pythondev_help_Beula_2017-08-10T12:22:58.343506
1,502,367,778.343506
89,428
pythondev
help
I’d say closer to sour cream than cheese
2017-08-10T12:23:03.346075
Junita
pythondev_help_Junita_2017-08-10T12:23:03.346075
1,502,367,783.346075
89,429
pythondev
help
Sounds a bit odd for quesadilla
2017-08-10T12:25:44.443338
Beula
pythondev_help_Beula_2017-08-10T12:25:44.443338
1,502,367,944.443338
89,430
pythondev
help
Hi Pythoneers, i have this problem and want to know if it has happened to any of you : when executing `nosetest` in my machine runs slower than in other computers, specially mac, i'm speaking about 4x or 5x times slower, the following image are my computer specifications
2017-08-10T13:12:16.065291
Greta
pythondev_help_Greta_2017-08-10T13:12:16.065291
1,502,370,736.065291
89,431
pythondev
help
in sql, how to make it that we have a column with type id and a column of type text
2017-08-10T14:19:03.458733
Jesusa
pythondev_help_Jesusa_2017-08-10T14:19:03.458733
1,502,374,743.458733
89,432
pythondev
help
i want the text one to be unique
2017-08-10T14:19:13.465016
Jesusa
pythondev_help_Jesusa_2017-08-10T14:19:13.465016
1,502,374,753.465016
89,433
pythondev
help
(so pretty much act like an id)
2017-08-10T14:19:21.469395
Jesusa
pythondev_help_Jesusa_2017-08-10T14:19:21.469395
1,502,374,761.469395
89,434
pythondev
help
but still have a numerical id as well
2017-08-10T14:19:24.471471
Jesusa
pythondev_help_Jesusa_2017-08-10T14:19:24.471471
1,502,374,764.471471
89,435
pythondev
help
empty db, insert "a", `(1, "a")`, then insert "a" should cause a conflict
2017-08-10T14:20:19.503795
Jesusa
pythondev_help_Jesusa_2017-08-10T14:20:19.503795
1,502,374,819.503795
89,436
pythondev
help
what flavor of sql? you can probably add a unique index on it
2017-08-10T14:23:56.631916
Antionette
pythondev_help_Antionette_2017-08-10T14:23:56.631916
1,502,375,036.631916
89,437
pythondev
help
for example in mysql if the table is already created you could use (<https://dev.mysql.com/doc/refman/5.7/en/create-index.html>) and if you are making the table then with the unique constraint (<https://dev.mysql.com/doc/refman/5.7/en/create-table.html>)
2017-08-10T14:27:49.769898
Antionette
pythondev_help_Antionette_2017-08-10T14:27:49.769898
1,502,375,269.769898
89,438
pythondev
help
postgres, hoping it applies to sqlite too
2017-08-10T14:32:37.944651
Jesusa
pythondev_help_Jesusa_2017-08-10T14:32:37.944651
1,502,375,557.944651
89,439
pythondev
help
``` create table table_name ( id SERIAL, other TEXT UNIQUE ); ```
2017-08-10T14:33:22.970681
Beula
pythondev_help_Beula_2017-08-10T14:33:22.970681
1,502,375,602.970681
89,440
pythondev
help
sqlite doesn't have the SERIAL type though
2017-08-10T14:33:33.978559
Beula
pythondev_help_Beula_2017-08-10T14:33:33.978559
1,502,375,613.978559
89,441
pythondev
help
if you expect that to get huge, use `BIGSERIAL`
2017-08-10T14:33:41.983446
Beula
pythondev_help_Beula_2017-08-10T14:33:41.983446
1,502,375,621.983446
89,442
pythondev
help
meh, I was indeed going with serial, didn't know it is not going to be supported in sqlite
2017-08-10T14:34:48.023826
Jesusa
pythondev_help_Jesusa_2017-08-10T14:34:48.023826
1,502,375,688.023826
89,443
pythondev
help
so thanks for pointing it out :slightly_smiling_face:
2017-08-10T14:34:56.028876
Jesusa
pythondev_help_Jesusa_2017-08-10T14:34:56.028876
1,502,375,696.028876
89,444
pythondev
help
are you not using an ORM?
2017-08-10T14:35:15.039541
Patty
pythondev_help_Patty_2017-08-10T14:35:15.039541
1,502,375,715.039541
89,445
pythondev
help
<https://sqlite.org/autoinc.html>
2017-08-10T14:35:44.056699
Antionette
pythondev_help_Antionette_2017-08-10T14:35:44.056699
1,502,375,744.056699
89,446
pythondev
help
<@Patty> In case I want to experiment in another language
2017-08-10T14:37:14.108852
Jesusa
pythondev_help_Jesusa_2017-08-10T14:37:14.108852
1,502,375,834.108852
89,447
pythondev
help
I was thinking using clojure + datomic
2017-08-10T14:37:59.134655
Jesusa
pythondev_help_Jesusa_2017-08-10T14:37:59.134655
1,502,375,879.134655
89,448
pythondev
help
lol I guess then i could still use ORM since sql doesnt work in datomic lol
2017-08-10T14:38:24.148995
Jesusa
pythondev_help_Jesusa_2017-08-10T14:38:24.148995
1,502,375,904.148995
89,449
pythondev
help
mm
2017-08-10T14:38:26.150290
Jesusa
pythondev_help_Jesusa_2017-08-10T14:38:26.150290
1,502,375,906.15029
89,450
pythondev
help
It's not a good argument huh, to be able to switch a language
2017-08-10T14:42:58.306263
Jesusa
pythondev_help_Jesusa_2017-08-10T14:42:58.306263
1,502,376,178.306263
89,451
pythondev
help
because then you'd change your code to the ORM in that language
2017-08-10T14:43:17.317611
Jesusa
pythondev_help_Jesusa_2017-08-10T14:43:17.317611
1,502,376,197.317611
89,452
pythondev
help
I think the main thing is whether or not you would use the migration features of the ORM
2017-08-10T14:43:54.339132
Antionette
pythondev_help_Antionette_2017-08-10T14:43:54.339132
1,502,376,234.339132
89,453
pythondev
help
but usually that's fairly separate anyway
2017-08-10T14:44:07.346436
Antionette
pythondev_help_Antionette_2017-08-10T14:44:07.346436
1,502,376,247.346436
89,454
pythondev
help
for instance you should have no problem using sql-alchemy or pony with an existing database
2017-08-10T14:45:13.383494
Antionette
pythondev_help_Antionette_2017-08-10T14:45:13.383494
1,502,376,313.383494
89,455
pythondev
help
even if you had been using that database with an existing codebase in a different language previously
2017-08-10T14:45:27.391917
Antionette
pythondev_help_Antionette_2017-08-10T14:45:27.391917
1,502,376,327.391917
89,456
pythondev
help
hmmm
2017-08-10T14:46:49.438842
Jesusa
pythondev_help_Jesusa_2017-08-10T14:46:49.438842
1,502,376,409.438842
89,457
pythondev
help
I have never done a migration and I always fear it
2017-08-10T14:46:56.443251
Jesusa
pythondev_help_Jesusa_2017-08-10T14:46:56.443251
1,502,376,416.443251
89,458
pythondev
help
I always prefer to just delete the database
2017-08-10T14:47:13.452636
Jesusa
pythondev_help_Jesusa_2017-08-10T14:47:13.452636
1,502,376,433.452636
89,459
pythondev
help
:confused:
2017-08-10T14:47:15.454292
Jesusa
pythondev_help_Jesusa_2017-08-10T14:47:15.454292
1,502,376,435.454292
89,460
pythondev
help
it's a scary habit when something I make would hit production
2017-08-10T14:47:30.463305
Jesusa
pythondev_help_Jesusa_2017-08-10T14:47:30.463305
1,502,376,450.463305
89,461
pythondev
help
I'd have no experience doing a migration
2017-08-10T14:47:43.470978
Jesusa
pythondev_help_Jesusa_2017-08-10T14:47:43.470978
1,502,376,463.470978
89,462
pythondev
help
<@Jesusa> I have CI always run all migrations to make sure they are compatible
2017-08-10T14:48:00.480934
Beula
pythondev_help_Beula_2017-08-10T14:48:00.480934
1,502,376,480.480934
89,463
pythondev
help
like just simply changing an existing column name or something
2017-08-10T14:48:36.501982
Jesusa
pythondev_help_Jesusa_2017-08-10T14:48:36.501982
1,502,376,516.501982
89,464
pythondev
help
You can use a number of technologies to do it, liquibase (java based), flyway (java based), alembic (python based), django ORM
2017-08-10T14:49:38.538053
Beula
pythondev_help_Beula_2017-08-10T14:49:38.538053
1,502,376,578.538053
89,465
pythondev
help
<https://github.com/pyslackers/website/blob/2bca4b29be32f51cd4c8b7663d757670be9cde65/.travis.yml#L18>
2017-08-10T14:49:53.546705
Beula
pythondev_help_Beula_2017-08-10T14:49:53.546705
1,502,376,593.546705
89,466
pythondev
help
ansible and docker huh
2017-08-10T14:51:13.593630
Jesusa
pythondev_help_Jesusa_2017-08-10T14:51:13.593630
1,502,376,673.59363
89,467
pythondev
help
it's a really nice example repo btw :slightly_smiling_face:
2017-08-10T14:51:38.608239
Jesusa
pythondev_help_Jesusa_2017-08-10T14:51:38.608239
1,502,376,698.608239
89,468
pythondev
help
Working on making it better overtime, the docker stuff isn't in prod yet :disappointed:
2017-08-10T14:53:47.681314
Beula
pythondev_help_Beula_2017-08-10T14:53:47.681314
1,502,376,827.681314
89,469
pythondev
help
what is the pythonic way to delete all files in a directory whose name contains a string belonging to a list?
2017-08-10T16:40:35.176270
Tameika
pythondev_help_Tameika_2017-08-10T16:40:35.176270
1,502,383,235.17627
89,470
pythondev
help
I have come across links to do it using grep, but wanted to use python to do this.
2017-08-10T16:41:08.193169
Tameika
pythondev_help_Tameika_2017-08-10T16:41:08.193169
1,502,383,268.193169
89,471
pythondev
help
<https://askubuntu.com/questions/443830/delete-all-files-whose-filenames-contain-a-particular-string>
2017-08-10T16:41:08.193492
Tameika
pythondev_help_Tameika_2017-08-10T16:41:08.193492
1,502,383,268.193492
89,472
pythondev
help
What have you tried <@Tameika> ? You can get pretty close without deleting any files to prove out your idea!
2017-08-10T16:47:37.399837
Beula
pythondev_help_Beula_2017-08-10T16:47:37.399837
1,502,383,657.399837
89,473
pythondev
help
I actually added all the files to a csv and removed all of them and then copied all the entries in the csv to another folder
2017-08-10T16:51:36.528900
Tameika
pythondev_help_Tameika_2017-08-10T16:51:36.528900
1,502,383,896.5289
89,474
pythondev
help
```def remove_blacklisted_lines(): with open('some.csv') as oldfile, open('some.csv', 'w') as newfile: for line in oldfile: ss = line.split('_') if not any(t in ss[-2] for t in remove_urls): newfile.writr(line)```
2017-08-10T16:52:09.546376
Tameika
pythondev_help_Tameika_2017-08-10T16:52:09.546376
1,502,383,929.546376
89,475
pythondev
help
<@Beula> : here the blacklisted lines actually correspond to the list of files I want to remove
2017-08-10T16:52:50.568829
Tameika
pythondev_help_Tameika_2017-08-10T16:52:50.568829
1,502,383,970.568829
89,476
pythondev
help
the file name is foo_bar_cat_XXXX_ dog
2017-08-10T16:53:11.580145
Tameika
pythondev_help_Tameika_2017-08-10T16:53:11.580145
1,502,383,991.580145
89,477
pythondev
help
and I want to check if `XXXX` is in my blacklist
2017-08-10T16:53:31.591249
Tameika
pythondev_help_Tameika_2017-08-10T16:53:31.591249
1,502,384,011.591249
89,478
pythondev
help
if you want to find files matching a wildcard in Python, you could use the glob module. ```for path in glob.glob('foo_bar_cat_*_dog'): os.remove(path)```
2017-08-10T17:07:33.037814
Leonie
pythondev_help_Leonie_2017-08-10T17:07:33.037814
1,502,384,853.037814
89,479
pythondev
help
ooo <@Leonie>, I haven’t seen `glob` used before. That looks l337.
2017-08-10T17:17:15.316362
Winnifred
pythondev_help_Winnifred_2017-08-10T17:17:15.316362
1,502,385,435.316362
89,480
pythondev
help
there’s `iglob` too if you want an iterator
2017-08-10T17:17:35.324980
Leonie
pythondev_help_Leonie_2017-08-10T17:17:35.324980
1,502,385,455.32498
89,481
pythondev
help
and I think in 3.5+ you can even have it recurse directories for you
2017-08-10T17:18:14.342362
Leonie
pythondev_help_Leonie_2017-08-10T17:18:14.342362
1,502,385,494.342362
89,482
pythondev
help
nice, making mental note to use (i) `glob`!
2017-08-10T17:18:40.354225
Winnifred
pythondev_help_Winnifred_2017-08-10T17:18:40.354225
1,502,385,520.354225
89,483
pythondev
help
Hey guys
2017-08-10T18:10:14.644529
Maida
pythondev_help_Maida_2017-08-10T18:10:14.644529
1,502,388,614.644529
89,484
pythondev
help
I'm having a really bad time with forms
2017-08-10T18:10:18.646090
Maida
pythondev_help_Maida_2017-08-10T18:10:18.646090
1,502,388,618.64609
89,485
pythondev
help
thanks <@Leonie>, and the snippet to solve my problem woud be : ```import glob import os rem_list = ['2', '4'] for item in rem_list: print(item) for path in glob.glob('foo_*.txt'): if item in path: os.remove(path) ```
2017-08-10T18:19:55.843435
Tameika
pythondev_help_Tameika_2017-08-10T18:19:55.843435
1,502,389,195.843435
89,486
pythondev
help
nice use of glob
2017-08-10T18:20:08.847896
Tameika
pythondev_help_Tameika_2017-08-10T18:20:08.847896
1,502,389,208.847896
89,487
pythondev
help
maybe you could also do something like ```import glob import os rem_list = ['2', '4'] for item in rem_list: print(item) for path in glob.glob('foo_*{}*.txt'.format(item)): os.remove(path) ```
2017-08-10T18:26:30.976590
Leonie
pythondev_help_Leonie_2017-08-10T18:26:30.976590
1,502,389,590.97659
89,488
pythondev
help
or reverse the loops to reduce the number of I/O calls: ```import glob import os rem_list = ['2', '4'] for path in glob.glob('foo_*.txt'): for item in rem_list: print(item) if item in path: os.remove(path) ```
2017-08-10T18:28:23.013685
Leonie
pythondev_help_Leonie_2017-08-10T18:28:23.013685
1,502,389,703.013685
89,489
pythondev
help
recursive is ** i believe
2017-08-10T18:45:58.346326
Jesusa
pythondev_help_Jesusa_2017-08-10T18:45:58.346326
1,502,390,758.346326
89,490
pythondev
help
what forms?
2017-08-10T20:45:01.086307
Johana
pythondev_help_Johana_2017-08-10T20:45:01.086307
1,502,397,901.086307
89,491
pythondev
help
Does anyone have any experience with scapy/reading packets manually?
2017-08-10T23:19:29.609938
Marilyn
pythondev_help_Marilyn_2017-08-10T23:19:29.609938
1,502,407,169.609938
89,492
pythondev
help
I’m sure someone does. Just ask your question.
2017-08-11T02:13:42.095826
Delphine
pythondev_help_Delphine_2017-08-11T02:13:42.095826
1,502,417,622.095826
89,493
pythondev
help
Is there something built in pycharm that builds requirements.txt for pip? Also how do I call pip install requirements from within my code? I am looking to package my code in a double click executable or at least run from terminal and it automatically installs all the modules and everything..
2017-08-11T04:32:58.156456
Gertude
pythondev_help_Gertude_2017-08-11T04:32:58.156456
1,502,425,978.156456
89,494
pythondev
help
Does windows have pip too? I never used microsoft windows so I don't know how my code would run there..
2017-08-11T04:33:54.174511
Gertude
pythondev_help_Gertude_2017-08-11T04:33:54.174511
1,502,426,034.174511
89,495
pythondev
help
windows installations of python includes `pip` these days by default
2017-08-11T04:34:15.181355
Carri
pythondev_help_Carri_2017-08-11T04:34:15.181355
1,502,426,055.181355
89,496
pythondev
help
You can use Inno Setup to create an exe installer for windows <http://www.jrsoftware.org/isinfo.php>
2017-08-11T04:35:44.209325
Carri
pythondev_help_Carri_2017-08-11T04:35:44.209325
1,502,426,144.209325
89,497
pythondev
help
Thank you <@Carri>
2017-08-11T04:36:34.225361
Gertude
pythondev_help_Gertude_2017-08-11T04:36:34.225361
1,502,426,194.225361
89,498
pythondev
help
What about pycharm and `pip` Requirements.txt?
2017-08-11T04:37:11.237021
Gertude
pythondev_help_Gertude_2017-08-11T04:37:11.237021
1,502,426,231.237021
89,499
pythondev
help
<https://www.jetbrains.com/help/pycharm/creating-requirement-files.html>
2017-08-11T04:41:12.314710
Carri
pythondev_help_Carri_2017-08-11T04:41:12.314710
1,502,426,472.31471
89,500
pythondev
help
or use the command line `pip freeze &gt; /path/to/requirements.txt`
2017-08-11T05:35:28.386786
Meg
pythondev_help_Meg_2017-08-11T05:35:28.386786
1,502,429,728.386786
89,501
pythondev
help
Ideally `requirements.txt` should be populated manually, using top-level requirements such as `django`, `requests` and `djangorestframework`. After you have all of that in place, do `pip install -r requirements.txt` once. Then do `pip freeze &gt; requirements.lock.txt`
2017-08-11T05:47:27.620859
Collette
pythondev_help_Collette_2017-08-11T05:47:27.620859
1,502,430,447.620859
89,502