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 | Then always use `requirements.lock.txt` to install dependencies | 2017-08-11T05:47:43.625710 | Collette | pythondev_help_Collette_2017-08-11T05:47:43.625710 | 1,502,430,463.62571 | 89,503 |
pythondev | help | I do a `<http://requirements.in|requirements.in>` where I just list the requirements without versions, then `pip-compile --output-file requirements.txt <http://requirements.in|requirements.in>` | 2017-08-11T05:49:00.650243 | Junita | pythondev_help_Junita_2017-08-11T05:49:00.650243 | 1,502,430,540.650243 | 89,504 |
pythondev | help | and that maintains the exact versions. | 2017-08-11T05:49:05.652092 | Junita | pythondev_help_Junita_2017-08-11T05:49:05.652092 | 1,502,430,545.652092 | 89,505 |
pythondev | help | Or that, yes, using `pip-compile` flow | 2017-08-11T05:49:16.655465 | Collette | pythondev_help_Collette_2017-08-11T05:49:16.655465 | 1,502,430,556.655465 | 89,506 |
pythondev | help | i then use a service called PyUp I think it is to submit PRs when my stuff needs to be updated. | 2017-08-11T05:49:26.658730 | Junita | pythondev_help_Junita_2017-08-11T05:49:26.658730 | 1,502,430,566.65873 | 89,507 |
pythondev | help | It’s a pretty nice workflow, but yup, just one of a couple possibilities | 2017-08-11T05:49:37.662259 | Junita | pythondev_help_Junita_2017-08-11T05:49:37.662259 | 1,502,430,577.662259 | 89,508 |
pythondev | help | But `requirements.txt` contains not only exact versions of dependencies, but exact versions of dependencies' dependencies | 2017-08-11T05:49:56.668108 | Collette | pythondev_help_Collette_2017-08-11T05:49:56.668108 | 1,502,430,596.668108 | 89,509 |
pythondev | help | oh right good point | 2017-08-11T05:50:15.674262 | Junita | pythondev_help_Junita_2017-08-11T05:50:15.674262 | 1,502,430,615.674262 | 89,510 |
pythondev | help | That's the point of having two different requirements files | 2017-08-11T05:50:16.674772 | Collette | pythondev_help_Collette_2017-08-11T05:50:16.674772 | 1,502,430,616.674772 | 89,511 |
pythondev | help | In that case, the file with exact versions is often called a "lock" file | 2017-08-11T05:50:49.685400 | Collette | pythondev_help_Collette_2017-08-11T05:50:49.685400 | 1,502,430,649.6854 | 89,512 |
pythondev | help | a nice thing about the `pip-compile` (not sure if others offer this as well) is it adds comments about where the dependencies come from | 2017-08-11T05:51:06.690998 | Junita | pythondev_help_Junita_2017-08-11T05:51:06.690998 | 1,502,430,666.690998 | 89,513 |
pythondev | help | yeah I guess that’s a good point, it might be better to use that naming scheme | 2017-08-11T05:51:28.698059 | Junita | pythondev_help_Junita_2017-08-11T05:51:28.698059 | 1,502,430,688.698059 | 89,514 |
pythondev | help | > it might be better to use that naming scheme
Unless there's a tool that requires a specific naming, like `pbr` which expects `requirements.txt` file in the root of the repository | 2017-08-11T05:52:40.720942 | Collette | pythondev_help_Collette_2017-08-11T05:52:40.720942 | 1,502,430,760.720942 | 89,515 |
pythondev | help | (I personally don't like it, I'd rather have a way to explicitly specify the path to requirements in the `setup.cfg`, but I've managed to overcome this by symlinking `requirements/runtime.txt` to `requirements.txt`) | 2017-08-11T05:53:34.738452 | Collette | pythondev_help_Collette_2017-08-11T05:53:34.738452 | 1,502,430,814.738452 | 89,516 |
pythondev | help | yeah I’ve never used that | 2017-08-11T05:54:51.762859 | Junita | pythondev_help_Junita_2017-08-11T05:54:51.762859 | 1,502,430,891.762859 | 89,517 |
pythondev | help | I need help sourcing ~/.zshrc | 2017-08-11T07:19:10.187436 | Susanne | pythondev_help_Susanne_2017-08-11T07:19:10.187436 | 1,502,435,950.187436 | 89,518 |
pythondev | help | <https://stackoverflow.com/questions/22394367/zsh-error-export54-not-valid-in-this-context> | 2017-08-11T07:25:15.285005 | Meg | pythondev_help_Meg_2017-08-11T07:25:15.285005 | 1,502,436,315.285005 | 89,519 |
pythondev | help | weird, it's complaining about an `export` on line#87 but your rc file only goes to 86 | 2017-08-11T07:25:30.289198 | Carri | pythondev_help_Carri_2017-08-11T07:25:30.289198 | 1,502,436,330.289198 | 89,520 |
pythondev | help | > source $ZSH/oh-my-zsh.sh | 2017-08-11T07:25:50.294742 | Suellen | pythondev_help_Suellen_2017-08-11T07:25:50.294742 | 1,502,436,350.294742 | 89,521 |
pythondev | help | shell probably concatenates them and calculated a line number after | 2017-08-11T07:26:17.302462 | Suellen | pythondev_help_Suellen_2017-08-11T07:26:17.302462 | 1,502,436,377.302462 | 89,522 |
pythondev | help | I have that line in my `~/.zshrc` and no complaints | 2017-08-11T07:27:12.317219 | Carri | pythondev_help_Carri_2017-08-11T07:27:12.317219 | 1,502,436,432.317219 | 89,523 |
pythondev | help | So how would you guys recommend I fix it? | 2017-08-11T07:39:58.520077 | Susanne | pythondev_help_Susanne_2017-08-11T07:39:58.520077 | 1,502,437,198.520077 | 89,524 |
pythondev | help | did you paste the entire `.zshrc` file ? because it complaining about a line that doesn't exist is somewhat odd | 2017-08-11T07:43:17.572546 | Carri | pythondev_help_Carri_2017-08-11T07:43:17.572546 | 1,502,437,397.572546 | 89,525 |
pythondev | help | if you had an `export $SOME_VAR=` line, the problem would definitely be the `$` which isn't allowed in that context | 2017-08-11T07:43:52.581697 | Carri | pythondev_help_Carri_2017-08-11T07:43:52.581697 | 1,502,437,432.581697 | 89,526 |
pythondev | help | Yea | 2017-08-11T07:50:57.697697 | Susanne | pythondev_help_Susanne_2017-08-11T07:50:57.697697 | 1,502,437,857.697697 | 89,527 |
pythondev | help | Idj where it would be or how to check | 2017-08-11T07:51:27.706146 | Susanne | pythondev_help_Susanne_2017-08-11T07:51:27.706146 | 1,502,437,887.706146 | 89,528 |
pythondev | help | `grep -r 'export $' ~` | 2017-08-11T07:52:43.726705 | Carri | pythondev_help_Carri_2017-08-11T07:52:43.726705 | 1,502,437,963.726705 | 89,529 |
pythondev | help | Just for interesting, does someone use <http://xon.sh/> ? | 2017-08-11T08:37:08.566454 | Shelba | pythondev_help_Shelba_2017-08-11T08:37:08.566454 | 1,502,440,628.566454 | 89,530 |
pythondev | help | Hello all- IT Talent Advocate here in Richmond, Virginia. Happy to help with any resume reviews if needed-I work in the IT staffing industry and am happy to help with any resume reviews, job seeking advice, etc. <#C64GEEM7U|job_advice> <#C07EFMZ1N|help> | 2017-08-11T08:50:56.874711 | Neal | pythondev_help_Neal_2017-08-11T08:50:56.874711 | 1,502,441,456.874711 | 89,531 |
pythondev | help | I saw a demo of it <@Shelba> but nerver used it myself. I should try it one day | 2017-08-11T08:52:24.908533 | Ciera | pythondev_help_Ciera_2017-08-11T08:52:24.908533 | 1,502,441,544.908533 | 89,532 |
pythondev | help | welcome <@Neal> :wave: | 2017-08-11T08:52:42.915910 | Ciera | pythondev_help_Ciera_2017-08-11T08:52:42.915910 | 1,502,441,562.91591 | 89,533 |
pythondev | help | thank you <@Ciera> | 2017-08-11T09:07:51.302445 | Neal | pythondev_help_Neal_2017-08-11T09:07:51.302445 | 1,502,442,471.302445 | 89,534 |
pythondev | help | Does get what this means? (from scapy reading pcap file)
```
b'\x00P\xeeF\x14\r\xa2r\xa2)$\x95P\x10\x00\x1e\xf3\xba\x00\x00\x00\x00\x00\x00\x00\x00'
```
I thought it was supposed to represent binary but what does ‘\x00P’ mean? and ‘\xeeF’? I expected the value to all be hex based to represent binary data but theres a few chars that throw me through a loop? or is it that the ‘P’ is just what the hex value represents in ascii? | 2017-08-11T11:03:09.123858 | Marilyn | pythondev_help_Marilyn_2017-08-11T11:03:09.123858 | 1,502,449,389.123858 | 89,535 |
pythondev | help | It's `\x00` followed by `P`, followed by `\xee`, then `F`, etc | 2017-08-11T11:04:55.188747 | Gabriele | pythondev_help_Gabriele_2017-08-11T11:04:55.188747 | 1,502,449,495.188747 | 89,536 |
pythondev | help | But is it really supposed to be ‘\x00’ followed by ‘\x50’ | 2017-08-11T11:05:39.216786 | Marilyn | pythondev_help_Marilyn_2017-08-11T11:05:39.216786 | 1,502,449,539.216786 | 89,537 |
pythondev | help | They're the same thing | 2017-08-11T11:05:45.220555 | Gabriele | pythondev_help_Gabriele_2017-08-11T11:05:45.220555 | 1,502,449,545.220555 | 89,538 |
pythondev | help | which gets printed as ‘P’ | 2017-08-11T11:05:47.221767 | Marilyn | pythondev_help_Marilyn_2017-08-11T11:05:47.221767 | 1,502,449,547.221767 | 89,539 |
pythondev | help | Yeah. It's just showing you the bytes as printable characters where possible. | 2017-08-11T11:06:12.236386 | Gabriele | pythondev_help_Gabriele_2017-08-11T11:06:12.236386 | 1,502,449,572.236386 | 89,540 |
pythondev | help | Ahhhhh, is there a way to force python to print the bye chars | 2017-08-11T11:06:40.254001 | Marilyn | pythondev_help_Marilyn_2017-08-11T11:06:40.254001 | 1,502,449,600.254001 | 89,541 |
pythondev | help | what would you like to see? | 2017-08-11T11:07:18.277339 | Gabriele | pythondev_help_Gabriele_2017-08-11T11:07:18.277339 | 1,502,449,638.277339 | 89,542 |
pythondev | help | the `\x50` not the ascii characters | 2017-08-11T11:07:40.290774 | Marilyn | pythondev_help_Marilyn_2017-08-11T11:07:40.290774 | 1,502,449,660.290774 | 89,543 |
pythondev | help | I don't have an interpreter here to test, but this should give you some ideas: <https://stackoverflow.com/questions/12214801/print-a-string-as-hex-bytes> | 2017-08-11T11:09:08.343462 | Gabriele | pythondev_help_Gabriele_2017-08-11T11:09:08.343462 | 1,502,449,748.343462 | 89,544 |
pythondev | help | That's showing the values rather than the escape code, but it's rare that anyone needs the backslash | 2017-08-11T11:09:33.358742 | Gabriele | pythondev_help_Gabriele_2017-08-11T11:09:33.358742 | 1,502,449,773.358742 | 89,545 |
pythondev | help | <@Gabriele> :taco: thanks! | 2017-08-11T11:11:58.444193 | Marilyn | pythondev_help_Marilyn_2017-08-11T11:11:58.444193 | 1,502,449,918.444193 | 89,546 |
pythondev | help | happy to help | 2017-08-11T11:12:48.473885 | Gabriele | pythondev_help_Gabriele_2017-08-11T11:12:48.473885 | 1,502,449,968.473885 | 89,547 |
pythondev | help | <@Gabriele> Slack needs a built-in python interpreter for us. | 2017-08-11T11:29:19.070294 | Meghan | pythondev_help_Meghan_2017-08-11T11:29:19.070294 | 1,502,450,959.070294 | 89,548 |
pythondev | help | that would be handy | 2017-08-11T11:34:51.271873 | Gabriele | pythondev_help_Gabriele_2017-08-11T11:34:51.271873 | 1,502,451,291.271873 | 89,549 |
pythondev | help | Maybe someone should make one. Concern would be to prevent it from doing anything bad. Maybe no imports and no opens. | 2017-08-11T11:36:38.336468 | Meghan | pythondev_help_Meghan_2017-08-11T11:36:38.336468 | 1,502,451,398.336468 | 89,550 |
pythondev | help | That actually looks easy enough to do, I might see what I can do this weekend. | 2017-08-11T11:48:21.748323 | Meghan | pythondev_help_Meghan_2017-08-11T11:48:21.748323 | 1,502,452,101.748323 | 89,551 |
pythondev | help | <@Beula> want to have a docker container running snippet we post here with the help of <@Alesia> | 2017-08-11T12:09:39.491059 | Ciera | pythondev_help_Ciera_2017-08-11T12:09:39.491059 | 1,502,453,379.491059 | 89,552 |
pythondev | help | but not in the near future :smile: | 2017-08-11T12:09:49.495986 | Ciera | pythondev_help_Ciera_2017-08-11T12:09:49.495986 | 1,502,453,389.495986 | 89,553 |
pythondev | help | snipper? | 2017-08-11T12:10:11.507845 | Beula | pythondev_help_Beula_2017-08-11T12:10:11.507845 | 1,502,453,411.507845 | 89,554 |
pythondev | help | snippet | 2017-08-11T12:10:45.526804 | Ciera | pythondev_help_Ciera_2017-08-11T12:10:45.526804 | 1,502,453,445.526804 | 89,555 |
pythondev | help | autocorrect | 2017-08-11T12:10:49.528602 | Ciera | pythondev_help_Ciera_2017-08-11T12:10:49.528602 | 1,502,453,449.528602 | 89,556 |
pythondev | help | Oh, haha - yeah I will hopefully get on that once I get my twitter lib working | 2017-08-11T12:11:49.561458 | Beula | pythondev_help_Beula_2017-08-11T12:11:49.561458 | 1,502,453,509.561458 | 89,557 |
pythondev | help | <@Carri> I did and now I cant enter any commands now | 2017-08-11T12:23:39.944431 | Susanne | pythondev_help_Susanne_2017-08-11T12:23:39.944431 | 1,502,454,219.944431 | 89,558 |
pythondev | help | grep: /Users/frederickalcantara/Applications/Gitter.app/Contents/Frameworks/SocketRocket.framework/Modules: No such file or directory
grep: /Users/frederickalcantara/bin/subl: No such file or directory | 2017-08-11T12:24:37.975653 | Susanne | pythondev_help_Susanne_2017-08-11T12:24:37.975653 | 1,502,454,277.975653 | 89,559 |
pythondev | help | I got these two messages? | 2017-08-11T12:24:47.980768 | Susanne | pythondev_help_Susanne_2017-08-11T12:24:47.980768 | 1,502,454,287.980768 | 89,560 |
pythondev | help | you only have 1 export statement thats actually being used… i’d delete all the commented out lines and see if that helps. | 2017-08-11T12:30:09.151973 | Orpha | pythondev_help_Orpha_2017-08-11T12:30:09.151973 | 1,502,454,609.151973 | 89,561 |
pythondev | help | Nvm I got a while list of stuff lol | 2017-08-11T12:30:48.172934 | Susanne | pythondev_help_Susanne_2017-08-11T12:30:48.172934 | 1,502,454,648.172934 | 89,562 |
pythondev | help | Anybody know of any other libraries that let's you connect with SMB shares? I found pysmb (<https://github.com/miketeo/pysmb>), but it says it's experimental, and I wasn't sure if there was another option out there. | 2017-08-11T15:00:39.958460 | Rolland | pythondev_help_Rolland_2017-08-11T15:00:39.958460 | 1,502,463,639.95846 | 89,563 |
pythondev | help | How would you scale this: if on a thumbnail image with width 454, height 315 you have a position like 356, 266 translates to pos x,y on the image as 817, 567 ...I'm getting the position from a scaled image on the browser. Also if of 30,30 would translate too? | 2017-08-11T16:39:06.641498 | Beverley | pythondev_help_Beverley_2017-08-11T16:39:06.641498 | 1,502,469,546.641498 | 89,564 |
pythondev | help | I think if the image is scaled using some actual scaling procedure then this wouldn't be valid but if you're just looking where the point would be proportionally on a different size image then you could use: `x1 / initial width = x2 / larger width` and `y1 / initial height = y2 / larger height` | 2017-08-11T16:47:17.854870 | Antionette | pythondev_help_Antionette_2017-08-11T16:47:17.854870 | 1,502,470,037.85487 | 89,565 |
pythondev | help | that's what I wanted, there's another part related if you had a grid of pixels 30*30 would be let's say [math] = 50*50 | 2017-08-11T16:51:44.967393 | Beverley | pythondev_help_Beverley_2017-08-11T16:51:44.967393 | 1,502,470,304.967393 | 89,566 |
pythondev | help | Sorry, I don't think I understand what you're asking | 2017-08-11T16:55:47.071193 | Antionette | pythondev_help_Antionette_2017-08-11T16:55:47.071193 | 1,502,470,547.071193 | 89,567 |
pythondev | help | if I wanted to crop out a section of the image based on the same info, with the translated x,y. I have a grid of 30 by 30 pixels (900 pixels on the thumbnail) so if on the thumbnail it was 356, 266 it's now 640,478. How big will the grid be on the main image width and height? | 2017-08-11T17:03:37.270842 | Beverley | pythondev_help_Beverley_2017-08-11T17:03:37.270842 | 1,502,471,017.270842 | 89,568 |
pythondev | help | figured it out | 2017-08-11T17:09:41.413263 | Beverley | pythondev_help_Beverley_2017-08-11T17:09:41.413263 | 1,502,471,381.413263 | 89,569 |
pythondev | help | :+1: | 2017-08-11T17:09:47.415527 | Antionette | pythondev_help_Antionette_2017-08-11T17:09:47.415527 | 1,502,471,387.415527 | 89,570 |
pythondev | help | getting this error ``` print time.time()
UnboundLocalError: local variable 'time' referenced before assignment
``` | 2017-08-11T19:13:39.486613 | Beverley | pythondev_help_Beverley_2017-08-11T19:13:39.486613 | 1,502,478,819.486613 | 89,571 |
pythondev | help | even though I've imported time ```from PIL import Image
from gallery.models import random_filename, ThumbnailCache, Area
from memoize import memoize
import json
import time``` | 2017-08-11T19:13:59.490492 | Beverley | pythondev_help_Beverley_2017-08-11T19:13:59.490492 | 1,502,478,839.490492 | 89,572 |
pythondev | help | ```Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 147, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/samuel/Documents/code/revamp/gallery/views.py", line 241, in render_part
response['img-src'] = render_image(image, (img_x, img_y), variance, switch_color, expand, keep_perspective, colors, new_color, area_id, width_ratio, height_ratio)
File "/home/samuel/Documents/code/revamp/gallery/colorfest.py", line 198, in render_image
print time.time()
UnboundLocalError: local variable 'time' referenced before assignment
``` | 2017-08-11T19:16:55.524476 | Beverley | pythondev_help_Beverley_2017-08-11T19:16:55.524476 | 1,502,479,015.524476 | 89,573 |
pythondev | help | Could anyone know how to fix this bug... | 2017-08-11T19:28:07.644992 | Beverley | pythondev_help_Beverley_2017-08-11T19:28:07.644992 | 1,502,479,687.644992 | 89,574 |
pythondev | help | What are you expecting the output to look like? | 2017-08-11T19:28:23.647782 | Deedee | pythondev_help_Deedee_2017-08-11T19:28:23.647782 | 1,502,479,703.647782 | 89,575 |
pythondev | help | ```for _ in range(width * height):
print "{0}".format(time.time())
if not start_time:
start_time = time.time()
if img_width == width: #checks if width exceeded and jumps to next row
img_height += 1
img_width = 0
positions.append([img_width, img_height])
counter += 1
if counter%10 == 0:
end_time = time.time()
start_time = 0 #Reset Start Time
time = round((end_time - start_time)/10)
remaining = (width*height) - counter
seconds = time * remaining
m, s = divmod(seconds, 60)
h, m = divmod(m, 60)
h,m,s = round(h),round(m),round(s)
percentage = float(counter)/(width * height)
percentage *= 100
print "Step 1: {0}{3} \t {1}/{2} \t {4}:{5}:{6}".format(round(percentage, 2), counter, (width *height),"%",h,m,s)
img_width += 1
``` | 2017-08-11T19:28:31.649082 | Beverley | pythondev_help_Beverley_2017-08-11T19:28:31.649082 | 1,502,479,711.649082 | 89,576 |
pythondev | help | sorry figured it out | 2017-08-11T19:29:29.659213 | Beverley | pythondev_help_Beverley_2017-08-11T19:29:29.659213 | 1,502,479,769.659213 | 89,577 |
pythondev | help | when posting lines of code like the one you just did, instead of triple backticks, try the "+" button at the left and select code snippet option | 2017-08-11T19:29:33.659986 | Deedee | pythondev_help_Deedee_2017-08-11T19:29:33.659986 | 1,502,479,773.659986 | 89,578 |
pythondev | help | okay | 2017-08-11T19:29:37.660701 | Deedee | pythondev_help_Deedee_2017-08-11T19:29:37.660701 | 1,502,479,777.660701 | 89,579 |
pythondev | help | ok now I know what it's for | 2017-08-11T19:29:56.664236 | Beverley | pythondev_help_Beverley_2017-08-11T19:29:56.664236 | 1,502,479,796.664236 | 89,580 |
pythondev | help | Do you guys know how to install fasd in your command in zsh? | 2017-08-11T22:54:21.964761 | Susanne | pythondev_help_Susanne_2017-08-11T22:54:21.964761 | 1,502,492,061.964761 | 89,581 |
pythondev | help | <@Susanne> I deleted your cross post, please avoid crossposting in the future | 2017-08-11T23:06:55.020217 | Beula | pythondev_help_Beula_2017-08-11T23:06:55.020217 | 1,502,492,815.020217 | 89,582 |
pythondev | help | Ok, Can I post it to one section at least? | 2017-08-11T23:07:36.023210 | Susanne | pythondev_help_Susanne_2017-08-11T23:07:36.023210 | 1,502,492,856.02321 | 89,583 |
pythondev | help | Yeah, this one is still here... We just discourage cross posting (I deleted it from <#C07EFN21K|random> ) | 2017-08-11T23:08:42.028192 | Beula | pythondev_help_Beula_2017-08-11T23:08:42.028192 | 1,502,492,922.028192 | 89,584 |
pythondev | help | ok | 2017-08-11T23:08:55.029023 | Susanne | pythondev_help_Susanne_2017-08-11T23:08:55.029023 | 1,502,492,935.029023 | 89,585 |
pythondev | help | Hi, since numpy is for mathematical calculation how can I create this array, from pos 640,478 as x,y and the top left of a square grid 30*30 pixels (900 pixels) | 2017-08-12T02:00:31.650630 | Beverley | pythondev_help_Beverley_2017-08-12T02:00:31.650630 | 1,502,503,231.65063 | 89,586 |
pythondev | help | anyone know how can I get output of time in h:m:s from seconds | 2017-08-12T02:30:17.746786 | Beverley | pythondev_help_Beverley_2017-08-12T02:30:17.746786 | 1,502,505,017.746786 | 89,587 |
pythondev | help | hours: minute: seconds | 2017-08-12T02:30:39.748193 | Beverley | pythondev_help_Beverley_2017-08-12T02:30:39.748193 | 1,502,505,039.748193 | 89,588 |
pythondev | help | the input is seconds remaining | 2017-08-12T02:30:59.749271 | Beverley | pythondev_help_Beverley_2017-08-12T02:30:59.749271 | 1,502,505,059.749271 | 89,589 |
pythondev | help | This is probably what you're after | 2017-08-12T02:32:55.755966 | Micki | pythondev_help_Micki_2017-08-12T02:32:55.755966 | 1,502,505,175.755966 | 89,590 |
pythondev | help | <https://docs.python.org/3/library/datetime.html#timedelta-objects>
```
from datetime import timedelta
delta = timedelta(seconds=foo)
"%s:%s:%s" % (delta.hours, delta.minutes, delta.seconds)
``` | 2017-08-12T02:34:29.760929 | Micki | pythondev_help_Micki_2017-08-12T02:34:29.760929 | 1,502,505,269.760929 | 89,591 |
pythondev | help | yes i can tell it will work thanks | 2017-08-12T02:35:06.763164 | Beverley | pythondev_help_Beverley_2017-08-12T02:35:06.763164 | 1,502,505,306.763164 | 89,592 |
pythondev | help | I have a microservice providing timeseries data to a REST API. I want to always have the API return a maximum of 1000 values for each request, that means I will somehow have to resample the values. Can someone advice me how to do that? | 2017-08-12T02:49:41.809147 | Nery | pythondev_help_Nery_2017-08-12T02:49:41.809147 | 1,502,506,181.809147 | 89,593 |
pythondev | help | okay in two words, about problem..
I have the schema file <https://github.com/MichaelYusko/Geijutsu/blob/master/geijutsu/schema.py> and the basic idea, it’s validate a dict object.
For example
```
# Test class
from geijutsu import schema
class User(schema.BaseSchema):
name = schema.Str(max_length=10)
age = <http://schema.Int|schema.Int>(required=True)
user = User({'name': 'Mike', 'age': 10})
```
If everything is ok, need to return original object `{'name': 'Mike', 'age': 10}`
If data something like that `{'name': 'Mike', 'age': 'AGE'}`
need to return `{'age': 'Field must be integer'}`
I have some basic structure of project, but I need some advices, how I can improve code/structure and etc..
Thanks guys! | 2017-08-12T13:51:41.585001 | Bella | pythondev_help_Bella_2017-08-12T13:51:41.585001 | 1,502,545,901.585001 | 89,594 |
pythondev | help | :slightly_smiling_face: | 2017-08-12T14:21:25.743699 | Bella | pythondev_help_Bella_2017-08-12T14:21:25.743699 | 1,502,547,685.743699 | 89,595 |
pythondev | help | does anyone have experience deploying a REST-based django service in the cloud? | 2017-08-12T21:57:01.661345 | Scottie | pythondev_help_Scottie_2017-08-12T21:57:01.661345 | 1,502,575,021.661345 | 89,596 |
pythondev | help | <@Scottie> post in <#C0LMFRMB5|django> | 2017-08-12T23:51:31.026051 | Beula | pythondev_help_Beula_2017-08-12T23:51:31.026051 | 1,502,581,891.026051 | 89,597 |
pythondev | help | <@Scottie> | 2017-08-14T06:35:03.204936 | Gala | pythondev_help_Gala_2017-08-14T06:35:03.204936 | 1,502,692,503.204936 | 89,598 |
pythondev | help | didn't you find any solution in the internet ? | 2017-08-14T06:35:15.208438 | Gala | pythondev_help_Gala_2017-08-14T06:35:15.208438 | 1,502,692,515.208438 | 89,599 |
pythondev | help | you can deploy your django project to heroku , it's a free service cloud hosting and storage | 2017-08-14T06:35:40.214999 | Gala | pythondev_help_Gala_2017-08-14T06:35:40.214999 | 1,502,692,540.214999 | 89,600 |
pythondev | help | hey everyone , this my project deveoped with python | 2017-08-14T07:08:43.738747 | Gala | pythondev_help_Gala_2017-08-14T07:08:43.738747 | 1,502,694,523.738747 | 89,601 |
pythondev | help | and i need some feedback | 2017-08-14T07:08:53.741358 | Gala | pythondev_help_Gala_2017-08-14T07:08:53.741358 | 1,502,694,533.741358 | 89,602 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.