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
Do you have the setuptools package?
2017-11-14T17:43:04.000217
Sherice
pythondev_help_Sherice_2017-11-14T17:43:04.000217
1,510,681,384.000217
100,303
pythondev
help
any of you have experience with setting up the `python-slack-events-api` adapter w/ nginx, by chance? <https://github.com/slackapi/python-slack-events-api>
2017-11-14T17:50:20.000347
Dee
pythondev_help_Dee_2017-11-14T17:50:20.000347
1,510,681,820.000347
100,304
pythondev
help
the little flask server they have built into the adapter has its host hard coded to `127.0.0.1` and it's messing w/ my docker'ing (i.e. bad gateways)
2017-11-14T17:51:04.000003
Dee
pythondev_help_Dee_2017-11-14T17:51:04.000003
1,510,681,864.000003
100,305
pythondev
help
I tried seeing if using the Flask `host=` parameter in the run statement would work, but it didn't
2017-11-14T17:52:18.000589
Dee
pythondev_help_Dee_2017-11-14T17:52:18.000589
1,510,681,938.000589
100,306
pythondev
help
short of rebuilding the package with my preferred host info (which is obviously troublesome), my only other thought is to put the adapter app &amp; nginx in the same container even though that doesn't seem ideal
2017-11-14T17:54:12.000317
Dee
pythondev_help_Dee_2017-11-14T17:54:12.000317
1,510,682,052.000317
100,307
pythondev
help
Hello party people... :slightly_smiling_face: This is my first attempt to get help... so plz forgive me if I don't follow the correct procedure's.... Anyway ... here it goes... I am trying this tutorial on YouTube : <https://www.youtube.com/watch?v=D0MoGRZRtcA&amp;feature=youtu.be> I got as far as video #8 ... <htt...
2017-11-15T03:32:40.000169
Jule
pythondev_help_Jule_2017-11-15T03:32:40.000169
1,510,716,760.000169
100,308
pythondev
help
<@Jule> Hey. It looks to be related to <#C0LMFRMB5|django> you might want to share your message over there (use the arrow when you over your message) :slightly_smiling_face:
2017-11-15T03:34:53.000122
Ciera
pythondev_help_Ciera_2017-11-15T03:34:53.000122
1,510,716,893.000122
100,309
pythondev
help
<@Ciera> Yeah... since it was "Django" - related.. but also a "help" - question... I posted in both channels... :slightly_smiling_face: Is that OK ?
2017-11-15T03:36:04.000069
Jule
pythondev_help_Jule_2017-11-15T03:36:04.000069
1,510,716,964.000069
100,310
pythondev
help
We prefer people to post in the most relevant channel (<#C0LMFRMB5|django> in this case) and if you don't get any response after a while share your message in channels with a wider audience. And we try to push people to use the share feature so there is no two simultaneous discussion as it links to your initial message...
2017-11-15T03:38:51.000040
Ciera
pythondev_help_Ciera_2017-11-15T03:38:51.000040
1,510,717,131.00004
100,311
pythondev
help
But don't worry it's ok :wink:
2017-11-15T03:39:18.000153
Ciera
pythondev_help_Ciera_2017-11-15T03:39:18.000153
1,510,717,158.000153
100,312
pythondev
help
OK... will make sure to do that next time :slightly_smiling_face:
2017-11-15T03:41:44.000278
Jule
pythondev_help_Jule_2017-11-15T03:41:44.000278
1,510,717,304.000278
100,313
pythondev
help
which is the better way to save configuration on django? for example for connection with database or configuration of email, actually i use the settings.py
2017-11-15T05:14:56.000153
Georgetta
pythondev_help_Georgetta_2017-11-15T05:14:56.000153
1,510,722,896.000153
100,314
pythondev
help
<@Georgetta> yes in setting.py
2017-11-15T05:43:45.000106
Vada
pythondev_help_Vada_2017-11-15T05:43:45.000106
1,510,724,625.000106
100,315
pythondev
help
although you normally want to protect sensitive information especially for prod
2017-11-15T05:43:58.000408
Vada
pythondev_help_Vada_2017-11-15T05:43:58.000408
1,510,724,638.000408
100,316
pythondev
help
I'll explain more in <#C0LMFRMB5|django>
2017-11-15T05:44:10.000314
Vada
pythondev_help_Vada_2017-11-15T05:44:10.000314
1,510,724,650.000314
100,317
pythondev
help
Have anyone here worked with bcrypt and postgres? I'm having trouble storing my hashed &amp; salted password in my postgres database using SQLAlchemy
2017-11-15T07:24:10.000203
Carroll
pythondev_help_Carroll_2017-11-15T07:24:10.000203
1,510,730,650.000203
100,318
pythondev
help
Heroku logs aren't showing any useful info, works locally with sqlite3 though.
2017-11-15T07:24:33.000001
Carroll
pythondev_help_Carroll_2017-11-15T07:24:33.000001
1,510,730,673.000001
100,319
pythondev
help
it's best to replicate your production locally
2017-11-15T07:25:11.000202
Suellen
pythondev_help_Suellen_2017-11-15T07:25:11.000202
1,510,730,711.000202
100,320
pythondev
help
i.e. use postgres for dev too
2017-11-15T07:25:25.000158
Suellen
pythondev_help_Suellen_2017-11-15T07:25:25.000158
1,510,730,725.000158
100,321
pythondev
help
I think it's a problem with the data type
2017-11-15T07:25:49.000442
Carroll
pythondev_help_Carroll_2017-11-15T07:25:49.000442
1,510,730,749.000442
100,322
pythondev
help
Right now I'm using string
2017-11-15T07:25:56.000261
Carroll
pythondev_help_Carroll_2017-11-15T07:25:56.000261
1,510,730,756.000261
100,323
pythondev
help
sqlite is very different, some thing might work in dev and not in prod, and others work in prod and not in dev
2017-11-15T07:25:58.000029
Suellen
pythondev_help_Suellen_2017-11-15T07:25:58.000029
1,510,730,758.000029
100,324
pythondev
help
I see that some people say here that you should convert the password bytes to a string first
2017-11-15T07:26:28.000189
Carroll
pythondev_help_Carroll_2017-11-15T07:26:28.000189
1,510,730,788.000189
100,325
pythondev
help
Or using BYTEA
2017-11-15T07:26:33.000272
Carroll
pythondev_help_Carroll_2017-11-15T07:26:33.000272
1,510,730,793.000272
100,326
pythondev
help
"I had a similar problem and I solved it using BYTEA data type at the Postgresql. I think problem occurs while writing byte array into VARCHAR datatype in Postgre. This might be related to database encoding and the details of that conversion from byte to varchar."
2017-11-15T07:26:43.000208
Carroll
pythondev_help_Carroll_2017-11-15T07:26:43.000208
1,510,730,803.000208
100,327
pythondev
help
Could that be it?
2017-11-15T07:26:48.000061
Carroll
pythondev_help_Carroll_2017-11-15T07:26:48.000061
1,510,730,808.000061
100,328
pythondev
help
I use db.String(64) or something
2017-11-15T07:26:52.000154
Suellen
pythondev_help_Suellen_2017-11-15T07:26:52.000154
1,510,730,812.000154
100,329
pythondev
help
algorithm is bcrypt too
2017-11-15T07:26:59.000386
Suellen
pythondev_help_Suellen_2017-11-15T07:26:59.000386
1,510,730,819.000386
100,330
pythondev
help
Storing as bytea would almost certainly be more efficient.
2017-11-15T07:27:01.000137
Joann
pythondev_help_Joann_2017-11-15T07:27:01.000137
1,510,730,821.000137
100,331
pythondev
help
<@Joann> even if `bcrypt(something)` is a string?
2017-11-15T07:27:24.000138
Suellen
pythondev_help_Suellen_2017-11-15T07:27:24.000138
1,510,730,844.000138
100,332
pythondev
help
Unfortunately, not all client libraries make that very easy.
2017-11-15T07:27:26.000030
Joann
pythondev_help_Joann_2017-11-15T07:27:26.000030
1,510,730,846.00003
100,333
pythondev
help
That's my usermodel
2017-11-15T07:27:35.000206
Carroll
pythondev_help_Carroll_2017-11-15T07:27:35.000206
1,510,730,855.000206
100,334
pythondev
help
Then I have a db.py file
2017-11-15T07:27:48.000047
Carroll
pythondev_help_Carroll_2017-11-15T07:27:48.000047
1,510,730,868.000047
100,335
pythondev
help
leovp: well, you'd ideally want to have it be a binary string since that's going to be smaller than a binary-string-encoded-as-text
2017-11-15T07:28:03.000376
Joann
pythondev_help_Joann_2017-11-15T07:28:03.000376
1,510,730,883.000376
100,336
pythondev
help
and for making heroku work:
2017-11-15T07:28:13.000066
Carroll
pythondev_help_Carroll_2017-11-15T07:28:13.000066
1,510,730,893.000066
100,337
pythondev
help
<@Joann> that's true, but unfortunately even low-level `bcrypt` returns a readable ascii string (or a bytes object, but still 2x the size)
2017-11-15T07:29:23.000223
Suellen
pythondev_help_Suellen_2017-11-15T07:29:23.000223
1,510,730,963.000223
100,338
pythondev
help
and other higher level libraries just use what they have been given
2017-11-15T07:29:41.000009
Suellen
pythondev_help_Suellen_2017-11-15T07:29:41.000009
1,510,730,981.000009
100,339
pythondev
help
<@Carroll> looks ok, you really have to debug the issue itself
2017-11-15T07:30:10.000239
Suellen
pythondev_help_Suellen_2017-11-15T07:30:10.000239
1,510,731,010.000239
100,340
pythondev
help
Yea
2017-11-15T07:30:27.000129
Carroll
pythondev_help_Carroll_2017-11-15T07:30:27.000129
1,510,731,027.000129
100,341
pythondev
help
i.e. what is the issue exactly?
2017-11-15T07:30:30.000085
Suellen
pythondev_help_Suellen_2017-11-15T07:30:30.000085
1,510,731,030.000085
100,342
pythondev
help
I'm not sure, when I try to run this snippet
2017-11-15T07:30:39.000411
Carroll
pythondev_help_Carroll_2017-11-15T07:30:39.000411
1,510,731,039.000411
100,343
pythondev
help
I have an endpoint /register
2017-11-15T07:30:45.000062
Carroll
pythondev_help_Carroll_2017-11-15T07:30:45.000062
1,510,731,045.000062
100,344
pythondev
help
your app complains about the password, or sqlalchemy? or underlying driver?
2017-11-15T07:30:47.000311
Suellen
pythondev_help_Suellen_2017-11-15T07:30:47.000311
1,510,731,047.000311
100,345
pythondev
help
leovp: which is terribly silly, really. Still, you could at least save on-disk size by having the data type be a bytea and then sending the base64 or hex-encoded string to PG wrapped in a conversion function to turn it into a proper bytea.
2017-11-15T07:31:09.000011
Joann
pythondev_help_Joann_2017-11-15T07:31:09.000011
1,510,731,069.000011
100,346
pythondev
help
It hits the exception block
2017-11-15T07:31:14.000257
Carroll
pythondev_help_Carroll_2017-11-15T07:31:14.000257
1,510,731,074.000257
100,347
pythondev
help
What message can I get out of e?
2017-11-15T07:31:21.000246
Carroll
pythondev_help_Carroll_2017-11-15T07:31:21.000246
1,510,731,081.000246
100,348
pythondev
help
e.message wouldn't work
2017-11-15T07:31:25.000217
Carroll
pythondev_help_Carroll_2017-11-15T07:31:25.000217
1,510,731,085.000217
100,349
pythondev
help
str(e), repr(e), anything really
2017-11-15T07:31:53.000247
Suellen
pythondev_help_Suellen_2017-11-15T07:31:53.000247
1,510,731,113.000247
100,350
pythondev
help
Alright
2017-11-15T07:32:03.000179
Carroll
pythondev_help_Carroll_2017-11-15T07:32:03.000179
1,510,731,123.000179
100,351
pythondev
help
Will deploy it and see what problem it is
2017-11-15T07:32:13.000283
Carroll
pythondev_help_Carroll_2017-11-15T07:32:13.000283
1,510,731,133.000283
100,352
pythondev
help
Wouldn't help with network traffic since you'd be sending the hex-encoded string over the wire instead of the binary data, but saving space on disk and in memory is certainly valuable from a database perspective.
2017-11-15T07:32:16.000185
Joann
pythondev_help_Joann_2017-11-15T07:32:16.000185
1,510,731,136.000185
100,353
pythondev
help
otherwise it's really not clear
2017-11-15T07:32:17.000247
Suellen
pythondev_help_Suellen_2017-11-15T07:32:17.000247
1,510,731,137.000247
100,354
pythondev
help
(the function you'd use for storing the data into a PG bytea would actually be 'decode', 'encode' would be used to pull the data back out)
2017-11-15T07:33:04.000274
Joann
pythondev_help_Joann_2017-11-15T07:33:04.000274
1,510,731,184.000274
100,355
pythondev
help
<@Joann> I guess no one in Flask/Django/etc world sees it as an issue, because a password column is rarely even 10% of a table size. Maybe top players like Instagram do care, but I don't know
2017-11-15T07:33:24.000073
Suellen
pythondev_help_Suellen_2017-11-15T07:33:24.000073
1,510,731,204.000073
100,356
pythondev
help
eh, it just grates against me when people store binary data as text because it's such a waste of space.
2017-11-15T07:33:56.000041
Joann
pythondev_help_Joann_2017-11-15T07:33:56.000041
1,510,731,236.000041
100,357
pythondev
help
Uhm okey
2017-11-15T07:33:59.000220
Carroll
pythondev_help_Carroll_2017-11-15T07:33:59.000220
1,510,731,239.00022
100,358
pythondev
help
dafuq
2017-11-15T07:34:00.000326
Carroll
pythondev_help_Carroll_2017-11-15T07:34:00.000326
1,510,731,240.000326
100,359
pythondev
help
The gitlab folks have made an effort to start storing their git hashes as bytea's because it really does make a difference in space.
2017-11-15T07:34:21.000150
Joann
pythondev_help_Joann_2017-11-15T07:34:21.000150
1,510,731,261.00015
100,360
pythondev
help
I understand you entirely :))
2017-11-15T07:34:30.000011
Suellen
pythondev_help_Suellen_2017-11-15T07:34:30.000011
1,510,731,270.000011
100,361
pythondev
help
oh my god
2017-11-15T07:34:30.000150
Carroll
pythondev_help_Carroll_2017-11-15T07:34:30.000150
1,510,731,270.00015
100,362
pythondev
help
I think I get it
2017-11-15T07:34:33.000117
Carroll
pythondev_help_Carroll_2017-11-15T07:34:33.000117
1,510,731,273.000117
100,363
pythondev
help
-.-
2017-11-15T07:34:36.000052
Carroll
pythondev_help_Carroll_2017-11-15T07:34:36.000052
1,510,731,276.000052
100,364
pythondev
help
I'm a freaking idiot
2017-11-15T07:34:42.000379
Carroll
pythondev_help_Carroll_2017-11-15T07:34:42.000379
1,510,731,282.000379
100,365
pythondev
help
:tada:
2017-11-15T07:34:42.000396
Suellen
pythondev_help_Suellen_2017-11-15T07:34:42.000396
1,510,731,282.000396
100,366
pythondev
help
I changed the length of the db model
2017-11-15T07:35:02.000312
Carroll
pythondev_help_Carroll_2017-11-15T07:35:02.000312
1,510,731,302.000312
100,367
pythondev
help
But never actually reset the heroku postgres database
2017-11-15T07:35:09.000161
Carroll
pythondev_help_Carroll_2017-11-15T07:35:09.000161
1,510,731,309.000161
100,368
pythondev
help
......
2017-11-15T07:35:14.000241
Carroll
pythondev_help_Carroll_2017-11-15T07:35:14.000241
1,510,731,314.000241
100,369
pythondev
help
Any of you got a rope so I can hang myself?
2017-11-15T07:35:24.000344
Carroll
pythondev_help_Carroll_2017-11-15T07:35:24.000344
1,510,731,324.000344
100,370
pythondev
help
leovp: With enough rows, every byte matters. :)
2017-11-15T07:35:40.000159
Joann
pythondev_help_Joann_2017-11-15T07:35:40.000159
1,510,731,340.000159
100,371
pythondev
help
I guess you would want to know that I store IPs in INET :slightly_smiling_face:
2017-11-15T07:37:26.000394
Suellen
pythondev_help_Suellen_2017-11-15T07:37:26.000394
1,510,731,446.000394
100,372
pythondev
help
not as a string, which is _very_ common
2017-11-15T07:37:39.000135
Suellen
pythondev_help_Suellen_2017-11-15T07:37:39.000135
1,510,731,459.000135
100,373
pythondev
help
well, I'd probably recommend ip4r there
2017-11-15T07:38:11.000318
Joann
pythondev_help_Joann_2017-11-15T07:38:11.000318
1,510,731,491.000318
100,374
pythondev
help
Though it depends on your requirements.
2017-11-15T07:38:19.000192
Joann
pythondev_help_Joann_2017-11-15T07:38:19.000192
1,510,731,499.000192
100,375
pythondev
help
:open_mouth:
2017-11-15T07:38:38.000146
Suellen
pythondev_help_Suellen_2017-11-15T07:38:38.000146
1,510,731,518.000146
100,376
pythondev
help
Would you look at that! It works :smile:
2017-11-15T07:38:44.000429
Carroll
pythondev_help_Carroll_2017-11-15T07:38:44.000429
1,510,731,524.000429
100,377
pythondev
help
Let me just google it
2017-11-15T07:38:46.000241
Suellen
pythondev_help_Suellen_2017-11-15T07:38:46.000241
1,510,731,526.000241
100,378
pythondev
help
Right, now it's a problem with the auth :joy:
2017-11-15T07:39:25.000190
Carroll
pythondev_help_Carroll_2017-11-15T07:39:25.000190
1,510,731,565.00019
100,379
pythondev
help
<@Joann> is it in 10.0 or 9.x?
2017-11-15T07:39:30.000241
Suellen
pythondev_help_Suellen_2017-11-15T07:39:30.000241
1,510,731,570.000241
100,380
pythondev
help
leovp: <https://github.com/RhodiumToad/ip4r>
2017-11-15T07:39:56.000293
Joann
pythondev_help_Joann_2017-11-15T07:39:56.000293
1,510,731,596.000293
100,381
pythondev
help
It's an extension that works with lots of versions of PG
2017-11-15T07:40:06.000231
Joann
pythondev_help_Joann_2017-11-15T07:40:06.000231
1,510,731,606.000231
100,382
pythondev
help
I see. It's a bit harder to pitch
2017-11-15T07:40:22.000058
Suellen
pythondev_help_Suellen_2017-11-15T07:40:22.000058
1,510,731,622.000058
100,383
pythondev
help
Unlike inet, it segregates ip4 vs. ip6, but it's much more efficient at storage and allows more indexing options
2017-11-15T07:40:38.000307
Joann
pythondev_help_Joann_2017-11-15T07:40:38.000307
1,510,731,638.000307
100,384
pythondev
help
I don't think INET is that bad currently, as we don't really perform operations on IPs frequently (or at all)
2017-11-15T07:40:58.000062
Suellen
pythondev_help_Suellen_2017-11-15T07:40:58.000062
1,510,731,658.000062
100,385
pythondev
help
(an ip4 address is actually stored as a 32bit unsigned integer..)
2017-11-15T07:40:59.000132
Joann
pythondev_help_Joann_2017-11-15T07:40:59.000132
1,510,731,659.000132
100,386
pythondev
help
And we do have a bunch ipv6 addresses stored, which would require `ipaddress` which is probably not much better than `INET`
2017-11-15T07:41:47.000312
Suellen
pythondev_help_Suellen_2017-11-15T07:41:47.000312
1,510,731,707.000312
100,387
pythondev
help
still, good to know :slightly_smiling_face:
2017-11-15T07:42:16.000322
Suellen
pythondev_help_Suellen_2017-11-15T07:42:16.000322
1,510,731,736.000322
100,388
pythondev
help
well, or you could store ipv6 addresses as ip6 :)
2017-11-15T07:43:23.000447
Joann
pythondev_help_Joann_2017-11-15T07:43:23.000447
1,510,731,803.000447
100,389
pythondev
help
but, yeah, definitely something good to know about
2017-11-15T07:43:30.000221
Joann
pythondev_help_Joann_2017-11-15T07:43:30.000221
1,510,731,810.000221
100,390
pythondev
help
and it's quite stable and well maintained.
2017-11-15T07:43:36.000309
Joann
pythondev_help_Joann_2017-11-15T07:43:36.000309
1,510,731,816.000309
100,391
pythondev
help
i.e. split each mixed IP columns into two?
2017-11-15T07:45:05.000194
Suellen
pythondev_help_Suellen_2017-11-15T07:45:05.000194
1,510,731,905.000194
100,392
pythondev
help
that doesn't seem nice :confused:
2017-11-15T07:45:09.000337
Suellen
pythondev_help_Suellen_2017-11-15T07:45:09.000337
1,510,731,909.000337
100,393
pythondev
help
or store ipv4 as a ipv6 as well? will postgres understand that `0:0:0:0:0:ffff:c0a8:10a` requires 4 bytes instead of 8?
2017-11-15T07:46:56.000124
Suellen
pythondev_help_Suellen_2017-11-15T07:46:56.000124
1,510,732,016.000124
100,394
pythondev
help
Okey
2017-11-15T07:50:45.000055
Carroll
pythondev_help_Carroll_2017-11-15T07:50:45.000055
1,510,732,245.000055
100,395
pythondev
help
<@Suellen> I'm really new to this crypto approach
2017-11-15T07:51:01.000324
Carroll
pythondev_help_Carroll_2017-11-15T07:51:01.000324
1,510,732,261.000324
100,396
pythondev
help
This worked fine
2017-11-15T07:51:12.000294
Carroll
pythondev_help_Carroll_2017-11-15T07:51:12.000294
1,510,732,272.000294
100,397
pythondev
help
Register now works
2017-11-15T07:51:39.000085
Carroll
pythondev_help_Carroll_2017-11-15T07:51:39.000085
1,510,732,299.000085
100,398
pythondev
help
But, if we look in auth
2017-11-15T07:51:43.000317
Carroll
pythondev_help_Carroll_2017-11-15T07:51:43.000317
1,510,732,303.000317
100,399
pythondev
help
Without encoding both, I got an error saying they must be encoded
2017-11-15T07:52:24.000019
Carroll
pythondev_help_Carroll_2017-11-15T07:52:24.000019
1,510,732,344.000019
100,400
pythondev
help
So I encoded both with utf8, and I got this error message
2017-11-15T07:52:36.000182
Carroll
pythondev_help_Carroll_2017-11-15T07:52:36.000182
1,510,732,356.000182
100,401
pythondev
help
Am I doing something obviously wrong here? :slightly_smiling_face:
2017-11-15T07:52:58.000443
Carroll
pythondev_help_Carroll_2017-11-15T07:52:58.000443
1,510,732,378.000443
100,402