Open Source Integrated Library System

Evergreen on IRC

#openils-evergreen Logs for Sunday, April 19th, 2009

< Saturday, April 18th, 2009Raw Log FileMonday, April 20th, 2009 >
#TimeNickMessage
#04:16:18EGUEST648 has joined #openils-evergreen
#04:19:30EGUEST648 has quit IRC
#04:19:44mib_o7ayr1 has joined #openils-evergreen
#04:21:54mib_o7ayr1Hello. Anyone else on right now?
#04:23:24asmodaiI am, but I know little about the system.
#04:23:46asmodaiI'm just a lurker/groupie ;)
#04:24:33mib_o7ayr1I've been having some trouble with the autogen.sh script.... not even sure where to start looking for the trouble,
#04:24:49asmodaiWhat kind of trouble?
#04:25:01mib_o7ayr1Can't call method "depth" on an undefined value at org_tree_html_options.pl line 56.
#04:25:17asmodaiWhat's your Perl version?
#04:25:31mib_o7ayr15.8.8
#04:25:51asmodaimmm, should be ok enough I think.
#04:26:03asmodaiCannot remember the guys in here demanding 5.10
#04:26:38mib_o7ayr1Everything else seems to work... I can log into both OPAC and the staff client
#04:26:59asmodaigiven you state autogen.sh
#04:27:05asmodaiare you using a version from the repository?
#04:27:09asmodaiinstead of a release?
#04:27:19mib_o7ayr1No, release 1.4.0.4
#04:27:29mib_o7ayr1on Ubuntu Hardy
#04:27:32asmodaimmm, guess the autogen.sh is a different kind of autogen
#04:27:50asmodaimmm
#04:28:03asmodaiit seems the depth() call requires some argument/parameter
#04:28:04mib_o7ayr1It's the script you run to regenerate the org. structure after changing it
#04:28:06asmodaibut it is undefined.
#04:28:10asmodaiWhich might mean
#04:28:18asmodaithat it has an invalid value somewhere
#04:28:22asmodaior something has not been provided
#04:28:34asmodaiHave you tried that settings verification script?
#04:29:12mib_o7ayr1I looked at line 56; my best guess is that org_tree_html_options.pl is having trouble getting the tree from open-ils.storage, or that the tree in open-ils.storage is wrong.
#04:29:33mib_o7ayr1Yes I did; it showed everything as OK.
#04:30:08asmodaiMmm, curious.
#04:30:13asmodaiMight be a bug for all I know.
#04:31:14mib_o7ayr1I found an earlier, similar problem from '07 that involved the use of the wrong storage driver; I checked, and my config file does have pgsql (the "right" driver) selected.
#04:31:45asmodaiYea, database driver is important to use the right one ;)
#04:32:13asmodaiWasn't there a verbose/debug way of starting that script with Perl *thinks*
#04:33:24mib_o7ayr1I have no idea... I'm not terribly familiar with Perl
#04:34:51asmodaiI know enough to avoid it like the plague.
#04:34:54asmodaiPython <3
#04:35:31mib_o7ayr1It was bad enough getting all the dependencies installed....
#04:35:56mib_o7ayr1I have to say, I don't think I like it either.
#04:42:52mib_o7ayr1Anyway, thanks for the help, I'll try back on Monday.
#04:43:15mib_o7ayr1 has quit IRC
#05:17:29rickd_ has joined #OpenILS-Evergreen
#05:35:24rickd has quit IRC
#09:04:33brendan_ga has quit IRC
#09:05:32gmcharlt has joined #OpenILS-Evergreen
#09:25:28brendan_ga has joined #OpenILS-Evergreen
#11:20:46eby has joined #OpenILS-Evergreen
#11:32:19kgs has joined #openils-evergreen
#11:41:50brendan_ga has quit IRC
#12:38:50dbs has joined #openils-evergreen
#12:40:26Barceeper has joined #OpenILS-Evergreen
#12:40:29Barceeperhey
#12:41:07Barceeperwhy did some of you try to login to my dd-wrt router? is there some explanation of it
#12:43:52Barceeperif i didn't saw that, grab some other people plz:S
#12:47:44jeffBarceeper: you might be seeing the freenode proxy scan.
#12:48:47dbsmiker_: I'm looking suspiciously at the marc2*re.pl scripts that invoke entityize with the NFD form, when all other uses in the system go with NFC
#12:48:49jeffBarceeper: see http://freenode.net/faq.shtml#firewall for more info. that's something that the freenode irc network (and many other irc networks) does(do)
#12:49:09Barceeperhmm i see that some of you try to login with root, and password is always bad
#12:49:25jeffBarceeper: what ip?
#12:49:32jeff(source)
#12:49:41Barceeperi use wallwatcher to log all the things
#12:49:50Barceeper217.147.234.150
#12:49:53dbsmiker_: I think the NFD in marc2*re.pl was an experiment based on early Laurentian sample record parsing, but perhaps we should make it consistent throughout?
#12:50:31jeffBarceeper: another option would be to confult the freenode faq, and get a "cloak", which can hide your ip from other irc users -- this presumes that you are seeing these connections as a result of your usage of freenode, and not just coincidence.
#12:51:07Barceeperand why i see that someone with a dropbear client fails to login
#12:52:09jeffBarceeper: that IP is reported in dshield.org as making many attempts to connect to many IPs. i doubt that you are seeing it as a result of anyone here in this IRC channel. :)
#12:52:49jeffBarceeper: but anyway, beside that... welcome. what brings you to #openils-evergreen? :)
#12:53:19Barceeperi dont know, i was wondering why this happening:S
#12:56:28Barceeperand this ip? 204.215.65.203, wallwatcher logged that ip to to failed login attempts
#13:00:55jeffBarceeper: ssh brute force attacks are on the rise again. that term should help you find some more information on google, or you could try #dshield or ##security on this irc network
#13:01:10jeffBarceeper: good luck, i've got to run!
#13:01:16Barceeperoke cya
#13:35:24Barceeper has quit IRC
#13:54:17miker_dbs: in and out, but NFD is the most correct from a MARC perspective -- NFC in ingest (and elsewhere) is the newer code ... fwiw, though, I don't care much at all which normalization form is used. if you want to go to NFC for marc2.re, plese be my guest
#13:57:23dbsmiker_: well, I'll give it a shot with our records and see what happens.
#14:00:06dbsWhen you say "most correct for MARC", you mean NFD & MARC8 are both decomposed encoding?
#14:00:17dbsJust curious.
#14:24:57dbshmm, check out the related subjects for http://concat.ca/opac/en-US/skin/default/xml/rresult.xml?rt=subject&tp=subject&t=ethique&l=1&d=0&f=&av= - the subjects from the bib itself have NFD é, while the authority subjects (second tier) have NFC é
#14:25:15dbsOn Firefox, at least, the rendering is noticeably different. That, or I'm imagining things.
#14:52:23natschil has joined #openils-evergreen
#14:58:30dbs waves at natschil
#14:58:40natschil waves back
#15:05:03natschilhi dbs
#15:06:05natschiljust looking through the c code of the opensrf gateway, and I'm not entirely sure what it does :)... which function is called when the gateway is called?
#15:23:28dbsnatschil: pretty sure it would be osrf_json_gateway_method_handler
#15:23:44dbsit's an apache module, so i think it follows Apache module conventions
#15:25:41dbsbasically, it converts HTTP requests into OpenSRF calls, and returns the result as either JSON or XML, IIRC
#15:26:32dbs has a total of 6 concurrent bre import processes running on 2 servers... this is the life
#15:29:10dbshave to finish importing all of our bibs before I can import all of our MFHD records
#15:33:32natschildbs: thanks
#15:36:18natschilam I correct in assuming that the line "req_id = osrfAppSessionMakeRequest( session, arr, method, api_level, NULL );" basically forwards the request to opensrf?
#15:39:48dbsI believe so
#15:40:00dbshaven't poked around in this code too much
#15:40:14natschilok, at least I'm on the right track :)
#15:40:23natschil hates reading C code
#15:41:02dbswhat are you looking for?
#15:42:27natschilwell, I'm trying to add an extra to the record summary that is similar to the MARC view one, just that it prints out a line with the author, date of publication, etc... to use in a bibliography
#15:42:53dbsYou probably don't want to be looking in the C code, then
#15:43:18natschilso I'm just looking at the path that the data takes to get from the perl to the webpage
#15:43:20dbsModsParser.pm + the mvr class in fm_IDL.xml are probably what you want to poke at
#15:43:30natschilso that I'd understand the code a little better
#15:46:38dbsthe diffs in the first link in http://coffeecode.net/archives/183-Evergreen-Exposed-introduction-to-Evergreen-development-OLA-2009.html might be helpful to you
#15:52:42natschilthanks, I'll look there
#15:54:30natschilit might be worth mentioning that things such as "Index" or "Excerpt" don't work but give me a 500 when i try to open them
#15:54:44natschili.e internal server error
#16:04:01natschilok, I think I'm giving up trying to understand how evergreen does everything for now, and I'll just get on with trying to actually write the extra....how are the opensrf perl files sorted? I can find them in /openils/lib/perl5/OpenILS, but I can't seem to establish how they are organized... if I were to call a method from e.g. open-ils.search, which file would be the file containing this method?
#16:04:57natschilalso, a probably really stupid question, but what is the service that calls methods from OpenILS::Application ?
#16:05:38natschilas there is no open-ils.application service
#16:25:06natschilsomehow, whenever I add anything to any of the perl files, they stop working :) do I have to register my method anywhere else than with __PACKAGE__->register_method?
#16:28:07dbsnatschil: to figure out which Perl module (or C library) supports a given method, I used to use ack-grep or the like
#16:28:54natschildbs: yup, that's what I did, but I was wondering whethere there was a more "structured" approach of where to find/add stuff
#16:30:12dbsDepends on what you're trying to do, I guess. There's structure, but it's mostly implicit. Nobody has written a developer's book of "thou shalt..."
#16:30:50dbsbest thing to do would probably be describe what you want to do on the -dev list and ask if where you're planning on adding something makes sense & would be of use to others
#16:34:00dbsThere's not really a developer howto yet, but someday somebody will put one together... if we're lucky :)
#16:41:13natschilok, thanks
#16:43:30natschilok, I made a basic perl function that returns 'Hello World' (sub bibliographic_entry{return 'Hello World';}), but somehow this crashes open-ils.search, does anyone know why?
#16:56:02natschilwhat libraries does evergreen use to manipulate xml/marc? let's say I have a marc record, and I want to convert only html. To convert the whole thing, I can see evergreen does
#16:56:04natschilmy $xmldoc = $parser->parse_string($marcxml);
#16:56:05natschil my $html = $sheet->transform($xmldoc);
#16:56:42natschil, and I'm wondering how I could only get part of the marc to html
#16:56:58natschilwhat libraries are used for things such as the parse_string() function ?
#16:58:50natschilok, I found the answer to that one already :) looks like XML::LibXML::Parser does that
#17:01:21natschil has quit IRC
#18:23:37eby_ has joined #OpenILS-Evergreen
#18:25:03granthpal has joined #openils-evergreen
#18:34:28granthpal has quit IRC
#18:37:17levani_el has joined #openils-evergreen
#18:37:53kgs has quit IRC
#18:38:52eby has quit IRC
#18:56:32levani_elhello
#18:57:05levani_elhow see database name evergreen in postgresql ?
#19:13:23dbslevani_el: I don't understand what you're asking
#19:17:46levani_eli need see my records in postgre
#19:21:45jefflevani_el: evergreen makes extensive use of "schemas" in postgresql.
#19:22:02jeffwhereas normally when you connect using psql using something like: psql -U evergreen -h localhost evergreen
#19:22:25jeffand issue a "\d" to see tables, with evergreen you'll see nothing, just "No relations found."
#19:23:41jefflevani_el: you can use "\dn" to list the schemas, you can use "\dt *." to list all the table names in all schemas, and you can use "\dt actor.*" to see all the tables in the "actor" schema/namespace
#19:25:29gmcharlt has quit IRC
#19:25:44jeffso, "\d actor.usr" to see the usr table in the actor schema...
#19:25:54jeffor "select id, usrname, family_name from actor.usr;" to select some fields from that table
#19:26:25jefflevani_el: i hope that helps... if not, please let us know what you're trying to do and we can give more advice.
#19:35:49levani_elok
#19:35:52levani_eli try
#19:59:04dbsjeff++
#20:44:00levani_el has quit IRC
#22:13:16dbsHmm, excellent day. Worked through most of the bib import problems, used a snazzy parallel processing mode... and finally realized that all the generated acns are completely delusional because they expect to be processed serially (I think)
#23:26:18brendan_ga has joined #OpenILS-Evergreen
< Saturday, April 18th, 2009Raw Log FileMonday, April 20th, 2009 >