[00:02:35] cwb` (~user@russell.carlbaatz.com) joined #rest. [01:07:38] grove (~grove@84.115.45.31.customer.cdi.no) joined #rest. [01:29:21] cwb` (~user@russell.carlbaatz.com) left irc: Ping timeout: 268 seconds [01:30:13] cwb` (~user@russell.carlbaatz.com) joined #rest. [01:45:05] grove (~grove@84.115.45.31.customer.cdi.no) left irc: Quit: grove [01:46:00] grove (~grove@84.115.45.31.customer.cdi.no) joined #rest. [01:47:12] grove (~grove@84.115.45.31.customer.cdi.no) left irc: Client Quit [01:51:40] Wombert (~Wombert@dslb-088-065-201-187.pools.arcor-ip.net) joined #rest. [02:31:58] DracoBlue (~Adium@dslb-088-075-066-254.pools.arcor-ip.net) joined #rest. [02:32:09] sgronblo (~sgronblom@218.223.19.176) left irc: Ping timeout: 240 seconds [02:32:54] sgronblo (~sgronblom@218.223.19.176) joined #rest. [02:33:38] DracoBlue (~Adium@dslb-088-075-066-254.pools.arcor-ip.net) left #rest. [03:13:21] cwb` (~user@russell.carlbaatz.com) left irc: Read error: Connection reset by peer [03:13:38] cwb` (~user@russell.carlbaatz.com) joined #rest. [04:00:54] grove (~grove@84.115.45.31.customer.cdi.no) joined #rest. [05:00:07] cwb` (~user@russell.carlbaatz.com) left irc: Read error: Connection reset by peer [05:00:20] cwb` (~user@russell.carlbaatz.com) joined #rest. [05:33:44] Hakon|mbp (~hakon1@78-31-11.connect.netcom.no) joined #rest. [05:58:24] dreinull (~dreieins@217.18.70.225) left #rest ("Leaving..."). [06:13:39] Action: mamund is baaaaack [06:22:49] cwb` (~user@russell.carlbaatz.com) left irc: Read error: Connection reset by peer [06:23:03] cwb` (~user@russell.carlbaatz.com) joined #rest. [07:42:59] cwb` (~user@russell.carlbaatz.com) left irc: Read error: Connection reset by peer [07:43:16] cwb` (~user@russell.carlbaatz.com) joined #rest. [07:50:23] grove (~grove@84.115.45.31.customer.cdi.no) left irc: Quit: grove [08:20:59] wav1 (~Adium@24-155-228-96.dyn.grandenetworks.net) joined #rest. [08:31:07] quest88 (~quest88@adsl-75-23-35-7.dsl.lgvwtx.sbcglobal.net) joined #rest. [08:38:09] scudco (~scudco@cpe-75-85-13-152.socal.res.rr.com) left irc: Ping timeout: 240 seconds [08:40:58] quest88 (~quest88@adsl-75-23-35-7.dsl.lgvwtx.sbcglobal.net) left irc: Quit: quest88 [08:48:00] saml (~sam@adfb12c6.cst.lightpath.net) joined #rest. [08:48:33] let's say there is an image /foo/bar.jpg and there are small crops of the image. could they be /foo/bar.jpg/100x34.jpg ? [08:48:50] or should i treat crops or thumbnails as different image [08:48:58] that really, really doesn't matter [08:49:07] they already are different resources as they have different URLs [08:49:08] yea that's a matter of taste [08:49:17] i see. thanks. [08:49:28] you can provide links from the first image to scaled versions, but that's a bit nasty [08:49:59] like /foo/bar.jpg?thumbnails [08:50:00] but is a smaller (not cropped) version of an image simply a different representation of the same resource? There's a noggin scratcher [08:50:58] Hakon|mbp (~hakon1@78-31-11.connect.netcom.no) left irc: Quit: Leaving... [08:51:01] whartung: I can't find a way in which that would they could be the same resource unless there's a image/* type that include resolution [08:51:08] business considers cropped, transparent background, color corrected as different representation of the same resource. [08:51:12] or I guess you can always include a header and use Vary [08:51:43] yea, I dunno how to represent it via a media type either trygvis [08:51:44] I doubt your "business" and the "http" folks have the same definition of "resource" [08:52:12] but I was curious what a good URL would be, much like what saml is asking. [08:52:24] if the app that store the images also can scale them I'd probably implement /foo.png?width=100 [08:52:35] on the one hand, you can do img.jpg?h=100&w=100 [08:52:40] saml: {"link": {"href":"...", "rel":"cropped"}} [08:52:44] it doesn't matter really, it's more important how the client knows how to request the image [08:53:00] but I'm not sure if urls with query parameters cache properly. [08:53:03] focus on the rel token and not the actual URI [08:53:10] you could do something like what mamund with a URI template too [08:53:25] then you can do whatever you like at any time in the future w/o breaking anything [08:53:32] whartung: my experience show that they do, even with the current caches [08:53:55] ok, then I'd be most comfortable with a query param rather than trying to create a new resource namespace. [08:53:56] but when you start to add Vary and stuff tings might break [08:54:13] cwb` (~user@russell.carlbaatz.com) left irc: Read error: Connection reset by peer [08:54:22] yea I wanted something that works with the BDB model (Brain Dead Browsers) [08:54:23] but mamund is right, it's the relation that's important [08:54:27] cwb` (~user@russell.carlbaatz.com) joined #rest. [08:54:46] we're doing it this way: http://www.vanityfair.com/dam/hollywood/2012/lady-gaga.jpg http://www.vanityfair.com/dam/hollywood/2012/lady-gaga.jpg/jcr:content/renditions/cq5dam.thumbnail.319.319.png [08:55:14] saml: nothing wrong w/ that, IMO. [08:55:15] that's as fine as almost any other URL :) [08:55:21] yep [08:56:13] mamund, what is that json? [08:56:37] yea, that's nice saml [08:57:13] http://www.vanityfair.com/dam/hollywood/2012/lady-gaga.jpg/jcr:content/renditions.tidy.1.json [08:57:57] yeah, but you can do the same w/ XML or any other format [08:58:21] the point is to use a token (rel, etc.) to identify the URI [08:58:33] then coach servers to always send that token [08:58:48] and train clients to loook for that token [08:59:01] then you don't crate any coupling to the actual URI [08:59:22] this kinda itches though, the rel doesn't say anything about *how much* it should it cropped [08:59:50] Action: trygvis brings out the uri template stick [09:00:30] mamund, what url will out put that json? [09:00:38] ??? [09:00:47] not sure i understand the Q [09:00:58] i mean, GET /foo/image.jpg will reeturn {"link": {"href":"...", "rel":"cropped"}} ? [09:01:20] no [09:01:40] what i was talking about is how you represent the link when you _first_ send it to the client [09:01:58] not the response to the image GET [09:02:04] does that make sense? [09:02:55] do you use JSON format in your messages? XML? HTML? [09:04:17] oh. it's not really a rest system. browsers are only clients. so mostly html and json [09:04:35] so, the client will assemble URL for "cropped" rendition [09:04:49] so, how does the client get the URIs? [09:04:52] in JSON? [09:05:04] for example, json["link"]["href"] + "/" + json["link"]["rel"] [09:05:18] [09:05:19] ok [09:05:23] hmmm [09:05:34] well, what does a response look like (not the code to parse it) [09:06:51] maybe i misled. i was wondering if renditions should be under /foo/bar.jpg or some completely different url such as /renditions/foo/bar/1.jpg [09:07:01] but i guess it does not matter [09:07:09] anyway, my only point (which may not be intersting to you right now).... [09:07:27] is to include names for all links and make sure client code looks for names, not links. [09:07:36] [09:07:57] etc. [09:08:10] it's a style suggestion, that's all. [09:08:35] btw, this renditions response... [09:08:39] what is it used for? [09:08:52] to tell clients what possible renditions are avail for an image? [09:09:24] no. i'm just trying to figure out "proper" way to store images and their renditions. static server will serve them [09:09:34] hmmm... [09:09:41] there is no need to get a list of renditions for an image at the moment. [09:09:46] ok [09:10:18] huh, what is that JSON then? [09:10:42] it's what the server we use do by default [09:11:05] ahhh [09:11:19] so this is not reflected back to clients at all, just some internal representation. [09:11:27] it's not necessary at all. given an url, you can change extention to .json, .xml, .pdf... etc and the server renders the resource accordingly [09:11:35] yes [09:11:38] ok [09:54:43] grove (~grove@84.115.45.31.customer.cdi.no) joined #rest. [09:54:44] quest88 (~quest88@75.23.35.7) joined #rest. [09:55:31] grove (~grove@84.115.45.31.customer.cdi.no) left irc: Client Quit [10:05:36] grove (~grove@84.115.45.31.customer.cdi.no) joined #rest. [10:23:54] KevBurnsJr (KevBurnsJr@c-76-21-117-179.hsd1.ca.comcast.net) joined #rest. [10:42:52] wav11 (~Adium@24-155-228-96.dyn.grandenetworks.net) joined #rest. [10:42:53] wav1 (~Adium@24-155-228-96.dyn.grandenetworks.net) left irc: Read error: Connection reset by peer [10:46:35] wav11 (~Adium@24-155-228-96.dyn.grandenetworks.net) left irc: Client Quit [11:19:30] saml (~sam@adfb12c6.cst.lightpath.net) left irc: Quit: Leaving [11:41:28] cwb` (~user@russell.carlbaatz.com) left irc: Read error: Connection reset by peer [11:41:43] cwb` (~user@russell.carlbaatz.com) joined #rest. [11:54:11] nuclearsandwich (~nuclearsa@74-93-3-241-SFBA.hfc.comcastbusiness.net) joined #rest. [12:28:00] cwb` (~user@russell.carlbaatz.com) left irc: Read error: Connection reset by peer [12:28:17] cwb` (~user@russell.carlbaatz.com) joined #rest. [13:01:03] Action: mamund is all done for the day and the week. laters! [13:01:36] Have a very merry christmas :-) And get lots of REST [13:01:50] ...sorry, someone had to do it. [13:15:29] DracoBlue (~Adium@p4FD2EC97.dip.t-dialin.net) joined #rest. [13:15:36] DracoBlue (~Adium@p4FD2EC97.dip.t-dialin.net) left #rest. [13:29:40] darrelmiller: This year I'm just giving my kids representations of their gifts [13:29:59] Look son, that's what a basketball goal would look like if it were in our driveway [13:42:36] cwb` (~user@russell.carlbaatz.com) left irc: Read error: Connection reset by peer [13:42:47] the basket itself would just be the current representation of the "athletic kid" resource [13:42:52] cwb` (~user@russell.carlbaatz.com) joined #rest. [13:43:56] pc1oad1etter: Just have him take the blue pill. [13:50:29] kennethreitz (~kennethre@c-24-127-96-129.hsd1.va.comcast.net) left irc: Ping timeout: 244 seconds [13:53:47] 1131111 [13:53:47] 1 [13:53:49] Last message repeated 1 time(s). [13:53:49] 31 [13:54:07] 111 1 [13:54:09] 1 [13:54:09] 13 [13:54:10] Last message repeated 1 time(s). [13:54:10] 1 [13:54:12] 11 [13:54:14] 11111 [13:54:17] [13:57:39] wav1 (~Adium@65-111-98-91.dyn.grandenetworks.net) joined #rest. [13:59:08] ugh, sorry, guess they knew I was talking about them. [14:10:38] Wombert (~Wombert@dslb-088-065-201-187.pools.arcor-ip.net) left irc: Quit: Wombert [14:14:09] wav11 (~Adium@65-111-98-91.dyn.grandenetworks.net) joined #rest. [14:14:09] wav1 (~Adium@65-111-98-91.dyn.grandenetworks.net) left irc: Read error: Connection reset by peer [14:46:51] cwb` (~user@russell.carlbaatz.com) left irc: Read error: Connection reset by peer [14:47:07] cwb` (~user@russell.carlbaatz.com) joined #rest. [15:08:07] grove (~grove@84.115.45.31.customer.cdi.no) left irc: Quit: grove [15:22:27] happy yuletide [15:29:55] you to Ngarthl [16:05:10] cwb` (~user@russell.carlbaatz.com) left irc: Read error: Connection reset by peer [16:05:23] cwb` (~user@russell.carlbaatz.com) joined #rest. [16:47:01] wav11 (~Adium@65-111-98-91.dyn.grandenetworks.net) left irc: Quit: Leaving. [16:48:21] sbanwart (~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net) joined #rest. [17:16:09] cwb` (~user@russell.carlbaatz.com) left irc: Ping timeout: 240 seconds [17:16:32] cwb` (~user@russell.carlbaatz.com) joined #rest. [18:26:01] cwb` (~user@russell.carlbaatz.com) left irc: Read error: Connection reset by peer [18:26:16] cwb` (~user@russell.carlbaatz.com) joined #rest. [19:22:23] nuclearsandwich (~nuclearsa@74-93-3-241-SFBA.hfc.comcastbusiness.net) left irc: Remote host closed the connection [19:23:17] sbanwart (~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net) left irc: Ping timeout: 252 seconds [19:40:47] kennethreitz (~kennethre@c-24-127-96-129.hsd1.va.comcast.net) joined #rest. [19:43:30] scudco (~scudco@cpe-75-85-13-152.socal.res.rr.com) joined #rest. [19:48:26] cwb` (~user@russell.carlbaatz.com) left irc: Read error: Connection reset by peer [19:48:45] cwb` (~user@russell.carlbaatz.com) joined #rest. [20:01:28] Wombert (~Wombert@dslb-092-075-027-159.pools.arcor-ip.net) joined #rest. [20:16:23] impl_ (impl@ester.at.cynigram.com) joined #rest. [20:16:23] impl_ (impl@ester.at.cynigram.com) left irc: Changing host [20:16:23] impl_ (impl@atheme/member/impl) joined #rest. [20:16:38] impl (impl@atheme/member/impl) left irc: Read error: Connection reset by peer [20:30:26] Blazeix_ (~Blazeix@71.74.190.197) joined #rest. [20:30:56] mogsie1 (~mogsie@62.101.198.35) joined #rest. [20:35:06] Blazeix (~Blazeix@71.74.190.197) left irc: Ping timeout: 240 seconds [20:35:06] mogsie (~mogsie@62.101.198.35) left irc: Ping timeout: 240 seconds [20:37:49] Nick change: impl_ -> impl [20:40:08] nuclearsandwich (~nuclearsa@74-93-3-241-SFBA.hfc.comcastbusiness.net) joined #rest. [20:40:32] nuclearsandwich (~nuclearsa@74-93-3-241-SFBA.hfc.comcastbusiness.net) left irc: Read error: Connection reset by peer [20:40:35] nuclears_ (~nuclearsa@74-93-3-241-SFBA.hfc.comcastbusiness.net) joined #rest. [21:02:05] cwb` (~user@russell.carlbaatz.com) left irc: Ping timeout: 252 seconds [21:02:58] cwb` (~user@russell.carlbaatz.com) joined #rest. [22:13:14] nuclears_ (~nuclearsa@74-93-3-241-SFBA.hfc.comcastbusiness.net) left irc: Remote host closed the connection [22:15:17] cwb` (~user@russell.carlbaatz.com) left irc: Ping timeout: 240 seconds [22:16:19] cwb` (~user@russell.carlbaatz.com) joined #rest. [22:49:34] kennethr_ (~kennethre@c-24-127-96-129.hsd1.va.comcast.net) joined #rest. [22:50:24] kennethreitz (~kennethre@c-24-127-96-129.hsd1.va.comcast.net) left irc: Ping timeout: 244 seconds [22:54:17] Nick change: Blazeix_ -> Blazeix [22:56:18] kennethr_ (~kennethre@c-24-127-96-129.hsd1.va.comcast.net) left irc: Quit: Textual IRC Client: http://www.textualapp.com/ [22:56:43] kennethreitz (~kennethre@c-24-127-96-129.hsd1.va.comcast.net) joined #rest. [23:31:30] cwb` (~user@russell.carlbaatz.com) left irc: Ping timeout: 240 seconds [23:34:31] cwb` (~user@russell.carlbaatz.com) joined #rest. [23:56:32] grove (~grove@84.115.45.31.customer.cdi.no) joined #rest. [23:57:43] KevBurnsJr (KevBurnsJr@c-76-21-117-179.hsd1.ca.comcast.net) left irc: [00:00:00] --- Sat Dec 24 2011