Open Source Integrated Library System

Evergreen on IRC

#evergreen Logs for Sunday, March 27th, 2011

< Saturday, March 26th, 2011Raw Log FileMonday, March 28th, 2011 >
#TimeNickMessage
#00:07:12Jbergy has joined #evergreen
#00:19:37vinlyt has joined #evergreen
#00:30:29vinlyt has quit IRC
#00:35:42sgirard_ has joined #evergreen
#00:37:53sgirard has quit IRC
#00:39:56sgirard_ has quit IRC
#01:17:08suho has joined #evergreen
#01:54:26zigo-_- has joined #evergreen
#02:09:21mayanks43 has left #evergreen
#02:22:22mayanks43 has joined #evergreen
#02:37:17lezard has quit IRC
#02:46:40mayanks43 has quit IRC
#03:33:23zigo-_- has quit IRC
#03:37:57zigo-_- has joined #evergreen
#04:02:53zigo-_- has quit IRC
#04:03:20zigo-_- has joined #evergreen
#05:06:47zigo-_- has quit IRC
#05:09:21zigo-_- has joined #evergreen
#05:10:07Jbergy has quit IRC
#05:34:47zigo-_- has quit IRC
#05:37:41suhothayan has joined #evergreen
#05:41:00suho has quit IRC
#05:44:49suhothayan has quit IRC
#06:25:20suho has joined #evergreen
#06:38:24suho has quit IRC
#08:43:43mayanks43 has joined #evergreen
#09:06:39chirag has joined #evergreen
#09:25:10Dyrcona has joined #evergreen
#09:27:02DyrconaHoly cow! My development "server" is sloooowww.....
#09:27:50DyrconaPro tip: don't run all of your Evergreen server processes on a 5-year-old workstation.
#09:34:05jeff hands Dyrcona more ram
#09:34:29Dyrconajeff: Thanks, but it already has all it can take: 2GB.
#09:40:58jeffdrat.
#09:42:03DyrconaHmm. Maybe I should have removed PostgreSQL 8.4 before installing 9.0. My psql is still version 8.4.
#09:52:26chirag has left #evergreen
#10:11:52dinesh__ has joined #evergreen
#10:19:19Dyrcona has quit IRC
#10:23:33Dyrcona has joined #evergreen
#10:30:28lezard has joined #evergreen
#10:31:49dinesh__ has quit IRC
#10:49:53lezardhello
#10:53:00phasefxhowdy
#10:57:11lezardIs there anyone online that i can discuss some of evergreen gsoc projects?
#10:58:46phasefxlezard: I'm here, what's up?
#11:01:57dbs has joined #evergreen
#11:01:57dbs has joined #evergreen
#11:02:54suho has joined #evergreen
#11:09:06lezardcool
#11:09:54lezardphasefx: I'm an ux / interaction designer with a tech and design backround, and your interface project interested me
#11:12:01lezardthere are 2 of them but suppose that the bringing sanity one would be more interesting for a gsoc project and more useful to you guys, could i have a little more info on it ?
#11:12:30phasefxsure
#11:13:58phasefxWe have a database table called config.org_unit_setting_type, which currently has 193 entries
#11:14:57phasefxit has outward facing fields for label and description, which are I18N'ized
#11:16:13phasefxa few datatypes can be associated with these settings: string, boolean, and link (which ties into Evergreen native objects, and widgets for editing them)
#11:17:18phasefxthere's no real grouping mechanism. Half-hearted efforts at consistent naming have been made (for example, prefixing the labels with common identifiers like GUI:, Cataloging:, Admin:, etc.)
#11:17:34lezardLOL
#11:17:46phasefxthe current interface can be found in the staff client program, under Admin -> Local Administration -> Library Settings
#11:17:56phasefxit lists them all, and takes a moment to render
#11:19:13phasefxthere's a mapping table between these setting types and various organizational units (which are defined in a tree-hierarchy). In most cases, the application of these settings makes use of inheritance, such that if a setting is mapped to a higher level org unit, then lower level org units will automatically inherit that setting
#11:20:27phasefxso, that's it in a nutshell
#11:21:43lezardok, ill take a look at the current interface right now, and get back to you with a couple more questions
#11:21:50phasefxcool deal
#11:22:11lezardmaybe we can outline a bit a project and i can fill in the specifics, like what, when and how to do it and we can bounce off ideas ?
#11:23:21phasefxsure. ultimately you need to come up with a proposal, and as long as I'm not doing that for you, I'm game. If I'm not here at times, other folks may be, and there's always the mailing list, which you're welcome to use for the same purpose
#11:23:45lezardCool, what i want is direction, not babysitting lol
#11:23:47dbs pops head up
#11:23:57lezardi trow an idea and you give me some feedback
#11:24:02lezardthrow
#11:24:06dbsAlong with that one interface, the whole Admin menu probably needs some love
#11:24:19phasefxsounds sane
#11:24:57phasefxdbs: true that
#11:25:18phasefxmaybe dynamic alphabetizing (to handle I18N)? :)
#11:25:39phasefx was happy with the Local Admin web page, before it got moved to menus
#11:26:02dbsalphabetizing, logical grouping, searching and finding :)
#11:26:48dbsI'm not sure there's an answer to the question "What is Local Administration vs. Server Administration?" other than "Check both submenus to see if it has what you want"
#11:28:01phasefx"perms for these are usually not given to local administrators"? :)
#11:28:29phasefx begs the question
#11:29:48phasefx misapplies his logical fallacies. one or the other
#11:46:45dbsbtw, phasefx, have you applied to be a mentor yet?
#11:48:35dbs@later tell phasefx Mentor application is at the bottom of http://www.google-melange.com/gsoc/org/google/gsoc2011/evergreen_ils
#11:48:35pinesol`dbs: The operation succeeded.
#11:48:40phasefxhrmmm, I have done nothing along those lines, need to check on that (I had/have it in my head that gmcharlt was handling all paper-work)
#11:50:10dbsdeadline for mentor applications is April 22nd, so it's not a crazy rush
#11:51:55phasefxmore information for the google master database
#12:06:48phasefxyeah, that agreement looks more to be for the mentor organization than the mentor
#12:08:33phasefxoh, I see. They define it as organization or member thereof
#12:11:27dbs modifies the IRC link to be a URI instead of "#evergreen on Freenode", given how melange turned it into a linky
#12:12:18phasefxalright, my request has been submitted
#12:13:20lisppasteDyrcona pasted "Login Failure" at http://paste.lisp.org/display/120933
#12:14:36lisppasteDyrcona annotated #120933 "the exception" at http://paste.lisp.org/display/120933#1
#12:15:38DyrconaSo, why doesn't that pasted code work? I looked at OpenSRF::AppSession line 1055 and that is just checking if the request failed.
#12:16:01DyrconaIf I login from srfsh with the credentials stored in ursa.xml, it works.
#12:17:03DyrconaThe login sub is also practically a copy and paste from another client I wrote and based on dbs' examples.
#12:17:24dbs stays far away from function signatures like login($$$)
#12:17:29phasefxI'm not familiar with $$$
#12:18:18dbsIn theory it says "scalar, scalar, scalar" but in practice it is avoided by everyone
#12:19:53Dyrconachanging the signature doesn't fix it, though. I still get the same exception.
#12:19:55dbss/signatures/prototypes/
#12:21:41Dyrconaopen-ils.auth is running.
#12:23:05phasefxs/md_hex/md5_hex/
#12:24:37dbsweird that Perl didn't complain about that - nice eyes, phasefx
#12:24:50phasefxmy perl did complain
#12:25:04phasefxI ripped out all of the xml config stuff though, hardcoded in admin and demo123
#12:25:47phasefxpassed it a bad workstation, getting a WORKSTATION_NOT_FOUND event that isn't really being handled.. trucking on
#12:26:34phasefxha, I have no workstations yet on that fresh db
#12:27:40phasefxdoesn't seem to like my workstation, whatever I do
#12:28:04phasefxDyrcona: I'm using use Data::Dumper; print Dumper(var_here) . "\n"; to peek at things
#12:30:36phasefxbah, confused myself with multiple databases
#12:31:21phasefxDyrcona: the code works for me (after fixing that md_hex call, and hard-coding in my config values)
#12:32:12Dyrconaphasefx: I think mine is failing on the init call. I fixed the md_hex/md5_hex and then added a printf after the init call. It never gets to the printf.
#12:32:32DyrconaI'm also printing the values from the config, and they are what I expect.
#12:32:50DyrconaIf I use those values in srfsh with a login, they work.
#12:32:59phasefxI'd turn up error logging with the auth service
#12:33:02phasefxhrmm
#12:35:27phasefxyou can perl -d file.pl, step through it line by line
#12:35:41phasefxactually walk into AppSession.pm
#12:36:18Dyrconai'll try that. I'm going to annotate my paste with some funny log lines.
#12:36:27phasefxthis is fun
#12:36:44lisppasteDyrcona annotated #120933 "log entry" at http://paste.lisp.org/display/120933#2
#12:38:11DyrconaLooks like XML::XPath is interfering somehow.
#12:38:42phasefxmay need to stringify the values you get from it
#12:39:09Dyrconaok. they appear fine when printed though.
#12:39:58phasefxNote that for each of the objects stringification is overloaded, so you can just print the value found, or manipulate it in the ways you would a normal perl value (e.g. using regular expressions).
#12:40:32phasefxI'd try getNodeText on them
#12:45:05phasefxor maybe wrap them in quote to let string interpolation do the casting? = login("$uname", etc.
#12:45:28phasefxdon't know what the proper thing to do would be
#12:46:32phasefxthough I bet the "$uname" method would work since it works for printing
#12:47:34Dyrconathink i'm going to try getNodeText() instead of findvalue().
#12:47:53Dyrconathe XML::XPath docs say it returns a string.
#12:48:23dbshttp://search.cpan.org/~msergeant/XML-XPath-1.13/XPath.pm#findvalue%28$path,_[$context]%29
#12:48:38Dyrconayep. was just looking at that.
#12:48:55dbshttp://search.cpan.org/~msergeant/XML-XPath-1.13/XPath/Literal.pm
#12:49:13dbsso stringify it like phasefx suggested, or call ->value() on the result. should be the same thing.
#12:49:40dbs and Dyrcona must be swapping roles, as I've been pounding my head against Java for a day or so
#12:49:42phasefx.value().. yeah, dbs++
#12:50:10Dyrconaheh. thanks, dbs.
#12:51:13Dyrconawhat trouble are you having with Java?
#12:52:30dbsDyrcona: heh, 1) catching up with all of the changes since about 1.3 and 2) learning the Android landscape beyond simple demo apps
#12:52:39DyrconaI decided to take dbs advice and call ->value().
#12:52:55DyrconaAh. I haven't tried anything on Android, yet.
#12:57:07DyrconaI've been doing a lot of XPath in Java lately. I think the differences between the Java and XML::XPath in Perl are what threw me today.
#12:58:00dbs has written a simple library app that maps a list of menu items to URLs, which is sadly more useful than it might otherwise sound for a library with a web presence like his
#12:58:02dbs curses microwave for interering with sacred WiFi
#12:59:34DyrconaA library map application might be useful, something that could show where in the library books/items are located. I know some of our members have asked about being able to print maps from the ILS.
#13:03:05tsbere reads the recent history and thinks that dbs and Dyrcona were talking about two entirely different usages of the word "map", but also wonders how you *could* print maps of the library interior from the ILS.
#13:04:01dbsYep, two different meanings. But some libraries have provided mappings of shelving location/call number to a "location in library" kind of map for years
#13:11:19tsbereSo what is the next evolution of that, having the catalog know what machine you are on in the library (if you are) or picking the closest door and providing walking directions to the shelf? ;)
#13:12:03phasefxfeeding gps coordinates to your phone?
#13:13:01dbstsbere: that's what some of the old catalogs actually did
#13:13:30tsbere never used one, as far as he knows
#13:15:09phasefxneed to put camera-accessible landmarks in the library for one's augmented reality app. Have red and green path lines overlayed on the floor, and highlight the shelves and specific book
#13:16:01tsbereMight need a 2d barcode format on the edge of the book to highlight the right one, though
#13:16:03phasefx can't wait to get such apps bundled into his glasses. be like robocop
#13:16:20phasefxnerd on patrol, thank you for your cooperation
#13:25:44Dyrconaphasefx: a real cybrarian. :)
#13:31:18suho has quit IRC
#14:27:10dbs has quit IRC
#14:40:20dbs has joined #evergreen
#14:40:20dbs has joined #evergreen
#14:45:12dbsI/O errors that lock me out of my laptop do not make me happy
#14:45:24dbsAlso ungood for productivity
#14:49:11chirag has joined #evergreen
#15:45:37chiraghi there..i would like to talk regarding gsoc project..
#15:45:49chiragandroid app for evergreen.
#16:43:46DyrconaI am trying to call open-ils.circ.checkout with my authtoken, a copy_barcode and patron_barcode. I keep getting a CIRC_PERMIT_BAD_KEY response, and I am not sure why.
#16:44:07DyrconaI'm not sure that I understand the code in check_permit_key or where the permit_key comes from.
#16:45:40DyrconaHmm.. Just switching to open-ils.circ.checkout.full let me checkout the copy to my patron.
#16:45:47phasefxDyrcona: use the .checkout.full method instead. checkouts used to be two-part. yeah
#16:46:04phasefxwe used to use a .permit method, and then the .checkout method
#16:46:06Dyrconaphasefx: I see.
#16:46:42DyrconaI should probably dig just a smidge harder next time. :)
#16:47:01phasefxchirag: I'm here for general discussion; don't know a whole lot about java or android specifically, though
#16:48:39chiragphasefx:i have partially understood the evergreen sytem..
#16:48:50phasefxDyrcona: you can use Admin->For Developers->Venkman in the staff client, and put the keyword debugger; in choice sections of code for an opportunistic breakpoint (for whenever a debugger is running), and walk through existing code that way
#16:49:18chiragand even made a android app which talks to your evergreen server..but its not complete yet
#16:49:49dbsIt would be surprising if it was complete already :)
#16:49:55phasefxchirag: coolness
#16:49:56Dyrconaphasefx: I'm writing a client in Perl so that the state's virtual catalog can communicate with Evergreen.
#16:50:40phasefxDyrcona: and it's doing circs? *8)
#16:50:43chiragdbs:i have got problem with curl otherwise it would have been completed
#16:51:03Dyrconaphasefx: yes it will do circs.
#16:51:25phasefxDyrcona: interesting
#16:51:31chiragit sends requests to server and receives response with 200 ok msg
#16:51:48chiragbut i'm not able extract response from it yet
#16:52:30chiragdbs:its base on the opensrf over http example you mentioned that day
#16:52:37chiragbased*
#16:52:54dbschirag: okay. So you're getting the JSON response?
#16:53:07chiragyes i'm getting json response
#16:54:12chiragi'm have made a json for the first time so it is taking time..
#16:54:26chiragjson code*
#16:54:45dbschirag: There's probably a few different JSON libraries in Java that you could use, right?
#16:55:59chiragyup i have used them to create json and send it by http reponse using httpclient class
#16:56:19chiraghttp post response*
#16:57:38chiragis there any java developer in evergreen?
#16:58:44dbschirag: I think you need to clarify what problem you're having before we can help
#16:59:27dbsYou say you have a JSON library and can create JSON using it, but you can't extract information from a JSON response?
#17:00:00chiragnope i can extract json from http response
#17:00:40chiragits wrapped inside http response..
#17:00:58dbsbut you said "but i'm not able extract response from it yet", so hopefully you can see why I'm confused.
#17:02:33chiragi receive http reponse to my httprequest ..my http response contains jsonobject..i'm not able to extract it...but i haved debugged my application
#17:03:30chiragand found that its wrapped inside it..and i'm not able to unwrap it...
#17:03:43chiragbut its visible in my debugger
#17:05:33dbsSo you need help using java.net.whatever?
#17:06:22chiragi'm not using java.net ...but a different library
#17:07:07chiragi 'm using apache http library
#17:07:43chiragi have got one more method to solve my problem
#17:08:10chiragbut as i have got so far with this first method...
#17:08:48chiragso would like to get my problem solved first..
#17:09:47chiragbecause send method would require to rewrite my code
#17:09:56chiragsecond method*
#17:10:04dbschirag: you might want to talk to people on whatever channel supports the Apache HTTP Java classes, then
#17:11:21chiraglocalhost/osrf-http-translator
#17:11:30chiragcan i get its code
#17:12:01phasefxchirag: just curious, are you using getResponseBody() and feeding that result to your JSON library?
#17:12:01chirag?
#17:12:11dbshttp://hc.apache.org/httpcomponents-client-ga/tutorial/html/fundamentals.html looks pretty straightforward
#17:13:01phasefx.getContent looks better based on that
#17:13:24Dyrcona has quit IRC
#17:13:37dbschirag: yes, the HTTP translator code is part of the OpenSRF framework
#17:14:18dbschirag: http://svn.open-ils.org/trac/OpenSRF/browser/trunk/src/gateway
#17:16:15chiragphasefx:i used get content but not getting my result..
#17:16:44chiragdbs:i'm checking it..
#17:17:28chiragdbs:in the meantime i would like to talk regarding my application regarding gsoc project
#17:18:04dbschirag: everything that you're saying, in channel and on the mailing lists, is effectively part of your application :)
#17:18:30dbsalso a good opportunity to get a feel for the people involved in the project (like me)
#17:19:19chiragbut i'm not active on mailing list
#17:19:30chiragwould that effect my application
#17:19:34chirag?
#17:20:23dbschirag: you've read the GSoC FAQ and the booki.cc guide?
#17:21:26chiragi have read faqs..wats boki.cc??
#17:21:32chiragbooki.cc*
#17:21:47dbshttp://www.google-melange.com/document/show/gsoc_program/google/gsoc2011/faqs#student for example
#17:22:18dbshttp://www.booki.cc/gsocstudentguide/_v/1.0/what-is-google-summer-of-code/
#17:23:26chiragyes i have read the student guide
#17:24:06dbsOkay. I thought that would have answered your question "but I'm not active on mailing list - would that effect my application"
#17:24:18dbs(And you have posted a couple of messages, haven't you?)
#17:24:58chiragyes i have posted messages on mailing list
#17:25:09chiragsorry irc*
#17:25:18chiragnot mailing list
#17:26:04dbschirag: I'm pretty sure you posted the messages with the subject "Help:opensrf over http using java", no?
#17:26:25chiragyes i have posted it
#17:26:40chiragbut the json request i wrote is not correct
#17:26:51chiragi checked it out later on'
#17:26:57chiragusing srfsh
#17:29:13Dyrcona has joined #evergreen
#17:31:46chiragso i have used the example of json object posted by you..
#17:32:22chiragin which i have to manually enter the barcode id
#17:42:06chiragdbs:do i stand a chance in your organisation?
#17:42:17chiragdo*
#17:43:41dbschirag: I really can't say until all of the applications have been submitted. There have been a lot of people who have expressed interest in the Android client project, but to date you're the only one attempting to pull some code together.
#17:45:02chiragdbs:when should i send my application for your review
#17:47:34chiragi even dont have an experience working on android would that effect my application
#17:47:51dbshttp://www.google-melange.com/document/show/gsoc_program/google/gsoc2011/timeline says "March 28: 19:00 UTC Student application period opens."
#17:49:34chiragi meant to say that i have read that student send their application to mentor for review...and if mentor require changes he tells it to student else forwards it
#17:51:44chiragdoes that applies over here too...or my first application is my last application?
#17:52:55dbsThe earlier you apply, the better the chance that you'll get some feedback
#17:55:01dbs has to make dinner - later
#17:55:17chiragokay..thanks for help
#18:36:08Dyrcona has quit IRC
#18:41:17mayanks43 has quit IRC
#19:19:33chirag has left #evergreen
#19:54:48mayanks43 has joined #evergreen
#20:17:45lpd has quit IRC
#20:18:49lpd has joined #evergreen
#21:17:04suho has joined #evergreen
#22:14:22mayanks43 has left #evergreen
#22:36:24lez has joined #evergreen
#22:38:32lezard has quit IRC
#22:44:23suho has quit IRC
#23:15:41lez has quit IRC
#23:17:14Jbergy has joined #evergreen
#23:50:49lpd has quit IRC
#23:57:54lpd has joined #evergreen
< Saturday, March 26th, 2011Raw Log FileMonday, March 28th, 2011 >