2010-09-07

00:10 jtbandes joined #geoloqi
00:31 <tylergillies> C:\Users\tyler\geo>curl rital.in:3000/location/last?token=abc
00:31 <tylergillies> {"raw":{"battery":100,"rate_limit":0,"distance_filter":0,"tracking_limit":1800},"client":{"platform":"iPhone OS 4.0.1","name":"Geoloqi","version":"1.0"},"location":{"position":{"ho
00:31 <tylergillies> rizontal_accuracy":250,"vertical_accuracy":-1,"longitude":-122.68399024,"latitude":45.57304656}},"date":"2010-09-06T03:57:20-700","username":"tyler"}
00:32 <tylergillies> from CouchDB
01:25 <tylergillies> why do we have a path.format but the format we support is json?
01:25 <tylergillies> only format*
07:26 jtbandes joined #geoloqi
08:42 workshop joined #geoloqi
08:57 jtbandes joined #geoloqi
09:09 caseorganic joined #geoloqi
09:15 jtbandes joined #geoloqi
09:26 jtbandes joined #geoloqi
11:12 jtbandes joined #geoloqi
12:55 jtbandes joined #geoloqi
12:59 jtbandes joined #geoloqi
14:03 workshop joined #geoloqi
14:39 workshop joined #geoloqi
16:43 tjgillies joined #geoloqi
16:47 <aaronpk> tjgillies: I did the .json thing because twitter does that, and lets us do .xml in the future if we want
16:47 <aaronpk> although I think it works without .json too
17:10 <@caseorganic> @reidab @tylergillies Yeah! I was at @backspacepdx for a second. Didn't turn on @Geoloqi and still got checked in!
17:10 <@kenswdev> @MotoWilliams wow, @geoloqi does sound pretty sweet. going to have to follow up on it.
17:10 <@MotoWilliams> http://geoloqi.com/ looks pretty neat. I like the geospatial trigger idea. #gis
18:05 workshop joined #geoloqi
20:49 <aaronpk> whoa, the twitter search API is returning strange results
20:49 <aaronpk> those tweets were from a long time ago
20:59 <tjgillies> just noticed that
21:00 <tjgillies> aaronpk: ok, i think im gonna make the node version json only without the .format
21:38 <aaronpk> cool
21:38 <aaronpk> makes sense for the Node.**JS** version using couchdb to only support javascript lol
21:39 <tjgillies> that and i think xml/json api's are redundant. its like making a blu-ray AND hd-dvd
21:40 <aaronpk> haha
21:40 <Loqi> rofl
21:40 <tjgillies> aaronpk: what do you use to set scopes on oauth token? oauth/token?scope=foo?
21:41 <aaronpk> that sounds right
21:42 <aaronpk> I haven't actually done that yet in mine, but it's coming up soon
21:43 <tjgillies> ok
21:43 <tjgillies> i wrote the scope check method and realized i didn't have any scopes heh
21:43 <aaronpk> lol
21:43 <aaronpk> I made a list of the scopes I'm going to use
21:43 <aaronpk> at least a first draft of it
21:44 <tjgillies> i'll make it so you comma delimit the scopes i.e. /oauth/token?scope=scope1,scope2,foo,bar,last_location
21:44 <aaronpk> yea, that's how facebook does it, heh
21:44 <aaronpk> I think the spec says space delimited
21:44 <tjgillies> should it be scope= or scopes=
21:44 <tjgillies> space delimited?
21:45 <aaronpk> which is odd because the facebook guy wrote the spec
21:45 <tjgillies> wtf space in url is kinda lame
21:45 <aaronpk> yea it makes more sense when it's in the head
21:45 <aaronpk> er
21:45 <tjgillies> oh in header, yeah
21:45 <tjgillies> that kinda makes sense
21:45 <aaronpk> actually it says space delimited in the authorization response http://tools.ietf.org/html/draft-ietf-oauth-v2-10#section-3.1
21:45 <tjgillies> i don't check any header stuff yet, heh i should do that in my auth functions
21:46 <tjgillies> is app going to send as param or as header?
21:46 <aaronpk> hm yea it also says it for the request http://tools.ietf.org/html/draft-ietf-oauth-v2-10#section-4
21:47 <aaronpk> I think jtbandes is doing it as URL parameters, but I haven't checked in with him in a few days
22:10 <tjgillies> C:\Users\tyler\geo>curl "rital.in:3000/oauth/token?username=tyler&password=tyler&scope=last_location" -d" "
22:10 <tjgillies> token created: shDlWne7aMw1CHxxEldiLUVcUHW1TVsa, with scope: ["last_location"]
22:11 <aaronpk> awesome
22:12 <tjgillies> C:\Users\tyler\geo>curl "rital.in:3000/location/last?token=shDlWne7aMw1CHxxEldiLUVcUHW1TVsa"
22:12 <tjgillies> {"raw":{"battery":95,"rate_limit":0,"distance_filter":0,"tracking_limit":1800},"client":{"platform":"iPhone OS 4.0.1","name":"Geoloqi","version":"1
22:12 <tjgillies> izontal_accuracy":500,"vertical_accuracy":-1,"longitude":-122.68384671,"latitude":45.57258516}},"date":"2010-09-07T00:56:19-700","username":"tyler"
22:13 <tjgillies> C:\Users\tyler\geo>curl "rital.in:3000/location/history?token=shDlWne7aMw1CHxxEldiLUVcUHW1TVsa"
22:13 <tjgillies> Scope not valid for token
22:15 <aaronpk> cool, now you're one step ahead of me again haha
22:15 <tjgillies> heh
22:16 <tjgillies> im getting a working alpha for couchcamp tomorrow
22:16 <tjgillies> so i can show off the sexy
22:16 <aaronpk> oh!
22:16 <aaronpk> neat!
22:16 <donpdonp> have fun at couchcamp. woo!
22:17 <tjgillies> donpdonp: hows burning man?
22:17 <donpdonp> tjgillies: it was epic as usual
22:20 <tjgillies> aaronpk: how do you determine the difference between anon accounts for location? do you create a temp name and associate with token?
22:22 <aaronpk> yea I just make a regular account with a random username
22:22 <aaronpk> that way I can handle everything the same internally
22:23 <tjgillies> ok thats what im gonan do
22:24 <tjgillies> should we use password param on user/create?
22:24 <tjgillies> i don't see any method for setting a password
22:25 <aaronpk> oh yea, because I was going to handle that from the website. the "create anon" method is so that a mobile device can talk with the API, and as long as it keeps its OAuth tokens it will always have access to the account
22:26 <aaronpk> the "set_username" method is where the account gets turned into a regular named account (not yet implemented, so haven't thought that one all the way throug yet)
22:26 <tjgillies> it seems odd to create dependency on website for api
22:26 <tjgillies> maybe not
22:27 <aaronpk> maybe, it's interesting
22:28 <aaronpk> tho right now the website is only communicating with the database through the API, so it's gonna need some method :)
22:45 <aaronpk> tjgillies: what did you tell marshall about the esri geoservices thing?
22:45 <tjgillies> nothing
22:45 <tjgillies> he's quizing me about it now
22:45 <tjgillies> i didn't even know about it
22:46 <aaronpk> well it was only announced this morning
23:09 <tjgillies> C:\Users\tyler\geo>curl "rital.in:3000/user/create_anon?scope=last_location" -d" "
23:09 <tjgillies> token created: Icn1shQvomTFA2aCvh53lXauau5LZ935, with scope: ["last_location"]
23:10 <tjgillies> redis> get ritalin:access_token:Icn1shQvomTFA2aCvh53lXauau5LZ935
23:10 <tjgillies> "iPza6NP7Os1zebfbIF5U0qoqOXz6hE0R"
23:10 <tjgillies> thats the "username"
23:10 <tjgillies> i use the same function to generate temp username as i do to generate token heh, im lazy
23:11 <aaronpk> nice
23:11 <aaronpk> that works
23:34 <tjgillies> aaronpk: is token expire time in seconds?
23:35 <aaronpk> yea
23:46 <aaronpk> what's the word for the opposite of coherent?
23:53 <tjgillies> incoherent?
23:54 <aaronpk> oh
23:54 <aaronpk> that
23:54 <aaronpk> is what my conversation with marshallk has been
23:54 <tjgillies> lul
23:54 <tjgillies> no comment ;)
23:56 <tjgillies> holy crap im in a lot of channels
23:56 <aaronpk> haha
23:56 <aaronpk> nice
23:56 <Loqi> awesome
23:57 <aaronpk> ok i'm out ttyl
23:57 <aaronpk> good night loqi
23:57 <Loqi> gute nacht!
23:57 <tjgillies> laters
23:57 <tjgillies> i'll prolly be speaking from couchcamp next time im in here