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
<@Kiyoko> you can dm me and I’ll help you
2019-03-24T10:34:59.532500
Rodrick
pythondev_help_Rodrick_2019-03-24T10:34:59.532500
1,553,423,699.5325
14,721
pythondev
help
Thanks a lot <@Rodrick>!
2019-03-24T10:35:56.532700
Kiyoko
pythondev_help_Kiyoko_2019-03-24T10:35:56.532700
1,553,423,756.5327
14,722
pythondev
help
Can we not DM each other, sharing this information in the channel is exactly what this channel is for :ok_hand:
2019-03-24T12:14:40.533600
Jonas
pythondev_help_Jonas_2019-03-24T12:14:40.533600
1,553,429,680.5336
14,723
pythondev
help
It could help other people who are just reading it
2019-03-24T12:14:56.534000
Jonas
pythondev_help_Jonas_2019-03-24T12:14:56.534000
1,553,429,696.534
14,724
pythondev
help
whats the command to update all pip packages?
2019-03-24T13:03:09.534400
Priscilla
pythondev_help_Priscilla_2019-03-24T13:03:09.534400
1,553,432,589.5344
14,725
pythondev
help
`pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U`
2019-03-24T13:11:55.534500
Quiana
pythondev_help_Quiana_2019-03-24T13:11:55.534500
1,553,433,115.5345
14,726
pythondev
help
ah, silly me its so simple!
2019-03-24T13:13:00.534800
Priscilla
pythondev_help_Priscilla_2019-03-24T13:13:00.534800
1,553,433,180.5348
14,727
pythondev
help
thanks!
2019-03-24T13:13:04.535000
Priscilla
pythondev_help_Priscilla_2019-03-24T13:13:04.535000
1,553,433,184.535
14,728
pythondev
help
you’re welcome!
2019-03-24T13:13:48.535200
Quiana
pythondev_help_Quiana_2019-03-24T13:13:48.535200
1,553,433,228.5352
14,729
pythondev
help
hmmm... `grep : The term 'grep' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.`
2019-03-24T13:17:40.535600
Priscilla
pythondev_help_Priscilla_2019-03-24T13:17:40.535600
1,553,433,460.5356
14,730
pythondev
help
do i need to download grep? is that a thing that can be downloaded?&gt;
2019-03-24T13:18:14.536100
Priscilla
pythondev_help_Priscilla_2019-03-24T13:18:14.536100
1,553,433,494.5361
14,731
pythondev
help
<@Priscilla> are you on windows? i’m guessing you are in windows since `grep` ships with all unix-like OSs
2019-03-24T13:23:14.536900
Rebeca
pythondev_help_Rebeca_2019-03-24T13:23:14.536900
1,553,433,794.5369
14,732
pythondev
help
i am on windows
2019-03-24T13:23:23.537300
Priscilla
pythondev_help_Priscilla_2019-03-24T13:23:23.537300
1,553,433,803.5373
14,733
pythondev
help
:thinking_face:
2019-03-24T13:23:52.537500
Rebeca
pythondev_help_Rebeca_2019-03-24T13:23:52.537500
1,553,433,832.5375
14,734
pythondev
help
you might not be able to use that command, since `grep` and `xargs` are shell commands in a linux environment.
2019-03-24T13:24:29.538300
Rebeca
pythondev_help_Rebeca_2019-03-24T13:24:29.538300
1,553,433,869.5383
14,735
pythondev
help
but, if the fancy windows “power shell” has those, then go for it.
2019-03-24T13:24:47.538900
Rebeca
pythondev_help_Rebeca_2019-03-24T13:24:47.538900
1,553,433,887.5389
14,736
pythondev
help
thats apparently the exact command for windows, according to searching. I wonder if there is a way to install grep, or maybe its meant to be applied through cygwin
2019-03-24T13:25:54.540300
Priscilla
pythondev_help_Priscilla_2019-03-24T13:25:54.540300
1,553,433,954.5403
14,737
pythondev
help
`Select-String` may be your friend, according to <https://antjanus.com/blog/web-development-tutorials/how-to-grep-in-powershell/>
2019-03-24T13:26:48.540800
Rebeca
pythondev_help_Rebeca_2019-03-24T13:26:48.540800
1,553,434,008.5408
14,738
pythondev
help
nice resource! thanks <@Rebeca>
2019-03-24T13:28:54.541500
Priscilla
pythondev_help_Priscilla_2019-03-24T13:28:54.541500
1,553,434,134.5415
14,739
pythondev
help
Hey guys , I'm having some problems with sending a HTTP POST using urllib2. It keeps returning with a HTTP Error 400: Bad Request ``` import urllib2,urllib import json hdr = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64)', 'Accept': '*/*', 'X-Access-Token': 'XXXXX, 'X-Client-ID': 'XXXX'} data1={'list_id': 'XXXX', 'url': '<http://XXX:8088/services/collector/raw>', 'proocessor_type': 'generic', 'configuration': ''} data1=urllib.urlencode(data1) url="<https://a.wunderlist.com/api/v1/webhooks>" req=urllib2.Request(url, headers=hdr, data=data1) response=urllib2.urlopen(req) res=response.read() res=json.loads(res) print(res) ``` Would anyone be able to point out what I'm doing wrong here?
2019-03-24T13:34:46.543500
Jackie
pythondev_help_Jackie_2019-03-24T13:34:46.543500
1,553,434,486.5435
14,740
pythondev
help
<@Jackie> your syntax is invalid
2019-03-24T13:38:22.543900
Rebeca
pythondev_help_Rebeca_2019-03-24T13:38:22.543900
1,553,434,702.5439
14,741
pythondev
help
:wink:
2019-03-24T13:38:26.544200
Rebeca
pythondev_help_Rebeca_2019-03-24T13:38:26.544200
1,553,434,706.5442
14,742
pythondev
help
how so?
2019-03-24T13:38:36.544500
Jackie
pythondev_help_Jackie_2019-03-24T13:38:36.544500
1,553,434,716.5445
14,743
pythondev
help
```data1={'list_id': 'XXXX', 'url': '<http://XXX:8088/services/collector/raw>', 'proocessor_type': 'generic', &lt;----------- 'configuration': ''}```
2019-03-24T13:38:42.544700
Rebeca
pythondev_help_Rebeca_2019-03-24T13:38:42.544700
1,553,434,722.5447
14,744
pythondev
help
whats wrong there?
2019-03-24T13:39:01.545000
Jackie
pythondev_help_Jackie_2019-03-24T13:39:01.545000
1,553,434,741.545
14,745
pythondev
help
spelling?
2019-03-24T13:39:12.545200
Rebeca
pythondev_help_Rebeca_2019-03-24T13:39:12.545200
1,553,434,752.5452
14,746
pythondev
help
god damn it
2019-03-24T13:39:21.545500
Jackie
pythondev_help_Jackie_2019-03-24T13:39:21.545500
1,553,434,761.5455
14,747
pythondev
help
curse you dyslexia
2019-03-24T13:40:22.546300
Jackie
pythondev_help_Jackie_2019-03-24T13:40:22.546300
1,553,434,822.5463
14,748
pythondev
help
it happens all the time.
2019-03-24T13:40:42.546900
Rebeca
pythondev_help_Rebeca_2019-03-24T13:40:42.546900
1,553,434,842.5469
14,749
pythondev
help
I've corrected it but I'm still getting the same error
2019-03-24T13:40:46.547000
Jackie
pythondev_help_Jackie_2019-03-24T13:40:46.547000
1,553,434,846.547
14,750
pythondev
help
d’oh
2019-03-24T13:40:55.547200
Rebeca
pythondev_help_Rebeca_2019-03-24T13:40:55.547200
1,553,434,855.5472
14,751
pythondev
help
`data1={'list_id': 'XXXX',`
2019-03-24T13:42:14.547400
Rebeca
pythondev_help_Rebeca_2019-03-24T13:42:14.547400
1,553,434,934.5474
14,752
pythondev
help
is `list_id` an int?
2019-03-24T13:42:20.547600
Rebeca
pythondev_help_Rebeca_2019-03-24T13:42:20.547600
1,553,434,940.5476
14,753
pythondev
help
yes
2019-03-24T13:42:25.548000
Jackie
pythondev_help_Jackie_2019-03-24T13:42:25.548000
1,553,434,945.548
14,754
pythondev
help
no ''?
2019-03-24T13:42:34.548200
Jackie
pythondev_help_Jackie_2019-03-24T13:42:34.548200
1,553,434,954.5482
14,755
pythondev
help
yeah, don’t use `'` as it will make it a string
2019-03-24T13:43:05.549000
Rebeca
pythondev_help_Rebeca_2019-03-24T13:43:05.549000
1,553,434,985.549
14,756
pythondev
help
Missing a trailing quote on the `X-Access-Token` line?
2019-03-24T13:43:19.549200
Sasha
pythondev_help_Sasha_2019-03-24T13:43:19.549200
1,553,434,999.5492
14,757
pythondev
help
Though that might just be a typo for the XXXXX replacement.
2019-03-24T13:43:58.549700
Sasha
pythondev_help_Sasha_2019-03-24T13:43:58.549700
1,553,435,038.5497
14,758
pythondev
help
No, it's there, I just accidentally deleted it when I was hiding my Token before I copied it
2019-03-24T13:44:12.549800
Jackie
pythondev_help_Jackie_2019-03-24T13:44:12.549800
1,553,435,052.5498
14,759
pythondev
help
exactly
2019-03-24T13:44:21.550000
Jackie
pythondev_help_Jackie_2019-03-24T13:44:21.550000
1,553,435,061.55
14,760
pythondev
help
still no joy, even with the ' removed, and I don't have any other integer paramaters
2019-03-24T13:44:45.550600
Jackie
pythondev_help_Jackie_2019-03-24T13:44:45.550600
1,553,435,085.5506
14,761
pythondev
help
:s
2019-03-24T13:46:16.550800
Rebeca
pythondev_help_Rebeca_2019-03-24T13:46:16.550800
1,553,435,176.5508
14,762
pythondev
help
have you tried using `requests` module instead?
2019-03-24T13:46:26.551100
Rebeca
pythondev_help_Rebeca_2019-03-24T13:46:26.551100
1,553,435,186.5511
14,763
pythondev
help
no, I guess I could but I don't see why this would not work
2019-03-24T13:48:25.551600
Jackie
pythondev_help_Jackie_2019-03-24T13:48:25.551600
1,553,435,305.5516
14,764
pythondev
help
+1 for that
2019-03-24T13:48:33.551900
Jeanie
pythondev_help_Jeanie_2019-03-24T13:48:33.551900
1,553,435,313.5519
14,765
pythondev
help
has anyone used twine to create a pip package? mine uploaded fine and i was able to pip install, but when i import it i get “module not found”.. i’m in the same venv i used to install it and it shows up with pip list..
2019-03-24T13:48:38.552100
Jeanie
pythondev_help_Jeanie_2019-03-24T13:48:38.552100
1,553,435,318.5521
14,766
pythondev
help
With a quick scan, it looks like the wunderlist API wants a JSON format in the POST body, rather than urlencoded parameters.
2019-03-24T13:49:47.553300
Sasha
pythondev_help_Sasha_2019-03-24T13:49:47.553300
1,553,435,387.5533
14,767
pythondev
help
<@Jeanie> have used it passingly… one thing to check is whether the `module not found` error is not masking some other error inside your package that you created. <@Sasha> nice catch!
2019-03-24T13:50:14.553600
Rebeca
pythondev_help_Rebeca_2019-03-24T13:50:14.553600
1,553,435,414.5536
14,768
pythondev
help
<@Sasha> Yeah I picked that up a few minutes ago and added the following line to the hdr: ```'Content-Type': 'application/json',```
2019-03-24T13:52:14.556100
Jackie
pythondev_help_Jackie_2019-03-24T13:52:14.556100
1,553,435,534.5561
14,769
pythondev
help
all my functions are in “axl.py” which includes a class “AXL” of functions. if i create a “test.py” in the same folder i can do “from axl import AXL, instantiate it with “ucm = AXL(options here)” and use it fine with “ucm.myFunction(parameters)”
2019-03-24T13:52:52.556600
Jeanie
pythondev_help_Jeanie_2019-03-24T13:52:52.556600
1,553,435,572.5566
14,770
pythondev
help
all of the examples on the pep website go over functions but not classes. didn’t know if there was something special you had to do
2019-03-24T13:56:09.558300
Jeanie
pythondev_help_Jeanie_2019-03-24T13:56:09.558300
1,553,435,769.5583
14,771
pythondev
help
<@Jackie> That might not be sufficient... I'd look into using `json.dumps()` instead of `urlencode()` to create your POST data string.
2019-03-24T13:57:11.558600
Sasha
pythondev_help_Sasha_2019-03-24T13:57:11.558600
1,553,435,831.5586
14,772
pythondev
help
Tried that before, same result
2019-03-24T13:57:33.559000
Jackie
pythondev_help_Jackie_2019-03-24T13:57:33.559000
1,553,435,853.559
14,773
pythondev
help
however let me try again now that I've corrected some syntax mistakes
2019-03-24T13:57:48.559400
Jackie
pythondev_help_Jackie_2019-03-24T13:57:48.559400
1,553,435,868.5594
14,774
pythondev
help
The doc example also has a literal `"json"` prefix string in the POST body... maybe that's required too?
2019-03-24T13:58:44.560200
Sasha
pythondev_help_Sasha_2019-03-24T13:58:44.560200
1,553,435,924.5602
14,775
pythondev
help
Well some progress there, I'm not getting the Bad Request error but what I'm getting is not the response that I should be expecting
2019-03-24T14:06:16.560900
Jackie
pythondev_help_Jackie_2019-03-24T14:06:16.560900
1,553,436,376.5609
14,776
pythondev
help
Let me look into that, and for now thank you all for your help
2019-03-24T14:06:39.561400
Jackie
pythondev_help_Jackie_2019-03-24T14:06:39.561400
1,553,436,399.5614
14,777
pythondev
help
<@Sasha> ok smashing, that worked, thank you so much
2019-03-24T14:18:16.561900
Jackie
pythondev_help_Jackie_2019-03-24T14:18:16.561900
1,553,437,096.5619
14,778
pythondev
help
while I have your attention just one last one. In the Wunderlist documentation they said that you can add a parameter called "configuration" but they have not explained what that is.
2019-03-24T14:18:59.562800
Jackie
pythondev_help_Jackie_2019-03-24T14:18:59.562800
1,553,437,139.5628
14,779
pythondev
help
is that something generic or something wunderlist specific that they just forgot to document?
2019-03-24T14:19:22.563600
Jackie
pythondev_help_Jackie_2019-03-24T14:19:22.563600
1,553,437,162.5636
14,780
pythondev
help
Guys I have to write a code to check if a number is prime or not using while loop. Your help will be appreciated :pray::skin-tone-5:
2019-03-24T14:49:10.565600
Mana
pythondev_help_Mana_2019-03-24T14:49:10.565600
1,553,438,950.5656
14,781
pythondev
help
What have you tried so far?
2019-03-24T14:50:08.566000
Hiroko
pythondev_help_Hiroko_2019-03-24T14:50:08.566000
1,553,439,008.566
14,782
pythondev
help
<@Jackie> Yeah, I can't see any documentation about that, so my guess is they just have it as a hook for future expansion or something.
2019-03-24T14:54:09.566600
Sasha
pythondev_help_Sasha_2019-03-24T14:54:09.566600
1,553,439,249.5666
14,783
pythondev
help
ok, thanks
2019-03-24T14:54:27.566800
Jackie
pythondev_help_Jackie_2019-03-24T14:54:27.566800
1,553,439,267.5668
14,784
pythondev
help
@dd82
2019-03-24T15:04:21.567100
Mana
pythondev_help_Mana_2019-03-24T15:04:21.567100
1,553,439,861.5671
14,785
pythondev
help
You're very close. Have a look at the placement of the `x += 1` statement. Right now it's inside the `if` block, so it only gets executed in the "not prime" case.
2019-03-24T15:06:22.568100
Sasha
pythondev_help_Sasha_2019-03-24T15:06:22.568100
1,553,439,982.5681
14,786
pythondev
help
I tried changing the placement but for everything number I input it returns “it’s not prime”
2019-03-24T15:12:16.569600
Mana
pythondev_help_Mana_2019-03-24T15:12:16.569600
1,553,440,336.5696
14,787
pythondev
help
Maybe try printing out `x` so you can see what it thinks the number is divisible by.
2019-03-24T15:14:26.570100
Sasha
pythondev_help_Sasha_2019-03-24T15:14:26.570100
1,553,440,466.5701
14,788
pythondev
help
Sure
2019-03-24T15:15:35.570300
Mana
pythondev_help_Mana_2019-03-24T15:15:35.570300
1,553,440,535.5703
14,789
pythondev
help
Sorry, by DM i meant doing <@Rodrick>
2019-03-24T15:17:19.570400
Rodrick
pythondev_help_Rodrick_2019-03-24T15:17:19.570400
1,553,440,639.5704
14,790
pythondev
help
<@Sasha> still not getting it
2019-03-24T15:22:15.571300
Mana
pythondev_help_Mana_2019-03-24T15:22:15.571300
1,553,440,935.5713
14,791
pythondev
help
doesn't appear your if/else statements line up with each other either.
2019-03-24T15:22:53.571700
Stacy
pythondev_help_Stacy_2019-03-24T15:22:53.571700
1,553,440,973.5717
14,792
pythondev
help
yep
2019-03-24T15:23:00.571900
Hiroko
pythondev_help_Hiroko_2019-03-24T15:23:00.571900
1,553,440,980.5719
14,793
pythondev
help
yea
2019-03-24T15:23:06.572300
Rodrick
pythondev_help_Rodrick_2019-03-24T15:23:06.572300
1,553,440,986.5723
14,794
pythondev
help
also, please paste text, not images
2019-03-24T15:23:08.572500
Hiroko
pythondev_help_Hiroko_2019-03-24T15:23:08.572500
1,553,440,988.5725
14,795
pythondev
help
its hard to edit them
2019-03-24T15:23:19.572900
Rodrick
pythondev_help_Rodrick_2019-03-24T15:23:19.572900
1,553,440,999.5729
14,796
pythondev
help
He's using a `while-else` construct, I think.
2019-03-24T15:23:22.573100
Sasha
pythondev_help_Sasha_2019-03-24T15:23:22.573100
1,553,441,002.5731
14,797
pythondev
help
Oh
2019-03-24T15:23:27.573300
Rodrick
pythondev_help_Rodrick_2019-03-24T15:23:27.573300
1,553,441,007.5733
14,798
pythondev
help
I think if you change the while-else to an if else it would work
2019-03-24T15:23:45.573900
Rodrick
pythondev_help_Rodrick_2019-03-24T15:23:45.573900
1,553,441,025.5739
14,799
pythondev
help
so, I think you have two problems
2019-03-24T15:23:50.574200
Hiroko
pythondev_help_Hiroko_2019-03-24T15:23:50.574200
1,553,441,030.5742
14,800
pythondev
help
try that <@Mana>
2019-03-24T15:23:53.574400
Rodrick
pythondev_help_Rodrick_2019-03-24T15:23:53.574400
1,553,441,033.5744
14,801
pythondev
help
with your if block, you have the break inside it
2019-03-24T15:24:02.574700
Hiroko
pythondev_help_Hiroko_2019-03-24T15:24:02.574700
1,553,441,042.5747
14,802
pythondev
help
oh yea
2019-03-24T15:24:15.575200
Rodrick
pythondev_help_Rodrick_2019-03-24T15:24:15.575200
1,553,441,055.5752
14,803
pythondev
help
move the `x += 1 line down and out of that if conditional
2019-03-24T15:24:23.575500
Hiroko
pythondev_help_Hiroko_2019-03-24T15:24:23.575500
1,553,441,063.5755
14,804
pythondev
help
eg ```if n % x == 0: print(...) x += 1 ```
2019-03-24T15:25:04.576300
Hiroko
pythondev_help_Hiroko_2019-03-24T15:25:04.576300
1,553,441,104.5763
14,805
pythondev
help
the `break` inside your `if` check is breaking out of the while loop
2019-03-24T15:25:31.576900
Hiroko
pythondev_help_Hiroko_2019-03-24T15:25:31.576900
1,553,441,131.5769
14,806
pythondev
help
The `break` is appropriate here, though, since you don't want to keep checking once you've found a factor.
2019-03-24T15:26:16.577600
Sasha
pythondev_help_Sasha_2019-03-24T15:26:16.577600
1,553,441,176.5776
14,807
pythondev
help
Did that help <@Mana>
2019-03-24T15:26:45.578200
Rodrick
pythondev_help_Rodrick_2019-03-24T15:26:45.578200
1,553,441,205.5782
14,808
pythondev
help
my suggestion or anyones?
2019-03-24T15:27:04.578700
Rodrick
pythondev_help_Rodrick_2019-03-24T15:27:04.578700
1,553,441,224.5787
14,809
pythondev
help
<@Sasha> not really, IMO. because the break inside there will stop the loop at the first check if the not a prime hits
2019-03-24T15:27:25.579100
Hiroko
pythondev_help_Hiroko_2019-03-24T15:27:25.579100
1,553,441,245.5791
14,810
pythondev
help
here, a while-else is not appropriate, I think
2019-03-24T15:27:43.579600
Hiroko
pythondev_help_Hiroko_2019-03-24T15:27:43.579600
1,553,441,263.5796
14,811
pythondev
help
there should be two checks inside the loop
2019-03-24T15:27:54.580100
Hiroko
pythondev_help_Hiroko_2019-03-24T15:27:54.580100
1,553,441,274.5801
14,812
pythondev
help
Hmmm, I hate to disagree with you, <@Hiroko>, but I think you might be confused about the math. If you're prime-checking the number 20, you know it's not prime as soon as you see it's divisible by 2.
2019-03-24T15:28:35.580900
Sasha
pythondev_help_Sasha_2019-03-24T15:28:35.580900
1,553,441,315.5809
14,813
pythondev
help
:facepalm: you’re right
2019-03-24T15:28:58.581200
Hiroko
pythondev_help_Hiroko_2019-03-24T15:28:58.581200
1,553,441,338.5812
14,814
pythondev
help
haha
2019-03-24T15:29:10.581600
Rodrick
pythondev_help_Rodrick_2019-03-24T15:29:10.581600
1,553,441,350.5816
14,815
pythondev
help
I misread that to check what numbers from 0 to n are prime
2019-03-24T15:29:14.581800
Hiroko
pythondev_help_Hiroko_2019-03-24T15:29:14.581800
1,553,441,354.5818
14,816
pythondev
help
not an individual number
2019-03-24T15:29:22.582000
Hiroko
pythondev_help_Hiroko_2019-03-24T15:29:22.582000
1,553,441,362.582
14,817
pythondev
help
Ah, gotcha.
2019-03-24T15:29:31.582300
Sasha
pythondev_help_Sasha_2019-03-24T15:29:31.582300
1,553,441,371.5823
14,818
pythondev
help
Get that Chris?
2019-03-24T15:30:38.583300
Rodrick
pythondev_help_Rodrick_2019-03-24T15:30:38.583300
1,553,441,438.5833
14,819
pythondev
help
While I &lt;= n//2: If (n %i) == 0: count += 1 break i += 1
2019-03-24T15:32:09.584700
Mana
pythondev_help_Mana_2019-03-24T15:32:09.584700
1,553,441,529.5847
14,820