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
its work but copy same image src string
2019-02-25T03:13:11.508300
Gianna
pythondev_help_Gianna_2019-02-25T03:13:11.508300
1,551,064,391.5083
10,321
pythondev
help
Well, you're asking for the same element in the same page, so it would be the same image. Do you need to request a different URL to get another image?
2019-02-25T03:14:05.508500
Sasha
pythondev_help_Sasha_2019-02-25T03:14:05.508500
1,551,064,445.5085
10,322
pythondev
help
no same url
2019-02-25T03:14:26.508700
Gianna
pythondev_help_Gianna_2019-02-25T03:14:26.508700
1,551,064,466.5087
10,323
pythondev
help
just need to reload page
2019-02-25T03:14:41.508900
Gianna
pythondev_help_Gianna_2019-02-25T03:14:41.508900
1,551,064,481.5089
10,324
pythondev
help
or refresh
2019-02-25T03:14:45.509100
Gianna
pythondev_help_Gianna_2019-02-25T03:14:45.509100
1,551,064,485.5091
10,325
pythondev
help
So do that. There's a `driver.refresh()` function in Selenium for that.
2019-02-25T03:16:24.509300
Sasha
pythondev_help_Sasha_2019-02-25T03:16:24.509300
1,551,064,584.5093
10,326
pythondev
help
thanks
2019-02-25T04:51:58.510000
Gianna
pythondev_help_Gianna_2019-02-25T04:51:58.510000
1,551,070,318.51
10,327
pythondev
help
which is best way to add logs on different libraries that i use in my django app?
2019-02-25T06:17:21.511200
Lourie
pythondev_help_Lourie_2019-02-25T06:17:21.511200
1,551,075,441.5112
10,328
pythondev
help
the base log package is pretty solid
2019-02-25T06:32:18.511600
Mica
pythondev_help_Mica_2019-02-25T06:32:18.511600
1,551,076,338.5116
10,329
pythondev
help
though I've seen good things with a package called `loguru`
2019-02-25T06:32:31.512000
Mica
pythondev_help_Mica_2019-02-25T06:32:31.512000
1,551,076,351.512
10,330
pythondev
help
though I've yet to try it
2019-02-25T06:32:34.512200
Mica
pythondev_help_Mica_2019-02-25T06:32:34.512200
1,551,076,354.5122
10,331
pythondev
help
I've heard good things about it is well
2019-02-25T07:27:43.513500
Yaeko
pythondev_help_Yaeko_2019-02-25T07:27:43.513500
1,551,079,663.5135
10,332
pythondev
help
But never tried, "stuck" with the `logging` module
2019-02-25T07:28:07.514100
Yaeko
pythondev_help_Yaeko_2019-02-25T07:28:07.514100
1,551,079,687.5141
10,333
pythondev
help
I have used loguru in a couple of projects now, and apart from some minor issues I have with how you initialise the logging, I loved it. It is really much more verbose and helpful with respect to the standard library.
2019-02-25T07:31:42.515900
Berenice
pythondev_help_Berenice_2019-02-25T07:31:42.515900
1,551,079,902.5159
10,334
pythondev
help
But reading the README again I'm sold, adding an item to the backlog to replace our logging library (which needs updates anyways) :)
2019-02-25T07:32:10.516400
Yaeko
pythondev_help_Yaeko_2019-02-25T07:32:10.516400
1,551,079,930.5164
10,335
pythondev
help
They are also moving towards C implementation which will cut performance costs. Sorry for the fanboy rant.
2019-02-25T07:33:48.517400
Berenice
pythondev_help_Berenice_2019-02-25T07:33:48.517400
1,551,080,028.5174
10,336
pythondev
help
I was considering adopting it. It looks really neat
2019-02-25T07:35:46.517900
Jonas
pythondev_help_Jonas_2019-02-25T07:35:46.517900
1,551,080,146.5179
10,337
pythondev
help
thank you <@Sasha>
2019-02-25T08:05:42.518200
Nena
pythondev_help_Nena_2019-02-25T08:05:42.518200
1,551,081,942.5182
10,338
pythondev
help
Need some help to automate player on a poker website. Any guidance would be helpful. Thanks.
2019-02-25T09:51:25.523700
Weldon
pythondev_help_Weldon_2019-02-25T09:51:25.523700
1,551,088,285.5237
10,339
pythondev
help
Knowing how to ask a good question is a highly invaluable skill that will benefit you greatly in any career. Two good resources for suggestions and strategies to help you structure and phrase your question to make it easier for those here to understand your problem and help you work to a solution are: • <https://www.mikeash.com/getting_answers.html> • <https://stackoverflow.com/help/how-to-ask>
2019-02-25T09:52:22.523800
Leana
pythondev_help_Leana_2019-02-25T09:52:22.523800
1,551,088,342.5238
10,340
pythondev
help
I have written scripts using pyautogui module to automate some stuff but not getting good module to work with when dealing with the automation of player in a poker game.
2019-02-25T09:55:05.525700
Weldon
pythondev_help_Weldon_2019-02-25T09:55:05.525700
1,551,088,505.5257
10,341
pythondev
help
Knowing how to ask a good question is a highly invaluable skill that will benefit you greatly in any career. Two good resources for suggestions and strategies to help you structure and phrase your question to make it easier for those here to understand your problem and help you work to a solution are: • <https://www.mikeash.com/getting_answers.html> • <https://stackoverflow.com/help/how-to-ask>
2019-02-25T10:05:21.525800
Leana
pythondev_help_Leana_2019-02-25T10:05:21.525800
1,551,089,121.5258
10,342
pythondev
help
Any specific problems you are stuck with <@Weldon>? It's not a trivial problem and a quite broad question
2019-02-25T10:11:58.527100
Yaeko
pythondev_help_Yaeko_2019-02-25T10:11:58.527100
1,551,089,518.5271
10,343
pythondev
help
I am facing issues with reading data from a url which is getting updated in realtime
2019-02-25T10:15:36.528400
Weldon
pythondev_help_Weldon_2019-02-25T10:15:36.528400
1,551,089,736.5284
10,344
pythondev
help
Let me be more clear.
2019-02-25T10:15:55.528900
Weldon
pythondev_help_Weldon_2019-02-25T10:15:55.528900
1,551,089,755.5289
10,345
pythondev
help
I am looking for some modules which I can work with related to reading data from URLs or some module which reads text from images.
2019-02-25T10:16:56.531200
Weldon
pythondev_help_Weldon_2019-02-25T10:16:56.531200
1,551,089,816.5312
10,346
pythondev
help
<@Weldon> You will get the most help if you can show/tell what you are trying to do, what you have tried, and the errors you are getting
2019-02-25T10:16:56.531300
Clemmie
pythondev_help_Clemmie_2019-02-25T10:16:56.531300
1,551,089,816.5313
10,347
pythondev
help
Use the snippet feature (the + next to the comment box) to show code and error stack traces
2019-02-25T10:17:30.531900
Clemmie
pythondev_help_Clemmie_2019-02-25T10:17:30.531900
1,551,089,850.5319
10,348
pythondev
help
Yes. Give me a minute
2019-02-25T10:18:40.532200
Weldon
pythondev_help_Weldon_2019-02-25T10:18:40.532200
1,551,089,920.5322
10,349
pythondev
help
I am trying to build a pokerbot for one poker website.
2019-02-25T10:20:39.532800
Weldon
pythondev_help_Weldon_2019-02-25T10:20:39.532800
1,551,090,039.5328
10,350
pythondev
help
I am using pyautogui module to automate some basic stuff.
2019-02-25T10:21:06.533500
Weldon
pythondev_help_Weldon_2019-02-25T10:21:06.533500
1,551,090,066.5335
10,351
pythondev
help
Screenshot functions are not able to locate a particular png.
2019-02-25T10:24:56.534600
Weldon
pythondev_help_Weldon_2019-02-25T10:24:56.534600
1,551,090,296.5346
10,352
pythondev
help
Please show _actual_ code as well as any errors you are getting. Preferably limit the code to the section that is causing difficulties, as well as any contextual code we would need to understand it. As you are asking right now any one who want to help you needs to imagine what code you may have written
2019-02-25T10:26:10.535900
Clemmie
pythondev_help_Clemmie_2019-02-25T10:26:10.535900
1,551,090,370.5359
10,353
pythondev
help
<@Weldon> you know your problem that you’re having and the code that causes it.
2019-02-25T10:28:12.536500
Hiroko
pythondev_help_Hiroko_2019-02-25T10:28:12.536500
1,551,090,492.5365
10,354
pythondev
help
we don’t
2019-02-25T10:28:14.536800
Hiroko
pythondev_help_Hiroko_2019-02-25T10:28:14.536800
1,551,090,494.5368
10,355
pythondev
help
so please incorporate that perspective when structuring your questions
2019-02-25T10:28:30.537200
Hiroko
pythondev_help_Hiroko_2019-02-25T10:28:30.537200
1,551,090,510.5372
10,356
pythondev
help
I am not getting the desired results while using pyautogui module
2019-02-25T10:31:54.537300
Weldon
pythondev_help_Weldon_2019-02-25T10:31:54.537300
1,551,090,714.5373
10,357
pythondev
help
That is... woah :joy:
2019-02-25T10:32:19.538000
Jonas
pythondev_help_Jonas_2019-02-25T10:32:19.538000
1,551,090,739.538
10,358
pythondev
help
that's a first. Please copy and paste your code <@Weldon> into a code snippet
2019-02-25T10:32:34.538600
Jonas
pythondev_help_Jonas_2019-02-25T10:32:34.538600
1,551,090,754.5386
10,359
pythondev
help
Please use the + next to the comment box to show code with the snippet feature. It is hard for us to jump back and forth between a screenshot and commenting
2019-02-25T10:32:47.538900
Clemmie
pythondev_help_Clemmie_2019-02-25T10:32:47.538900
1,551,090,767.5389
10,360
pythondev
help
There is no + sign next to comment box :sweat_smile:
2019-02-25T10:33:14.539500
Weldon
pythondev_help_Weldon_2019-02-25T10:33:14.539500
1,551,090,794.5395
10,361
pythondev
help
Just to the left of where you type is a +
2019-02-25T10:33:32.540000
Clemmie
pythondev_help_Clemmie_2019-02-25T10:33:32.540000
1,551,090,812.54
10,362
pythondev
help
in slack
2019-02-25T10:33:45.540200
Clemmie
pythondev_help_Clemmie_2019-02-25T10:33:45.540200
1,551,090,825.5402
10,363
pythondev
help
None
2019-02-25T10:33:55.540300
Hiroko
pythondev_help_Hiroko_2019-02-25T10:33:55.540300
1,551,090,835.5403
10,364
pythondev
help
No + sign
2019-02-25T10:34:12.540700
Weldon
pythondev_help_Weldon_2019-02-25T10:34:12.540700
1,551,090,852.5407
10,365
pythondev
help
That's because you're on a mobile device
2019-02-25T10:34:31.541500
Jonas
pythondev_help_Jonas_2019-02-25T10:34:31.541500
1,551,090,871.5415
10,366
pythondev
help
How would you expect to copy the code to your mobile, for pasting via that?
2019-02-25T10:34:39.541800
Jonas
pythondev_help_Jonas_2019-02-25T10:34:39.541800
1,551,090,879.5418
10,367
pythondev
help
Give me some time.
2019-02-25T10:35:20.542400
Weldon
pythondev_help_Weldon_2019-02-25T10:35:20.542400
1,551,090,920.5424
10,368
pythondev
help
Please use the snippet feature, or backticks, when sharing code. You can do so by clicking on the :heavy_plus_sign: on the left of the input box for a snippet. For more information on snippets click <https://get.slack.help/hc/en-us/articles/204145658-Create-a-snippet|here>. For more information on inline code formatting with backticks click <https://get.slack.help/hc/en-us/articles/202288908-Format-your-messages#inline-code|here>.
2019-02-25T10:35:37.543000
Leana
pythondev_help_Leana_2019-02-25T10:35:37.543000
1,551,090,937.543
10,369
pythondev
help
user experience really differs between mobile and other devices
2019-02-25T10:35:47.543400
Hiroko
pythondev_help_Hiroko_2019-02-25T10:35:47.543400
1,551,090,947.5434
10,370
pythondev
help
are you able to use the website?
2019-02-25T10:35:55.543800
Hiroko
pythondev_help_Hiroko_2019-02-25T10:35:55.543800
1,551,090,955.5438
10,371
pythondev
help
We are in no rush -there is always someone here. Ask again when you are ready in a good environment to really dig into the problem
2019-02-25T10:36:02.544100
Clemmie
pythondev_help_Clemmie_2019-02-25T10:36:02.544100
1,551,090,962.5441
10,372
pythondev
help
slack works equally well in the browser
2019-02-25T10:36:05.544300
Hiroko
pythondev_help_Hiroko_2019-02-25T10:36:05.544300
1,551,090,965.5443
10,373
pythondev
help
I am getting the same result for both the queriers
2019-02-25T10:39:03.544500
Weldon
pythondev_help_Weldon_2019-02-25T10:39:03.544500
1,551,091,143.5445
10,374
pythondev
help
you mean with the 2 calls to `getpixel`? are you sure that the pixel values are different at those two locations?
2019-02-25T10:39:48.545300
Clemmie
pythondev_help_Clemmie_2019-02-25T10:39:48.545300
1,551,091,188.5453
10,375
pythondev
help
Those are fairly close together on a modern monitor, with an ok chance they are pixels in the same widget, with a higher probability they are the same color
2019-02-25T10:40:38.546200
Clemmie
pythondev_help_Clemmie_2019-02-25T10:40:38.546200
1,551,091,238.5462
10,376
pythondev
help
`im` is an `Image` object. Try `im.show()`
2019-02-25T10:40:55.546500
Jonas
pythondev_help_Jonas_2019-02-25T10:40:55.546500
1,551,091,255.5465
10,377
pythondev
help
And see what the image contains
2019-02-25T10:41:07.546800
Jonas
pythondev_help_Jonas_2019-02-25T10:41:07.546800
1,551,091,267.5468
10,378
pythondev
help
Yes. Same result for both the queries.
2019-02-25T10:42:00.546900
Weldon
pythondev_help_Weldon_2019-02-25T10:42:00.546900
1,551,091,320.5469
10,379
pythondev
help
But that might be ok - if both of those pixels are black that is the result you would expect
2019-02-25T10:42:39.547500
Clemmie
pythondev_help_Clemmie_2019-02-25T10:42:39.547500
1,551,091,359.5475
10,380
pythondev
help
I have tried all other values also but getting the same outpuy.
2019-02-25T10:43:22.548000
Weldon
pythondev_help_Weldon_2019-02-25T10:43:22.548000
1,551,091,402.548
10,381
pythondev
help
*output
2019-02-25T10:43:29.548200
Weldon
pythondev_help_Weldon_2019-02-25T10:43:29.548200
1,551,091,409.5482
10,382
pythondev
help
(0, 0, 0)
2019-02-25T10:43:38.548400
Weldon
pythondev_help_Weldon_2019-02-25T10:43:38.548400
1,551,091,418.5484
10,383
pythondev
help
and what's on screen ?
2019-02-25T10:43:45.548600
Jimmy
pythondev_help_Jimmy_2019-02-25T10:43:45.548600
1,551,091,425.5486
10,384
pythondev
help
Let me demonstrate through a video. Give me a minute.
2019-02-25T10:44:24.549300
Weldon
pythondev_help_Weldon_2019-02-25T10:44:24.549300
1,551,091,464.5493
10,385
pythondev
help
In a Pandas dataframe, how do I change the index labels? It starts at 300000 but I want it to start at zero. Thanks!
2019-02-25T10:49:11.549600
Ming
pythondev_help_Ming_2019-02-25T10:49:11.549600
1,551,091,751.5496
10,386
pythondev
help
<@Weldon> A video is really not going to help
2019-02-25T10:49:37.550200
Jonas
pythondev_help_Jonas_2019-02-25T10:49:37.550200
1,551,091,777.5502
10,387
pythondev
help
You have an issue, your image appears to be blank
2019-02-25T10:49:48.550500
Jonas
pythondev_help_Jonas_2019-02-25T10:49:48.550500
1,551,091,788.5505
10,388
pythondev
help
You can debug this. First validate that the image is indeed blank, `im.show()`
2019-02-25T10:50:03.550900
Jonas
pythondev_help_Jonas_2019-02-25T10:50:03.550900
1,551,091,803.5509
10,389
pythondev
help
If so, check if it's the `region` you're taking a screenshot of
2019-02-25T10:50:28.551500
Jonas
pythondev_help_Jonas_2019-02-25T10:50:28.551500
1,551,091,828.5515
10,390
pythondev
help
Try just calling `pyautogui.screenshot()` and see if that works
2019-02-25T10:50:39.551900
Jonas
pythondev_help_Jonas_2019-02-25T10:50:39.551900
1,551,091,839.5519
10,391
pythondev
help
you can replace the index
2019-02-25T10:51:03.552200
Joette
pythondev_help_Joette_2019-02-25T10:51:03.552200
1,551,091,863.5522
10,392
pythondev
help
`df.index = some_new_index`
2019-02-25T10:51:24.552400
Joette
pythondev_help_Joette_2019-02-25T10:51:24.552400
1,551,091,884.5524
10,393
pythondev
help
maybe `df.index = pd.Index(list(range(len(df.index))))`
2019-02-25T10:51:59.552600
Joette
pythondev_help_Joette_2019-02-25T10:51:59.552600
1,551,091,919.5526
10,394
pythondev
help
<@Jonas> Yes the image is blank.
2019-02-25T10:52:26.553200
Weldon
pythondev_help_Weldon_2019-02-25T10:52:26.553200
1,551,091,946.5532
10,395
pythondev
help
though that wouldn't maintain the steps you have, but that's solvable!
2019-02-25T10:52:34.553500
Joette
pythondev_help_Joette_2019-02-25T10:52:34.553500
1,551,091,954.5535
10,396
pythondev
help
pyautogui.screenshot() is not capturing the sceen
2019-02-25T10:52:41.553900
Weldon
pythondev_help_Weldon_2019-02-25T10:52:41.553900
1,551,091,961.5539
10,397
pythondev
help
That's fine. And it worked! Thanks a lot! :smiley:
2019-02-25T10:53:05.554300
Ming
pythondev_help_Ming_2019-02-25T10:53:05.554300
1,551,091,985.5543
10,398
pythondev
help
I have tried using different regions but not getting the desired results
2019-02-25T10:53:24.554900
Weldon
pythondev_help_Weldon_2019-02-25T10:53:24.554900
1,551,092,004.5549
10,399
pythondev
help
Do you have multiple monitors?
2019-02-25T10:54:49.555100
Clemmie
pythondev_help_Clemmie_2019-02-25T10:54:49.555100
1,551,092,089.5551
10,400
pythondev
help
Also what OS are you using?
2019-02-25T10:55:52.555300
Clemmie
pythondev_help_Clemmie_2019-02-25T10:55:52.555300
1,551,092,152.5553
10,401
pythondev
help
You can start to see if it is in the right place using `pyautogui.size()` it should return the size in pixels of your monitor
2019-02-25T10:56:52.556100
Clemmie
pythondev_help_Clemmie_2019-02-25T10:56:52.556100
1,551,092,212.5561
10,402
pythondev
help
No I have only one monitor and i am using Ubuntu 18.0.4LTS
2019-02-25T11:05:55.557700
Weldon
pythondev_help_Weldon_2019-02-25T11:05:55.557700
1,551,092,755.5577
10,403
pythondev
help
Is it giving you the right size of your monitor with with `pyautogui.size()`?
2019-02-25T11:06:52.558300
Clemmie
pythondev_help_Clemmie_2019-02-25T11:06:52.558300
1,551,092,812.5583
10,404
pythondev
help
Yes.
2019-02-25T11:07:09.558500
Weldon
pythondev_help_Weldon_2019-02-25T11:07:09.558500
1,551,092,829.5585
10,405
pythondev
help
And you have a window open on that screen?
2019-02-25T11:07:25.559000
Clemmie
pythondev_help_Clemmie_2019-02-25T11:07:25.559000
1,551,092,845.559
10,406
pythondev
help
Yes.
2019-02-25T11:07:42.559200
Weldon
pythondev_help_Weldon_2019-02-25T11:07:42.559200
1,551,092,862.5592
10,407
pythondev
help
What should i do?
2019-02-25T11:08:18.559600
Weldon
pythondev_help_Weldon_2019-02-25T11:08:18.559600
1,551,092,898.5596
10,408
pythondev
help
and `im.show()` is just showing you a black picture
2019-02-25T11:08:22.559800
Clemmie
pythondev_help_Clemmie_2019-02-25T11:08:22.559800
1,551,092,902.5598
10,409
pythondev
help
sorry `img1.show()`
2019-02-25T11:08:51.560000
Clemmie
pythondev_help_Clemmie_2019-02-25T11:08:51.560000
1,551,092,931.56
10,410
pythondev
help
<@Weldon> it looks like this may be a known and outstanding issue with pyautogui <https://github.com/asweigart/pyautogui/issues/280>
2019-02-25T11:11:45.560600
Clemmie
pythondev_help_Clemmie_2019-02-25T11:11:45.560600
1,551,093,105.5606
10,411
pythondev
help
&gt; I think the problem is that pyautogui doesn't come to terms with wayland yet, the x11 substitute.
2019-02-25T11:13:57.561000
Jonas
pythondev_help_Jonas_2019-02-25T11:13:57.561000
1,551,093,237.561
10,412
pythondev
help
If you're trying to make a poker bot, there are way better ways than reading the screen
2019-02-25T11:14:26.561300
Jonas
pythondev_help_Jonas_2019-02-25T11:14:26.561300
1,551,093,266.5613
10,413
pythondev
help
that's..... going to be hard.
2019-02-25T11:14:37.561600
Jonas
pythondev_help_Jonas_2019-02-25T11:14:37.561600
1,551,093,277.5616
10,414
pythondev
help
best bet is probably intercepting/injecting json
2019-02-25T11:15:03.562100
Clemmie
pythondev_help_Clemmie_2019-02-25T11:15:03.562100
1,551,093,303.5621
10,415
pythondev
help
:point_up_2: if you're struggling to capture the screen just wait until you need to do object detection
2019-02-25T11:15:29.562700
Jonas
pythondev_help_Jonas_2019-02-25T11:15:29.562700
1,551,093,329.5627
10,416
pythondev
help
<@Jonas> possibly not though. With a known set of assets pyautogui can actually search for matches and get the screen location
2019-02-25T11:16:34.563700
Clemmie
pythondev_help_Clemmie_2019-02-25T11:16:34.563700
1,551,093,394.5637
10,417
pythondev
help
Still not great, but tractable
2019-02-25T11:16:41.564000
Clemmie
pythondev_help_Clemmie_2019-02-25T11:16:41.564000
1,551,093,401.564
10,418
pythondev
help
i am getting issue as "sublist parameters are not supported in python 3" at part of lambda(v, k). do any one know how to solve this?
2019-02-25T11:23:57.566500
Keena
pythondev_help_Keena_2019-02-25T11:23:57.566500
1,551,093,837.5665
10,419
pythondev
help
Thanks guys. I will try again with json and xpath.
2019-02-25T11:24:27.567300
Weldon
pythondev_help_Weldon_2019-02-25T11:24:27.567300
1,551,093,867.5673
10,420