*** tpb has joined #melange | 00:00 | |
*** madrazr has joined #melange | 00:51 | |
*** ChanServ sets mode: +v madrazr | 00:51 | |
*** madrazr has left #melange | 01:23 | |
*** madrazr has joined #melange | 01:25 | |
*** ChanServ sets mode: +v madrazr | 01:25 | |
*** dukeleto has joined #melange | 01:26 | |
dukeleto | howdy | 01:26 |
---|---|---|
*** madrazr has quit IRC | 01:49 | |
*** dhans has joined #melange | 02:24 | |
*** madrazr has joined #melange | 02:35 | |
*** ChanServ sets mode: +v madrazr | 02:35 | |
*** dhans has quit IRC | 03:20 | |
*** dhans has joined #melange | 03:21 | |
*** madrazr has left #melange | 03:23 | |
*** kblin has quit IRC | 03:30 | |
*** florinciu has joined #melange | 03:40 | |
*** solydzajs has joined #melange | 03:49 | |
*** ChanServ sets mode: +o solydzajs | 03:50 | |
*** kblin has joined #melange | 03:56 | |
*** solydzajs has quit IRC | 04:53 | |
*** solydzajs has joined #melange | 05:05 | |
*** ChanServ sets mode: +o solydzajs | 05:05 | |
*** Merio has joined #melange | 05:07 | |
*** ChanServ sets mode: +v Merio | 05:07 | |
Merio | dhans: ping | 05:09 |
*** dhans has quit IRC | 05:15 | |
*** MatthewWilkes has joined #melange | 05:20 | |
*** MatthewWilkes has quit IRC | 05:31 | |
*** MatthewWilkes has joined #melange | 05:31 | |
*** erich has joined #melange | 05:37 | |
*** dhans has joined #melange | 05:37 | |
dhans | Merio: pong :) | 05:38 |
Merio | dhans: sorry for yesterday I was really "out" :) | 05:41 |
dhans | Merio: no problems :) | 05:41 |
Merio | dhans: I've seen you made commits, going to read them :) | 05:42 |
dhans | Merio: nothing interesting | 05:42 |
*** florinciu_ has joined #melange | 05:42 | |
Merio | dhans: it's the former task queue stuff I've missed to read to be fair :) | 05:43 |
dhans | Merio: :P | 05:43 |
Merio | dhans: do you have any other question about JS? So today we can begin working on the save/load stuff | 05:44 |
dhans | actually yes, I have one, but it is a little bit longer, but ok, I can write it here (because I was thinking about sending an email) | 05:45 |
Merio | if you prefer a mail go for it | 05:46 |
dhans | because as I said, I wanted to make 'Task' button working in ajaxy way, so I added a class attribute for this tag, let's class="set_task" | 05:46 |
dhans | and wrote a very simple script at the beginning: $("input[@class=set_task]").css("color","red"); | 05:47 |
dhans | and of course it was all opaques | 05:47 |
dhans | I mean it was inside your 'skeleton' | 05:48 |
Merio | what do you mean for "all opaques" | 05:48 |
dhans | I wanted to use another word, but I spelled it incorrectly and wanted to pick one from suggestions, but I choose a wrong one :) | 05:49 |
Merio | ehhe try again :P | 05:49 |
dhans | I just meant that this line was packed in your skeleton template | 05:51 |
Merio | ah ok | 05:51 |
dhans | anyway, I wanted to 'call' (maybe it's a wrong word) that script inside row_manage.html | 05:51 |
dhans | so I did like <script type="text/javascript" src="/soc/content/js/templates/soc/statistic/list.js" melangeContext="{% autoescape off %}{ item: '{{ list.item }}' }{% endautoescape %}"></script> | 05:52 |
dhans | and it worked, except that the button in the last row was not red | 05:52 |
dhans | and I didn't know why ... | 05:53 |
Merio | Hmm don't know because I can't see the code, but perhaps you're doing this without waiting for the DOM to be ready | 05:53 |
dhans | so added another line to that script $("input.set_task").click(function() { | 05:53 |
dhans | alert('clicked'); | 05:53 |
dhans | }); | 05:54 |
Merio | You need to wrap your code that plays with the DOM inside jQuery(function() {$("input[@class=set_task]").css("color","red");}); | 05:54 |
dhans | and then (I had 7 rows), when clicked on the first I got 6 alerts, on the second: 5 alerts, ... on the last: no alerts at all | 05:54 |
dhans | oh ok, and then, the script waits for DOM to be ready? | 05:55 |
*** florinciu has quit IRC | 05:57 | |
Merio | yes, jQuery() is a shortcut for jQuery.ready(), that I guess is basically pushing your function reference in the onLoad attribute of <body> tag (but it's only a guessing) | 05:57 |
dhans | hmm with this jQuery() it did not worked, but worked with $(document).ready(function() { ... }) | 06:09 |
Merio | Seems weird to me => http://docs.jquery.com/Core/jQuery#callback | 06:11 |
tpb | Title: Core/jQuery - jQuery JavaScript Library (at docs.jquery.com) | 06:11 |
dhans | Merio: ok, it didn't worked with JQuery ;-/ I am sorry | 06:13 |
Merio | dhans: no problems Daniel, I would need to see the code to help better... but just let me know when you commit it and I'll have a look :) | 06:14 |
dhans | Merio: ok, but I am starting to think that your skeleton (which is great :)) is not appropriate for lists in melange ;-/ | 06:21 |
dhans | Merio: because when we want to add melangeContext to the script, we have to include <script type= ... melangeContext="something"> | 06:22 |
Merio | dhans: it could be, we need to evolve it if it so :) | 06:22 |
dhans | Merio: so we need to include that in row.html | 06:22 |
dhans | Merio: so the script is executed 'numer of rows' times ;) | 06:23 |
Merio | well | 06:24 |
dhans | well, I think this button is not so important :P | 06:24 |
Merio | This is just a proof of concept, and made without touching too much of the application. But this can be easily workarounded | 06:25 |
Merio | If we have something in base.html that takes the path of the js (based on the template path) and then append it to a script tag, and the same for the melange context | 06:25 |
Merio | We will have the script called only once, and every time the correct script called | 06:25 |
Merio | This is where it should go that skeleton, not everytime in the single template | 06:26 |
*** schultmc1 has joined #melange | 06:26 | |
*** solydzajs has quit IRC | 06:29 | |
dhans | Merio: so you mean: we have to put <script ... src="something.js"> in base.html and then extend it in actual row.html file to <script ... src="something.js" melangeContext="something_else"> ? | 06:30 |
Merio | No perhaps I don't get really how the tables behave in Melange, but, no you'll have only the something.js in base.html | 06:31 |
Merio | As soon as the table is completed (=>DOM is ready) you'll start playing with jQuery injecting the JS code | 06:32 |
*** mithro has quit IRC | 06:34 | |
*** schultmc has quit IRC | 06:37 | |
dhans | Merio: yeah, it works this way :) but I thought one aspect of your skeleton was to keep melangeContext att in the same place where the context really is (I mean in the same file) | 06:37 |
dhans | Merio: but it's great it works :) | 06:38 |
Merio | melangeContext attribute will be always present, but in your logic you'll give the proper context every time, as you do for Django | 06:38 |
dhans | Merio: be back in 30 minutes | 06:47 |
Merio | dhans: ok | 06:48 |
*** dhans has quit IRC | 06:57 | |
*** erich has quit IRC | 07:03 | |
*** Merio has quit IRC | 07:29 | |
*** Merio has joined #melange | 07:31 | |
*** ChanServ sets mode: +v Merio | 07:31 | |
*** mithro has joined #melange | 07:48 | |
*** ChanServ sets mode: +v mithro | 07:48 | |
*** Merio has quit IRC | 08:09 | |
*** Merio has joined #melange | 08:09 | |
*** ChanServ sets mode: +v Merio | 08:09 | |
*** madrazr has joined #melange | 08:54 | |
*** ChanServ sets mode: +v madrazr | 08:54 | |
*** schultmc1 is now known as schultmc | 09:06 | |
*** schultmc has joined #melange | 09:06 | |
*** mithro has quit IRC | 09:21 | |
*** dr__house has joined #melange | 10:00 | |
*** dhans has joined #melange | 10:00 | |
*** madrazr has quit IRC | 10:45 | |
Merio | dhans: ping | 11:00 |
dhans | Merio: pong | 11:01 |
Merio | dhans: if I click on task, would it give me some feedback on its work? I mean if I reload the page should it give me the number of records completed or when the collection started as for the cache? | 11:02 |
Merio | dhans: just to know if it's working for me or not | 11:02 |
dhans | when all the stats are collected and the page is reloaded, you should see a new date | 11:03 |
Merio | So I need to wait? | 11:04 |
dhans | actually it depends on how many entities are in the model | 11:05 |
Merio | I've run seed_many so there are 200 students | 11:06 |
dhans | hmm ok, so you run it locally? | 11:06 |
Merio | 4 batches as far as I've seen in your code :) Yep, locally | 11:06 |
dhans | because, to be fair - I don't know if tasks can be tested locally | 11:06 |
Merio | It's just that I need to test something for the dashboard and I need data from your jsonresponse :P | 11:07 |
Merio | argh :) | 11:07 |
dhans | you can still collect data manually ;P | 11:07 |
Merio | Ok trying to :) | 11:08 |
dhans | Merio: ping? | 11:31 |
Merio | dhans: pong :) Just a minute, phone call :) | 11:32 |
dhans | sure | 11:32 |
Merio | dhans: (I don't receive the JSON for students per degree, going to see why) | 11:32 |
dhans | one question: van we perform string operations in jquery. because i want to do something like this: s = window.location; s.replace("a", "b") ? | 11:35 |
Merio | there's a replace function IIRC | 11:38 |
Merio | dhans: It depends on what you want to do | 11:38 |
Merio | because there's a replace function built-in in javascript, it works with regexps | 11:38 |
dhans | really? | 11:39 |
dhans | because in the .html file I have like link = link.replace("collect_stats", mode) + "/" + stat; | 11:39 |
dhans | btw. don't you get json response for students_per_degree even when you call it directly? | 11:41 |
dhans | I mean: http://localhost:8080/statistic/get_json_response/google/gsoc2009/students_per_degree ? | 11:41 |
Merio | It seems it gives me back a void response | 11:42 |
dhans | hmm for me it works | 11:43 |
Merio | dhans: ok so probably it's my fault, going to see :) | 11:43 |
Merio | what's going on with your .html file so? | 11:43 |
Merio | dhans: yep it's working sorry, now going to see what's happening .D | 11:45 |
dhans | Merio :) | 11:45 |
*** scorche has quit IRC | 11:47 | |
*** scorche has joined #melange | 11:48 | |
*** madrazr has joined #melange | 11:57 | |
*** ChanServ sets mode: +v madrazr | 11:57 | |
*** florinciu_ has quit IRC | 12:07 | |
dhans | Merio: ping | 12:31 |
Merio | dhans:pong | 12:32 |
dhans | Merio: are you using some kind of ide / eclipse plugin for js? | 12:32 |
Merio | dhans: I'm working on widget generalization, it's a pain everytime to restart the page, too many time ... sic | 12:32 |
Merio | dhans: no, using quanta | 12:32 |
Merio | dhans: just editor with syntax highlighting | 12:33 |
dhans | Merio: yes indeed, it's a pain | 12:33 |
Merio | dhans: it takes me about 3-4 minutes every time | 12:34 |
madrazr | dhans: Eclipse ftw! | 12:34 |
madrazr | dhans: please try once, Lennie actually once told me to give a try | 12:34 |
madrazr | initially struggled getting used to it, but now I cannot write even a single line of Melange code without Eclipse, cool it is | 12:35 |
dhans | madrazr: I am using it! :) it rocks | 12:35 |
madrazr | dhans: cool! | 12:35 |
dhans | madrazr: I was just wondering if there is a good plugin for working with js | 12:36 |
madrazr | dhans: aren't there? | 12:36 |
Merio | dhans: if you like IDEs I think you can try aptana | 12:36 |
madrazr | dhans: Eclipse is like a banyan tree I always think :P | 12:36 |
Merio | It's eclipse on steroids for ajax development.. but never used it so ... just give it a try :) | 12:37 |
dhans | madrazr: I just don't know if there are, but probably yes | 12:37 |
dhans | madrazr: :P | 12:37 |
madrazr | dhans: heh Ok :D | 12:37 |
madrazr | Merio: what are steroids? | 12:39 |
madrazr | Merio: hope they are not drugs ;-) is it an Eclipse plugin or something? :P | 12:40 |
Merio | madrazr: it's said "on steroids" when there is something really enhanced. I don't know if it's an eclipse plugin, it's built over Eclipse and it's downloadable as a different application | 12:41 |
Merio | But is Eclipse basically | 12:41 |
madrazr | Merio: Oh Ok | 12:42 |
madrazr | Merio: cool! that is, did not know about it | 12:42 |
Merio | But I don't know which facilities it gives, call me old fashioned but I don't like IDEs too much :) | 12:42 |
madrazr | Merio: heh :D | 12:45 |
dhans | Merio: they are helpful sometimes. I used to code in vim, but now I see it wasn't the best option :P | 12:45 |
Merio | :) Well I'm not too integralist to use vim all the time, but a nice GUI with a file explorer, with code highlighting and code completion is enough. :) | 12:47 |
dhans | Merio: in most cases: true | 12:48 |
madrazr | Merio: very true | 12:50 |
*** madrazr has left #melange | 13:02 | |
*** madrazr has joined #melange | 13:03 | |
*** ChanServ sets mode: +v madrazr | 13:03 | |
*** madrazr has left #melange | 13:11 | |
*** madrazr has joined #melange | 13:17 | |
*** ChanServ sets mode: +v madrazr | 13:17 | |
Merio | dhans: just FTR I'm working on generalizing the creation of a new widget to download data from backend and/or to create new widgets from scratch | 13:20 |
Merio | dhans: and yuppee sounds like it's starting to work finally :P | 13:25 |
dhans | Merio: cool! :) | 13:36 |
*** dhans has quit IRC | 13:39 | |
*** MatthewWilkes has quit IRC | 13:44 | |
*** dhans has joined #melange | 14:02 | |
Merio | dhans: ping | 14:16 |
dhans | Merio: pong | 14:16 |
Merio | dhans: I've deployed my work on our live instance, but it retrieves only "Application per Program" statistic and, when asked for it it gives a void JSON back | 14:17 |
dhans | Merio: ok - I have also seen that it shows only "Applications per program" | 14:18 |
Merio | dhans: you mean you've seen in the dashboard or you already know about the behavior? | 14:18 |
dhans | the behavior :) | 14:18 |
dhans | Merio: I suspect that the reason for this is that you placed Statistic dashboard in User submenu | 14:19 |
Merio | dhans: so something about the scope path? | 14:19 |
dhans | yes | 14:20 |
dhans | but wait for a moment | 14:20 |
Merio | ok :) | 14:20 |
dhans | it's also about access_for_other program field | 14:21 |
Merio | I think so, it doesn't find the scope path of the program from the dashboard and then it fails | 14:22 |
Merio | But still I can't understand why I receive a void JSON back | 14:22 |
dhans | now you should see more stats | 14:23 |
Merio | going to see :) | 14:23 |
dhans | I changed some to collectable | 14:23 |
Merio | Great, I can see them, but JSON is void : | 14:24 |
Merio | :( | 14:24 |
Merio | I mean.. great! :)... but JSON is void :( | 14:24 |
Merio | :P | 14:24 |
dhans | this is probably because scope_path | 14:24 |
*** dhaun has joined #melange | 14:26 | |
Merio | hmm what can we do for it? We should not have different dashboard for different programs I think | 14:26 |
dhans | I thought we would have different dashboard, because some statistics may be inaccessible for other programs | 14:28 |
dhans | but about the thing why json is void... from js you call getJSON from "/statistic/get_json_response/google/gsoc2009/students_per_dergree" ? | 14:29 |
Merio | http://dhansmelange.appspot.com/statistic/get_json_response/google/gsoc2009/students_per_age | 14:29 |
tpb | <http://ln-s.net/3R1_> (at dhansmelange.appspot.com) | 14:29 |
Merio | If you go to that link, it shows a void JSON | 14:30 |
Merio | And I guess this is independent from my scope path | 14:30 |
dhans | hmm | 14:30 |
dhans | it's strange since it displays non void json on my localhost ;-/ | 14:33 |
dhans | at least for students_per_age | 14:33 |
dhans | I mean for students_per_degree | 14:33 |
*** Lennie has joined #melange | 14:34 | |
*** ChanServ sets mode: +o Lennie | 14:34 | |
Merio | dhans: dunno | 14:34 |
Lennie | hi | 14:34 |
Merio | Lennie: hi| | 14:34 |
Merio | ! | 14:34 |
dhans | Lennie: Hi | 14:34 |
*** Lennie sets mode: +v dhans | 14:34 | |
Lennie | get an account daniel :) | 14:34 |
Merio | dhans: Could it be something related to the cache? | 14:34 |
dhans | Lennie: thanks :) but how come some of us (for example you or Mario) are granted voice/operator by ChanServ ? | 14:35 |
Merio | dhans: because _getStatisticEntity returns None if this not happens => if entities is not None and len(entities) != 0: | 14:36 |
dhans | Merio: I don't think so, but I am also not sure :) | 14:36 |
Lennie | dhans: as said get an account :) | 14:36 |
Merio | dhans: so perhaps entities is void | 14:36 |
Lennie | dhans: /msg nickserv hello | 14:36 |
Lennie | I'll leave you two to your meeting now | 14:36 |
Lennie | I'm going to enjoy some more hacking :) | 14:36 |
Merio | Lennie: enjoy ^__^ | 14:37 |
Merio | dhans: so or the statistic is not in cache or there's something wrong with the filter | 14:38 |
dhans | Merio: ok, but entities should not be None | 14:38 |
dhans | but this function fun(...) works like this: if it is in cache: return it, otherwise get from data model | 14:38 |
Merio | dhans: they're none if we don't have a hit in cache | 14:38 |
Merio | dhans: aaah I was overlooking that | 14:39 |
Merio | dhans: so something in the filter? | 14:40 |
dhans | hmm I think I know | 14:41 |
Merio | what? :) | 14:41 |
dhans | yap | 14:41 |
dhans | http://dhansmelange.appspot.com/statistic/get_json_response/google/gsoc/students_per_degree | 14:41 |
tpb | <http://ln-s.net/3R1o> (at dhansmelange.appspot.com) | 14:41 |
dhans | when I created this instance I put gsoc link id, not fsoc2009 | 14:42 |
dhans | gsoc2009 | 14:42 |
Merio | eheh great ^__^ | 14:42 |
dhans | :P | 14:42 |
Merio | I was finding the same thing because => http://dhansmelange.appspot.com/statistic/show/google/gsoc2009/students_per_degree | 14:42 |
tpb | <http://ln-s.net/3R1r> (at dhansmelange.appspot.com) | 14:42 |
Merio | Error 404: There is no "Statistic" where "scope_path" is "google/gsoc2009" and "link_id" is "students_per_degree" | 14:42 |
Merio | :) | 14:42 |
dhans | :P | 14:42 |
Merio | :P | 14:42 |
dhans | gonna change that to gsoc2009 | 14:43 |
Merio | ok :) | 14:43 |
Merio | We need to have it parametric in some way, as for duplicate students | 14:43 |
dhans | hmm I didn't changed because all links were created dynamically | 14:44 |
dhans | until now :P | 14:44 |
dhans | and I was also afraid that this change would cause some crash, but we will see :P | 14:45 |
Merio | yep I think for the list of all statistics we should check which programs the user have access to, and have a JSON with the scope path of the program, the name of the program and the list of all statistics available | 14:45 |
Merio | In that way we can have it parametric | 14:45 |
Merio | (keeps me giving 500s) | 14:49 |
dhans | what? | 14:49 |
Merio | http://dhansmelange.appspot.com/ => 500 server error | 14:49 |
dhans | now it should be ok | 14:51 |
dhans | you can't change 'workflow' field for program to gsoc2009 ;) | 14:52 |
dhans | about what you wrote above: for me, the question is how to determine if a user has access to a program | 14:53 |
Merio | (so what? Can I change your code to give the scope_path as well?) | 14:54 |
Merio | think we should ask dev list | 14:55 |
dhans | sure | 14:55 |
dhans | but generally we should try to avoid such situations, because of the fact that we will have to send code sample to Google :P | 14:56 |
Merio | dhans: what do you mean? | 14:58 |
Merio | dhans: in the meantime I'm redeploying app with modified dashboard.js file for gsoc scope (not committing it though) | 14:58 |
dhans | Merio: what 'what do you mean'? :P | 14:58 |
Merio | with this :) => but generally we should try to avoid such situations, because of the fact that we will have to send code sample to Google :P | 14:59 |
dhans | at the end of GSoC we will have to send our code to Google | 15:00 |
Merio | dhans: yes, I know, did last year :) | 15:00 |
dhans | exactly | 15:00 |
Merio | dhans: so you're worried about mixing our code? | 15:00 |
dhans | I a very little bit worried | 15:01 |
Merio | (dhans: only students_per_degree working?) | 15:01 |
dhans | yes | 15:01 |
Merio | ok | 15:01 |
Merio | dhans: you shouldn't. We can also send diffs, I think we can easily extract them from the hg repository | 15:02 |
dhans | yeah, I know... it's even easier because it's melange - related to google. I think even if we split it randomly - they would understand :P | 15:03 |
Merio | dhans: so don't be worried, if something like this could speed up our project I think that's not a problem at all | 15:04 |
Merio | dhans: relating to the project, what's stopping us for other statistics? So I can help on it | 15:05 |
Merio | (dhans: live instance working... yuppeee ;)) | 15:05 |
dhans | Merio: :) | 15:06 |
dhans | Merio: nothing's stopping us, but let me do it - it'll be done by tomorrow morning. Just my learning jQuery today hasn't resulted in many commits :) | 15:07 |
dhans | Merio: I'm going to a store, they're going to close it soon - be back in 20 minuts | 15:08 |
Merio | dhans: no problems, is just that I wanted to join the effort if there was something lengthy to do | 15:08 |
Merio | dhans: no problems, I'm off from commits for today, need to study a bit for the exam :) | 15:08 |
Merio | dhans: going to update melangedemos wiki and send to the list :) | 15:08 |
dhans | Merio: ok | 15:09 |
Merio | dhans: can't remind if you | 15:09 |
Merio | dhans: sent the list infos about your Task API integration | 15:09 |
Merio | dhans: or in the melangedemos wiki... however I'll update it for you | 15:10 |
dhans | yes, I've almost finished (it's quite long) | 15:10 |
Merio | ah ok so you'll be updating and sending to the list when you're finished... going to update only with my work then for the moment | 15:10 |
dhans | Merio: thank you ;-) | 15:10 |
dhans | to be fair, I was not aware that there is something like melangedemos wiki :P | 15:11 |
Merio | dhans: ok :) | 15:11 |
Merio | http://code.google.com/p/soc/w/edit/MelangeDemos | 15:11 |
tpb | <http://ln-s.net/3R3A> (at code.google.com) | 15:11 |
Merio | I've sent sometimes updates to the list about that | 15:11 |
dhans | I'll take a look at it once I am back, but really have to go | 15:11 |
Merio | ok see you later! | 15:11 |
*** dhans has quit IRC | 15:14 | |
*** dhans has joined #melange | 15:15 | |
*** dhans has quit IRC | 15:26 | |
*** MatthewWilkes has joined #melange | 15:37 | |
*** Merio has quit IRC | 15:39 | |
*** Merio has joined #melange | 15:41 | |
*** ChanServ sets mode: +v Merio | 15:41 | |
*** dhans has joined #melange | 16:15 | |
*** dr__house has quit IRC | 16:30 | |
*** madrazr1 has joined #melange | 16:34 | |
*** dr__house has joined #melange | 16:35 | |
*** madrazr has quit IRC | 16:37 | |
*** madrazr1 is now known as madrazr | 16:40 | |
*** ChanServ sets mode: +v madrazr | 16:40 | |
*** dhaun has quit IRC | 17:28 | |
*** Lennie has quit IRC | 17:32 | |
*** dr__house has quit IRC | 18:29 | |
*** madrazr has quit IRC | 18:48 | |
*** dhans has left #melange | 19:19 | |
*** MatthewWilkes has quit IRC | 20:10 | |
*** mithro has joined #melange | 20:23 | |
*** ChanServ sets mode: +v mithro | 20:23 | |
*** penyaskito has joined #melange | 20:59 | |
*** Merio has quit IRC | 21:13 | |
*** Mek_ has joined #melange | 22:04 | |
*** Mek has quit IRC | 22:07 | |
*** jamtoday has joined #melange | 23:54 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!