IRC Chat : 2011-09-05 - OpenMRS

00:08:06 *** matt___ has quit IRC
00:53:46 *** r-friedman has quit IRC
01:24:30 *** robbyoconnor has quit IRC
01:24:58 *** robbyoconnor has joined #openmrs
01:24:58 *** ChanServ sets mode: +v robbyoconnor
02:35:41 *** deadpool has joined #openmrs
02:54:08 *** upul` has joined #openmrs
02:54:08 *** ChanServ sets mode: +v upul`
04:11:43 *** chughgaurav has joined #openmrs
04:22:14 *** surangak has joined #openmrs
04:45:58 *** chughgaurav has quit IRC
06:56:41 *** dkayiwa has joined #openmrs
07:11:01 <surangak> dkayiwa, good morning Daniel :-)
07:11:09 <dkayiwa> good morning surangak
07:11:10 <dkayiwa> :)
07:11:10 *** rafa has joined #openmrs
07:11:10 *** ChanServ sets mode: +v rafa
07:11:26 <surangak> only the three of us today, i think
07:11:31 <dkayiwa> lollllllllll
07:11:37 <surangak> r u guys celebrating labour day ?
07:11:39 <dkayiwa> including rafa ?
07:11:47 <dkayiwa> yes for the US
07:11:55 <surangak> dkayiwa, yaa, I just saw him sign in :P
07:12:02 <dkayiwa> :)
07:12:08 <rafa> morning guys
07:12:24 <surangak> good morning rafa
07:12:28 <surangak> will u guys be working on sync module today ?
07:12:57 <dkayiwa> morning rafa
07:13:02 <dkayiwa> yes surangak
07:13:08 <dkayiwa> wanna join us? :)
07:16:21 <surangak> dkayiwa, I think i'll be working on it
07:16:27 <surangak> dkayiwa, just looking at the docs
07:16:38 <dkayiwa> oh that will be great!!! :D
07:16:46 <surangak> this is my first time working with a module, i've always been a 'trunk' kind of guy :D
07:16:48 <dkayiwa> surangak: am as new as you to the sync module
07:16:53 <dkayiwa> lolllll
07:17:00 <dkayiwa> from big to small :)
07:17:12 <surangak> dkayiwa, i think theres a kick off meeting right ?
07:17:35 <dkayiwa> not sure
07:17:45 <dkayiwa> being a public holiday for US
07:18:41 <surangak> dkayiwa, oh i see, our Sprint lead wont be here :)
07:19:30 <dkayiwa> yes :(
07:21:37 <surangak> is rafa also new to the sprint module ?
07:23:02 <dkayiwa> am not very sure. he could be a sync guru :)
07:23:29 <surangak> if hes not, we may look like the three blind mice :)
07:23:43 <dkayiwa> lollllllllll
07:24:24 <dkayiwa> i can see this is the sprint with the biggest number of participants
07:24:41 <dkayiwa> so am sure there others there to look on for :)
07:25:28 <surangak> :-)
08:02:29 *** bryq has joined #openmrs
08:02:29 *** ChanServ sets mode: +v bryq
08:29:06 *** sunbiz has joined #openmrs
08:29:06 *** ChanServ sets mode: +v sunbiz
08:50:29 <dkayiwa> hi rafa
08:50:42 <dkayiwa> rafa: do all your sync unit tests pass?
08:52:56 <sunbiz> hey guys... does anybody know how to add a Criteria of addOrder with a calculated field??
08:54:09 <dkayiwa> never tried that
08:54:23 <surangak> dkayiwa, two tests r not passing, right ?
08:54:49 <dkayiwa> surangak: yes
08:54:57 <surangak> i checked out from http://svn.openmrs.org/openmrs-modules/sync/trunk
08:55:01 <OpenMRSBot> <http://ln-s.net/99go> (at svn.openmrs.org)
08:55:08 <surangak> im gonna @ignore them for now :P
08:57:23 <dkayiwa> me too :)
08:58:57 *** sunbiz has quit IRC
09:02:34 *** sunbiz has joined #openmrs
09:02:34 *** ChanServ sets mode: +v sunbiz
09:17:22 *** dkayiwa has quit IRC
10:01:19 *** sunbiz has quit IRC
10:17:08 *** sunbiz has joined #openmrs
10:17:08 *** ChanServ sets mode: +v sunbiz
10:55:53 *** dkayiwa has joined #openmrs
11:07:08 <dkayiwa> hi rafa
11:07:19 <rafa> hi
11:07:40 <dkayiwa> rafa: have you yet jumped onto any sync ticket? :)
11:07:50 <rafa> dkayiwa: yes
11:07:56 <dkayiwa> ok
11:08:03 <dkayiwa> how is it going rafa ?
11:08:26 <rafa> dkayiwa: hmmm I'm completely new to sync :)
11:08:38 <dkayiwa> hahaha rafa me too :)
11:09:30 <rafa> dkayiwa: The codebase looks good though, there's plenty of tests, I feel safe ;)
11:09:50 <dkayiwa> hahahahaha rafa thats so cool :D
11:11:38 <rafa> dkayiwa: It'd be perfect if only I managed to setup jrebel to work with sync
11:11:50 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (providers): TRUNK-2269 UI for provider attribute <http://feedproxy.google.com/~r/OMRStrunk/~3/oNBVOldBhR8/OpenMRS>
11:11:50 <dkayiwa> rafa: oh i see
11:12:11 <dkayiwa> rafa: what will jrebel offer me?
11:12:21 <dkayiwa> not read much about it
11:12:42 <rafa> dkayiwa: in theory you'd not need to build and upload the module everytime you change something
11:12:51 <dkayiwa> oh i see
11:13:03 <rafa> dkayiwa: it should hot swap classes
11:13:13 <dkayiwa> oh that would be so cool
11:13:41 <rafa> dkayiwa: I'll let you know if I figure out something, but I don't want to loose too much time on that either
11:13:44 <dkayiwa> rafa: without jrebel, cant you do the same in debug mode?
11:13:48 <dkayiwa> ok
11:14:15 <rafa> dkayiwa: For me the debug hot replacement fails most of the time
11:14:22 <dkayiwa> ok
11:16:00 <rafa> dkayiwa: do you test sync on openmrs 1.9.x or older?
11:16:15 <dkayiwa> just compiled
11:16:29 <dkayiwa> rafa: planning to test on trunk
11:17:09 <rafa> dkayiwa: we need to setup at least two servers for proper testing I guess
11:17:30 <dkayiwa> rafa: oh i see!!! was trying to be lazy :)
11:17:59 <rafa> dkayiwa: haha it's hard to test synchronization on one ;)
11:18:12 <rafa> dkayiwa: you're my master if you can do that :D
11:18:20 <dkayiwa> rafa: hahahaha :)
11:18:48 <dkayiwa> rafa: was planning to start with tickets that hopefully do not require so
11:18:52 <dkayiwa> :)
11:21:05 <rafa> dkayiwa: it's not that bad idea :D
11:21:38 <dkayiwa> :)
11:24:57 <dkayiwa> rafa: am going to setup the trunk as the father and a standalone instance as child :)
11:29:33 <rafa> dkayiwa: That's a safe approach. I was thinking about running two apps on one Tomcat to save some RAM, but sync might not like it.
11:29:55 <rafa> dkayiwa: I'll go with your approach too.
11:35:45 <dkayiwa> ok
11:36:56 *** r-friedman has joined #openmrs
11:37:34 <r-friedman> !seen dkayiwa
11:37:34 <OpenMRSBot> r-friedman: dkayiwa was last seen in #openmrs 1 minute and 49 seconds ago: <dkayiwa> ok
11:37:46 <r-friedman> !seen sunbiz
11:37:46 <OpenMRSBot> r-friedman: sunbiz was last seen in #openmrs 2 hours, 44 minutes, and 50 seconds ago: <sunbiz> hey guys... does anybody know how to add a Criteria of addOrder with a calculated field??
11:38:20 <dkayiwa> !seen r-friedman
11:38:20 <OpenMRSBot> dkayiwa: r-friedman was last seen in #openmrs 34 seconds ago: <r-friedman> !seen sunbiz
11:38:34 <r-friedman> dkayiwa: hi daniel
11:38:43 <dkayiwa> r-friedman: hi :)
11:38:52 <r-friedman> what irc client are you using?
11:39:20 <dkayiwa> r-friedman Colloquy
11:39:48 <r-friedman> i tried using irc.openmrs.org and got "server failure sending Captcha"
11:39:58 <r-friedman> never seen that before
11:39:58 <dkayiwa> oh
11:40:08 <dkayiwa> never seen that too
11:40:20 <r-friedman> seems like we should tell somebody
11:40:27 <dkayiwa> sure
11:40:45 <r-friedman> but nobody's working today in US
11:40:58 <dkayiwa> yup
11:41:07 <r-friedman> ideas?
11:41:14 *** upul` has quit IRC
11:41:19 <dkayiwa> none
11:41:53 <r-friedman> maybe i should e-mail mike downey?
11:42:02 <dkayiwa> yes
11:42:02 <surangak> dkayiwa, rafa im also looking at tickets that dont need two servers too :D
11:42:13 <surangak> we're all being lazy, I guess :-)
11:42:18 <dkayiwa> lollllllll
11:42:42 <surangak> what would Ben say when he finds out :-)
11:42:57 <r-friedman> he'd say hmmm.....
11:43:45 <dkayiwa> he will look on to see what we do when such tickets are finished :)
11:43:57 <r-friedman> he's definitely a hmmmin' being
11:44:08 <dkayiwa> :D
11:44:28 <dkayiwa> r-friedman: will you also participate in the sprint?
11:44:58 <r-friedman> no, i'm not competent enough in this environment ... after all these years!! but i am getting close
11:45:13 <r-friedman> actually, I have a question
11:45:18 <r-friedman> that relates
11:45:29 <dkayiwa> r-friedman: that is hard to believe. may be you are just being humble :)
11:45:39 <surangak> r-friedman, I used to use irc.openmrs.org too... but it always gets disconnected once every 4-5 minutes
11:45:54 <r-friedman> how do I set up a debug configuration in Eclipse (Helios) with maven plug-in
11:46:19 <r-friedman> i have followed 2 sets of directions but still can't get the debug commands to light up
11:46:45 <dkayiwa> r-friedman: as for me, i just run using eclipse Debug As
11:46:52 <dkayiwa> r-friedman: and thats all
11:47:05 <surangak> u go run -> debug configurations -> remote java application right ?
11:47:12 <dkayiwa> r-friedman: no
11:47:33 <dkayiwa> r-friedman: Maven Build instead
11:48:05 <dkayiwa> r-friedman: run -> Debug Configuratuons -> Maven Build
11:48:34 <dkayiwa> r-friedman: and it then works for both core and modules
11:50:28 <surangak> oh i see, i m used to running debug via the command prompt......
11:50:46 <dkayiwa> surangak: am too lazy for command prompt :)
11:51:35 <dkayiwa> r-friedman: and one other things, for module, you need to have compiled them with debug symbols
11:52:02 <r-friedman> so another clean install?
11:52:30 <dkayiwa> r-friedman: you do not always have to
11:52:47 <r-friedman> but to get the debug symbol table
11:53:07 <dkayiwa> r-friedman: for modules?
11:54:46 <r-friedman> baby steps -- first with trunk
11:54:52 <r-friedman> or at least 1.8 trunk
11:55:13 <dkayiwa> surangak: i select Maven Build instead of remote java application
11:57:23 <r-friedman> ok, i just built with debug output. openmrs all started. logged in.
11:57:55 <dkayiwa> r-friedman: that should be all. just set breakpoints wherever you need and thats all
11:59:32 <dkayiwa> r-friedman: when the breakpoint is hit, you will see the application pause and the debug toolbar will be there for you to move next, step over, etc
12:01:49 <r-friedman> i set a breakpoint at GlobalPropertyPortletController:populateModel 1st active line, changed a property, never stopped
12:02:34 <dkayiwa> r-friedman: most likely it is just not been called
12:02:53 *** dkayiwa has quit IRC
12:05:38 *** dkayiwa has joined #openmrs
12:06:53 *** r4friedman has joined #openmrs
12:07:48 <r-friedman> ok, irc.openmrs.org is back
12:07:57 <dkayiwa> oh good
12:08:02 *** r-friedman has quit IRC
12:08:25 *** r4friedman is now known as r-friedman
12:08:35 <r-friedman> sort of shaky
12:08:42 <dkayiwa> yes i can see
12:10:04 <r-friedman> dkayiwa: so where can i set a breakpoint that should work?
12:10:10 <dkayiwa> r-friedman: you can try something like put a break point in the login servlet and then try logout and login again
12:10:41 <dkayiwa> r-friedman: put in the doPost method of the login servlet
12:13:51 <r-friedman> ok, i did that, nothing happened
12:14:36 <dkayiwa> r-friedman: can you cross check and confirm that you did a Debug As instead of Run As?
12:14:40 <surangak> maybe he has not set the debug parameters properly >
12:14:52 <r-friedman> how do i check that?
12:15:14 <dkayiwa> r-friedman: i think you can just rerun it
12:15:25 <r-friedman> do i need to stop the current instance?
12:15:30 <dkayiwa> yes
12:15:33 <r-friedman> how?
12:16:00 <dkayiwa> r-friedman: on the eclipse console window, do you see a red stop icon?
12:16:23 <dkayiwa> r-friedman: or chose Terminate from the Run menu
12:17:14 <rafa> hi r-friedman
12:17:23 <r-friedman> dkayiwa: no stop sign, no terminate menu item
12:17:26 <r-friedman> hi rafa
12:17:36 <rafa> r-friedman: it is best to open the debug perspective and see the Debug window
12:17:55 <rafa> r-friedman: there should be a jetty process running
12:18:34 <rafa> Actually, your eclipse might have problems matching source code with a running app. You need to go to the debug perspective and in the Debug window click right on your jetty instance and then Edit Source Lookup -> Add -> Workspace.
12:18:49 <r-friedman> how? i never can deal with this perspective crap
12:19:46 <rafa> r-friedman: just find in the top menu Window -> Open perspective -> Other... -> Debug
12:20:34 <r-friedman> where?
12:21:04 <r-friedman> ok got it
12:22:05 <r-friedman> i don't see anything that looks like a jetty instance
12:22:29 <r-friedman> i've got Maven Build openmrs
12:22:34 <rafa> it should be something like org.codehaus.plexus.classworlds.launcher.Launcher at localhost:58204
12:22:36 <r-friedman> under that javaw
12:22:58 <rafa> Maven Build might be it as well.
12:23:46 <rafa> If it's running there should be many Daemon Thread underneath
12:23:53 <r-friedman> nope
12:24:41 <r-friedman> ok, i could right click it and terminate
12:25:13 <rafa> r-friedman: so try again Debug as -> Maven build... -> Goals -> jetty:run from the webapp subproject
12:26:02 <r-friedman> ok, much better, clicked debug icon, got maven plus codehaus plus threads
12:26:26 <rafa> r-friedman: great now try with a breakpoint
12:27:03 <r-friedman> and here we are at a breakpoint in the login servlet
12:27:25 <r-friedman> but breakpointed line is not in view, just have to scroll or should it be right there?
12:28:27 <rafa> r-friedman: the line should be highlighted
12:30:18 <r-friedman> well, we are stepping now!
12:30:44 <r-friedman> tks rafa, dkayiwa
12:30:55 <rafa> r-friedman: you're welcome
12:31:05 <dkayiwa> good that you are rolling now :)
12:31:08 <r-friedman> we'll see if i can do it again :->
12:31:16 <dkayiwa> :D
12:53:20 *** gauravpaliwal has joined #openmrs
12:53:20 *** ChanServ sets mode: +v gauravpaliwal
12:54:42 *** gauravpaliwal has left #openmrs
13:02:36 *** deadpool has joined #openmrs
13:07:52 <deadpool> hey all
13:08:18 <dkayiwa> heya livepool :)
13:11:09 <dkayiwa> rafa have you got this yet?
13:11:10 <dkayiwa> Synchronization is suspended: data transmission to the parent/central server failed too many times. Please contact system administator.
13:11:21 <rafa> dkayiwa: no
13:11:26 <dkayiwa> ok
13:14:04 *** deadpool has quit IRC
13:15:57 <dkayiwa> rafa: have you yet successfully synced any record?
13:16:18 <rafa> dkayiwa: I'm trying to setup right now
13:16:23 <dkayiwa> ok
13:16:24 <rafa> dkayiwa: I'll let you know in a moment
13:16:29 <dkayiwa> ok
13:35:01 *** upul` has joined #openmrs
13:35:01 *** ChanServ sets mode: +v upul`
13:35:28 <rafa> dkayiwa: synchronization works fine for me
13:36:19 <rafa> dkayiwa: did you set up two different dbs with the same initial content for both servers?
13:38:20 <dkayiwa> rafa: yes
13:38:39 <rafa> dkayiwa: What exception do you get?
13:39:13 <dkayiwa> rafa: i just get ERROR - NOT SYNCHRONIZED, WILL RETRY
13:39:36 <rafa> dkayiwa: Did you setup both parent and child in the sync configuration?
13:39:47 <dkayiwa> rafa: yes
13:40:01 <rafa> dkayiwa: What data are you trying to sync?
13:40:10 <rafa> dkayiwa: I just changed patient's name and it worked
13:40:16 <dkayiwa> rafa: obs edit
13:40:22 <rafa> dkayiwa: but maybe not all can be synched
13:40:39 <dkayiwa> rafa: thanks for the tip, let me try the same as you
13:43:37 <rafa> dkayiwa: if you go to history of changes and click on the data that cause problems, you can mark it as Remove as NOT SUPPOSED TO BE SYNC
13:43:46 <rafa> dkayiwa: and then you can try to sync
13:43:55 <dkayiwa> rafa: ok thanks :)
13:44:04 <rafa> dkayiwa: did you test the connection?
13:44:11 *** upul` has quit IRC
13:44:18 <rafa> dkayiwa: on the configure page?
13:44:33 <dkayiwa> ok
13:44:37 <rafa> dkayiwa: that is also worth trying
13:44:43 <dkayiwa> ok
13:45:48 <surangak> dkayiwa, may I ask how u created two similar dbs ? did u take a backup of the openmrs db and then restore it under another name ?
13:47:13 <rafa> surangak: I did it that way
13:47:29 <dkayiwa> surangak: as for me, i just copied the standalone folder, and then renamed the war file for the copy, deleted the folder under tomcat/webapps, and also renamed the runtime properties file. plus also changing the tomcat port and mysql port in the second runtime properties file
13:49:19 <surangak> rafa, dkayiwa thanks, Im hitting some kind of problem, I will be taking a closer look at it :P
13:49:45 <dkayiwa> ok
13:56:09 *** upul` has joined #openmrs
13:56:09 *** ChanServ sets mode: +v upul`
14:05:03 <rafa> dkayiwa: how are things standing now for you? have you resolved your problem?
14:05:34 <dkayiwa> rafa: was distracted a bit here. let me tell you when i try again. thanks so much!!!
14:06:18 <rafa> dkayiwa: okay I'll be back later if you need me
14:06:28 <dkayiwa> ok thanks!!!
14:09:53 *** surangak has quit IRC
14:48:22 *** r-friedman has quit IRC
15:21:55 *** deadpool has joined #openmrs
15:23:13 <deadpool> dkayiwa: do you know how to add orders to regimes tried searching for it online and couldn't find any documentation
15:23:47 <dkayiwa> deadpool: am not very sure
15:25:26 <deadpool> dkayiwa: hmmm.... allrighty then trial and error it is
15:25:40 <dkayiwa> :)
15:43:36 *** gauravpaliwal has joined #openmrs
15:43:36 *** ChanServ sets mode: +v gauravpaliwal
15:57:24 *** upul` has left #openmrs
16:05:12 *** rafa has quit IRC
16:05:29 *** dkayiwa has quit IRC
16:07:41 *** gauravpaliwal has quit IRC
16:17:30 *** dkayiwa has joined #openmrs
16:22:57 *** deadpool has quit IRC
16:36:44 <dkayiwa> hi rafa
16:46:33 *** bwolfe has joined #openmrs
16:46:33 *** ChanServ sets mode: +o bwolfe
16:49:30 <bwolfe> hi dkayiwa, just hopping on my laptop briefly before I bathe the kids...how's the sync sprint going without me?
16:49:42 <bwolfe> looks like rafa didn't show up in irc today... :-/
16:49:45 <dkayiwa> oh i see
16:49:55 <dkayiwa> bwolfe: so far not bad
16:50:00 <dkayiwa> how is the holiday? :)
16:50:22 <bwolfe> good, got tons of errands done around town!
16:50:33 <dkayiwa> oh i see
16:50:38 <bwolfe> it was quite a laborious labor day!
16:50:41 <dkayiwa> must have been lots of fun
16:50:44 <dkayiwa> lolllllllll
16:50:51 <dkayiwa> no fun? :)
16:53:44 *** dkayiwa has quit IRC
17:18:00 *** sunbiz has left #openmrs
17:18:48 *** dkayiwa has joined #openmrs
17:33:03 *** bwolfe has quit IRC
17:55:35 *** bwolfe has joined #openmrs
17:55:35 *** ChanServ sets mode: +o bwolfe
18:12:45 *** dkayiwa has quit IRC
18:18:32 *** bwolfe has quit IRC
18:19:01 *** Suranga has joined #openmrs
18:20:08 *** dkayiwa has joined #openmrs
18:22:51 *** chughgaurav has joined #openmrs
18:24:49 *** chughgaurav has quit IRC
18:26:24 *** dkayiwa has quit IRC
18:28:17 *** bryq1 has joined #openmrs
18:30:36 *** bryq has quit IRC
18:44:15 *** bryq1 has quit IRC
19:09:17 *** chughgaurav has joined #openmrs
19:13:59 *** Suranga has quit IRC
19:33:08 *** dkayiwa has joined #openmrs
20:28:29 *** bryq has joined #openmrs
20:28:29 *** ChanServ sets mode: +v bryq
20:28:50 *** bryq has left #openmrs
20:31:17 *** rafa has joined #openmrs
20:31:17 *** ChanServ sets mode: +v rafa
21:09:44 *** dkayiwa_ has joined #openmrs
21:10:54 *** dkayiwa has quit IRC
21:10:54 *** dkayiwa_ is now known as dkayiwa
22:09:32 *** chughgaurav has quit IRC
22:12:26 *** dkayiwa has quit IRC
22:31:13 *** rafa has quit IRC