**** BEGIN LOGGING AT Fri Feb 22 02:59:58 2013 Feb 22 10:54:12 hello :) Feb 22 10:54:24 hey pulsation Feb 22 10:55:00 i have a little question about mvvm Feb 22 10:55:27 as enyo can be used with it Feb 22 10:56:22 Shoot Feb 22 10:58:30 do you think it would be incorrect to use a factory that queries the data access layer (lawnchair for example) to produce some datamodel objects, and inject it into viewmodels? Feb 22 10:59:03 Incorrect as in it breaks the mvvm pattern? Feb 22 10:59:38 does it? Feb 22 11:00:06 I'm not sure. Feb 22 11:00:22 I don't _think_ so, but it's 5am where I am, so what do I know Feb 22 11:03:29 wow, guess that's not because you woke up too early ;) Feb 22 11:03:51 heh, I'm working on scaling some EC2 stuff. Feb 22 11:14:58 good luck then, hope that's not because your stuff became unresponsive. Feb 22 11:15:28 Heh it's not luckily. I was told to add more instances so I am. Feb 22 11:15:32 Just doing what I'm told :P Feb 22 15:17:05 hey guys Feb 22 15:17:34 I am super psyched about this enyo.FormData kind. Does it work in IE8? Feb 22 15:31:31 It just says IE<10 on the notes Feb 22 15:46:30 btw, there seems to be a bug w/ the reorderable list in IE8 Feb 22 15:47:11 the ListItem will drop itself randomly while trying to drag it. Feb 22 15:55:01 hey sugardave Feb 22 15:55:35 hey hey Feb 22 15:58:11 Know anything about this new enyo.FormData object? Feb 22 16:13:39 starting an app Feb 22 16:13:40 http://fnapi.herokuapp.com/ Feb 22 16:14:36 currently random dow stock charts Feb 22 17:27:09 is the combination of FittableRows and a panel destined to fail, or am i doing something dumb? Feb 22 17:46:59 GodGinrai: not really, no Feb 22 17:47:16 madnificent: gotta be option #2 I'm afraid Feb 22 17:47:17 Ouch! An error occurred: 'ConfigDict' object has no attribute 'chiliproject_apikey' Feb 22 17:47:17 !# None Feb 22 17:47:41 whoa, #-sign 2 makes Adium try to do things Feb 22 17:48:30 lol Feb 22 17:49:38 sugardave: Can you explain to me the changes that were made to enyo.Ajax for 2.2? I have a feeling this is going to break all my old POST requests. Feb 22 17:49:49 sugardave: that's a good thing, actually. Feb 22 17:50:46 GodGinrai: I'm not a lot of help today. I've been using the nightlies for so long, I'm not sure what the main differences (other than enhanced CORS) are Feb 22 17:53:15 sugardave: so normally components:[{layoutKind:"FittableRowsLayout",components:[{kind:"onyx.Toolbar",content:"foo"},{kind:"KindWhichContainsEnyoScrollerAsComponent", fit: true}]}] should make the scroller resize too, right? (as in: it should keep the scroller from taking up the toolbar's space by default) Feb 22 17:53:51 seems reasonable Feb 22 17:54:06 * madnificent is puzzled Feb 22 17:54:25 but wait…is it only a scroller in that kind and then something in the scroller? Feb 22 17:55:02 and are you dynamically adding components to it? Feb 22 17:55:13 (not like Repeater items, but createComponent(…)) Feb 22 17:55:35 a scroller goes around what you want to scroll Feb 22 17:55:50 GodGinrai: yeah, i got that. Feb 22 17:55:53 it won't expand to fill it's container Feb 22 17:56:23 toolbar; scroller (fit:true); <- my usual pattern Feb 22 17:56:25 sugardave: how about i paste the less-than-300-loc of the app ? Feb 22 17:56:43 Also, why are you using an anonymous control rather than the FittableRows kind? Feb 22 17:56:44 madnificent: jsfiddle it, if you can Feb 22 17:56:48 or pastebin if not Feb 22 17:57:09 if you pastebin, use pastebin.mozilla.org Feb 22 17:57:14 so I can see it Feb 22 17:57:20 i have a kind, which has a scroller, which has a repeater Feb 22 17:57:52 it depends on onyx etc, so jsfiddle will probably fail, no? Feb 22 17:58:21 oh and it requires intercom, but i'll comment that out. Feb 22 17:59:13 madnificent: layout and onyx are both options on jsfiddle Feb 22 18:00:11 sugardave: just saw it, cool Feb 22 18:00:14 http://jsfiddle.net/xtZ7v/ Feb 22 18:00:20 sugardave: Pull 192 on github Feb 22 18:00:39 talks about post not working w/o postbody set Feb 22 18:00:53 and something about url encoding the variables Feb 22 18:00:57 for go() Feb 22 18:01:18 i should have mocked the intercom calls WITH content Feb 22 18:01:46 As far as I can tell, whatever I've been passing into ws.send() was going into the postbody Feb 22 18:01:54 madnificent: heh, which kind should I render…pax.MainPanel() Feb 22 18:01:56 ? Feb 22 18:02:03 but this makes it sound like that was changed? Feb 22 18:02:18 MainPanel, yes Feb 22 18:02:36 but i'll see to get some content in there as an example, sorry Feb 22 18:02:46 GodGinrai: hmmm, that doesn't seem right. I'd take a look at the enyo.Ajax source to confirm what .send is doing Feb 22 18:05:48 GodGinrai: do you mean .go()? .send() was WebService in Enyo 1... Feb 22 18:06:06 madnificent: when I render your MainPanel, I just see a toolbar. Is that correct? Feb 22 18:06:32 Godnevermind, I'm crossing streams Feb 22 18:06:40 sugardave: I mean go(), and by extension, the send() for the Enyo 2 webservice component I use. Feb 22 18:06:45 got it Feb 22 18:06:52 I was thinking of .call() Feb 22 18:07:13 ah, I see Feb 22 18:09:38 GodGinrai: yeah, the content should come on top of there Feb 22 18:09:47 GodGinrai: sorry, in the bottom of that, just a sec Feb 22 18:09:50 wb visionary Feb 22 18:12:16 GodGinrai: so it looks like .postBody is still being placed in the body Feb 22 18:12:24 unless I'm just that bad at reading the code Feb 22 18:12:48 http://jsfiddle.net/xtZ7v/1/ Feb 22 18:13:29 madnificent: interesting…give me a minute or two Feb 22 18:13:33 well my main concern is whether what I pass in as my Params to send() will still go in the postBody Feb 22 18:14:08 GodGinrai: only if it's a POST and in the .postBody property of that object is what it looks like to me Feb 22 18:14:10 sugardave: thanks for looking at it. it seems i always run into these dull issues. note that both panels have the same issue, it's just that one has a top of 50px set to hide it. Feb 22 18:14:49 damn. :/ So I will have to rewrite my code Feb 22 18:16:07 madnificent: one of your toolbars is translucent. Is that to show that the content is getting rendered behind it? Feb 22 18:17:06 GodGinrai: no Feb 22 18:17:21 GodGinrai: i haven't set it to be so explicitly Feb 22 18:17:34 that's weird Feb 22 18:17:43 the one on products is Feb 22 18:17:50 but the packages one is not Feb 22 18:19:35 GodGinrai: the packages has a top offset set in the style (to overcome the shadowing issue) Feb 22 18:20:12 something else is going on, too, but haven't isolate it yet….I threw a this.$.panels.resized() at the end of your updateProducts function and it blows everything away….should not do that Feb 22 18:20:14 GodGinrai: it isn't translucency, it just looks like it, i think. the font is on top Feb 22 18:20:46 ow my, in nightly mode i make good stuff run away scared, it seems :/ sorry for the mess Feb 22 18:20:54 oh, the font is on top Feb 22 18:21:00 lol Feb 22 18:21:03 s'ok Feb 22 18:21:46 oh duh Feb 22 18:22:07 oh please tell me! Feb 22 18:22:11 the scroller is absolute Feb 22 18:22:32 madnificent: you have enyo-fit on that scroller inside the product list kind Feb 22 18:22:34 wai? Feb 22 18:22:37 and has enyo-fit Feb 22 18:22:48 and that shouldn't be, i now assume? Feb 22 18:22:49 which sets position Feb 22 18:23:14 like I said, you should just have the scrolled as the other kind Feb 22 18:23:14 so unless it's in another static/relative position container in the tree, it expands to the viewport Feb 22 18:23:20 w/ fit: true Feb 22 18:23:37 *scroller Feb 22 18:23:44 wait, talk to me in baby-terms for a moment. Feb 22 18:23:53 when should i use enyo-fit? Feb 22 18:23:55 lol, sugardave and I found it at the same time XD Feb 22 18:24:07 (also, feel free to update) Feb 22 18:24:20 on things that are not absolute Feb 22 18:24:30 http://jsfiddle.net/xtZ7v/2/ Feb 22 18:24:30 unless they are in absolute containers Feb 22 18:25:40 rule of thumb, unless you know what you are doing, only use enyo-fit class on things you don't mind taking up the entire viewport :P Feb 22 18:26:09 so how do i know that they won't be absolute? as in: how do i know (aside from inspecting in the browser) that the panels won't be absolute? Feb 22 18:26:22 sugardave: that's a handy one to get the hang of it :) Feb 22 18:26:48 also, check out enyo-fill >_> Feb 22 18:26:49 well, in general, you should do as sugardave said. Feb 22 18:26:54 * madnificent unmocks his code Feb 22 18:27:35 sugardave: there needs to be a reference for the CSS classes like we have for the API Feb 22 18:27:35 thanks a lot! Feb 22 18:27:53 GodGinrai: we love pull requests! Feb 22 18:28:14 lol Feb 22 18:29:50 sugardave: would you be interested in enyo-features, the metaprogramming thing we built? it's on github as a separated module, but it hooks deep into the core language, so in order to pull i'd probably have to merge it back in. Feb 22 18:30:10 a writeup about what it does is on github.com/madnificent/enyo-features Feb 22 18:30:15 what does it do? Feb 22 18:30:16 ah Feb 22 18:30:17 k Feb 22 18:31:28 madnificent: can you linkify that so I can read it on my phone? Feb 22 18:31:36 we often use it and haven't had issues with it. aside from metaprogramming being a tad complex, obviously. Feb 22 18:31:58 GodGinrai: http://github.com/madnificent/enyo-features/ Feb 22 18:32:26 ty Feb 22 18:32:43 i should thank you guys for helping me, instead of the other way around :) Feb 22 18:36:05 so, you like, broke my head with that link Feb 22 18:36:14 it looks interesting, though Feb 22 18:37:33 lol yea, reading through it now :) Feb 22 18:37:33 it takes some time to wrap your head around it, but it helps us remove a lot of repetition. it's somewhat a mangling of a metaprogramming framework and a macro system. it doesn't have all features of either, but it has some features of both. Feb 22 18:38:25 Plus, madnificent, that's the great place about IRC: It's a place where people can teach, learn, and help each other at the same time Feb 22 18:38:31 (also, if you want to get your head blown away, look at metafeatures before you grasp features. a meta-feature is a feature used by a feature to remove the repititional code you can have whilst writing features) Feb 22 18:38:34 *great thing about Feb 22 18:38:44 if it hooks deeply into core, you might want to hold off making big changes….MVC bindings and whatnot are being merged in and some things are changing at fundamental levels Feb 22 18:38:52 yeah. a and IRC makes me happy Feb 22 18:39:25 setters/getters is a big one Feb 22 18:39:47 sugardave: the hooks are in enyo-hooks. i'm probably on a lower level. Feb 22 18:39:56 :( what's changing about getters and setters? Feb 22 18:40:02 devs will start moving to object.set("property", value); Feb 22 18:40:06 I LOVE how they are now Feb 22 18:40:10 but the old way will still work Feb 22 18:40:23 hrm Feb 22 18:40:34 I can see how that could be useful Feb 22 18:41:06 enyo-hooks.js basically extends some enyo primitive functions with code to be ran before/after them. Feb 22 18:41:10 it also eliminates the published system, so you can set/get any arbitrary property on an object Feb 22 18:41:15 then would wouldn't have to use string concatenation to dynamically set variables Feb 22 18:41:15 *you wouldn't Feb 22 18:41:25 wait, what? Feb 22 18:41:25 again, published and old set*/get* will still work Feb 22 18:41:34 I liked published Feb 22 18:41:46 you can still use it, just don't have to anymore Feb 22 18:41:49 it was like a distinction between public and private Feb 22 18:41:54 *when MVC is done Feb 22 18:42:07 * madnificent is curious about the changes to come Feb 22 18:42:24 fun stuff, I've been kicking the tires on it for 6 weeks or so Feb 22 18:44:54 devving enyo seems to be a cool job. i enjoy the time i spent on features too. extending something beatuful Feb 22 18:45:30 I gotta say, I'm still most excited about enyo.FormData and the removal of console.log references Feb 22 18:48:52 because I ran into problems in IE8 that both of these should hopefully fix :) Feb 22 18:49:58 * madnificent broke scrolling ;_; searching Feb 22 18:52:19 seems to be an issue in the fiddle too Feb 22 18:53:09 lol Feb 22 18:55:49 yeah, the productslist doesn't know it should stay in the viewport now Feb 22 19:02:36 shouldn't the scroller intelligently set its size? Feb 22 19:03:10 hmm, got to go. bbl. i probably have to limit the space where the scroller lives in. Feb 22 19:03:27 (but then again, i assumed that would be fit's job) Feb 22 19:23:13 woo, my .selectPanelByName() method is in the top-of-tree for enyo.Panels now Feb 22 19:25:48 hey guys. I'm dynamically creating a picker but for some reason it's not firing the onSelect function. Can someone take a look and see if I missed something? http://pastebin.com/AvN4MK94 Feb 22 19:32:19 I tried to dynamically build a picker, and gave up after a whole day wasted trying to get it to show more than just the same value Feb 22 19:32:44 Then I just build a Menu kind that worked like a dynamic picker Feb 22 19:32:57 I'd suggest you do the same. :P Feb 22 19:33:03 *built Feb 22 19:52:09 GodGinrai: Thanks! Feb 22 19:52:10 trex005: when you dynamically add components, the owner property gets set differently than when you declare it Feb 22 19:52:42 sugardave: changing the owner did the trick Feb 22 19:52:49 you can fix this by pasing a second object to createComponent/s. {owner: this} probably does what you want Feb 22 19:52:52 si Feb 22 20:56:32 any idea why my scroller at http://jsfiddle.net/xtZ7v/4/ thinks it's perfectly fine to be way bigger than the element in which it is contained? Feb 22 21:03:52 got it, i think. though i'm not confident that i know why it works now. Feb 22 21:04:01 well, i know i forced the size Feb 22 21:05:45 lol Feb 22 21:06:10 sugardave: any idea how to get the file from a file input that works in IE8? Feb 22 21:06:39 It is giving me "files.0 is null or not an object" when I try to access it Feb 22 21:50:30 cya guys later **** ENDING LOGGING AT Sat Feb 23 02:59:58 2013