/
fluid-work IRC Logs-2009-08-28

fluid-work IRC Logs-2009-08-28

[07:05:04 EDT(-0400)] * heidi_ (n=thesumme@bas5-oshawa95-1176338600.dsl.bell.ca) has joined #fluid-work
[08:50:26 EDT(-0400)] * laurel (n=Laurel@142.150.154.178) has joined #fluid-work
[09:23:28 EDT(-0400)] * yura (n=yura@142.150.82.110) has joined #fluid-work
[09:43:15 EDT(-0400)] * clown (n=clown@142.150.154.202) has joined #fluid-work
[09:46:07 EDT(-0400)] * jsilvaa (n=jsilva@CABLE-72-53-95-24.cia.com) has joined #fluid-work
[09:46:29 EDT(-0400)] * jsilvaa (n=jsilva@CABLE-72-53-95-24.cia.com) has left #fluid-work
[09:53:43 EDT(-0400)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined #fluid-work
[11:06:33 EDT(-0400)] * athena (n=athena@adsl-99-165-195-22.dsl.wlfrct.sbcglobal.net) has joined #fluid-work
[11:46:17 EDT(-0400)] * fj4000 (n=Jacob@142.150.154.106) has joined #fluid-work
[12:27:18 EDT(-0400)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined #fluid-work
[14:24:36 EDT(-0400)] * colinclark (n=colin@74.198.28.32) has joined #fluid-work
[14:37:17 EDT(-0400)] * colinclark_ (n=colin@74.198.28.32) has joined #fluid-work
[15:03:31 EDT(-0400)] <yura> colinclark_: hey Colin, would you happen to know if fluid has a built in function to convert string to json object?
[15:03:55 EDT(-0400)] <colinclark_> yura: hey!
[15:04:43 EDT(-0400)] <colinclark_> You want to take JSON and turn it into an object... easy!
[15:04:53 EDT(-0400)] <yura> i m trying to use smth like $.getJSON but the data i m getting back is a string and i need an object
[15:05:27 EDT(-0400)] <colinclark_> We ship Crockford's JSON2 parser right in the Infusion bundle.
[15:05:39 EDT(-0400)] <yura> colinclark_: that's what I hoped for (smile)
[15:05:40 EDT(-0400)] <colinclark_> It's JSON2.js in the lib folder.
[15:05:54 EDT(-0400)] <yura> thanks (smile)
[15:06:53 EDT(-0400)] <colinclark_> I think you just need to call JSON.parse() on a string and you'll get an object back.
[15:07:04 EDT(-0400)] <colinclark_> I find myself rarely using jQuery's "convenience" Ajax functionality because they rarely let you specify an error handler.
[15:07:47 EDT(-0400)] <colinclark_> So I tend to use $.ajax for that reason.
[15:08:21 EDT(-0400)] <colinclark_> Then you should be able to grab the response and call parse(). Super easy. I think UI Options probably uses this code somewhere if you need an example.
[15:08:25 EDT(-0400)] <colinclark_> np
[15:09:47 EDT(-0400)] <yura> great, i ll do that them (smile)
[15:14:19 EDT(-0400)] <yura> colinclark_: thanks, works as intended (smile), by the way I did manage to run artifact component in kettle that pulls data from couch
[15:14:55 EDT(-0400)] <colinclark_> awesome!!
[15:15:37 EDT(-0400)] <colinclark_> That's so great.
[15:16:40 EDT(-0400)] <yura> try this for example : http://142.150.82.110:8080/artifact?Photograph
[15:16:58 EDT(-0400)] <yura> it's not entirely done, the component itself needs work
[15:17:53 EDT(-0400)] <yura> but the data is passed on to the component
[15:18:57 EDT(-0400)] <colinclark_> cool. it's just loading, but a bit slowly because i'm tethered to my iphone on a train without the 3G connection
[15:20:59 EDT(-0400)] <colinclark_> so it's a bit like dialup speed
[15:21:13 EDT(-0400)] <yura> :_
[15:21:15 EDT(-0400)] <yura> (smile)
[15:21:28 EDT(-0400)] <colinclark_> this is really exciting!
[15:21:28 EDT(-0400)] <colinclark_> (smile)
[15:25:49 EDT(-0400)] <yura> the query in the url actually works, it searches for the best matched artifact for the string after '?'. The image is hardcoded for now, so you wont see the changes
[15:25:55 EDT(-0400)] <yura> but yes, it's really cool
[15:27:27 EDT(-0400)] * colinclark (n=colin@74.198.28.32) has joined #fluid-work
[15:30:12 EDT(-0400)] <colinclark> nice work, yura
[15:41:26 EDT(-0400)] <colinclark> yura: Now that the train arrived in London, the page finally loaded.
[15:41:55 EDT(-0400)] <colinclark> Nice job
[15:42:26 EDT(-0400)] <yura> ill see what i can do with performance (smile)
[15:47:08 EDT(-0400)] <colinclark> yeah, it wasn't on your end...
[15:49:25 EDT(-0400)] <colinclark> unless you can improve my iphone's cell signal
[15:49:25 EDT(-0400)] <colinclark> (tongue)
[16:06:02 EDT(-0400)] * laurel (n=Laurel@142.150.154.178) has left #fluid-work
[16:17:29 EDT(-0400)] * colinclark (n=colin@74.198.28.32) has joined #fluid-work
[17:00:27 EDT(-0400)] * colinclark (n=colin@74.198.28.32) has joined #fluid-work
[17:17:44 EDT(-0400)] * colinclark (n=colin@74.198.28.32) has joined #fluid-work
[21:07:52 EDT(-0400)] * colinclark (n=colin@bas2-toronto09-1176444611.dsl.bell.ca) has joined #fluid-work