Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

IRC Logs

18. 07 2008

2008 7
Mo Tu We Th Fr Sa So
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
[00:17:50] *** njero has quit IRC
[01:06:22] *** TorLye has joined #openmrs
[01:41:14] *** bmckown has joined #openmrs
[01:41:14] *** ChanServ sets mode: +o bmckown
[01:43:37] *** james_regen has joined #openmrs
[01:43:37] *** ChanServ sets mode: +v james_regen
[02:04:05] *** njero has joined #openmrs
[02:04:05] *** ChanServ sets mode: +v njero
[02:22:16] *** jbrown has joined #openmrs
[02:24:09] *** njero has quit IRC
[02:24:24] *** njero has joined #openmrs
[02:24:24] *** ChanServ sets mode: +v njero
[02:27:09] *** james_regen has quit IRC
[02:41:06] *** james_regen has joined #openmrs
[02:41:06] *** ChanServ sets mode: +v james_regen
[03:14:47] *** sprasanna has joined #openmrs
[03:15:14] <sprasanna> bmckown: Hi Brian, Good morning..
[03:15:14] *** shadowdoc has joined #openmrs
[03:15:36] <bmckown> Hi, sprasanna
[03:16:04] <bmckown> good evening
[03:16:21] <bmckown> 6:45 there?
[03:16:24] <sprasanna> bmckown: where you on the dev call yesterday? I really liked the suggestion like entering multiple texts and i am working on it
[03:16:40] <sprasanna> bmckown: ha u checked in some clock i guess.
[03:16:42] <bmckown> yes I was there. I'm generally quiet.
[03:16:58] <bmckown> I have your time zone listed in my ubuntu clock
[03:17:23] <bmckown> yes, burke gave very good feedback as well as paul.
[03:17:26] <sprasanna> oh its great to hear you use ubuntu.
[03:17:34] <bmckown> you too?
[03:17:56] <sprasanna> but today its really good to see someone in the channel especially on friday
[03:18:12] <bmckown> ben is on vacation today
[03:18:28] <sprasanna> yeah i have but i couldnt able to deploy openmrs in it... i tried a lot
[03:18:49] <sprasanna> yeah someone said yesterday abt ben's vacation.
[03:18:49] <bmckown> I am supposed to be in the office, but had to get up at 4:00 a.m. to troubleshoot AMRS in Kenya (openmrs).
[03:19:14] <bmckown> couldn't deploy openmrs in ubuntu?
[03:19:36] <sprasanna> oh thats cool... but daily i goto bed at 1 and get up at 5.30...
[03:19:46] <sprasanna> yeah couldnt deploy in ubuntu
[03:20:00] <sprasanna> i had a very big error thrown
[03:20:16] <bmckown> what error?
[03:20:43] <sprasanna> to see that i have to restart my computer :)
[03:20:54] <bmckown> that's strange.
[03:21:02] <sprasanna> Brian are you a doctor?
[03:21:09] <bmckown> :-)
[03:21:11] <bmckown> no
[03:21:20] <sprasanna> because right now im working in windows
[03:21:20] <bmckown> guess you haven't seen my user page?
[03:21:31] <sprasanna> heard you are doctor some time back
[03:21:50] <bmckown> must have been another brian. i'm a BS Computer Science
[03:22:00] <sprasanna> i think i have seen... you also have a photo of your family right
[03:22:13] <bmckown> lowly BS degree among rocket scientists
[03:22:23] <bmckown> yea
[03:22:31] <sprasanna> oh somany brians are working with openmrs
[03:22:53] <bmckown> other brians?
[03:23:11] <sprasanna> you said it must have been other brian
[03:23:23] <bmckown> there is only one sri prasanna though. :-)
[03:23:31] <sprasanna> lol
[03:23:41] <bmckown> well, it was hypothetical about 'other' brian
[03:24:02] <sprasanna> but burke and paul are doctors right
[03:24:07] <bmckown> yes
[03:24:26] <sprasanna> but in india its very hard to see doctors who can code...
[03:24:46] <bmckown> same in usa i think. all of them are at regenstrief.
[03:24:57] <sprasanna> only before 3 to 4 years doctors started working with computers only for internet
[03:25:21] <sprasanna> but really seeing a doctor come developer is amazing
[03:25:35] <bmckown> yea.
[03:25:42] * sprasanna thinks y brian is not a doctor
[03:25:57] <bmckown> blood makes me faint
[03:26:19] * sprasanna thinks if brian does some phd then he can Dr. in his name so he will become a doctor :P
[03:26:52] <bmckown> that's funny. nah... i would like to get a masters in CS, though.
[03:27:04] <sprasanna> even my sister said that before joining medicine now she's ok with everything
[03:27:17] <bmckown> yea. it's a good field.
[03:27:33] <sprasanna> thats really great... masters...
[03:28:05] <sprasanna> i think im the youngest one among openmrs devs... :)
[03:28:15] <bmckown> really? how young?
[03:28:31] <sprasanna> 22.. hope im young
[03:28:35] <bmckown> man
[03:28:42] <bmckown> you might be.
[03:28:50] <bmckown> the youngest
[03:28:59] <sprasanna> hahaha...
[03:29:05] <bmckown> i'm closer to the other end.
[03:29:34] <sprasanna> but you look very young in that photo
[03:29:45] <bmckown> the gimp
[03:29:54] <bmckown> no, just kidding. that's really me.
[03:30:09] *** njero has quit IRC
[03:30:31] <sprasanna> :)
[03:30:52] <sprasanna> have you been to india?
[03:30:56] <bmckown> not yet.
[03:31:02] <bmckown> i would like to go.
[03:31:45] <sprasanna> but i like to come to US... the only place i would like to go is grand canyon
[03:32:31] <bmckown> i was there twice when i was a kid.
[03:32:40] <bmckown> beautiful place
[03:32:46] <sprasanna> oh thats great
[03:32:50] * sprasanna sighs
[03:33:23] <bmckown> i'm sure india has more beautiful places
[03:34:52] <sprasanna> it has lots even i havent gone to many of them... I hardly go out for touring...
[03:36:03] *** sprasanna is now known as cancerb0y
[03:36:05] <bmckown> once you get into programming... it's all over. no more touring.
[03:36:28] <cancerb0y> yeah thats correct...
[03:36:32] <cancerb0y> 100%
[03:38:34] <bmckown> btw, did you commit the code you wrote to override the address jsp?
[03:40:56] *** upul has joined #openmrs
[03:41:53] <Phantal> docpaul or jmiranda around?
[03:43:09] *** jmiranda has joined #openmrs
[03:43:09] *** ChanServ sets mode: +o jmiranda
[03:43:17] * Phantal pokes jmiranda
[03:43:37] <jmiranda> hey Phantal
[03:44:07] <Phantal> I'm going to make available to you part of my dwh db schema, and part of my mondrian schema
[03:44:09] <jmiranda> how was the rest of the training session from yesterday?
[03:44:25] <jmiranda> ok
[03:44:26] <Phantal> About as entertaining as reports training can get :)
[03:44:38] <jmiranda> were you the trainer or trainee?
[03:44:52] <bmckown> sorry...
[03:44:53] <Phantal> Purpose being, you guys need to be able to see exactly what it is a warehouse schema looks like
[03:44:58] <Phantal> trainee
[03:45:21] <jmiranda> yeah, i think that would be very helpful
[03:45:47] <Phantal> additionally, if you have time today I wanted to help you get the 'foodmart' database running on www.justinmiranda.com
[03:46:01] <Phantal> It's mostly straightforward to do
[03:46:28] <Phantal> and it'll give you a fully functional warehouse architecture to play with
[03:46:54] <jmiranda> ok
[03:47:26] <jmiranda> is that a pentaho sample dwh schema?
[03:47:56] <Phantal> well, sort of
[03:48:28] <Phantal> I don't know where it originally came from, but I know microsoft had it before pentaho
[03:48:41] <Phantal> I believe it's just a sample 'freeware' database, and was modified to fit mondrian
[03:50:01] <jmiranda> ok
[03:51:30] *** sprasanna has joined #openmrs
[03:51:32] *** sprasanna has left #openmrs
[03:51:38] *** sprasanna has joined #openmrs
[03:51:51] <sprasanna> bmckown: sorry got disconnected....
[03:52:04] <bmckown> that's okay.
[03:52:19] <sprasanna> bmckown: i havent committed my code yet... i still getting an error...
[03:52:53] <bmckown> oh, okay. i had updated to the latest committed code before the call yesterday, but didn't see that part.
[03:53:00] <sprasanna> i think i mentioned it yesterday.... whenever there's a validation error the newPatient form reloads na that time my addressLayout.jsp is missing
[03:53:38] <bmckown> hmm
[03:54:40] <sprasanna> yeah i dint commit... but i have posted what i have in my module page http://openmrs.org/wiki/Address_hierarchy_support_module#Overriding_the_default_addressLayout.jsp
[03:54:59] <OpenMRSBot> <http://ln-s.net/23BW> (at openmrs.org)
[03:55:08] <sprasanna> i tried a lot but couldnt figure out the reason
[03:57:25] <bmckown> you added the order in moduleApplicationContext.xml right?
[03:57:27] <jmiranda> Phantal, can you point me in the right direction for the 'foodmart' dwh?
[03:57:37] <sprasanna> yeah
[03:57:55] <bmckown> order=2 ?
[03:58:18] <sprasanna> wait... what's order?
[03:58:20] <bmckown> <property name="order"><value>2</value></property>
[03:58:33] <bmckown> look at formentry module for an example
[03:58:41] <sprasanna> oh one sec
[03:59:22] *** cancerb0y has quit IRC
[04:01:35] <sprasanna> y svn and trac are very slow?
[04:02:09] <sprasanna> the server is really really slow...
[04:02:13] <bmckown> again.. yea..hmm.
[04:02:45] *** burke_away has joined #openmrs
[04:02:45] *** ChanServ sets mode: +o burke_away
[04:02:52] *** burke_away is now known as burke
[04:02:56] <burke> r0bby: ping
[04:03:30] <sprasanna> ha burke in the channel after a very long time... r0bby would be happy now
[04:03:58] <bmckown> hehe
[04:04:02] <burke> yes, when I ran colloquy, I think I actually saw some dust fly out of my computer screen
[04:04:17] <r0bby> pong
[04:04:21] <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #861 (defect closed): snycing concepts still doesnt order concept answers right <http://dev.openmrs.org/ticket/861#comment:1>
[04:04:44] <r0bby> hold on let me opne the port
[04:04:48] <burke> k
[04:04:56] <r0bby> also
[04:05:00] <r0bby> we have a problem
[04:05:06] <burke> houston?
[04:05:07] <sprasanna> bmckown: its still loading :(
[04:05:11] <bmckown> i cannot ssh to the server
[04:05:31] <bmckown> atomicturtle, have any idea why server could be slow?
[04:05:40] <bmckown> :-)
[04:05:43] <r0bby> concept answer selector wants a concept object :-S i haven't the slightest flue how to maintain it
[04:05:46] <bmckown> vm1
[04:06:11] <bmckown> sprasanna, we may just have to be patient ans wait a few minutes.
[04:06:14] <Phantal> jmiranda, sorry, wasn't watching this screen
[04:06:18] <burke> yeah, dev is a turd now
[04:06:26] <Phantal> i'm in the last training session online (on a break at the moment)
[04:06:29] <Phantal> one sec and I'll link you
[04:06:32] <sprasanna> bmckown: no problem at all
[04:06:37] <r0bby> ugh
[04:06:41] <Phantal> jmiranda, what OS?
[04:06:43] <jmiranda> Phantal, no rush
[04:06:43] <burke> r0bby: i can help you with that
[04:07:08] <jmiranda> ubuntu
[04:07:26] <r0bby> that's the only place i need to maintain a reference
[04:07:29] *** atomicturtle has quit IRC
[04:07:34] <r0bby> until we implement the other selectors
[04:07:49] <r0bby> http://mybawx.org:83/openmrs
[04:07:58] <r0bby> yoiu know the login credentials
[04:08:38] <r0bby> all of the work currently has been in processing the model and such
[04:08:53] <r0bby> 1) let me explain the AbstractGroovyFormModel
[04:09:04] <burke> cule. creating a groovy form...
[04:09:10] <Phantal> jmiranda, http://wiki.pentaho.com/display/PentahoDoc/Beginners+Guide+To+Mondrian+And+MDX
[04:09:11] <OpenMRSBot> <http://ln-s.net/23fn> (at wiki.pentaho.com)
[04:09:14] <r0bby> not quite there yet
[04:09:28] <r0bby> but almost
[04:09:33] <burke> k
[04:09:37] <r0bby> I have one more step to complete
[04:09:41] <jmiranda> Phantal, thanks
[04:09:45] <Phantal> jmiranda, That's one of the two things you need, one sec for the other
[04:09:49] <burke> AbstractGroovyFormModel takes some of the noise away from the user?
[04:09:56] <r0bby> and a lil bit more work (validating the template/controller and such.
[04:10:10] <r0bby> it also adds some metaclass magic
[04:10:20] *** sprasanna has left #openmrs
[04:10:28] <Phantal> jmiranda, http://mondrian.pentaho.org/documentation/installation.php
[04:10:29] <OpenMRSBot> <http://ln-s.net/23fo> (at mondrian.pentaho.org)
[04:10:40] <Phantal> jmiranda, start with that 2nd link.
[04:10:41] <r0bby> as well as adds some fields (most of the services
[04:10:50] <burke> yeah. we might end up taking the class def out of the textarea and just adding it in the background. but that's a 2nd order concern. cule.
[04:10:57] <Phantal> First, download mondrian
[04:10:59] <burke> so, can I make a form?
[04:11:06] <Phantal> Then, follow along in section 2 of that installation guide
[04:11:15] <r0bby> you can see what the workflow is as io have it
[04:11:26] <r0bby> 1) define some properties inb the model
[04:11:30] <r0bby> well wait
[04:11:31] <r0bby> dont
[04:11:35] <burke> what are the supported properties?
[04:11:39] <r0bby> click in it, then immediately press tab
[04:11:44] <r0bby> everything
[04:11:51] <r0bby> I pulled in the entire classpath
[04:11:55] <jmiranda> Phantal, we have an older version of pentaho running on that server
[04:11:59] <jmiranda> 1.2.1 or something like that
[04:12:04] <burke> what do we have widgets for?
[04:12:10] <jmiranda> i think we need to start with an upgrade to 1.6, no?
[04:12:20] <Phantal> jmiranda, ya, they're up to 1.7 now, and 2.0 should be out this year
[04:12:25] <Phantal> but mondrian is separate
[04:12:28] <r0bby> but Concept, Patient, String, (all subclasses of Number), Boolean/boolean,i think thats it
[04:12:34] <r0bby> brb
[04:12:41] <Phantal> Pentaho is the reporting/dashboard interface, mondrian is the analysis/olap engine
[04:12:52] <Phantal> All I'm having you setup is mondrian, for now
[04:12:59] <r0bby> so okay
[04:13:15] <r0bby> all the work happens using the blur event
[04:13:37] <r0bby> tab into the model
[04:13:45] <r0bby> dont define any fields
[04:13:48] <r0bby> now tab out
[04:14:03] <r0bby> should see "Please define some properties"
[04:14:09] <Phantal> jmiranda, as you go through section 2 of that isntallation guide, note that you don't just 'source' the .sql file
[04:14:15] <r0bby> in the area directly below the groovyModel
[04:14:42] <Phantal> jmiranda, rather, there's a string of text entered at a shell prompt to call the 'mondrian foodmart loader' utility, a class within mondrian.jar
[04:14:55] <r0bby> next: Define some properties String note; Patient patiet
[04:14:57] <Phantal> it's a pain in the butt ...
[04:15:00] <Phantal> but it needs to be done
[04:15:05] <Phantal> (not hard to do, just annoying)
[04:15:28] <r0bby> you'll see (pretty much what i told you in my msg to the list (no surprises)
[04:15:40] <r0bby> but i gradually expose each step as we go along
[04:15:43] <Phantal> jmiranda, you know, i just realized, if the 'openmrs' login has create database privileges, I could just load this for you later today
[04:15:59] <r0bby> let me commit what I have
[04:16:16] <jmiranda> Phantal, i'll check on that
[04:16:22] <jmiranda> that would be a big help
[04:16:27] <burke> just a sec
[04:16:51] <r0bby> look at the controller's validate/onSubmit -- notice something in the param (hint: look at your model class name)
[04:17:02] <r0bby> here's the method that did it
[04:17:05] <r0bby> static def getClassName(clazz) {
[04:17:05] <r0bby> clazz.substring(clazz.indexOf(" "),clazz.indexOf("extends")).trim()
[04:17:05] <r0bby> }
[04:17:29] <Phantal> jmiranda, another thing i was going to bring up, last night I was trying to improve my ETL performance and pulled it off using ssh tunneling to tunnel mysql traffic over ssh, then used compression in ssh
[04:17:47] <Phantal> improved my throughput from 3.3mB/s to about 13-14mB/s
[04:17:54] <jmiranda> wow
[04:17:58] <Phantal> (obviously that's local traffic, not internet traffic)
[04:18:41] <Phantal> You may want to spend some time learning how to setup an ssh login that only has appropriate permissions to access mysql, and no other permissions
[04:18:56] <Phantal> We don't need it right now, but it'd be handy for people in the field if they have a lot of data
[04:19:05] <r0bby> burke: i'm well aware what I have right now is probably clumsy but I've found that users sometimes tab to change fields
[04:19:14] <r0bby> so why not use that to my advantage
[04:19:22] <r0bby> and plus i get to use jquery :D
[04:20:16] <r0bby> apologies for not blogging frequently -- i like ti wait til i have some exciting to report
[04:20:19] <burke> sorry r0bby, just found out i've been scheduled for two things at the same time this afternoon, trying to sort it out
[04:20:28] <r0bby> okay
[04:20:40] <r0bby> im gonna get some coffee
[04:21:02] <r0bby> my crap sleep habits are going to inhibit my ability to think
[04:21:44] <r0bby> hrm..
[04:24:02] <burke> ok. sorry about that interruption.
[04:25:30] <burke> it would be nice to clean up the exception message to make it a little more readable for users would be a nice enhancement for later...
[04:25:54] <r0bby> line numbers are off
[04:26:12] <r0bby> as well since i inject imports into a StringBuilder
[04:26:26] <r0bby> then AFTER imports i add the class definition
[04:27:05] <burke> the javascript alert is just showing the controller code for debugging, right?
[04:28:01] *** nribeka has joined #openmrs
[04:28:43] <r0bby> burke: yes
[04:28:58] <r0bby> I was having some ajax errors due to the "&&" operator
[04:29:29] <r0bby> so i wrapped it in a CDATA block and works like a charm :)
[04:29:56] <r0bby> I found it difficult to pull in the classpath w/ DWR -- so i rolled my own using a seperate servlet
[04:30:27] <burke> you mean the ajax call is going to your servlet?
[04:30:32] <r0bby> correct
[04:30:46] <r0bby> I couldn't seperate logic :-/
[04:30:57] <r0bby> I seperated as much as I could
[04:31:34] <burke> it's nice. i think we'll need to introduce a button or something to trigger the interpretation. e.g., if I edit the template and then change the model, my template edits are lost
[04:31:53] <r0bby> can't have it post.
[04:32:04] <r0bby> the button actually posts the freakin thing :(
[04:32:50] <burke> i'm just saying that the user triggers the update instead of simply leaving the model field (onblur)
[04:32:54] <r0bby> yes -- this isn't ideal :/ -- but once the form is generated and saved -- your edits won't screw up the template controller, etc
[04:33:02] <r0bby> yeh
[04:33:04] <burke> ok.
[04:33:16] <burke> am I supposed to see a save button?
[04:33:26] <r0bby> $("#groovyModel").bind("blur",function() { ... } });
[04:33:36] <r0bby> $("#groovyModel").bind("blur",function() { ... });
[04:33:38] <r0bby> :DDDD
[04:33:42] <burke> hehe
[04:33:46] <r0bby> jquery
[04:34:19] <r0bby> also when i initially load the omod -- therer are js errors
[04:34:46] <r0bby> BUT when i run the deploy-web task -- it works
[04:35:14] <burke> have you committed your code?
[04:36:16] *** njero has joined #openmrs
[04:36:16] *** ChanServ sets mode: +v njero
[04:37:45] <r0bby> going to now
[04:37:48] <r0bby> hold
[04:39:10] <burke> hehe. I can even change the form's class name. nice!
[04:40:05] *** atomicturtle has joined #openmrs
[04:40:37] <r0bby> :-)
[04:41:07] <r0bby> I don't think i can take that job i interviewed for -- i have parents that worry about my hypopara :<
[04:41:26] <r0bby> oh this design w3as half-baked
[04:42:03] <r0bby> i started the patient dash portlet but have been focusing on the form creation page
[04:42:33] <burke> bmckown: as ben pointed out, it looks like apache on vm1 has a memory leak that grows until it restarts and (like now) after it dies & comes back, everything is snappy again
[04:42:38] <r0bby> DWRGroovyFormsService.getController() isn't used.
[04:42:57] <burke> r0bby: committed?
[04:42:58] <bmckown> yea. i found apache off
[04:43:20] <bmckown> and logged into plesk and started it several minutes ago
[04:43:24] <r0bby> si
[04:43:33] <r0bby> first cup o' coffee of the day
[04:43:44] <burke> i'm only on my 2nd diet coke
[04:44:22] *** r0bby|idea has joined #openmrs
[04:44:35] <r0bby|idea> so I can get help whol;e I cpode
[04:44:56] <r0bby|idea> I have an IRC client plugin in IDEA :)
[04:45:04] <burke> unless, of course, you count a 32-oz cup as 2.67 ... then it's 3.67 diet cokes.
[04:45:20] <r0bby> 2.67?
[04:45:28] <burke> r0bby|idea: welcome. let me introduce you to r0bby :)
[04:45:40] <burke> I didn't want to keep typing the 6 infinitely
[04:45:52] <r0bby> pffft
[04:46:10] * r0bby doesn't drink soda esp. colas
[04:46:16] <r0bby> the phospherus
[04:46:37] <r0bby> I stopped this one day when my calcium labs came back in the 6's
[04:46:59] <r0bby> I gave my endo's nurse practitioner a scare
[04:48:31] *** [1]shadowdoc has joined #openmrs
[04:50:19] *** upul has quit IRC
[04:50:58] <burke> r0bby: downloading code ... gonna peak around a bit ...
[04:51:11] * burke wishes he could get groovy tests running in eclipse
[04:51:41] <r0bby> oh im not testing generation
[04:51:54] <r0bby> they're hell to test
[04:51:55] * burke wishes he could get ANY groovy running in eclipse
[04:52:33] <bmckown> netbeans
[04:52:50] * r0bby doesn;t use eclipse b/c groovy support blows \\
[04:52:54] <burke> actually, intellij seems to be in the lead
[04:53:00] <burke> (w/ groovy support)
[04:53:11] <burke> i tried netbeans
[04:53:39] <burke> r0bby: it looks like I'm missing a class: MockGroovyForms
[04:53:40] <Phantal> the company i work for is tough to get licenses through
[04:53:45] <r0bby> Jetbrains developed it
[04:53:49] <r0bby> just commited it
[04:53:58] <Phantal> You have to request it, get approval, then they send the request to corporate to get it approved, and 2-3 weeks later you might have a license
[04:54:01] <r0bby> that was used to generate a few mock form objects
[04:54:07] <Phantal> so, getting IntelliJ just sounds painfully annoying
[04:54:27] * r0bby whistles innocently
[04:54:58] <Phantal> There's a developer on my team that's been waiting more than 2 months for a Flash Builder license
[04:55:03] <burke> hrm. it looks like eclipse isn't recognizing the groovy class
[04:55:19] <r0bby> I aint switching to java
[04:55:24] <r0bby> I love coding in groovy
[04:55:36] <r0bby> Gstings, optional returns, optional typing
[04:55:37] <r0bby> :D
[04:55:43] <r0bby> GStrings*
[04:55:54] <r0bby> let's not forget the whole
[04:55:58] <burke> part of the beauty of groovy is that there isn't any switching.
[04:56:04] <r0bby> no there isn't
[04:56:09] <r0bby> it's just painful to go back
[04:56:23] <r0bby> and w/ java you *HAVE TO* generate getters/setters
[04:56:29] <r0bby> w/ groovy you do not
[04:56:33] <burke> and those @#$)@ semicolons!
[04:57:02] <r0bby> am I screwing IE users over by not usiong semi-colons ion my JS?
[04:57:06] <r0bby> if so, good.
[04:57:09] <burke> r0bby: I've seen the app for open source usage of intellij, was it fairly smooth to get a license?
[04:57:22] * r0bby wouldn't know O:-)
[04:57:29] <burke> you should use semicolons on your javascript.
[04:57:35] <r0bby> bah
[04:57:54] <burke> r0bby: didn't you get a license from intellij?
[04:58:09] <Phantal> burke, you basically have to provide them with solid evidence you are a regular contributor to an opensource project
[04:59:01] * r0bby whistles innocently
[05:04:01] * r0bby|idea drops a brick
[05:04:12] <burke> argh. how do I add "groovy nature" to my eclipse project?
[05:04:14] * r0bby|idea drops a ton of bricks
[05:04:24] * r0bby|idea pets his intelliJ
[05:04:33] * burke will be filling out an app for an intellij license
[05:04:42] *** [1]shadowdoc has quit IRC
[05:05:03] * burke really doesn't want to live in multiple IDEs
[05:05:13] <r0bby|idea> Just use intelliJ full time
[05:05:21] <r0bby|idea> not sure why you crazies picked eclipse
[05:05:28] <bmckown> plug. http://wiki.netbeans.org/Groovy
[05:05:39] <burke> I need to talk w/ Matt about his eclipse project.
[05:05:43] <r0bby|idea> bmcknown: big deal :P
[05:05:46] <burke> bmckown: i have the groovy plugin for eclipse
[05:05:56] <bmckown> :-)
[05:05:57] *** shadowdoc has quit IRC
[05:05:58] <r0bby|idea> IntelliJ is still better :)
[05:06:22] <r0bby|idea> this client sucks
[05:06:25] <r0bby|idea> no tab completion
[05:07:16] <burke> ah. right-click on the project, of coure: "add groovy nature"
[05:08:48] <r0bby|idea> the tests haven't changed i never commit broken tests
[05:08:52] <burke> that solved the MockGroovyForms issue ... now it sees it
[05:09:30] <burke> but opening up a MockGroovyForms.groovy and trying to do some code insight was apparently a wrong first move. Eclipse is thinking very hard at the moment...and it doesn't want to be bothered.
[05:09:42] <r0bby> hah
[05:09:54] <burke> how do you know if a test is broken? do you have test tests?
[05:10:02] <r0bby> I run them :P
[05:10:06] <burke> hehe
[05:10:23] <burke> arrgh. i might have to kill -9 eclipse.
[05:10:28] <r0bby> generation tests are tricky since I can't guarentee equality
[05:10:42] <r0bby> so much as a single white-space char can throw everything off
[05:11:03] <r0bby> If it works in production guess what it's good enough for me!
[05:11:11] <r0bby> same goes for markup
[05:11:22] <r0bby> it works :>
[05:11:30] <r0bby> groovy is also amazing
[05:11:57] <r0bby> def sb = new StringBuilder(); sb << "Hai" << "\n" << "Bai"; println sb
[05:12:17] <r0bby> << calls .append()
[05:13:01] <burke> operator overloading just makes me giddy
[05:13:17] * burke restarts eclipse and hopes for better days
[05:13:19] <r0bby> closures make me giddy
[05:13:41] * r0bby used them in his controller generation for writing the asserts
[05:13:54] <r0bby> the reason I used the container class will become apparent there :>
[05:14:12] <r0bby> I obsessively planned this thing
[05:15:38] <r0bby> burke: before you go crazy and blow a lid -- yes I do make ajax calls back to back (i found parsing ONE piece of XML was easier.
[05:15:52] <r0bby> also I wanna use Groovy 1.6 :(
[05:15:56] <r0bby> Multiple return types
[05:16:17] <r0bby> def foo() { def x = 3; def y = "hai" [x,y] }
[05:16:22] <burke> you mean 1.6-beta-1
[05:16:26] <r0bby> si.
[05:16:33] <r0bby> too beta for us though
[05:16:41] <r0bby> it has some nice stuff
[05:16:48] <r0bby> mixins which I abused
[05:16:58] <r0bby> 5 + 5 = 0.
[05:17:06] <r0bby> or is it 5 - 5 = 10
[05:17:10] <r0bby> i can't rmemeber
[05:17:16] <burke> you can't return a list in 1.5?
[05:17:27] <r0bby> you can -- but this is multiple return types.
[05:17:44] <r0bby> not sure
[05:17:51] <r0bby> but they added support in 1.6 i think
[05:18:12] <r0bby> i think my mouse batteries are gonna die
[05:19:18] <burke> it looks like jetbrains' website is working just about as well as ours
[05:20:18] <r0bby> shitty?
[05:20:58] <burke> yup
[05:21:39] <burke> class comment in 5 words? boo. (AbstractGroovyFormModel.groovy)
[05:21:42] <burke> :)
[05:23:02] <burke> String.metaClass.concept << { concept.getConceptByName(delegate) } ... SWEET!
[05:23:27] <r0bby|idea> :)
[05:23:59] <r0bby|idea> yup
[05:24:04] <burke> can you reach http://jetbrains.com? I can't.
[05:24:10] <r0bby|idea> Concept c = "WEIGHT IN (KG)".concept()
[05:24:21] <r0bby|idea> can't do what you want
[05:24:50] <r0bby|idea> if the method/closure is no-args them groovy requires parenethesis
[05:25:00] <r0bby|idea> otherwise it tries to resolve it as a property
[05:25:13] <r0bby|idea> although i should implement property missing
[05:25:14] <burke> i think you'll need to throw an exception if a property is called obs, concept, person, patient, user, encounter, cohort, or logic. Either that or we need to rename these bound variables to obsService, conceptService, etc.
[05:25:20] <r0bby|idea> also so that we can do some fun
[05:26:07] <r0bby> i think i hund IDEA
[05:26:15] <r0bby> yeh
[05:26:20] <r0bby> I'll have to intercept method calls
[05:26:26] <r0bby> by overriding invokeMethod
[05:26:41] <r0bby> throw new GroovyFormsYouSuckException("HAHHA FAIL!!!")
[05:27:04] *** shadowdoc has joined #openmrs
[05:27:50] <burke> although you may not like it, we should probably bind the services with fooService variable names, since it will be more natural for peope to use variable names like patient or obs for their properties. And it would make the calls clearer -- e.g. conceptService.getConcept().
[05:28:17] <r0bby> okay i'll m ake that change IDEA decides to load up
[05:28:27] <r0bby> i had to kill it
[05:28:27] <burke> we'll still need to prevent them from overriding any of these special bound variables
[05:28:44] <burke> hehe. working like eclipse, I see. :)
[05:28:48] <r0bby|idea> yeh that's gonna require i intercep[t method calls
[05:29:03] <r0bby> HAHA IDEA is dead and its still working
[05:29:18] *** r0bby|idea has quit IRC
[05:29:48] *** sioraiocht has joined #openmrs
[05:30:09] <r0bby> but yeh -- we're just gonna have to check the variable names when i interrogate and rename it
[05:30:20] <r0bby> cleanest way
[05:30:31] <r0bby> wait no
[05:30:31] <r0bby> that's not
[