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
that's what that regex would do. the `$` means the end
2018-02-13T14:00:05.000400
Kimberli
pythondev_help_Kimberli_2018-02-13T14:00:05.000400
1,518,530,405.0004
34,124
pythondev
help
that looks promising <@Clarita>!
2018-02-13T14:00:39.000737
Kimberli
pythondev_help_Kimberli_2018-02-13T14:00:39.000737
1,518,530,439.000737
34,125
pythondev
help
it would also depend on your file editor
2018-02-13T14:01:08.000451
Kimberli
pythondev_help_Kimberli_2018-02-13T14:01:08.000451
1,518,530,468.000451
34,126
pythondev
help
that does look neat
2018-02-13T14:01:13.000661
Heriberto
pythondev_help_Heriberto_2018-02-13T14:01:13.000661
1,518,530,473.000661
34,127
pythondev
help
file editor?
2018-02-13T14:01:36.000345
Heriberto
pythondev_help_Heriberto_2018-02-13T14:01:36.000345
1,518,530,496.000345
34,128
pythondev
help
if you really want to, your .bashrc file I believe should have something like this already
2018-02-13T14:01:49.000754
Kimberli
pythondev_help_Kimberli_2018-02-13T14:01:49.000754
1,518,530,509.000754
34,129
pythondev
help
im not doing this in an editor
2018-02-13T14:01:59.000339
Heriberto
pythondev_help_Heriberto_2018-02-13T14:01:59.000339
1,518,530,519.000339
34,130
pythondev
help
nano, vim, etc
2018-02-13T14:02:07.000236
Kimberli
pythondev_help_Kimberli_2018-02-13T14:02:07.000236
1,518,530,527.000236
34,131
pythondev
help
well, ideally im trying to get this into something I can use as a script or alias.
2018-02-13T14:02:26.000399
Heriberto
pythondev_help_Heriberto_2018-02-13T14:02:26.000399
1,518,530,546.000399
34,132
pythondev
help
im trying to colorise a stream of text from the cli using pipes
2018-02-13T14:02:58.000437
Heriberto
pythondev_help_Heriberto_2018-02-13T14:02:58.000437
1,518,530,578.000437
34,133
pythondev
help
devils advocate: just use a log aggregator and not worry about it :smile:
2018-02-13T14:03:40.000744
Brande
pythondev_help_Brande_2018-02-13T14:03:40.000744
1,518,530,620.000744
34,134
pythondev
help
heh.
2018-02-13T14:04:28.000325
Heriberto
pythondev_help_Heriberto_2018-02-13T14:04:28.000325
1,518,530,668.000325
34,135
pythondev
help
funny you say that.
2018-02-13T14:04:34.000150
Heriberto
pythondev_help_Heriberto_2018-02-13T14:04:34.000150
1,518,530,674.00015
34,136
pythondev
help
haha
2018-02-13T14:04:38.000176
Kimberli
pythondev_help_Kimberli_2018-02-13T14:04:38.000176
1,518,530,678.000176
34,137
pythondev
help
im pulling/streaming logs from aws cloudwatch. which is broken at the moment
2018-02-13T14:04:49.000317
Heriberto
pythondev_help_Heriberto_2018-02-13T14:04:49.000317
1,518,530,689.000317
34,138
pythondev
help
for us. not globally
2018-02-13T14:04:54.000587
Heriberto
pythondev_help_Heriberto_2018-02-13T14:04:54.000587
1,518,530,694.000587
34,139
pythondev
help
or output the log and do a `find` on it :slightly_smiling_face:
2018-02-13T14:05:01.000287
Kimberli
pythondev_help_Kimberli_2018-02-13T14:05:01.000287
1,518,530,701.000287
34,140
pythondev
help
and its an old app. and ops is slammed with work so they dont have time to fix the log output which will be rebuilt soon.
2018-02-13T14:05:36.000474
Heriberto
pythondev_help_Heriberto_2018-02-13T14:05:36.000474
1,518,530,736.000474
34,141
pythondev
help
im using the `awslogs` command and streaming the output from cloudwatch
2018-02-13T14:05:59.000562
Heriberto
pythondev_help_Heriberto_2018-02-13T14:05:59.000562
1,518,530,759.000562
34,142
pythondev
help
just pipe em into kibana or sumologic then ¯\_(ツ)_/¯
2018-02-13T14:06:08.000376
Brande
pythondev_help_Brande_2018-02-13T14:06:08.000376
1,518,530,768.000376
34,143
pythondev
help
get the trail version!
2018-02-13T14:06:31.000696
Kimberli
pythondev_help_Kimberli_2018-02-13T14:06:31.000696
1,518,530,791.000696
34,144
pythondev
help
well, doing it on the cli is fine. since theres already tokens in the log output to find things I need. i just want to colorize it. i dont need to forward it to a logging setup. and technically, i cant. i would have to get approval due to whats in the logs.
2018-02-13T14:08:15.000198
Heriberto
pythondev_help_Heriberto_2018-02-13T14:08:15.000198
1,518,530,895.000198
34,145
pythondev
help
<@Brande> can you enter data to the db with kibana? I'm using neo4j and it's got a nice back-end and display browser but the project I'm working on requires some manual (egads!) data entry. I'm looking for a graphical solution to create relationships, do you think kibana might be the trick?
2018-02-13T14:08:29.000245
Monroe
pythondev_help_Monroe_2018-02-13T14:08:29.000245
1,518,530,909.000245
34,146
pythondev
help
check this out: ```Package: supercat Description-en: program that colorizes text for terminals and HTML Supercat is a program that colorizes text based on matching regular expressions/strings/characters. Supercat supports html output as well as standard ASCII text. Unlike some text-colorizing programs that exist, S...
2018-02-13T14:08:51.000575
Kimberli
pythondev_help_Kimberli_2018-02-13T14:08:51.000575
1,518,530,931.000575
34,147
pythondev
help
let me know what you think
2018-02-13T14:08:57.000715
Kimberli
pythondev_help_Kimberli_2018-02-13T14:08:57.000715
1,518,530,937.000715
34,148
pythondev
help
wait so piping prod logs to your machine is okay, but using a log aggregator is something you’d have to ask about?
2018-02-13T14:09:38.000494
Brande
pythondev_help_Brande_2018-02-13T14:09:38.000494
1,518,530,978.000494
34,149
pythondev
help
Hmm not sure, haven’t used neo4j and I tend to just use log aggregators as places to throw all of my logs in for easier searching
2018-02-13T14:10:05.000335
Brande
pythondev_help_Brande_2018-02-13T14:10:05.000335
1,518,531,005.000335
34,150
pythondev
help
think he's doing it directly on host nodes...correct <@Heriberto>?
2018-02-13T14:10:21.000725
Kimberli
pythondev_help_Kimberli_2018-02-13T14:10:21.000725
1,518,531,021.000725
34,151
pythondev
help
hmm... stumbled on this <https://www.vanheusden.com/multitail/>
2018-02-13T14:10:44.000288
Monroe
pythondev_help_Monroe_2018-02-13T14:10:44.000288
1,518,531,044.000288
34,152
pythondev
help
no im on my local machine
2018-02-13T14:11:16.000149
Heriberto
pythondev_help_Heriberto_2018-02-13T14:11:16.000149
1,518,531,076.000149
34,153
pythondev
help
this is about data entry, not visualization so I'm running against the grain on this idea :disappointed:
2018-02-13T14:11:18.000136
Monroe
pythondev_help_Monroe_2018-02-13T14:11:18.000136
1,518,531,078.000136
34,154
pythondev
help
@joe possibly not. i just dont want to bug ops just because i want to colorize output on my terminal. lol.
2018-02-13T14:12:05.000539
Heriberto
pythondev_help_Heriberto_2018-02-13T14:12:05.000539
1,518,531,125.000539
34,155
pythondev
help
jq? I dunno if you can colorize the specific output, but you can select by a matching subkey I think
2018-02-13T14:12:35.000333
Zack
pythondev_help_Zack_2018-02-13T14:12:35.000333
1,518,531,155.000333
34,156
pythondev
help
supercat looks nice. i just tried ccze and its slow. idk why.
2018-02-13T14:12:42.000234
Heriberto
pythondev_help_Heriberto_2018-02-13T14:12:42.000234
1,518,531,162.000234
34,157
pythondev
help
jq is a nice tool to get to know in general, so could be a good excuse
2018-02-13T14:13:16.000216
Zack
pythondev_help_Zack_2018-02-13T14:13:16.000216
1,518,531,196.000216
34,158
pythondev
help
can't you customize the log handler / formatter to insert color code ?
2018-02-13T14:14:06.000791
Micki
pythondev_help_Micki_2018-02-13T14:14:06.000791
1,518,531,246.000791
34,159
pythondev
help
nice to know supercat is faster than ccze :slightly_smiling_face:
2018-02-13T14:14:39.000324
Clarita
pythondev_help_Clarita_2018-02-13T14:14:39.000324
1,518,531,279.000324
34,160
pythondev
help
&gt; no im on my local machine :scream:
2018-02-13T14:15:37.000398
Brande
pythondev_help_Brande_2018-02-13T14:15:37.000398
1,518,531,337.000398
34,161
pythondev
help
prod?
2018-02-13T14:17:50.000291
Brande
pythondev_help_Brande_2018-02-13T14:17:50.000291
1,518,531,470.000291
34,162
pythondev
help
yea. i use jq when i actually need to spit out json in my terminal. which isnt often.
2018-02-13T14:18:33.000753
Heriberto
pythondev_help_Heriberto_2018-02-13T14:18:33.000753
1,518,531,513.000753
34,163
pythondev
help
I think you could use it to filter for the entries matching your criteria, no?
2018-02-13T14:18:58.000262
Zack
pythondev_help_Zack_2018-02-13T14:18:58.000262
1,518,531,538.000262
34,164
pythondev
help
the logs dont have "sensitive" data. i just dont want to go through hoops to ask about pushing that to another loging service.
2018-02-13T14:19:27.000226
Heriberto
pythondev_help_Heriberto_2018-02-13T14:19:27.000226
1,518,531,567.000226
34,165
pythondev
help
i will look at jq for that. going to try supercat.
2018-02-13T14:19:47.000005
Heriberto
pythondev_help_Heriberto_2018-02-13T14:19:47.000005
1,518,531,587.000005
34,166
pythondev
help
i’d hope they didnt have sensitive data
2018-02-13T14:21:10.000697
Brande
pythondev_help_Brande_2018-02-13T14:21:10.000697
1,518,531,670.000697
34,167
pythondev
help
or not. lol. supercat wont install properly on my machine.
2018-02-13T14:21:30.000526
Heriberto
pythondev_help_Heriberto_2018-02-13T14:21:30.000526
1,518,531,690.000526
34,168
pythondev
help
oh might be node version
2018-02-13T14:21:44.000049
Heriberto
pythondev_help_Heriberto_2018-02-13T14:21:44.000049
1,518,531,704.000049
34,169
pythondev
help
if they did that’s probably a problem best solved before it gets in the logging pipeline rather than telling devs they can’t see prod logs
2018-02-13T14:22:02.000652
Zack
pythondev_help_Zack_2018-02-13T14:22:02.000652
1,518,531,722.000652
34,170
pythondev
help
oh yeah, but there’s a big difference between seeing/downloading logs
2018-02-13T14:22:51.000034
Brande
pythondev_help_Brande_2018-02-13T14:22:51.000034
1,518,531,771.000034
34,171
pythondev
help
you're logging into the nodes correct <@Heriberto>?
2018-02-13T14:23:26.000156
Kimberli
pythondev_help_Kimberli_2018-02-13T14:23:26.000156
1,518,531,806.000156
34,172
pythondev
help
the snapchat method. :stuck_out_tongue:
2018-02-13T14:23:31.000073
Zack
pythondev_help_Zack_2018-02-13T14:23:31.000073
1,518,531,811.000073
34,173
pythondev
help
from your local machine?
2018-02-13T14:23:35.000137
Kimberli
pythondev_help_Kimberli_2018-02-13T14:23:35.000137
1,518,531,815.000137
34,174
pythondev
help
we can see the prod logs in cloudwatch. but the formatting is messed up.
2018-02-13T14:23:40.000321
Heriberto
pythondev_help_Heriberto_2018-02-13T14:23:40.000321
1,518,531,820.000321
34,175
pythondev
help
yeah, reading remotely is fine
2018-02-13T14:24:05.000232
Kimberli
pythondev_help_Kimberli_2018-02-13T14:24:05.000232
1,518,531,845.000232
34,176
pythondev
help
but don't download the logs locally
2018-02-13T14:24:13.000120
Kimberli
pythondev_help_Kimberli_2018-02-13T14:24:13.000120
1,518,531,853.00012
34,177
pythondev
help
<@Brande> is right
2018-02-13T14:24:22.000085
Kimberli
pythondev_help_Kimberli_2018-02-13T14:24:22.000085
1,518,531,862.000085
34,178
pythondev
help
im using the `awslogs` command to stream the cloudwatch logs locally
2018-02-13T14:24:22.000328
Heriberto
pythondev_help_Heriberto_2018-02-13T14:24:22.000328
1,518,531,862.000328
34,179
pythondev
help
im just grepping over that stream output
2018-02-13T14:25:05.000536
Heriberto
pythondev_help_Heriberto_2018-02-13T14:25:05.000536
1,518,531,905.000536
34,180
pythondev
help
everything is behind a VPN we can only access here at work
2018-02-13T14:25:28.000528
Heriberto
pythondev_help_Heriberto_2018-02-13T14:25:28.000528
1,518,531,928.000528
34,181
pythondev
help
OK, the problem the guys are referring to is when it's on your local machine, it's potentially outside of your VPN and no longer secure. I recommend building a temp instance behind your VpN and putting the logs there
2018-02-13T14:27:03.000705
Kimberli
pythondev_help_Kimberli_2018-02-13T14:27:03.000705
1,518,532,023.000705
34,182
pythondev
help
a nice T type should handle it :slightly_smiling_face:
2018-02-13T14:27:24.000015
Kimberli
pythondev_help_Kimberli_2018-02-13T14:27:24.000015
1,518,532,044.000015
34,183
pythondev
help
our ops guys do this as well. and is only allowed for some of our services. one of which is this one.
2018-02-13T14:28:07.000572
Heriberto
pythondev_help_Heriberto_2018-02-13T14:28:07.000572
1,518,532,087.000572
34,184
pythondev
help
understood...I'm sure they know better than any of us will!
2018-02-13T14:29:09.000658
Kimberli
pythondev_help_Kimberli_2018-02-13T14:29:09.000658
1,518,532,149.000658
34,185
pythondev
help
for the service im looking at streaming the logs locally isnt an issue. theyre the ones that had me use this method. mostly because the logs on cloudwatch or messed up and need to be fixed.
2018-02-13T14:29:14.000516
Heriberto
pythondev_help_Heriberto_2018-02-13T14:29:14.000516
1,518,532,154.000516
34,186
pythondev
help
how's the supercat tool?
2018-02-13T14:29:22.000504
Kimberli
pythondev_help_Kimberli_2018-02-13T14:29:22.000504
1,518,532,162.000504
34,187
pythondev
help
yea. we have a "devbox" for viewing other production data.
2018-02-13T14:29:32.000667
Heriberto
pythondev_help_Heriberto_2018-02-13T14:29:32.000667
1,518,532,172.000667
34,188
pythondev
help
supercat wont install properly on my system
2018-02-13T14:29:46.000107
Heriberto
pythondev_help_Heriberto_2018-02-13T14:29:46.000107
1,518,532,186.000107
34,189
pythondev
help
:disappointed:
2018-02-13T14:29:59.000247
Kimberli
pythondev_help_Kimberli_2018-02-13T14:29:59.000247
1,518,532,199.000247
34,190
pythondev
help
illegal hardware instruction.
2018-02-13T14:30:06.000771
Heriberto
pythondev_help_Heriberto_2018-02-13T14:30:06.000771
1,518,532,206.000771
34,191
pythondev
help
oh well. ill just use what I have now.
2018-02-13T14:30:15.000451
Heriberto
pythondev_help_Heriberto_2018-02-13T14:30:15.000451
1,518,532,215.000451
34,192
pythondev
help
:open_mouth:
2018-02-13T14:30:16.000670
Kimberli
pythondev_help_Kimberli_2018-02-13T14:30:16.000670
1,518,532,216.00067
34,193
pythondev
help
what the hell does that mean?
2018-02-13T14:30:26.000448
Kimberli
pythondev_help_Kimberli_2018-02-13T14:30:26.000448
1,518,532,226.000448
34,194
pythondev
help
using the grep coloring. it just only works one at a time for me.
2018-02-13T14:31:13.000428
Heriberto
pythondev_help_Heriberto_2018-02-13T14:31:13.000428
1,518,532,273.000428
34,195
pythondev
help
you're allowed to add multiple pipes using grep
2018-02-13T14:31:48.000229
Kimberli
pythondev_help_Kimberli_2018-02-13T14:31:48.000229
1,518,532,308.000229
34,196
pythondev
help
thanks for that too
2018-02-13T14:31:51.000340
Heriberto
pythondev_help_Heriberto_2018-02-13T14:31:51.000340
1,518,532,311.00034
34,197
pythondev
help
:+1::skin-tone-5:
2018-02-13T14:32:00.000363
Kimberli
pythondev_help_Kimberli_2018-02-13T14:32:00.000363
1,518,532,320.000363
34,198
pythondev
help
yea, but only the last ones color activated
2018-02-13T14:32:09.000370
Heriberto
pythondev_help_Heriberto_2018-02-13T14:32:09.000370
1,518,532,329.00037
34,199
pythondev
help
get rid of the `$`
2018-02-13T14:32:26.000467
Kimberli
pythondev_help_Kimberli_2018-02-13T14:32:26.000467
1,518,532,346.000467
34,200
pythondev
help
actually the `|`
2018-02-13T14:32:45.000164
Kimberli
pythondev_help_Kimberli_2018-02-13T14:32:45.000164
1,518,532,365.000164
34,201
pythondev
help
i need the `|` since when I use that it removes non matching output. which I dont want.
2018-02-13T14:34:18.000556
Heriberto
pythondev_help_Heriberto_2018-02-13T14:34:18.000556
1,518,532,458.000556
34,202
pythondev
help
"^foo$"
2018-02-13T14:34:55.000655
Kimberli
pythondev_help_Kimberli_2018-02-13T14:34:55.000655
1,518,532,495.000655
34,203
pythondev
help
try that
2018-02-13T14:35:04.000078
Kimberli
pythondev_help_Kimberli_2018-02-13T14:35:04.000078
1,518,532,504.000078
34,204
pythondev
help
I’m getting `NameError: name 'exc' is not defined`, when trying to print `exc` inside an `except Exception as exc:` block. how is that possible?
2018-02-13T17:12:37.000629
Albertina
pythondev_help_Albertina_2018-02-13T17:12:37.000629
1,518,541,957.000629
34,205
pythondev
help
hi <@Albertina>! I'm not sure but is `exc` a string?
2018-02-13T17:15:52.000035
Kimberli
pythondev_help_Kimberli_2018-02-13T17:15:52.000035
1,518,542,152.000035
34,206
pythondev
help
I don’t know what it is, that’s what I’m trying to figure out. it’s coming from an API client library that doesn’t seem to document what a function does when the server doesn’t respond as expected
2018-02-13T17:16:44.000066
Albertina
pythondev_help_Albertina_2018-02-13T17:16:44.000066
1,518,542,204.000066
34,207
pythondev
help
what version of python are you using?
2018-02-13T17:17:00.000422
Kimberli
pythondev_help_Kimberli_2018-02-13T17:17:00.000422
1,518,542,220.000422
34,208
pythondev
help
3.6.1
2018-02-13T17:17:22.000569
Albertina
pythondev_help_Albertina_2018-02-13T17:17:22.000569
1,518,542,242.000569
34,209
pythondev
help
Can you share some code?
2018-02-13T17:17:28.000274
Garrett
pythondev_help_Garrett_2018-02-13T17:17:28.000274
1,518,542,248.000274
34,210
pythondev
help
sure, but there isn’t much to share
2018-02-13T17:17:42.000355
Albertina
pythondev_help_Albertina_2018-02-13T17:17:42.000355
1,518,542,262.000355
34,211
pythondev
help
just the part where exc is defined
2018-02-13T17:17:53.000498
Kimberli
pythondev_help_Kimberli_2018-02-13T17:17:53.000498
1,518,542,273.000498
34,212
pythondev
help
I moved the `print` into the script, and it prints the exception, so now I’m just using that for debugging
2018-02-13T17:18:29.000337
Albertina
pythondev_help_Albertina_2018-02-13T17:18:29.000337
1,518,542,309.000337
34,213
pythondev
help
but `exc` is not defined in the ipdb shell
2018-02-13T17:18:50.000083
Albertina
pythondev_help_Albertina_2018-02-13T17:18:50.000083
1,518,542,330.000083
34,214
pythondev
help
so now I’m just curious what’s happening
2018-02-13T17:19:03.000387
Albertina
pythondev_help_Albertina_2018-02-13T17:19:03.000387
1,518,542,343.000387
34,215
pythondev
help
`<http://self.gh|self.gh> = Github(settings.GITHUB_TOKEN)`, which is from pyGithub
2018-02-13T17:19:48.000211
Albertina
pythondev_help_Albertina_2018-02-13T17:19:48.000211
1,518,542,388.000211
34,216
pythondev
help
hmm...try `print({}.format(exc.strerror))`
2018-02-13T17:20:26.000104
Kimberli
pythondev_help_Kimberli_2018-02-13T17:20:26.000104
1,518,542,426.000104
34,217
pythondev
help
guessing you can't print it directly
2018-02-13T17:22:20.000545
Kimberli
pythondev_help_Kimberli_2018-02-13T17:22:20.000545
1,518,542,540.000545
34,218
pythondev
help
can't say I know what's happening....try just `e`? which is what I usually do
2018-02-13T17:26:30.000575
Kimberli
pythondev_help_Kimberli_2018-02-13T17:26:30.000575
1,518,542,790.000575
34,219
pythondev
help
what you have should work but can't pinpoint where the error is
2018-02-13T17:27:03.000010
Kimberli
pythondev_help_Kimberli_2018-02-13T17:27:03.000010
1,518,542,823.00001
34,220
pythondev
help
is that the only area in your code where you call `exc`?
2018-02-13T17:27:13.000478
Kimberli
pythondev_help_Kimberli_2018-02-13T17:27:13.000478
1,518,542,833.000478
34,221
pythondev
help
it’s the only place in this execution path
2018-02-13T17:30:49.000462
Albertina
pythondev_help_Albertina_2018-02-13T17:30:49.000462
1,518,543,049.000462
34,222
pythondev
help
since it somehow works in the code, but not the shell, I’ll just debug it the old fashioned way. not a big deal
2018-02-13T17:31:23.000255
Albertina
pythondev_help_Albertina_2018-02-13T17:31:23.000255
1,518,543,083.000255
34,223