Hi, Here is the log of the chatroom at http://community.hackit.cx/chat/ for the 27/11/2010.
03:08:33 <> vlad joins Farsides 05:57:21 <Kalhaan> vlad quit (timeout) 07:20:12 <Kalhaan> vlad quit (timeout) 07:38:01 <Kalhaan> vlad quit (timeout) 07:58:35 <Kalhaan> vlad quit (timeout) 08:43:13 <vlad> Good morning 08:52:27 <Kalhaan> vlad quit (timeout) 09:04:14 <Kalhaan> Hello vlad : ) 09:04:41 <vlad> Hi Xavier, how are you? 09:04:51 <Kalhaan> How are you? Looks like it has been a movemented week for you : ) 09:04:57 <Kalhaan> I'm very well, thanks! 09:05:38 <Kalhaan> I've just quit the company where I used to work besides farsides, so I appreciate being fulltime on the project now :D 09:06:15 <Kalhaan> But it's very late for you now, no? 09:06:38 <vlad> it's 1 oclock in the morning 09:07:09 <Kalhaan> well, still ok, but still late : ) 09:07:39 <Kalhaan> David said the chat should be now, no? 09:07:58 <vlad> no, it's ot that late 09:08:13 <vlad> yes, he said Saturday morning your time 09:08:30 <vlad> i'm also on skpe, but he isn't there either 09:09:43 <vlad> i tried the make upgrade command. it worked and it didn't caused any errors 09:10:40 <vlad> but my install was already up to date so i don't know if it will work the same on an outdated codebase 09:12:09 <Kalhaan> vlad quit (timeout) 09:13:01 <vlad> just got an mail from David saying he'll be in chat in a couple of hours 09:16:23 <vlad> i don't think i'll be awake 2 hours from now :) 09:19:30 <Kalhaan> ahaha - yes, that's 3 am your time, way too late ;p 09:19:41 <Kalhaan> For the make upgrade, good to know that it worked 09:21:04 <Kalhaan> It doesn't take into account the old upgrades - basically it should have run one upgrade, that puts in place a new configuration variable and adds a table to the database to track the db revision number 09:22:53 <Kalhaan> If it works with David too, the next step will be for you to try to generate a release, next time you make a change to the db or some user action is needed (like config variable) 09:23:33 <Kalhaan> We'll be able to track dependencies with this too 09:24:01 <vlad> a ok, i see the versioning table created in the db 09:24:18 <Kalhaan> yup 09:25:26 <Kalhaan> this part should be helpful for you - it generates a diff between the db schema stored in db_hackit.sql and the current schema of the db when you run 'make release' 09:26:09 <Kalhaan> so you don't have to worry about remembering all individual changes, and those who upgrade don't have to manipulate the .sql files 09:27:13 <vlad> ok, so the process will be as follows: when i commit something i do a make release and the one that checks out the release will have to do a make upgrade 09:27:32 <Kalhaan> exactly 09:27:56 <vlad> yup, that will be way easier than the current process 09:28:08 <Kalhaan> : ) 09:30:41 <Kalhaan> you may have some stuff to do manually after you do a make release, sometimes. For example, if you add a configuration variable, 'make upgrade' will have to prompt the user with the new variable to put in config.php 09:31:51 <Kalhaan> For this, just answer yes when make release asks you if you want to create an upgrade script - it should create a file like bin/upgrade/upgrade_script_r2.sh that you can modify to achieve this 09:32:09 <vlad> ok, will i have to modify makefile to make it promt the user with the new var? 09:33:08 <Kalhaan> nope, it generates a shell script which is specific to this upgrade - this way you don't have to spend time learning the Makefile syntax 09:33:50 <Kalhaan> The only time where you should need to modify it for a release is when you add a new dependency - the make upgrade script must warn the user and quit if he doesn't find the dependency 09:34:18 <vlad> aha, ok 09:34:41 <Kalhaan> But this is very straightforward - look for example lines 91-93 of Makefile 09:35:00 <Kalhaan> You basically run a command and check that you get the expected output 09:36:32 <vlad> yes, i see it 09:37:57 <Kalhaan> Well, that's about it - I hope you'll find this helpful! : ) 09:38:39 <vlad> i'm sure i will :) 09:38:48 <Kalhaan> : ) 09:39:43 <Kalhaan> This could potentially be useful to automate other parts (like generating the documentation without remembering the exact command, etc.). If you feel that you want to play a bit with the Makefil, don't hesitate to add new commands ;p 09:41:21 <vlad> sure, i'll give it a try 09:41:38 <Kalhaan> : ) 09:42:25 <vlad> ok Xavier, i think i'll go to bed now :) i'll continue to work on the bugs tomorrow and i'll be online in the chat, maybe i'll catch David 09:42:34 <Kalhaan> Well, since David won't arrive soon, if you want to go to bed go ahead - we can rescedule it to tomorrow for you 09:42:37 <Kalhaan> yup! 09:42:54 <Kalhaan> have a good night, and thanks for staying late : ) 09:42:55 <vlad> ok, have agreat day, bye 09:43:00 <Kalhaan> bye 09:45:21 <Kalhaan> vlad quit (timeout) 10:32:52 <> da joins Farsides 10:33:09 <da> hi 10:33:21 <da> hmmm I'm late for Vlad it seems 10:34:47 <da> Xav are u around ? Got a question. Which branch should I merge to test the fixes, only Vlad's or also trunk ? 15:12:30 <Kalhaan> da quit (timeout) 18:18:05 <> vlad joins Farsides 18:19:10 <da> vlad quit (timeout) 18:19:34 <vlad> Hi 18:20:19 <da> hi there 18:20:39 <da> give me a couple of mn and I'm back 18:20:41 <da> vlad quit (timeout) 18:26:39 <da> Vlad ? 18:29:19 <vlad> Hi David 18:29:32 <da> hey 18:29:40 <da> how are you ? 18:30:16 <vlad> i'm good. got a little rest. you? 18:30:54 <da> all good. Except that I wanted to test your bugfix and I'm stuck , damn it 18:31:02 <da> it's the 682074 18:31:25 <da> maybe it's my config though, I'm not sure 18:31:51 <vlad> ok, give me a minute to check it 18:31:54 <da> sure 18:37:40 <da> vlad quit (timeout) 18:42:39 <vlad> hmm, i cannot replicate it on my end 18:43:23 <da> I just merged your branch and launch hackit without doing anything else 18:43:31 <da> not logged 18:45:29 <vlad> so you see, unknow correspondent good day traveler... and then yu see you ==replied== and then you see again unknown correspondent good day...? 18:46:08 <da> no, i see ****** instead of you ==replied== 18:46:36 <da> and then the screens is empty again and the good day traveler starts again 18:48:56 <vlad> can you try to do a make upgrade in the main directory of hackit? 18:49:32 <da> ok 18:50:56 <da> I've got : ERROR 1050 (42S01) at line 10: Table 'versioning' already exists 18:52:33 <da> when asked the name of my test database, I typed : hackit 18:53:08 <vlad> you should type hackit_test, but i don't think that's the problem 18:53:17 <da> ok 18:53:32 <vlad> do you think you can give access to your linux install? 18:54:27 <da> i don't think so, I'm not at home and I've got no clue how to do it here :( Once I merge your branch, what are the steps I'm supposed to follow ? 18:55:04 <da> hmm... you meant ssh for you right ? 18:55:17 <vlad> yes, ssh 18:56:12 <da> ok. nope, not easily 18:56:33 <vlad> the thing is that i didn't made modifications to the database structure or the config files, so you shouldn't need to make anything special, just merge the branch 18:56:56 <da> hmmm. And what is the make upgrade ? 18:58:24 <vlad> it is the stuff Xavier has been working on. It should automatically take care of all upgrade aspects. but you seem you already run it before since you already a table called versioning 18:59:36 <da> ah yes, the mail from Xav that I haven't read yet :) Well I did not run this command before, no, so i don't know why I have versioning 19:00:06 <da> for my problem, can it be database related, should I erase it ? Or is there some log I can give you ? 19:01:36 <vlad> yes, try to empty the database 19:02:18 <vlad> if it doesn't work, we'll try to debug it by modifying files 19:03:08 <da> ok I'll try that. But just one thing. Because I see ****** instead of you ==replied==, there is something weird on my side, no ? 19:05:40 <vlad> i think that one is something i miss on my part. Basically when you click submit, the chat displays waht you wrote in ***, but when it comes back from the server it should come as you ==replied==. In your case you don't get the right response from the server 19:06:29 <da> ok. But it can't explain my other issue then i guess 19:07:24 <da> anyway, I'll try emptying the database. Thanks for being there on saturday :) We talk on monday to see where the debug is and if I can test everything on my side ? 19:08:33 <vlad> sure 19:08:53 <da> ok. Anything you need on your side ? 19:09:06 <vlad> also, i'll be here a little longer in case the problem isn't fixed. 19:09:19 <da> ok i'll try now then 19:09:41 <vlad> no, i'm ok i know what i have to do 19:10:08 <da> ok. Thanks Vlad; talk to you later maybe 19:10:18 <da> have a good american day 19:10:26 <vlad> ok, thank you :) 19:10:39 <vlad> have a great french night 19:10:54 <da> hehe 19:14:10 <da> well I'm back. I truncate users, and game_sessions;sites_collection;sites_to_collection;actions 19:14:15 <da> problem still there 19:16:02 <vlad> can you try and truncate mission_state 19:16:21 <vlad> and clear the cookies in your browser and restart your browser 19:16:48 <da> mission_state is in hackit ? 19:17:00 <vlad> yes 19:17:18 <da> I can't seem to find it... 19:17:38 <da> what is the command to list the tables ? 19:17:45 <vlad> show tables; 19:18:14 <da> it gives me this : 19:18:16 <da> actions | | game_sessions | | proxy_debug | | site_tree | | sites | | sites_collection | | sites_to_collection | | users | | versioning 19:19:10 <vlad> when is the last time you did a merge prior to this one? 19:20:16 <da> a few days ago when I merged your branch. A command so I can know the date ? 19:22:05 <vlad> hmm, i'm not really sure. try bzr log 19:23:11 <da> it was on nov 18th to retrieve your simpletest fix 19:24:04 <vlad> ok, you're mission the mission state table :) 19:24:51 <vlad> the db_hackit.sql file from the sql directory has the latest db schema 19:26:13 <da> I should run the scripts you mention in the Update file then ? 19:26:18 <da> sql/update_hackit_db_alpha1.2-alpha2.0-bis.sql and the other one 19:26:19 <Kalhaan> vlad quit (timeout) 19:37:22 <da> Vlad, I can't find the scripts in hackit/sql, I'll need a little help when you're back to explain the steps 19:38:01 <vlad> i think the best way would be to erase the whole hackit database and put the one called db_hackit.sql 19:38:27 <da> ok tell me the commands please :) 19:41:06 <vlad> drop database hackit 19:41:13 <vlad> create database hackit 19:41:16 <vlad> quit 19:42:03 <vlad> mysql -u your_db_user -p hackit < path_to_sql_dir/db_hackit.sql 19:45:11 <da> good job it works. So, once again, a db structure issue on my side... 19:46:19 <vlad> yup, once we fine tune Xavier's script, we will be able just to do a make upgrade and it should take care of everything 19:46:33 <da> that would be cool 19:46:51 <da> By the way, can't read easily in the chat window because the window is really too small but that's for another bug... ;) 19:47:02 <da> I'll test all of that tomorrow. We talk monday ? 19:47:22 <vlad> yup, Monday evening your time? 19:47:35 <da> that's fine 19:47:48 <da> thanks for the help and have a great day 19:48:08 <vlad> no problem, have a great weekend, bye 19:58:40 <da> vlad quit (timeout) 20:17:00 <vlad> da quit (timeout) 20:24:21 <Kalhaan> vlad quit (timeout) 20:43:11 <Kalhaan> vlad quit (timeout) 20:54:20 <Kalhaan> vlad quit (timeout) 21:34:09 <Kalhaan> vlad quit (timeout) 23:18:44 <Kalhaan> vlad quit (timeout) _______________________________________________ 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/

