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 | <@Gabriele> Yeah there you have a point, `x["y"]` certainly conveys that *x* is a dict. | 2017-07-21T10:36:19.931514 | Ruben | pythondev_help_Ruben_2017-07-21T10:36:19.931514 | 1,500,633,379.931514 | 86,703 |
pythondev | help | ...or at least a mapping type on which you can do indexed lookups. | 2017-07-21T10:38:10.995829 | Ruben | pythondev_help_Ruben_2017-07-21T10:38:10.995829 | 1,500,633,490.995829 | 86,704 |
pythondev | help | Now wouldn't it be fun to override `__getitem__()` to call a memberfunction instead of looking up a value, and have `__call__()` lookup an indexed item? | 2017-07-21T10:39:40.049683 | Ruben | pythondev_help_Ruben_2017-07-21T10:39:40.049683 | 1,500,633,580.049683 | 86,705 |
pythondev | help | You could write `a["save"]` to call functions and `a("age")` to lookup values. | 2017-07-21T10:40:11.067809 | Ruben | pythondev_help_Ruben_2017-07-21T10:40:11.067809 | 1,500,633,611.067809 | 86,706 |
pythondev | help | :joy: | 2017-07-21T10:40:41.085668 | Ruben | pythondev_help_Ruben_2017-07-21T10:40:41.085668 | 1,500,633,641.085668 | 86,707 |
pythondev | help | I'm trying to use Pycharm CE with Flask but I can't seem to configure a interpreter to run `virtualenv/Scripts/flask` or `python -m flask run`. Is there anyway to run Flask applications inside Pycharm without having to buy the pro version? | 2017-07-21T11:28:53.828574 | Fern | pythondev_help_Fern_2017-07-21T11:28:53.828574 | 1,500,636,533.828574 | 86,708 |
pythondev | help | <@Fern> I believe you just need to set the interpreter to the virtualenv Python, then in the run panel you use flask as the script | 2017-07-21T11:36:05.092472 | Beula | pythondev_help_Beula_2017-07-21T11:36:05.092472 | 1,500,636,965.092472 | 86,709 |
pythondev | help | That's not an exclusive pro feature as far as i know | 2017-07-21T11:36:19.101096 | Beula | pythondev_help_Beula_2017-07-21T11:36:19.101096 | 1,500,636,979.101096 | 86,710 |
pythondev | help | How would I reference flask as the script? | 2017-07-21T11:39:38.216346 | Fern | pythondev_help_Fern_2017-07-21T11:39:38.216346 | 1,500,637,178.216346 | 86,711 |
pythondev | help | <@Beula> | 2017-07-21T11:39:45.220685 | Fern | pythondev_help_Fern_2017-07-21T11:39:45.220685 | 1,500,637,185.220685 | 86,712 |
pythondev | help | <@Patty> not possible | 2017-07-21T11:42:14.306547 | Fern | pythondev_help_Fern_2017-07-21T11:42:14.306547 | 1,500,637,334.306547 | 86,713 |
pythondev | help | Send a pic of what you see | 2017-07-21T11:42:37.320343 | Beula | pythondev_help_Beula_2017-07-21T11:42:37.320343 | 1,500,637,357.320343 | 86,714 |
pythondev | help | I'm also stuck on Windows... | 2017-07-21T11:42:56.331161 | Fern | pythondev_help_Fern_2017-07-21T11:42:56.331161 | 1,500,637,376.331161 | 86,715 |
pythondev | help | What does that have to do with the pycharm config? | 2017-07-21T11:43:24.347134 | Beula | pythondev_help_Beula_2017-07-21T11:43:24.347134 | 1,500,637,404.347134 | 86,716 |
pythondev | help | Send a pic of your pycharm window | 2017-07-21T11:43:38.354936 | Beula | pythondev_help_Beula_2017-07-21T11:43:38.354936 | 1,500,637,418.354936 | 86,717 |
pythondev | help | The config | 2017-07-21T11:43:40.356574 | Beula | pythondev_help_Beula_2017-07-21T11:43:40.356574 | 1,500,637,420.356574 | 86,718 |
pythondev | help | Default, which points to my main.py | 2017-07-21T11:43:47.360276 | Fern | pythondev_help_Fern_2017-07-21T11:43:47.360276 | 1,500,637,427.360276 | 86,719 |
pythondev | help | Ignore the script parameters, it was just me playing around | 2017-07-21T11:44:39.389888 | Fern | pythondev_help_Fern_2017-07-21T11:44:39.389888 | 1,500,637,479.389888 | 86,720 |
pythondev | help | Script should point to flask from the virtualenv, if you're in one | 2017-07-21T11:44:39.389959 | Beula | pythondev_help_Beula_2017-07-21T11:44:39.389959 | 1,500,637,479.389959 | 86,721 |
pythondev | help | Flask is the script/executable | 2017-07-21T11:45:05.405061 | Beula | pythondev_help_Beula_2017-07-21T11:45:05.405061 | 1,500,637,505.405061 | 86,722 |
pythondev | help | in `env\Scripts`? | 2017-07-21T11:45:22.414891 | Fern | pythondev_help_Fern_2017-07-21T11:45:22.414891 | 1,500,637,522.414891 | 86,723 |
pythondev | help | `which flask` would show the path on posix | 2017-07-21T11:45:30.420236 | Beula | pythondev_help_Beula_2017-07-21T11:45:30.420236 | 1,500,637,530.420236 | 86,724 |
pythondev | help | yes that's right | 2017-07-21T11:45:48.430221 | Fern | pythondev_help_Fern_2017-07-21T11:45:48.430221 | 1,500,637,548.430221 | 86,725 |
pythondev | help | but I can't use that in Pycharm since it is an EXE file | 2017-07-21T11:46:04.439906 | Fern | pythondev_help_Fern_2017-07-21T11:46:04.439906 | 1,500,637,564.439906 | 86,726 |
pythondev | help | Then be sure to set the working directory in that same window to the project root (where main is) | 2017-07-21T11:46:23.451389 | Beula | pythondev_help_Beula_2017-07-21T11:46:23.451389 | 1,500,637,583.451389 | 86,727 |
pythondev | help | On mobile, I'll check back when I get to my office | 2017-07-21T11:47:10.478501 | Beula | pythondev_help_Beula_2017-07-21T11:47:10.478501 | 1,500,637,630.478501 | 86,728 |
pythondev | help | Windows BS | 2017-07-21T11:47:20.484270 | Fern | pythondev_help_Fern_2017-07-21T11:47:20.484270 | 1,500,637,640.48427 | 86,729 |
pythondev | help | one reason I suggest using a virtual machine | 2017-07-21T11:48:42.532213 | Meg | pythondev_help_Meg_2017-07-21T11:48:42.532213 | 1,500,637,722.532213 | 86,730 |
pythondev | help | eg, docker or vagrant | 2017-07-21T11:48:46.535029 | Meg | pythondev_help_Meg_2017-07-21T11:48:46.535029 | 1,500,637,726.535029 | 86,731 |
pythondev | help | anything other than java or C# on windows is more trouble than its worth, in my experience | 2017-07-21T11:49:07.546703 | Meg | pythondev_help_Meg_2017-07-21T11:49:07.546703 | 1,500,637,747.546703 | 86,732 |
pythondev | help | agree <@Meg> | 2017-07-21T11:49:21.554788 | Fern | pythondev_help_Fern_2017-07-21T11:49:21.554788 | 1,500,637,761.554788 | 86,733 |
pythondev | help | I have Flask running just fine in PyCharm on Windows. Not at the machine now, though. | 2017-07-21T11:54:07.721709 | Gabriele | pythondev_help_Gabriele_2017-07-21T11:54:07.721709 | 1,500,638,047.721709 | 86,734 |
pythondev | help | Community Edition <@Gabriele> ? | 2017-07-21T11:54:30.735212 | Fern | pythondev_help_Fern_2017-07-21T11:54:30.735212 | 1,500,638,070.735212 | 86,735 |
pythondev | help | No, but I don't expect it matters | 2017-07-21T11:54:38.739464 | Gabriele | pythondev_help_Gabriele_2017-07-21T11:54:38.739464 | 1,500,638,078.739464 | 86,736 |
pythondev | help | Pro set's everything up automatically, used it at my last job | 2017-07-21T11:55:05.755342 | Fern | pythondev_help_Fern_2017-07-21T11:55:05.755342 | 1,500,638,105.755342 | 86,737 |
pythondev | help | I never use automatic setup. I would have done it manually | 2017-07-21T11:56:08.791853 | Gabriele | pythondev_help_Gabriele_2017-07-21T11:56:08.791853 | 1,500,638,168.791853 | 86,738 |
pythondev | help | I just filled in the fields as in Joe's screenshot | 2017-07-21T11:56:50.816598 | Gabriele | pythondev_help_Gabriele_2017-07-21T11:56:50.816598 | 1,500,638,210.816598 | 86,739 |
pythondev | help | do you remember what use set the Script file to? | 2017-07-21T11:57:47.849936 | Fern | pythondev_help_Fern_2017-07-21T11:57:47.849936 | 1,500,638,267.849936 | 86,740 |
pythondev | help | No. I might just have a file which contains `app.run()`. | 2017-07-21T11:59:14.900568 | Gabriele | pythondev_help_Gabriele_2017-07-21T11:59:14.900568 | 1,500,638,354.900568 | 86,741 |
pythondev | help | Apparently that's not recommended any more, probably because it doesn't play nicely with other aspects of Flask that I'm not a fan of | 2017-07-21T11:59:51.922237 | Gabriele | pythondev_help_Gabriele_2017-07-21T11:59:51.922237 | 1,500,638,391.922237 | 86,742 |
pythondev | help | kylotan: not a fan of many things | 2017-07-21T12:01:05.969023 | Suellen | pythondev_help_Suellen_2017-07-21T12:01:05.969023 | 1,500,638,465.969023 | 86,743 |
pythondev | help | :slightly_smiling_face: | 2017-07-21T12:01:09.971818 | Suellen | pythondev_help_Suellen_2017-07-21T12:01:09.971818 | 1,500,638,469.971818 | 86,744 |
pythondev | help | Only with flask | 2017-07-21T12:01:36.987555 | Beula | pythondev_help_Beula_2017-07-21T12:01:36.987555 | 1,500,638,496.987555 | 86,745 |
pythondev | help | it is true, I'm pretty unhappy with most software I work with | 2017-07-21T12:03:04.039387 | Gabriele | pythondev_help_Gabriele_2017-07-21T12:03:04.039387 | 1,500,638,584.039387 | 86,746 |
pythondev | help | haha | 2017-07-21T12:03:21.049585 | Fern | pythondev_help_Fern_2017-07-21T12:03:21.049585 | 1,500,638,601.049585 | 86,747 |
pythondev | help | i'm sticking with `app.run()`` for now | 2017-07-21T12:07:10.180066 | Fern | pythondev_help_Fern_2017-07-21T12:07:10.180066 | 1,500,638,830.180066 | 86,748 |
pythondev | help | plt.plot(t, t, 'r--', t, t**2, 'bs', t, t**3, 'g^')
Takes arguments in sets of 3:
> (x-val, y-val, 'color/shape')
Each plots a function.
So `t, t, 'r--'` corresponds to one line, `t, t**2`, 'bs'` to another, and `t, t**3, 'g^'` to another.
'r--', 'bs' and 'g^' indicate color and shape. example: 'g^' stands for green triangles. | 2017-07-21T13:18:32.451264 | Deedee | pythondev_help_Deedee_2017-07-21T13:18:32.451264 | 1,500,643,112.451264 | 86,749 |
pythondev | help | Best way to approach calling function using a dictionary to store the func object as a value. I'm doing this in a class so it doesn't quite work properly the traditional way of literally just using the function object name as the value. | 2017-07-21T13:55:05.606995 | Myong | pythondev_help_Myong_2017-07-21T13:55:05.606995 | 1,500,645,305.606995 | 86,750 |
pythondev | help | Hi, I'm streaming audio from a radio station and want to same time save to upload it to dropbox, But couldn't upload to dropbox, however it perfectly stream and saves on local drive, but can't upload to dropbox, here is the script ``` stream = urllib.request.urlopen(self.stream_url)
start_time = datetime.datetime.now()
# open('stream.mp3', 'wb') as dest
dest = open('recording.ogg', 'wb')
while (datetime.datetime.now() - start_time).seconds <= 30:
print((datetime.datetime.now() - start_time).seconds)
#dest.write(stream.read(1024))
try:
meta = client.files_upload(stream.read(1024), 'recording.ogg', mute=True)
print("Uploaded " + 'recording.ogg')
except:
print("Failed to upload " + 'recording.ogg')``` | 2017-07-21T15:50:28.044753 | Shandi | pythondev_help_Shandi_2017-07-21T15:50:28.044753 | 1,500,652,228.044753 | 86,751 |
pythondev | help | What is client? | 2017-07-21T15:57:58.249262 | Meg | pythondev_help_Meg_2017-07-21T15:57:58.249262 | 1,500,652,678.249262 | 86,752 |
pythondev | help | Hey guys, I've been working on a project, it's about searching for some news daily in GNews through Python... Here's my code:
```from lxml import html
import requests
response = requests.get("<https://news.google.com/news/search/section/q/cfe> méxico")
# Check for request status
if(response.status_code == 200):
pagehtml = html.fromstring(response.text)
# Search for news headlines
news = pagehtml.xpath('//div[@class="KaRWed"] \
/div[@class="deQdld"] \
/c-wiz[@class="PaqQNc"] \
/c-wiz[@class="lPV2Xe"] \
/a[@class="nuEeue"]/text()')
print("\n".join(news))``` | 2017-07-21T21:23:05.166548 | Lana | pythondev_help_Lana_2017-07-21T21:23:05.166548 | 1,500,672,185.166548 | 86,753 |
pythondev | help | But it doesn't print anything. I tried _almost_ everything :disappointed: | 2017-07-21T21:24:00.171091 | Lana | pythondev_help_Lana_2017-07-21T21:24:00.171091 | 1,500,672,240.171091 | 86,754 |
pythondev | help | that xpath looks invalid | 2017-07-21T21:24:33.174033 | Martha | pythondev_help_Martha_2017-07-21T21:24:33.174033 | 1,500,672,273.174033 | 86,755 |
pythondev | help | Sure? Python doesn't raise any exception | 2017-07-21T21:25:08.177221 | Lana | pythondev_help_Lana_2017-07-21T21:25:08.177221 | 1,500,672,308.177221 | 86,756 |
pythondev | help | also you need to add `%20` in between `cfe mexico` | 2017-07-21T21:25:11.177476 | Martha | pythondev_help_Martha_2017-07-21T21:25:11.177476 | 1,500,672,311.177476 | 86,757 |
pythondev | help | Then, still not working :disappointed: | 2017-07-21T21:26:08.182421 | Lana | pythondev_help_Lana_2017-07-21T21:26:08.182421 | 1,500,672,368.182421 | 86,758 |
pythondev | help | I think all you need is `//c-wiz/div/div/c-wiz/a/text()` | 2017-07-21T21:27:18.188171 | Martha | pythondev_help_Martha_2017-07-21T21:27:18.188171 | 1,500,672,438.188171 | 86,759 |
pythondev | help | `//c-wiz/a/text()`
or `//*[@class='nuEeue hzdq5d ME7ew']/text()` | 2017-07-21T21:28:22.193601 | Martha | pythondev_help_Martha_2017-07-21T21:28:22.193601 | 1,500,672,502.193601 | 86,760 |
pythondev | help | You did it! But I got the title `<a href="actual url I want to import too">Title I just imported, and that's great!</a>` | 2017-07-21T21:29:14.197680 | Lana | pythondev_help_Lana_2017-07-21T21:29:14.197680 | 1,500,672,554.19768 | 86,761 |
pythondev | help | so you would pull in both | 2017-07-21T21:29:29.198899 | Martha | pythondev_help_Martha_2017-07-21T21:29:29.198899 | 1,500,672,569.198899 | 86,762 |
pythondev | help | :taco: <@Martha> | 2017-07-21T21:29:32.199116 | Lana | pythondev_help_Lana_2017-07-21T21:29:32.199116 | 1,500,672,572.199116 | 86,763 |
pythondev | help | How? :open_mouth: | 2017-07-21T21:29:40.199733 | Lana | pythondev_help_Lana_2017-07-21T21:29:40.199733 | 1,500,672,580.199733 | 86,764 |
pythondev | help | `//*[@class='nuEeue hzdq5d ME7ew']/text()` `//*[@class='nuEeue hzdq5d ME7ew']/@href` | 2017-07-21T21:29:41.199816 | Martha | pythondev_help_Martha_2017-07-21T21:29:41.199816 | 1,500,672,581.199816 | 86,765 |
pythondev | help | In the same line? | 2017-07-21T21:29:51.200608 | Lana | pythondev_help_Lana_2017-07-21T21:29:51.200608 | 1,500,672,591.200608 | 86,766 |
pythondev | help | I usually separate them | 2017-07-21T21:29:59.201267 | Martha | pythondev_help_Martha_2017-07-21T21:29:59.201267 | 1,500,672,599.201267 | 86,767 |
pythondev | help | ```title = pagehtml.xpath('//*[@class='nuEeue hzdq5d ME7ew']/text()')
website = pagehtml.xpath('//*[@class='nuEeue hzdq5d ME7ew']/@href')
return (title,website)
```
or you can do a list or whatever you want - if your writing it to csv then out put it to a list as a row | 2017-07-21T21:30:24.203738 | Martha | pythondev_help_Martha_2017-07-21T21:30:24.203738 | 1,500,672,624.203738 | 86,768 |
pythondev | help | BTW, the code that worked was `//c-wiz/div/div/c-wiz/a/text()` :slightly_smiling_face: | 2017-07-21T21:31:42.210336 | Lana | pythondev_help_Lana_2017-07-21T21:31:42.210336 | 1,500,672,702.210336 | 86,769 |
pythondev | help | if you change the last part to `/@href` that will give you the url | 2017-07-21T21:32:01.211944 | Martha | pythondev_help_Martha_2017-07-21T21:32:01.211944 | 1,500,672,721.211944 | 86,770 |
pythondev | help | `/text()` gives you linked text , in this case the title | 2017-07-21T21:32:22.213836 | Martha | pythondev_help_Martha_2017-07-21T21:32:22.213836 | 1,500,672,742.213836 | 86,771 |
pythondev | help | if you wanted the class name you would to `/@class` at the end - ( just to give you an idea how its grabbing pieces of data when you look at the raw html) | 2017-07-21T21:32:51.216312 | Martha | pythondev_help_Martha_2017-07-21T21:32:51.216312 | 1,500,672,771.216312 | 86,772 |
pythondev | help | This is awesome, thanks again! Returned two lists, ready to work with them... THANKS! | 2017-07-21T21:33:28.219253 | Lana | pythondev_help_Lana_2017-07-21T21:33:28.219253 | 1,500,672,808.219253 | 86,773 |
pythondev | help | :taco: <@Martha> | 2017-07-21T21:33:37.219990 | Lana | pythondev_help_Lana_2017-07-21T21:33:37.219990 | 1,500,672,817.21999 | 86,774 |
pythondev | help | thanks :slightly_smiling_face: | 2017-07-21T21:33:41.220275 | Martha | pythondev_help_Martha_2017-07-21T21:33:41.220275 | 1,500,672,821.220275 | 86,775 |
pythondev | help | ```
nums = [1,2,3,4,5,6,7,8,9,10]
# Using map + lambda
my_list3 = map(lambda n: n*n,nums)
print(my_list3)
Output ---> <map object at 0x000000E8107DF0B8>
instead of
[1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
``` | 2017-07-22T03:29:21.564854 | Reina | pythondev_help_Reina_2017-07-22T03:29:21.564854 | 1,500,694,161.564854 | 86,776 |
pythondev | help | why ? | 2017-07-22T03:29:23.564989 | Reina | pythondev_help_Reina_2017-07-22T03:29:23.564989 | 1,500,694,163.564989 | 86,777 |
pythondev | help | `map` returns an iterator (lazily) | 2017-07-22T03:52:17.637778 | Suellen | pythondev_help_Suellen_2017-07-22T03:52:17.637778 | 1,500,695,537.637778 | 86,778 |
pythondev | help | i.e. if you have a million objects and apply a function with `map`, the `map object` will be returned right away and the actual result of a function will be applied when you iterate over the values | 2017-07-22T03:53:07.640313 | Suellen | pythondev_help_Suellen_2017-07-22T03:53:07.640313 | 1,500,695,587.640313 | 86,779 |
pythondev | help | `my_list3 = list(map(lambda n: n*n, nums))` is one way to "fix" this | 2017-07-22T03:54:04.643157 | Suellen | pythondev_help_Suellen_2017-07-22T03:54:04.643157 | 1,500,695,644.643157 | 86,780 |
pythondev | help | ok got it | 2017-07-22T04:00:58.667249 | Reina | pythondev_help_Reina_2017-07-22T04:00:58.667249 | 1,500,696,058.667249 | 86,781 |
pythondev | help | I'm trying to wrap my head around GeoAlchemy but I'm having a really hard time. I have a lat and lon column in my table...should I be using a geometry column instead? | 2017-07-22T05:29:12.971477 | Thomasina | pythondev_help_Thomasina_2017-07-22T05:29:12.971477 | 1,500,701,352.971477 | 86,782 |
pythondev | help | yes | 2017-07-22T05:29:38.972867 | Gabriele | pythondev_help_Gabriele_2017-07-22T05:29:38.972867 | 1,500,701,378.972867 | 86,783 |
pythondev | help | Ok...but I'm not sure if I should be using geography or geometry...If I wanted to show points over the size of, say, the continental US, would that be a problem with geometry? | 2017-07-22T05:30:59.977988 | Thomasina | pythondev_help_Thomasina_2017-07-22T05:30:59.977988 | 1,500,701,459.977988 | 86,784 |
pythondev | help | Are you showing points over that sort of area within a single query? And what are your accuracy requirements? | 2017-07-22T05:31:19.979154 | Gabriele | pythondev_help_Gabriele_2017-07-22T05:31:19.979154 | 1,500,701,479.979154 | 86,785 |
pythondev | help | PostGIS is definitely awkward to work with, I'll give you that. And understanding the geom/geog stuff, and converting between them, is fiddly. But stick at it. | 2017-07-22T05:32:11.982207 | Gabriele | pythondev_help_Gabriele_2017-07-22T05:32:11.982207 | 1,500,701,531.982207 | 86,786 |
pythondev | help | I have a geography column in my DB (specifically, `geography(Point,4326) NOT NULL`), and it works for me. I only need to find places near other places, and each place is represented with a point, so I don't have rigorous requirements on accuracy, or the need for it to be correct over long distances | 2017-07-22T05:33:19.986308 | Gabriele | pythondev_help_Gabriele_2017-07-22T05:33:19.986308 | 1,500,701,599.986308 | 86,787 |
pythondev | help | So I could probably have been okay with a geometry object | 2017-07-22T05:33:33.987311 | Gabriele | pythondev_help_Gabriele_2017-07-22T05:33:33.987311 | 1,500,701,613.987311 | 86,788 |
pythondev | help | The accuracy doesn't have to be particularly high at that distance, just good enough that if the user zooms in on that point on the map it doesn't drift so much that it appears to be flying across the map. Haha
Thank you for your encouragement! I am determined to figure it out. :slightly_smiling_face:
I suppose that the important part is showing points within a much smaller scale (say a few city blocks in each direction) within about 5 meters of accuracy. I'm just thinking though that even if the large scale stuff isn't important, why not use geography anyway? | 2017-07-22T05:37:28.001376 | Thomasina | pythondev_help_Thomasina_2017-07-22T05:37:28.001376 | 1,500,701,848.001376 | 86,789 |
pythondev | help | Geography has fewer functions available on it, so you need to convert to geometry to perform various tasks | 2017-07-22T05:38:25.004638 | Gabriele | pythondev_help_Gabriele_2017-07-22T05:38:25.004638 | 1,500,701,905.004638 | 86,790 |
pythondev | help | I mostly just compare distances, so geography is fine. The geography type basically exists to allow for accurate distance comparisons | 2017-07-22T05:38:45.005686 | Gabriele | pythondev_help_Gabriele_2017-07-22T05:38:45.005686 | 1,500,701,925.005686 | 86,791 |
pythondev | help | But trying to perform complex perimeter or area calculations on the surface of a not-quite-sphere is complex, so for that sort of thing, I think that is where they require you to project to geometry and suck up some error | 2017-07-22T05:39:31.008228 | Gabriele | pythondev_help_Gabriele_2017-07-22T05:39:31.008228 | 1,500,701,971.008228 | 86,792 |
pythondev | help | Ah I see. Makes sense. The only thing that's important is that I'm able to get everything within a box (which will be the area the user is viewing in the app). Distance between points, perimeters, and areas, aren't important | 2017-07-22T05:51:29.050327 | Thomasina | pythondev_help_Thomasina_2017-07-22T05:51:29.050327 | 1,500,702,689.050327 | 86,793 |
pythondev | help | Sounds like you want the ST_Contains test. It operates on geometry. Make a polygon of your box, test it against the points. | 2017-07-22T05:57:42.072149 | Gabriele | pythondev_help_Gabriele_2017-07-22T05:57:42.072149 | 1,500,703,062.072149 | 86,794 |
pythondev | help | There's also ST_Covers for geography, but it appears less used. | 2017-07-22T05:58:58.076585 | Gabriele | pythondev_help_Gabriele_2017-07-22T05:58:58.076585 | 1,500,703,138.076585 | 86,795 |
pythondev | help | <https://www.amazon.com/PostGIS-Action-2nd-Regina-Obe/dp/1617291390/ref=sr_1_1?ie=UTF8&qid=1500718692&sr=8-1&keywords=postgis+in+action> | 2017-07-22T06:18:24.146319 | Meg | pythondev_help_Meg_2017-07-22T06:18:24.146319 | 1,500,704,304.146319 | 86,796 |
pythondev | help | <@Thomasina> if you're going to do more work in this regard, I would suggest you buy that book and review it carefully. | 2017-07-22T06:20:06.152081 | Meg | pythondev_help_Meg_2017-07-22T06:20:06.152081 | 1,500,704,406.152081 | 86,797 |
pythondev | help | <@Meg> Thanks! This looks like it would be very helpful for me. If I need to do much more PostGIS stuff after this I think I should strongly consider buying it | 2017-07-22T06:49:23.255447 | Thomasina | pythondev_help_Thomasina_2017-07-22T06:49:23.255447 | 1,500,706,163.255447 | 86,798 |
pythondev | help | <@Gabriele> Oh ok, I'll take a look at ST_Contains | 2017-07-22T06:49:53.257193 | Thomasina | pythondev_help_Thomasina_2017-07-22T06:49:53.257193 | 1,500,706,193.257193 | 86,799 |
pythondev | help | well, considering your project is very reliant on GIS, I would get it regardless | 2017-07-22T06:50:01.257668 | Meg | pythondev_help_Meg_2017-07-22T06:50:01.257668 | 1,500,706,201.257668 | 86,800 |
pythondev | help | Well, I would but I'm super duper tight on money at the moment so unfortunately I need to try to hold off for the time being. I'll definitely take a look when I have a bit more money to spend though :slightly_smiling_face: | 2017-07-22T06:54:57.274811 | Thomasina | pythondev_help_Thomasina_2017-07-22T06:54:57.274811 | 1,500,706,497.274811 | 86,801 |
pythondev | help | :thumbsup: | 2017-07-22T07:03:10.304953 | Meg | pythondev_help_Meg_2017-07-22T07:03:10.304953 | 1,500,706,990.304953 | 86,802 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.