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
Heh, Wikipedia remembers... <https://en.wikipedia.org/wiki/Double-sided_disk#/media/File:Squareholepunch.jpg>
2019-04-28T20:43:57.007100
Sasha
pythondev_help_Sasha_2019-04-28T20:43:57.007100
1,556,484,237.0071
21,221
pythondev
help
what was the notch for? why didnt they machine it with the notch?
2019-04-28T20:47:04.007800
Priscilla
pythondev_help_Priscilla_2019-04-28T20:47:04.007800
1,556,484,424.0078
21,222
pythondev
help
man this integration is so freakin cool
2019-04-28T20:48:07.008800
Frankie
pythondev_help_Frankie_2019-04-28T20:48:07.008800
1,556,484,487.0088
21,223
pythondev
help
The notch was a write-protect tab... open for writeable, or you could cover it up with tape to write-protect it. Single-sided floppies were cheaper, and you could usually use them as double-sided if you cut a second notch and flipped them over.
2019-04-28T20:48:27.009500
Sasha
pythondev_help_Sasha_2019-04-28T20:48:27.009500
1,556,484,507.0095
21,224
pythondev
help
wtf lol
2019-04-28T20:49:03.010100
Priscilla
pythondev_help_Priscilla_2019-04-28T20:49:03.010100
1,556,484,543.0101
21,225
pythondev
help
idk if its the alcohol, but i dont know what you are saying ed
2019-04-28T20:49:28.010900
Priscilla
pythondev_help_Priscilla_2019-04-28T20:49:28.010900
1,556,484,568.0109
21,226
pythondev
help
only in test so far but when someone registers for my site, they'll automatically be added to my mailing list and started on an email drip, any profile updates will automatically get pushed to mailchimp w/ a django signal, and each time I deploy code it does a dump to CSV of all my current users/subscriptions/customers to AWS S3. it's magical. I feel so modern. :stuck_out_tongue:
2019-04-28T20:49:37.011200
Frankie
pythondev_help_Frankie_2019-04-28T20:49:37.011200
1,556,484,577.0112
21,227
pythondev
help
i want to sign up, but what is the mailing list consist of?
2019-04-28T20:50:25.011800
Priscilla
pythondev_help_Priscilla_2019-04-28T20:50:25.011800
1,556,484,625.0118
21,228
pythondev
help
nothing at the moment. lol
2019-04-28T20:51:26.012100
Frankie
pythondev_help_Frankie_2019-04-28T20:51:26.012100
1,556,484,686.0121
21,229
pythondev
help
I'm just gonna use it to send updates about the site and you can just unsubscribe if you wanted
2019-04-28T20:51:42.012500
Frankie
pythondev_help_Frankie_2019-04-28T20:51:42.012500
1,556,484,702.0125
21,230
pythondev
help
and maybe blog posts and stuff
2019-04-28T20:51:49.012700
Frankie
pythondev_help_Frankie_2019-04-28T20:51:49.012700
1,556,484,709.0127
21,231
pythondev
help
I'm planning to monetize the app soon so I'm setting up some email marketing stuff but currently I don't know what I'm gonna send out. I can tell you if it annoys you just unsubscribe lol
2019-04-28T20:52:46.013900
Frankie
pythondev_help_Frankie_2019-04-28T20:52:46.013900
1,556,484,766.0139
21,232
pythondev
help
well you aint getting mah money!! because my student loans already took it :disappointed:
2019-04-28T20:54:04.014500
Priscilla
pythondev_help_Priscilla_2019-04-28T20:54:04.014500
1,556,484,844.0145
21,233
pythondev
help
we got a red alert skipper!
2019-04-28T20:56:28.014600
Priscilla
pythondev_help_Priscilla_2019-04-28T20:56:28.014600
1,556,484,988.0146
21,234
pythondev
help
uhhh
2019-04-28T20:57:55.015000
Frankie
pythondev_help_Frankie_2019-04-28T20:57:55.015000
1,556,485,075.015
21,235
pythondev
help
that's weird
2019-04-28T20:57:57.015200
Frankie
pythondev_help_Frankie_2019-04-28T20:57:57.015200
1,556,485,077.0152
21,236
pythondev
help
also you definitely shouldn't be seeing that debug screen.
2019-04-28T20:58:18.015700
Frankie
pythondev_help_Frankie_2019-04-28T20:58:18.015700
1,556,485,098.0157
21,237
pythondev
help
got that from verifying my acount through the email sent to me, then logging in
2019-04-28T20:58:37.016100
Priscilla
pythondev_help_Priscilla_2019-04-28T20:58:37.016100
1,556,485,117.0161
21,238
pythondev
help
can you just close the browser and try again?
2019-04-28T20:59:06.016400
Frankie
pythondev_help_Frankie_2019-04-28T20:59:06.016400
1,556,485,146.0164
21,239
pythondev
help
you bet
2019-04-28T20:59:16.016900
Priscilla
pythondev_help_Priscilla_2019-04-28T20:59:16.016900
1,556,485,156.0169
21,240
pythondev
help
I haven't even touched that part of the site
2019-04-28T20:59:30.017300
Frankie
pythondev_help_Frankie_2019-04-28T20:59:30.017300
1,556,485,170.0173
21,241
pythondev
help
same thing
2019-04-28T21:00:05.017500
Priscilla
pythondev_help_Priscilla_2019-04-28T21:00:05.017500
1,556,485,205.0175
21,242
pythondev
help
ahhh are you using incognito?
2019-04-28T21:00:24.017900
Frankie
pythondev_help_Frankie_2019-04-28T21:00:24.017900
1,556,485,224.0179
21,243
pythondev
help
trying chromium
2019-04-28T21:00:27.018000
Priscilla
pythondev_help_Priscilla_2019-04-28T21:00:27.018000
1,556,485,227.018
21,244
pythondev
help
nope
2019-04-28T21:00:29.018200
Priscilla
pythondev_help_Priscilla_2019-04-28T21:00:29.018200
1,556,485,229.0182
21,245
pythondev
help
just firefox on win10 with 1 extention installed
2019-04-28T21:00:41.018600
Priscilla
pythondev_help_Priscilla_2019-04-28T21:00:41.018600
1,556,485,241.0186
21,246
pythondev
help
works on edge C:
2019-04-28T21:01:58.019300
Priscilla
pythondev_help_Priscilla_2019-04-28T21:01:58.019300
1,556,485,318.0193
21,247
pythondev
help
works fine for me on firefox...lol are you getting that error when using the email confirmation link or when actually logging in?
2019-04-28T21:02:18.019700
Frankie
pythondev_help_Frankie_2019-04-28T21:02:18.019700
1,556,485,338.0197
21,248
pythondev
help
seems like a bug in how firefox is handling CSRF verification
2019-04-28T21:02:33.020000
Frankie
pythondev_help_Frankie_2019-04-28T21:02:33.020000
1,556,485,353.02
21,249
pythondev
help
but it works for me so maybe that extension is causing a problem?
2019-04-28T21:02:41.020300
Frankie
pythondev_help_Frankie_2019-04-28T21:02:41.020300
1,556,485,361.0203
21,250
pythondev
help
just typing in the url and clikcing 'login;
2019-04-28T21:03:01.020900
Priscilla
pythondev_help_Priscilla_2019-04-28T21:03:01.020900
1,556,485,381.0209
21,251
pythondev
help
dashlane is the extention
2019-04-28T21:03:12.021200
Priscilla
pythondev_help_Priscilla_2019-04-28T21:03:12.021200
1,556,485,392.0212
21,252
pythondev
help
it could be messing w/ CSRF
2019-04-28T21:04:50.021700
Frankie
pythondev_help_Frankie_2019-04-28T21:04:50.021700
1,556,485,490.0217
21,253
pythondev
help
if it's intercepting the request and passing it along
2019-04-28T21:05:00.022000
Frankie
pythondev_help_Frankie_2019-04-28T21:05:00.022000
1,556,485,500.022
21,254
pythondev
help
fwiw I build/develop it on Chrome
2019-04-28T21:05:20.022400
Frankie
pythondev_help_Frankie_2019-04-28T21:05:20.022400
1,556,485,520.0224
21,255
pythondev
help
I gotta go at the moment but if you try disabling dashlane and it works then let me know. I'll see if I can work out a fix
2019-04-28T21:05:45.023000
Frankie
pythondev_help_Frankie_2019-04-28T21:05:45.023000
1,556,485,545.023
21,256
pythondev
help
first time I've seen that and the site has been live for like a year lol
2019-04-28T21:05:55.023300
Frankie
pythondev_help_Frankie_2019-04-28T21:05:55.023300
1,556,485,555.0233
21,257
pythondev
help
will this function stop at line 4 this way?
2019-04-28T21:05:56.023400
Priscilla
pythondev_help_Priscilla_2019-04-28T21:05:56.023400
1,556,485,556.0234
21,258
pythondev
help
ill try that <@Frankie>
2019-04-28T21:06:24.023900
Priscilla
pythondev_help_Priscilla_2019-04-28T21:06:24.023900
1,556,485,584.0239
21,259
pythondev
help
thank you!
2019-04-28T21:06:42.024100
Frankie
pythondev_help_Frankie_2019-04-28T21:06:42.024100
1,556,485,602.0241
21,260
pythondev
help
worked when disabling dashlane :slightly_smiling_face:
2019-04-28T21:07:31.024700
Priscilla
pythondev_help_Priscilla_2019-04-28T21:07:31.024700
1,556,485,651.0247
21,261
pythondev
help
interesting.
2019-04-28T21:07:36.024900
Frankie
pythondev_help_Frankie_2019-04-28T21:07:36.024900
1,556,485,656.0249
21,262
pythondev
help
that extension must be forging the request then so this is actually expected behavior for the CSRF verification
2019-04-28T21:08:01.025500
Frankie
pythondev_help_Frankie_2019-04-28T21:08:01.025500
1,556,485,681.0255
21,263
pythondev
help
i use it to automatically fill and login... idk if you kewn that.
2019-04-28T21:08:35.026000
Priscilla
pythondev_help_Priscilla_2019-04-28T21:08:35.026000
1,556,485,715.026
21,264
pythondev
help
nope I didn't
2019-04-28T21:08:53.026200
Frankie
pythondev_help_Frankie_2019-04-28T21:08:53.026200
1,556,485,733.0262
21,265
pythondev
help
but that's why
2019-04-28T21:08:57.026400
Frankie
pythondev_help_Frankie_2019-04-28T21:08:57.026400
1,556,485,737.0264
21,266
pythondev
help
CSRF prevents the site from allowing a login from any site that doesn't have a valid CSRF token (which only exists at runtime when you submit the form from the site)
2019-04-28T21:09:27.027100
Frankie
pythondev_help_Frankie_2019-04-28T21:09:27.027100
1,556,485,767.0271
21,267
pythondev
help
there may be an option in dashlane to pass the token along or something actually
2019-04-28T21:09:39.027500
Frankie
pythondev_help_Frankie_2019-04-28T21:09:39.027500
1,556,485,779.0275
21,268
pythondev
help
but it's designed as a security precaution so that random sites can't send requests to login and do stuff
2019-04-28T21:10:08.028000
Frankie
pythondev_help_Frankie_2019-04-28T21:10:08.028000
1,556,485,808.028
21,269
pythondev
help
when you run the login page, it generates a random token that gets passed in a hidden field in the form when you click submit
2019-04-28T21:10:32.028500
Frankie
pythondev_help_Frankie_2019-04-28T21:10:32.028500
1,556,485,832.0285
21,270
pythondev
help
if that token is invalid for example if another site intercepted and messed w/ the request, it will return that 403 forbidden message
2019-04-28T21:11:11.029300
Frankie
pythondev_help_Frankie_2019-04-28T21:11:11.029300
1,556,485,871.0293
21,271
pythondev
help
but that reminds me I need to Add a 403 template so it doesn't display the exact reason for the failure lol
2019-04-28T21:11:27.029700
Frankie
pythondev_help_Frankie_2019-04-28T21:11:27.029700
1,556,485,887.0297
21,272
pythondev
help
but at least DEBUG didn't spit out all the site settings and environment variables :smile:
2019-04-28T21:11:40.030000
Frankie
pythondev_help_Frankie_2019-04-28T21:11:40.030000
1,556,485,900.03
21,273
pythondev
help
anyway I gotta run, girlfriend is waiting for me to come over! ttyl and thanks for troubleshooting!
2019-04-28T21:11:58.030500
Frankie
pythondev_help_Frankie_2019-04-28T21:11:58.030500
1,556,485,918.0305
21,274
pythondev
help
btw that function will return Pass if your tp4 function call returns True ... that's all I can tell in about 10 seconds of looking at it. lol
2019-04-28T21:12:21.031200
Frankie
pythondev_help_Frankie_2019-04-28T21:12:21.031200
1,556,485,941.0312
21,275
pythondev
help
np, have agood one! :smile: and thanks for all your help too
2019-04-28T21:12:49.031700
Priscilla
pythondev_help_Priscilla_2019-04-28T21:12:49.031700
1,556,485,969.0317
21,276
pythondev
help
:+1:
2019-04-28T21:13:06.031900
Frankie
pythondev_help_Frankie_2019-04-28T21:13:06.031900
1,556,485,986.0319
21,277
pythondev
help
<@Priscilla> Regarding the code you posted above, it'll either return `'pass'` or it'll error out because the other `tpN` variables aren't defined.
2019-04-28T21:16:27.032900
Sasha
pythondev_help_Sasha_2019-04-28T21:16:27.032900
1,556,486,187.0329
21,278
pythondev
help
i know i am writting them now, the intent is I need every one of those statement to be true, if one is false, they all `'fail'`.
2019-04-28T21:18:21.034100
Priscilla
pythondev_help_Priscilla_2019-04-28T21:18:21.034100
1,556,486,301.0341
21,279
pythondev
help
In that case you probably want to do `if not tpN: return 'fail'` on each one, and only return `'pass'` at the end if you got through all of them.
2019-04-28T21:19:32.035100
Sasha
pythondev_help_Sasha_2019-04-28T21:19:32.035100
1,556,486,372.0351
21,280
pythondev
help
on it
2019-04-28T21:20:42.035300
Priscilla
pythondev_help_Priscilla_2019-04-28T21:20:42.035300
1,556,486,442.0353
21,281
pythondev
help
thats perfect
2019-04-28T21:23:44.035500
Priscilla
pythondev_help_Priscilla_2019-04-28T21:23:44.035500
1,556,486,624.0355
21,282
pythondev
help
what do you guys listen to when coding?
2019-04-28T21:23:58.035800
Priscilla
pythondev_help_Priscilla_2019-04-28T21:23:58.035800
1,556,486,638.0358
21,283
pythondev
help
hello I am a newbie in python packaging but I was able to do everything, it's a cli that should work on ubuntu (linux like). My application is a cli and rely on an external configuration file, but I have no idea how to deal with it? Should I put it in .config/mycli/conf.ini or /etc/mycli/conf.ini. more over if I want to delete it using `pip uninstall mycli` will it also delete the conf ? any pointer on how to do it is appreciated, I found this but I am not sure about the source : <http://peak.telecommunity.com/DevCenter/setuptools#non-package-data-files>
2019-04-29T03:32:55.042200
Lavinia
pythondev_help_Lavinia_2019-04-29T03:32:55.042200
1,556,508,775.0422
21,284
pythondev
help
Click comes with a function to find a suitable directory for a config
2019-04-29T03:44:08.043000
Jonas
pythondev_help_Jonas_2019-04-29T03:44:08.043000
1,556,509,448.043
21,285
pythondev
help
Check out ‘appdirs’ on PyPI as well
2019-04-29T03:44:24.043400
Jonas
pythondev_help_Jonas_2019-04-29T03:44:24.043400
1,556,509,464.0434
21,286
pythondev
help
the best way would be to package it as a debian package (.deb) but that's a bit more complicated
2019-04-29T03:48:42.044100
Jimmy
pythondev_help_Jimmy_2019-04-29T03:48:42.044100
1,556,509,722.0441
21,287
pythondev
help
<@Jonas> does appdirs works out of the box with Tox?
2019-04-29T04:01:51.044800
Lavinia
pythondev_help_Lavinia_2019-04-29T04:01:51.044800
1,556,510,511.0448
21,288
pythondev
help
<@Jimmy> we have people working on windows that use python so .deb will not work for them in the futur
2019-04-29T04:02:29.045600
Lavinia
pythondev_help_Lavinia_2019-04-29T04:02:29.045600
1,556,510,549.0456
21,289
pythondev
help
you mentioned ubuntu that's why. If you have to manage linux + windows I think using a tool that deal with path is the best way to go
2019-04-29T04:05:16.046900
Jimmy
pythondev_help_Jimmy_2019-04-29T04:05:16.046900
1,556,510,716.0469
21,290
pythondev
help
<@Jimmy> true, but I think appdirs look promising
2019-04-29T04:52:40.047600
Lavinia
pythondev_help_Lavinia_2019-04-29T04:52:40.047600
1,556,513,560.0476
21,291
pythondev
help
Hi all, does anyone know why I'm getting this error for json validation? ```1.2 is not a multiple of 0.1```. I simple did ```'size': {'type': 'number', 'multipleOf': 0.1}``` to make sure that there is only 1 decimal place.
2019-04-29T07:01:51.048700
Philip
pythondev_help_Philip_2019-04-29T07:01:51.048700
1,556,521,311.0487
21,292
pythondev
help
``` In [1]: 1.2 / 0.1 Out[1]: 11.999999999999998 ```
2019-04-29T07:31:25.049200
Jettie
pythondev_help_Jettie_2019-04-29T07:31:25.049200
1,556,523,085.0492
21,293
pythondev
help
indeed not a multiple :p
2019-04-29T07:31:30.049500
Jettie
pythondev_help_Jettie_2019-04-29T07:31:30.049500
1,556,523,090.0495
21,294
pythondev
help
welcome to IEEE754
2019-04-29T07:31:42.049700
Jettie
pythondev_help_Jettie_2019-04-29T07:31:42.049700
1,556,523,102.0497
21,295
pythondev
help
or, "Hell"
2019-04-29T07:31:46.049900
Jettie
pythondev_help_Jettie_2019-04-29T07:31:46.049900
1,556,523,106.0499
21,296
pythondev
help
None
2019-04-29T07:32:29.050100
Leana
pythondev_help_Leana_2019-04-29T07:32:29.050100
1,556,523,149.0501
21,297
pythondev
help
Oh boy
2019-04-29T07:35:00.050600
Philip
pythondev_help_Philip_2019-04-29T07:35:00.050600
1,556,523,300.0506
21,298
pythondev
help
So here goes, I tried using the `jsonschema==3.0.1` library ```from jsonschema import validate schema = { "type" : "object", "properties" : { "test" : {"type" : "number", "multipleOf": 0.01}, }, } data = {"test" : 1.2} foo = validate(instance=data, schema=schema) foo ```
2019-04-29T07:36:37.051500
Philip
pythondev_help_Philip_2019-04-29T07:36:37.051500
1,556,523,397.0515
21,299
pythondev
help
This one raised no errors
2019-04-29T07:36:50.051800
Philip
pythondev_help_Philip_2019-04-29T07:36:50.051800
1,556,523,410.0518
21,300
pythondev
help
But in the app that I'm making, the original author used `from flask_inputs.validators import JsonSchema`
2019-04-29T07:37:28.052300
Philip
pythondev_help_Philip_2019-04-29T07:37:28.052300
1,556,523,448.0523
21,301
pythondev
help
I assume that the `jsonschema` is not up to date?
2019-04-29T07:38:18.053200
Philip
pythondev_help_Philip_2019-04-29T07:38:18.053200
1,556,523,498.0532
21,302
pythondev
help
1.2 / 0.01 can be represented as a floating point number, but 1.2 / 0.1 can not
2019-04-29T07:38:30.053500
Jettie
pythondev_help_Jettie_2019-04-29T07:38:30.053500
1,556,523,510.0535
21,303
pythondev
help
oh my bad
2019-04-29T07:38:43.053800
Philip
pythondev_help_Philip_2019-04-29T07:38:43.053800
1,556,523,523.0538
21,304
pythondev
help
Yea I did get the same error :disappointed_relieved:
2019-04-29T07:39:06.054100
Philip
pythondev_help_Philip_2019-04-29T07:39:06.054100
1,556,523,546.0541
21,305
pythondev
help
there must be a simpler way ! :slightly_smiling_face:
2019-04-29T07:39:24.054900
Jimmy
pythondev_help_Jimmy_2019-04-29T07:39:24.054900
1,556,523,564.0549
21,306
pythondev
help
How does one usually handle this type of json validation? I do not want the user to go beyond 2 decimal places.
2019-04-29T07:39:29.055300
Philip
pythondev_help_Philip_2019-04-29T07:39:29.055300
1,556,523,569.0553
21,307
pythondev
help
i think there is a property to say how many decimal digit the number can have
2019-04-29T07:39:45.055600
Jimmy
pythondev_help_Jimmy_2019-04-29T07:39:45.055600
1,556,523,585.0556
21,308
pythondev
help
without relying on multipleOf
2019-04-29T07:39:53.056100
Jimmy
pythondev_help_Jimmy_2019-04-29T07:39:53.056100
1,556,523,593.0561
21,309
pythondev
help
Ok, I'll try reading the json docs :slightly_smiling_face:
2019-04-29T07:40:01.056300
Philip
pythondev_help_Philip_2019-04-29T07:40:01.056300
1,556,523,601.0563
21,310
pythondev
help
:taco: <@Jettie> <@Jimmy>
2019-04-29T07:40:14.056700
Philip
pythondev_help_Philip_2019-04-29T07:40:14.056700
1,556,523,614.0567
21,311
pythondev
help
Thank you guys :slightly_smiling_face:
2019-04-29T07:40:19.056900
Philip
pythondev_help_Philip_2019-04-29T07:40:19.056900
1,556,523,619.0569
21,312
pythondev
help
I'll gladly sign the petition to forbid usage of floats in JSON
2019-04-29T07:40:55.057600
Jettie
pythondev_help_Jettie_2019-04-29T07:40:55.057600
1,556,523,655.0576
21,313
pythondev
help
strings or nothing
2019-04-29T07:41:02.057900
Jettie
pythondev_help_Jettie_2019-04-29T07:41:02.057900
1,556,523,662.0579
21,314
pythondev
help
but then there's JS, where there are no integers at all
2019-04-29T07:41:24.058200
Jettie
pythondev_help_Jettie_2019-04-29T07:41:24.058200
1,556,523,684.0582
21,315
pythondev
help
so thanks for that :'(
2019-04-29T07:41:29.058400
Jettie
pythondev_help_Jettie_2019-04-29T07:41:29.058400
1,556,523,689.0584
21,316
pythondev
help
Why did my math teacher not tell me this in school. lol
2019-04-29T07:42:07.058900
Philip
pythondev_help_Philip_2019-04-29T07:42:07.058900
1,556,523,727.0589
21,317
pythondev
help
well, if we pretend the world is just and kind, people would actually want to dive into IT
2019-04-29T07:43:22.060000
Jettie
pythondev_help_Jettie_2019-04-29T07:43:22.060000
1,556,523,802.06
21,318
pythondev
help
but you'll just scare off 99% of all students otherwise :))
2019-04-29T07:43:43.060500
Jettie
pythondev_help_Jettie_2019-04-29T07:43:43.060500
1,556,523,823.0605
21,319
pythondev
help
Strings are best. Then you can apply a regex validator to your schema that enforces your 2-decimal places constraint. Then once it's in Python, you can use the Decimal module to avoid floating-point precision hell.
2019-04-29T09:36:14.062300
Carmen
pythondev_help_Carmen_2019-04-29T09:36:14.062300
1,556,530,574.0623
21,320