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
Developers have uses, sure
2019-03-07T12:16:26.945600
Ashley
pythondev_help_Ashley_2019-03-07T12:16:26.945600
1,551,960,986.9456
12,521
pythondev
help
I don't interact with my browsers via xpath
2019-03-07T12:16:32.945800
Karoline
pythondev_help_Karoline_2019-03-07T12:16:32.945800
1,551,960,992.9458
12,522
pythondev
help
so that ship has sort of sailed lol
2019-03-07T12:16:38.946000
Karoline
pythondev_help_Karoline_2019-03-07T12:16:38.946000
1,551,960,998.946
12,523
pythondev
help
you're not clicking around with a cursor like some kind of monster, are you??
2019-03-07T12:17:15.946500
Joette
pythondev_help_Joette_2019-03-07T12:17:15.946500
1,551,961,035.9465
12,524
pythondev
help
That's not really a fair argument
2019-03-07T12:17:21.946700
Ashley
pythondev_help_Ashley_2019-03-07T12:17:21.946700
1,551,961,041.9467
12,525
pythondev
help
it is - because it's precisely my point. it's a philosophical argument rather than a practical argument, and one that falls apart under cursory inspection.
2019-03-07T12:17:58.948000
Karoline
pythondev_help_Karoline_2019-03-07T12:17:58.948000
1,551,961,078.948
12,526
pythondev
help
It's a middleman between code and user. There's no magical means of a computer behaving exactly like a user in a predicable and deterministic manner
2019-03-07T12:18:36.948700
Ashley
pythondev_help_Ashley_2019-03-07T12:18:36.948700
1,551,961,116.9487
12,527
pythondev
help
right. so it's useful to be able to use these signals to avoid needing magic
2019-03-07T12:19:28.950100
Karoline
pythondev_help_Karoline_2019-03-07T12:19:28.950100
1,551,961,168.9501
12,528
pythondev
help
If you care about the status code, why are you trying to use Selenium? Why not hit the API directly?
2019-03-07T12:20:51.950500
Ashley
pythondev_help_Ashley_2019-03-07T12:20:51.950500
1,551,961,251.9505
12,529
pythondev
help
what API? like use curl?
2019-03-07T12:21:13.950800
Karoline
pythondev_help_Karoline_2019-03-07T12:21:13.950800
1,551,961,273.9508
12,530
pythondev
help
or requests or something?
2019-03-07T12:21:27.951100
Karoline
pythondev_help_Karoline_2019-03-07T12:21:27.951100
1,551,961,287.9511
12,531
pythondev
help
Yeah
2019-03-07T12:21:47.951200
Ashley
pythondev_help_Ashley_2019-03-07T12:21:47.951200
1,551,961,307.9512
12,532
pythondev
help
The API for the backed, whatever form that takes
2019-03-07T12:22:06.951900
Ashley
pythondev_help_Ashley_2019-03-07T12:22:06.951900
1,551,961,326.9519
12,533
pythondev
help
many websites don't have a backend API
2019-03-07T12:22:16.952100
Karoline
pythondev_help_Karoline_2019-03-07T12:22:16.952100
1,551,961,336.9521
12,534
pythondev
help
I'll rephrase
2019-03-07T12:23:01.953300
Ashley
pythondev_help_Ashley_2019-03-07T12:23:01.953300
1,551,961,381.9533
12,535
pythondev
help
Why don't you hit the website's server directly?
2019-03-07T12:23:18.953800
Ashley
pythondev_help_Ashley_2019-03-07T12:23:18.953800
1,551,961,398.9538
12,536
pythondev
help
Why bother going through the browser?
2019-03-07T12:23:34.954300
Ashley
pythondev_help_Ashley_2019-03-07T12:23:34.954300
1,551,961,414.9543
12,537
pythondev
help
I get the objection here, b/c you may be checking status based on specific input added via the browser
2019-03-07T12:23:48.954800
Joette
pythondev_help_Joette_2019-03-07T12:23:48.954800
1,551,961,428.9548
12,538
pythondev
help
because sometimes the most reliable way to get data from a site is to be as close to a user as possible.
2019-03-07T12:24:06.955400
Karoline
pythondev_help_Karoline_2019-03-07T12:24:06.955400
1,551,961,446.9554
12,539
pythondev
help
"For a logged in user, after do X and then Y and then Z verify that the resulting status code is XXX"
2019-03-07T12:24:21.955800
Joette
pythondev_help_Joette_2019-03-07T12:24:21.955800
1,551,961,461.9558
12,540
pythondev
help
that oughtn't be the primary test, but you may want to check that too
2019-03-07T12:24:34.956800
Joette
pythondev_help_Joette_2019-03-07T12:24:34.956800
1,551,961,474.9568
12,541
pythondev
help
You can easily get around that by grabbing the cookies/user agent from the browser, and using them in your request
2019-03-07T12:24:56.958200
Ashley
pythondev_help_Ashley_2019-03-07T12:24:56.958200
1,551,961,496.9582
12,542
pythondev
help
verify both the visual result, e.g. error message, _and_ that the server responds with a specific code in _that_ status
2019-03-07T12:24:58.958400
Joette
pythondev_help_Joette_2019-03-07T12:24:58.958400
1,551,961,498.9584
12,543
pythondev
help
but if you're _already doing these tests_
2019-03-07T12:25:08.958800
Joette
pythondev_help_Joette_2019-03-07T12:25:08.958800
1,551,961,508.9588
12,544
pythondev
help
the prescribed solution is to use testing middleware
2019-03-07T12:25:31.959700
Joette
pythondev_help_Joette_2019-03-07T12:25:31.959700
1,551,961,531.9597
12,545
pythondev
help
from which browser, the one driven by selenium? that's sort of rube goldberg-esque
2019-03-07T12:25:33.959900
Karoline
pythondev_help_Karoline_2019-03-07T12:25:33.959900
1,551,961,533.9599
12,546
pythondev
help
Selenium drives the browser, not the other way around
2019-03-07T12:25:59.961000
Ashley
pythondev_help_Ashley_2019-03-07T12:25:59.961000
1,551,961,559.961
12,547
pythondev
help
that's exactly what I said?
2019-03-07T12:26:08.961700
Karoline
pythondev_help_Karoline_2019-03-07T12:26:08.961700
1,551,961,568.9617
12,548
pythondev
help
Sorry, sent before your edit
2019-03-07T12:26:11.961800
Ashley
pythondev_help_Ashley_2019-03-07T12:26:11.961800
1,551,961,571.9618
12,549
pythondev
help
ah
2019-03-07T12:26:15.962100
Karoline
pythondev_help_Karoline_2019-03-07T12:26:15.962100
1,551,961,575.9621
12,550
pythondev
help
in the end I think I ended up parsing the performance logs for it
2019-03-07T12:26:26.962500
Karoline
pythondev_help_Karoline_2019-03-07T12:26:26.962500
1,551,961,586.9625
12,551
pythondev
help
Hey Folks, have a dict something like this which maps to function based on the input, ``` function_map = { "credentials": self.add_credential, "vm_configuration": self.add_basic_vm_configuration, "connection": self.configure_connection, "disk": self.add_disk, "nic": self.add_network_profile, "vm_guest": self.add_vm_guest_customization }``` have to handle a scenario where anything apart this gets handled
2019-03-07T12:26:51.963300
Nena
pythondev_help_Nena_2019-03-07T12:26:51.963300
1,551,961,611.9633
12,552
pythondev
help
basically need to write a wildcard, which os handled by a func saying bad input or proceding with next data
2019-03-07T12:28:06.965700
Nena
pythondev_help_Nena_2019-03-07T12:28:06.965700
1,551,961,686.9657
12,553
pythondev
help
If you're running e2e tests, checking the status code is more about testing implementation than behavior. You should be looking at what impact that has on behavior, rather than just checking it returns "200"/"404"/"500"/etc
2019-03-07T12:28:21.966200
Ashley
pythondev_help_Ashley_2019-03-07T12:28:21.966200
1,551,961,701.9662
12,554
pythondev
help
If you _really_ need that response status code, you can also just go through a proxy
2019-03-07T12:29:19.967600
Ashley
pythondev_help_Ashley_2019-03-07T12:29:19.967600
1,551,961,759.9676
12,555
pythondev
help
Not everybody is using selenium for e2e tests.
2019-03-07T12:29:27.967800
Karoline
pythondev_help_Karoline_2019-03-07T12:29:27.967800
1,551,961,767.9678
12,556
pythondev
help
I know, hence my comment about the proxy
2019-03-07T12:29:42.968200
Ashley
pythondev_help_Ashley_2019-03-07T12:29:42.968200
1,551,961,782.9682
12,557
pythondev
help
the proxy is a huge hassle, the performance logs route isn't too bad when you figure it out - I've been meaning to put up a blog post on it
2019-03-07T12:30:08.968900
Karoline
pythondev_help_Karoline_2019-03-07T12:30:08.968900
1,551,961,808.9689
12,558
pythondev
help
the big issue of course is that since there's a philosophical opposition to it, I wouldn't be shocked if this will break at some point
2019-03-07T12:30:34.969400
Karoline
pythondev_help_Karoline_2019-03-07T12:30:34.969400
1,551,961,834.9694
12,559
pythondev
help
because that's happened in the past
2019-03-07T12:30:37.969600
Karoline
pythondev_help_Karoline_2019-03-07T12:30:37.969600
1,551,961,837.9696
12,560
pythondev
help
The proxy is actually pretty easy to set up. Someone even made a python package for it, `browsermobproxy`
2019-03-07T12:33:09.970800
Ashley
pythondev_help_Ashley_2019-03-07T12:33:09.970800
1,551,961,989.9708
12,561
pythondev
help
What would break?
2019-03-07T12:33:31.971400
Ashley
pythondev_help_Ashley_2019-03-07T12:33:31.971400
1,551,962,011.9714
12,562
pythondev
help
my setup was containerized so that was a bit weird as my selenium client and the headless chrome instance were in different containers. I imagine it could be setup, but it was more effort figuring it out than the performance log route
2019-03-07T12:34:46.972900
Karoline
pythondev_help_Karoline_2019-03-07T12:34:46.972900
1,551,962,086.9729
12,563
pythondev
help
<@Nena> Have a look at `collections.defaultdict`, which allows you to have a default value for missing dictionary keys.
2019-03-07T12:34:56.973100
Sasha
pythondev_help_Sasha_2019-03-07T12:34:56.973100
1,551,962,096.9731
12,564
pythondev
help
I mean what would break as a result of it being a philosophical opposition?
2019-03-07T12:36:36.973700
Ashley
pythondev_help_Ashley_2019-03-07T12:36:36.973700
1,551,962,196.9737
12,565
pythondev
help
It's just less than a priority, with approaches in the past messages I've seen on the web seemed to almost relish taking the ability to do it away.
2019-03-07T12:37:08.974300
Karoline
pythondev_help_Karoline_2019-03-07T12:37:08.974300
1,551,962,228.9743
12,566
pythondev
help
So who knows - but there have been other ways to do it and they've been removed/stopped working and the general response is just "welp"
2019-03-07T12:37:50.974900
Karoline
pythondev_help_Karoline_2019-03-07T12:37:50.974900
1,551,962,270.9749
12,567
pythondev
help
thank you <@Sasha>, let me check that out.
2019-03-07T12:38:29.975000
Nena
pythondev_help_Nena_2019-03-07T12:38:29.975000
1,551,962,309.975
12,568
pythondev
help
So you mean their opposition may break
2019-03-07T12:40:02.975500
Ashley
pythondev_help_Ashley_2019-03-07T12:40:02.975500
1,551,962,402.9755
12,569
pythondev
help
I mean techniques currently used to get the return code. But if we want to continue the conversation probably should go to #testing_
2019-03-07T12:42:30.976000
Karoline
pythondev_help_Karoline_2019-03-07T12:42:30.976000
1,551,962,550.976
12,570
pythondev
help
wow selenium doesn't provide a status code? What does it tell you if you go looking for an element but the server responded with a 503 or something?
2019-03-07T12:43:31.976900
Jenice
pythondev_help_Jenice_2019-03-07T12:43:31.976900
1,551,962,611.9769
12,571
pythondev
help
You might run into a little weirdness since you want to have a function as the value, which `defaultdict` might interpret as a constructor instead of the value itself. So you might need to wrap that in a `lambda`.
2019-03-07T12:43:39.977100
Sasha
pythondev_help_Sasha_2019-03-07T12:43:39.977100
1,551,962,619.9771
12,572
pythondev
help
running by the docs, will work something out. Thanks again for the guide.
2019-03-07T12:44:46.977900
Nena
pythondev_help_Nena_2019-03-07T12:44:46.977900
1,551,962,686.9779
12,573
pythondev
help
It would tell you the element is not found
2019-03-07T12:44:54.978500
Ashley
pythondev_help_Ashley_2019-03-07T12:44:54.978500
1,551,962,694.9785
12,574
pythondev
help
Probably best for us to take this to #testing_
2019-03-07T12:44:59.978900
Karoline
pythondev_help_Karoline_2019-03-07T12:44:59.978900
1,551,962,699.9789
12,575
pythondev
help
Yeah
2019-03-07T12:45:05.979100
Ashley
pythondev_help_Ashley_2019-03-07T12:45:05.979100
1,551,962,705.9791
12,576
pythondev
help
Which for some reason doesn't autolink :disappointed:
2019-03-07T12:45:14.979400
Karoline
pythondev_help_Karoline_2019-03-07T12:45:14.979400
1,551,962,714.9794
12,577
pythondev
help
Interested to read if you find the time to write it :)
2019-03-07T12:48:00.980500
Eric
pythondev_help_Eric_2019-03-07T12:48:00.980500
1,551,962,880.9805
12,578
pythondev
help
I know its a stretch but care to give out ideas what mobproxy can do ?
2019-03-07T12:49:05.981900
Eric
pythondev_help_Eric_2019-03-07T12:49:05.981900
1,551,962,945.9819
12,579
pythondev
help
yeah I really need to just get it done - I actually have a part 1 of using nightwatch with headless chrome in docker that I wanted to get out as sort of a primer for that but there's something weird about the setup I wrote in there, it doesn't work like the one I had previously used does. so gotta figure that out first.
2019-03-07T12:49:07.982100
Karoline
pythondev_help_Karoline_2019-03-07T12:49:07.982100
1,551,962,947.9821
12,580
pythondev
help
Hi there, I might have an odd question: I am using a third party library docx-mailmerge, to populate word mergefields (placeholders). I have a field that doesn’t always have a value, but when it does, I’d like to append a space at the end. However, the library seems to strip that space. Now my question, is there a whitespace character that isn’t stripped by function such as str.strip()?
2019-03-07T13:00:58.984600
Dominga
pythondev_help_Dominga_2019-03-07T13:00:58.984600
1,551,963,658.9846
12,581
pythondev
help
Hi everyone, I seem to be having even more trouble with my file open() syntax. In the below snippet, for whatever reason, Python doesn't seem to be iterating through all the '...endpoints.txt' files and only seems to be stopping at the first file it finds. I can post more code if that'd be helpful.
2019-03-07T13:08:06.985000
Granville
pythondev_help_Granville_2019-03-07T13:08:06.985000
1,551,964,086.985
12,582
pythondev
help
Yes, more code please
2019-03-07T13:08:46.985600
Clemmie
pythondev_help_Clemmie_2019-03-07T13:08:46.985600
1,551,964,126.9856
12,583
pythondev
help
None
2019-03-07T13:10:02.987100
Granville
pythondev_help_Granville_2019-03-07T13:10:02.987100
1,551,964,202.9871
12,584
pythondev
help
you should also be using the `with` contextmanager for opening files `with open(file_name, 'r') as file_handle:` it will take care of closing file handles for you, etc, and is just good practice
2019-03-07T13:10:05.987500
Clemmie
pythondev_help_Clemmie_2019-03-07T13:10:05.987500
1,551,964,205.9875
12,585
pythondev
help
I see, good call
2019-03-07T13:10:27.987900
Granville
pythondev_help_Granville_2019-03-07T13:10:27.987900
1,551,964,227.9879
12,586
pythondev
help
you are setting newlines = to read on each iteration, overwriting the lines of the pervious files
2019-03-07T13:10:44.988600
Clemmie
pythondev_help_Clemmie_2019-03-07T13:10:44.988600
1,551,964,244.9886
12,587
pythondev
help
Not sure I follow. It's just a proxy that lets you look at and manipulate network requests/responses.
2019-03-07T13:11:24.989200
Ashley
pythondev_help_Ashley_2019-03-07T13:11:24.989200
1,551,964,284.9892
12,588
pythondev
help
if you need all lines from all files replace that line with `new_lines += file_handle.readlines()`
2019-03-07T13:11:52.989900
Clemmie
pythondev_help_Clemmie_2019-03-07T13:11:52.989900
1,551,964,312.9899
12,589
pythondev
help
ah! crud. Thanks. Something funny seems to happen though. I'm not sure if the second for statement is causing it but my output suddenly goes to every character in a word being treated as a line in the file
2019-03-07T13:12:34.990300
Granville
pythondev_help_Granville_2019-03-07T13:12:34.990300
1,551,964,354.9903
12,590
pythondev
help
how are you printing it?
2019-03-07T13:18:08.990700
Clemmie
pythondev_help_Clemmie_2019-03-07T13:18:08.990700
1,551,964,688.9907
12,591
pythondev
help
if you are iterating through newlines a string is a list, and will spit out each char
2019-03-07T13:18:28.991200
Clemmie
pythondev_help_Clemmie_2019-03-07T13:18:28.991200
1,551,964,708.9912
12,592
pythondev
help
ah, I have another function it runs thru. That might be the issue. If I call the `printalllinesinfiles()` function, it works fine. Thanks for the help!
2019-03-07T13:26:42.992200
Granville
pythondev_help_Granville_2019-03-07T13:26:42.992200
1,551,965,202.9922
12,593
pythondev
help
Doesn’t seem to be ideal for most of my projects. Lol. That’s all. Maybe hate was a strong word?
2019-03-07T13:30:01.993600
Nieves
pythondev_help_Nieves_2019-03-07T13:30:01.993600
1,551,965,401.9936
12,594
pythondev
help
Anyone have experience with python and ip cameras?
2019-03-07T14:12:59.995800
Nenita
pythondev_help_Nenita_2019-03-07T14:12:59.995800
1,551,967,979.9958
12,595
pythondev
help
depends on what you're looking to do
2019-03-07T14:14:08.996000
Ashley
pythondev_help_Ashley_2019-03-07T14:14:08.996000
1,551,968,048.996
12,596
pythondev
help
pull data from the stored sd card
2019-03-07T14:16:22.996500
Nenita
pythondev_help_Nenita_2019-03-07T14:16:22.996500
1,551,968,182.9965
12,597
pythondev
help
im assuming itd be fairly simple, but just curious if anyone already has experience to help me with the 'do's-and-don'ts"
2019-03-07T14:16:58.997300
Nenita
pythondev_help_Nenita_2019-03-07T14:16:58.997300
1,551,968,218.9973
12,598
pythondev
help
Can't you take the sd card out?
2019-03-07T14:17:50.997400
Jonas
pythondev_help_Jonas_2019-03-07T14:17:50.997400
1,551,968,270.9974
12,599
pythondev
help
By that I mean isn't your problem "python and SD cards"?
2019-03-07T14:18:12.997800
Jonas
pythondev_help_Jonas_2019-03-07T14:18:12.997800
1,551,968,292.9978
12,600
pythondev
help
Yes, but there will be 11 cameras over 11 locations
2019-03-07T14:18:16.998000
Nenita
pythondev_help_Nenita_2019-03-07T14:18:16.998000
1,551,968,296.998
12,601
pythondev
help
let's go a step higher
2019-03-07T14:18:45.998600
Ashley
pythondev_help_Ashley_2019-03-07T14:18:45.998600
1,551,968,325.9986
12,602
pythondev
help
I will have to design some system to pull the data frequently and store the info in a database. it has to have some sort of automation
2019-03-07T14:18:48.998900
Nenita
pythondev_help_Nenita_2019-03-07T14:18:48.998900
1,551,968,328.9989
12,603
pythondev
help
why are you pulling the data from the SD car if they're IP cameras?
2019-03-07T14:18:56.999100
Ashley
pythondev_help_Ashley_2019-03-07T14:18:56.999100
1,551,968,336.9991
12,604
pythondev
help
lpr cameras more specifically
2019-03-07T14:19:05.999300
Nenita
pythondev_help_Nenita_2019-03-07T14:19:05.999300
1,551,968,345.9993
12,605
pythondev
help
one sec. i should have specified more in the beginning.
2019-03-07T14:19:35.999800
Nenita
pythondev_help_Nenita_2019-03-07T14:19:35.999800
1,551,968,375.9998
12,606
pythondev
help
we plan to have 11 lpr cameras over 11 locations and will need to compare that data with our database. it will need to be automated therefore I need to design some system to pull the data from the 11 cameras. There is plenty software designed for this, but the camera is what does the lpr - not the software - so that is why i am using python rather than installing software on every single computer.
2019-03-07T14:21:49.002300
Nenita
pythondev_help_Nenita_2019-03-07T14:21:49.002300
1,551,968,509.0023
12,607
pythondev
help
Ipr?
2019-03-07T14:22:13.002600
Ashley
pythondev_help_Ashley_2019-03-07T14:22:13.002600
1,551,968,533.0026
12,608
pythondev
help
license plate recognition
2019-03-07T14:22:21.002900
Nenita
pythondev_help_Nenita_2019-03-07T14:22:21.002900
1,551,968,541.0029
12,609
pythondev
help
lol wut
2019-03-07T14:22:38.003100
Ashley
pythondev_help_Ashley_2019-03-07T14:22:38.003100
1,551,968,558.0031
12,610
pythondev
help
what's the brand/model of these cameras?
2019-03-07T14:22:51.003500
Ashley
pythondev_help_Ashley_2019-03-07T14:22:51.003500
1,551,968,571.0035
12,611
pythondev
help
<https://digital-watchdog.com/productdetail/DWC-MB44iALPR/>
2019-03-07T14:24:59.003800
Nenita
pythondev_help_Nenita_2019-03-07T14:24:59.003800
1,551,968,699.0038
12,612
pythondev
help
that exact camera from that exact provider.
2019-03-07T14:25:13.004200
Nenita
pythondev_help_Nenita_2019-03-07T14:25:13.004200
1,551,968,713.0042
12,613
pythondev
help
hmmm
2019-03-07T14:25:51.004400
Ashley
pythondev_help_Ashley_2019-03-07T14:25:51.004400
1,551,968,751.0044
12,614
pythondev
help
looks like they don't recognize what the plate actually says, just that it's a license plate
2019-03-07T14:26:07.004800
Ashley
pythondev_help_Ashley_2019-03-07T14:26:07.004800
1,551,968,767.0048
12,615
pythondev
help
and it gets a clean image of it
2019-03-07T14:26:20.005000
Ashley
pythondev_help_Ashley_2019-03-07T14:26:20.005000
1,551,968,780.005
12,616
pythondev
help
it has the lpr built in. it only stores the image and text of the plate for a limited period. all the extra software from dw that i dont want to install is for viewing the cameras. the software does no part of the license plate recognition. that is why I am choosing to design something in python to just pull and compare the data.
2019-03-07T14:27:37.006400
Nenita
pythondev_help_Nenita_2019-03-07T14:27:37.006400
1,551,968,857.0064
12,617
pythondev
help
I got something for you that I think you'll love
2019-03-07T14:28:29.007100
Ashley
pythondev_help_Ashley_2019-03-07T14:28:29.007100
1,551,968,909.0071
12,618
pythondev
help
it's not python
2019-03-07T14:28:32.007300
Ashley
pythondev_help_Ashley_2019-03-07T14:28:32.007300
1,551,968,912.0073
12,619
pythondev
help
it's node
2019-03-07T14:28:35.007500
Ashley
pythondev_help_Ashley_2019-03-07T14:28:35.007500
1,551,968,915.0075
12,620