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
:+1:
2018-03-05T14:47:01.000199
Florida
pythondev_help_Florida_2018-03-05T14:47:01.000199
1,520,261,221.000199
37,324
pythondev
help
is that deliberate? Do you want one Bookmark to many Resource?
2018-03-05T14:47:16.000734
Floy
pythondev_help_Floy_2018-03-05T14:47:16.000734
1,520,261,236.000734
37,325
pythondev
help
Each resource can be bookmarked
2018-03-05T14:48:37.000500
Florida
pythondev_help_Florida_2018-03-05T14:48:37.000500
1,520,261,317.0005
37,326
pythondev
help
Each bookmarked resource can have many groups
2018-03-05T14:49:23.000033
Florida
pythondev_help_Florida_2018-03-05T14:49:23.000033
1,520,261,363.000033
37,327
pythondev
help
if that makes sense?
2018-03-05T14:49:28.000299
Florida
pythondev_help_Florida_2018-03-05T14:49:28.000299
1,520,261,368.000299
37,328
pythondev
help
ok. so waht’s your problem?
2018-03-05T14:53:59.000567
Floy
pythondev_help_Floy_2018-03-05T14:53:59.000567
1,520,261,639.000567
37,329
pythondev
help
I can’t for the life of me figure out where the groups need to be
2018-03-05T14:57:36.000342
Florida
pythondev_help_Florida_2018-03-05T14:57:36.000342
1,520,261,856.000342
37,330
pythondev
help
Right now my group model is made up of bookmarked resources
2018-03-05T14:57:55.000611
Florida
pythondev_help_Florida_2018-03-05T14:57:55.000611
1,520,261,875.000611
37,331
pythondev
help
but when I try to filter them I get nothing
2018-03-05T14:58:44.000294
Florida
pythondev_help_Florida_2018-03-05T14:58:44.000294
1,520,261,924.000294
37,332
pythondev
help
show some code :slightly_smiling_face:
2018-03-05T15:07:19.000118
Floy
pythondev_help_Floy_2018-03-05T15:07:19.000118
1,520,262,439.000118
37,333
pythondev
help
here is my serializer and my view
2018-03-05T15:09:45.000169
Florida
pythondev_help_Florida_2018-03-05T15:09:45.000169
1,520,262,585.000169
37,334
pythondev
help
<https://gist.github.com/colonelrascals/8bc5bbe0feeca7af8861acf1c9e0fbde>
2018-03-05T15:09:46.000376
Florida
pythondev_help_Florida_2018-03-05T15:09:46.000376
1,520,262,586.000376
37,335
pythondev
help
so when you open up the django shell, and do `Resource.objects.filter(bookmarks_user_id = 3)` or whatever user ID you’re trying to get, do you get anything?
2018-03-05T15:11:12.000570
Floy
pythondev_help_Floy_2018-03-05T15:11:12.000570
1,520,262,672.00057
37,336
pythondev
help
I can filter by my id
2018-03-05T15:18:16.000265
Florida
pythondev_help_Florida_2018-03-05T15:18:16.000265
1,520,263,096.000265
37,337
pythondev
help
but the resource does not have a bookmark group
2018-03-05T15:18:33.000539
Florida
pythondev_help_Florida_2018-03-05T15:18:33.000539
1,520,263,113.000539
37,338
pythondev
help
well, you have a bookmarks set
2018-03-05T15:19:08.000701
Floy
pythondev_help_Floy_2018-03-05T15:19:08.000701
1,520,263,148.000701
37,339
pythondev
help
so how about using a double underscore
2018-03-05T15:19:22.000147
Floy
pythondev_help_Floy_2018-03-05T15:19:22.000147
1,520,263,162.000147
37,340
pythondev
help
sorry, should have done that first
2018-03-05T15:19:26.000527
Floy
pythondev_help_Floy_2018-03-05T15:19:26.000527
1,520,263,166.000527
37,341
pythondev
help
`Resource.objects.filter(bookmarks__user_id = 3)`
2018-03-05T15:19:45.000016
Floy
pythondev_help_Floy_2018-03-05T15:19:45.000016
1,520,263,185.000016
37,342
pythondev
help
yeah that works just fine
2018-03-05T15:21:02.000449
Florida
pythondev_help_Florida_2018-03-05T15:21:02.000449
1,520,263,262.000449
37,343
pythondev
help
so when you’re following lookups across models, you need to use `__`
2018-03-05T15:27:47.000243
Floy
pythondev_help_Floy_2018-03-05T15:27:47.000243
1,520,263,667.000243
37,344
pythondev
help
I’ve got that down, I’m just very confused on where the association of the bookmark group lives
2018-03-05T15:29:57.000662
Florida
pythondev_help_Florida_2018-03-05T15:29:57.000662
1,520,263,797.000662
37,345
pythondev
help
oh right. you haven’t defined it
2018-03-05T15:31:49.000112
Floy
pythondev_help_Floy_2018-03-05T15:31:49.000112
1,520,263,909.000112
37,346
pythondev
help
right now, there’s a Resource which exists in Bookmark
2018-03-05T15:32:08.000680
Floy
pythondev_help_Floy_2018-03-05T15:32:08.000680
1,520,263,928.00068
37,347
pythondev
help
When I go to /bookmarkgroup/housing I’d like to only display those bookmarks that are in the housing group
2018-03-05T15:32:14.000276
Florida
pythondev_help_Florida_2018-03-05T15:32:14.000276
1,520,263,934.000276
37,348
pythondev
help
where do I need to define it?
2018-03-05T15:33:22.000291
Florida
pythondev_help_Florida_2018-03-05T15:33:22.000291
1,520,264,002.000291
37,349
pythondev
help
if you get a Bookmark, you should have a BookmarkGroup relation
2018-03-05T15:34:31.000688
Floy
pythondev_help_Floy_2018-03-05T15:34:31.000688
1,520,264,071.000688
37,350
pythondev
help
what you really should do is open up the django shell
2018-03-05T15:34:47.000394
Floy
pythondev_help_Floy_2018-03-05T15:34:47.000394
1,520,264,087.000394
37,351
pythondev
help
get a random Bookmark instance
2018-03-05T15:34:52.000391
Floy
pythondev_help_Floy_2018-03-05T15:34:52.000391
1,520,264,092.000391
37,352
pythondev
help
and see what the attributes there are
2018-03-05T15:34:58.000126
Floy
pythondev_help_Floy_2018-03-05T15:34:58.000126
1,520,264,098.000126
37,353
pythondev
help
eg, is there a `bookmark_groups`?
2018-03-05T15:35:05.000493
Floy
pythondev_help_Floy_2018-03-05T15:35:05.000493
1,520,264,105.000493
37,354
pythondev
help
with issues like this, I get the concept but need more help with the shell to figure what belongs where, especially when you’re using things like related names. Helps me better track things mentally
2018-03-05T15:35:44.000153
Floy
pythondev_help_Floy_2018-03-05T15:35:44.000153
1,520,264,144.000153
37,355
pythondev
help
so I’m getting the Bookmark User, and the resource name
2018-03-05T15:36:49.000415
Florida
pythondev_help_Florida_2018-03-05T15:36:49.000415
1,520,264,209.000415
37,356
pythondev
help
but no group
2018-03-05T15:36:53.000101
Florida
pythondev_help_Florida_2018-03-05T15:36:53.000101
1,520,264,213.000101
37,357
pythondev
help
hmm
2018-03-05T15:40:30.000596
Floy
pythondev_help_Floy_2018-03-05T15:40:30.000596
1,520,264,430.000596
37,358
pythondev
help
just asking, but have you seen this page in the docs?
2018-03-05T15:40:39.000078
Floy
pythondev_help_Floy_2018-03-05T15:40:39.000078
1,520,264,439.000078
37,359
pythondev
help
<https://docs.djangoproject.com/en/2.0/topics/db/examples/many_to_many/>
2018-03-05T15:40:39.000461
Floy
pythondev_help_Floy_2018-03-05T15:40:39.000461
1,520,264,439.000461
37,360
pythondev
help
I’ve read it about twice now
2018-03-05T15:41:17.000348
Florida
pythondev_help_Florida_2018-03-05T15:41:17.000348
1,520,264,477.000348
37,361
pythondev
help
I’m pretty sure its a many to many relationship
2018-03-05T15:41:33.000613
Florida
pythondev_help_Florida_2018-03-05T15:41:33.000613
1,520,264,493.000613
37,362
pythondev
help
each bookmark can have multiple groups, each group is made up of multiple bookmarks
2018-03-05T15:42:07.000258
Florida
pythondev_help_Florida_2018-03-05T15:42:07.000258
1,520,264,527.000258
37,363
pythondev
help
that is indeed many to many
2018-03-05T15:42:22.000286
Floy
pythondev_help_Floy_2018-03-05T15:42:22.000286
1,520,264,542.000286
37,364
pythondev
help
what you probably need is `related_query_name`
2018-03-05T15:42:44.000345
Floy
pythondev_help_Floy_2018-03-05T15:42:44.000345
1,520,264,564.000345
37,365
pythondev
help
<https://docs.djangoproject.com/en/2.0/ref/models/fields/#django.db.models.ForeignKey.related_query_name>
2018-03-05T15:42:48.000701
Floy
pythondev_help_Floy_2018-03-05T15:42:48.000701
1,520,264,568.000701
37,366
pythondev
help
so now in `Bookmark`, you can do `Bookmark.objects.filter(bookmark_group_id = bookmark_group_id)`
2018-03-05T15:43:46.000619
Floy
pythondev_help_Floy_2018-03-05T15:43:46.000619
1,520,264,626.000619
37,367
pythondev
help
should the many to many be living on the bookmark not on the bookmark group?
2018-03-05T15:45:35.000636
Florida
pythondev_help_Florida_2018-03-05T15:45:35.000636
1,520,264,735.000636
37,368
pythondev
help
If I am reading data from an input file input.txt and the data looks something like this: ``` TYPE, valuea, valueb TYPE,valuea, valuec OTHER, valuef,valueb ``` If I want to make a dictionary result that looks like this, what do I need to do? I’m trying not to use an additionally loop since I’m doing a ` for line in inp...
2018-03-05T17:57:45.000051
Winifred
pythondev_help_Winifred_2018-03-05T17:57:45.000051
1,520,272,665.000051
37,369
pythondev
help
Hi guys, pulling my hair out
2018-03-05T18:27:29.000084
Lesia
pythondev_help_Lesia_2018-03-05T18:27:29.000084
1,520,274,449.000084
37,370
pythondev
help
I am trying to import a variable created in an init file from another directory
2018-03-05T18:27:53.000264
Lesia
pythondev_help_Lesia_2018-03-05T18:27:53.000264
1,520,274,473.000264
37,371
pythondev
help
I can't seem to make this happen
2018-03-05T18:28:16.000310
Lesia
pythondev_help_Lesia_2018-03-05T18:28:16.000310
1,520,274,496.00031
37,372
pythondev
help
Any thoughts?
2018-03-05T18:29:00.000007
Lesia
pythondev_help_Lesia_2018-03-05T18:29:00.000007
1,520,274,540.000007
37,373
pythondev
help
show your code and directory structure
2018-03-05T18:32:29.000270
Floy
pythondev_help_Floy_2018-03-05T18:32:29.000270
1,520,274,749.00027
37,374
pythondev
help
<@Winifred> make any headway?
2018-03-05T18:32:37.000014
Floy
pythondev_help_Floy_2018-03-05T18:32:37.000014
1,520,274,757.000014
37,375
pythondev
help
```- Folder --- File Trying To Import - __init__ file declaring var```
2018-03-05T18:33:17.000221
Lesia
pythondev_help_Lesia_2018-03-05T18:33:17.000221
1,520,274,797.000221
37,376
pythondev
help
you’d do `from . import variable`
2018-03-05T18:33:53.000334
Floy
pythondev_help_Floy_2018-03-05T18:33:53.000334
1,520,274,833.000334
37,377
pythondev
help
I get: ```ValueError: Attempted relative import in non-package```
2018-03-05T18:34:33.000081
Lesia
pythondev_help_Lesia_2018-03-05T18:34:33.000081
1,520,274,873.000081
37,378
pythondev
help
<@Floy> I know how to do it the long way, not a more efficient way ``` def strip_input_segment(self, data): split_data = data.split("\n") for item in split_data: split_item = item.split(",") if split_item[0] == 'NORM': for i in range(1, len(split_item)): if split_item...
2018-03-05T18:35:10.000393
Winifred
pythondev_help_Winifred_2018-03-05T18:35:10.000393
1,520,274,910.000393
37,379
pythondev
help
<@Lesia> ah, ok. then try `from module import variable` wher `module` is the folder name
2018-03-05T18:36:03.000031
Floy
pythondev_help_Floy_2018-03-05T18:36:03.000031
1,520,274,963.000031
37,380
pythondev
help
<@Winifred> what’s an example line of input you’re processing?
2018-03-05T18:36:42.000094
Floy
pythondev_help_Floy_2018-03-05T18:36:42.000094
1,520,275,002.000094
37,381
pythondev
help
``` NORM,80,74 NORM,32,74,19 NORM,32,19,75 NORM,12,28,54 NORM,74,54,54,12 NORM,55,28,54,32 NORM,75,28,96,74 NORM,55,28,32,80,32 NORM,12,32,75 NORM,12,28 NORM,80,74 ```
2018-03-05T18:37:20.000165
Winifred
pythondev_help_Winifred_2018-03-05T18:37:20.000165
1,520,275,040.000165
37,382
pythondev
help
where the one on the last line would be a separate group by itself.
2018-03-05T18:38:47.000289
Winifred
pythondev_help_Winifred_2018-03-05T18:38:47.000289
1,520,275,127.000289
37,383
pythondev
help
<@Floy> that works locally, but not when I run my Flask server for whatever reason
2018-03-05T18:39:23.000142
Lesia
pythondev_help_Lesia_2018-03-05T18:39:23.000142
1,520,275,163.000142
37,384
pythondev
help
are you using the same python version?
2018-03-05T18:39:37.000050
Floy
pythondev_help_Floy_2018-03-05T18:39:37.000050
1,520,275,177.00005
37,385
pythondev
help
yes
2018-03-05T18:39:44.000029
Lesia
pythondev_help_Lesia_2018-03-05T18:39:44.000029
1,520,275,184.000029
37,386
pythondev
help
what’s the error again?
2018-03-05T18:40:31.000210
Floy
pythondev_help_Floy_2018-03-05T18:40:31.000210
1,520,275,231.00021
37,387
pythondev
help
<@Winifred> I’d strip out your code within the conditionals to a method
2018-03-05T18:41:10.000409
Floy
pythondev_help_Floy_2018-03-05T18:41:10.000409
1,520,275,270.000409
37,388
pythondev
help
```from signals_api import db ImportError: cannot import name db ```
2018-03-05T18:41:13.000251
Lesia
pythondev_help_Lesia_2018-03-05T18:41:13.000251
1,520,275,273.000251
37,389
pythondev
help
since you’re repeating code there
2018-03-05T18:41:15.000261
Floy
pythondev_help_Floy_2018-03-05T18:41:15.000261
1,520,275,275.000261
37,390
pythondev
help
Works when relative importing the file and running locally, does not work when running local Flask server
2018-03-05T18:42:11.000402
Lesia
pythondev_help_Lesia_2018-03-05T18:42:11.000402
1,520,275,331.000402
37,391
pythondev
help
Or deployed to EC2
2018-03-05T18:42:20.000072
Lesia
pythondev_help_Lesia_2018-03-05T18:42:20.000072
1,520,275,340.000072
37,392
pythondev
help
which version python?
2018-03-05T18:42:37.000141
Floy
pythondev_help_Floy_2018-03-05T18:42:37.000141
1,520,275,357.000141
37,393
pythondev
help
2.7
2018-03-05T18:42:42.000272
Lesia
pythondev_help_Lesia_2018-03-05T18:42:42.000272
1,520,275,362.000272
37,394
pythondev
help
do you have `from __future__ import absolute_import` at the top of that file?
2018-03-05T18:43:18.000214
Floy
pythondev_help_Floy_2018-03-05T18:43:18.000214
1,520,275,398.000214
37,395
pythondev
help
No - I'm assuming I should?
2018-03-05T18:43:38.000269
Lesia
pythondev_help_Lesia_2018-03-05T18:43:38.000269
1,520,275,418.000269
37,396
pythondev
help
Same error
2018-03-05T18:45:07.000013
Lesia
pythondev_help_Lesia_2018-03-05T18:45:07.000013
1,520,275,507.000013
37,397
pythondev
help
Ok, so basically what I have is ok, only needs to be modularized?
2018-03-05T18:48:02.000093
Winifred
pythondev_help_Winifred_2018-03-05T18:48:02.000093
1,520,275,682.000093
37,398
pythondev
help
yeah
2018-03-05T18:48:35.000215
Floy
pythondev_help_Floy_2018-03-05T18:48:35.000215
1,520,275,715.000215
37,399
pythondev
help
processing code like that really isn’t pretty, but its straighforwrd
2018-03-05T18:48:49.000293
Floy
pythondev_help_Floy_2018-03-05T18:48:49.000293
1,520,275,729.000293
37,400
pythondev
help
ok, wasn’t sure if there was a better way. I was staring at the screen for a while until I said why don’t I do it the way I know how.
2018-03-05T18:49:09.000218
Winifred
pythondev_help_Winifred_2018-03-05T18:49:09.000218
1,520,275,749.000218
37,401
pythondev
help
<@Lesia> sorry, I’m drawing a blank. About the only thing I can think of is the difference in execution between the two.
2018-03-05T18:49:32.000063
Floy
pythondev_help_Floy_2018-03-05T18:49:32.000063
1,520,275,772.000063
37,402
pythondev
help
Yeah it's strange.
2018-03-05T18:49:55.000104
Lesia
pythondev_help_Lesia_2018-03-05T18:49:55.000104
1,520,275,795.000104
37,403
pythondev
help
I'll keep taking shots at it.
2018-03-05T18:50:03.000287
Lesia
pythondev_help_Lesia_2018-03-05T18:50:03.000287
1,520,275,803.000287
37,404
pythondev
help
Thanks!
2018-03-05T18:50:11.000290
Lesia
pythondev_help_Lesia_2018-03-05T18:50:11.000290
1,520,275,811.00029
37,405
pythondev
help
are you executing both on the cli or via something else?
2018-03-05T18:50:47.000209
Floy
pythondev_help_Floy_2018-03-05T18:50:47.000209
1,520,275,847.000209
37,406
pythondev
help
cli
2018-03-05T18:55:53.000263
Lesia
pythondev_help_Lesia_2018-03-05T18:55:53.000263
1,520,276,153.000263
37,407
pythondev
help
PyCharm
2018-03-05T18:55:57.000169
Lesia
pythondev_help_Lesia_2018-03-05T18:55:57.000169
1,520,276,157.000169
37,408
pythondev
help
I basically can't get any subdirectory file to import a higher file's variable
2018-03-05T18:56:26.000273
Lesia
pythondev_help_Lesia_2018-03-05T18:56:26.000273
1,520,276,186.000273
37,409
pythondev
help
<@Floy> oh yeah, thank you a lot
2018-03-05T19:37:59.000187
Winifred
pythondev_help_Winifred_2018-03-05T19:37:59.000187
1,520,278,679.000187
37,410
pythondev
help
any luck with the job search?
2018-03-05T19:38:15.000276
Floy
pythondev_help_Floy_2018-03-05T19:38:15.000276
1,520,278,695.000276
37,411
pythondev
help
yeah I’ve been at it… what it looks like (I’m assuming) is that having the time at this job makes it more likely for people to respond back(?) now it’s a matter of actually passing the interviews and also more call rates to applications and creating a system for appropriately finding decent roles (I guess a basic site ...
2018-03-05T19:39:52.000206
Winifred
pythondev_help_Winifred_2018-03-05T19:39:52.000206
1,520,278,792.000206
37,412
pythondev
help
check out stackoverflow careers
2018-03-05T19:40:24.000099
Floy
pythondev_help_Floy_2018-03-05T19:40:24.000099
1,520,278,824.000099
37,413
pythondev
help
ok!
2018-03-05T19:40:42.000137
Winifred
pythondev_help_Winifred_2018-03-05T19:40:42.000137
1,520,278,842.000137
37,414
pythondev
help
I’ve gotten some responses from there
2018-03-05T19:40:54.000302
Floy
pythondev_help_Floy_2018-03-05T19:40:54.000302
1,520,278,854.000302
37,415
pythondev
help
and got an initial interview this week
2018-03-05T19:41:01.000238
Floy
pythondev_help_Floy_2018-03-05T19:41:01.000238
1,520,278,861.000238
37,416
pythondev
help
I also noticed now vs the past few months I can apply somewhere (their main website is how I’ve been doing it) and I’ll get a response back in the morning for a call. I’m wondering if that’s also seasonal. It’s a good feeling to have knowing I don’t have to ask cold-connections to push my resume in where they may not (...
2018-03-05T19:41:42.000309
Winifred
pythondev_help_Winifred_2018-03-05T19:41:42.000309
1,520,278,902.000309
37,417
pythondev
help
that’s good.
2018-03-05T19:41:54.000231
Winifred
pythondev_help_Winifred_2018-03-05T19:41:54.000231
1,520,278,914.000231
37,418
pythondev
help
don’t forget hiring periods
2018-03-05T19:44:32.000119
Floy
pythondev_help_Floy_2018-03-05T19:44:32.000119
1,520,279,072.000119
37,419
pythondev
help
freezes do happen at the end of the year
2018-03-05T19:44:45.000119
Floy
pythondev_help_Floy_2018-03-05T19:44:45.000119
1,520,279,085.000119
37,420
pythondev
help
I remember years back getting laid off right before labor day, twice. Then a friend I know had it happen to them last year. I was told by a recruiter from my company that they have hiring slow downs right before USA thanksgiving.
2018-03-05T19:46:36.000024
Winifred
pythondev_help_Winifred_2018-03-05T19:46:36.000024
1,520,279,196.000024
37,421
pythondev
help
and then they pick back up for new years.
2018-03-05T19:46:43.000300
Winifred
pythondev_help_Winifred_2018-03-05T19:46:43.000300
1,520,279,203.0003
37,422
pythondev
help
So, October is the cutoff, but you’re either making the cut or even if you’re a good candidate, they reject you so they could look good for investors.
2018-03-05T19:47:14.000130
Winifred
pythondev_help_Winifred_2018-03-05T19:47:14.000130
1,520,279,234.00013
37,423