Hi,

Here is the log of the chatroom at http://farsides.com/chat/ (or 
irc://irc.freenode.net/#farsides) for the 2011-06-27.


2011-06-27 01:28:35+0000 chr15m (chr15m) is now online
2011-06-27 07:30:03+0000 dachary (dachary) is now online
2011-06-27 08:38:29+0000 tempuramerino (tempuramerino) is now online
2011-06-27 09:11:41+0000 romulo (romulo) is now online
2011-06-27 09:11:45+0000 <romulo> good morning
2011-06-27 09:12:13+0000 <romulo> antoviaque, the chat log tells me you want to 
talk to myself
2011-06-27 09:24:59+0000 tartarugafeliz (tartarugafeliz) is now online
2011-06-27 09:32:29+0000 <romulo> will be back soon, gotta go to working place
2011-06-27 09:44:17+0000 dachary (dachary) is now online
2011-06-27 09:56:59+0000 arbrandes (arbrandes) is now online
2011-06-27 10:16:18+0000 romulo (romulo) is now online
2011-06-27 10:19:54+0000 <chr15m> dachary: do you have a minute for me to ask 
you about something?
2011-06-27 10:24:43+0000 <dachary> sure
2011-06-27 10:25:01+0000 <dachary> chr15m: ^
2011-06-27 10:25:19+0000 <chr15m> dachary: hmmm wait a minute, still thinking 
about it :)
2011-06-27 10:26:25+0000 <chr15m> dachary: action=message&sentence=SENTENCE 
should have a game_id also right?
2011-06-27 10:26:35+0000 <chr15m> dachary: or is chat shared between games?
2011-06-27 10:27:29+0000 <chr15m> dachary: and also player_id for the 
originating player
2011-06-27 10:27:34+0000 <dachary> it's shared. There is a good chance it will 
evolve into a per-game chat, but at the moment it's a global chat.
2011-06-27 10:28:12+0000 <dachary> and you need the player_id too, good point. 
That's missing from the ticket description.
2011-06-27 10:28:58+0000 <chr15m> dachary: ok i will implement it that way
2011-06-27 10:29:44+0000 <romulo> dachary, good morning/afternoon. I had a look 
at the example you sent me, no idea how that can solve my problem with game 
creation logging. From what i saw, i should check everything together at the 
end. Also, im wondering if there is any problem to log many messages for a 
single event.
2011-06-27 10:30:10+0000 <romulo> blanchard, ping
2011-06-27 10:31:03+0000 <dachary> romulo: I'm sorry I don't have time today to 
work with you on this. I'd be happy to answer specific questions though.
2011-06-27 10:32:09+0000 <romulo> dachary, no problem. Could you just answer 
then about the "many messages for a single event" ?  ^
2011-06-27 10:33:19+0000 <dachary> romulo: if by "log many message" you mean 
insert more than one database row when a game event happens, you can do that.
2011-06-27 10:34:02+0000 <romulo> dachary, ok, thanks, thats was what i needed 
to hear =]
2011-06-27 10:35:15+0000 <dachary> :-)
2011-06-27 10:41:29+0000 <arbrandes> dachary, hey there.  So... result is now 
ListType?
2011-06-27 10:41:48+0000 <dachary> arbrandes: yes. 
2011-06-27 10:42:22+0000 <arbrandes> dachary, ah, I see, there are several 
results possible now
2011-06-27 10:42:40+0000 <dachary> arbrandes: I wrote about it in yesterdays 
report http://dachary.org/?p=704 
2011-06-27 10:42:57+0000 <dachary> I don't like to introduce backward 
incompatible changes but I felt it was not too harmful
2011-06-27 10:43:07+0000 <arbrandes> cool, thanks
2011-06-27 10:43:38+0000 <romulo> dachary, looks like 
http://farsides.com/activity/ got spammed :(
2011-06-27 10:44:15+0000 <dachary> arbrandes: I suggest you read 
http://cardstori.es/trac/browser/plugins/auth/auth.py to see how I adapted the 
default auth module for this change 
2011-06-27 10:44:42+0000 <arbrandes> dachary, yup, reading it now :)
2011-06-27 10:45:03+0000 <dachary> arbrandes: http://cardstori.es/ is currently 
running the latest git master revision
2011-06-27 10:46:30+0000 <arbrandes> dachary, roger that
2011-06-27 10:50:14+0000 <arbrandes> dachary, also, I'd like to bring something 
to your attention; it is in reference to #94, which it seems you'll be working 
on for the next few days.  For django integration, I essentially translated 
index.html into a more django-friendly template, so that less HTML would be 
duplicated.  I bring this up for two reasons: 1) if the whole django thing is 
going to get merged, it might be a good idea to do it sooner rather than later; 
2) it may very well be
2011-06-27 10:50:14+0000 <arbrandes>  that this move was not the best way to 
handle it, and if so, I'd need to revert it.
2011-06-27 10:51:43+0000 tartarugafeliz (tartarugafeliz) is now online
2011-06-27 10:54:17+0000 <dachary> arbrandes: if you can list the rules that I 
should follow to create CSS/HTML that is django friendly, I'll pay attention 
and ask questions if I'm not sure. I would be grateful if you could add this to 
#94. Hopefully you'll just need to cut/paste and it'll be django-ready when I'm 
done ;-)
2011-06-27 10:59:20+0000 <arbrandes> dachary, roger, I'll comment on #94, but 
maybe this is something I should worry about, rather than you: there's no 
difference in the CSS, only in the HTML, and they are two: 1) Django template 
tags (which you don't need to worry about, I'll merge changes manually later), 
and 2) all references to static resources should be prefixed with /static/, 
i.e. href=/static/js/jquery.cardstories.js.
2011-06-27 11:00:35+0000 <arbrandes> It doesn't make sense for you to do 
anything about this before django-auth is merged, I brought this up more as a 
heads up on possible conflicts ahead. :)
2011-06-27 11:01:24+0000 <dachary> regarding 2) I intentionaly make sure all 
references are relative so that cardstories can be placed in any subdirectory 
of the user choice and work as expected. I however understand the need of an 
absolute path in the django context.
2011-06-27 11:02:55+0000 <arbrandes> dachary, yep, I understand the relative 
path thing, and I think it's too bad that it won't work with django.  It makes 
setting up a development environment harder, among other things.
2011-06-27 11:03:53+0000 <arbrandes> dachary, although... now that I think 
about it, I may be mistaken.  Let me check something.
2011-06-27 11:09:01+0000 <arbrandes> Yup, it has to be /static/.  I don't see 
an easy way to have django dynamically figure out where media lives.  It can be 
done with some creative apache configuration and/or symlinks, but I believe 
that would just complicate matters.
2011-06-27 11:09:56+0000 <arbrandes> Well, that's that.  Let me get back to the 
new poll thing.
2011-06-27 11:11:01+0000 <arbrandes> antoviaque, hey man, you there?
2011-06-27 11:12:03+0000 <chr15m> arbrandes: what about putting it in 
settings.py for the project?
2011-06-27 11:12:26+0000 <chr15m> arbrandes: and then in the template using {{ 
settings.STATIC_URL }}
2011-06-27 11:12:36+0000 <chr15m> arbrandes: maybe i am completely on the wrong 
track here though :)
2011-06-27 11:13:55+0000 <arbrandes> chr15m, sure, that makes sense, but I'm 
trying to minimize having users need to mess with settings.py.  It may be the 
best option, though
2011-06-27 11:14:49+0000 <arbrandes> chr15m, I'm also still a bit unsure about 
having the project depend *completely* on django template syntax, which is why 
I brought up the whole thing. :)
2011-06-27 11:15:13+0000 <dachary> chr15m: btw, the version currently installed 
at http://cardstori.es/ contains your anonymous patch
2011-06-27 11:15:15+0000 <chr15m> arbrandes: yep, it's a commitment
2011-06-27 11:15:50+0000 <chr15m> dachary: cool :)
2011-06-27 11:16:16+0000 <chr15m> arbrandes: you might be able to figure out 
the django static serve dynamically from 
os.path.abspath(os.path.dirname(__file__))
2011-06-27 11:16:57+0000 <chr15m> arbrandes: but actually i think i'm confusing 
static root with static URL
2011-06-27 11:17:32+0000 <arbrandes> chr15m, I set that up for the built-in 
development server (if settings.DEBUG ... static.serve, etc), but everybody 
warns strongly against using that in production.
2011-06-27 11:17:47+0000 <chr15m> arbrandes: ah yep of course
2011-06-27 11:20:48+0000 <arbrandes> chr15m, about static root vs. static URL, 
both are at the root (pun not intended, hehehe) of the same problem: is there a 
way to have the HTML resources all have relative URLs, in such a way that does 
not overly complicate deployment AND development, AND does not compromise 
performance in production?
2011-06-27 11:21:32+0000 <arbrandes> (just to pose the problem, I really 
haven't found an easy answer yet)
2011-06-27 11:22:24+0000 <chr15m> arbrandes: i'm afraid i don't understand the 
specific problem in this instance. you're running `./manage.py runserver` 
during development out of some subdirectory of the cardstories git?
2011-06-27 11:22:40+0000 <arbrandes> But if the Django community is to be 
believed, relative URL's aren't a good idea for production servers anyway.
2011-06-27 11:23:00+0000 <chr15m> i usually deploy with apache2 + mod_wsgi and 
the configuration is very small
2011-06-27 11:23:17+0000 <arbrandes> chr15m, due to the nature of the beast, 
I'm not running the buit-in server at all 
2011-06-27 11:23:30+0000 <chr15m> arbrandes: ah ok, how are you serving for 
development?
2011-06-27 11:23:31+0000 <arbrandes> chr15m, yup, using apache2 + wsgi
2011-06-27 11:23:44+0000 <arbrandes> chr15m, let me explain why
2011-06-27 11:24:12+0000 <chr15m> arbrandes: well i think i understand already 
because of having a twisted server running along side at the same time
2011-06-27 11:24:17+0000 <arbrandes> chr15m, apache needs to proxy requests to 
/resource to a the cardstories daemon itself
2011-06-27 11:24:25+0000 <arbrandes> chr15m, yup, that's it
2011-06-27 11:24:31+0000 <chr15m> yeah
2011-06-27 11:24:43+0000 <arbrandes> Before django, though,
2011-06-27 11:24:56+0000 <arbrandes> There was no need for any such proxying
2011-06-27 11:25:11+0000 <chr15m> so but you are running apache for development 
on yr local machine?
2011-06-27 11:25:13+0000 <arbrandes> Because either twisted or nginx would just 
serve up a static index.html
2011-06-27 11:25:20+0000 <arbrandes> chr15m, yes
2011-06-27 11:25:23+0000 <chr15m> ah ok
2011-06-27 11:25:31+0000 <arbrandes> and it's a bit of a pain, to be sure hehehe
2011-06-27 11:25:37+0000 <chr15m> hmmmm
2011-06-27 11:26:08+0000 <arbrandes> but I don't see a way around it, yet
2011-06-27 11:26:17+0000 <chr15m> what about in settings.py by default you 
have: TWISTED_RESOURCE_URL="http://localhost:5000/resource";
2011-06-27 11:26:39+0000 <chr15m> and then run the twisted daemon and runserver 
side by side?
2011-06-27 11:26:50+0000 arbrandes_ (arbrandes_) is now online
2011-06-27 11:26:56+0000 <arbrandes_> (ack, damn 3G, sorry if I missed anything)
2011-06-27 11:27:04+0000 <dachary> :-D
2011-06-27 11:27:06+0000 <chr15m> (07:26:09 PM) arbrandes: but I don't see a 
way around it, yet
2011-06-27 11:27:06+0000 <chr15m> (07:26:18 PM) chr15m: what about in 
settings.py by default you have: 
TWISTED_RESOURCE_URL="http://localhost:5000/resource";
2011-06-27 11:27:06+0000 <chr15m> (07:26:39 PM) chr15m: and then run the 
twisted daemon and runserver side by side?
2011-06-27 11:27:20+0000 <chr15m> or inside Django you could have a view that 
actually does a proxy to the twisted daemon
2011-06-27 11:27:28+0000 <chr15m> it would be like two lines of code :)
2011-06-27 11:27:41+0000 <chr15m> and that view could be on a url which gets 
mapped away (ignored) by apache
2011-06-27 11:27:57+0000 <dachary> does someone know how to ask make to display 
the filename + line number when it runs a command ? 
2011-06-27 11:28:23+0000 <arbrandes_> chr15m, those are both great ideas
2011-06-27 11:28:45+0000 <chr15m> arbrandes_: 
http://pypi.python.org/pypi/django-http-proxy/0.3
2011-06-27 11:29:01+0000 <arbrandes_> chr15m, that was exactly what I was going 
to ask! ;)
2011-06-27 11:29:57+0000 <chr15m> arbrandes_: i have not used that before 
myself but it should do the job
2011-06-27 11:30:58+0000 <arbrandes_> chr15m, I'm going to try the first option 
to begin with, though, it looks safer (for now).
2011-06-27 11:31:13+0000 <arbrandes_> chr15m, ah, problem
2011-06-27 11:31:21+0000 <arbrandes_> chr15m, cross domain cookies
2011-06-27 11:31:34+0000 <arbrandes_> chr15m, so the proxy it is :)
2011-06-27 11:31:38+0000 <chr15m> arbrandes_: yep :)
2011-06-27 11:32:20+0000 <chr15m> arbrandes_: i think it will simplify things 
especially because under apache it will look identical (e.g. that django code 
will just get skipped and replaced by apache)
2011-06-27 11:33:37+0000 <arbrandes_> chr15m, yes, this would just be used for 
development
2011-06-27 11:34:41+0000 mtyaka (mtyaka) is now online
2011-06-27 11:37:05+0000 <mtyaka> hi everybody
2011-06-27 11:37:45+0000 <arbrandes_> hey mtyaka
2011-06-27 11:37:46+0000 <mtyaka> there were some changes checked into the 
cardstories repository yesterday
2011-06-27 11:38:05+0000 <mtyaka> after i pulled the changes, some of the 
javascript tests fail for me...
2011-06-27 11:38:17+0000 <mtyaka> i am not sure whether the problem is on my 
side or not
2011-06-27 11:38:25+0000 <mtyaka> i tried clearing the cookies and it doesn't 
seem to help
2011-06-27 11:38:52+0000 <mtyaka> the failures all revolve around a url...
2011-06-27 11:38:57+0000 <dachary> mtyaka: there were disruptive changes indeed
2011-06-27 11:38:59+0000 <arbrandes_> mtyaka, I don't think it's a problem with 
you, dachary made some backward incompatible changes yesterday: 
http://dachary.org/?p=704
2011-06-27 11:39:15+0000 <mtyaka> Expected: 
"../resource?action=state&type=lobby&player_id=15&in_progress=true&my=true"
2011-06-27 11:39:28+0000 <dachary> mtyaka: I think it won't be much but it will 
interfere with your changes. 
2011-06-27 11:39:32+0000 <mtyaka> Result: 
"../resource?action=state&type=lobby&modified=0&player_id=15&in_progress=true&my=true"
2011-06-27 11:39:55+0000 <mtyaka> the difference is that the actual url 
includes "modified=0"
2011-06-27 11:40:01+0000 <dachary> mtyaka: 
http://cardstori.es/trac/changeset/b9523045ce1ff6d4445acde690f5b8a5c0de7a81#file3
2011-06-27 11:40:20+0000 <dachary> mtyaka: and this is how I had to adapt the 
tests 
http://cardstori.es/trac/changeset/b9523045ce1ff6d4445acde690f5b8a5c0de7a81#file4
2011-06-27 11:40:49+0000 <dachary> mtyaka: you are correct, it involves adding 
modified=0 in some cases and spliting action=game into action=state&type=game
2011-06-27 11:41:13+0000 <dachary> as you can see from the changes in the url 
above, they are not sophisticated but there are a few
2011-06-27 11:41:55+0000 <mtyaka> yes... i already merged in your changes - 
should i still be getting failures?
2011-06-27 11:48:17+0000 <dachary> mtyaka: no, it should work.
2011-06-27 11:48:28+0000 <dachary> let me check again
2011-06-27 11:49:07+0000 <dachary> mtyaka: I have tons of errors too...
2011-06-27 11:49:44+0000 <dachary> mtyaka: let me fix this and trying to figure 
out how I missed such a huge failure
2011-06-27 11:50:26+0000 <mtyaka> ok, thanks
2011-06-27 11:50:41+0000 <dachary> indeed, as you point out, it's simply a 
matter of adding modified=0
2011-06-27 11:52:17+0000 <mtyaka> dachary: i have another question regarding 
the beforeunload handler at the end of jquery.cardstories.js
2011-06-27 11:52:36+0000 <mtyaka> the handler sets $.cardstories.error to a 
noop function
2011-06-27 11:53:07+0000 <mtyaka> what is the motivation behind this/why is 
this needed?
2011-06-27 11:53:48+0000 <mtyaka> i'm trying to understand the reason behind it 
so that I know how to test it :)
2011-06-27 11:55:07+0000 <dachary> mtyaka: you should be able to pull & run the 
tests successfully now. I apologize for the inconvenience.
2011-06-27 11:55:20+0000 <mtyaka> no problem, will do
2011-06-27 11:57:01+0000 <dachary> setting error to a noop is to prevent a race 
condition where the ajax returns while the page is being unloaded. There is no 
guarantee that it will be handled properly and any error can be silently 
ignored.
2011-06-27 11:57:36+0000 <mtyaka> i see
2011-06-27 11:57:52+0000 <mtyaka> it's a bit hard to test
2011-06-27 11:58:39+0000 <dachary> mtyaka: maybe so. Trying to fake a failed 
ajax call when the page is actually unloaded is probably mission impossible ;-)
2011-06-27 11:58:39+0000 <mtyaka> can we set it to $.noop or perhaps create 
$.cardstories.noop, so that in the test I could just assert the 
$.cardstories.error points to $.noop?
2011-06-27 11:58:53+0000 <mtyaka> hehe, yes
2011-06-27 12:00:09+0000 <dachary> yes, you can noop: function() {} and set 
error = noop in the handler so that you can override noop for test purposes. If 
that's what you have in mind.
2011-06-27 12:03:10+0000 <mtyaka> yes, that's what I meant
2011-06-27 12:03:18+0000 <mtyaka> ok, cool, will do that
2011-06-27 12:03:24+0000 <mtyaka> i have to run for lunch now
2011-06-27 12:03:38+0000 <mtyaka> thanks for the help
2011-06-27 12:06:14+0000 arbrandes_ (arbrandes_) is now online
2011-06-27 12:43:29+0000 tempuramerino (tempuramerino) is now online
2011-06-27 13:10:24+0000 <chr15m> dachary: i am going to send you my rough 
outline of chat.py plugin so far - can you please provide feedback for me and 
let me know if it looks like i am on the right track?
2011-06-27 13:13:45+0000 <dachary> sure
2011-06-27 13:13:57+0000 <dachary> good timing
2011-06-27 13:14:11+0000 <chr15m> writing it now :)
2011-06-27 13:18:36+0000 arbrandes_ (arbrandes_) is now online
2011-06-27 13:22:10+0000 <chr15m> alright, goodnight all
2011-06-27 13:22:20+0000 <romulo> night =]
2011-06-27 13:34:41+0000 <xrogaan_> arbrandes_: so, any luck with this channel 
? 'know, about bringing up a topic or something :p
2011-06-27 13:34:54+0000 <xrogaan_> (also, do you still hire people ?)
2011-06-27 13:36:42+0000 tempuramerino (tempuramerino) is now online
2011-06-27 13:49:08+0000 <arbrandes_> xrogaan_, lots of luck, depending on what 
you mean, hehehe
2011-06-27 13:49:59+0000 <arbrandes_> xrogaan_, about hiring, you should talk 
to antoviaque, I'm just a groupie (at least for now :)
2011-06-27 13:52:18+0000 <xrogaan_> man, you both start with a
2011-06-27 13:52:34+0000 <xrogaan_> and don't peer on me, do you understand ?!
2011-06-27 13:58:30+0000 * xrogaan_ is looking at antoviaque then
2011-06-27 14:08:43+0000 arbrandes_ (arbrandes_) is now online
2011-06-27 15:42:02+0000 <blanchard> arbrandes_: hello :)
2011-06-27 15:42:20+0000 <arbrandes_> blanchard, hi there! :)
2011-06-27 15:42:36+0000 <blanchard> I'm in meetings all day today :(, but 
tomorrow if you have a little time i'd like to exchange about scrum :) 
2011-06-27 15:42:44+0000 <blanchard> possible for you ?
2011-06-27 15:43:54+0000 <blanchard> arbrandes_: ^
2011-06-27 15:44:20+0000 <blanchard> i'll try to grab you on the chat
2011-06-27 15:45:11+0000 <blanchard> also i've got your feedback on the 
contract, missing time today but i'll look tomorrow
2011-06-27 15:48:49+0000 <arbrandes_> blanchard, I'll do my best!  I have a 
long-sad-story about tomorrow and the day after, which boils down to this: I'm 
stuck at the beach until I can take my motorcycle to a bike shop, but the 
nearest bike shop is two towns away, so I'll have to (literally) camp there for 
two days until they finish working on it.  I'm not sure I will have easy access 
to electrical outlets, so I don't really know how available I'll be.
2011-06-27 15:49:18+0000 <arbrandes_> Also, this all depends on the weather... 
in any case, I'll try to be here as much as I can. :)
2011-06-27 15:49:39+0000 <blanchard> haha the beach constraints, poor you :p
2011-06-27 15:49:51+0000 <blanchard> no worry though
2011-06-27 15:49:53+0000 <arbrandes_> blanchard, heheheh, I'm not REALLY 
complaining. :)
2011-06-27 15:50:24+0000 <blanchard> i'll post my thoughts about scrum for us 
on buddypress, and you can react on it when you're back online, no hurry
2011-06-27 15:50:52+0000 <arbrandes_> blanchard, ok, that sounds good to me, 
and it also gives us an opportunity to please antoviaque by using buddypress. ;)
2011-06-27 15:51:11+0000 <blanchard> hehe
2011-06-27 15:51:14+0000 <blanchard> perfect
2011-06-27 15:51:23+0000 <blanchard> back to meetings ttyl
2011-06-27 15:52:14+0000 <arbrandes_> later!
2011-06-27 16:20:12+0000 arbrandes_ (arbrandes_) is now online
2011-06-27 16:22:20+0000 tartarugafeliz (tartarugafeliz) is now online
2011-06-27 16:45:54+0000 dachary (dachary) is now online
2011-06-27 19:03:26+0000 arbrandes__ (arbrandes__) is now online
2011-06-27 19:18:03+0000 arbrandes_ (arbrandes_) is now online
2011-06-27 19:20:05+0000 arbrandes__ (arbrandes__) is now online
2011-06-27 19:50:36+0000 arbrandes (arbrandes) is now online
2011-06-27 20:44:45+0000 arbrandes_ (arbrandes_) is now online
2011-06-27 21:35:39+0000 arbrandes_ (arbrandes_) is now online
2011-06-27 21:39:08+0000 arbrandes__ (arbrandes__) 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/

Reply via email to