2011-04-09

02:52 dch_away joined #geoloqi
05:40 <@bdufresne> Je vais faire me courses chez Manor avec mon super caddie. Suivez-moi! http://loqi.me/rHhRPxP
06:15 caseorganic-m joined #geoloqi
09:10 <@n4trqjedi> Automatically checked in from @geoloqi! (@ Seven Eleven) http://4sq.com/gEJcp7
09:28 <@n4trqjedi> Automatically checked in from @geoloqi! (@ Pier 1) http://4sq.com/eLmUJG
09:30 <@geografa> Out for a run. Track me on Geoloqi! http://loqi.me/7pmxDPG
10:32 <@Thomas_Wendt> Heading out! Track me on Geoloqi! http://loqi.me/U8jsD6f
11:29 plamb joined #geoloqi
11:49 <IntractableQuery> I am going to look at changing our layer to only delta-update venues and tweets, but it may be a few days from now
11:50 <aaronpk> That'd be great. It will end up playing nicer with our system down the road if you don't delete venues
11:53 <aaronpk> I also just fixed something that should speed up the batch jobs a bit, looks like your last job finished faster and did more work than the one before.
11:54 <plamb> nice
12:38 BigRedPimp joined #geoloqi
13:03 BigRedPimp joined #geoloqi
13:04 <Loqi> [[Authentication]] http://geoloqi.org/wiki/index.php?diff=701&oldid=619&rcid=732 * Aaronpk * (+2) https!
13:08 pmark joined #geoloqi
13:08 <pmark> @aaronpk, is the packet length field 4 bytes again, or still just 1 byte?
13:08 <aaronpk> should be 4
13:08 <pmark> ok thanks
13:09 <aaronpk> `nc api.geoloqi.com 40000 | hexdump -n 24`
13:09 <aaronpk> you'll see 00 00 00 14 as the first 4 bytes
13:12 <Loqi> [[API/OAuth 2.0]] M http://geoloqi.org/wiki/index.php?diff=702&oldid=303&rcid=733 * Aaronpk * (-5)
13:14 <@yuetsu> sewicky addition home plate. hot cakes. reading. sweet-looking waitress looked disturbed when i ordered a virgin mary http://loqi.me/t58wGLD
13:16 <pmark> a Bloody Mary made without alcohol
13:16 <aaronpk> is that like tomato juice?
13:16 <pmark> That is disturbing under 30,000 feet.
13:17 <pmark> Combine the vodka, the tomato juice, the lemon juice, the Worcestershire sauce, the Tabasco, 1 cup ice cubes, and salt and pepper to taste, shake the mixture well, and strain it into a tall glass filled with ice cubes. Garnish the Bloody Mary with the celery stick and the lemon wedge.
13:18 <aaronpk> sounds kind of weird without the vodka
13:25 <aaronpk> plamb: do you have a list of all the cities you cover?
13:39 <Loqi> [[Authentication]] http://geoloqi.org/wiki/index.php?diff=703&oldid=701&rcid=734 * Aaronpk * (+351) clarified authentication
13:44 <plamb> aaronpk: im sure daniel could dump a list
13:44 <plamb> we just added 60k facebook-related venues, and he needs to go through and remove all the ones that havent used their fb places pages yet
13:44 <plamb> so if he dumped it now it would be pretty distorted
13:47 <aaronpk> I just need a short list for the blog post, but then I'm going to need an exact list soon in order to feature the layer in those specific cities
13:47 <plamb> ohh
13:47 <plamb> wait
13:47 <plamb> my bad
13:47 <plamb> i was thinking venues
13:47 <plamb> yeah i can give you a list of the cities
13:48 <plamb> how would you like to get them
13:48 <aaronpk> first just need something that can be put into a setence, like your "best" cities
13:48 <plamb> ahh
13:48 <plamb> i would say
13:49 <plamb> New York City, London, Chicago, Austin, San Francisco, Los Angeles
13:49 <plamb> are some of the best content wise
13:49 <aaronpk> great thanks
13:51 <Loqi> [[API/OAuth 2.0]] M http://geoloqi.org/wiki/index.php?diff=704&oldid=702&rcid=735 * Aaronpk * (+19)
13:52 <Loqi> [[Authentication]] M http://geoloqi.org/wiki/index.php?diff=705&oldid=703&rcid=736 * Aaronpk * (+6)
13:53 <plamb> if the geoloqi users like this layer a lot, we'll look at rolling other version of it
13:54 <plamb> like one just focused on happy hours, etc
13:54 <plamb> versions*
13:54 <aaronpk> ah yea that'd be cool
14:03 <plamb> i've got a google doc here of active areas
14:03 <plamb> if you'd like me to share that with you
14:05 <aaronpk> ah cool
14:05 <plamb> which e-mail would you like me to share it with
14:05 <aaronpk> aaron@parecki.com is fine
14:06 <plamb> oh looks like daniel already shared it with you
14:07 <aaronpk> just saw it come through ,he's fast
14:07 <aaronpk> thanks
14:34 <aaronpk> http://www.encuentrofractal.com/eng/ <-- Amber Case live in Colombia!
14:36 <aaronpk> (translated into spanish in real time!)
14:37 <pmark> una gran oportunidad para practicar español también
14:37 <aaronpk> si señor
14:37 <pmark> if only someone would translate these stinking hex packets in real time for me
14:37 <pmark> i'm flailing here :(
14:40 <aaronpk> what are you getting?
14:40 <pmark> nothing or garbage. i'll check back in after this round of thrashing
14:41 <aaronpk> did that example I sent last night work?
14:41 <aaronpk> I didn't try it but it made sense
14:42 <pmark> the cast to an (int*) is correct but the value is too big
14:42 <aaronpk> try NSUInteger?
14:48 <pmark> y
14:50 <pmark> So here's the problem statement: Given a hex string 4 bytes long, convert it to an unsigned int.
14:50 <aaronpk> Si
14:50 <aaronpk> I believe that exact problem was described on stackoverflow
14:51 <aaronpk> wait, not SO
14:59 <pmark> The NSData looks like this: 00000015
15:00 <pmark> Printing an NSUInteger pointer with %d looks like this: 352321536
15:00 <aaronpk> print it wit %u
15:00 <aaronpk> %d will overflow and wrap
15:00 <pmark> 352321536
15:02 <pmark> I can print the string with %x as 4b1b480
15:02 <pmark> Then I bet I could use NSScanner to get an int from that
15:03 <aaronpk> weird...
15:04 <aaronpk> how did you get the NSData object to output 00000015?
15:04 <pmark> its "description" is that string
15:05 <aaronpk> that looks (almost) right, I was expecting 14
15:06 <aaronpk> might have grabbed an extra byte
15:07 <pmark> "Logged in as: " is 14 bytes. Coincidence?
15:07 <aaronpk> oh wait..
15:07 <aaronpk> confusion between hex/decimal
15:08 <aaronpk> 14 hex is 20 decimal, which is the length of "Enter access token: "
15:08 <pmark> I'm so over that.
15:09 <aaronpk> oh you're getting the next bit?
15:09 <pmark> Yes. I'm trying to parse the length token to get the logged in thing since that's variable length.
15:09 <aaronpk> ah!
15:09 <pmark> I love it when you say that
15:10 <aaronpk> in that case, 15 hex is 21 decimal
15:10 <pmark> this things is 2 lines of code away from working
15:10 <pmark> "Logged in as: pmark" is 19
15:11 <aaronpk> \r\n
15:11 <pmark> fair enough
15:11 <aaronpk> so that is good
15:12 <aaronpk> oh! just had a thought
15:13 <aaronpk> hmm maybe not
15:16 <aaronpk> could be an issue with endian-ness
15:16 <aaronpk> can you output [NSData description] followed by %u and %x and we'll do two tests
15:16 <aaronpk> I'll swap the endian-ness of the server between tests
15:18 <pmark> Packet length token string:<00000015> x:4e3ba90 u:82033296
15:18 <aaronpk> ok try again
15:19 <pmark> Packet length token string:<15000000> x:4b10fe0 u:78712800
15:19 <aaronpk> ok well that wasn't the problem :)
15:19 <pmark> wait! I can use that
15:19 <aaronpk> oh?
15:19 <pmark> Length int with u: 21, x: 15
15:19 <pmark> x:15
15:19 <pmark> ooh I mean u:21
15:19 <pmark> et voila
15:20 <pmark> are you little endian now?
15:20 <aaronpk> apparently
15:21 <aaronpk> that fixed it?
15:21 <pmark> stand by please
15:22 <aaronpk> stands
15:23 <pmark> jawohl!
15:23 <aaronpk> woo!
15:24 <pmark> Listening for incoming packets.
15:24 <pmark> :)
15:24 <aaronpk> oh yea! ok let me send one
15:24 <pmark> Shall we play a game?
15:24 <aaronpk> incoming!
15:25 <aaronpk> didja see it?
15:26 <pmark> Sorry I was celebrating a bit http://www.youtube.com/watch?v=RLJ3zcdPtl8
15:27 <aaronpk> haha
15:27 <Loqi> nice
15:29 <pmark> Ahh 4:30
15:34 <pmark> aaronpk will you please resend a packet?
15:35 <aaronpk> ping
15:35 <Loqi> pong
15:37 <pmark> stand by
15:44 <pmark> OK aaronpk again please
15:44 <aaronpk> bam
15:45 <pmark> nada. again please. would I see anything via telnet?
15:45 <aaronpk> you should
15:47 <pmark> Did you ping it again? I don't see anything in telnet or the app.
15:47 <Loqi> pong
15:47 <aaronpk> here, you can do it too:
15:47 <aaronpk> !sock HW {"message":"this is awesome"}
15:47 <Loqi> {"result":"ok","user":"pmark","user_id":"HW"}
15:48 <pmark> !sock HW {"message":"this is awesome"}
15:48 <Loqi> {"result":"ok","user":"pmark","user_id":"HW"}
15:48 <pmark> !sock HW {"message":"this is awesome2"}
15:48 <Loqi> {"result":"ok","user":"pmark","user_id":"HW"}
15:48 <pmark> OK I got one to show in telnet, but only one
15:48 <pmark> !sock HW {"message":"this is awesome 3"}
15:48 <Loqi> {"result":"ok","user":"pmark","user_id":"HW"}
15:49 <pmark> Sorry, is everybody seeing those?
15:49 <aaronpk> haha yea
15:49 <aaronpk> I wonder if...
15:50 <aaronpk> nope
16:11 <aaronpk> plamb: can I get a 114px version of your barbird icon?
16:13 <plamb> umm
16:13 <plamb> yeah
16:13 <plamb> the one we used for the geoloqi layer or?
16:13 <aaronpk> yea
16:13 <plamb> hmm i think daniel modified that one
16:14 <plamb> ill have him e-mail it to you
16:14 <aaronpk> thanks
16:19 aaronpk joined #geoloqi
16:21 <plamb> aaronpk: i believe he sent it
16:21 <aaronpk> sweeeeet thanks
16:22 <Loqi> [[Special:Log/upload]] upload * Aaronpk * uploaded "[[File:barbird-layer@2x.png]]"
16:26 <Loqi> [[Layers]] http://geoloqi.org/wiki/index.php?diff=707&oldid=695&rcid=738 * Aaronpk * (+211) added barbird layer
16:28 <Loqi> [[Special:Log/upload]] overwrite * Aaronpk * uploaded a new version of "[[File:7-layer-catalog-data-subscriptions-geoloqi.png]]"
16:29 <pmark> aaronpk, what's the difference between "user_id" and "user", and should I test the socket by sending user_id=pmark & layer_id=1_i to message/device?
16:30 <aaronpk> wow, that should totally be username
16:30 <aaronpk> but yes that sounds right for your input
16:31 <aaronpk> and data=json object
16:36 <pmark> {"error":"access_denied","error_description":"You must own the layer you are targeting."}
16:36 <aaronpk> oh true
16:37 <aaronpk> you'll have to make a layer and subscribe to it
16:37 <pmark> ok
16:38 BigRedPimp joined #geoloqi
16:38 <pmark> Might as well just make the 3DAR Visualize layer ;)
16:39 <aaronpk> kewl
16:39 <pmark> what an awesome layer ID: 1aR
16:39 <aaronpk> hehehe
16:39 <aaronpk> nice
16:39 <pmark> You mind subscribing? https://beta.geoloqi.com/layer/info/1aR
16:40 <aaronpk> subscribed!
16:41 <pmark> I expected to be able to send pmark a message since pmark is subscribed, but I got: {"error":"access_denied","error_description":"You can only send messages to users subscribed to one of your layers."}
16:41 <pmark> Same for aaronpk
16:42 <aaronpk> hmMMMmm one sec
16:44 <aaronpk> oh
16:44 <aaronpk> user_id != username
16:44 <aaronpk> your id is HW
16:44 <aaronpk> you can get that from account/profile
16:45 <aaronpk> my spampk user is Mi
16:47 <pmark> sweetness. thanks. sorry, where can I learn more about how user_id != username?
16:47 <pmark> Also, is now an OK time to figure out why the socket doesn't appear to be receiving messages?
16:49 <aaronpk> I'd say if the socket isn't getting messages, it's because it isn't listening for more data
16:49 <pmark> got it. thanks
16:51 <aaronpk> if you send something to spampk I should see it in my telnet here
16:53 <pmark> OK, I just sent something
16:53 <aaronpk> hey look! http://aaron.pk/snip/2011-04-09_1653.png That's some funky json but it worked
16:54 <pmark> oh cool - did you see the 2nd one?
16:54 <pmark> heh ok I'll stop bothering you :)
17:04 pmark joined #geoloqi
17:15 dch joined #geoloqi
17:26 <pmark> Well thanks for your help today aaronpk. There was only 1 time that the 82 byte message was read by the app, and there was also just 1 time I saw a message in telnet, sent from IRC.
17:29 <pmark> Hey, new info. I just sent 6 messages in 2 seconds and 2 showed up in both telnet and the app!
17:31 aaronpk-m joined #geoloqi
17:35 <aaronpk> well that was a productive 3 minutes
17:42 <@n4trqjedi> Automatically checked in from @geoloqi! (@ Family dollar) http://4sq.com/fAibiJ
18:11 Wraithan joined #geoloqi
19:39 pmark joined #geoloqi
21:45 BigRedPimp joined #geoloqi
22:13 pmark joined #geoloqi
22:24 <@geografa> Oot and aboot! Track me on Geoloqi! http://loqi.me/zyAcSyA
22:54 <@mbauwens> Added to the wiki: Geoloqi: Created page with " URL = http://geoloqi.org/Main_Page =Description= "Geoloqi is a... http://bit.ly/i0V3MM
23:21 aaronpk joined #geoloqi