[00:14] statim has joined the channel [00:15] statim: throwing something out there, let me know if anyone has heard of such a thing: data.get('users').get('123').val() would return data['users']['123'], but wouldnt error if data['users'] didnt exist.  likewise data.get('users').get('123').set('name', 'bob') would make data.users['123'].name == 'bob'.  sort of a magic object that isnt picky about errors.  anyone seen something like this? [00:16] mape: json path thingy [00:16] jashkenas: statim: yes. check out soaks in CoffeeScript, and safe navigation in Groovy. [00:16] mjr_: jashkenas: oh, bummer. Well, at least now you know more about regex. [00:16] statim: mape, yes probably... although not sure json path can set as well as get [00:16] statim: jashkenas: cool will check thanks [00:16] jashkenas: statim: data.users?.property.call() [00:17] jashkenas: would return undefined if data.users didn't exist. [00:18] statim: jashkenas: ahh cool so the ? just prevents the rest from happening if its null [00:18] jashkenas: yep. [00:18] statim: that is cool... wonder how hard it would be to do that in js, not familiar with coffeescript [00:19] mape: its evil [00:19] jashkenas: statim: that line above compiles into this JS: [00:19] jashkenas: data.users == undefined ? undefined : data.users.property.call(); [00:20] statim: jashkenas: right, i mean to make it as elegant though haha [00:22] Tim_Smart: statim: You could always create a 'Model' prototype that you can re-use [00:27] liucougar has joined the channel [00:30] bacon__ has joined the channel [00:33] steadicat has joined the channel [00:35] mw has joined the channel [00:37] paramaw has joined the channel [00:39] joshbuddy has joined the channel [00:39] joshbuddy has joined the channel [00:47] ajpiano has joined the channel [00:48] pgriess has joined the channel [00:50] freshtonic has joined the channel [00:50] findyourownpath has joined the channel [00:51] findyourownpath_ has joined the channel [01:00] KaptianKrispy has joined the channel [01:08] khug has joined the channel [01:09] derferman has joined the channel [01:12] KaptianKrispy: mde: you there? [01:14] shimon_ has joined the channel [01:14] gbot2 has joined the channel [01:14] derferman has joined the channel [01:16] ditesh|cassini has joined the channel [01:17] benburkert has joined the channel [01:18] shimon_ has joined the channel [01:18] shimondoodkin: bla bla test [01:18] hassox has joined the channel [01:18] shimon_: it works [01:19] gbot2 has joined the channel [01:19] malkomalko has joined the channel [01:22] malkomalko: anyone have any suggestions using node for making soap calls? I'm trying to interact with some api's that use soap [01:23] shimondoodkin: soap is http [01:23] manveru: xml over http [01:23] shimondoodkin: you can also post form/xml-encoded [01:23] shimondoodkin: as post body insted form-url-ecoded [01:24] shimondoodkin: also you can keep alive [01:24] malkomalko: alright, let me try out a few things, that should point me in the right direction I think [01:25] manveru: how do you decode base64? [01:25] manveru: anything builtin? [01:26] zenom_ has joined the channel [01:26] shimondoodkin: http://www.w3schools.com/SOAP/soap_example.asp [01:26] shimondoodkin: ther eis a base 64 js file in several frameworks [01:27] zenom_: I'm new to node.js and I am messing with the twitter-node library for node.js. Basically I want to stream the latest 10 twitter items to our site. I got the code working to grab the tweets.... [01:27] liucougar has joined the channel [01:27] zenom_: my question is, how do I make the browser connect to the server? When I get the tweets how do I push them to the browser in otherwords? [01:28] mscdex: zenom_: you can use something like socket.io [01:28] zenom_: Do I just create a server as well, then on the emit for "tweet" with twitter-node add it to the output? [01:30] kersny has joined the channel [01:31] shimondoodkin: theoreticaly you should do server side pool and do long pool on client side [01:32] shimondoodkin: wich means in php you pool you node server and get the tweets or load it from file to render it on server [01:32] shimondoodkin: long pool means [01:32] marshall_law has joined the channel [01:32] shimondoodkin: you do ajax request [01:32] Tim_Smart: long poll you mean [01:32] shimondoodkin: as it receives data it requests another one [01:32] mscdex: some browsers can do better than long poll though [01:32] Tim_Smart: Or you use socket.io, and it handles duplex communication for you. [01:33] mscdex: well, pretty much all browsers but IE [01:33] mscdex: all major browsers :-P [01:33] shimondoodkin: lets ignore ie [01:33] mscdex: even so, socket.io still handles long poll too [01:33] shimondoodkin: :P [01:34] shimondoodkin: is ther a long pool server example anywhere? [01:34] Tim_Smart: IE does special ActiveX "multipart" style html pages [01:34] mscdex: IE does long poll i'm afraid [01:34] shimondoodkin: tim ?what? [01:34] mscdex: :-\ [01:34] mscdex: firefox does multipart [01:34] zenom_: shimondoodkin: are you saying like save to mongodb and ajax request from mongodb? [01:34] shimondoodkin: i think ie also does multipart [01:34] mscdex: chrome and latest safari/webkit nightly uses websockets [01:34] zenom_: or am i misunderstanding [01:35] mscdex: i've never seen IE do multipart [01:35] Tim_Smart: shimondoodkin: Just use http://socket.io/ [01:35] shimondoodkin: i dont know [01:35] Tim_Smart: Bam. Real-time communication solved. [01:36] shimondoodkin: cool [01:37] zenom_: guess I still don't get what you guys are saying :) [01:37] shimondoodkin: you have an example in the website [01:38] shimondoodkin: it does realtime client [01:38] sechrist_: socket.io is [01:38] shimondoodkin: and there is also a node js server [01:38] sechrist_: awesome [01:38] shimondoodkin: yes it is a url [01:39] shimondoodkin: Tim does socket.io has sendToAll kind of? [01:39] mscdex: it has a broadcast method [01:40] _announcer: Twitter: "Too many nodejs modules, too little time to read the source." -- A'braham Barakhyahu. http://twitter.com/BlessYahu/status/17212940910 [01:40] _announcer: Twitter: "fabjs is twisting my noodle. Think I'm going to stick with raw js, till I learn node better." -- A'braham Barakhyahu. http://twitter.com/BlessYahu/status/17212956176 [01:41] shimondoodkin: socket io has a confusing and funny url [01:46] shimondoodkin: bye [01:58] _announcer: Twitter: "well, maybe some smaller nodejs modules as well..." -- A'braham Barakhyahu. http://twitter.com/BlessYahu/status/17214455262 [01:58] SteveDekorte has joined the channel [01:59] mscdex: someone ought to point BlessYahu to the node api docs at the bottom of the page [01:59] mscdex: :-P [02:01] joshbuddy has joined the channel [02:01] statim has left the channel [02:05] JimBastard has joined the channel [02:05] JimBastard: man, this dual-sided stuff is bending my fucking mind [02:06] JimBastard: getting the require() to work right is fucking hard [02:06] JimBastard: mape: can i get a jsonp feed of the irc stats? ill setup an interface if you want [02:07] JimBastard: i got my ass kicked today by binary file reading and commonjs async script loading in the browser. i could use something fun >><< [02:09] wilmoore has joined the channel [02:10] paramaw_ has joined the channel [02:10] SamuraiJack has joined the channel [02:16] softdrink has joined the channel [02:21] findyourownpath_ has joined the channel [02:21] pkrumins: just pushed node-video out [02:21] pkrumins: http://github.com/pkrumins/node-video [02:22] pkrumins: it's doing theora video over node [02:22] pkrumins: it can stream it also via