*** tpb has joined #melange | 00:00 | |
*** jamtoday has joined #melange | 00:04 | |
jamtoday | SRabbelier: ping? | 00:45 |
---|---|---|
*** jamtoday has quit IRC | 01:06 | |
*** tansell-laptop has joined #melange | 01:07 | |
*** madrazr has joined #melange | 01:14 | |
*** ChanServ sets mode: +v madrazr | 01:14 | |
*** madrazr has quit IRC | 01:24 | |
*** madrazr has joined #melange | 01:25 | |
*** ChanServ sets mode: +v madrazr | 01:25 | |
*** solydzajs has joined #melange | 01:59 | |
*** ChanServ sets mode: +o solydzajs | 01:59 | |
*** madrazr has quit IRC | 02:52 | |
*** ircmaxell has joined #melange | 02:55 | |
ircmaxell | ping solydzajs | 02:57 |
solydzajs | ircmaxell: pong | 02:58 |
ircmaxell | Hey, I'm not sure if you remember me (Anthony from New York) | 02:58 |
ircmaxell | But I'm in Krakow for the week, and wanted to see, if you were around, if you wanted to grab a beer... | 02:59 |
solydzajs | ircmaxell: of course I remember :-) | 03:00 |
solydzajs | ircmaxell: are you on GTalk ? | 03:01 |
ircmaxell | Yeah | 03:01 |
ircmaxell | [email protected] | 03:01 |
solydzajs | ircmaxell: ok I added you | 03:02 |
ircmaxell | Cool | 03:02 |
*** ircmaxell has left #melange | 03:51 | |
*** madrazr has joined #melange | 04:16 | |
*** ChanServ sets mode: +v madrazr | 04:16 | |
*** jamtoday has joined #melange | 04:29 | |
*** tansell-laptop has quit IRC | 04:46 | |
*** tansell-laptop has joined #melange | 04:50 | |
*** MatthewWilkes has joined #melange | 04:59 | |
jamtoday | solydzajs: ping | 05:26 |
solydzajs | jamtoday: pong | 05:27 |
jamtoday | solydzajs: good response time! | 05:27 |
jamtoday | I'm doing the view for untaken surveys | 05:27 |
jamtoday | I don't know if we reached a consensus about the implementation | 05:27 |
jamtoday | I was going to add them to the sidebar, but wasn't sure beyond htat | 05:28 |
jamtoday | *that | 05:28 |
solydzajs | yes so I was thinking that there should be sidebar entry | 05:28 |
solydzajs | "Surveys (2)" | 05:28 |
solydzajs | and it should be red if there are any surveys untaken | 05:28 |
solydzajs | the number should indicate the number of untaken surveys | 05:28 |
solydzajs | if you click on it it should list taken and untaken surveys | 05:29 |
jamtoday | so a dedicated expandable for Surveys | 05:29 |
solydzajs | no no | 05:29 |
solydzajs | not expandable | 05:29 |
jamtoday | so it's a view containing a list of your surveys | 05:29 |
solydzajs | just one link | 05:29 |
solydzajs | and it should open new view | 05:29 |
solydzajs | which should have two lists | 05:29 |
solydzajs | one for untaken surveys on top | 05:29 |
solydzajs | and second one for already taken surveys | 05:29 |
solydzajs | yes | 05:30 |
jamtoday | I'm also concerned about handling some of the issues introduced by subclassing surveys, but I think I should post about that for open airing | 05:30 |
jamtoday | I'll work on the new view for now, and I'll write about these issues in my weekly blog post | 05:31 |
jamtoday | 11th hour changes are stressful | 05:32 |
solydzajs | ok | 05:35 |
solydzajs | thx | 05:35 |
*** madrazr has quit IRC | 05:38 | |
*** solydzajs has quit IRC | 05:46 | |
*** Merio has joined #melange | 05:53 | |
*** ChanServ sets mode: +v Merio | 05:53 | |
*** jamtoday has quit IRC | 06:14 | |
*** tansell_laptop has joined #melange | 06:26 | |
*** tansell-laptop has quit IRC | 06:28 | |
*** mithro has quit IRC | 07:37 | |
*** mithro has joined #melange | 08:14 | |
*** ChanServ sets mode: +v mithro | 08:14 | |
*** madrazr has joined #melange | 09:17 | |
*** ChanServ sets mode: +v madrazr | 09:17 | |
*** erich has joined #melange | 09:18 | |
erich | Hi, can you please remove the "student" role from the linkid "erich", so I can accept the mentor invitation? | 09:19 |
*** dhans has joined #melange | 09:26 | |
*** MatthewWilkes is now known as mwilkes|pub | 09:39 | |
Merio | dhans: ping | 10:00 |
dhans | Merio: pong | 10:00 |
dhans | Merio: I am reading your js skeleton and think that gonna have some questions :) | 10:01 |
Merio | dhans: ok ask me :) What happened this morning? :) | 10:02 |
dhans | I was out for almost all day - got back like an hour ago but must have taken shower :-p | 10:03 |
dhans | I thought there would be less traffic during vacations... | 10:03 |
Merio | dhans: well, that's a good idea to have better social relationships :P | 10:03 |
Merio | ehhe | 10:03 |
Merio | No problems Daniel, I was only worried. Studied Physics while waiting... so studied all the morning, which is not bad at all :P | 10:04 |
dhans | no, I was not out with friends or something. I had to get to some places which were spread across warsaw | 10:04 |
dhans | maybe warsaw is not as enormous as rome or something, but it is not small :P | 10:05 |
dhans | and today I really wish I had a car... | 10:05 |
dhans | I am sorry, a car with air conditioning ;p | 10:06 |
Merio | eheh I guess so :) | 10:07 |
Merio | Eheheh don't know the temperature there, but in Rome is quite a need to have air conditioning, especially during summer :) | 10:07 |
dhans | yeah, while I was getting boiled on a bus, I was thinking that you probably would have worse if you were in Italy :) | 10:09 |
Merio | eheh I'm quite worried on going back to Italy on 7... :) It's very confortable here to work and study ^_^ | 10:11 |
Merio | So, about your questions? You already have some? | 10:12 |
Merio | I mean, you're still looking at the code or you have questions in the meantime? | 10:12 |
dhans | hmm ok. now I am more like trying to understand the js syntax that you use, but I am getting better and better :-) now I am trying to understand melange.js | 10:13 |
Merio | yep, opened, just ask :) | 10:14 |
dhans | because the whole melange.js is like a function isn't it? | 10:14 |
Merio | Yes, actually everything in Javascript is a function | 10:17 |
dhans | hmm when I worked for some time in JavaScript like a year ago, it looked more like java... | 10:18 |
Merio | hmm strange enough, there are very few things in common | 10:19 |
dhans | maybe because the javascript skeleton for that project was designed by java developers, so they made it look as similar to java as possible | 10:20 |
dhans | for example I don't remember any anonymous functions | 10:21 |
Merio | well, that is because they didn't take advantage of javascript potential :) | 10:22 |
dhans | probably true :) | 10:22 |
dhans | for example in line 29 you have like inner function, ok? | 10:22 |
Merio | For the construct (function (){})() have a look at this ==>http://ajaxian.com/downloads/books/javascriptninja/JavaScriptNinja_ch3_Article2.pdf | 10:22 |
tpb | <http://ln-s.net/3QO2> (at ajaxian.com) | 10:22 |
Merio | It's useful, even if I think it's difficult to understand if you don't get the closure topic (still I found some difficulties on using them properly :)) | 10:23 |
Merio | Yes, this is actually a function which is executed and discarded right after the engine read it | 10:23 |
dhans | ok, so this function will be executed just after $m.config = {}; ? | 10:24 |
Merio | yes | 10:24 |
dhans | hmm ok, so I really need to read on what do we get from (function (){}()) :) | 10:25 |
Merio | Actually perhaps that specific piece of code would do the same thing without enclosing it in parenthesis to be fair | 10:26 |
Merio | Yep you should, it's a powerful construct, one of the most powerful in Javascript to me :) | 10:26 |
*** dr__house has joined #melange | 10:44 | |
erich | Ping: Hi, can you please remove the "student" role from the linkid "erich" in socghop, so I can accept a pending mentor invitation? | 11:26 |
*** mwilkes|pub is now known as MatthewWilkes | 11:27 | |
dhans | Merio: ping | 11:50 |
*** erich has quit IRC | 12:12 | |
*** madrazr has quit IRC | 13:17 | |
*** MatthewWilkes has quit IRC | 13:28 | |
Merio | dhans: pong, sorry unexpected guest and I forgot headphones attached to the computer so I didn't hear pidgin sound :) | 13:36 |
Merio | dhans: just wait a few minutes, finishing to talk :) | 13:37 |
dhans | Merio: sure :) I didn't even know that pidgin made sounds :-) | 13:38 |
Merio | dhans: yes he does :) | 13:39 |
Merio | dhans: back in some minutes :) | 13:39 |
dhans | Merio: ok | 13:39 |
*** dhaun has joined #melange | 13:40 | |
*** dr__house has quit IRC | 13:55 | |
Merio | dhans: ping :) | 14:02 |
dhans | Merio: pong | 14:02 |
*** MatthewWilkes has joined #melange | 14:03 | |
Merio | dhans: excuse me again, was unexpected :) Tell me everything :) | 14:03 |
dhans | Merio: don't worry at all :-) | 14:03 |
dhans | Merio: I think I understand most of the things... just to make sure: to access a context variable inside .js file we call _self.context.json for example ? | 14:04 |
Merio | just _self.context and name of the variable you gave in the json object in the melangeContext attribute | 14:07 |
Merio | so yes if the variable was called json | 14:07 |
Merio | like in statistic/show.html for example | 14:08 |
Merio | elangeContext="{% autoescape off %}{ json: {{ json }} }{% endautoescape %} | 14:09 |
dhans | ok | 14:10 |
Merio | for example in dashboard you have melangeContext="{% autoescape off %}{ user: '{{ entity.name }}' }{% endautoescape %} | 14:11 |
Merio | Now it doesn't show anything, is just something to remind me to use it | 14:11 |
Merio | But if you want to access that variable you'll have to call _self.context.user | 14:11 |
dhans | yes, I don't see _self.context.user in dashboard.js | 14:11 |
dhans | btw. why did you make this assignment: _self = this ? we mustn't go for this.context.user, because in inner function this refers to something else? | 14:13 |
Merio | it could depending on the context | 14:13 |
Merio | I mean on the scope of the function you're into | 14:13 |
Merio | So it's good to have a reference to the overall object in case you need to, otherwise "this" could mean something else in some other function | 14:13 |
dhans | ok so if you have like (function() { x = 1; print this.x; (function() {x =2 print this.x})()}(), we would get 1, 2 ? | 14:14 |
Merio | yes exactly | 14:17 |
dhans | it's just looks strange at the beginning when everything is a function :) | 14:18 |
dhans | and another thing: this functions from dashboard.js (for example line 163) jQuery.getJson() they are used for asynchronous calls? | 14:19 |
dhans | that's why you needed jsonResponses for statistics? | 14:20 |
Merio | Well in the getjson function I retrieve your jsonresponse, but the reason why we use that is because we can get it asynchronously so we don't need page reloading to update the dom | 14:21 |
dhans | ok that was exactly what I meant | 14:22 |
Merio | ok :) | 14:22 |
*** EllenKo has joined #melange | 14:24 | |
dhans | and I hope the last question, because as I said I would like to change 'task' button so that it will work asynchronously. so is it possible to do this with our skeleton? because I think it quite is, but we need a similar function to getJson, but a function that does not wait for response (because we just want to start a task and it may take a lot of time). is there anything like this? | 14:26 |
dhans | Merio: or forget it, I will check by myself in jQuery docs :) | 14:27 |
Merio | You can just do nothing in the callback function (the second argument of jsonresponse) | 14:27 |
Merio | But probably you may want anyway to receive a response from the server just to say "yes, all started" or "no, there has been a problem" | 14:28 |
Merio | No problems Daniel, if I can help you directly it's obviously faster and that's a good thing :) | 14:28 |
dhans | Merio: hmm sounds reasonable :) | 14:28 |
dhans | Merio: I mean with both yes/no responses and low speed of myself reading docs :) | 14:29 |
Merio | dhans: eheheh reading docs is obviously suggested, but if you have to do a particular task maybe you have to search through zillions of web sites and you may or may not find a good solution... so in those cases talking between us is faster :) I'm going to do the same tomorrow for what I want to achieve in the backend, so you're not safe from this too ^__^ | 14:31 |
dhans | Merio: I hope I will be so helpful too :) | 14:31 |
Merio | dhans: you've been and you'll be... and getting in constant sync and communication about our project means not helpful*2 but helpful^2 :P | 14:33 |
dhans | I would say it's evan Ackermann function :) | 14:35 |
*** madrazr has joined #melange | 14:36 | |
*** ChanServ sets mode: +v madrazr | 14:36 | |
Merio | dhans: or, to be more in topic with SoC, a googolplex :P | 14:37 |
dhans | Merio: have to check what that is :) | 14:37 |
dhans | Merio: :P | 14:38 |
Merio | dhans: http://en.wikipedia.org/wiki/Googolplex | 14:38 |
tpb | Title: Googolplex - Wikipedia, the free encyclopedia (at en.wikipedia.org) | 14:38 |
Merio | :p | 14:38 |
dhans | Merio: just seeing that :) | 14:38 |
Merio | dhans: yep :P | 14:38 |
dhans | merio: very small question, are you there? :) | 14:51 |
Merio | dhans: yep tell me :) | 14:51 |
dhans | Merio: in article you sent me there is something like: (function(){})() | 14:51 |
Merio | yep | 14:52 |
dhans | and I think I understand it. now I see that you have something that looks a little bit different... | 14:52 |
Merio | (too many "yeps" ^_^) | 14:52 |
dhans | Merio: like (function () {} () ) | 14:53 |
dhans | Merio: so is this pretty much the same? | 14:53 |
Merio | dhans: yes IIRC is something enforced by jslint | 14:54 |
dhans | Merio: ok thanks, I was just curious | 14:55 |
Merio | dhans: but it's different notation, AFAIK is not something different semantically, but it's an interesting question, I'll dig further :) | 14:55 |
Merio | from the gsoc-it channel => https://cia.vc/stats/project/apertium/.message/7b2231 | 15:00 |
tpb | <http://ln-s.net/3QVu> (at cia.vc) | 15:00 |
Merio | eheehehe | 15:00 |
dhans | Merio: on my level: my example which helped me explore if anonymous function may return something (x = (function() { return 2 }()); document.write("x: " + x); ) writes 2 in both cases, but this is probably not a proof of semantical równoważność :P | 15:01 |
dhans | equivalence | 15:01 |
dhans | I just paste a word before translation :) | 15:02 |
dhans | there is a set of words that I always spell incorrectly, so I want to copy/past them :) | 15:02 |
Merio | heheh :) | 15:03 |
Merio | let me see your question :) | 15:03 |
dhans | it's not a question :P | 15:03 |
Merio | ahah sorry you're right :) | 15:03 |
Merio | I thought it was | 15:04 |
dhans | no, it was my proof by example :-/ | 15:04 |
Merio | great :) | 15:09 |
Merio | Firefox 3.5 is here! | 15:09 |
Merio | Party! | 15:09 |
dhans | Merio: yeah. my father told me before. when I saw it, I also shown him that Firefox has such features like tabs and bookmarks, but it's another story ;-) | 15:12 |
Merio | eheh ;) | 15:12 |
dhans | be back in 30 minutes | 15:17 |
Merio | dhans: ok. I'll probably go to sleep early, this night I've slept 4 hours, don't know why... so it's better to get rest and be more powerful tomorrow, I'm very tired today | 15:18 |
Merio | dhans: going to sleep, sorry about that, really I can't keep my eyes open, see you tomorrow, I'll be here early (hope at 7:00 my time) all day long | 15:28 |
*** Merio has quit IRC | 15:29 | |
*** jamtoday_ has joined #melange | 15:48 | |
*** solydzajs has joined #melange | 15:48 | |
*** ChanServ sets mode: +o solydzajs | 15:48 | |
*** jamtoday_ has quit IRC | 15:57 | |
*** SRabbelier has quit IRC | 16:10 | |
*** dhans has quit IRC | 16:15 | |
*** jamtoday_ has joined #melange | 16:23 | |
*** jamtoday__ has joined #melange | 16:26 | |
*** jamtoday_ has quit IRC | 16:26 | |
*** madrazr1 has joined #melange | 16:33 | |
*** madrazr has quit IRC | 16:33 | |
*** madrazr1 is now known as madrazr | 16:34 | |
*** ChanServ sets mode: +v madrazr | 16:34 | |
*** dhaun has quit IRC | 17:17 | |
*** jamtoday__ has quit IRC | 18:40 | |
*** madrazr has left #melange | 18:59 | |
*** EllenKo has quit IRC | 19:02 | |
*** ajaksu has joined #melange | 19:04 | |
*** jamtoday_ has joined #melange | 19:04 | |
ajaksu | jamtoday_: hiya :) | 19:08 |
* ajaksu just found out we also have 2 review systems :/ | 19:09 | |
jamtoday_ | ajaksu: 2 review systems? | 19:10 |
jamtoday_ | brb | 19:10 |
*** jamtoday_ has left #melange | 19:10 | |
*** jamtoday has joined #melange | 19:10 | |
jamtoday | there we go | 19:10 |
ajaksu | jamtoday: make that three: google code, rietveld and emails... I guess I should stop using rietveld :) | 19:11 |
jamtoday | ajaksu: looking at your create survey UI, if this works it will be a huge help. | 19:12 |
ajaksu | jamtoday: let me send you the whole patch against trunk, I'm a bit too tired so I'm not sure my patches are making sense... | 19:13 |
jamtoday | can you push it via git? | 19:14 |
jamtoday | I'm in for the rest of the day, so I'll make sure it works and include it in my next patch | 19:15 |
jamtoday | ajaksu: I'm trying to figure out why the Question Type field shows up in editing surveys, but not creating surveys. Can't find the code for this anywhere | 19:17 |
ajaksu | jamtoday: I'm not sure it'll apply cleanly to git, but I'll try :) | 19:19 |
ajaksu | jamtoday: you mean newly added choice questions never show the type field (so on question creation) or choice questions added on create survey don't show the type field, but do otherwise? | 19:20 |
jamtoday | existing choice questions for editing show the Question Type field....I'm going to do a few of the TODOs for survey front-end (such as showing short answer prompts above the input field) so I'll look into it. Code has got to be somewhere | 19:22 |
ajaksu | jamtoday: survey-edit-090627.js:604 -> we add new questions in JS | 19:28 |
jamtoday | ajaksu: thanks...let me know if you have problems with git and I'll apply the survey UI patch manually | 19:33 |
*** mithro has quit IRC | 19:34 | |
*** solydzajs has quit IRC | 19:35 | |
ajaksu | jamtoday: pushed, but it's a mess, sorry :/ | 19:37 |
*** mithro has joined #melange | 19:54 | |
*** ChanServ sets mode: +v mithro | 19:54 | |
*** jamtoday___ has joined #melange | 20:06 | |
*** jamtoday has quit IRC | 20:06 | |
*** MatthewWilkes has quit IRC | 20:19 | |
*** mithro has quit IRC | 20:22 | |
*** jamtoday___ has quit IRC | 21:03 | |
*** mithro has joined #melange | 21:08 | |
*** ChanServ sets mode: +v mithro | 21:08 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!