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
I came across a similar issue before
2017-10-12T16:51:23.000304
Meg
pythondev_help_Meg_2017-10-12T16:51:23.000304
1,507,827,083.000304
96,703
pythondev
help
since the urls were all due to bad certs, I just put `verify = False`
2017-10-12T16:51:38.000347
Meg
pythondev_help_Meg_2017-10-12T16:51:38.000347
1,507,827,098.000347
96,704
pythondev
help
security :cry:
2017-10-12T16:52:43.000403
Mallie
pythondev_help_Mallie_2017-10-12T16:52:43.000403
1,507,827,163.000403
96,705
pythondev
help
ahh ok sounds good Thanks guys I'll try the @ddb2 fix with the verify= false flag
2017-10-12T16:52:59.000438
Burma
pythondev_help_Burma_2017-10-12T16:52:59.000438
1,507,827,179.000438
96,706
pythondev
help
:sweat_smile:
2017-10-12T16:53:04.000610
Burma
pythondev_help_Burma_2017-10-12T16:53:04.000610
1,507,827,184.00061
96,707
pythondev
help
<@Meg> you’re breaking my heart!
2017-10-12T17:03:35.000133
Patty
pythondev_help_Patty_2017-10-12T17:03:35.000133
1,507,827,815.000133
96,708
pythondev
help
What have you tried so far and where are you having trouble?
2017-10-12T17:11:33.000047
Antionette
pythondev_help_Antionette_2017-10-12T17:11:33.000047
1,507,828,293.000047
96,709
pythondev
help
Questions to consider: What data type is the user’s input in `input()`? What can you do with that data type and how can you produce the desired outcomes from that data type?
2017-10-12T17:18:04.000019
Winnifred
pythondev_help_Winnifred_2017-10-12T17:18:04.000019
1,507,828,684.000019
96,710
pythondev
help
When I input the values.. example 3241515, it lists one by one and not in two.. I want it in twos i.e '32', '41'.. thanks
2017-10-12T18:36:26.000390
Carolina
pythondev_help_Carolina_2017-10-12T18:36:26.000390
1,507,833,386.00039
96,711
pythondev
help
It's a list.. but I want the outcome grouped in twos
2017-10-12T18:37:03.000241
Carolina
pythondev_help_Carolina_2017-10-12T18:37:03.000241
1,507,833,423.000241
96,712
pythondev
help
<@Carolina> it looks like the input is supposed to be comma separated numbers?
2017-10-12T18:54:20.000291
Antionette
pythondev_help_Antionette_2017-10-12T18:54:20.000291
1,507,834,460.000291
96,713
pythondev
help
It does that perfectly.. but I want to group the numbers in twos
2017-10-12T18:57:23.000199
Carolina
pythondev_help_Carolina_2017-10-12T18:57:23.000199
1,507,834,643.000199
96,714
pythondev
help
<@Carolina> does the problem say anything explicit about grouping in two or do you need to separate the string on the commas no matter how many digits each number is? If you have the input as a string here is the documentation for all of the builtin string functions - <https://docs.python.org/3/library/stdtypes.html#string-methods>
2017-10-12T19:18:36.000144
Antionette
pythondev_help_Antionette_2017-10-12T19:18:36.000144
1,507,835,916.000144
96,715
pythondev
help
You should be able to use one of those functions to modify the string and convert it into a list
2017-10-12T19:18:52.000158
Antionette
pythondev_help_Antionette_2017-10-12T19:18:52.000158
1,507,835,932.000158
96,716
pythondev
help
Alright.. thanks
2017-10-12T19:44:07.000216
Carolina
pythondev_help_Carolina_2017-10-12T19:44:07.000216
1,507,837,447.000216
96,717
pythondev
help
Hi Guys, can I ask for help or code sample in this channel? Cheers!
2017-10-12T21:43:51.000053
Ivy
pythondev_help_Ivy_2017-10-12T21:43:51.000053
1,507,844,631.000053
96,718
pythondev
help
<@Ivy> yup, this is the place for generic or simpler questions, otherwise in a channel for more specific topics
2017-10-12T22:25:40.000092
Marcie
pythondev_help_Marcie_2017-10-12T22:25:40.000092
1,507,847,140.000092
96,719
pythondev
help
Hi all! Any ideas on a quick requirement? The thing is: Maybe a cron job running Python script for a 12 years monthly event reminder TO a pre defined user e-mails and using a pre defined mail template... Thanks for any help and ideas... any other details I’ll be glad to explain.
2017-10-12T22:29:52.000071
Ivy
pythondev_help_Ivy_2017-10-12T22:29:52.000071
1,507,847,392.000071
96,720
pythondev
help
ooh yes actually there was a nice example from one of our members <@Jesusa>
2017-10-12T22:33:14.000250
Marcie
pythondev_help_Marcie_2017-10-12T22:33:14.000250
1,507,847,594.00025
96,721
pythondev
help
<https://kootenpv.github.io/2016-04-24-yagmail>
2017-10-12T22:33:16.000128
Marcie
pythondev_help_Marcie_2017-10-12T22:33:16.000128
1,507,847,596.000128
96,722
pythondev
help
his library yagmail is actually very simple and nice, i haven't touched it since my last job but its pretty nice <https://github.com/kootenpv/yagmail>
2017-10-12T22:34:40.000030
Marcie
pythondev_help_Marcie_2017-10-12T22:34:40.000030
1,507,847,680.00003
96,723
pythondev
help
can someone help me on how to connect to redshift using python and what's the driver that needs to be installed
2017-10-12T22:37:39.000071
Jessie
pythondev_help_Jessie_2017-10-12T22:37:39.000071
1,507,847,859.000071
96,724
pythondev
help
Cool <@Marcie> !!! Tks!
2017-10-12T22:40:59.000083
Ivy
pythondev_help_Ivy_2017-10-12T22:40:59.000083
1,507,848,059.000083
96,725
pythondev
help
<@Willena> tabula not working on invoice PDFs
2017-10-13T02:10:43.000066
Malorie
pythondev_help_Malorie_2017-10-13T02:10:43.000066
1,507,860,643.000066
96,726
pythondev
help
<@Marcie> thanks for the kind words ^^ and wow, i didn't know there are forks :smile:
2017-10-13T04:25:43.000308
Jesusa
pythondev_help_Jesusa_2017-10-13T04:25:43.000308
1,507,868,743.000308
96,727
pythondev
help
Stupid question: Maybe a PEP8 thing. I want to define a default value for an argument to a method, but the value is a multi-line string. What’s the convention here? Shoe horn it into the method definition (like my other arguments with defaults), or set it to None and check for None and apply the default in the method body?
2017-10-13T04:40:05.000032
Willodean
pythondev_help_Willodean_2017-10-13T04:40:05.000032
1,507,869,605.000032
96,728
pythondev
help
<@Willodean> I'd do ``` MESSAGE = "a very much multiline string """ def foo(message=MESSAGE): print(message) ```
2017-10-13T04:46:34.000241
Collette
pythondev_help_Collette_2017-10-13T04:46:34.000241
1,507,869,994.000241
96,729
pythondev
help
I'd do the latter
2017-10-13T05:07:27.000328
Winnie
pythondev_help_Winnie_2017-10-13T05:07:27.000328
1,507,871,247.000328
96,730
pythondev
help
It makes more sense to keep he message in the function body
2017-10-13T05:13:27.000463
Winnie
pythondev_help_Winnie_2017-10-13T05:13:27.000463
1,507,871,607.000463
96,731
pythondev
help
Thanks <@Collette>, <@Winnie>. <@Winnie> I think you’re right, I’ll stick it in the function body.
2017-10-13T05:22:11.000234
Willodean
pythondev_help_Willodean_2017-10-13T05:22:11.000234
1,507,872,131.000234
96,732
pythondev
help
maybe define a constant, and give it as a default string?
2017-10-13T07:24:41.000073
Jesusa
pythondev_help_Jesusa_2017-10-13T07:24:41.000073
1,507,879,481.000073
96,733
pythondev
help
sorry for spamming but still looking for a library that is good enough and simple enough to convert PDF invoices into tabular csv data. Please let me know if any suggestions
2017-10-13T08:37:30.000237
Malorie
pythondev_help_Malorie_2017-10-13T08:37:30.000237
1,507,883,850.000237
96,734
pythondev
help
uh, <@Malorie> there were already a couple suggestions if you scroll up
2017-10-13T08:58:14.000641
Meg
pythondev_help_Meg_2017-10-13T08:58:14.000641
1,507,885,094.000641
96,735
pythondev
help
<https://pythondev.slack.com/archives/C07EFMZ1N/p1507816709000514>
2017-10-13T08:58:15.000273
Meg
pythondev_help_Meg_2017-10-13T08:58:15.000273
1,507,885,095.000273
96,736
pythondev
help
<@Meg> already tried those
2017-10-13T09:03:56.000313
Malorie
pythondev_help_Malorie_2017-10-13T09:03:56.000313
1,507,885,436.000313
96,737
pythondev
help
part of the problem with converting pdfs is you have to rely on heuristics
2017-10-13T09:07:16.000319
Meg
pythondev_help_Meg_2017-10-13T09:07:16.000319
1,507,885,636.000319
96,738
pythondev
help
since in that file, each and every word there is simply composed of single characters with font, letter and possition information
2017-10-13T09:07:45.000503
Meg
pythondev_help_Meg_2017-10-13T09:07:45.000503
1,507,885,665.000503
96,739
pythondev
help
PDFs don’t have the concept of structure that you can easily parse
2017-10-13T09:08:01.000273
Meg
pythondev_help_Meg_2017-10-13T09:08:01.000273
1,507,885,681.000273
96,740
pythondev
help
unlike word/openoffice documents
2017-10-13T09:08:13.000244
Meg
pythondev_help_Meg_2017-10-13T09:08:13.000244
1,507,885,693.000244
96,741
pythondev
help
so, to be honest, it is highly unlikely that you’ll find a solution to work for all your documents
2017-10-13T09:08:37.000550
Meg
pythondev_help_Meg_2017-10-13T09:08:37.000550
1,507,885,717.00055
96,742
pythondev
help
in fact, I’d be surprised if there’s a better than 90% success rate, particularly giving the sheer variability of ways that PDF authoring software outputs the files
2017-10-13T09:09:13.000040
Meg
pythondev_help_Meg_2017-10-13T09:09:13.000040
1,507,885,753.00004
96,743
pythondev
help
ive seen it accomplished with ocr <https://pypi.python.org/pypi/pytesseract>
2017-10-13T09:11:39.000290
Tandra
pythondev_help_Tandra_2017-10-13T09:11:39.000290
1,507,885,899.00029
96,744
pythondev
help
<@Meg> do you think there is any other way an invoice(a real physical paper invoice) be converted to a csv with all the data extracted
2017-10-13T09:11:59.000654
Malorie
pythondev_help_Malorie_2017-10-13T09:11:59.000654
1,507,885,919.000654
96,745
pythondev
help
only ever had a play once at reading pdf’s but it worked for me
2017-10-13T09:12:07.000310
Tandra
pythondev_help_Tandra_2017-10-13T09:12:07.000310
1,507,885,927.00031
96,746
pythondev
help
there are applications that can help you read pdfs. mayan-edms is an electronic document management system and does ocr on any documents that it imports. you can then use its api to extract data.
2017-10-13T09:13:16.000118
Johana
pythondev_help_Johana_2017-10-13T09:13:16.000118
1,507,885,996.000118
96,747
pythondev
help
<https://www.mayan-edms.com/>
2017-10-13T09:13:34.000357
Johana
pythondev_help_Johana_2017-10-13T09:13:34.000357
1,507,886,014.000357
96,748
pythondev
help
btw, it’s a django app.
2017-10-13T09:14:16.000044
Johana
pythondev_help_Johana_2017-10-13T09:14:16.000044
1,507,886,056.000044
96,749
pythondev
help
the web api uses DRF and swagger.
2017-10-13T09:15:17.000113
Johana
pythondev_help_Johana_2017-10-13T09:15:17.000113
1,507,886,117.000113
96,750
pythondev
help
so, <@Malorie> there are some options available. but ‘simple’ is definitely not part of them
2017-10-13T09:16:36.000602
Meg
pythondev_help_Meg_2017-10-13T09:16:36.000602
1,507,886,196.000602
96,751
pythondev
help
dont need it super simple
2017-10-13T09:16:51.000294
Malorie
pythondev_help_Malorie_2017-10-13T09:16:51.000294
1,507,886,211.000294
96,752
pythondev
help
but not so complex that i would rather write my own package
2017-10-13T09:17:05.000212
Malorie
pythondev_help_Malorie_2017-10-13T09:17:05.000212
1,507,886,225.000212
96,753
pythondev
help
<@Johana> so i need to figure out how to run electronic document management
2017-10-13T09:18:14.000051
Malorie
pythondev_help_Malorie_2017-10-13T09:18:14.000051
1,507,886,294.000051
96,754
pythondev
help
ok so then you would need to deploy mayan-edms. you could use docker, a vps, an old laptop, or install it locally.
2017-10-13T09:18:58.000248
Johana
pythondev_help_Johana_2017-10-13T09:18:58.000248
1,507,886,338.000248
96,755
pythondev
help
you give it a folder to watch and then you drop files in and it will suck them up and create a bunch of metadata you can read about the file.
2017-10-13T09:19:48.000107
Johana
pythondev_help_Johana_2017-10-13T09:19:48.000107
1,507,886,388.000107
96,756
pythondev
help
i keep no paper documents at home. i use mayan-edms to manage all my documents.
2017-10-13T09:20:47.000506
Johana
pythondev_help_Johana_2017-10-13T09:20:47.000506
1,507,886,447.000506
96,757
pythondev
help
<@Johana> stuff like that look interesting but it seems so hard to maintain
2017-10-13T09:21:20.000386
Ciera
pythondev_help_Ciera_2017-10-13T09:21:20.000386
1,507,886,480.000386
96,758
pythondev
help
i run the server on an old laptop and haven’t looked at it since lol.
2017-10-13T09:21:57.000243
Johana
pythondev_help_Johana_2017-10-13T09:21:57.000243
1,507,886,517.000243
96,759
pythondev
help
hmm I should look into that (and buy a scanner :stuck_out_tongue: )
2017-10-13T09:22:14.000063
Ciera
pythondev_help_Ciera_2017-10-13T09:22:14.000063
1,507,886,534.000063
96,760
pythondev
help
you use it only on a local network ?
2017-10-13T09:23:57.000325
Ciera
pythondev_help_Ciera_2017-10-13T09:23:57.000325
1,507,886,637.000325
96,761
pythondev
help
it’s been like 2 years. the funny thing is when i first set it up i was building onto my home and when the contractors and i finished signing all the documents, I told them to hold on one minute. I dropped them in the scanner and mayan-edms automatically brought them up. I have a PC in the living room and brought up the docs for them to see. In other words, i was saying there is no way i’m losing the contract.
2017-10-13T09:23:59.000297
Johana
pythondev_help_Johana_2017-10-13T09:23:59.000297
1,507,886,639.000297
96,762
pythondev
help
yea
2017-10-13T09:24:01.000049
Johana
pythondev_help_Johana_2017-10-13T09:24:01.000049
1,507,886,641.000049
96,763
pythondev
help
you can search for any text and it will find the right doc.
2017-10-13T09:24:31.000418
Johana
pythondev_help_Johana_2017-10-13T09:24:31.000418
1,507,886,671.000418
96,764
pythondev
help
I'll look into it
2017-10-13T09:24:39.000640
Ciera
pythondev_help_Ciera_2017-10-13T09:24:39.000640
1,507,886,679.00064
96,765
pythondev
help
just need to find a scanner that can upload to the cloud next
2017-10-13T09:24:52.000383
Ciera
pythondev_help_Ciera_2017-10-13T09:24:52.000383
1,507,886,692.000383
96,766
pythondev
help
ouh they provide a docker image shouldn't be too hard to put in a VM then
2017-10-13T09:25:49.000614
Ciera
pythondev_help_Ciera_2017-10-13T09:25:49.000614
1,507,886,749.000614
96,767
pythondev
help
I'm trying to setup API integrations tests using Runscope. Unfortunately, I need file upload for this. I've found info that ```The request editor does not support uploading files. However, some customers have been able to make file uploads work by pasting in a raw multipart-formatted body or unicode string input body into the request and making sure to include the applicable 'Content-type' header value with the correct boundaries. ``` (<https://www.runscope.com/support/kb/multipart-file-uploads>) I'm having trouble to construct this `raw multipart-formatted body`.
2017-10-13T09:52:28.000328
Mirian
pythondev_help_Mirian_2017-10-13T09:52:28.000328
1,507,888,348.000328
96,768
pythondev
help
does anybody have an idea how it should look?
2017-10-13T09:52:44.000402
Mirian
pythondev_help_Mirian_2017-10-13T09:52:44.000402
1,507,888,364.000402
96,769
pythondev
help
<@Mirian> I would make a valid post to that api
2017-10-13T10:13:07.000249
Meg
pythondev_help_Meg_2017-10-13T10:13:07.000249
1,507,889,587.000249
96,770
pythondev
help
with the browser dev tools open
2017-10-13T10:13:21.000103
Meg
pythondev_help_Meg_2017-10-13T10:13:21.000103
1,507,889,601.000103
96,771
pythondev
help
see what data goes out, and how its formatted
2017-10-13T10:13:31.000077
Meg
pythondev_help_Meg_2017-10-13T10:13:31.000077
1,507,889,611.000077
96,772
pythondev
help
that would give you clues how to do it in your integration tests
2017-10-13T10:13:46.000392
Meg
pythondev_help_Meg_2017-10-13T10:13:46.000392
1,507,889,626.000392
96,773
pythondev
help
that's what I'm trying to do, but the file i receive is somehow broken :stuck_out_tongue:
2017-10-13T10:18:53.000212
Mirian
pythondev_help_Mirian_2017-10-13T10:18:53.000212
1,507,889,933.000212
96,774
pythondev
help
¯\_(ツ)_/¯
2017-10-13T10:26:47.000240
Meg
pythondev_help_Meg_2017-10-13T10:26:47.000240
1,507,890,407.00024
96,775
pythondev
help
Had never heard of mayan-edms, that does look nice. Might just set that up. <@Johana> is it difficult to set up? Looks like just a docker image.
2017-10-13T10:33:56.000276
Meghan
pythondev_help_Meghan_2017-10-13T10:33:56.000276
1,507,890,836.000276
96,776
pythondev
help
i installed it locally on an old laptop and it wasn’t difficult but I have deployed django apps before.
2017-10-13T10:34:30.000128
Johana
pythondev_help_Johana_2017-10-13T10:34:30.000128
1,507,890,870.000128
96,777
pythondev
help
if you check the ecosystem you will see an ansible playbook i made.
2017-10-13T10:34:45.000727
Johana
pythondev_help_Johana_2017-10-13T10:34:45.000727
1,507,890,885.000727
96,778
pythondev
help
with docker it should be a breeze.
2017-10-13T10:35:03.000414
Johana
pythondev_help_Johana_2017-10-13T10:35:03.000414
1,507,890,903.000414
96,779
pythondev
help
Is there an Android app where I can take a pic while I'm out on my phone and have it automatically put into the system?
2017-10-13T10:35:42.000342
Meghan
pythondev_help_Meghan_2017-10-13T10:35:42.000342
1,507,890,942.000342
96,780
pythondev
help
i have no idea.
2017-10-13T10:36:05.000520
Johana
pythondev_help_Johana_2017-10-13T10:36:05.000520
1,507,890,965.00052
96,781
pythondev
help
its for documents so you could move the document from your phone to a folder that mayan is watching.
2017-10-13T10:36:23.000415
Johana
pythondev_help_Johana_2017-10-13T10:36:23.000415
1,507,890,983.000415
96,782
pythondev
help
i don’t think you want to use it for photo management.
2017-10-13T10:36:50.000644
Johana
pythondev_help_Johana_2017-10-13T10:36:50.000644
1,507,891,010.000644
96,783
pythondev
help
Not for photo management, but using phone as alternative to scanner while out. Say if I drop off a package at UPS and I want the receipt in the system.
2017-10-13T10:37:18.000699
Meghan
pythondev_help_Meghan_2017-10-13T10:37:18.000699
1,507,891,038.000699
96,784
pythondev
help
but if you took a photo of a document then i would do that
2017-10-13T10:37:26.000329
Johana
pythondev_help_Johana_2017-10-13T10:37:26.000329
1,507,891,046.000329
96,785
pythondev
help
yea i know what you meant. i was just saying that you probably don’t want it watching for every photo.
2017-10-13T10:37:46.000495
Johana
pythondev_help_Johana_2017-10-13T10:37:46.000495
1,507,891,066.000495
96,786
pythondev
help
Oh, yeah, not that. I was thinking an app that would take the photo and upload. Not scan all of my photos.
2017-10-13T10:38:21.000060
Meghan
pythondev_help_Meghan_2017-10-13T10:38:21.000060
1,507,891,101.00006
96,787
pythondev
help
i already use bittorrent sync so i would probably use that.
2017-10-13T10:38:24.000544
Johana
pythondev_help_Johana_2017-10-13T10:38:24.000544
1,507,891,104.000544
96,788
pythondev
help
you could create a folder that bitttorrent sync is keeping up to date that mayan is watching.
2017-10-13T10:38:41.000756
Johana
pythondev_help_Johana_2017-10-13T10:38:41.000756
1,507,891,121.000756
96,789
pythondev
help
Yeah, that would work.
2017-10-13T10:38:49.000177
Meghan
pythondev_help_Meghan_2017-10-13T10:38:49.000177
1,507,891,129.000177
96,790
pythondev
help
you can provide mayan multiple locations for it to watch.
2017-10-13T10:39:06.000459
Johana
pythondev_help_Johana_2017-10-13T10:39:06.000459
1,507,891,146.000459
96,791
pythondev
help
in the background it is all celery tasks.
2017-10-13T10:39:13.000144
Johana
pythondev_help_Johana_2017-10-13T10:39:13.000144
1,507,891,153.000144
96,792
pythondev
help
with a nice web frontend.
2017-10-13T10:39:21.000482
Johana
pythondev_help_Johana_2017-10-13T10:39:21.000482
1,507,891,161.000482
96,793
pythondev
help
<@Meghan> i’m sure there has to be an app b/c it has a really nice web api.
2017-10-13T10:39:56.000389
Johana
pythondev_help_Johana_2017-10-13T10:39:56.000389
1,507,891,196.000389
96,794
pythondev
help
Hi, I also have this error or similar ` Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)) `
2017-10-13T10:40:25.000007
Luetta
pythondev_help_Luetta_2017-10-13T10:40:25.000007
1,507,891,225.000007
96,795
pythondev
help
how could someone not make one when it provides all the tools? i guess it could still be without.
2017-10-13T10:40:26.000122
Johana
pythondev_help_Johana_2017-10-13T10:40:26.000122
1,507,891,226.000122
96,796
pythondev
help
Sounds like it would beat the scansnap software. :wink: Thanks for the suggestions.
2017-10-13T10:41:19.000056
Meghan
pythondev_help_Meghan_2017-10-13T10:41:19.000056
1,507,891,279.000056
96,797
pythondev
help
yea, and it’s python!
2017-10-13T10:42:12.000393
Johana
pythondev_help_Johana_2017-10-13T10:42:12.000393
1,507,891,332.000393
96,798
pythondev
help
<@Luetta> I think you'll need to provide a little more background, under what circumstances did you come across that error?
2017-10-13T10:50:31.000419
Sirena
pythondev_help_Sirena_2017-10-13T10:50:31.000419
1,507,891,831.000419
96,799
pythondev
help
has anyone ever seen this with python requests ```Cannot find a Content-Type supported by your client. python```
2017-10-13T11:43:40.000069
Burma
pythondev_help_Burma_2017-10-13T11:43:40.000069
1,507,895,020.000069
96,800
pythondev
help
trying to set payload with ```Content-Type application/json```
2017-10-13T11:44:30.000440
Burma
pythondev_help_Burma_2017-10-13T11:44:30.000440
1,507,895,070.00044
96,801
pythondev
help
<@Burma> show us your code
2017-10-13T11:45:17.000023
Collette
pythondev_help_Collette_2017-10-13T11:45:17.000023
1,507,895,117.000023
96,802