fluid-work IRC Logs-2012-07-11
[10:24:26 CDT(-0500)] <logiclord> Justin_o: I think there must be a way to select text similar to TinyMCE which shows proper html with images in text box.. since in a textbox we can select text very easily
[10:25:00 CDT(-0500)] <logiclord> we must use a rich textbox instead of div
[10:40:11 CDT(-0500)] <jessm> bah!
[10:40:25 CDT(-0500)] <jessm> fluid-everyone: through no fault of connect this time i just totally missed standup
[10:41:22 CDT(-0500)] <clown> me too, jessm.
[10:41:46 CDT(-0500)] <jessm> here's my standup: I was fortunate to just have a really cool design chat with jameswy and tona, I'm following up on some SOWs from yesterday, and I'm touching base with michelled later re: floe and roadmapping work. beyond that i need to put together a doc for IDI equip checkout - TODAY
[10:41:51 CDT(-0500)] <jessm> clown: it happens!
[10:42:52 CDT(-0500)] <clown> jessm: especially, when you are deep inside a gnome debugger, and thinking up a reply to an email.
[10:46:43 CDT(-0500)] <Justin_o> logiclord: mentioned your issue to Bosmon, he pointed me at http://codemirror.net/
[10:47:47 CDT(-0500)] <Justin_o> logiclord: there is also some info on the implementation concept here http://codemirror.net/doc/internals.html
[10:49:29 CDT(-0500)] <alexn1> Bosmon: ayt ?
[11:03:56 CDT(-0500)] <asteig_> Morning, Justin_o.
[11:04:49 CDT(-0500)] <Justin_o> asteig_: good morning.. how are things going?
[11:05:14 CDT(-0500)] <asteig_> Justin_o: Ugh, dropping the macbook was a minor setback, but other than that... :-p
[11:05:22 CDT(-0500)] <asteig_> I have a little catch up to do with brightness today.
[11:06:08 CDT(-0500)] <Justin_o> asteig_: oh a dropped macbook.. been there.. luckily mine just dented all over the place.. how is yours doing?
[11:06:42 CDT(-0500)] <asteig_> Justin_o: Mine is working again thankfully. I know nothing about hardware so I thank my geeky friend and the computer gods for that one.
[11:07:03 CDT(-0500)] <Justin_o> asteig_:
[11:07:13 CDT(-0500)] <asteig_> Justin_o: I dropped it playing with lasers though, so TOTALLY worth it. LOL
[11:07:31 CDT(-0500)] <Justin_o> asteig_: that sounds like fun..
[11:08:04 CDT(-0500)] <Justin_o> asteig_: did you see the e-mail i sent you last week about your code?
[11:08:54 CDT(-0500)] <asteig_> Justin_o: Yeah, it was very helpful. Thank you! The only issue I have now is that after I deleted my creator function to stop mixing the old style and new style, the editor.imageAdjuster never gets adjusted...
[11:09:06 CDT(-0500)] <asteig_> ER, adjusted = created I'm a little tired.
[11:09:38 CDT(-0500)] <asteig_> Should the fluid.defaults function create an editor.imageAdjuster object?
[11:09:45 CDT(-0500)] <Justin_o> asteig_: okay.. did you push up your changes to your github repo yet?
[11:10:24 CDT(-0500)] <asteig_> Justin_o: Nope, I didn't really want to do that since it just breaks the entire thing.
[11:10:25 CDT(-0500)] <Justin_o> asteig_: no it won't create an instance.. you'd still need to call something like editor.imageAdjuster()
[11:11:03 CDT(-0500)] <asteig_> Justin_o: Do I set that to an empty object or do I create it from something else in the library? That's the part I'm confused about, I guess. The creator function is pretty straight forward.
[11:11:06 CDT(-0500)] <Justin_o> asteig_: what you could do so that you can keep using version control, and make your work visible too, is to work in a branch.. do you know much about working with git branches?
[11:11:40 CDT(-0500)] <asteig_> I know a bit, I can have a friend explain that to me today. I have been meaning to do that for a while.
[11:11:57 CDT(-0500)] <asteig_> Justin_o: I'm essentially using it like I'd use svn, but I know it has way better capabilities than that.
[11:12:10 CDT(-0500)] <Justin_o> asteig_: if you used the "autoInit" gradeName you should be able to just call it.. fluid.defaults will have basically generated the creator function in the background for you..
[11:13:01 CDT(-0500)] <Justin_o> asteig_: yes.. branches are much friendlier in git, in my opinion.. we tend to do all our work in branches actually and just keep the master stable
[11:13:35 CDT(-0500)] <asteig_> Justin_o: Yeah, that makes a lot of sense. I will start doing it that way.
[11:13:59 CDT(-0500)] <Justin_o> asteig_: here's some info we have on using git, and there are a bunch of links to documentation there too http://wiki.fluidproject.org/display/fluid/GIT+Tips+and+Tricks
[11:14:25 CDT(-0500)] <asteig_> Justin_o: Thanks!
[11:15:07 CDT(-0500)] <Justin_o> asteig_: the documentation here is really good, and they have some videos that might be helpful too http://gitscm.com/
[11:15:37 CDT(-0500)] <asteig_> Justin_o: I'm looking at my code now, at the fluid.defaults function... and I have fluid.defaults("editor.imageAdjuster", { gradeNames: ["fluid.viewComponent", "autoInit"].
[11:15:55 CDT(-0500)] <asteig_> Should that be creating a editor.imageAdjuster?
[11:16:16 CDT(-0500)] <Justin_o> asteig_: it doesn't create the instance of it.. it just gets things ready for you to do that
[11:16:27 CDT(-0500)] <asteig_> Oh, alright. What is the step to create it?
[11:17:32 CDT(-0500)] <Justin_o> you would just call editor.imageAdjuster(container, options); where container is the element in the markup that will act as the components container, and options is an object {} of the the options you want to override (it's optional)
[11:18:08 CDT(-0500)] <asteig_> Oh, alright. So I still use the creator function the same way?
[11:18:11 CDT(-0500)] <Justin_o> you may have not seen that call because we usually have it in the html file.. in a script tag below the container that it acts upon
[11:18:16 CDT(-0500)] <asteig_> Justin_o: Isn't that mixing the two styles?
[11:18:25 CDT(-0500)] <Justin_o> asteig_: no.. you don't have to write the creator function
[11:18:42 CDT(-0500)] <asteig_> One second. Rerunning my code.
[11:18:50 CDT(-0500)] <Justin_o> asteig_: okay
[11:20:47 CDT(-0500)] <Justin_o> asteig_: this might be a simpler example to follow, although it's a renderer component instead of a view component.. https://github.com/fluid-project/infusion/blob/master/src/webapp/demos/fss/clearfix/js/clearfixDemo.js
[11:20:48 CDT(-0500)] <asteig_> Okay, so I have this line at the bottom of my html file: <script>editor.imageAdjuster("#flc-image-adjuster-container");</script>
[11:21:30 CDT(-0500)] <Justin_o> asteig_: so that example i sent would be paired with this html file https://github.com/fluid-project/infusion/blob/master/src/webapp/demos/fss/clearfix/html/clearfix.html
[11:21:47 CDT(-0500)] <Justin_o> asteig_: yes.. that seems like it should work.. is it still not doing anything?
[11:22:33 CDT(-0500)] <asteig_> Justin_o: It's not doing anything. It's saying that editor.imageAdjuster does not exist. Combing for a typo or something.
[11:23:15 CDT(-0500)] <Justin_o> asteig_: okay.. can you send me a pastebin of your markup and javascript. http://pastebin.com/
[11:25:49 CDT(-0500)] <asteig_> Justin_o: Here's the JavaScript. It's the same except I deleted what I had commented as the creator function...
[11:25:51 CDT(-0500)] <asteig_> http://pastebin.com/RJVMWjKc
[11:26:44 CDT(-0500)] <asteig_> HTML: http://pastebin.com/rAVhygnA
[11:28:26 CDT(-0500)] <asteig_> Justin_o: The core issue, and the reason I'm trying to clean up the creation, is that that.locate('selectorName') doesn't work for anything.
[11:28:57 CDT(-0500)] <Justin_o> asteig_: okay.. i'll take a quick look at this and see if i spot anything
[11:29:15 CDT(-0500)] <asteig_> Justin_o: Wonderful, thank you!
[11:31:43 CDT(-0500)] <Justin_o> asteig_: okay.. so first off this is the markup that you are currently trying to run right?
[11:32:21 CDT(-0500)] <asteig_> Justin_o: Correct
[11:33:30 CDT(-0500)] <Justin_o> asteig_: okay.. so the <script> tag at the bottom of the won't work here because these are the unit tests… what you actually need to do is to have that call to initialize the component in each of your tests
[11:33:54 CDT(-0500)] <Justin_o> i.e. "Setup Tests", "Brightness Tests" and etc.
[11:34:09 CDT(-0500)] <asteig_> Justin_o: Oh, that's.... fun. Hold on a second.
[11:35:55 CDT(-0500)] <Justin_o> asteig_: here's a small example one you can use as an example https://github.com/fluid-project/infusion/blob/master/src/webapp/tests/component-tests/tabs/js/TabsTests.js
[11:36:11 CDT(-0500)] <Justin_o> asteig_: notice the call to fluid.tabs(".flc-tabs");
[11:40:48 CDT(-0500)] <Justin_o> asteig_: also, before i forget I believe you have to fill out a midterm evaluation this week and submit it to GSoC
[11:42:35 CDT(-0500)] <asteig_> Justin_o: Alright, I will do that today. I'm playing around with rewriting the tests to use myEditor = in it.
[11:43:47 CDT(-0500)] <asteig_> Justin_o: Actually, I'll just do the evaluation right now. But in theory, once I take a look at the TabsTest example, and create the myEditor object, everything should work including that.locate, right?
[11:45:52 CDT(-0500)] <Justin_o> asteig_: yes.. should be working.. the "that" is an instance of your component, in case you were curious
[11:46:40 CDT(-0500)] <asteig_> Justin_o: Okay, I will play around with that. I need to let my coffee kick in a bit I think. LOL
[11:46:41 CDT(-0500)] <Justin_o> asteig_: i'm not sure about your preInit function though.. i think i mentioned in the e-mail that you should probably move the code from the pre and post init functions into a finalInitFunciton instead.
[11:46:47 CDT(-0500)] <Justin_o>
[11:46:59 CDT(-0500)] <asteig_> Yes, I remember that. I will comb through that email again. I am sure I missed something.
[11:47:08 CDT(-0500)] <Justin_o> asteig_: great.. let me know how it goes.. in about 15 min I'll be disappearing for an hour or so, but will back online after that.. also feel free to e-mail me or the list if you have any more questions about this, git, or anything.
[11:48:08 CDT(-0500)] <Justin_o> asteig_: also you can come by and chat at any time, you don't have to wait till our scheduled appointments.. jhung and/or I will usually be here during normal working hours.. and sometimes outside of them
[11:48:36 CDT(-0500)] <asteig_> Justin_o: Yeah, will do. I just have such weird hours that I'm trying to level out, and time zones and whatnot. :-p
[11:49:04 CDT(-0500)] <asteig_> Justin_o: I usually do my homework in the beginning of the day and then GSoC at the end of the day, but it's pretty arbitrary so I'll just swap it, at least until I have less questions.
[11:50:00 CDT(-0500)] <asteig_> Justin_o: Once I get that.locate working I'll be asking about changeApplier. That concept looks awesome but my brain isn't wrapped around it yet.
[11:50:27 CDT(-0500)] <asteig_> The algorithms with canvas though, thankfully those are very easy. It's just a matter of organizing everything and making it a clean fluid componenet.
[11:50:30 CDT(-0500)] <asteig_> component.
[11:52:29 CDT(-0500)] <Justin_o> will be happy to chat about changeapplier… and great that you have the algorithms down.. and yah, there can be a bit of a learning curve for the fluid components.. we do things a bit different than others.. let me know if you have questions about why we do things too. i'd be happy to try to explain them.
[11:53:13 CDT(-0500)] <asteig_> Okay, cool. I'm going to wake up a bit and fill out this survey. I'll be on later when I actually get some stuff pushed for you to see.
[11:53:22 CDT(-0500)] <asteig_> Thanks so much for all of your help. You're awesome.
[11:59:44 CDT(-0500)] <Justin_o> asteig_: no problem.. glad I could help
[12:05:04 CDT(-0500)] <asteig_> Justin_o: Midterm submitted.
[13:33:59 CDT(-0500)] <Justin_o> fluid-everyone: community meeting time… today we'll be having an informal discussion about UI Options
[13:34:07 CDT(-0500)] <Justin_o> if you would like to join by Skype, please let me know
[13:34:12 CDT(-0500)] <jessm> me me me
[13:34:29 CDT(-0500)] <jessm> Justin_o: ^
[13:37:36 CDT(-0500)] <Justin_o> jessm: okay.. will do
[13:40:20 CDT(-0500)] <jameswy> Justin_o: Skype me in too.
[13:40:30 CDT(-0500)] <Justin_o> jameswy: i called you
[13:40:32 CDT(-0500)] <Justin_o> did you answer
[13:41:41 CDT(-0500)] <Justin_o> jameswy: is your Skype working
[13:42:53 CDT(-0500)] <jameswy> Justin_o: I think you're calling the wrong Skype: use jameswyoon.work
[13:45:47 CDT(-0500)] <jessm> alexn1: ping