Hi, Here is the log of the chatroom at http://farsides.com/chat/ (or irc://irc.freenode.net/#farsides) for the 2011-05-05.
2011-05-05 04:38:16+0000 antoviaque (antoviaque) is now online 2011-05-05 09:54:45+0000 <antoviaque> re - back from April & potential office visit : ) 2011-05-05 09:59:26+0000 <dachary> antoviaque: forwarded you interesting thread on debian / cardstories 2011-05-05 09:59:44+0000 <dachary> there seem to be a need for a clarified home page for cardstori.es 2011-05-05 10:00:03+0000 <antoviaque> A clarified home page? 2011-05-05 10:00:07+0000 <antoviaque> let me see 2011-05-05 10:02:33+0000 <antoviaque> Some good comments there, it's interesting 2011-05-05 10:03:06+0000 <antoviaque> Can I copy-paste this to a bug report, to remember to take care of reworking the project home? 2011-05-05 10:03:28+0000 <antoviaque> The list should be public since it's debian, but checkin : ) 2011-05-05 10:07:17+0000 da (da) is now online 2011-05-05 11:11:01+0000 <antoviaque> dachary: I'm working on the feedback form 2011-05-05 11:11:19+0000 <antoviaque> I'm thinking about where I should put the php that actually sends the email 2011-05-05 11:11:51+0000 <antoviaque> It has to be on the same domain, but we only have the webservice there 2011-05-05 11:12:02+0000 <antoviaque> or should I add a call on the webservice? 2011-05-05 11:12:07+0000 <antoviaque> maybe wait for the CMS? 2011-05-05 11:40:31+0000 tartarugafeliz (tartarugafeliz) is now online 2011-05-05 11:57:08+0000 <antoviaque> dachary: Something else - I'm changing what we discussed yesterday for the 7 cards during creation, but I'm not sure what to do about send_game. At this stage the game hasn't been created yet on the webserver, so I need to call a js function directly. How do I keep the factorization here? 2011-05-05 12:21:36+0000 lincoln (lincoln) is now online 2011-05-05 12:22:11+0000 <lincoln> hello there :) 2011-05-05 12:22:21+0000 <antoviaque> hello lincoln : ) 2011-05-05 12:22:28+0000 <antoviaque> better connexion today ? : ) 2011-05-05 12:23:14+0000 <lincoln> hehe, yes. yesterday I had a fight with the damn proxy they impose to us here and uses tsocks, vtun and other magical stuff to get rid of some problems :) 2011-05-05 12:23:26+0000 <lincoln> *used 2011-05-05 12:24:15+0000 <antoviaque> and you won? : ) 2011-05-05 12:36:29+0000 <lincoln> yup :) 2011-05-05 12:49:19+0000 <antoviaque> congratz ;p 2011-05-05 12:50:28+0000 <antoviaque> Done some CSS fixes: cursor:pointer for buttons, centered the game on screen and added bg color 2011-05-05 12:50:41+0000 <antoviaque> cursor: pointer 2011-05-05 13:03:26+0000 <antoviaque> and lobby links 2011-05-05 13:54:28+0000 <dachary> antoviaque: I think the caller must pass a callback instead of just the name of the action. Because the function is indeed different when a game is being created. 2011-05-05 13:58:30+0000 <antoviaque> dachary: I thought of that, but what do you do of the parameters which aren't the same? 2011-05-05 14:05:35+0000 smartwhiz (smartwhiz) is now online 2011-05-05 14:11:41+0000 <dachary> antoviaque: I'm confused 2011-05-05 14:12:01+0000 <antoviaque> This is probably a silly question then 2011-05-05 14:12:08+0000 <dachary> what I mean is that instead of giving a action 2011-05-05 14:12:13+0000 <dachary> you give a callbback 2011-05-05 14:12:18+0000 <dachary> and instead of calling send_game 2011-05-05 14:12:23+0000 <dachary> you call the callback 2011-05-05 14:12:50+0000 <dachary> it means you need to define a function in the caller to capture the arguments that need to be preserved 2011-05-05 14:13:00+0000 <dachary> which makes for a little more work from the caller point of view 2011-05-05 15:04:35+0000 <dachary> antoviaque: I'm thinking maybe you should consider closures 2011-05-05 15:04:40+0000 <dachary> think closures 2011-05-05 15:05:34+0000 <dachary> in http://cardstori.es/trac/browser/static/js/jquery.cookie.js 2011-05-05 15:05:47+0000 <dachary> sorry 2011-05-05 15:05:50+0000 <dachary> http://cardstori.es/trac/browser/static/js/jquery.cardstories.js 2011-05-05 15:07:21+0000 * dachary looking for an example 2011-05-05 15:07:48+0000 <dachary> in player_select_card which you know 2011-05-05 15:07:58+0000 <dachary> .click(function() { 2011-05-05 15:08:02+0000 <dachary> is given a function 2011-05-05 15:08:11+0000 * antoviaque reading http://jibbering.com/faq/notes/closures/ 2011-05-05 15:08:18+0000 <dachary> that uses arguments of the player_select_card: function(player_i function 2011-05-05 15:08:26+0000 <dachary> although it is called at a different time 2011-05-05 15:08:30+0000 da (da) is now online 2011-05-05 15:08:34+0000 <dachary> antoviaque: this is the essence of the closure 2011-05-05 15:09:06+0000 <dachary> the function, when executed, can use the content of the variables that were sent when it was defined 2011-05-05 15:09:24+0000 <dachary> because they are in a closure in which the function runs 2011-05-05 15:09:31+0000 <dachary> antoviaque: does this make sense 2011-05-05 15:09:32+0000 <dachary> ? 2011-05-05 15:11:04+0000 <dachary> if this still eludes you, I will implement something when I get back 2011-05-05 15:11:19+0000 <dachary> I think it will enlight your understanding of the problem 2011-05-05 15:11:41+0000 <antoviaque> hmmm 2011-05-05 15:12:48+0000 <antoviaque> so you're defining the method in the caller that will actually call send_game or create_write sentence, and select_card passes the card variable? 2011-05-05 15:13:06+0000 Laurent__ (Laurent__) is now online 2011-05-05 15:13:36+0000 <dachary> here is how action can be replaced by a callback 2011-05-05 15:13:38+0000 <dachary> http://pastebin.com/9m1RLPdu 2011-05-05 15:13:53+0000 <dachary> which is exactly what you say :-) 2011-05-05 15:13:56+0000 <dachary> I think you got it 2011-05-05 15:13:58+0000 da_ (da_) is now online 2011-05-05 15:14:16+0000 <antoviaque> ahhh, yes, perfect 2011-05-05 15:14:17+0000 <da_> hi Laurent__ 2011-05-05 15:14:21+0000 <antoviaque> hi Laurent__ : ) 2011-05-05 15:15:00+0000 <Laurent__> lo 2011-05-05 15:15:13+0000 <antoviaque> dachary: thanks a lot - seems obvious now, but needed a first time : ) 2011-05-05 15:15:38+0000 <Laurent__> antoviaque: L.O test 2011-05-05 15:15:46+0000 <antoviaque> Laurent__: ouiiii? :D 2011-05-05 15:16:23+0000 <Laurent__> antoviaque: ras;) 2011-05-05 15:18:10+0000 <Laurent__> antoviaque: juste un test pour voir si ça marche.... la réponse est donc oui 2011-05-05 15:18:25+0000 <Laurent__> antoviaque:bonne soirée et à demain donc 2011-05-05 15:18:49+0000 <da_> talk to you tomorrow Laurent__ :) 2011-05-05 15:19:15+0000 <Laurent__> da_: talk u later ;) 2011-05-05 15:19:29+0000 <Laurent__> da_: A demain 2011-05-05 15:19:34+0000 <Laurent__> bye 2011-05-05 15:19:40+0000 <antoviaque> bye : ) 2011-05-05 15:52:20+0000 antoviaque (antoviaque) is now online 2011-05-05 16:18:05+0000 smartwhiz (smartwhiz) is now online 2011-05-05 16:38:39+0000 da (da) is now online 2011-05-05 16:53:28+0000 <lincoln> nice javascript game: http://www.zachstronaut.com/projects/commander-clone/0.2/game.html :) 2011-05-05 17:10:30+0000 lincoln_ (lincoln_) is now online 2011-05-05 18:21:59+0000 <dachary> antoviaque: I'm glad you got it. 2011-05-05 18:22:30+0000 <dachary> I very much like explaining things to people in need. And you're a good listener. 2011-05-05 19:20:28+0000 dachary (dachary) is now online 2011-05-05 19:22:22+0000 antoviaque (antoviaque) is now online 2011-05-05 20:24:45+0000 dachary (dachary) is now online 2011-05-05 23:27:06+0000 antoviaque (antoviaque) is now online
_______________________________________________ Farsides mailing list - [email protected] Wiki: http://farsides.com/ List: http://farsides.com/ml/ Forum: http://farsides.com/forum/ Ideas: http://farsides.com/ideas/ Chat: http://farsides.com/chat/

