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
it worked once and i even got the email, but thereafter it stopped working.
2018-02-04T10:37:47.000060
Ellen
pythondev_help_Ellen_2018-02-04T10:37:47.000060
1,517,740,667.00006
32,724
pythondev
help
are you on 3.4?
2018-02-04T10:38:49.000076
Floy
pythondev_help_Floy_2018-02-04T10:38:49.000076
1,517,740,729.000076
32,725
pythondev
help
or are you running 3.6?
2018-02-04T10:38:54.000034
Floy
pythondev_help_Floy_2018-02-04T10:38:54.000034
1,517,740,734.000034
32,726
pythondev
help
for python version
2018-02-04T10:39:00.000082
Floy
pythondev_help_Floy_2018-02-04T10:39:00.000082
1,517,740,740.000082
32,727
pythondev
help
Python 3.6.0 |Anaconda custom (64-bit)
2018-02-04T10:39:18.000054
Ellen
pythondev_help_Ellen_2018-02-04T10:39:18.000054
1,517,740,758.000054
32,728
pythondev
help
ok
2018-02-04T10:39:39.000030
Floy
pythondev_help_Floy_2018-02-04T10:39:39.000030
1,517,740,779.00003
32,729
pythondev
help
<https://docs.python.org/3/library/email.examples.html>
2018-02-04T10:39:40.000019
Floy
pythondev_help_Floy_2018-02-04T10:39:40.000019
1,517,740,780.000019
32,730
pythondev
help
that’s the updated example
2018-02-04T10:39:45.000008
Floy
pythondev_help_Floy_2018-02-04T10:39:45.000008
1,517,740,785.000008
32,731
pythondev
help
you were running the 3.4 example, so there might be some differences
2018-02-04T10:39:58.000015
Floy
pythondev_help_Floy_2018-02-04T10:39:58.000015
1,517,740,798.000015
32,732
pythondev
help
specicially, change to `EmailMessage` for `msg`
2018-02-04T10:42:37.000133
Floy
pythondev_help_Floy_2018-02-04T10:42:37.000133
1,517,740,957.000133
32,733
pythondev
help
from the html example on that page
2018-02-04T10:42:55.000039
Floy
pythondev_help_Floy_2018-02-04T10:42:55.000039
1,517,740,975.000039
32,734
pythondev
help
hey i actually figured it out <@Floy>
2018-02-04T10:58:38.000050
Ellen
pythondev_help_Ellen_2018-02-04T10:58:38.000050
1,517,741,918.00005
32,735
pythondev
help
thanks, for the 3.6 example its much more concise and understandable
2018-02-04T10:58:56.000067
Ellen
pythondev_help_Ellen_2018-02-04T10:58:56.000067
1,517,741,936.000067
32,736
pythondev
help
the problem was with the variable naming
2018-02-04T10:59:05.000070
Ellen
pythondev_help_Ellen_2018-02-04T10:59:05.000070
1,517,741,945.00007
32,737
pythondev
help
the 3.6 one worked, the 3.4 should have worked as well
2018-02-04T10:59:25.000107
Ellen
pythondev_help_Ellen_2018-02-04T10:59:25.000107
1,517,741,965.000107
32,738
pythondev
help
`def send_email(msg, link_to_be_sent, recipents):` and `msg = MIMEMultipart('alternative')`
2018-02-04T11:00:39.000035
Ellen
pythondev_help_Ellen_2018-02-04T11:00:39.000035
1,517,742,039.000035
32,739
pythondev
help
you can see there are two `msg` here
2018-02-04T11:00:51.000083
Ellen
pythondev_help_Ellen_2018-02-04T11:00:51.000083
1,517,742,051.000083
32,740
pythondev
help
thats why it wasnt working
2018-02-04T11:00:58.000082
Ellen
pythondev_help_Ellen_2018-02-04T11:00:58.000082
1,517,742,058.000082
32,741
pythondev
help
<@Ellen> I tried to run your code sample, but got an authentication error from gmail "Please log in via your web browser and then try again." I did that, but that didn't help. Did you have to tell gmail somehow to accept emails sent by Python?
2018-02-04T11:06:14.000052
Kay
pythondev_help_Kay_2018-02-04T11:06:14.000052
1,517,742,374.000052
32,742
pythondev
help
lol wait, i gave my password wrong over here.
2018-02-04T11:06:47.000100
Ellen
pythondev_help_Ellen_2018-02-04T11:06:47.000100
1,517,742,407.0001
32,743
pythondev
help
actually there is something like that, but its not necessary for you to go and give the app permission manually.
2018-02-04T11:07:42.000023
Ellen
pythondev_help_Ellen_2018-02-04T11:07:42.000023
1,517,742,462.000023
32,744
pythondev
help
Well, I didn't expect you to paste your real gmail password in a public forum like this, so I substituted my own gmail account name and password, but that didn't work...
2018-02-04T11:08:53.000133
Kay
pythondev_help_Kay_2018-02-04T11:08:53.000133
1,517,742,533.000133
32,745
pythondev
help
<https://support.google.com/accounts/answer/6010255?hl=en>
2018-02-04T11:09:18.000003
Ellen
pythondev_help_Ellen_2018-02-04T11:09:18.000003
1,517,742,558.000003
32,746
pythondev
help
try this
2018-02-04T11:09:21.000100
Ellen
pythondev_help_Ellen_2018-02-04T11:09:21.000100
1,517,742,561.0001
32,747
pythondev
help
i had the same issue with my first account
2018-02-04T11:09:30.000013
Ellen
pythondev_help_Ellen_2018-02-04T11:09:30.000013
1,517,742,570.000013
32,748
pythondev
help
then it didn't ask anything else for the rest of the accounts
2018-02-04T11:09:56.000050
Ellen
pythondev_help_Ellen_2018-02-04T11:09:56.000050
1,517,742,596.00005
32,749
pythondev
help
also please change the variable name `msg` to `chapter_name` (inside the function arguments) if you using my script just like that
2018-02-04T11:10:41.000019
Ellen
pythondev_help_Ellen_2018-02-04T11:10:41.000019
1,517,742,641.000019
32,750
pythondev
help
Interesting! I also found <https://stackoverflow.com/questions/25944883/how-to-send-an-email-through-gmail-without-enabling-insecure-access>
2018-02-04T11:10:48.000033
Kay
pythondev_help_Kay_2018-02-04T11:10:48.000033
1,517,742,648.000033
32,751
pythondev
help
bro
2018-02-04T11:11:22.000029
Ellen
pythondev_help_Ellen_2018-02-04T11:11:22.000029
1,517,742,682.000029
32,752
pythondev
help
that looks ridiculous
2018-02-04T11:11:27.000045
Ellen
pythondev_help_Ellen_2018-02-04T11:11:27.000045
1,517,742,687.000045
32,753
pythondev
help
i didn't use oauth2 and all
2018-02-04T11:11:36.000002
Ellen
pythondev_help_Ellen_2018-02-04T11:11:36.000002
1,517,742,696.000002
32,754
pythondev
help
and that too, its python2
2018-02-04T11:12:50.000069
Ellen
pythondev_help_Ellen_2018-02-04T11:12:50.000069
1,517,742,770.000069
32,755
pythondev
help
``` # Create the body of the message (a plain-text and an HTML version). text = f"Hi!\n{message}\nHere is the link you wanted:\n{link_to_be_sent}" html = f"""\ &lt;html&gt; &lt;head&gt;&lt;/head&gt; &lt;body&gt; &lt;p&gt;Hi!&lt;br&gt; {message}&lt;br&gt; Here is the &lt;a...
2018-02-04T11:14:34.000093
Kay
pythondev_help_Kay_2018-02-04T11:14:34.000093
1,517,742,874.000093
32,756
pythondev
help
I used that to interpolate the message and link
2018-02-04T11:14:45.000070
Kay
pythondev_help_Kay_2018-02-04T11:14:45.000070
1,517,742,885.00007
32,757
pythondev
help
aaah the new formatting technique from 3.6
2018-02-04T11:15:36.000142
Ellen
pythondev_help_Ellen_2018-02-04T11:15:36.000142
1,517,742,936.000142
32,758
pythondev
help
Yup. You're on 3.6 too, aren't you?
2018-02-04T11:15:47.000103
Kay
pythondev_help_Kay_2018-02-04T11:15:47.000103
1,517,742,947.000103
32,759
pythondev
help
yes yes am
2018-02-04T11:15:54.000100
Ellen
pythondev_help_Ellen_2018-02-04T11:15:54.000100
1,517,742,954.0001
32,760
pythondev
help
Actually I have both on my laptop because we still use 2.7 a lot at work
2018-02-04T11:16:14.000042
Kay
pythondev_help_Kay_2018-02-04T11:16:14.000042
1,517,742,974.000042
32,761
pythondev
help
ooh, im still a sophomore year student
2018-02-04T11:16:41.000061
Ellen
pythondev_help_Ellen_2018-02-04T11:16:41.000061
1,517,743,001.000061
32,762
pythondev
help
so im sticking with py3
2018-02-04T11:17:10.000015
Ellen
pythondev_help_Ellen_2018-02-04T11:17:10.000015
1,517,743,030.000015
32,763
pythondev
help
That's cool. Do they use Python nowadays in college, instead of Java?
2018-02-04T11:17:18.000016
Kay
pythondev_help_Kay_2018-02-04T11:17:18.000016
1,517,743,038.000016
32,764
pythondev
help
(to teach programming)
2018-02-04T11:17:29.000002
Kay
pythondev_help_Kay_2018-02-04T11:17:29.000002
1,517,743,049.000002
32,765
pythondev
help
idk about the rest of the countries abroad, im from india
2018-02-04T11:17:41.000057
Ellen
pythondev_help_Ellen_2018-02-04T11:17:41.000057
1,517,743,061.000057
32,766
pythondev
help
in school they were teaching c++
2018-02-04T11:17:58.000103
Ellen
pythondev_help_Ellen_2018-02-04T11:17:58.000103
1,517,743,078.000103
32,767
pythondev
help
:scream:
2018-02-04T11:18:10.000076
Kay
pythondev_help_Kay_2018-02-04T11:18:10.000076
1,517,743,090.000076
32,768
pythondev
help
and at univ they expect us to do everything in c++ and python
2018-02-04T11:18:18.000080
Ellen
pythondev_help_Ellen_2018-02-04T11:18:18.000080
1,517,743,098.00008
32,769
pythondev
help
but there are schools and colleges where its mandatory to learn java. for me its not
2018-02-04T11:18:41.000036
Ellen
pythondev_help_Ellen_2018-02-04T11:18:41.000036
1,517,743,121.000036
32,770
pythondev
help
Well, maybe C/C++ is good for learning to understand the concept of 'pointers'.
2018-02-04T11:18:53.000040
Kay
pythondev_help_Kay_2018-02-04T11:18:53.000040
1,517,743,133.00004
32,771
pythondev
help
yeah, i used to like c++
2018-02-04T11:19:07.000046
Ellen
pythondev_help_Ellen_2018-02-04T11:19:07.000046
1,517,743,147.000046
32,772
pythondev
help
I like certain aspects of C++, but not every feature.
2018-02-04T11:19:23.000057
Kay
pythondev_help_Kay_2018-02-04T11:19:23.000057
1,517,743,163.000057
32,773
pythondev
help
then `Segmentation fault core dumped!` used to happen.
2018-02-04T11:19:26.000039
Ellen
pythondev_help_Ellen_2018-02-04T11:19:26.000039
1,517,743,166.000039
32,774
pythondev
help
i moved on
2018-02-04T11:19:34.000083
Ellen
pythondev_help_Ellen_2018-02-04T11:19:34.000083
1,517,743,174.000083
32,775
pythondev
help
Yup, C++ doesn't protect yourself from shooting in your foot.
2018-02-04T11:19:56.000181
Kay
pythondev_help_Kay_2018-02-04T11:19:56.000181
1,517,743,196.000181
32,776
pythondev
help
especially during my data structures and algo course
2018-02-04T11:20:35.000043
Ellen
pythondev_help_Ellen_2018-02-04T11:20:35.000043
1,517,743,235.000043
32,777
pythondev
help
every tiime i had a lab test, boom that error happens
2018-02-04T11:20:47.000066
Ellen
pythondev_help_Ellen_2018-02-04T11:20:47.000066
1,517,743,247.000066
32,778
pythondev
help
The computer relentlessly punishes people for 'sloppy' programming. Sorry, that sounds a bit negative... but in languages like assembler and C (or C++) everything must be perfect or otherwise your program will segfault, for example, when accessing memory that isn't yours.
2018-02-04T11:23:53.000056
Kay
pythondev_help_Kay_2018-02-04T11:23:53.000056
1,517,743,433.000056
32,779
pythondev
help
...and 'memory leaks' :stuck_out_tongue_winking_eye:
2018-02-04T11:24:22.000088
Kay
pythondev_help_Kay_2018-02-04T11:24:22.000088
1,517,743,462.000088
32,780
pythondev
help
You remember those?
2018-02-04T11:24:32.000063
Kay
pythondev_help_Kay_2018-02-04T11:24:32.000063
1,517,743,472.000063
32,781
pythondev
help
Those still happen in GC languages, but definitely less common. I remember writing an in-house protocol in c++ and having unbounded memory growth during an error condition... boost’s autopointer was pretty amazing though (once I found it, that is)
2018-02-04T11:35:11.000005
Rafael
pythondev_help_Rafael_2018-02-04T11:35:11.000005
1,517,744,111.000005
32,782
pythondev
help
i have no clue what you are talking about, guess thats the difference between a pro and an amateur
2018-02-04T11:39:56.000042
Ellen
pythondev_help_Ellen_2018-02-04T11:39:56.000042
1,517,744,396.000042
32,783
pythondev
help
Is it a zip file or tar ball?
2018-02-04T11:54:01.000025
Floy
pythondev_help_Floy_2018-02-04T11:54:01.000025
1,517,745,241.000025
32,784
pythondev
help
<@Floy> its a zip
2018-02-04T11:54:12.000041
Niesha
pythondev_help_Niesha_2018-02-04T11:54:12.000041
1,517,745,252.000041
32,785
pythondev
help
<@Floy> I was able to ezxtract it and move it to documents for soem reason, and then i moved it to localdrive/ program files which allowed for the exe to be put there but nwo when i run the selenium code to test it, I get an error saying the file is not there to run geckodriver.
2018-02-04T11:57:40.000050
Niesha
pythondev_help_Niesha_2018-02-04T11:57:40.000050
1,517,745,460.00005
32,786
pythondev
help
Anyone used `.pfx` certs with a SOAP API in Python? Struggling to get a connection :disappointed:
2018-02-04T16:59:14.000042
Breana
pythondev_help_Breana_2018-02-04T16:59:14.000042
1,517,763,554.000042
32,787
pythondev
help
<@Breana> there are means to convert `pfx` to `pem` if that makes things easier
2018-02-04T17:22:11.000113
Brande
pythondev_help_Brande_2018-02-04T17:22:11.000113
1,517,764,931.000113
32,788
pythondev
help
yeah my lessons learned in SOAP stuff was: - always convert to pem - every soap library is terrible at something so you just end up using requests
2018-02-04T17:23:52.000023
Noel
pythondev_help_Noel_2018-02-04T17:23:52.000023
1,517,765,032.000023
32,789
pythondev
help
Yeah I was about to say most SOAP libs are garbage and `requests` is just easier, or building something over `requests`
2018-02-04T17:24:29.000096
Brande
pythondev_help_Brande_2018-02-04T17:24:29.000096
1,517,765,069.000096
32,790
pythondev
help
i vaguely remember pySOAP itself being usable up until the point where we had to do custom auth via headers for SAP :disappointed:
2018-02-04T17:24:45.000071
Noel
pythondev_help_Noel_2018-02-04T17:24:45.000071
1,517,765,085.000071
32,791
pythondev
help
i remember suds but I’m pretty sure that died, too
2018-02-04T17:24:59.000094
Brande
pythondev_help_Brande_2018-02-04T17:24:59.000094
1,517,765,099.000094
32,792
pythondev
help
Currently trying to use Zeep which is built on top of requests
2018-02-04T17:42:33.000032
Breana
pythondev_help_Breana_2018-02-04T17:42:33.000032
1,517,766,153.000032
32,793
pythondev
help
Just converted it to a pem as I clicked Slack and saw your message :thumbsup::skin-tone-2:
2018-02-04T17:42:58.000157
Breana
pythondev_help_Breana_2018-02-04T17:42:58.000157
1,517,766,178.000157
32,794
pythondev
help
So converting to pem I get `requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine('You requested access to:\r\n',))` :confused:
2018-02-04T18:11:51.000017
Breana
pythondev_help_Breana_2018-02-04T18:11:51.000017
1,517,767,911.000017
32,795
pythondev
help
right now I can add the cert to keychain, and access the SOAP stuff via the web browser fine once I tell safari use the cert. Doing it via code is just a giant nope. So I converted the pfx cert to a pem cert, and that works when doing a standard GET request in code via requests lib, but not if I use Zeep library which ...
2018-02-04T18:34:57.000027
Breana
pythondev_help_Breana_2018-02-04T18:34:57.000027
1,517,769,297.000027
32,796
pythondev
help
exact same cert passed to requests and zeep
2018-02-04T18:36:20.000099
Breana
pythondev_help_Breana_2018-02-04T18:36:20.000099
1,517,769,380.000099
32,797
pythondev
help
yay fixed it :smile: went straight to requests to create a session with the cert then passed that to zeep rather than getting zeep to do it
2018-02-04T18:48:12.000108
Breana
pythondev_help_Breana_2018-02-04T18:48:12.000108
1,517,770,092.000108
32,798
pythondev
help
So I have an odd question. Suppose I have a bunch of classes that need to reference each other, e.g. a Ward that contains Precincts and a Neighborhood that contains Precincts and Wards, where a Precinct has a parent that is a Ward and a parent that is a Neighborhood. How do I arrange these classes in a way to avoid `na...
2018-02-04T20:36:26.000048
Tisa
pythondev_help_Tisa_2018-02-04T20:36:26.000048
1,517,776,586.000048
32,799
pythondev
help
That depends on the framework or code, some (such as Django) can resolve strings to the classes for you
2018-02-04T20:41:57.000028
Rafael
pythondev_help_Rafael_2018-02-04T20:41:57.000028
1,517,776,917.000028
32,800
pythondev
help
I'm working in Django.
2018-02-04T20:42:36.000128
Tisa
pythondev_help_Tisa_2018-02-04T20:42:36.000128
1,517,776,956.000128
32,801
pythondev
help
This is for my models.py - where I need a ManyToManyField between the aforementioned objects.
2018-02-04T20:43:11.000138
Tisa
pythondev_help_Tisa_2018-02-04T20:43:11.000138
1,517,776,991.000138
32,802
pythondev
help
When I try to makemigrations, I get an undefined name error - which tells me that Django isn't resolving the classes correctly.
2018-02-04T20:44:14.000016
Tisa
pythondev_help_Tisa_2018-02-04T20:44:14.000016
1,517,777,054.000016
32,803
pythondev
help
```class Precinct(models.Model): shape_area = models.CharField(max_length=64) precinct = models.CharField(max_length=64) ward = models.CharField(max_length=64) full_text = models.CharField(max_length=64) shape_len = models.CharField(max_length=64) neighborhoods = models.ManyToManyField('Neighbor...
2018-02-04T20:44:52.000083
Tisa
pythondev_help_Tisa_2018-02-04T20:44:52.000083
1,517,777,092.000083
32,804
pythondev
help
Would I need to add these single quotes around Neighborhood to take advantage of this sort of string resolution?
2018-02-04T20:45:24.000094
Tisa
pythondev_help_Tisa_2018-02-04T20:45:24.000094
1,517,777,124.000094
32,805
pythondev
help
Is it in the same models.py?
2018-02-04T20:45:48.000184
Rafael
pythondev_help_Rafael_2018-02-04T20:45:48.000184
1,517,777,148.000184
32,806
pythondev
help
Yup.
2018-02-04T20:46:19.000139
Tisa
pythondev_help_Tisa_2018-02-04T20:46:19.000139
1,517,777,179.000139
32,807
pythondev
help
All one big models.py. Neighborhood is defined later in the models.py than Precinct.
2018-02-04T20:46:35.000178
Tisa
pythondev_help_Tisa_2018-02-04T20:46:35.000178
1,517,777,195.000178
32,808
pythondev
help
Probably best to put this in <#C0LMFRMB5|django>
2018-02-04T20:46:53.000022
Rafael
pythondev_help_Rafael_2018-02-04T20:46:53.000022
1,517,777,213.000022
32,809
pythondev
help
Will do.
2018-02-04T20:47:00.000074
Tisa
pythondev_help_Tisa_2018-02-04T20:47:00.000074
1,517,777,220.000074
32,810
pythondev
help
In flask, should I have my `libapache2-mod-wsgi-py3` installed in my virtual environment on a live server?
2018-02-05T04:53:16.000097
Milo
pythondev_help_Milo_2018-02-05T04:53:16.000097
1,517,806,396.000097
32,811
pythondev
help
Can someone let me know what am i doing wrong here ? ```class Finder(): def __init__(self, string_list): self.string_list = string_list def find(self, string_match): print("Hello") print(self.string_match) string_list = ['asd', 'asdd', 'fre', 'glk', 'lkm'] finder = Finder(string_list) finder.find('string')```
2018-02-05T05:03:21.000119
Josephine
pythondev_help_Josephine_2018-02-05T05:03:21.000119
1,517,807,001.000119
32,812
pythondev
help
```Traceback (most recent call last): File "rename.py", line 29, in &lt;module&gt; finder.find('string') File "rename.py", line 25, in find print(self.string_match) AttributeError: 'Finder' object has no attribute 'string_match'```
2018-02-05T05:03:34.000178
Josephine
pythondev_help_Josephine_2018-02-05T05:03:34.000178
1,517,807,014.000178
32,813
pythondev
help
<@Josephine> `string_match` is an argument of `find` method, but you're trying to access it as a `Finder` class attribute
2018-02-05T05:04:07.000162
Aleida
pythondev_help_Aleida_2018-02-05T05:04:07.000162
1,517,807,047.000162
32,814
pythondev
help
Calling `finder.find('sad')` should print the string `asd`.
2018-02-05T05:04:15.000130
Josephine
pythondev_help_Josephine_2018-02-05T05:04:15.000130
1,517,807,055.00013
32,815
pythondev
help
Oh.
2018-02-05T05:04:49.000193
Josephine
pythondev_help_Josephine_2018-02-05T05:04:49.000193
1,517,807,089.000193
32,816
pythondev
help
So Finder.find('sad') should work
2018-02-05T05:05:07.000170
Josephine
pythondev_help_Josephine_2018-02-05T05:05:07.000170
1,517,807,107.00017
32,817
pythondev
help
:smile:
2018-02-05T05:05:09.000067
Josephine
pythondev_help_Josephine_2018-02-05T05:05:09.000067
1,517,807,109.000067
32,818
pythondev
help
``` class Finder(): def __init__(self, string_list): self.string_list = string_list def find(self, string_match): print("Hello") if string_match in self.string_list: print(string_match) ```
2018-02-05T05:06:39.000286
Aleida
pythondev_help_Aleida_2018-02-05T05:06:39.000286
1,517,807,199.000286
32,819
pythondev
help
<@Aleida> I tried Finder.find('string') but got this: ```Traceback (most recent call last): File "rename.py", line 29, in &lt;module&gt; Finder.find('string') TypeError: find() missing 1 required positional argument: 'string_match'```
2018-02-05T05:06:48.000067
Josephine
pythondev_help_Josephine_2018-02-05T05:06:48.000067
1,517,807,208.000067
32,820
pythondev
help
Thanks <@Aleida>
2018-02-05T05:07:02.000372
Josephine
pythondev_help_Josephine_2018-02-05T05:07:02.000372
1,517,807,222.000372
32,821
pythondev
help
Which tutorial you're using to learn python?
2018-02-05T05:07:24.000424
Aleida
pythondev_help_Aleida_2018-02-05T05:07:24.000424
1,517,807,244.000424
32,822
pythondev
help
`Finder.find()` calls `find` as a function placed to the `Finder` "namespace"
2018-02-05T05:08:00.000137
Aleida
pythondev_help_Aleida_2018-02-05T05:08:00.000137
1,517,807,280.000137
32,823