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 like trying to scale "horizontally" | 2017-12-20T14:35:25.000315 | Winnifred | pythondev_help_Winnifred_2017-12-20T14:35:25.000315 | 1,513,780,525.000315 | 105,403 |
pythondev | help | if you want speed with ProcessPoolExecutor:
try to reduce the amount of data transmitted
Giving each worker a huge data structure and getting it back is generally not good
Giving a small piece of data so that each worker completes in about 0.1s is generally not good too | 2017-12-20T14:35:26.000238 | Suellen | pythondev_help_Suellen_2017-12-20T14:35:26.000238 | 1,513,780,526.000238 | 105,404 |
pythondev | help | It really depends on what your worker function does | 2017-12-20T14:35:40.000498 | Collette | pythondev_help_Collette_2017-12-20T14:35:40.000498 | 1,513,780,540.000498 | 105,405 |
pythondev | help | Sounds good. The worker function checks at a certain index in a list if it exists, then have some Regex that grabs a piece of it | 2017-12-20T14:36:05.000457 | Myong | pythondev_help_Myong_2017-12-20T14:36:05.000457 | 1,513,780,565.000457 | 105,406 |
pythondev | help | And which pool you're using | 2017-12-20T14:36:07.000178 | Collette | pythondev_help_Collette_2017-12-20T14:36:07.000178 | 1,513,780,567.000178 | 105,407 |
pythondev | help | I'm basically converting lat and long in degrees minutes seconds to lat and long in decimal form | 2017-12-20T14:36:24.000175 | Myong | pythondev_help_Myong_2017-12-20T14:36:24.000175 | 1,513,780,584.000175 | 105,408 |
pythondev | help | for a few thousand entries | 2017-12-20T14:36:28.000429 | Myong | pythondev_help_Myong_2017-12-20T14:36:28.000429 | 1,513,780,588.000429 | 105,409 |
pythondev | help | I'm using processprool atm | 2017-12-20T14:36:41.000606 | Myong | pythondev_help_Myong_2017-12-20T14:36:41.000606 | 1,513,780,601.000606 | 105,410 |
pythondev | help | <@Myong> if you'll chunk the data by cpu cores, don't forget about grouper recipe from <https://docs.python.org/3/library/itertools.html> | 2017-12-20T14:37:01.000738 | Collette | pythondev_help_Collette_2017-12-20T14:37:01.000738 | 1,513,780,621.000738 | 105,411 |
pythondev | help | eli5: when would you guys use processpool vs. threadpool? what's the core difference? | 2017-12-20T14:37:31.000499 | Winnifred | pythondev_help_Winnifred_2017-12-20T14:37:31.000499 | 1,513,780,651.000499 | 105,412 |
pythondev | help | And try switching to ThreadPoolExecutor - it may reduce execution times significantly | 2017-12-20T14:37:44.000446 | Collette | pythondev_help_Collette_2017-12-20T14:37:44.000446 | 1,513,780,664.000446 | 105,413 |
pythondev | help | I think it's based on IO and CPU usage | 2017-12-20T14:37:58.000390 | Myong | pythondev_help_Myong_2017-12-20T14:37:58.000390 | 1,513,780,678.00039 | 105,414 |
pythondev | help | Okay will do | 2017-12-20T14:38:07.000432 | Myong | pythondev_help_Myong_2017-12-20T14:38:07.000432 | 1,513,780,687.000432 | 105,415 |
pythondev | help | <@Collette> GIL though | 2017-12-20T14:38:58.000321 | Suellen | pythondev_help_Suellen_2017-12-20T14:38:58.000321 | 1,513,780,738.000321 | 105,416 |
pythondev | help | GIL only applies to bytecode execution | 2017-12-20T14:39:42.000320 | Collette | pythondev_help_Collette_2017-12-20T14:39:42.000320 | 1,513,780,782.00032 | 105,417 |
pythondev | help | What should i be using groupby for? | 2017-12-20T14:39:50.000117 | Myong | pythondev_help_Myong_2017-12-20T14:39:50.000117 | 1,513,780,790.000117 | 105,418 |
pythondev | help | doesn't kbman intend to compute stuff massively? | 2017-12-20T14:40:16.000208 | Suellen | pythondev_help_Suellen_2017-12-20T14:40:16.000208 | 1,513,780,816.000208 | 105,419 |
pythondev | help | If you do lots of math via numpy or `math` (which are basically C), you may be avoiding GIL at all | 2017-12-20T14:40:54.000488 | Collette | pythondev_help_Collette_2017-12-20T14:40:54.000488 | 1,513,780,854.000488 | 105,420 |
pythondev | help | I'm, for the most part, only doing regex | 2017-12-20T14:41:16.000004 | Myong | pythondev_help_Myong_2017-12-20T14:41:16.000004 | 1,513,780,876.000004 | 105,421 |
pythondev | help | :thinking_face: makes sense | 2017-12-20T14:41:17.000193 | Suellen | pythondev_help_Suellen_2017-12-20T14:41:17.000193 | 1,513,780,877.000193 | 105,422 |
pythondev | help | oh | 2017-12-20T14:41:21.000019 | Suellen | pythondev_help_Suellen_2017-12-20T14:41:21.000019 | 1,513,780,881.000019 | 105,423 |
pythondev | help | But it's a pretty crazy regex token though it picks up everthing I need | 2017-12-20T14:41:42.000576 | Myong | pythondev_help_Myong_2017-12-20T14:41:42.000576 | 1,513,780,902.000576 | 105,424 |
pythondev | help | oh? lemme see that regex pattern I love me some regex | 2017-12-20T14:42:30.000657 | Ozie | pythondev_help_Ozie_2017-12-20T14:42:30.000657 | 1,513,780,950.000657 | 105,425 |
pythondev | help | unless you already posted it | 2017-12-20T14:42:39.000032 | Ozie | pythondev_help_Ozie_2017-12-20T14:42:39.000032 | 1,513,780,959.000032 | 105,426 |
pythondev | help | `[-+]?[.]?[\d]+(?:,\d\d\d)*[\.]?\d*(?:[eE][-+]?\d+)` | 2017-12-20T14:42:59.000409 | Myong | pythondev_help_Myong_2017-12-20T14:42:59.000409 | 1,513,780,979.000409 | 105,427 |
pythondev | help | It catches all floats and integers | 2017-12-20T14:43:06.000423 | Myong | pythondev_help_Myong_2017-12-20T14:43:06.000423 | 1,513,780,986.000423 | 105,428 |
pythondev | help | all your values have the `e` for exponent? | 2017-12-20T14:45:02.000676 | Ozie | pythondev_help_Ozie_2017-12-20T14:45:02.000676 | 1,513,781,102.000676 | 105,429 |
pythondev | help | No they do not I am gonna get rid of that | 2017-12-20T14:45:15.000331 | Myong | pythondev_help_Myong_2017-12-20T14:45:15.000331 | 1,513,781,115.000331 | 105,430 |
pythondev | help | yeeee | 2017-12-20T14:45:21.000058 | Ozie | pythondev_help_Ozie_2017-12-20T14:45:21.000058 | 1,513,781,121.000058 | 105,431 |
pythondev | help | It was just from stack overflow | 2017-12-20T14:45:21.000355 | Myong | pythondev_help_Myong_2017-12-20T14:45:21.000355 | 1,513,781,121.000355 | 105,432 |
pythondev | help | no ngetatives either | 2017-12-20T14:45:31.000389 | Myong | pythondev_help_Myong_2017-12-20T14:45:31.000389 | 1,513,781,131.000389 | 105,433 |
pythondev | help | i threw it at <https://regexr.com/> it's my go to for easy tests | 2017-12-20T14:45:34.000344 | Ozie | pythondev_help_Ozie_2017-12-20T14:45:34.000344 | 1,513,781,134.000344 | 105,434 |
pythondev | help | Pretty noob question here:
I'm going through a tutorial and got stuck at linking models because I keep getting FOREIGN KEY constraints failure.
How am I supposed to construct a foreign key in models? | 2017-12-20T14:46:21.000362 | Nathalie | pythondev_help_Nathalie_2017-12-20T14:46:21.000362 | 1,513,781,181.000362 | 105,435 |
pythondev | help | `[-+]?[.]?[\d]+(?:,\d\d\d)*[\.]?\d` this works | 2017-12-20T14:47:24.000217 | Myong | pythondev_help_Myong_2017-12-20T14:47:24.000217 | 1,513,781,244.000217 | 105,436 |
pythondev | help | what about `1` | 2017-12-20T14:47:51.000167 | Ozie | pythondev_help_Ozie_2017-12-20T14:47:51.000167 | 1,513,781,271.000167 | 105,437 |
pythondev | help | it wont pick it up | 2017-12-20T14:47:56.000068 | Ozie | pythondev_help_Ozie_2017-12-20T14:47:56.000068 | 1,513,781,276.000068 | 105,438 |
pythondev | help | o | 2017-12-20T14:48:06.000473 | Myong | pythondev_help_Myong_2017-12-20T14:48:06.000473 | 1,513,781,286.000473 | 105,439 |
pythondev | help | breaking regexes is clearly more interesting than fixing this bug i should be fixing | 2017-12-20T14:48:35.000126 | Ozie | pythondev_help_Ozie_2017-12-20T14:48:35.000126 | 1,513,781,315.000126 | 105,440 |
pythondev | help | Not sure where that one is messing up | 2017-12-20T14:48:50.000109 | Myong | pythondev_help_Myong_2017-12-20T14:48:50.000109 | 1,513,781,330.000109 | 105,441 |
pythondev | help | It doesn't match any single digit number | 2017-12-20T14:49:24.000034 | Myong | pythondev_help_Myong_2017-12-20T14:49:24.000034 | 1,513,781,364.000034 | 105,442 |
pythondev | help | no bueno | 2017-12-20T14:49:39.000180 | Myong | pythondev_help_Myong_2017-12-20T14:49:39.000180 | 1,513,781,379.00018 | 105,443 |
pythondev | help | lol append a `|(\d)` | 2017-12-20T14:49:39.000397 | Ozie | pythondev_help_Ozie_2017-12-20T14:49:39.000397 | 1,513,781,379.000397 | 105,444 |
pythondev | help | the least elegant | 2017-12-20T14:49:50.000075 | Ozie | pythondev_help_Ozie_2017-12-20T14:49:50.000075 | 1,513,781,390.000075 | 105,445 |
pythondev | help | easy enough | 2017-12-20T14:50:21.000129 | Myong | pythondev_help_Myong_2017-12-20T14:50:21.000129 | 1,513,781,421.000129 | 105,446 |
pythondev | help | Will that provide the same output | 2017-12-20T14:50:31.000035 | Myong | pythondev_help_Myong_2017-12-20T14:50:31.000035 | 1,513,781,431.000035 | 105,447 |
pythondev | help | or does that create another group with `re.finall()` | 2017-12-20T14:50:41.000591 | Myong | pythondev_help_Myong_2017-12-20T14:50:41.000591 | 1,513,781,441.000591 | 105,448 |
pythondev | help | oh it would def create another group | 2017-12-20T14:50:59.000017 | Ozie | pythondev_help_Ozie_2017-12-20T14:50:59.000017 | 1,513,781,459.000017 | 105,449 |
pythondev | help | that was a solution, but not a good solution | 2017-12-20T14:51:13.000188 | Ozie | pythondev_help_Ozie_2017-12-20T14:51:13.000188 | 1,513,781,473.000188 | 105,450 |
pythondev | help | no it works actually | 2017-12-20T14:51:32.000180 | Myong | pythondev_help_Myong_2017-12-20T14:51:32.000180 | 1,513,781,492.00018 | 105,451 |
pythondev | help | gives me a single list | 2017-12-20T14:51:39.000334 | Myong | pythondev_help_Myong_2017-12-20T14:51:39.000334 | 1,513,781,499.000334 | 105,452 |
pythondev | help | nice, i still think there's an elegant way to do that | 2017-12-20T14:51:58.000202 | Ozie | pythondev_help_Ozie_2017-12-20T14:51:58.000202 | 1,513,781,518.000202 | 105,453 |
pythondev | help | what if you delete that last `\d` | 2017-12-20T14:52:20.000376 | Ozie | pythondev_help_Ozie_2017-12-20T14:52:20.000376 | 1,513,781,540.000376 | 105,454 |
pythondev | help | i think that's what makes it require 2 numbers | 2017-12-20T14:52:35.000288 | Ozie | pythondev_help_Ozie_2017-12-20T14:52:35.000288 | 1,513,781,555.000288 | 105,455 |
pythondev | help | Might have to go with original one :confused: | 2017-12-20T14:53:01.000280 | Myong | pythondev_help_Myong_2017-12-20T14:53:01.000280 | 1,513,781,581.00028 | 105,456 |
pythondev | help | almost positive | 2017-12-20T14:53:01.000460 | Ozie | pythondev_help_Ozie_2017-12-20T14:53:01.000460 | 1,513,781,581.00046 | 105,457 |
pythondev | help | `[-+]?[.]?[\d]+(?:,\d\d\d)*[\.]?` as opposed to `[-+]?[.]?[\d]+(?:,\d\d\d)*[\.]?\d` | 2017-12-20T14:53:21.000731 | Ozie | pythondev_help_Ozie_2017-12-20T14:53:21.000731 | 1,513,781,601.000731 | 105,458 |
pythondev | help | Yeah the thing is that I need to catch decimals also | 2017-12-20T14:54:15.000593 | Myong | pythondev_help_Myong_2017-12-20T14:54:15.000593 | 1,513,781,655.000593 | 105,459 |
pythondev | help | The original very first one does exactly what I need | 2017-12-20T14:54:27.000726 | Myong | pythondev_help_Myong_2017-12-20T14:54:27.000726 | 1,513,781,667.000726 | 105,460 |
pythondev | help | and it's actually pretty quick | 2017-12-20T14:54:34.000227 | Myong | pythondev_help_Myong_2017-12-20T14:54:34.000227 | 1,513,781,674.000227 | 105,461 |
pythondev | help | We shall see I appreciate the help | 2017-12-20T14:54:41.000418 | Myong | pythondev_help_Myong_2017-12-20T14:54:41.000418 | 1,513,781,681.000418 | 105,462 |
pythondev | help | right on, for me that first one `[-+]?[.]?[\d]+(?:,\d\d\d)*[\.]?\d*(?:[eE][-+]?\d+)` seemed to require the `e` for exponent | 2017-12-20T14:55:11.000056 | Ozie | pythondev_help_Ozie_2017-12-20T14:55:11.000056 | 1,513,781,711.000056 | 105,463 |
pythondev | help | `[-+]?[.]?[\d]+(?:,\d\d\d)*[\.]?\d*` this part seems fine though | 2017-12-20T14:55:45.000802 | Ozie | pythondev_help_Ozie_2017-12-20T14:55:45.000802 | 1,513,781,745.000802 | 105,464 |
pythondev | help | i appreciate the distraction haha | 2017-12-20T14:55:55.000679 | Ozie | pythondev_help_Ozie_2017-12-20T14:55:55.000679 | 1,513,781,755.000679 | 105,465 |
pythondev | help | Hi everyone, I was wondering, is there a good place to find help for locust related scripts? | 2017-12-20T16:44:26.000337 | Mara | pythondev_help_Mara_2017-12-20T16:44:26.000337 | 1,513,788,266.000337 | 105,466 |
pythondev | help | what do you guys like for a minimal queuing system? I am not sure if we need the "distributed" nature of something like celery yet. But if its an easy setup it could be fine. I also saw RQ as well. I am going to try a minimal example setup for processing some work in python through a queue and using docker. we are tryi... | 2017-12-20T17:06:14.000106 | Bruno | pythondev_help_Bruno_2017-12-20T17:06:14.000106 | 1,513,789,574.000106 | 105,467 |
pythondev | help | i used python-rq for a long time but after learning celery i probably would have just used celery. | 2017-12-20T17:10:05.000076 | Johana | pythondev_help_Johana_2017-12-20T17:10:05.000076 | 1,513,789,805.000076 | 105,468 |
pythondev | help | the Python Cookbook has some really good examples too. | 2017-12-20T17:10:14.000129 | Johana | pythondev_help_Johana_2017-12-20T17:10:14.000129 | 1,513,789,814.000129 | 105,469 |
pythondev | help | if you want something minimal. | 2017-12-20T17:10:20.000018 | Johana | pythondev_help_Johana_2017-12-20T17:10:20.000018 | 1,513,789,820.000018 | 105,470 |
pythondev | help | ok cool. so celery is easy to get setup? ill have to check out the cookbook | 2017-12-20T17:11:21.000174 | Bruno | pythondev_help_Bruno_2017-12-20T17:11:21.000174 | 1,513,789,881.000174 | 105,471 |
pythondev | help | does celery need redis? using docker, would it need to talk with a redis container for storage? | 2017-12-20T17:11:59.000466 | Bruno | pythondev_help_Bruno_2017-12-20T17:11:59.000466 | 1,513,789,919.000466 | 105,472 |
pythondev | help | I was curious about the function return type annotations. My Python book used them throughout but I almost never seen it in real code, is it some thing that is generally ignored? | 2017-12-20T17:25:24.000233 | Callie | pythondev_help_Callie_2017-12-20T17:25:24.000233 | 1,513,790,724.000233 | 105,473 |
pythondev | help | celery needs some kind of broker. | 2017-12-20T17:25:49.000293 | Johana | pythondev_help_Johana_2017-12-20T17:25:49.000293 | 1,513,790,749.000293 | 105,474 |
pythondev | help | you can use redis or rabbitmq. | 2017-12-20T17:26:09.000327 | Johana | pythondev_help_Johana_2017-12-20T17:26:09.000327 | 1,513,790,769.000327 | 105,475 |
pythondev | help | oh i was thinking rabbitmq was synonymous with celery | 2017-12-20T17:28:58.000120 | Bruno | pythondev_help_Bruno_2017-12-20T17:28:58.000120 | 1,513,790,938.00012 | 105,476 |
pythondev | help | nope, it’s a broker. they are often used together so probably why you thought that. | 2017-12-20T17:29:44.000008 | Johana | pythondev_help_Johana_2017-12-20T17:29:44.000008 | 1,513,790,984.000008 | 105,477 |
pythondev | help | ah | 2017-12-20T17:29:58.000150 | Bruno | pythondev_help_Bruno_2017-12-20T17:29:58.000150 | 1,513,790,998.00015 | 105,478 |
pythondev | help | when you instantiate celery you pass the connection string to the broker. | 2017-12-20T17:30:15.000087 | Johana | pythondev_help_Johana_2017-12-20T17:30:15.000087 | 1,513,791,015.000087 | 105,479 |
pythondev | help | hmm. in node theres a library called `kue` which is nice since we just import it, and it talks to redis directly to handle the queue. | 2017-12-20T17:30:47.000002 | Bruno | pythondev_help_Bruno_2017-12-20T17:30:47.000002 | 1,513,791,047.000002 | 105,480 |
pythondev | help | ah ok. | 2017-12-20T17:30:58.000313 | Bruno | pythondev_help_Bruno_2017-12-20T17:30:58.000313 | 1,513,791,058.000313 | 105,481 |
pythondev | help | this is my celery config. some of the tasks are loading the database with data as others are computing student mastery of topics and other things. <https://github.com/openstax/biglearn-sparfa-server/blob/master/sparfa_server/celery.py> | 2017-12-20T17:32:26.000020 | Johana | pythondev_help_Johana_2017-12-20T17:32:26.000020 | 1,513,791,146.00002 | 105,482 |
pythondev | help | aside from that you add a task decorator to whatever functions you want to execute async and that’s about it. | 2017-12-20T17:34:31.000324 | Johana | pythondev_help_Johana_2017-12-20T17:34:31.000324 | 1,513,791,271.000324 | 105,483 |
pythondev | help | oh and you have to make sure to run your celery workers process and then run your celery beat process | 2017-12-20T17:37:07.000324 | Johana | pythondev_help_Johana_2017-12-20T17:37:07.000324 | 1,513,791,427.000324 | 105,484 |
pythondev | help | if you want to use celery-beat | 2017-12-20T17:37:22.000215 | Johana | pythondev_help_Johana_2017-12-20T17:37:22.000215 | 1,513,791,442.000215 | 105,485 |
pythondev | help | when using the decorator, it puts the funtion into the queue based on when it does I/O ? | 2017-12-20T17:37:33.000248 | Bruno | pythondev_help_Bruno_2017-12-20T17:37:33.000248 | 1,513,791,453.000248 | 105,486 |
pythondev | help | or just when the function is called | 2017-12-20T17:38:03.000069 | Bruno | pythondev_help_Bruno_2017-12-20T17:38:03.000069 | 1,513,791,483.000069 | 105,487 |
pythondev | help | the latter, wherever you decide to use it in code you will have `.delay()` method. | 2017-12-20T17:38:27.000229 | Johana | pythondev_help_Johana_2017-12-20T17:38:27.000229 | 1,513,791,507.000229 | 105,488 |
pythondev | help | my_async_function.delay() | 2017-12-20T17:38:47.000032 | Johana | pythondev_help_Johana_2017-12-20T17:38:47.000032 | 1,513,791,527.000032 | 105,489 |
pythondev | help | oh wait, with the config. i think i see. so the config is basically scheduling these "loaders" to run at given intervals? | 2017-12-20T17:38:48.000027 | Bruno | pythondev_help_Bruno_2017-12-20T17:38:48.000027 | 1,513,791,528.000027 | 105,490 |
pythondev | help | yep, that part is using celery-beat. | 2017-12-20T17:38:59.000179 | Johana | pythondev_help_Johana_2017-12-20T17:38:59.000179 | 1,513,791,539.000179 | 105,491 |
pythondev | help | ah ok. | 2017-12-20T17:39:01.000511 | Bruno | pythondev_help_Bruno_2017-12-20T17:39:01.000511 | 1,513,791,541.000511 | 105,492 |
pythondev | help | if you’re not running anything on a schedule you can ignore all that. | 2017-12-20T17:39:15.000093 | Johana | pythondev_help_Johana_2017-12-20T17:39:15.000093 | 1,513,791,555.000093 | 105,493 |
pythondev | help | ok. so thats more like running it as a cron setup? | 2017-12-20T17:39:19.000408 | Bruno | pythondev_help_Bruno_2017-12-20T17:39:19.000408 | 1,513,791,559.000408 | 105,494 |
pythondev | help | yea, you can use cron syntax or some others iirc. | 2017-12-20T17:39:45.000247 | Johana | pythondev_help_Johana_2017-12-20T17:39:45.000247 | 1,513,791,585.000247 | 105,495 |
pythondev | help | well, thats interesting. part of this is running on a cron like setup. but that, is processing some data and when work needs to be done, we want to send that to another queue so workers can process it. | 2017-12-20T17:40:04.000309 | Bruno | pythondev_help_Bruno_2017-12-20T17:40:04.000309 | 1,513,791,604.000309 | 105,496 |
pythondev | help | currently this is all in one shitty service and managed through a Thread.js file and is messy. so were going to rebuild it and looking at using node or python. im pushing for python. | 2017-12-20T17:41:00.000294 | Bruno | pythondev_help_Bruno_2017-12-20T17:41:00.000294 | 1,513,791,660.000294 | 105,497 |
pythondev | help | sounds like it would be achievable in celery. | 2017-12-20T17:41:44.000201 | Johana | pythondev_help_Johana_2017-12-20T17:41:44.000201 | 1,513,791,704.000201 | 105,498 |
pythondev | help | so the "thread" is run and looks to see if anything needs to be processed. if it does, it preps it, then starts up to 10 threads to do the work. | 2017-12-20T17:41:56.000101 | Bruno | pythondev_help_Bruno_2017-12-20T17:41:56.000101 | 1,513,791,716.000101 | 105,499 |
pythondev | help | those threads doing the work, we just want as workers to monitor a queue to see when work needs to be done. | 2017-12-20T17:42:25.000191 | Bruno | pythondev_help_Bruno_2017-12-20T17:42:25.000191 | 1,513,791,745.000191 | 105,500 |
pythondev | help | yea, that’s why we have the different queues. you can create different ones for different workers.. you can add priority and other things. | 2017-12-20T17:43:09.000482 | Johana | pythondev_help_Johana_2017-12-20T17:43:09.000482 | 1,513,791,789.000482 | 105,501 |
pythondev | help | ok cool. so why did you switch from RQ to celery? | 2017-12-20T17:43:40.000482 | Bruno | pythondev_help_Bruno_2017-12-20T17:43:40.000482 | 1,513,791,820.000482 | 105,502 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.