*** menesis has quit IRC | 00:34 | |
*** th1a has quit IRC | 00:48 | |
*** replaceafill has joined #schooltool | 01:35 | |
*** th1a has joined #schooltool | 02:18 | |
*** ignas has quit IRC | 02:21 | |
*** aks has joined #schooltool | 05:10 | |
*** aks has joined #schooltool | 05:11 | |
*** th1a has quit IRC | 05:48 | |
*** th1a has joined #schooltool | 05:48 | |
*** replaceafill has quit IRC | 06:09 | |
*** th1a has quit IRC | 06:21 | |
*** menesis has joined #schooltool | 08:41 | |
*** alga has joined #schooltool | 12:18 | |
*** alga has quit IRC | 12:49 | |
*** aks has quit IRC | 14:14 | |
*** alga has joined #schooltool | 14:55 | |
*** yvl has quit IRC | 15:43 | |
*** th1a has joined #schooltool | 16:11 | |
*** ignas has joined #schooltool | 16:18 | |
*** menesis has quit IRC | 17:49 | |
*** th1a has quit IRC | 18:48 | |
*** th1a has joined #schooltool | 19:21 | |
*** replaceafill has joined #schooltool | 19:33 | |
th1a | replaceafill: There is something very finicky about the way selections work in D3 that I'm not perceiving. | 19:45 |
---|---|---|
replaceafill | what is that? | 19:45 |
replaceafill | i mean, what is it? :) | 19:46 |
th1a | Well, I don't know. Sometimes it works and sometimes it doesn't, and I can't even see what the difference between the two is. | 19:46 |
th1a | (so I'm just complaining, not actually expecting concrete advice) | 19:46 |
th1a | jquery uses CSS selectors too, right? | 19:46 |
replaceafill | yes | 19:46 |
*** ignas has quit IRC | 19:47 | |
th1a | Do they ever give you fits? | 19:48 |
replaceafill | not so far | 19:48 |
th1a | Yeah... maybe it isn't the selector itself but the steps immedately after. I can't really tell... | 19:49 |
replaceafill | maybe you're relying something is in the DOM when actually it isn't... | 19:50 |
replaceafill | maybe you need something like $(document).ready(...) | 19:50 |
replaceafill | your "sometime it works and sometimes it doesn't" sounds like that | 19:51 |
th1a | Well, I'm literally talking about just selecting the div where I'm going to start adding stuff, and I can't even really see what the difference is between the one that works and the one that doesn't. | 19:52 |
th1a | It is baffling. | 19:52 |
*** alga has quit IRC | 19:53 | |
th1a | Anyhow, I just needed to whine at someone... | 19:54 |
replaceafill | :D | 19:54 |
th1a | It works now but I don't know why it didn't for I dunno, four hours. | 19:54 |
replaceafill | :| | 19:54 |
th1a | Hm... perhaps caching has something to do with it... | 20:52 |
replaceafill | i have ff developers tools and i always disable caching | 20:53 |
replaceafill | it messes with my css changes | 20:53 |
replaceafill | most of the time | 20:53 |
th1a | Ah, I can do the same in Chrome. | 20:54 |
* replaceafill goes to get lunch | 21:00 | |
*** ignas has joined #schooltool | 21:29 | |
* replaceafill back | 21:53 | |
*** th1a has quit IRC | 22:09 | |
*** alga has joined #schooltool | 23:21 | |
*** th1a has joined #schooltool | 23:25 | |
th1a | replaceafill: OK, got it working, moved some files around to make a new sandbox, took a break to watch the girls... now it doesn't work anymore. | 23:33 |
replaceafill | :( | 23:33 |
replaceafill | and it happens in both browsers? | 23:34 |
th1a | I'll check. | 23:34 |
th1a | This should have an empty SVG in it: http://69.164.203.135/d3/cando/main.html | 23:37 |
th1a | In the .comps div | 23:37 |
th1a | http://69.164.203.135/d3/cando/comp_report.js | 23:38 |
th1a | I swear it just worked. | 23:39 |
th1a | Before I moved it, so somehow I broke it. | 23:40 |
replaceafill | can i make a quick test on your uploaded files? | 23:40 |
replaceafill | in /var/www/ | 23:40 |
th1a | Please. | 23:40 |
replaceafill | just want to try something | 23:40 |
replaceafill | kk | 23:40 |
replaceafill | reload | 23:41 |
replaceafill | do you see it? | 23:41 |
th1a | Yes... | 23:41 |
th1a | What did you do? | 23:42 |
replaceafill | it's what i told you before, your script needs something like $(document).ready(...) equivalent | 23:42 |
replaceafill | i moved the script inclusion to the bottom of the html | 23:42 |
replaceafill | http://stackoverflow.com/questions/7169370/d3-js-and-document-onready | 23:42 |
replaceafill | your script runs when nothing is loaded yet | 23:43 |
th1a | Oh... | 23:43 |
th1a | But you don't need to do that for jquery? | 23:43 |
th1a | Ah, you use that .ready() thing. | 23:43 |
th1a | OK. | 23:43 |
replaceafill | no, because jquery takes care of it | 23:43 |
replaceafill | correct | 23:43 |
th1a | OK. | 23:44 |
th1a | I tried moving around but I was probably doing something else wrong at that point. | 23:44 |
replaceafill | just make sure the elements your dealing with are already loaded | 23:44 |
th1a | Can I just put it at the end of the body? | 23:44 |
replaceafill | that's what i did, just above the </body> tag | 23:45 |
th1a | Can this run into the kind of problem we had with the CanDo gradebook before, or was that even more screwed up? | 23:45 |
replaceafill | no, that was a different kind of issue | 23:45 |
th1a | OK. | 23:45 |
th1a | Well, thanks! | 23:45 |
replaceafill | np | 23:45 |
th1a | I think I'll recover my sanity eventually. ;-) | 23:46 |
replaceafill | :D | 23:46 |
th1a | I've got to get the girls ready to pick up Jennifer, but I should be able to get something going tonight. | 23:49 |
th1a | Also: http://localhost/d3/cando/comp_gen.py | 23:49 |
replaceafill | localhost :P | 23:49 |
th1a | It only took me about 15 minutes to remember how to divide integers in Python. ;-) | 23:50 |
th1a | http://69.164.203.135/d3/cando/comp_gen.py | 23:50 |
replaceafill | :D | 23:50 |
th1a | My programming chops are rusty. | 23:51 |
* replaceafill was looking for the data until he saw random ints :) | 23:52 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!