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
Well, I'm wondering if you might have other data queued up in the read buffer from previous tests, or something like that.
2019-05-12T19:56:06.394400
Sasha
pythondev_help_Sasha_2019-05-12T19:56:06.394400
1,557,690,966.3944
23,321
pythondev
help
that was my thought, trying to place `port.flushInput()`and `port.flushInput()` in the correct place
2019-05-12T19:57:20.395400
Priscilla
pythondev_help_Priscilla_2019-05-12T19:57:20.395400
1,557,691,040.3954
23,322
pythondev
help
i think just before it writes
2019-05-12T19:57:33.395800
Priscilla
pythondev_help_Priscilla_2019-05-12T19:57:33.395800
1,557,691,053.3958
23,323
pythondev
help
so i figured out that its now printing the characters that come before the expected output. which actually is that mess of data.
2019-05-12T20:23:13.395900
Priscilla
pythondev_help_Priscilla_2019-05-12T20:23:13.395900
1,557,692,593.3959
23,324
pythondev
help
i just dont know why its printing that out now
2019-05-12T20:23:28.396500
Priscilla
pythondev_help_Priscilla_2019-05-12T20:23:28.396500
1,557,692,608.3965
23,325
pythondev
help
Couldn't say. There's `port.in_waiting` if you want to check the number of bytes queued in the read buffer.
2019-05-12T20:27:35.397300
Sasha
pythondev_help_Sasha_2019-05-12T20:27:35.397300
1,557,692,855.3973
23,326
pythondev
help
this device is just not working as they said it would :triumph:
2019-05-12T22:07:50.397800
Priscilla
pythondev_help_Priscilla_2019-05-12T22:07:50.397800
1,557,698,870.3978
23,327
pythondev
help
Is it a commercial device where you'd expect it to behave reliably and have public documentation, or a custom gizmo that's still in beta?
2019-05-12T22:48:14.398800
Sasha
pythondev_help_Sasha_2019-05-12T22:48:14.398800
1,557,701,294.3988
23,328
pythondev
help
Custom. Most of it is reverse engineered over the decades. In a long chain of engineers.
2019-05-13T00:28:39.400000
Priscilla
pythondev_help_Priscilla_2019-05-13T00:28:39.400000
1,557,707,319.4
23,329
pythondev
help
very little documentation for sure.
2019-05-13T00:29:59.400800
Priscilla
pythondev_help_Priscilla_2019-05-13T00:29:59.400800
1,557,707,399.4008
23,330
pythondev
help
Sounds like an opportunity for disruption, heh heh. Need someone to redesign this thing's controller board and firmware? :wink:
2019-05-13T00:37:41.402100
Sasha
pythondev_help_Sasha_2019-05-13T00:37:41.402100
1,557,707,861.4021
23,331
pythondev
help
In that case, see what the experience is like with Google Dialogflow first. Then try out another alternative called Rasa (<https://rasa.com/>) which is open source and more flexible. If you really want to get familiar with the underlying ML concepts driving these chatbots from scratch, I suggest auditing one of the many free online courses on either Udacity, Coursera or YouTube. The main concepts around ML I think you should focus on are “supervised learning”, “recurrent neural networks”, “word embeddings”, and “reinforcement learning”. If you have a decent grasp of probability, statistics and differential calculus then you should be able to get stuck into it right away. I also suggest taking a cursory look at “speech act theory” to give you an idea of how people generally structure chatbot conversations.
2019-05-13T00:46:18.402200
Neely
pythondev_help_Neely_2019-05-13T00:46:18.402200
1,557,708,378.4022
23,332
pythondev
help
Anyone with experience on GCP, pubsub and hangout api? I'm setting up a hangout bot that connects with Pubsub. But messages aren't posted to my topic. I have gone over required permissions, service accounts etc but can't seem to crack it
2019-05-13T02:45:33.405800
Conchita
pythondev_help_Conchita_2019-05-13T02:45:33.405800
1,557,715,533.4058
23,333
pythondev
help
Configuration of the Hangout bot is set to publish messages to a given Pub/Sub topic. But nothing is published to it and I don't see any activity from the hangout api either
2019-05-13T02:46:25.406700
Conchita
pythondev_help_Conchita_2019-05-13T02:46:25.406700
1,557,715,585.4067
23,334
pythondev
help
I don’t think it shall keep original order for non-one elements
2019-05-13T04:12:48.406900
Bertram
pythondev_help_Bertram_2019-05-13T04:12:48.406900
1,557,720,768.4069
23,335
pythondev
help
Hello, I'm want to open a gui application on cent os minimal but can't connect to X server.... Error = can't connect to X server..... Any help?
2019-05-13T06:30:03.408100
Elmira
pythondev_help_Elmira_2019-05-13T06:30:03.408100
1,557,729,003.4081
23,336
pythondev
help
Minimal distro doesn't have an X server installed by default, I suppose
2019-05-13T06:31:58.408600
Chester
pythondev_help_Chester_2019-05-13T06:31:58.408600
1,557,729,118.4086
23,337
pythondev
help
I have installed it already... But can't connect to X server
2019-05-13T07:00:35.409300
Elmira
pythondev_help_Elmira_2019-05-13T07:00:35.409300
1,557,730,835.4093
23,338
pythondev
help
Have you started it? Can you connect manually?
2019-05-13T07:01:06.409600
Chester
pythondev_help_Chester_2019-05-13T07:01:06.409600
1,557,730,866.4096
23,339
pythondev
help
How do I start x server?
2019-05-13T07:09:48.410100
Elmira
pythondev_help_Elmira_2019-05-13T07:09:48.410100
1,557,731,388.4101
23,340
pythondev
help
Via your process manager. I'd suggest to read arch linux/centos wikis
2019-05-13T07:12:30.410500
Chester
pythondev_help_Chester_2019-05-13T07:12:30.410500
1,557,731,550.4105
23,341
pythondev
help
Hi all, I need help regarding kubernetes cluster. I have two clusters having set of services. I want to access the service from other cluster. Is there any way to achieve this?
2019-05-13T07:23:30.412200
Darcie
pythondev_help_Darcie_2019-05-13T07:23:30.412200
1,557,732,210.4122
23,342
pythondev
help
Only if you treat them as any other external service - sure.
2019-05-13T07:24:42.412700
Chester
pythondev_help_Chester_2019-05-13T07:24:42.412700
1,557,732,282.4127
23,343
pythondev
help
:point_up:
2019-05-13T07:28:36.412900
Hiroko
pythondev_help_Hiroko_2019-05-13T07:28:36.412900
1,557,732,516.4129
23,344
pythondev
help
Hi, guys, How can I hold None use a pre-defined variable of bytes type?
2019-05-13T07:56:13.414000
Theda
pythondev_help_Theda_2019-05-13T07:56:13.414000
1,557,734,173.414
23,345
pythondev
help
how's that?
2019-05-13T08:02:21.414500
Jettie
pythondev_help_Jettie_2019-05-13T08:02:21.414500
1,557,734,541.4145
23,346
pythondev
help
My situaction is like this. I created a proto file like: message Transaction { int32 version = 1; repeated TxIn vin = 2; repeated TxOut vout = 3; Data data = 4; uint32 magic = 5; int64 lock_time = 6; } message TxIn { OutPoint prev_out_point = 1; bytes script_sig = 2; uint32 sequence = 3; } then I generated python code use protoc command. and I created a tx, I should update the script_sig data, but it had the error if I set it None.
2019-05-13T08:04:11.414700
Theda
pythondev_help_Theda_2019-05-13T08:04:11.414700
1,557,734,651.4147
23,347
pythondev
help
The error is TypeError: None has type NoneType, but expected one of: bytes
2019-05-13T08:04:49.415000
Theda
pythondev_help_Theda_2019-05-13T08:04:49.415000
1,557,734,689.415
23,348
pythondev
help
well, if it's of type `bytes`, empty bytestring probably makes more sense
2019-05-13T08:19:44.415900
Jettie
pythondev_help_Jettie_2019-05-13T08:19:44.415900
1,557,735,584.4159
23,349
pythondev
help
I wonder if it would work if the field is `optional`
2019-05-13T08:20:30.417000
Jettie
pythondev_help_Jettie_2019-05-13T08:20:30.417000
1,557,735,630.417
23,350
pythondev
help
Hello all, can someone help in regex to findall strings in a line with pattern "${API_Host}"
2019-05-13T09:39:20.418700
Bao
pythondev_help_Bao_2019-05-13T09:39:20.418700
1,557,740,360.4187
23,351
pythondev
help
sure thing
2019-05-13T09:39:37.418900
Claudine
pythondev_help_Claudine_2019-05-13T09:39:37.418900
1,557,740,377.4189
23,352
pythondev
help
have you tried anything <@Bao>?
2019-05-13T09:40:04.419400
Eliana
pythondev_help_Eliana_2019-05-13T09:40:04.419400
1,557,740,404.4194
23,353
pythondev
help
`/(\$.*\b/`
2019-05-13T09:40:11.419700
Claudine
pythondev_help_Claudine_2019-05-13T09:40:11.419700
1,557,740,411.4197
23,354
pythondev
help
but without examples that might not work
2019-05-13T09:40:19.420100
Claudine
pythondev_help_Claudine_2019-05-13T09:40:19.420100
1,557,740,419.4201
23,355
pythondev
help
re.findall(r'[^$]\b+', line)
2019-05-13T09:40:20.420300
Bao
pythondev_help_Bao_2019-05-13T09:40:20.420300
1,557,740,420.4203
23,356
pythondev
help
we also like to see existing attempts and help guide to the answer.
2019-05-13T09:40:22.420500
Eliana
pythondev_help_Eliana_2019-05-13T09:40:22.420500
1,557,740,422.4205
23,357
pythondev
help
I tried above but not luck :disappointed:
2019-05-13T09:40:38.421000
Bao
pythondev_help_Bao_2019-05-13T09:40:38.421000
1,557,740,438.421
23,358
pythondev
help
your `\b+` just finds multiple word breaks
2019-05-13T09:40:47.421200
Claudine
pythondev_help_Claudine_2019-05-13T09:40:47.421200
1,557,740,447.4212
23,359
pythondev
help
your `[^$]` finds anthing NOT a $
2019-05-13T09:41:00.421600
Claudine
pythondev_help_Claudine_2019-05-13T09:41:00.421600
1,557,740,460.4216
23,360
pythondev
help
you want `\$` to match a $ char, else `$` on it's own matches EOL
2019-05-13T09:41:22.422100
Claudine
pythondev_help_Claudine_2019-05-13T09:41:22.422100
1,557,740,482.4221
23,361
pythondev
help
I tried '\$' but didn't find any
2019-05-13T09:43:30.423400
Bao
pythondev_help_Bao_2019-05-13T09:43:30.423400
1,557,740,610.4234
23,362
pythondev
help
do you have an example line?
2019-05-13T09:44:02.423600
Claudine
pythondev_help_Claudine_2019-05-13T09:44:02.423600
1,557,740,642.4236
23,363
pythondev
help
public static string ApiUrlBase = "<https://api>${API_Host}.<http://some.com/svc/${Slot_version}/%22;\n|some.com/svc/${Slot_version}/";\n>'
2019-05-13T09:44:29.423900
Bao
pythondev_help_Bao_2019-05-13T09:44:29.423900
1,557,740,669.4239
23,364
pythondev
help
ahh yea `\b` wont wokr because there's no word break
2019-05-13T09:44:49.424200
Claudine
pythondev_help_Claudine_2019-05-13T09:44:49.424200
1,557,740,689.4242
23,365
pythondev
help
is it always going to be `api.{API HOST}.some`?
2019-05-13T09:45:12.424500
Claudine
pythondev_help_Claudine_2019-05-13T09:45:12.424500
1,557,740,712.4245
23,366
pythondev
help
yes in few lines
2019-05-13T09:45:39.425300
Bao
pythondev_help_Bao_2019-05-13T09:45:39.425300
1,557,740,739.4253
23,367
pythondev
help
and is that a typo? is it `api.{HOST}` or literally `api{HOST}`?
2019-05-13T09:45:44.425400
Claudine
pythondev_help_Claudine_2019-05-13T09:45:44.425400
1,557,740,744.4254
23,368
pythondev
help
if your string is literally `<https://api>${API_Host}.<http://some.com/svc/${Slot_version}|some.com/svc/${Slot_version}>` then `/\$\{API_Host\}/` will work
2019-05-13T09:47:12.426500
Claudine
pythondev_help_Claudine_2019-05-13T09:47:12.426500
1,557,740,832.4265
23,369
pythondev
help
I assumed you meant `${API_HOST}` to be a placeholder in your example
2019-05-13T09:47:41.427200
Claudine
pythondev_help_Claudine_2019-05-13T09:47:41.427200
1,557,740,861.4272
23,370
pythondev
help
No, i'm looking for all string in line starts with "${" and ends with "}"
2019-05-13T09:48:42.428300
Bao
pythondev_help_Bao_2019-05-13T09:48:42.428300
1,557,740,922.4283
23,371
pythondev
help
`/\$\{.*?\}/`
2019-05-13T09:49:54.428500
Claudine
pythondev_help_Claudine_2019-05-13T09:49:54.428500
1,557,740,994.4285
23,372
pythondev
help
but that will also match `${Slot_version}`, but if you use capture groups you can maybe get arround that...
2019-05-13T09:51:08.429300
Claudine
pythondev_help_Claudine_2019-05-13T09:51:08.429300
1,557,741,068.4293
23,373
pythondev
help
This worked "re.findall('\$\{.*?\}', line)"
2019-05-13T09:51:22.429800
Bao
pythondev_help_Bao_2019-05-13T09:51:22.429800
1,557,741,082.4298
23,374
pythondev
help
cool, i'd just be wary of matching `${Slot_version}` erroneously
2019-05-13T09:51:53.430400
Claudine
pythondev_help_Claudine_2019-05-13T09:51:53.430400
1,557,741,113.4304
23,375
pythondev
help
Thanks for your help <@Claudine>
2019-05-13T09:52:53.430800
Bao
pythondev_help_Bao_2019-05-13T09:52:53.430800
1,557,741,173.4308
23,376
pythondev
help
np!
2019-05-13T09:52:57.431000
Claudine
pythondev_help_Claudine_2019-05-13T09:52:57.431000
1,557,741,177.431
23,377
pythondev
help
<@Claudine> :taco:
2019-05-13T09:53:56.431300
Eliana
pythondev_help_Eliana_2019-05-13T09:53:56.431300
1,557,741,236.4313
23,378
pythondev
help
Hey is there a way to exclude elements in a list when running a for loop ?
2019-05-13T10:09:00.432700
Avis
pythondev_help_Avis_2019-05-13T10:09:00.432700
1,557,742,140.4327
23,379
pythondev
help
you can have a list comprehension be where your iterable is
2019-05-13T10:11:20.433100
Karoline
pythondev_help_Karoline_2019-05-13T10:11:20.433100
1,557,742,280.4331
23,380
pythondev
help
that or a conditional, if the element == X pass
2019-05-13T10:11:44.433900
Holly
pythondev_help_Holly_2019-05-13T10:11:44.433900
1,557,742,304.4339
23,381
pythondev
help
`for thing in [t for t in things if t is not None]:` for example
2019-05-13T10:11:44.434000
Karoline
pythondev_help_Karoline_2019-05-13T10:11:44.434000
1,557,742,304.434
23,382
pythondev
help
list comprehension is the smaller way :slightly_smiling_face:
2019-05-13T10:12:02.434600
Holly
pythondev_help_Holly_2019-05-13T10:12:02.434600
1,557,742,322.4346
23,383
pythondev
help
it may be smaller, but has overhead incurred.
2019-05-13T10:12:28.435200
Cindy
pythondev_help_Cindy_2019-05-13T10:12:28.435200
1,557,742,348.4352
23,384
pythondev
help
Since you're already iterating, can't you just add a condition to `continue` if you found a criteria for exclusion?
2019-05-13T10:12:30.435400
Cindy
pythondev_help_Cindy_2019-05-13T10:12:30.435400
1,557,742,350.4354
23,385
pythondev
help
it's unfortunate that you can't just use the syntax directly in the for loop, but oh well
2019-05-13T10:12:50.435700
Karoline
pythondev_help_Karoline_2019-05-13T10:12:50.435700
1,557,742,370.4357
23,386
pythondev
help
Will it work with the walrus operator in 3.8? Seems like it maybe would
2019-05-13T10:14:11.436800
Clemmie
pythondev_help_Clemmie_2019-05-13T10:14:11.436800
1,557,742,451.4368
23,387
pythondev
help
what is the overhead on list comprehensions like? I honestly never use them because I haven't spent enough time really learning them and they hurt my brain, so I do them the long way
2019-05-13T10:14:17.437100
Holly
pythondev_help_Holly_2019-05-13T10:14:17.437100
1,557,742,457.4371
23,388
pythondev
help
not a ton, but you are recreating the list that you already have and are iterating through, so it is overhead you don’t need at all
2019-05-13T10:14:45.438200
Clemmie
pythondev_help_Clemmie_2019-05-13T10:14:45.438200
1,557,742,485.4382
23,389
pythondev
help
<@Holly> you're filtering ahead eagerly, then going through the result again.
2019-05-13T10:14:53.438800
Cindy
pythondev_help_Cindy_2019-05-13T10:14:53.438800
1,557,742,493.4388
23,390
pythondev
help
cool thanks all I'll give it a try basically I have list 1 and list 2 and I need to exclude all the elements that are common in both
2019-05-13T10:15:23.439400
Avis
pythondev_help_Avis_2019-05-13T10:15:23.439400
1,557,742,523.4394
23,391
pythondev
help
<@Cindy> actually, its one filter operation per loop block
2019-05-13T10:15:47.440300
Hiroko
pythondev_help_Hiroko_2019-05-13T10:15:47.440300
1,557,742,547.4403
23,392
pythondev
help
and run the for loop on the rest
2019-05-13T10:15:53.440600
Avis
pythondev_help_Avis_2019-05-13T10:15:53.440600
1,557,742,553.4406
23,393
pythondev
help
ah - you should use set logic (assuming it is ok to remove duplicates)
2019-05-13T10:16:24.441700
Clemmie
pythondev_help_Clemmie_2019-05-13T10:16:24.441700
1,557,742,584.4417
23,394
pythondev
help
I would be very surprised if the loop results in executing the filter op each time
2019-05-13T10:16:25.441800
Hiroko
pythondev_help_Hiroko_2019-05-13T10:16:25.441800
1,557,742,585.4418
23,395
pythondev
help
yes i meant once, but eagerly, up front.
2019-05-13T10:16:47.442300
Cindy
pythondev_help_Cindy_2019-05-13T10:16:47.442300
1,557,742,607.4423
23,396
pythondev
help
certainly worth being aware of, but probably not a concern for most people
2019-05-13T10:17:10.442900
Karoline
pythondev_help_Karoline_2019-05-13T10:17:10.442900
1,557,742,630.4429
23,397
pythondev
help
never heard it called the walrus
2019-05-13T10:35:38.444000
Claudine
pythondev_help_Claudine_2019-05-13T10:35:38.444000
1,557,743,738.444
23,398
pythondev
help
`:`eyes, `=` tusk
2019-05-13T10:36:25.444200
Clemmie
pythondev_help_Clemmie_2019-05-13T10:36:25.444200
1,557,743,785.4442
23,399
pythondev
help
`:=`
2019-05-13T10:36:29.444400
Clemmie
pythondev_help_Clemmie_2019-05-13T10:36:29.444400
1,557,743,789.4444
23,400
pythondev
help
once you hear it it is hard to unsee
2019-05-13T10:36:49.444600
Clemmie
pythondev_help_Clemmie_2019-05-13T10:36:49.444600
1,557,743,809.4446
23,401
pythondev
help
How would I call a class in another python program
2019-05-13T10:38:36.445100
Rodrick
pythondev_help_Rodrick_2019-05-13T10:38:36.445100
1,557,743,916.4451
23,402
pythondev
help
Here is an example
2019-05-13T10:38:41.445300
Rodrick
pythondev_help_Rodrick_2019-05-13T10:38:41.445300
1,557,743,921.4453
23,403
pythondev
help
in the python program `storage.py` i have a class called `Storage`
2019-05-13T10:39:14.446200
Rodrick
pythondev_help_Rodrick_2019-05-13T10:39:14.446200
1,557,743,954.4462
23,404
pythondev
help
```import storage foo = Storage() ```
2019-05-13T10:39:21.446500
Claudine
pythondev_help_Claudine_2019-05-13T10:39:21.446500
1,557,743,961.4465
23,405
pythondev
help
Thats it?
2019-05-13T10:39:41.447100
Rodrick
pythondev_help_Rodrick_2019-05-13T10:39:41.447100
1,557,743,981.4471
23,406
pythondev
help
`storage.Storage`
2019-05-13T10:39:45.447500
Holly
pythondev_help_Holly_2019-05-13T10:39:45.447500
1,557,743,985.4475
23,407
pythondev
help
:yep:
2019-05-13T10:39:45.447600
Hiroko
pythondev_help_Hiroko_2019-05-13T10:39:45.447600
1,557,743,985.4476
23,408
pythondev
help
Wow
2019-05-13T10:39:49.447900
Rodrick
pythondev_help_Rodrick_2019-05-13T10:39:49.447900
1,557,743,989.4479
23,409
pythondev
help
well then `foo` would be an instance of storage yep
2019-05-13T10:39:54.448300
Claudine
pythondev_help_Claudine_2019-05-13T10:39:54.448300
1,557,743,994.4483
23,410
pythondev
help
as long as they're in the same folder its that simple yep
2019-05-13T10:40:00.448800
Holly
pythondev_help_Holly_2019-05-13T10:40:00.448800
1,557,744,000.4488
23,411
pythondev
help
I thought it would be harder than that
2019-05-13T10:40:04.449000
Rodrick
pythondev_help_Rodrick_2019-05-13T10:40:04.449000
1,557,744,004.449
23,412
pythondev
help
Wow thanks guys
2019-05-13T10:40:14.449900
Rodrick
pythondev_help_Rodrick_2019-05-13T10:40:14.449900
1,557,744,014.4499
23,413
pythondev
help
:thumbsup:
2019-05-13T10:40:17.450100
Claudine
pythondev_help_Claudine_2019-05-13T10:40:17.450100
1,557,744,017.4501
23,414
pythondev
help
if its in another place, you’d do `from some_top_level_package.some_inner_packagage.storage import Storage`
2019-05-13T10:41:03.451100
Hiroko
pythondev_help_Hiroko_2019-05-13T10:41:03.451100
1,557,744,063.4511
23,415
pythondev
help
ahhh ok
2019-05-13T10:41:10.451300
Rodrick
pythondev_help_Rodrick_2019-05-13T10:41:10.451300
1,557,744,070.4513
23,416
pythondev
help
or add that folder to your system path, but i think that's not the best practice
2019-05-13T10:43:10.451700
Claudine
pythondev_help_Claudine_2019-05-13T10:43:10.451700
1,557,744,190.4517
23,417
pythondev
help
Yea
2019-05-13T10:43:48.451900
Rodrick
pythondev_help_Rodrick_2019-05-13T10:43:48.451900
1,557,744,228.4519
23,418
pythondev
help
Any help would be nice
2019-05-13T11:18:01.452300
Rodrick
pythondev_help_Rodrick_2019-05-13T11:18:01.452300
1,557,746,281.4523
23,419
pythondev
help
please show the code that is calling this - It looks ike you are calling it from the class level, and it is expecting a class instance
2019-05-13T11:22:10.453700
Clemmie
pythondev_help_Clemmie_2019-05-13T11:22:10.453700
1,557,746,530.4537
23,420