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
<https://github.com/Rebaiahmed/OCR_SIMPLECV>
2017-08-14T07:08:54.741758
Gala
pythondev_help_Gala_2017-08-14T07:08:54.741758
1,502,694,534.741758
89,603
pythondev
help
the project open the webcam , extract text from images captured and analyze it , if it was mathmatical expression it will evaluate it and sound the solution , if it was simple text it will translate it to the Frensh and pronounce it
2017-08-14T07:10:11.762040
Gala
pythondev_help_Gala_2017-08-14T07:10:11.762040
1,502,694,611.76204
89,604
pythondev
help
it's cool ? can i put it in my Resume ?
2017-08-14T07:10:23.765198
Gala
pythondev_help_Gala_2017-08-14T07:10:23.765198
1,502,694,623.765198
89,605
pythondev
help
It does look cool, but I would personally clean up the code before sharing it with employers
2017-08-14T07:15:31.847027
Gabriele
pythondev_help_Gabriele_2017-08-14T07:15:31.847027
1,502,694,931.847027
89,606
pythondev
help
Hi everyone: We're looking for another maintainer of <https://github.com/zalando/connexion>. If you're interested in helping a popular Python project with code review/responding to potential users/contributors, drop a line ...
2017-08-14T11:24:23.613166
Masako
pythondev_help_Masako_2017-08-14T11:24:23.613166
1,502,709,863.613166
89,607
pythondev
help
:wave: <@Masako> - Just an FYI - I deleted the crosspost in <#C2FMLUBEU|community_projects> . We tend to discourage crossposting
2017-08-14T11:26:26.688901
Beula
pythondev_help_Beula_2017-08-14T11:26:26.688901
1,502,709,986.688901
89,608
pythondev
help
Thanks, <@Beula> :slightly_smiling_face:
2017-08-14T12:08:30.225289
Masako
pythondev_help_Masako_2017-08-14T12:08:30.225289
1,502,712,510.225289
89,609
pythondev
help
alignment in javascript is rough huh
2017-08-14T12:54:53.782576
Chantell
pythondev_help_Chantell_2017-08-14T12:54:53.782576
1,502,715,293.782576
89,610
pythondev
help
...that creates a list of x,y position of pixels in an image, separates an area and then I use the positions to render an image...
2017-08-14T12:55:09.792172
Beverley
pythondev_help_Beverley_2017-08-14T12:55:09.792172
1,502,715,309.792172
89,611
pythondev
help
here's how the image looks
2017-08-14T12:55:15.796019
Beverley
pythondev_help_Beverley_2017-08-14T12:55:15.796019
1,502,715,315.796019
89,612
pythondev
help
original
2017-08-14T12:55:57.819895
Beverley
pythondev_help_Beverley_2017-08-14T12:55:57.819895
1,502,715,357.819895
89,613
pythondev
help
javascript question should go in <#C45V5EJ15|javascript>. <#C07EFMZ1N|help> is more python oriented :slightly_smiling_face:
2017-08-14T12:56:01.821996
Ciera
pythondev_help_Ciera_2017-08-14T12:56:01.821996
1,502,715,361.821996
89,614
pythondev
help
<@Masako> I am about to reinvest in python and came across connexion as a tool i could use in creating a security tooling api..
2017-08-14T12:56:08.826202
Chantell
pythondev_help_Chantell_2017-08-14T12:56:08.826202
1,502,715,368.826202
89,615
pythondev
help
If this is about python my bad
2017-08-14T12:56:15.830135
Ciera
pythondev_help_Ciera_2017-08-14T12:56:15.830135
1,502,715,375.830135
89,616
pythondev
help
I will be looking at it and if things turn out might be willing to help
2017-08-14T12:56:23.834633
Chantell
pythondev_help_Chantell_2017-08-14T12:56:23.834633
1,502,715,383.834633
89,617
pythondev
help
it's a simple issue though, the rendered image has pixels offset seen on the image
2017-08-14T12:57:23.868328
Beverley
pythondev_help_Beverley_2017-08-14T12:57:23.868328
1,502,715,443.868328
89,618
pythondev
help
not sure, what are you looking for?
2017-08-14T13:05:37.155390
Meg
pythondev_help_Meg_2017-08-14T13:05:37.155390
1,502,715,937.15539
89,619
pythondev
help
<@Meg> you'll see there's a grayscale image above the one in full color, it shouldn't have the lines and I believe it's because of the way I create and edit positions in javascript then render it in PIL that's bringing black boxes lines
2017-08-14T13:07:34.219585
Beverley
pythondev_help_Beverley_2017-08-14T13:07:34.219585
1,502,716,054.219585
89,620
pythondev
help
hello there, style question: ``` with patch("core.http.requests.request") as mocked_request, \ patch("core.http.time.sleep") as mocked_sleep: ``` what’s the best way to avoid using a line continuation there?
2017-08-14T13:08:52.261927
Sade
pythondev_help_Sade_2017-08-14T13:08:52.261927
1,502,716,132.261927
89,621
pythondev
help
i can only think to use nested `with` statements which seems similarly ugly
2017-08-14T13:09:33.284639
Sade
pythondev_help_Sade_2017-08-14T13:09:33.284639
1,502,716,173.284639
89,622
pythondev
help
I would use nested `with`
2017-08-14T13:09:47.291938
Ciera
pythondev_help_Ciera_2017-08-14T13:09:47.291938
1,502,716,187.291938
89,623
pythondev
help
if those are the only two choices i would definitely go with the next `with`, anyway :slightly_smiling_face:
2017-08-14T13:10:07.303055
Sade
pythondev_help_Sade_2017-08-14T13:10:07.303055
1,502,716,207.303055
89,624
pythondev
help
maybe as ugly but more readable imo
2017-08-14T13:10:07.303172
Ciera
pythondev_help_Ciera_2017-08-14T13:10:07.303172
1,502,716,207.303172
89,625
pythondev
help
i figured i must be missing some better option
2017-08-14T13:10:18.309243
Sade
pythondev_help_Sade_2017-08-14T13:10:18.309243
1,502,716,218.309243
89,626
pythondev
help
you can look at `contexlib.Exitstack`
2017-08-14T13:10:56.330034
Ciera
pythondev_help_Ciera_2017-08-14T13:10:56.330034
1,502,716,256.330034
89,627
pythondev
help
but if you only have two it might not be worth it
2017-08-14T13:11:21.343667
Ciera
pythondev_help_Ciera_2017-08-14T13:11:21.343667
1,502,716,281.343667
89,628
pythondev
help
<https://docs.python.org/3/library/contextlib.html#contextlib.ExitStack>
2017-08-14T13:11:44.356310
Ciera
pythondev_help_Ciera_2017-08-14T13:11:44.356310
1,502,716,304.35631
89,629
pythondev
help
Why not set patch as decorator to test function?
2017-08-14T13:12:55.394934
Cherly
pythondev_help_Cherly_2017-08-14T13:12:55.394934
1,502,716,375.394934
89,630
pythondev
help
I would use `contextlib.ExitStack`
2017-08-14T13:12:58.396380
Beula
pythondev_help_Beula_2017-08-14T13:12:58.396380
1,502,716,378.39638
89,631
pythondev
help
that does look promising although it looks like i’ll have to depend on the python2 backport
2017-08-14T13:13:14.404760
Sade
pythondev_help_Sade_2017-08-14T13:13:14.404760
1,502,716,394.40476
89,632
pythondev
help
<https://docs.python.org/3/library/contextlib.html#contextlib.ExitStack>
2017-08-14T13:13:16.406102
Beula
pythondev_help_Beula_2017-08-14T13:13:16.406102
1,502,716,396.406102
89,633
pythondev
help
Oh, that's 3.3
2017-08-14T13:13:24.410281
Beula
pythondev_help_Beula_2017-08-14T13:13:24.410281
1,502,716,404.410281
89,634
pythondev
help
<@Beula> :face_with_rolling_eyes:
2017-08-14T13:13:53.425780
Ciera
pythondev_help_Ciera_2017-08-14T13:13:53.425780
1,502,716,433.42578
89,635
pythondev
help
Oh, wow
2017-08-14T13:14:08.434072
Beula
pythondev_help_Beula_2017-08-14T13:14:08.434072
1,502,716,448.434072
89,636
pythondev
help
yep - my slack client didn't refresh yet
2017-08-14T13:14:17.439443
Beula
pythondev_help_Beula_2017-08-14T13:14:17.439443
1,502,716,457.439443
89,637
pythondev
help
<@Ciera> :taco:
2017-08-14T13:14:19.440707
Beula
pythondev_help_Beula_2017-08-14T13:14:19.440707
1,502,716,459.440707
89,638
pythondev
help
mmm that might work. i’m not that accustomed to using the patch decorators so i didn’t think of it :slightly_smiling_face:
2017-08-14T13:14:29.446450
Sade
pythondev_help_Sade_2017-08-14T13:14:29.446450
1,502,716,469.44645
89,639
pythondev
help
haha yeah it happens sometimes :pacman:
2017-08-14T13:14:48.456560
Ciera
pythondev_help_Ciera_2017-08-14T13:14:48.456560
1,502,716,488.45656
89,640
pythondev
help
I use it for 2 levels or more, primarily because flat is generally better than nested
2017-08-14T13:15:09.468820
Beula
pythondev_help_Beula_2017-08-14T13:15:09.468820
1,502,716,509.46882
89,641
pythondev
help
One disadvantage of this usage, is that mocked method will be patched for all test function, but this leads to make them smaller ==&gt; smaller unit test
2017-08-14T13:15:54.494544
Cherly
pythondev_help_Cherly_2017-08-14T13:15:54.494544
1,502,716,554.494544
89,642
pythondev
help
I agree but for only two levels it might make things a bit too complex
2017-08-14T13:16:08.502359
Ciera
pythondev_help_Ciera_2017-08-14T13:16:08.502359
1,502,716,568.502359
89,643
pythondev
help
yeah that seems like an advantage :slightly_smiling_face:
2017-08-14T13:16:35.517336
Sade
pythondev_help_Sade_2017-08-14T13:16:35.517336
1,502,716,595.517336
89,644
pythondev
help
I like when you have multiple nested context managers with `if` for the one you want to enter
2017-08-14T13:16:46.523883
Ciera
pythondev_help_Ciera_2017-08-14T13:16:46.523883
1,502,716,606.523883
89,645
pythondev
help
Hi folks, It might a bit unrelated here. But i’m trying to use an api from other service. They give apikey, password, shared secret. apikey and password alone can help me get access to the api. So why we need an shared secret. I’m working with shopify api. Thanks!
2017-08-14T22:42:39.000084
Hermina
pythondev_help_Hermina_2017-08-14T22:42:39.000084
1,502,750,559.000084
89,646
pythondev
help
<@Hermina> - Usually when they give something like a shared secret it's either so your application can validate incoming requests (aka webhooks) or you can sign a payload before sending it to them (so they can validate similarly)
2017-08-14T22:43:53.000004
Beula
pythondev_help_Beula_2017-08-14T22:43:53.000004
1,502,750,633.000004
89,647
pythondev
help
thanks. Google got a bunch of crypto info but not helped :slightly_smiling_face:. It clearer for me now
2017-08-14T22:50:28.000107
Hermina
pythondev_help_Hermina_2017-08-14T22:50:28.000107
1,502,751,028.000107
89,648
pythondev
help
Thanks, <@Chantell> :slightly_smiling_face:
2017-08-15T04:29:14.000114
Masako
pythondev_help_Masako_2017-08-15T04:29:14.000114
1,502,771,354.000114
89,649
pythondev
help
hi anyone here have experience with react native
2017-08-15T05:30:59.000101
Meredith
pythondev_help_Meredith_2017-08-15T05:30:59.000101
1,502,775,059.000101
89,650
pythondev
help
how can i hide "OrderedDict" when i print smth in console?
2017-08-15T05:31:46.000061
Georgetta
pythondev_help_Georgetta_2017-08-15T05:31:46.000061
1,502,775,106.000061
89,651
pythondev
help
i can't get a way to handle csrftoken from the cookies
2017-08-15T05:31:55.000259
Meredith
pythondev_help_Meredith_2017-08-15T05:31:55.000259
1,502,775,115.000259
89,652
pythondev
help
<@Georgetta> ``` &gt;&gt;&gt; data = OrderedDict({'one': 1, 'two': 2, 'three': 3}) &gt;&gt;&gt; print(data) OrderedDict([('two', 2), ('one', 1), ('three', 3)]) &gt;&gt;&gt; print(dict(data)) {'two': 2, 'one': 1, 'three': 3} ```
2017-08-15T06:37:22.000099
Suellen
pythondev_help_Suellen_2017-08-15T06:37:22.000099
1,502,779,042.000099
89,653
pythondev
help
not the best demonstration of order, but the idea is to convert it to a normal dict
2017-08-15T06:37:49.000018
Suellen
pythondev_help_Suellen_2017-08-15T06:37:49.000018
1,502,779,069.000018
89,654
pythondev
help
you lose the benefit of Ordering, but depending on why you need to print it - you might not need it
2017-08-15T06:38:07.000144
Suellen
pythondev_help_Suellen_2017-08-15T06:38:07.000144
1,502,779,087.000144
89,655
pythondev
help
Or use python 3.6+ :slightly_smiling_face:
2017-08-15T06:38:53.000026
Collette
pythondev_help_Collette_2017-08-15T06:38:53.000026
1,502,779,133.000026
89,656
pythondev
help
Hi All, am trying to trigger a python script using jenkins.. am not able to understand where am going wrong but the build is not getting successful or failure.. it was just keeping on blinking the blue ball saying build in progress.. i kept waiting hours but no response.. where the script am able to execute from command prompt.. having anyone faced kind of problem or any suggestions would be appreciated
2017-08-15T09:55:31.000131
Ok
pythondev_help_Ok_2017-08-15T09:55:31.000131
1,502,790,931.000131
89,657
pythondev
help
<@Ok> show us your script
2017-08-15T09:57:57.000184
Collette
pythondev_help_Collette_2017-08-15T09:57:57.000184
1,502,791,077.000184
89,658
pythondev
help
And how you're calling it. Be sure to add logging to your script to know when/where it hangs (sounds like it's in a queue and never gets to an executor)
2017-08-15T09:59:41.000148
Beula
pythondev_help_Beula_2017-08-15T09:59:41.000148
1,502,791,181.000148
89,659
pythondev
help
U mean python script <@Collette>
2017-08-15T10:00:23.000187
Ok
pythondev_help_Ok_2017-08-15T10:00:23.000187
1,502,791,223.000187
89,660
pythondev
help
Yep
2017-08-15T10:00:31.000263
Collette
pythondev_help_Collette_2017-08-15T10:00:31.000263
1,502,791,231.000263
89,661
pythondev
help
I will try it <@Beula> but am able to execute other python scripts in jenkins
2017-08-15T10:00:59.000433
Ok
pythondev_help_Ok_2017-08-15T10:00:59.000433
1,502,791,259.000433
89,662
pythondev
help
<@Beula> more like the python script is waiting for some input
2017-08-15T10:01:09.000319
Collette
pythondev_help_Collette_2017-08-15T10:01:09.000319
1,502,791,269.000319
89,663
pythondev
help
Or that
2017-08-15T10:01:23.000330
Beula
pythondev_help_Beula_2017-08-15T10:01:23.000330
1,502,791,283.00033
89,664
pythondev
help
Sorry <@Collette> its too big script..
2017-08-15T10:01:52.000161
Ok
pythondev_help_Ok_2017-08-15T10:01:52.000161
1,502,791,312.000161
89,665
pythondev
help
But its a unit testing kind off
2017-08-15T10:02:06.000352
Ok
pythondev_help_Ok_2017-08-15T10:02:06.000352
1,502,791,326.000352
89,666
pythondev
help
<@Ok> click on the plus sign to the left from the slack input field, and choose "Add code or text snippet"
2017-08-15T10:02:28.000352
Collette
pythondev_help_Collette_2017-08-15T10:02:28.000352
1,502,791,348.000352
89,667
pythondev
help
<@Collette> its actually from my office server so i can take that script out
2017-08-15T10:03:10.000491
Ok
pythondev_help_Ok_2017-08-15T10:03:10.000491
1,502,791,390.000491
89,668
pythondev
help
What?
2017-08-15T10:03:32.000293
Collette
pythondev_help_Collette_2017-08-15T10:03:32.000293
1,502,791,412.000293
89,669
pythondev
help
Is cant take that script out to here
2017-08-15T10:04:02.000258
Ok
pythondev_help_Ok_2017-08-15T10:04:02.000258
1,502,791,442.000258
89,670
pythondev
help
In that case, you need to add logging to find where in the script the execution gets to - but beyond that I am not sure we can do much
2017-08-15T10:04:21.000375
Beula
pythondev_help_Beula_2017-08-15T10:04:21.000375
1,502,791,461.000375
89,671
pythondev
help
I will try as u said <@Beula> by logging to script
2017-08-15T10:05:20.000420
Ok
pythondev_help_Ok_2017-08-15T10:05:20.000420
1,502,791,520.00042
89,672
pythondev
help
It's a pretty common way to debug, it should often be one of your first actions when you hit an issue
2017-08-15T10:05:56.000084
Beula
pythondev_help_Beula_2017-08-15T10:05:56.000084
1,502,791,556.000084
89,673
pythondev
help
first question is. does the scrip try to run ?
2017-08-15T10:07:27.000296
Ciera
pythondev_help_Ciera_2017-08-15T10:07:27.000296
1,502,791,647.000296
89,674
pythondev
help
Yeah since am just new to this world of python and Jenkins thing learning <@Beula>
2017-08-15T10:07:37.000247
Ok
pythondev_help_Ok_2017-08-15T10:07:37.000247
1,502,791,657.000247
89,675
pythondev
help
Then add logging/print statements pretty judiciously :slightly_smiling_face:
2017-08-15T10:07:53.000451
Beula
pythondev_help_Beula_2017-08-15T10:07:53.000451
1,502,791,673.000451
89,676
pythondev
help
Script is trying to run, it not throwing any error but just running <@Ciera>
2017-08-15T10:08:54.000421
Ok
pythondev_help_Ok_2017-08-15T10:08:54.000421
1,502,791,734.000421
89,677
pythondev
help
As <@Collette> mentioned, are you waiting for an `input` (or `raw_input` in py2) in the code? Any `import pdb; pdb.set_trace()`? etc
2017-08-15T10:10:03.000203
Beula
pythondev_help_Beula_2017-08-15T10:10:03.000203
1,502,791,803.000203
89,678
pythondev
help
Or contains an infinite loop
2017-08-15T10:10:28.000314
Collette
pythondev_help_Collette_2017-08-15T10:10:28.000314
1,502,791,828.000314
89,679
pythondev
help
No there is no input needed.. as i said its running fine in command prompt without error
2017-08-15T10:11:12.000118
Ok
pythondev_help_Ok_2017-08-15T10:11:12.000118
1,502,791,872.000118
89,680
pythondev
help
Only when i integrate in Jenkins causing this error
2017-08-15T10:11:26.000603
Ok
pythondev_help_Ok_2017-08-15T10:11:26.000603
1,502,791,886.000603
89,681
pythondev
help
<@Ok> do you have *any* output?
2017-08-15T10:11:52.000140
Collette
pythondev_help_Collette_2017-08-15T10:11:52.000140
1,502,791,912.00014
89,682
pythondev
help
Yeah the out should be an html file
2017-08-15T10:12:09.000293
Ok
pythondev_help_Ok_2017-08-15T10:12:09.000293
1,502,791,929.000293
89,683
pythondev
help
Speaking of logging. Is there a good best practice article on how to configure it? I'm getting double messages, but have been too busy dealing with functionality to try to figure out where I went wrong.
2017-08-15T10:31:37.000345
Meghan
pythondev_help_Meghan_2017-08-15T10:31:37.000345
1,502,793,097.000345
89,684
pythondev
help
<@Meghan> You probably just have `propagate` set to true: <https://docs.python.org/3/library/logging.html#logging.Logger.propagate> That will have anything handled by a nested logger bubble up to the ancestors
2017-08-15T10:36:47.000286
Beula
pythondev_help_Beula_2017-08-15T10:36:47.000286
1,502,793,407.000286
89,685
pythondev
help
Thanks, I'll take a look.
2017-08-15T10:40:45.000628
Meghan
pythondev_help_Meghan_2017-08-15T10:40:45.000628
1,502,793,645.000628
89,686
pythondev
help
Hi Everyone Really need your <#C07EFMZ1N|help> I have deadline coming up for my project demo So can anyone provide with some knowledge on how to go on to build these interactive message buttons for a bot response in slack?
2017-08-15T11:16:15.000685
Juli
pythondev_help_Juli_2017-08-15T11:16:15.000685
1,502,795,775.000685
89,687
pythondev
help
I am using Python for my development
2017-08-15T11:16:35.000037
Juli
pythondev_help_Juli_2017-08-15T11:16:35.000037
1,502,795,795.000037
89,688
pythondev
help
<@Juli> You usually get the best responses here when you have *specific* questions, where are you actually stuck?
2017-08-15T11:17:38.000056
Beula
pythondev_help_Beula_2017-08-15T11:17:38.000056
1,502,795,858.000056
89,689
pythondev
help
Yes so what I have till now is a bot in slack that uses Slackclient/RTM API/Flask for fetching a message in real time from a channel and only if it has certain keywords in the message then the bot responds with a ok message for now!
2017-08-15T11:21:52.000040
Juli
pythondev_help_Juli_2017-08-15T11:21:52.000040
1,502,796,112.00004
89,690
pythondev
help
But what I want to do know is instead of replying with an ok message reply with these interactive message that does some particular action based on the button the user selects
2017-08-15T11:23:04.000381
Juli
pythondev_help_Juli_2017-08-15T11:23:04.000381
1,502,796,184.000381
89,691
pythondev
help
But I am firstly not able to find a good documentation or a step by step guide for going with building this in python
2017-08-15T11:23:56.000429
Juli
pythondev_help_Juli_2017-08-15T11:23:56.000429
1,502,796,236.000429
89,692
pythondev
help
So if anyone can provide me with a good tutorial or documenation or can point me to the right resource for building these in python then it would be a great help! Thanks !
2017-08-15T11:25:11.000113
Juli
pythondev_help_Juli_2017-08-15T11:25:11.000113
1,502,796,311.000113
89,693
pythondev
help
Are you new to Python and http?
2017-08-15T11:28:48.000242
Beula
pythondev_help_Beula_2017-08-15T11:28:48.000242
1,502,796,528.000242
89,694
pythondev
help
Not new to python can write code with python and dealing with data, pandas, os, sys, functions, lists, etc! But not great with web and python so yes struggling with http and web related stuff!
2017-08-15T11:33:07.000405
Juli
pythondev_help_Juli_2017-08-15T11:33:07.000405
1,502,796,787.000405
89,695
pythondev
help
I am just trying to gauge what kind of resources to send over, have you started with <https://api.slack.com/docs/message-attachments> ?
2017-08-15T11:34:50.000015
Beula
pythondev_help_Beula_2017-08-15T11:34:50.000015
1,502,796,890.000015
89,696
pythondev
help
calling <@Ciera> - is your sansio lib ready for prime time?
2017-08-15T11:35:09.000414
Beula
pythondev_help_Beula_2017-08-15T11:35:09.000414
1,502,796,909.000414
89,697
pythondev
help
no not yet :confused:
2017-08-15T11:38:15.000264
Ciera
pythondev_help_Ciera_2017-08-15T11:38:15.000264
1,502,797,095.000264
89,698
pythondev
help
Yes <@Beula> I was reading through these yesterday but due to time constraints I was looking for something more narrower that gives an example of how to build one of these with python
2017-08-15T11:44:10.000024
Juli
pythondev_help_Juli_2017-08-15T11:44:10.000024
1,502,797,450.000024
89,699
pythondev
help
There are examples of how to build one with node
2017-08-15T11:45:03.000245
Juli
pythondev_help_Juli_2017-08-15T11:45:03.000245
1,502,797,503.000245
89,700
pythondev
help
doesn’t sirbot currently do this?
2017-08-15T11:45:25.000035
Johana
pythondev_help_Johana_2017-08-15T11:45:25.000035
1,502,797,525.000035
89,701
pythondev
help
Yeah
2017-08-15T11:45:50.000424
Beula
pythondev_help_Beula_2017-08-15T11:45:50.000424
1,502,797,550.000424
89,702