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
I've found someone with the same exact error on stackoverflow but no answers...
2017-11-02T23:27:51.000096
Myong
pythondev_help_Myong_2017-11-02T23:27:51.000096
1,509,665,271.000096
99,103
pythondev
help
<https://stackoverflow.com/questions/43459366/pydev-debugger-gives-error-on-breakpoint>
2017-11-02T23:27:52.000085
Myong
pythondev_help_Myong_2017-11-02T23:27:52.000085
1,509,665,272.000085
99,104
pythondev
help
Okay so for some reason it would seem I had a variable `ready_queue.0` in my watchlist and by removing it I've fixed it
2017-11-02T23:30:58.000086
Myong
pythondev_help_Myong_2017-11-02T23:30:58.000086
1,509,665,458.000086
99,105
pythondev
help
<@Myong> so, you fixed it yourself? nice job!
2017-11-03T00:00:43.000082
Signe
pythondev_help_Signe_2017-11-03T00:00:43.000082
1,509,667,243.000082
99,106
pythondev
help
Yeah, honestly no clue how it happened, I knew it was looking for something due to the EOF error, but I couldn't for the life of me figure out how it got `ready_queue.0` from my `ready_queue` object
2017-11-03T00:22:22.000006
Myong
pythondev_help_Myong_2017-11-03T00:22:22.000006
1,509,668,542.000006
99,107
pythondev
help
Then saw it was just sitting in the watch list so I removed it and it works
2017-11-03T00:22:34.000019
Myong
pythondev_help_Myong_2017-11-03T00:22:34.000019
1,509,668,554.000019
99,108
pythondev
help
Hi ALL,
2017-11-03T01:55:00.000040
Malorie
pythondev_help_Malorie_2017-11-03T01:55:00.000040
1,509,674,100.00004
99,109
pythondev
help
I am trying to fir kmeans sklearn on a single feature(data frame column)
2017-11-03T01:55:21.000101
Malorie
pythondev_help_Malorie_2017-11-03T01:55:21.000101
1,509,674,121.000101
99,110
pythondev
help
using kmeans.fit(data_frame['column_name'].reshape(-1,1))
2017-11-03T01:55:57.000035
Malorie
pythondev_help_Malorie_2017-11-03T01:55:57.000035
1,509,674,157.000035
99,111
pythondev
help
it give me the error of truth value of an array
2017-11-03T01:56:11.000027
Malorie
pythondev_help_Malorie_2017-11-03T01:56:11.000027
1,509,674,171.000027
99,112
pythondev
help
this is an internal kmeans.pyc file exception
2017-11-03T01:56:25.000040
Malorie
pythondev_help_Malorie_2017-11-03T01:56:25.000040
1,509,674,185.00004
99,113
pythondev
help
I do not understand why would kmeans not accept a single dimensional feature to predict outcomes
2017-11-03T01:56:51.000143
Malorie
pythondev_help_Malorie_2017-11-03T01:56:51.000143
1,509,674,211.000143
99,114
pythondev
help
please help
2017-11-03T01:56:56.000088
Malorie
pythondev_help_Malorie_2017-11-03T01:56:56.000088
1,509,674,216.000088
99,115
pythondev
help
hey guys, can anyway recommend a JIRA desktop app for Mac?
2017-11-03T06:05:36.000143
Evelin
pythondev_help_Evelin_2017-11-03T06:05:36.000143
1,509,689,136.000143
99,116
pythondev
help
Hey guys, maybe someone able to help me
2017-11-03T07:05:44.000215
Bella
pythondev_help_Bella_2017-11-03T07:05:44.000215
1,509,692,744.000215
99,117
pythondev
help
I need to use `regex`
2017-11-03T07:05:57.000236
Bella
pythondev_help_Bella_2017-11-03T07:05:57.000236
1,509,692,757.000236
99,118
pythondev
help
for Example: I have `my_string = 'Copyright (c)'`
2017-11-03T07:06:55.000016
Bella
pythondev_help_Bella_2017-11-03T07:06:55.000016
1,509,692,815.000016
99,119
pythondev
help
How I can add some words, after `(c)` character, using `regex`?
2017-11-03T07:07:38.000032
Bella
pythondev_help_Bella_2017-11-03T07:07:38.000032
1,509,692,858.000032
99,120
pythondev
help
does it always end like that right now?
2017-11-03T07:07:54.000167
Vada
pythondev_help_Vada_2017-11-03T07:07:54.000167
1,509,692,874.000167
99,121
pythondev
help
in order to on output I’ll have something like `Copyright(c) Darth Vayder`
2017-11-03T07:08:09.000439
Bella
pythondev_help_Bella_2017-11-03T07:08:09.000439
1,509,692,889.000439
99,122
pythondev
help
no
2017-11-03T07:08:10.000240
Bella
pythondev_help_Bella_2017-11-03T07:08:10.000240
1,509,692,890.00024
99,123
pythondev
help
Or are you just going to get strings like 'Copyright (c}' mixed in with other letters etc.
2017-11-03T07:08:23.000173
Vada
pythondev_help_Vada_2017-11-03T07:08:23.000173
1,509,692,903.000173
99,124
pythondev
help
(and which language)
2017-11-03T07:08:30.000070
Vada
pythondev_help_Vada_2017-11-03T07:08:30.000070
1,509,692,910.00007
99,125
pythondev
help
it’s for licences ``` MIT License Copyright (c) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
2017-11-03T07:08:30.000282
Bella
pythondev_help_Bella_2017-11-03T07:08:30.000282
1,509,692,910.000282
99,126
pythondev
help
English;)
2017-11-03T07:08:44.000050
Bella
pythondev_help_Bella_2017-11-03T07:08:44.000050
1,509,692,924.00005
99,127
pythondev
help
haha
2017-11-03T07:08:50.000044
Vada
pythondev_help_Vada_2017-11-03T07:08:50.000044
1,509,692,930.000044
99,128
pythondev
help
I’m not familiar with `regex`:disappointed:
2017-11-03T07:09:13.000387
Bella
pythondev_help_Bella_2017-11-03T07:09:13.000387
1,509,692,953.000387
99,129
pythondev
help
<@Vada> It will hard to do it?
2017-11-03T07:10:01.000360
Bella
pythondev_help_Bella_2017-11-03T07:10:01.000360
1,509,693,001.00036
99,130
pythondev
help
Didn't realise I was on the python slack group hence the lang q :stuck_out_tongue:
2017-11-03T07:10:33.000197
Vada
pythondev_help_Vada_2017-11-03T07:10:33.000197
1,509,693,033.000197
99,131
pythondev
help
in python, no it's incredibly easy
2017-11-03T07:10:38.000278
Vada
pythondev_help_Vada_2017-11-03T07:10:38.000278
1,509,693,038.000278
99,132
pythondev
help
but I read something recently which is making me research another method
2017-11-03T07:10:50.000079
Vada
pythondev_help_Vada_2017-11-03T07:10:50.000079
1,509,693,050.000079
99,133
pythondev
help
1 sec
2017-11-03T07:10:51.000289
Vada
pythondev_help_Vada_2017-11-03T07:10:51.000289
1,509,693,051.000289
99,134
pythondev
help
(and you don't need regex for this)
2017-11-03T07:10:57.000205
Vada
pythondev_help_Vada_2017-11-03T07:10:57.000205
1,509,693,057.000205
99,135
pythondev
help
<@Vada> Waiting, thanks:slightly_smiling_face:
2017-11-03T07:11:58.000201
Bella
pythondev_help_Bella_2017-11-03T07:11:58.000201
1,509,693,118.000201
99,136
pythondev
help
<@Vada> :beers:
2017-11-03T07:12:06.000109
Bella
pythondev_help_Bella_2017-11-03T07:12:06.000109
1,509,693,126.000109
99,137
pythondev
help
:slightly_smiling_face: sorry this is part of an active effort by myself to reduce my reliance on python for small menial things
2017-11-03T07:12:58.000288
Vada
pythondev_help_Vada_2017-11-03T07:12:58.000288
1,509,693,178.000288
99,138
pythondev
help
you can use sed
2017-11-03T07:13:03.000100
Vada
pythondev_help_Vada_2017-11-03T07:13:03.000100
1,509,693,183.0001
99,139
pythondev
help
which is regex based
2017-11-03T07:13:08.000158
Vada
pythondev_help_Vada_2017-11-03T07:13:08.000158
1,509,693,188.000158
99,140
pythondev
help
```nick@polo:~$ cat BSD Copyright (c) The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright n...
2017-11-03T07:13:21.000059
Vada
pythondev_help_Vada_2017-11-03T07:13:21.000059
1,509,693,201.000059
99,141
pythondev
help
Reduced license a bit to make it clearer
2017-11-03T07:14:07.000129
Vada
pythondev_help_Vada_2017-11-03T07:14:07.000129
1,509,693,247.000129
99,142
pythondev
help
this does not check to see if you have already written "Darth Vader" after the copyright line
2017-11-03T07:14:26.000339
Vada
pythondev_help_Vada_2017-11-03T07:14:26.000339
1,509,693,266.000339
99,143
pythondev
help
so it could dplicate it easily
2017-11-03T07:14:30.000213
Vada
pythondev_help_Vada_2017-11-03T07:14:30.000213
1,509,693,270.000213
99,144
pythondev
help
Haha, really!!
2017-11-03T07:14:38.000281
Bella
pythondev_help_Bella_2017-11-03T07:14:38.000281
1,509,693,278.000281
99,145
pythondev
help
``` out_put_license = re.sub(r'Wizi Generator', author_name, license_content) ```
2017-11-03T07:14:44.000212
Bella
pythondev_help_Bella_2017-11-03T07:14:44.000212
1,509,693,284.000212
99,146
pythondev
help
just to replace words
2017-11-03T07:14:48.000298
Bella
pythondev_help_Bella_2017-11-03T07:14:48.000298
1,509,693,288.000298
99,147
pythondev
help
:grinning:
2017-11-03T07:14:52.000090
Bella
pythondev_help_Bella_2017-11-03T07:14:52.000090
1,509,693,292.00009
99,148
pythondev
help
<@Vada> thanks)
2017-11-03T07:14:59.000006
Bella
pythondev_help_Bella_2017-11-03T07:14:59.000006
1,509,693,299.000006
99,149
pythondev
help
`sub` function works pretty well
2017-11-03T07:15:59.000086
Bella
pythondev_help_Bella_2017-11-03T07:15:59.000086
1,509,693,359.000086
99,150
pythondev
help
yep that should work too
2017-11-03T07:17:02.000120
Vada
pythondev_help_Vada_2017-11-03T07:17:02.000120
1,509,693,422.00012
99,151
pythondev
help
although you can also just do a straight up `.replace`
2017-11-03T07:17:10.000007
Vada
pythondev_help_Vada_2017-11-03T07:17:10.000007
1,509,693,430.000007
99,152
pythondev
help
no `re`
2017-11-03T07:17:21.000045
Vada
pythondev_help_Vada_2017-11-03T07:17:21.000045
1,509,693,441.000045
99,153
pythondev
help
<@Vada> yeah, nice solution.. sometimes, easy things:thinking_face: looks hard
2017-11-03T07:21:30.000205
Bella
pythondev_help_Bella_2017-11-03T07:21:30.000205
1,509,693,690.000205
99,154
pythondev
help
If someone will have a free time, could you review my little project? And if you will write some suggestions, or notices, it’s would be really awesome! <https://github.com/MichaelYusko/wizi> in two words about `wizi`: little package which will generate project template for you;)
2017-11-03T07:28:03.000407
Bella
pythondev_help_Bella_2017-11-03T07:28:03.000407
1,509,694,083.000407
99,155
pythondev
help
And have a nice day, guys.
2017-11-03T07:28:11.000323
Bella
pythondev_help_Bella_2017-11-03T07:28:11.000323
1,509,694,091.000323
99,156
pythondev
help
any thoughts on best practice for variable names during a for each loop in python? for i in items: ``` i is a terrible name because it's generally used for the index ``` for item in items ``` item is a poor choice because: - refactoring tools may or may not be able to figure out 'item' needs to be changed if 'items' ...
2017-11-03T08:12:51.000439
Rob
pythondev_help_Rob_2017-11-03T08:12:51.000439
1,509,696,771.000439
99,157
pythondev
help
uhm
2017-11-03T08:14:16.000261
Meg
pythondev_help_Meg_2017-11-03T08:14:16.000261
1,509,696,856.000261
99,158
pythondev
help
I really don’t care, tbh. as long as its obvious what is the variable and what is the data structure
2017-11-03T08:14:38.000034
Meg
pythondev_help_Meg_2017-11-03T08:14:38.000034
1,509,696,878.000034
99,159
pythondev
help
and the data structure name is appropriate
2017-11-03T08:15:08.000181
Meg
pythondev_help_Meg_2017-11-03T08:15:08.000181
1,509,696,908.000181
99,160
pythondev
help
yeah, and I gotta say, I’m actually a huge fan of the plural vs singular thing. I think that adds more clarity, not less
2017-11-03T08:15:30.000126
Junita
pythondev_help_Junita_2017-11-03T08:15:30.000126
1,509,696,930.000126
99,161
pythondev
help
for example, `item in items` is pretty easy to figure out, because one is plural and the other is singular
2017-11-03T08:15:39.000108
Meg
pythondev_help_Meg_2017-11-03T08:15:39.000108
1,509,696,939.000108
99,162
pythondev
help
then, when using `enumerate`, I do `for idx, val in enumerate(some_data_structure):`
2017-11-03T08:16:14.000090
Meg
pythondev_help_Meg_2017-11-03T08:16:14.000090
1,509,696,974.00009
99,163
pythondev
help
yup. also, in general, probably not worth overthinking
2017-11-03T08:16:50.000178
Junita
pythondev_help_Junita_2017-11-03T08:16:50.000178
1,509,697,010.000178
99,164
pythondev
help
if it’s generally clear what’s going on, and there are no obvious problems, then it’s good to go
2017-11-03T08:17:17.000020
Junita
pythondev_help_Junita_2017-11-03T08:17:17.000020
1,509,697,037.00002
99,165
pythondev
help
:thumbsup: for not overthinking
2017-11-03T08:19:11.000250
Meg
pythondev_help_Meg_2017-11-03T08:19:11.000250
1,509,697,151.00025
99,166
pythondev
help
inevitably you’ll be back there in a couple months anyway and go, “geez this is total crap, who wrote this!” *runs git blame* “oh”
2017-11-03T08:20:00.000164
Junita
pythondev_help_Junita_2017-11-03T08:20:00.000164
1,509,697,200.000164
99,167
pythondev
help
for ? in my_list_with_a_specific_name: what we doing here?
2017-11-03T08:34:11.000033
Rob
pythondev_help_Rob_2017-11-03T08:34:11.000033
1,509,698,051.000033
99,168
pythondev
help
fwiw, i’m only over thinking this because i keep having to think about it when coding, i’d rather stick to something consistent and never think about it.
2017-11-03T08:35:28.000322
Rob
pythondev_help_Rob_2017-11-03T08:35:28.000322
1,509,698,128.000322
99,169
pythondev
help
i think for item in items is perfectly fine, and probably a poor example. in reality it’s never usually that simple, and the list won’t necessarily even have a singular name. i guess it doesn’t really matter overall, just feels like i shouldn’t be thinking about this lol. if i had to come up with a unique variable name...
2017-11-03T08:38:22.000429
Rob
pythondev_help_Rob_2017-11-03T08:38:22.000429
1,509,698,302.000429
99,170
pythondev
help
what I usually do I name list with a plural so when doing `for i in my_list` I can use the singular
2017-11-03T08:40:19.000090
Ciera
pythondev_help_Ciera_2017-11-03T08:40:19.000090
1,509,698,419.00009
99,171
pythondev
help
`for message in messages`
2017-11-03T08:40:32.000140
Ciera
pythondev_help_Ciera_2017-11-03T08:40:32.000140
1,509,698,432.00014
99,172
pythondev
help
you won’t always be able to come up with a natural sounding name that has a singular version though, and even trying to do it in the first place bugs me a bit. i guess i’ll just stop being so obsessive over the little things :wink:
2017-11-03T08:42:42.000234
Rob
pythondev_help_Rob_2017-11-03T08:42:42.000234
1,509,698,562.000234
99,173
pythondev
help
it's not possible some time but most yes
2017-11-03T08:43:22.000262
Ciera
pythondev_help_Ciera_2017-11-03T08:43:22.000262
1,509,698,602.000262
99,174
pythondev
help
but yeah if you can find something good enough it's probably :thumbsup:
2017-11-03T08:43:56.000066
Ciera
pythondev_help_Ciera_2017-11-03T08:43:56.000066
1,509,698,636.000066
99,175
pythondev
help
you can also rename later
2017-11-03T08:44:03.000160
Ciera
pythondev_help_Ciera_2017-11-03T08:44:03.000160
1,509,698,643.00016
99,176
pythondev
help
that’s the thing though, i don’t want to have to rename shit later haha, i’d rather just stick it as some single letter constant and never think about it again in my life
2017-11-03T08:44:45.000234
Rob
pythondev_help_Rob_2017-11-03T08:44:45.000234
1,509,698,685.000234
99,177
pythondev
help
always using the same letter for indices will get confusing sometime
2017-11-03T08:45:45.000452
Ciera
pythondev_help_Ciera_2017-11-03T08:45:45.000452
1,509,698,745.000452
99,178
pythondev
help
what if you have two loops ?
2017-11-03T08:45:54.000002
Ciera
pythondev_help_Ciera_2017-11-03T08:45:54.000002
1,509,698,754.000002
99,179
pythondev
help
then i would give them descriptive names
2017-11-03T08:46:08.000122
Rob
pythondev_help_Rob_2017-11-03T08:46:08.000122
1,509,698,768.000122
99,180
pythondev
help
but that case is rare enough that i don’t care, and i think in that case it actually adds a lot of value to be descriptive
2017-11-03T08:46:45.000105
Rob
pythondev_help_Rob_2017-11-03T08:46:45.000105
1,509,698,805.000105
99,181
pythondev
help
&gt; adds a lot of value to be descriptive In any case it add value
2017-11-03T08:47:05.000461
Ciera
pythondev_help_Ciera_2017-11-03T08:47:05.000461
1,509,698,825.000461
99,182
pythondev
help
i’m mostly talking about 1 level deep loops no longer than 10 lines. they come up all the time and i don’t think a descriptive name adds any value to the code at all
2017-11-03T08:48:04.000309
Rob
pythondev_help_Rob_2017-11-03T08:48:04.000309
1,509,698,884.000309
99,183
pythondev
help
then the convention is to use `i` and `k, v` for dict
2017-11-03T08:48:44.000060
Ciera
pythondev_help_Ciera_2017-11-03T08:48:44.000060
1,509,698,924.00006
99,184
pythondev
help
can we use i there? i’ve wanted to, i just haven’t because i thought it would be conflicting with the tradition of calling the index i
2017-11-03T08:49:47.000095
Rob
pythondev_help_Rob_2017-11-03T08:49:47.000095
1,509,698,987.000095
99,185
pythondev
help
k, v i like a lot, consistent and easy :slightly_smiling_face:
2017-11-03T08:50:35.000051
Rob
pythondev_help_Rob_2017-11-03T08:50:35.000051
1,509,699,035.000051
99,186
pythondev
help
i think i’m going to go with ‘i’ and if people complain i’ll blame you :wink:
2017-11-03T08:51:48.000126
Rob
pythondev_help_Rob_2017-11-03T08:51:48.000126
1,509,699,108.000126
99,187
pythondev
help
haha :thumbsup:
2017-11-03T08:52:37.000417
Ciera
pythondev_help_Ciera_2017-11-03T08:52:37.000417
1,509,699,157.000417
99,188
pythondev
help
I use i, j and k,v when the values are non-obvious, as you describe.
2017-11-03T09:31:22.000132
Junita
pythondev_help_Junita_2017-11-03T09:31:22.000132
1,509,701,482.000132
99,189
pythondev
help
specific names otherwise
2017-11-03T09:31:25.000407
Junita
pythondev_help_Junita_2017-11-03T09:31:25.000407
1,509,701,485.000407
99,190
pythondev
help
having written a good bit of c++, I often use 'it' which works for 'item' or 'iterator'. or sometimes I just use i, j, k or x, y, z in nested loops. It's mostly just style since the loop items/indexes are very local and not 'in scope' after a dozen-ish lines or less
2017-11-03T09:55:56.000184
Sirena
pythondev_help_Sirena_2017-11-03T09:55:56.000184
1,509,702,956.000184
99,191
pythondev
help
bash scripting question, anyone ever use the ImageMagick command line tool? Trying to center one image over another and getting mixed results
2017-11-03T12:03:32.000426
Lory
pythondev_help_Lory_2017-11-03T12:03:32.000426
1,509,710,612.000426
99,192
pythondev
help
mixed results how
2017-11-03T12:06:39.000056
Meg
pythondev_help_Meg_2017-11-03T12:06:39.000056
1,509,710,799.000056
99,193
pythondev
help
horizontal or vertical offset working?
2017-11-03T12:06:46.000408
Meg
pythondev_help_Meg_2017-11-03T12:06:46.000408
1,509,710,806.000408
99,194
pythondev
help
I was getting incorrect dimensions but I am just now realizing that I had the order of images wrong so I was overlaying the background on top of the foreground image, and since it was transparent it just looked like nothing was happening
2017-11-03T12:08:01.000187
Lory
pythondev_help_Lory_2017-11-03T12:08:01.000187
1,509,710,881.000187
99,195
pythondev
help
Alright now I really don't know what's going on with this bash script if anyone can help out. If I specify a `-d` option, then my output file variable is an empty string which breaks on the `mkdir -p`, if I don't specify the default holds correctly but then `convert -size "${w}"x"${h}" canvas:"${color}" "${out}"/"${img...
2017-11-03T13:50:59.000302
Lory
pythondev_help_Lory_2017-11-03T13:50:59.000302
1,509,717,059.000302
99,196
pythondev
help
this is just a simple script for making images square, it takes two optional arguments, a color for the background (defaults to transparent) and a name for the output directory (defaults to `square_out`)
2017-11-03T13:52:12.000044
Lory
pythondev_help_Lory_2017-11-03T13:52:12.000044
1,509,717,132.000044
99,197
pythondev
help
Actually I fixed it, changed `while getopts "dc:" opt; do` to `while getopts ":d:c:" opt; do` was all I was missing
2017-11-03T14:23:26.000359
Lory
pythondev_help_Lory_2017-11-03T14:23:26.000359
1,509,719,006.000359
99,198
pythondev
help
Any idea why I am getting that error?
2017-11-03T14:54:46.000015
Enid
pythondev_help_Enid_2017-11-03T14:54:46.000015
1,509,720,886.000015
99,199
pythondev
help
you're missing a closing `)`
2017-11-03T14:57:02.000441
Lory
pythondev_help_Lory_2017-11-03T14:57:02.000441
1,509,721,022.000441
99,200
pythondev
help
look at the end of `print(random.randint(min_income,max_income)`
2017-11-03T14:57:14.000031
Lory
pythondev_help_Lory_2017-11-03T14:57:14.000031
1,509,721,034.000031
99,201
pythondev
help
should be `print(random.randint(min_income,max_income))`
2017-11-03T14:57:21.000306
Lory
pythondev_help_Lory_2017-11-03T14:57:21.000306
1,509,721,041.000306
99,202