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
ah i see the comment lol
2018-01-28T16:07:40.000053
Stefan
pythondev_help_Stefan_2018-01-28T16:07:40.000053
1,517,155,660.000053
31,624
pythondev
help
There are multiple on a page
2018-01-28T16:07:43.000090
Brain
pythondev_help_Brain_2018-01-28T16:07:43.000090
1,517,155,663.00009
31,625
pythondev
help
Ha, Probs abit OTT on the commetns :stuck_out_tongue:
2018-01-28T16:08:07.000128
Brain
pythondev_help_Brain_2018-01-28T16:08:07.000128
1,517,155,687.000128
31,626
pythondev
help
is there still a parent container for these
2018-01-28T16:08:07.000182
Stefan
pythondev_help_Stefan_2018-01-28T16:08:07.000182
1,517,155,687.000182
31,627
pythondev
help
times = schedule.find_all("div", class_="time") hospital = schedule.find_all("div", class_="itemLocation") location = schedule.find_all("span", class_="detailsleft")
2018-01-28T16:08:08.000058
Stefan
pythondev_help_Stefan_2018-01-28T16:08:08.000058
1,517,155,688.000058
31,628
pythondev
help
like within a schedule there are more of these right?
2018-01-28T16:08:30.000048
Stefan
pythondev_help_Stefan_2018-01-28T16:08:30.000048
1,517,155,710.000048
31,629
pythondev
help
No
2018-01-28T16:08:37.000001
Brain
pythondev_help_Brain_2018-01-28T16:08:37.000001
1,517,155,717.000001
31,630
pythondev
help
why do you do find all then?
2018-01-28T16:08:53.000108
Stefan
pythondev_help_Stefan_2018-01-28T16:08:53.000108
1,517,155,733.000108
31,631
pythondev
help
haha I don't know :nerd_face:
2018-01-28T16:09:15.000127
Brain
pythondev_help_Brain_2018-01-28T16:09:15.000127
1,517,155,755.000127
31,632
pythondev
help
either you want to find_all "schedule"
2018-01-28T16:09:19.000150
Stefan
pythondev_help_Stefan_2018-01-28T16:09:19.000150
1,517,155,759.00015
31,633
pythondev
help
`schedules = items.find_all("div", class_="schedule")`
2018-01-28T16:09:34.000079
Stefan
pythondev_help_Stefan_2018-01-28T16:09:34.000079
1,517,155,774.000079
31,634
pythondev
help
for schedule in schedules: time = schedule.find("div", class_="time") hospital = schedule.find("div", class_="itemLocation") location = schedule.find("span", class_="detailsleft") print(time, hospital, location)
2018-01-28T16:10:17.000032
Stefan
pythondev_help_Stefan_2018-01-28T16:10:17.000032
1,517,155,817.000032
31,635
pythondev
help
would that work?
2018-01-28T16:10:19.000060
Stefan
pythondev_help_Stefan_2018-01-28T16:10:19.000060
1,517,155,819.00006
31,636
pythondev
help
<@Stefan> briefly used sqla events
2018-01-28T16:12:25.000073
Barney
pythondev_help_Barney_2018-01-28T16:12:25.000073
1,517,155,945.000073
31,637
pythondev
help
<@Barney>: I'm thinking perhaps I should use celery instead?
2018-01-28T16:12:57.000140
Stefan
pythondev_help_Stefan_2018-01-28T16:12:57.000140
1,517,155,977.00014
31,638
pythondev
help
depends what is that you want to do
2018-01-28T16:13:17.000140
Barney
pythondev_help_Barney_2018-01-28T16:13:17.000140
1,517,155,997.00014
31,639
pythondev
help
one way to say it is I want to notify users when there is a new insert
2018-01-28T16:13:37.000169
Stefan
pythondev_help_Stefan_2018-01-28T16:13:37.000169
1,517,156,017.000169
31,640
pythondev
help
so either the moment I do an insert I can also just send to celery
2018-01-28T16:14:05.000114
Stefan
pythondev_help_Stefan_2018-01-28T16:14:05.000114
1,517,156,045.000114
31,641
pythondev
help
<@Stefan> Hmmm no that doesn't work. End up with an error
2018-01-28T16:14:10.000044
Brain
pythondev_help_Brain_2018-01-28T16:14:10.000044
1,517,156,050.000044
31,642
pythondev
help
it sounds simple enough to do from an event handler. Sending to Celery is just putting stuff to Redis, which should be fast
2018-01-28T16:14:52.000120
Barney
pythondev_help_Barney_2018-01-28T16:14:52.000120
1,517,156,092.00012
31,643
pythondev
help
<@Brain> whats the error
2018-01-28T16:15:20.000020
Stefan
pythondev_help_Stefan_2018-01-28T16:15:20.000020
1,517,156,120.00002
31,644
pythondev
help
at least I'd do it from an event handler, so that you don't have to add a task when inserting. You can forget it accidentally somewhere...
2018-01-28T16:15:41.000042
Barney
pythondev_help_Barney_2018-01-28T16:15:41.000042
1,517,156,141.000042
31,645
pythondev
help
though I'm wondering where the event is being handled :confused: like where is the event task being executed with the ORM
2018-01-28T16:16:13.000026
Stefan
pythondev_help_Stefan_2018-01-28T16:16:13.000026
1,517,156,173.000026
31,646
pythondev
help
do all events have their own thread?
2018-01-28T16:16:26.000181
Stefan
pythondev_help_Stefan_2018-01-28T16:16:26.000181
1,517,156,186.000181
31,647
pythondev
help
no, no threads
2018-01-28T16:16:32.000093
Barney
pythondev_help_Barney_2018-01-28T16:16:32.000093
1,517,156,192.000093
31,648
pythondev
help
it's like a callback
2018-01-28T16:16:39.000001
Barney
pythondev_help_Barney_2018-01-28T16:16:39.000001
1,517,156,199.000001
31,649
pythondev
help
ah so like after session.commit or something
2018-01-28T16:17:01.000099
Stefan
pythondev_help_Stefan_2018-01-28T16:17:01.000099
1,517,156,221.000099
31,650
pythondev
help
there are lots of events, there is even "set" event which reacts to setting an attribute
2018-01-28T16:17:32.000006
Barney
pythondev_help_Barney_2018-01-28T16:17:32.000006
1,517,156,252.000006
31,651
pythondev
help
hmmm, it's quite tough to find the one i need when i just want to send on insert
2018-01-28T16:18:02.000054
Stefan
pythondev_help_Stefan_2018-01-28T16:18:02.000054
1,517,156,282.000054
31,652
pythondev
help
insert events are processed during the commit, ye
2018-01-28T16:18:10.000120
Barney
pythondev_help_Barney_2018-01-28T16:18:10.000120
1,517,156,290.00012
31,653
pythondev
help
from sqlalchemy import event # standard decorator style @event.listens_for(SomeClass, 'after_insert') def receive_after_insert(mapper, connection, target): "listen for the 'after_insert' event"
2018-01-28T16:18:58.000024
Stefan
pythondev_help_Stefan_2018-01-28T16:18:58.000024
1,517,156,338.000024
31,654
pythondev
help
sounds cool, I'll try it
2018-01-28T16:19:02.000115
Stefan
pythondev_help_Stefan_2018-01-28T16:19:02.000115
1,517,156,342.000115
31,655
pythondev
help
though I need to be smart about it somehow
2018-01-28T16:19:26.000122
Stefan
pythondev_help_Stefan_2018-01-28T16:19:26.000122
1,517,156,366.000122
31,656
pythondev
help
sqla docs also mention what you can or can't do in an event
2018-01-28T16:19:34.000113
Barney
pythondev_help_Barney_2018-01-28T16:19:34.000113
1,517,156,374.000113
31,657
pythondev
help
I will have users who can set multiple filters
2018-01-28T16:19:36.000072
Stefan
pythondev_help_Stefan_2018-01-28T16:19:36.000072
1,517,156,376.000072
31,658
pythondev
help
but you're probably good
2018-01-28T16:19:38.000139
Barney
pythondev_help_Barney_2018-01-28T16:19:38.000139
1,517,156,378.000139
31,659
pythondev
help
so every time there is an insert i pretty much have to check the whole user table and check all their conditions
2018-01-28T16:19:56.000105
Stefan
pythondev_help_Stefan_2018-01-28T16:19:56.000105
1,517,156,396.000105
31,660
pythondev
help
:thinking_face:
2018-01-28T16:20:40.000120
Barney
pythondev_help_Barney_2018-01-28T16:20:40.000120
1,517,156,440.00012
31,661
pythondev
help
is there a chance that user instance is already loaded anyway?
2018-01-28T16:20:52.000041
Barney
pythondev_help_Barney_2018-01-28T16:20:52.000041
1,517,156,452.000041
31,662
pythondev
help
i.e., something like `current_user`
2018-01-28T16:20:59.000066
Barney
pythondev_help_Barney_2018-01-28T16:20:59.000066
1,517,156,459.000066
31,663
pythondev
help
nope
2018-01-28T16:21:00.000051
Stefan
pythondev_help_Stefan_2018-01-28T16:21:00.000051
1,517,156,460.000051
31,664
pythondev
help
those objects are unrelated to users
2018-01-28T16:21:09.000109
Stefan
pythondev_help_Stefan_2018-01-28T16:21:09.000109
1,517,156,469.000109
31,665
pythondev
help
one or more users can be interested in the objects
2018-01-28T16:21:21.000063
Stefan
pythondev_help_Stefan_2018-01-28T16:21:21.000063
1,517,156,481.000063
31,666
pythondev
help
I see monster queries ahead :confused:
2018-01-28T16:21:51.000095
Stefan
pythondev_help_Stefan_2018-01-28T16:21:51.000095
1,517,156,511.000095
31,667
pythondev
help
tough design choice ahead
2018-01-28T16:21:54.000128
Barney
pythondev_help_Barney_2018-01-28T16:21:54.000128
1,517,156,514.000128
31,668
pythondev
help
lol indeed
2018-01-28T16:22:01.000041
Stefan
pythondev_help_Stefan_2018-01-28T16:22:01.000041
1,517,156,521.000041
31,669
pythondev
help
crypto exchanges, coins, tweets, and users being interested in possibly some coins mentioned on twitter on one or more exchanges
2018-01-28T16:22:37.000019
Stefan
pythondev_help_Stefan_2018-01-28T16:22:37.000019
1,517,156,557.000019
31,670
pythondev
help
it's like a nightmare
2018-01-28T16:23:07.000084
Stefan
pythondev_help_Stefan_2018-01-28T16:23:07.000084
1,517,156,587.000084
31,671
pythondev
help
pretty much all my tables are connected right at that moment lol
2018-01-28T16:23:16.000167
Stefan
pythondev_help_Stefan_2018-01-28T16:23:16.000167
1,517,156,596.000167
31,672
pythondev
help
user interests is a many-to-many with coins table, right?
2018-01-28T16:23:40.000090
Barney
pythondev_help_Barney_2018-01-28T16:23:40.000090
1,517,156,620.00009
31,673
pythondev
help
plus or minus their interest for exchanges
2018-01-28T16:24:02.000005
Stefan
pythondev_help_Stefan_2018-01-28T16:24:02.000005
1,517,156,642.000005
31,674
pythondev
help
or, like, user can be interested in a coin, but only if info is coming from place A, and not B?
2018-01-28T16:24:10.000079
Barney
pythondev_help_Barney_2018-01-28T16:24:10.000079
1,517,156,650.000079
31,675
pythondev
help
yea exactly!
2018-01-28T16:24:18.000020
Stefan
pythondev_help_Stefan_2018-01-28T16:24:18.000020
1,517,156,658.00002
31,676
pythondev
help
:open_mouth:
2018-01-28T16:24:26.000021
Barney
pythondev_help_Barney_2018-01-28T16:24:26.000021
1,517,156,666.000021
31,677
pythondev
help
or actually, it's simpler
2018-01-28T16:24:43.000052
Stefan
pythondev_help_Stefan_2018-01-28T16:24:43.000052
1,517,156,683.000052
31,678
pythondev
help
exchanges contain a combination of coins
2018-01-28T16:24:55.000055
Stefan
pythondev_help_Stefan_2018-01-28T16:24:55.000055
1,517,156,695.000055
31,679
pythondev
help
so in the end it is just a user-to-coin interest
2018-01-28T16:25:05.000058
Stefan
pythondev_help_Stefan_2018-01-28T16:25:05.000058
1,517,156,705.000058
31,680
pythondev
help
but a user can be interested in a coin because he is interested in an exchange
2018-01-28T16:25:17.000005
Stefan
pythondev_help_Stefan_2018-01-28T16:25:17.000005
1,517,156,717.000005
31,681
pythondev
help
so first expand user interest in exchange into coins
2018-01-28T16:25:40.000006
Stefan
pythondev_help_Stefan_2018-01-28T16:25:40.000006
1,517,156,740.000006
31,682
pythondev
help
then it is again only user interested in coins
2018-01-28T16:25:59.000096
Stefan
pythondev_help_Stefan_2018-01-28T16:25:59.000096
1,517,156,759.000096
31,683
pythondev
help
I thought maybe it is easier if I just have a dedicated process to keep an optimized lookup of checks on a new signal
2018-01-28T16:26:55.000095
Stefan
pythondev_help_Stefan_2018-01-28T16:26:55.000095
1,517,156,815.000095
31,684
pythondev
help
sounds a bit over-complicated
2018-01-28T16:27:37.000008
Barney
pythondev_help_Barney_2018-01-28T16:27:37.000008
1,517,156,857.000008
31,685
pythondev
help
hmmm yea, maybe just like start with `WHERE user_disallows_twitter != true`
2018-01-28T16:27:53.000129
Stefan
pythondev_help_Stefan_2018-01-28T16:27:53.000129
1,517,156,873.000129
31,686
pythondev
help
sigh
2018-01-28T16:28:37.000020
Stefan
pythondev_help_Stefan_2018-01-28T16:28:37.000020
1,517,156,917.00002
31,687
pythondev
help
you could denormalize it a bit
2018-01-28T16:28:53.000013
Barney
pythondev_help_Barney_2018-01-28T16:28:53.000013
1,517,156,933.000013
31,688
pythondev
help
oh
2018-01-28T16:29:09.000118
Stefan
pythondev_help_Stefan_2018-01-28T16:29:09.000118
1,517,156,949.000118
31,689
pythondev
help
I only considered normalization ever lol
2018-01-28T16:29:17.000027
Stefan
pythondev_help_Stefan_2018-01-28T16:29:17.000027
1,517,156,957.000027
31,690
pythondev
help
i.e., if user is interested in an exchange, don't add an exchange to later filter by it. add all coins from there
2018-01-28T16:29:35.000019
Barney
pythondev_help_Barney_2018-01-28T16:29:35.000019
1,517,156,975.000019
31,691
pythondev
help
because i want users to be able to make all the filters
2018-01-28T16:29:36.000067
Stefan
pythondev_help_Stefan_2018-01-28T16:29:36.000067
1,517,156,976.000067
31,692
pythondev
help
so it's only ever filtered by coins
2018-01-28T16:29:43.000132
Barney
pythondev_help_Barney_2018-01-28T16:29:43.000132
1,517,156,983.000132
31,693
pythondev
help
mhmmm
2018-01-28T16:29:53.000075
Stefan
pythondev_help_Stefan_2018-01-28T16:29:53.000075
1,517,156,993.000075
31,694
pythondev
help
but then an exchange adds a new coin
2018-01-28T16:30:07.000104
Stefan
pythondev_help_Stefan_2018-01-28T16:30:07.000104
1,517,157,007.000104
31,695
pythondev
help
how did I end up with the most complicated plan lol
2018-01-28T16:32:51.000051
Stefan
pythondev_help_Stefan_2018-01-28T16:32:51.000051
1,517,157,171.000051
31,696
pythondev
help
even to classify signals first by humans in slack
2018-01-28T16:33:08.000013
Stefan
pythondev_help_Stefan_2018-01-28T16:33:08.000013
1,517,157,188.000013
31,697
pythondev
help
lol
2018-01-28T16:33:09.000095
Stefan
pythondev_help_Stefan_2018-01-28T16:33:09.000095
1,517,157,189.000095
31,698
pythondev
help
So let's say there's an event for BCH where source is Bittrex If user isn't interested in Bittrex, but interested in BCH, should they be notified?
2018-01-28T16:33:48.000117
Barney
pythondev_help_Barney_2018-01-28T16:33:48.000117
1,517,157,228.000117
31,699
pythondev
help
ah, there's a exclusion rather than inclusion
2018-01-28T16:34:19.000077
Barney
pythondev_help_Barney_2018-01-28T16:34:19.000077
1,517,157,259.000077
31,700
pythondev
help
I thought even to allow them to specify includes and excludes separately
2018-01-28T16:35:03.000147
Stefan
pythondev_help_Stefan_2018-01-28T16:35:03.000147
1,517,157,303.000147
31,701
pythondev
help
so you can include bittrex but exclude BCH
2018-01-28T16:35:21.000097
Stefan
pythondev_help_Stefan_2018-01-28T16:35:21.000097
1,517,157,321.000097
31,702
pythondev
help
actually the other way doesn't exist
2018-01-28T16:36:03.000105
Stefan
pythondev_help_Stefan_2018-01-28T16:36:03.000105
1,517,157,363.000105
31,703
pythondev
help
because it's indeed like you said, exchanges are just a shortcut to "including a lot of coins"
2018-01-28T16:36:23.000081
Stefan
pythondev_help_Stefan_2018-01-28T16:36:23.000081
1,517,157,383.000081
31,704
pythondev
help
you cannot be interested in BCH and exclude bittrex
2018-01-28T16:36:40.000136
Stefan
pythondev_help_Stefan_2018-01-28T16:36:40.000136
1,517,157,400.000136
31,705
pythondev
help
that would just yield BCH
2018-01-28T16:36:54.000018
Stefan
pythondev_help_Stefan_2018-01-28T16:36:54.000018
1,517,157,414.000018
31,706
pythondev
help
that's interesting tbh
2018-01-28T16:36:55.000072
Barney
pythondev_help_Barney_2018-01-28T16:36:55.000072
1,517,157,415.000072
31,707
pythondev
help
I'll play around with this tomorrow
2018-01-28T16:37:05.000023
Barney
pythondev_help_Barney_2018-01-28T16:37:05.000023
1,517,157,425.000023
31,708
pythondev
help
kind of like a challenge :)
2018-01-28T16:37:22.000075
Barney
pythondev_help_Barney_2018-01-28T16:37:22.000075
1,517,157,442.000075
31,709
pythondev
help
heh :slightly_smiling_face: it's a fun one
2018-01-28T16:37:28.000100
Stefan
pythondev_help_Stefan_2018-01-28T16:37:28.000100
1,517,157,448.0001
31,710
pythondev
help
I complicate it on so many levels
2018-01-28T16:37:38.000014
Stefan
pythondev_help_Stefan_2018-01-28T16:37:38.000014
1,517,157,458.000014
31,711
pythondev
help
but now I must go to sleep :sleeping:
2018-01-28T16:37:38.000096
Barney
pythondev_help_Barney_2018-01-28T16:37:38.000096
1,517,157,458.000096
31,712
pythondev
help
auto blog scraping
2018-01-28T16:37:42.000077
Stefan
pythondev_help_Stefan_2018-01-28T16:37:42.000077
1,517,157,462.000077
31,713
pythondev
help
twitter, reddit
2018-01-28T16:37:52.000005
Stefan
pythondev_help_Stefan_2018-01-28T16:37:52.000005
1,517,157,472.000005
31,714
pythondev
help
that's probably the easiest
2018-01-28T16:38:18.000046
Barney
pythondev_help_Barney_2018-01-28T16:38:18.000046
1,517,157,498.000046
31,715
pythondev
help
using NLP to classify signals, and human labelling
2018-01-28T16:38:21.000067
Stefan
pythondev_help_Stefan_2018-01-28T16:38:21.000067
1,517,157,501.000067
31,716
pythondev
help
but for now also user filters
2018-01-28T16:38:34.000099
Stefan
pythondev_help_Stefan_2018-01-28T16:38:34.000099
1,517,157,514.000099
31,717
pythondev
help
modeling data and relationship and making sure it's performant -- much harder
2018-01-28T16:38:42.000042
Barney
pythondev_help_Barney_2018-01-28T16:38:42.000042
1,517,157,522.000042
31,718
pythondev
help
heh
2018-01-28T16:38:47.000123
Stefan
pythondev_help_Stefan_2018-01-28T16:38:47.000123
1,517,157,527.000123
31,719
pythondev
help
yea, I find that modelling the data is the most difficult part
2018-01-28T16:38:54.000084
Stefan
pythondev_help_Stefan_2018-01-28T16:38:54.000084
1,517,157,534.000084
31,720
pythondev
help
an exchange says "BCH &lt;-&gt; USD" can now be traded, but there can be even multiple coins named BCH
2018-01-28T16:39:28.000146
Stefan
pythondev_help_Stefan_2018-01-28T16:39:28.000146
1,517,157,568.000146
31,721
pythondev
help
so yea
2018-01-28T16:39:30.000009
Stefan
pythondev_help_Stefan_2018-01-28T16:39:30.000009
1,517,157,570.000009
31,722
pythondev
help
i need a human to resolve it
2018-01-28T16:39:43.000013
Stefan
pythondev_help_Stefan_2018-01-28T16:39:43.000013
1,517,157,583.000013
31,723