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 | yea thats why I’m checking it out just wasn’t sure if there was anything else or if this is the only info I’ve asked in flask too | 2017-07-06T12:40:18.933650 | Mei | pythondev_help_Mei_2017-07-06T12:40:18.933650 | 1,499,344,818.93365 | 84,203 |
pythondev | help | didn’t realize they had a channel | 2017-07-06T12:40:22.935858 | Mei | pythondev_help_Mei_2017-07-06T12:40:22.935858 | 1,499,344,822.935858 | 84,204 |
pythondev | help | code review help: package all html file keys from a S3 bucket with a provided prefix into a list | 2017-07-06T13:49:16.222131 | Meg | pythondev_help_Meg_2017-07-06T13:49:16.222131 | 1,499,348,956.222131 | 84,205 |
pythondev | help | so, I have a bunch of websites scraped and archived on S3 | 2017-07-06T13:51:32.298038 | Meg | pythondev_help_Meg_2017-07-06T13:51:32.298038 | 1,499,349,092.298038 | 84,206 |
pythondev | help | I want to get the key names for the html files only, for indexing in solr | 2017-07-06T13:51:45.305542 | Meg | pythondev_help_Meg_2017-07-06T13:51:45.305542 | 1,499,349,105.305542 | 84,207 |
pythondev | help | this is the naive solution, and while it works, I think it could be improved. Any options? | 2017-07-06T13:52:07.317617 | Meg | pythondev_help_Meg_2017-07-06T13:52:07.317617 | 1,499,349,127.317617 | 84,208 |
pythondev | help | i think you can use map, Not sure if it would improve the code | 2017-07-06T13:54:53.410526 | Shelly | pythondev_help_Shelly_2017-07-06T13:54:53.410526 | 1,499,349,293.410526 | 84,209 |
pythondev | help | could change line 12 to be `for item in page.get('Contents', []):` or whatever empty iterable you want | 2017-07-06T13:55:11.420779 | Patty | pythondev_help_Patty_2017-07-06T13:55:11.420779 | 1,499,349,311.420779 | 84,210 |
pythondev | help | saves a line | 2017-07-06T13:55:13.421717 | Patty | pythondev_help_Patty_2017-07-06T13:55:13.421717 | 1,499,349,313.421717 | 84,211 |
pythondev | help | Similarly `if item.get('Key', '').endswith('htm') or item.get('Key', '').endswith('html'):` | 2017-07-06T13:56:54.480064 | Shelly | pythondev_help_Shelly_2017-07-06T13:56:54.480064 | 1,499,349,414.480064 | 84,212 |
pythondev | help | I thought of that | 2017-07-06T13:58:34.539053 | Meg | pythondev_help_Meg_2017-07-06T13:58:34.539053 | 1,499,349,514.539053 | 84,213 |
pythondev | help | but feel the readability is so-so | 2017-07-06T13:58:41.543241 | Meg | pythondev_help_Meg_2017-07-06T13:58:41.543241 | 1,499,349,521.543241 | 84,214 |
pythondev | help | yeah gets a little overly verbose there | 2017-07-06T13:59:09.559372 | Patty | pythondev_help_Patty_2017-07-06T13:59:09.559372 | 1,499,349,549.559372 | 84,215 |
pythondev | help | Well, I tried :slightly_smiling_face: | 2017-07-06T14:00:09.595476 | Shelly | pythondev_help_Shelly_2017-07-06T14:00:09.595476 | 1,499,349,609.595476 | 84,216 |
pythondev | help | I like `any(key.endswith(x) for x in ['html', 'htm']):` so you can arbitrarily add more extensions if you want | 2017-07-06T14:00:59.625727 | Beula | pythondev_help_Beula_2017-07-06T14:00:59.625727 | 1,499,349,659.625727 | 84,217 |
pythondev | help | but neither is "right" or better | 2017-07-06T14:01:09.631327 | Beula | pythondev_help_Beula_2017-07-06T14:01:09.631327 | 1,499,349,669.631327 | 84,218 |
pythondev | help | I like this one | 2017-07-06T14:01:38.648081 | Shelly | pythondev_help_Shelly_2017-07-06T14:01:38.648081 | 1,499,349,698.648081 | 84,219 |
pythondev | help | alright, thanks | 2017-07-06T14:04:54.760744 | Meg | pythondev_help_Meg_2017-07-06T14:04:54.760744 | 1,499,349,894.760744 | 84,220 |
pythondev | help | It was the nested looping and checks that I was unsure about | 2017-07-06T14:05:12.770400 | Meg | pythondev_help_Meg_2017-07-06T14:05:12.770400 | 1,499,349,912.7704 | 84,221 |
pythondev | help | wanted to be sure I wasn't missing something more pythonic | 2017-07-06T14:05:23.776778 | Meg | pythondev_help_Meg_2017-07-06T14:05:23.776778 | 1,499,349,923.776778 | 84,222 |
pythondev | help | You never know what Python has up in its sleeve | 2017-07-06T14:07:45.858107 | Shelly | pythondev_help_Shelly_2017-07-06T14:07:45.858107 | 1,499,350,065.858107 | 84,223 |
pythondev | help | <@Meg> now flatten all of the loops into a one-liner | 2017-07-06T14:52:53.377735 | Patty | pythondev_help_Patty_2017-07-06T14:52:53.377735 | 1,499,352,773.377735 | 84,224 |
pythondev | help | #ProTip - don't | 2017-07-06T14:53:29.397961 | Beula | pythondev_help_Beula_2017-07-06T14:53:29.397961 | 1,499,352,809.397961 | 84,225 |
pythondev | help | do that only if you want to be a clever bastard and screw with the people taking over after you :smile: | 2017-07-06T14:54:12.422699 | Meg | pythondev_help_Meg_2017-07-06T14:54:12.422699 | 1,499,352,852.422699 | 84,226 |
pythondev | help | generating DELETE statements from a dictionary that came from a csv lol | 2017-07-06T14:54:49.443467 | Patty | pythondev_help_Patty_2017-07-06T14:54:49.443467 | 1,499,352,889.443467 | 84,227 |
pythondev | help | :facepalm: | 2017-07-06T14:54:57.447714 | Meg | pythondev_help_Meg_2017-07-06T14:54:57.447714 | 1,499,352,897.447714 | 84,228 |
pythondev | help | i flattened it for funsies | 2017-07-06T14:55:02.451037 | Patty | pythondev_help_Patty_2017-07-06T14:55:02.451037 | 1,499,352,902.451037 | 84,229 |
pythondev | help | showoff | 2017-07-06T14:55:11.455841 | Meg | pythondev_help_Meg_2017-07-06T14:55:11.455841 | 1,499,352,911.455841 | 84,230 |
pythondev | help | :smile: | 2017-07-06T14:55:19.459975 | Meg | pythondev_help_Meg_2017-07-06T14:55:19.459975 | 1,499,352,919.459975 | 84,231 |
pythondev | help | it was a one-off script ¯\_(ツ)_/¯ | 2017-07-06T14:55:19.460437 | Patty | pythondev_help_Patty_2017-07-06T14:55:19.460437 | 1,499,352,919.460437 | 84,232 |
pythondev | help | the actual code i think is on my other machine | 2017-07-06T14:55:29.465646 | Patty | pythondev_help_Patty_2017-07-06T14:55:29.465646 | 1,499,352,929.465646 | 84,233 |
pythondev | help | don't you mean off-by-one? | 2017-07-06T14:55:30.466026 | Meg | pythondev_help_Meg_2017-07-06T14:55:30.466026 | 1,499,352,930.466026 | 84,234 |
pythondev | help | :smile: | 2017-07-06T14:55:35.469138 | Meg | pythondev_help_Meg_2017-07-06T14:55:35.469138 | 1,499,352,935.469138 | 84,235 |
pythondev | help | don’t you mean off-by-one? | 2017-07-06T14:55:42.473347 | Patty | pythondev_help_Patty_2017-07-06T14:55:42.473347 | 1,499,352,942.473347 | 84,236 |
pythondev | help | now i want to start an #ugly_code channel | 2017-07-06T14:57:43.540054 | Patty | pythondev_help_Patty_2017-07-06T14:57:43.540054 | 1,499,353,063.540054 | 84,237 |
pythondev | help | taking this to <#C07EFN21K|random> before i confuse newcomers | 2017-07-06T14:58:04.551443 | Patty | pythondev_help_Patty_2017-07-06T14:58:04.551443 | 1,499,353,084.551443 | 84,238 |
pythondev | help | Hello guys | 2017-07-06T15:17:23.165108 | Hyman | pythondev_help_Hyman_2017-07-06T15:17:23.165108 | 1,499,354,243.165108 | 84,239 |
pythondev | help | How can I implement a Single Sign on system for persons connected to a WiFi | 2017-07-06T15:18:16.191790 | Hyman | pythondev_help_Hyman_2017-07-06T15:18:16.191790 | 1,499,354,296.19179 | 84,240 |
pythondev | help | this the same thing you were asking about the other day? | 2017-07-06T15:28:35.504478 | Meg | pythondev_help_Meg_2017-07-06T15:28:35.504478 | 1,499,354,915.504478 | 84,241 |
pythondev | help | <@Hyman> what kinda of enviroment do you have for wifi. | 2017-07-06T15:35:25.712829 | Ressie | pythondev_help_Ressie_2017-07-06T15:35:25.712829 | 1,499,355,325.712829 | 84,242 |
pythondev | help | <@Hyman> define single sing on. To my network ears that sounds like 802.11x | 2017-07-06T15:35:58.729431 | Ressie | pythondev_help_Ressie_2017-07-06T15:35:58.729431 | 1,499,355,358.729431 | 84,243 |
pythondev | help | for your needs | 2017-07-06T15:36:12.736206 | Ressie | pythondev_help_Ressie_2017-07-06T15:36:12.736206 | 1,499,355,372.736206 | 84,244 |
pythondev | help | got a celery question here.
I have a master task, for lack of a better word, that takes in a list of URLs and chunks it up to an appropriate number of sub-tasks to execute for indexing in a solr server
I'd like to be able to record in the model record for that particular instance _how_ many URLs were successfully indexed. But as the sub-tasks are executing asynchronously, with no feedback to the parent task, I'm having a hard time figuring out how to update the db on completion of the last sub-task. | 2017-07-06T16:14:43.923567 | Meg | pythondev_help_Meg_2017-07-06T16:14:43.923567 | 1,499,357,683.923567 | 84,245 |
pythondev | help | Only thing I can think of is for each subtask to increment/update the db record on completion. Is there a more elegant way to do this with Celery? | 2017-07-06T16:15:33.948592 | Meg | pythondev_help_Meg_2017-07-06T16:15:33.948592 | 1,499,357,733.948592 | 84,246 |
pythondev | help | I don't think that is too inelegant, but you could have the parent task get all results of the subtasks by polling them and do it that way - not sure it's much more elegant though | 2017-07-06T16:17:14.999028 | Beula | pythondev_help_Beula_2017-07-06T16:17:14.999028 | 1,499,357,834.999028 | 84,247 |
pythondev | help | yeah, agreed | 2017-07-06T16:18:38.040577 | Meg | pythondev_help_Meg_2017-07-06T16:18:38.040577 | 1,499,357,918.040577 | 84,248 |
pythondev | help | thats about what I was thinking as well | 2017-07-06T16:18:47.045405 | Meg | pythondev_help_Meg_2017-07-06T16:18:47.045405 | 1,499,357,927.045405 | 84,249 |
pythondev | help | but its pretty necessary for the parent and child tasks to be on different queues | 2017-07-06T16:19:08.056148 | Meg | pythondev_help_Meg_2017-07-06T16:19:08.056148 | 1,499,357,948.056148 | 84,250 |
pythondev | help | Anyone have experience trying to persist CloudSearch/Elasticsearch search results? I am working on a system that maps document ids to search queries so relational data can be added in an RDS. However because documents AND search queries can be edited you need to routinely re-run the search to see if new documents need to be added in the mapping table or delete the outdated ones and the runtime is just going to grow as documents and saved search queries are added. | 2017-07-06T16:21:49.139479 | Lamonica | pythondev_help_Lamonica_2017-07-06T16:21:49.139479 | 1,499,358,109.139479 | 84,251 |
pythondev | help | <@Meg> - I don't think which queue they run on matters for getting a result | 2017-07-06T16:23:17.185332 | Beula | pythondev_help_Beula_2017-07-06T16:23:17.185332 | 1,499,358,197.185332 | 84,252 |
pythondev | help | <@Beula> I have to think about the queue and workers getting clogged up | 2017-07-06T16:23:36.195269 | Meg | pythondev_help_Meg_2017-07-06T16:23:36.195269 | 1,499,358,216.195269 | 84,253 |
pythondev | help | yeah, so the master task blocking them will cause issues | 2017-07-06T16:23:54.204737 | Beula | pythondev_help_Beula_2017-07-06T16:23:54.204737 | 1,499,358,234.204737 | 84,254 |
pythondev | help | correct | 2017-07-06T16:23:58.206610 | Meg | pythondev_help_Meg_2017-07-06T16:23:58.206610 | 1,499,358,238.20661 | 84,255 |
pythondev | help | thus, the different queues | 2017-07-06T16:24:10.212832 | Meg | pythondev_help_Meg_2017-07-06T16:24:10.212832 | 1,499,358,250.212832 | 84,256 |
pythondev | help | It would only block on 1 worker | 2017-07-06T16:24:30.223709 | Beula | pythondev_help_Beula_2017-07-06T16:24:30.223709 | 1,499,358,270.223709 | 84,257 |
pythondev | help | But yeah, in that case - DB increment seems like the option | 2017-07-06T16:24:54.235907 | Beula | pythondev_help_Beula_2017-07-06T16:24:54.235907 | 1,499,358,294.235907 | 84,258 |
pythondev | help | alright, thanks | 2017-07-06T16:25:52.266616 | Meg | pythondev_help_Meg_2017-07-06T16:25:52.266616 | 1,499,358,352.266616 | 84,259 |
pythondev | help | nice to know I'm on the right track :slightly_smiling_face: | 2017-07-06T16:26:26.284471 | Meg | pythondev_help_Meg_2017-07-06T16:26:26.284471 | 1,499,358,386.284471 | 84,260 |
pythondev | help | <@Collette> - any other thoughts :point_up::skin-tone-4: ? | 2017-07-06T16:26:44.293746 | Beula | pythondev_help_Beula_2017-07-06T16:26:44.293746 | 1,499,358,404.293746 | 84,261 |
pythondev | help | nobody else here uses python or the tools I use, so its good to get confirmation | 2017-07-06T16:26:48.295752 | Meg | pythondev_help_Meg_2017-07-06T16:26:48.295752 | 1,499,358,408.295752 | 84,262 |
pythondev | help | he's probably sleeping right now | 2017-07-06T16:27:06.305026 | Meg | pythondev_help_Meg_2017-07-06T16:27:06.305026 | 1,499,358,426.305026 | 84,263 |
pythondev | help | but woould be interested in his and <@Patty>'s feedback as well | 2017-07-06T16:27:16.310296 | Meg | pythondev_help_Meg_2017-07-06T16:27:16.310296 | 1,499,358,436.310296 | 84,264 |
pythondev | help | I thought they had an on-done callback option, but I am not seeing it | 2017-07-06T16:27:27.316764 | Beula | pythondev_help_Beula_2017-07-06T16:27:27.316764 | 1,499,358,447.316764 | 84,265 |
pythondev | help | <http://docs.celeryproject.org/en/latest/userguide/tasks.html#on_success> | 2017-07-06T16:29:31.381867 | Meg | pythondev_help_Meg_2017-07-06T16:29:31.381867 | 1,499,358,571.381867 | 84,266 |
pythondev | help | that's about the closest, I think | 2017-07-06T16:29:37.384910 | Meg | pythondev_help_Meg_2017-07-06T16:29:37.384910 | 1,499,358,577.38491 | 84,267 |
pythondev | help | ill catch up in a few, fire at work | 2017-07-06T16:29:38.385340 | Patty | pythondev_help_Patty_2017-07-06T16:29:38.385340 | 1,499,358,578.38534 | 84,268 |
pythondev | help | not a literal fire | 2017-07-06T16:29:41.387029 | Patty | pythondev_help_Patty_2017-07-06T16:29:41.387029 | 1,499,358,581.387029 | 84,269 |
pythondev | help | ok, good luck | 2017-07-06T16:29:54.393667 | Meg | pythondev_help_Meg_2017-07-06T16:29:54.393667 | 1,499,358,594.393667 | 84,270 |
pythondev | help | need some marshmallows? | 2017-07-06T16:29:59.396491 | Meg | pythondev_help_Meg_2017-07-06T16:29:59.396491 | 1,499,358,599.396491 | 84,271 |
pythondev | help | literal fire by my mountain house :disappointed: may cancel my bike trip :cry: | 2017-07-06T16:30:12.403580 | Beula | pythondev_help_Beula_2017-07-06T16:30:12.403580 | 1,499,358,612.40358 | 84,272 |
pythondev | help | whoops | 2017-07-06T16:30:20.408445 | Meg | pythondev_help_Meg_2017-07-06T16:30:20.408445 | 1,499,358,620.408445 | 84,273 |
pythondev | help | colorado | 2017-07-06T16:30:28.412467 | Meg | pythondev_help_Meg_2017-07-06T16:30:28.412467 | 1,499,358,628.412467 | 84,274 |
pythondev | help | no its someone using RUBY of all things spamming us with bad requests | 2017-07-06T16:30:31.413992 | Patty | pythondev_help_Patty_2017-07-06T16:30:31.413992 | 1,499,358,631.413992 | 84,275 |
pythondev | help | snowbound seven months of the year | 2017-07-06T16:30:33.415305 | Meg | pythondev_help_Meg_2017-07-06T16:30:33.415305 | 1,499,358,633.415305 | 84,276 |
pythondev | help | the rest you're bone dry | 2017-07-06T16:30:41.419476 | Meg | pythondev_help_Meg_2017-07-06T16:30:41.419476 | 1,499,358,641.419476 | 84,277 |
pythondev | help | <@Beula> having fun with Joe's API? | 2017-07-06T16:30:54.426790 | Meg | pythondev_help_Meg_2017-07-06T16:30:54.426790 | 1,499,358,654.42679 | 84,278 |
pythondev | help | :smile: | 2017-07-06T16:30:55.427182 | Meg | pythondev_help_Meg_2017-07-06T16:30:55.427182 | 1,499,358,655.427182 | 84,279 |
pythondev | help | LAWL | 2017-07-06T16:31:03.431230 | Beula | pythondev_help_Beula_2017-07-06T16:31:03.431230 | 1,499,358,663.43123 | 84,280 |
pythondev | help | Can ruby run fast enough to spam it? | 2017-07-06T16:31:09.434332 | Beula | pythondev_help_Beula_2017-07-06T16:31:09.434332 | 1,499,358,669.434332 | 84,281 |
pythondev | help | eventually | 2017-07-06T16:31:22.441315 | Meg | pythondev_help_Meg_2017-07-06T16:31:22.441315 | 1,499,358,682.441315 | 84,282 |
pythondev | help | probably not DDOS level of spam though | 2017-07-06T16:31:35.448803 | Meg | pythondev_help_Meg_2017-07-06T16:31:35.448803 | 1,499,358,695.448803 | 84,283 |
pythondev | help | like the one that took down kreb's blog | 2017-07-06T16:31:46.454342 | Meg | pythondev_help_Meg_2017-07-06T16:31:46.454342 | 1,499,358,706.454342 | 84,284 |
pythondev | help | oh yeah, that was crazy | 2017-07-06T16:31:55.459249 | Beula | pythondev_help_Beula_2017-07-06T16:31:55.459249 | 1,499,358,715.459249 | 84,285 |
pythondev | help | that was the IoT hack, IIRC | 2017-07-06T16:32:04.463970 | Beula | pythondev_help_Beula_2017-07-06T16:32:04.463970 | 1,499,358,724.46397 | 84,286 |
pythondev | help | yep | 2017-07-06T16:32:20.473003 | Meg | pythondev_help_Meg_2017-07-06T16:32:20.473003 | 1,499,358,740.473003 | 84,287 |
pythondev | help | well, I'm out | 2017-07-06T16:32:34.480429 | Meg | pythondev_help_Meg_2017-07-06T16:32:34.480429 | 1,499,358,754.480429 | 84,288 |
pythondev | help | time to get home and head out on the bike for a bit | 2017-07-06T16:32:43.485262 | Meg | pythondev_help_Meg_2017-07-06T16:32:43.485262 | 1,499,358,763.485262 | 84,289 |
pythondev | help | good evening/night/morning! | 2017-07-06T16:32:59.493926 | Meg | pythondev_help_Meg_2017-07-06T16:32:59.493926 | 1,499,358,779.493926 | 84,290 |
pythondev | help | no ruby cant DDOS aws im sure :stuck_out_tongue: | 2017-07-06T16:45:09.868651 | Patty | pythondev_help_Patty_2017-07-06T16:45:09.868651 | 1,499,359,509.868651 | 84,291 |
pythondev | help | we have a really bad customer that spams us a lot with bad requests and they seem to do it scripted and its 400 400 400 400 and they dont handle errors in their scripts so it just keeps going | 2017-07-06T16:45:59.894541 | Patty | pythondev_help_Patty_2017-07-06T16:45:59.894541 | 1,499,359,559.894541 | 84,292 |
pythondev | help | :facepalm: | 2017-07-06T16:46:05.897879 | Patty | pythondev_help_Patty_2017-07-06T16:46:05.897879 | 1,499,359,565.897879 | 84,293 |
pythondev | help | <@Meg> I was going to suggest `on_success` with a handler to write results to the db | 2017-07-06T16:47:00.925435 | Patty | pythondev_help_Patty_2017-07-06T16:47:00.925435 | 1,499,359,620.925435 | 84,294 |
pythondev | help | you could also get the values from calling it e.g.,: ```
result = task.apply_async(*args, **kwargs)
result.collect() # after processing is complete this list grows``` | 2017-07-06T16:49:46.010520 | Patty | pythondev_help_Patty_2017-07-06T16:49:46.010520 | 1,499,359,786.01052 | 84,295 |
pythondev | help | <http://docs.celeryproject.org/en/latest/reference/celery.result.html> | 2017-07-06T16:50:12.023184 | Patty | pythondev_help_Patty_2017-07-06T16:50:12.023184 | 1,499,359,812.023184 | 84,296 |
pythondev | help | personally i prefer `on_success`, however i would then make sure that if there is an error that you handle responding with either how many were indexed, or bail the whole indexing out (probably not this because lol solr reindexing speeds) | 2017-07-06T16:52:46.100471 | Patty | pythondev_help_Patty_2017-07-06T16:52:46.100471 | 1,499,359,966.100471 | 84,297 |
pythondev | help | or you can consider ANY indexing a “success” and still use `on_success` | 2017-07-06T16:53:09.112236 | Patty | pythondev_help_Patty_2017-07-06T16:53:09.112236 | 1,499,359,989.112236 | 84,298 |
pythondev | help | man, i miss my job where i did a ton of celery and solr | 2017-07-06T16:53:19.117507 | Patty | pythondev_help_Patty_2017-07-06T16:53:19.117507 | 1,499,359,999.117507 | 84,299 |
pythondev | help | Yeah, I'll probably do that in the master task, combined with polling of the subtasks. When the subtasks complete, the master will finish as well, and then can handle success, failure, etc | 2017-07-06T17:39:17.384827 | Meg | pythondev_help_Meg_2017-07-06T17:39:17.384827 | 1,499,362,757.384827 | 84,300 |
pythondev | help | Oh so Joe suggests it and now it's okay the master task blocks! table flip /s | 2017-07-06T17:46:43.561141 | Beula | pythondev_help_Beula_2017-07-06T17:46:43.561141 | 1,499,363,203.561141 | 84,301 |
pythondev | help | Is abort() not a flask function anymore? | 2017-07-06T18:01:06.895541 | Sherry | pythondev_help_Sherry_2017-07-06T18:01:06.895541 | 1,499,364,066.895541 | 84,302 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.