IRC log for #koha, 2015-08-25

All times shown according to UTC.

Time S Nick Message
00:00 mtj ie: regex the instance name
00:03 wizzyrea right
00:06 wizzyrea I think I'd want to try this out before doing it for realsies, but this is good advice. A tool to generate just these files would be a nice thing to have.
00:07 mtj yeah, its pretty doable
00:08 mtj the assumption with my method is that the zebra files were not modified/tweaked after install
00:10 mtj but, you can use 'git diff' to spot that
00:12 mtj $ cd /etc/koha/sites/koha1 ; find .  -type f   | xargs perl -pi -e 's/koha2/koha1/g'
00:13 cdickinson joined #koha
00:13 mtj ..has worked ok for me, before :0)
00:21 * wizzyrea files that away
00:21 wizzyrea for 8-ish hours from now
00:37 francesca joined #koha
01:08 mtj cool wiz
01:09 mtj i also was struggling to parse that DOM wiki page, with 1am upgrade brain
01:19 dcook Huh... just realized the statistics table doesn't have a primary key
01:20 dcook I suppose we treat datetime like one although it's not really..
01:22 irma joined #koha
01:24 mtj dcook: hmm, it should really have one, huh..
01:24 dcook mtj: probably :)
01:24 mtj have people spotted this.. -> http://it.slashdot.org/story/1[…]uns-out-of-memory
01:32 tcohen joined #koha
01:32 tcohen hi there
01:32 wahanui que tal, tcohen
01:33 wizzyrea http://tech.slashdot.org/story[…]-years?sdsrc=prev aw
01:33 wizzyrea hi tcohen
01:33 tcohen hi wizzyrea
01:37 BobB joined #koha
01:38 connectiontest joined #koha
02:02 francesca joined #koha
02:14 mario joined #koha
02:19 mario joined #koha
03:15 irma joined #koha
03:55 rangi @wunder nzwn
03:55 huginn rangi: The current temperature in Wellington, New Zealand is 11.0°C (3:30 PM NZST on August 25, 2015). Conditions: Overcast. Humidity: 82%. Dew Point: 8.0°C. Pressure: 29.95 in 1014 hPa (Steady).
03:55 eythian http://www.theonion.com/articl[…]t-collapses-51163
03:56 wizzyrea oh onion
04:09 eythian https://apps.getpebble.com/en_[…]3f60819963900000e <-- rangi, wizzyrea - this is quite good, if you're into that sort of thing.
04:11 wizzyrea hmmm
04:15 wizzyrea how do I find the Koha watch face?
04:15 rangi search for koha in the get watchfaces
04:16 wizzyrea hrm
04:16 wizzyrea mine doesn't find it :/
04:16 wizzyrea but
04:16 wizzyrea that's me, not you
04:17 wizzyrea yay I found it
04:17 rangi my next thing is to make it configurable
04:17 rangi so you can choose the branch you want to watch
04:18 wizzyrea ^.^
04:19 wizzyrea that would be neat. I assume the code is somewhere in a repo?
04:19 rangi yep
04:19 wizzyrea nvm I found it
04:19 rangi the online sdk
04:19 rangi lets you push directly
04:19 eythian really what you want is a timeline thingamie
04:20 eythian so it adds a thing when the status changes or something happens
04:20 rangi yep
04:20 rangi its halfway done
04:20 wizzyrea or bzzzts
04:20 rangi https://cloudpebble.net/ide/ is what I use for dev
04:21 cdickinson wow, configuring mod_fcgid for PHP is not easy
04:21 rangi ive got the api keys for timeline, just need to write the code to add things to it
04:21 rangi it's all really well documented, so its just finding the time
04:22 rangi you could totally do a timeline for koha itself, so that you get pins when your reserves are ready to pick up etc
04:22 eythian cdickinson: what are you doing with mod_fcgid?
04:23 cdickinson eythian: want to run a REST API through Apache
04:23 eythian ah right
04:23 cdickinson server side JavaScript doesn't seem to be a thing, so PHP it is
04:23 cdickinson outside of node, that is
04:23 eythian I bet there's a mod_node or something terribad
04:24 cdickinson hmm
04:26 cdickinson most of the tutorials I find are for mod_fastcgi, which isn't included in Ubuntu's repos
04:26 rangi are you wedded to apache?
04:26 rangi i find nginx a lot faster to set up, when im proxying
04:26 cdickinson not really, but since I already am using Apache for the Koha instances, it would save me work by having to integrate anything else into Puppet
04:27 rangi yeah makes sense
04:27 cdickinson if I can't get this working, I might end up doing it anyway
04:28 cdickinson at least I have somewhere to start with configuring nginx
04:28 wizzyrea a koha timeline would be neat
04:29 rangi with a companion app
04:29 rangi you could totally respond too
04:32 wizzyrea Ok, so.
04:32 wizzyrea as an example
04:32 wizzyrea the Skinny app notifies me when things happen with my account.
04:32 wizzyrea I want this, but for koha
04:32 wizzyrea it doesn't even have to do anything else.
04:32 rangi https://developer.getpebble.com/tutorials/
04:32 rangi start here :)
04:32 wizzyrea ^.^
04:33 rangi you can whack a watchface up pretty fast
04:33 wizzyrea believe it or not, I have actually written programs that function in C. Not in 15 years or more, but I have done it.
04:33 rangi and get a feel for it
04:33 rangi https://developer.getpebble.com/guides/
04:33 rangi then move on to apps themselves
04:34 * wizzyrea bookmarks
04:35 rangi next
04:35 rangi make a smartstrap
04:35 rangi that can do nfc
04:35 rangi and now you can issue books via rfid with your watch
04:36 wizzyrea and wear your selfcheck on your wrist.
04:36 rangi yep
04:36 eythian just have it present a barcode you scan
04:36 eythian cheaper+easier
04:36 wizzyrea have the pebble present a barcode you mean
04:36 eythian yeah, as your card
04:36 wizzyrea ooo
04:36 rangi i meant for reading the rfid tags on books
04:36 wizzyrea having your library card on your wrist is a terriffic idea
04:36 wizzyrea spelled correctly, of course
04:36 wizzyrea terrific?
04:36 wizzyrea there we go.
04:37 rangi be kinda cool if as a librarian
04:37 rangi you could circulate an item to any borrower just with your watch :
04:37 rangi )
04:37 eythian if we had more of an OPAC API, it'd be easy.
04:37 wizzyrea yes that would be neat
04:38 wizzyrea slightly more evilly, you could go to all of the insecure rfid libraries and rewrite all of the tags!
04:38 rangi even if just to do an ndf talk about it
04:38 wizzyrea not that anyone would ever *do* that
04:39 rangi speaking of rfid, waitaki are going to move to that too
04:39 eythian pop-quiz: is the "show more" thing on facets actually useful, do people think? It takes them from showing 5 to showing 10. Why not just show 10 to start with?
04:39 rangi screen space is the only thing i can think of
04:40 rangi i think things like that would be better to have a default for
04:40 rangi then let users pick their settings
04:40 eythian this doesn't make my task here easier, which is what I was hoping for.
04:40 rangi theres a bunch in the OPAC that would be nice to let users customise .. or have a remember my choices option
04:41 wizzyrea yeah probably still not easier
04:41 wizzyrea :)
04:41 eythian oh, actually
04:41 eythian I can mimic how zebra works
04:41 eythian I thought it was going to be harder than it actually is.
04:42 wizzyrea does it do tricky stuff like "most relevant facets" in the first 5, because that's the only reason to "show more" imo
04:42 wizzyrea if it's dumb, and it's just the first 5, then no reason not to show them all.
04:42 eythian well, not relevant, just the most common
04:43 eythian which is arguably the same thing
04:43 * wizzyrea almost argued with you
04:43 wizzyrea but then you said the 2nd thing
04:43 wizzyrea and it was ok.
04:43 eythian relevance I'd consider having relation to the search term as much as the results, possibly.
04:44 eythian in an ideal world this'd be handled by the template which would javascript expand things when clicked.
04:44 eythian but we're not in that world.
04:45 rangi not yet
04:45 wizzyrea no, no we're not.
04:49 mario joined #koha
04:57 cdickinson thank goodness
04:57 cdickinson got it working
05:01 putti joined #koha
06:12 putti joined #koha
06:16 p_vdk joined #koha
06:16 p_vdk left #koha
06:21 thd-away joined #koha
06:31 reiveune joined #koha
06:31 reiveune hello
06:33 putti reiveune, hi
06:35 reiveune salut putti, magnuse, rangi
06:36 * magnuse waves
06:37 * magnuse finally saw the first "Taxi" movie - that was fun!
06:38 magnuse (the french original from Marseille, of course, not the us remake)
06:41 liw interestingly, the French and US Taxi movies both include Luc Besson (writer, producer)
06:48 reiveune magnuse: yep only the first is cool
06:49 reiveune (in french version of course)
06:49 BobB magnuse, back to work!  I have a question  :)
06:50 BobB On the Search Results page, the sort by field:
06:50 alex_a joined #koha
06:50 BobB Publication/Copyright date: newest to oldest
06:50 magnuse reiveune: ah, i was thinking of buying numbers 2, 3 and 4 too!
06:50 alex_a bonjour
06:50 BobB I seem to recall that runs off the date in the 008, not off the 260$c
06:51 BobB can anyone confirm that?
06:51 magnuse BobB: yup
06:51 BobB cool, many thanks
06:51 magnuse 'cause 260$c is "free text" and can include crazy s**t like "cop 1994"
06:52 BobB yes, yes !!
06:52 magnuse the relevant positions in 008 should contain a "clean" year
06:52 BobB exactly
06:52 magnuse i was thinking about this while walking the dog this morning...
06:52 BobB thanks magnuse, problem solved
06:52 fridolin joined #koha
06:52 reiveune magnuse: I enjoyed only the first (like many people), but you may appreciate the following
06:52 fridolin hie there
06:53 magnuse reiveune: yeah, i think i will give them a chance
06:53 reiveune :)
06:55 Viktor joined #koha
07:00 magnuse reiveune: we also started watching "De guerre lasse" http://www.imdb.com/title/tt2806878/ but my wife fell asleep after half an hour ;-)
07:00 magnuse we'll finish it soon, though
07:01 magnuse a.k.a. "MARSEILLE DE GUERRE LASSE"
07:02 reiveune magnuse: I have not seen it, but it has not a good score on imdb
07:04 magnuse 5.2 out of 10? yeah, that is not a lot
07:04 magnuse we'll see...
07:07 sophie_m joined #koha
07:08 magnuse bonjour sophie_m
07:08 sophie_m Hello magnuse
07:15 Jul joined #koha
07:17 Joubu hello
07:19 magnuse bonjour Joubu
07:25 magnuse @wunder boo
07:25 huginn magnuse: The current temperature in Bodo, Norway is 18.0°C (8:50 AM CEST on August 25, 2015). Conditions: Clear. Humidity: 64%. Dew Point: 11.0°C. Pressure: 29.98 in 1015 hPa (Steady).
07:25 magnuse @wunder marseille
07:25 huginn magnuse: The current temperature in Marseille / Marignane, France is 20.0°C (9:00 AM CEST on August 25, 2015). Conditions: Clear. Humidity: 46%. Dew Point: 10.0°C. Pressure: 30.07 in 1018 hPa (Rising).
07:25 putti Joubu, ¡hola!
07:31 kivilahtio joined #koha
07:33 cait joined #koha
07:35 p_vdk joined #koha
07:35 p_vdk left #koha
07:41 cdickinson joined #koha
07:53 andreashm joined #koha
07:57 fridolin joined #koha
08:10 magnuse tjänare andreashm
08:21 andreashm halloj magnuse
08:33 magnuse ncip! ncip! ncip!
08:41 * cait waves
08:47 * magnuse waves to cait
08:57 fridolin joined #koha
09:06 alex_a_ joined #koha
09:25 Joubu Does someone want how I can import an xml file with several records in it?
09:25 ashimema did magnuse do a happy dance there?
09:25 ashimema is your ncip working magnuse?
09:25 Joubu I have used MARC::Record::new_from_xml, but only the first record is retrieved
09:25 cait Joubu: i think the bulkscript can do it
09:26 cait or do ou want to know about the structure?
09:26 cait bug 10407
09:26 huginn Bug http://bugs.koha-community.org[…]_bug.cgi?id=10407 enhancement, P5 - low, ---, gmcharlt, NEW , allow MARCXML records to be imported via Koha's GUI
09:27 Joubu cait: I am writting a test, I have generated a xml file with several records, and I want to read it to be sure it has been correctly imported
09:27 Joubu I could use a XML lib, but I would prefer a MARC way
09:27 Joubu ha, MARC::Batch
09:28 ashimema don't you want MARC::Batch for that?
09:28 ashimema lol.. I should read up before posting
09:29 Joubu ashimema: I have read the doc, but grep xml in the doc of MARC::Batch returned nothing
09:29 ashimema https://metacpan.org/pod/MARC::File::XML
09:29 ashimema there's an example in the Synopsis.. does that not work?
09:30 ashimema my $batch = MARC::Batch->new( 'XML', $filename );
09:30 ashimema while ( my $record = $batch->next() ) {
09:30 ashimema }
09:30 ashimema I 'think' that's how i've done it in the past?
09:31 Joubu it works pretty well and it's exactly what I wanted, thanks!
09:31 ashimema brill :)
09:34 cait ashimema++ Joubu++
09:35 magnuse ashimema: nah, no happy dance now. my ncip server is mostly working, i am working on the client side of things + the ui. so still a ways to go...
09:35 ashimema you had me excited there ;)
09:38 magnuse sorry about that
09:39 magnuse it was just my little rallying cry
09:40 ashimema hehe.. ncip needs such a cry I imagine.. before going to war with it
09:41 magnuse yup
09:41 magnuse @wunder boo
09:41 huginn magnuse: The current temperature in Bodo, Norway is 21.0°C (11:20 AM CEST on August 25, 2015). Conditions: Clear. Humidity: 56%. Dew Point: 12.0°C. Pressure: 29.95 in 1014 hPa (Steady).
09:42 magnuse right now i am going to do take the dog outside and do a small skirmish with the heat, then a major battle with lunch!
09:42 ashimema hehe
10:21 fridolin joined #koha
10:37 francesca joined #koha
10:50 putti joined #koha
11:04 magnuse phew, that was close
11:04 magnuse @wunder boo
11:04 huginn magnuse: The current temperature in Bodo, Norway is 22.0°C (12:50 PM CEST on August 25, 2015). Conditions: Clear. Humidity: 53%. Dew Point: 12.0°C. Pressure: 29.95 in 1014 hPa (Steady).
11:33 alex_a joined #koha
11:37 tcohen joined #koha
12:00 fridolin joined #koha
12:02 fridolin Joubu: a little bit work for you Bug 14544
12:02 huginn Bug http://bugs.koha-community.org[…]_bug.cgi?id=14544 enhancement, P5 - low, ---, jonathan.druart, ASSIGNED , Move the list related code to Koha::Virtualshelves
12:05 Joubu fridolin: thanks!
12:05 fridolin ;)
12:08 meliss joined #koha
12:09 Joubu fridolin: very nice catches!
12:09 fridolin I have 1 more
12:09 * fridolin bughunter
12:11 Joubu fridolin: which one?
12:12 fridolin I'll tel you, just a </div> pb
12:15 tcohen joined #koha
12:21 cait :)
12:21 Viktor joined #koha
12:22 fridolin1 joined #koha
12:30 tcohen morning
12:34 fridolin1 Joubu: I have a new one, may I write a new note ?
12:36 Joubu fridolin1: yes please
12:47 BobB_ joined #koha
12:50 irma joined #koha
12:55 xarragon How do i print the available columns in a dbix::class resultset?
12:56 fridolin joined #koha
13:03 Dyrcona joined #koha
13:03 jseplae joined #koha
13:06 putti joined #koha
13:06 putti_ joined #koha
13:06 JoshB joined #koha
13:06 putti Hello
13:06 wahanui niihau, putti
13:11 putti In circulation.tt there is the section which starts like "[% IF ( noissues ) %]<div>[% ELS", I want to copy similar section to the moremember.pl page because it would be great to see all the notices also there. But my problem is that I don't know how I can abstract the code from circulation.pl so that I could use it in both: circulation.pl and moremember.pl. Any ideas?
13:13 putti Can .inc files solve this problem?
13:14 p_vdk joined #koha
13:16 BobB joined #koha
13:16 Joubu putti: .inc if for TT files
13:16 putti Well now I looked into those include files, looks like they can only abstract the template files. Is there any example of the .pl files which would output same params in both scripts?
13:16 Joubu s/if/is
13:16 putti yeah!
13:17 Joubu putti: yes, c/p ...
13:17 irma joined #koha
13:17 putti ... D:
13:21 talljoy joined #koha
13:24 cma joined #koha
13:25 barton_tablet joined #koha
13:28 BobB_ joined #koha
13:32 irma joined #koha
13:33 tcohen joined #koha
13:33 tcohen hi there
13:37 Joubu tcohen: hi!
13:37 tcohen hi Joubu
13:42 * cait waves
13:49 tcohen hi cait
13:50 cait tcohen: i won't make the meeting tomorrow
13:50 nengard joined #koha
13:50 tcohen cait: :-P
13:51 tcohen that could lower your karma actually
13:52 NateC joined #koha
13:54 mario joined #koha
13:55 nengard left #koha
13:58 tcohen who keeps schema.koha-community.org?
13:59 cait is it not listed on the wiki?
14:00 tcohen wiki?
14:00 wahanui i guess wiki is http://wiki.koha-community.org
14:00 mario joined #koha
14:00 tcohen @later tell nengard could you please upgrade the DB schema on the site?
14:00 huginn tcohen: The operation succeeded.
14:01 * xarragon is starting to slowly hate dbix::class
14:04 Kchris joined #koha
14:17 tcohen xarragon: why is that?
14:28 rocio joined #koha
14:29 xarragon tcohen: If you are not familiar with it the work needed to debug the result of a query is massive.
14:30 tcohen yeah
14:30 tcohen i usually rely on use Data::Printer colored => 1; warn p($rs); a lot
14:30 tcohen :-D
14:34 xarragon Yeah.. I got solved now, the quickstart for data access solved it for me.. I had previously written code that accessed the data in some other fashion, using $rs->{COLUMN_NAME} and it would not work with the search method.
14:34 xarragon I guess it was bad code.. So good riddance. But it was a lot of code to wade through.
14:34 xarragon But learning new stuff without setting aside time for it always stupid.. So it is my own fault.
14:54 Shane-S joined #koha
14:57 tcohen xarragon: you will love Koha::Objects
15:03 Shane-S Q: My users are reporting when doing Patron Card Creator and creating a new batch they can't add multiple users, it just adds whomever they click, replacing the previous one....and we can't add user who have an apostrophe in their name, like O'Leary
15:03 Shane-S anything I should look for on my end? Koha version 3.20.02.000
15:04 Shane-S If it helps, it was upgraded from 3.12 so there have been some thing I have had to fix.
15:05 Shane-S Also, if you go to manage batches, and click edit, you CAN add multiple people, but you still can't add people with apostrophes. Sadly we only have 300 users, and only 2 have apostrophes...couldn't wide spread test.
15:07 liw joined #koha
15:07 reiveune bye
15:07 reiveune left #koha
15:16 TGoat joined #koha
15:24 Kchris kchris_away
15:27 Joubu khall: around?
15:27 khall what's up?
15:29 Joubu khall: I don't understand your note on bug 12632
15:29 huginn Bug http://bugs.koha-community.org[…]_bug.cgi?id=12632 major, P5 - low, ---, kyle, Signed Off , Hold limits ignored for record level holds with item level itemtypes
15:29 Joubu the patch fixes a bug, so I expect a test to fail before the patch, which will be fixed after applying the fix
15:30 khall Joubu: only the one unit test is testing this bug, the other tests are just proving existing functionality
15:30 khall to prevent future regressions
15:31 khall If I run the tests without the main patch, I get 1 test failing
15:31 khall if I run the tests after applying the main patch, I get 0 tests failing
15:34 Joubu khall: well, just tried again and you are right
15:35 Joubu sorry about that. I don't know what I have tested... The tests pass without the patch
15:35 Joubu I suspect I haven't launch the right test file...
15:35 Joubu +ed
15:36 khall np Joubu!
15:37 khall better safe than sorry ; )
16:07 amyjeankearns joined #koha
16:10 ktc joined #koha
16:12 ktc for regional language searching in OPAC is it necessary to make changes in /etc/koha/zebradb/etc/default.idx file by commenting line charmap word-phrase-utf.chr and adding line icuchain words-icu.xml
16:12 ktc with latest version of koha
16:13 cait i think that's still true
16:13 cait it might be possible to create an instance from the beginning with icu - but i am not sure
16:14 ktc but while instance is created it does not ask anything
16:14 ktc for icu
16:14 cait if there is something it would be in the config file for creating instances
16:15 ktc oh k
16:16 ktc koha-sites.conf only has indexing mode option
16:20 cait hm i guess the only way is editing the file sthen
16:20 ktc ok
16:28 cait left #koha
16:35 Joubu bye!
16:45 wajasu joined #koha
17:11 rocio1 joined #koha
17:18 * magnuse waves
17:34 irma joined #koha
17:46 wnickc joined #koha
18:11 tcohen joined #koha
18:12 magnuse ¡hola tcohen!
18:12 tcohen hola magnuse!
18:14 tcohen magnuse: should i fork kohadevbox or just provide a pull request ?
18:14 tcohen we now have the ability to launch starman processes from the packages
18:15 tcohen maybe we should branch it
18:15 tcohen pre-3.22
18:16 tcohen @wunder cordoba, argentina
18:16 huginn tcohen: The current temperature in Cuatro Hojas, Mendiolaza, Argentina is 27.9°C (3:16 PM ART on August 25, 2015). Conditions: . Humidity: 29%. Dew Point: 8.0°C. Pressure: 29.57 in 1001.2 hPa (Falling).
18:32 tcohen joined #koha
18:35 magnuse @later tell tcohen a pull request would be cool!
18:35 huginn magnuse: The operation succeeded.
18:38 tcohen joined #koha
18:43 magnuse tcohen a pull request would be cool!
19:17 Shane-S joined #koha
19:18 Shane-S sorry I was away, I checked the log, didn't see an answer. Anyone know why I can't add more then 1 patron to a new batch in the Patron Card creator...and part 2, why I can't add names with
19:18 Shane-S and ' in them like O'Leary
19:21 barton @seen chris_n
19:21 huginn barton: chris_n was last seen in #koha 1 week, 6 days, 0 hours, 12 minutes, and 29 seconds ago: <chris_n> wizzyrea++ # for the nice label interface improvements
19:39 chris_n Shane-S: I'm headed out now, but maybe bug 14123 is the issue with the multiple patron problem?
19:39 huginn Bug http://bugs.koha-community.org[…]_bug.cgi?id=14123 normal, P5 - low, ---, cnighswonger, NEW , Patroncard: Patron search for batch no longer has Select / Select All / Add selected
19:39 chris_n not sure about the apostrophe
19:40 Shane-S okay thank I will look, I will see if I can record the screen...just need an easy place to upload...youtube is blocked here
19:56 tubaclarinet joined #koha
19:57 tubaclarinet Greetings everyone!
20:03 cait joined #koha
20:29 magnuse joined #koha
20:38 cdickinson joined #koha
20:48 cait1 joined #koha
20:53 cait joined #koha
20:53 * cait waves
21:15 meliss joined #koha
21:21 barton_tablet joined #koha
22:02 rangi hmm i have to upgrade the jenkins server, new jenkins is exploding because java is too old
22:03 cait oh no
22:03 cait need a bigger server now or software update?
22:05 rangi needs to go to at least wheezy
22:05 rangi doing that now
22:05 cait keeping fingers crosed
22:17 JoshB joined #koha
22:19 eythian hi
22:19 wahanui bidet, eythian
22:22 rocio left #koha
22:24 rangi chug chug chug .. it hasnt exploded yet
22:27 cait heh
22:35 tcohen joined #koha
22:37 tcohen hi kiwis
22:38 * cait waves
22:40 rangi hi tcohen
22:40 eythian cait: what are you doing waving, you don't live here! :)
22:40 rangi im just fixing jenkins (well trying too)
22:40 eythian also, hello tcohen
22:40 tcohen rangi: what's going on with jenkins?
22:40 rangi server ran out of space
22:40 tcohen ouch
22:40 tcohen hi eythian
22:41 rangi then it couldnt restart cos the new version needs at least java7
22:41 tubaclarinet joined #koha
22:41 rangi so ive upgraded the box to wheezy
22:41 rangi (ill do it to jessie at some point)
22:41 rangi which was tricky cos it is all in french
22:41 rangi and now it has java7
22:42 mtj hi rangi, hey... why is it in french?
22:42 rangi it's biblibres server
22:42 mtj aah, slap!
22:43 tcohen rangi: dpkg-reconfigure locales
22:43 tcohen i don't think they would care
22:43 tcohen heh
22:43 tcohen they are rewriting bokeh with english as a basis...
22:44 tcohen eythian: i need to add starman and libplack-middleware-reverseproxy-perl as dependencies
22:44 tcohen but need your opinion on making them mandatory
22:45 eythian hmm
22:45 eythian the libplack isn't so bad, starman I'm less sure about.
22:45 jenkins_koha joined #koha
22:46 tcohen they are both shipped with all supported versions
22:46 rangi http://jenkins.koha-community.org/
22:46 rangi looks like it is back
22:46 eythian tcohen: well, I was mostly expecting it to have tons of deps, but it actually doesn't
22:46 tcohen debian 7, debian 8 and ubuntu 14.04+
22:47 eythian tcohen: may as well add them, it's the way we want things to be going.
22:47 tcohen i think so, yes
22:47 tcohen after pushing it i found a disgusting truth about the implementation
22:47 eythian heh
22:48 eythian which one did you discover?
22:48 tcohen the apache server documentation had a lie
22:48 tcohen it said apache 2.4.7 introduced UDS support on ProxyPass
22:48 tcohen (2.4.7 is what 14.04 ships)
22:49 tcohen well, i did all my tests on jessie...
22:49 tcohen when i tried in 14.04, i found that it didn't work :-D
22:49 tcohen then read the apache changelog, and it seems the feature was introduced by 2.4.8 :-D
22:49 eythian ah
22:49 tcohen liers!
22:50 eythian that'd be annoying
22:50 tcohen so i think i will add a warning for the users about apache version
22:50 tcohen and pointing them to the wiki, explaining how to install backports on the needed versions
22:51 eythian probably a good plan
22:51 tcohen at least it doesn't break (the apache config tests for the apache version)
22:51 tcohen so, starman will be running, but won't be used
22:51 tcohen in apache <2.4.8
22:51 tubaclarinet joined #koha
22:52 eythian tcohen: I presume you mean only if you configure an instance/installation to use plack in the first place?
22:52 eythian (I haven't had a good look yet at how you've done it.)
22:54 tcohen i added a koha-plack script
22:54 tcohen that supports —start, —stop, —restart, —enable, --disable
22:54 tcohen by (un)commenting an include line in apache
22:55 tcohen the controlling switches just rely on starman —daemonize and star-stop-daemon to handle per instance daemons
22:55 eythian OK. but, does starman run even when nothing is going to be using plack?
22:55 eythian because that'd be weird
22:57 jenkins_koha joined #koha
22:57 francesca joined #koha
22:58 tcohen eythian: there is this is_plack_enabled check :-D
22:58 eythian ah OK :)
22:58 tcohen it even has tab-completion :-P
22:58 eythian does it have a separate starman instance per koha instance?
22:58 tcohen it runs a starman process per instance
22:58 eythian hmm
22:59 tubaclarinet francesca: Hello (again)
22:59 tcohen it is configured to serve 50 requests
22:59 eythian that's not ideal.
22:59 tcohen what you mean?
22:59 eythian if you have two instances on one machine, it requires twice as much RAM
22:59 tcohen true
22:59 eythian It's not something that needs solving immediately, but it's something we need to solve.
22:59 francesca hey its tubaclarinet!
22:59 francesca how are you?
23:00 tcohen eythian: i agree. i really had too little feedback about the options
23:00 tubaclarinet Well, thank you
23:00 tcohen so i figured i should push it with enough time for tweaking
23:00 eythian tcohen: we have a patch somewhere that pushes the koha-conf.xml through the headers from apache to starman. Which makes me feel a bit strange.
23:01 eythian but it means you can have one starman running for many instances.
23:01 pianohacker eythian: the entire thing, or just the value of $KOHA_CONF
23:01 pianohacker ?
23:02 * francesca waves at pianohacker
23:02 pianohacker allo
23:02 tcohen hi pianohacker francesca
23:02 eythian pianohacker: the entire thing.
23:02 francesca hey tchoen
23:02 eythian that way we don't have a file open that could be compromised. But it's also weird.
23:04 pianohacker :/ yeah, there's gotta be a better way
23:06 pianohacker bye all
23:07 pianohacker joined #koha
23:12 tcohen eythian: you cannot rely on cache, right? that's the problem
23:12 eythian tcohen: that's what Koha::Cache solves
23:12 tcohen another thing i made use to be able to use a single common configuration file for all intances was variable definitions in apache
23:13 eythian I can't parse that sentence :)
23:13 tcohen https://github.com/tomascohen/[…]40079d259f24d4694
23:14 tcohen tcohen: you don't use that many commas either
23:15 tcohen so i reuse ${instance}
23:16 tcohen eythian: it would be great if you took a look at the implementation at some point
23:16 eythian that should be OK, I'd think.
23:16 eythian yeah, I will when I get the chance.
23:16 tcohen should i fill a bug for the dependencies?
23:16 eythian hmm. So, the lib should be added to the regular dependencies thing so it gets autogenerated.
23:16 eythian starman will have to be manually added to control.in
23:17 rangi tcohen: ive updated the schema
23:17 tcohen rangi: awesome!
23:17 wahanui That'll be $1 for the awesome jar, tcohen
23:17 eythian I don't mind if it's a separate bug or in the one for the rest of the work
23:17 tcohen i'll add a followup
23:17 tcohen will ask your review before pusing, though
23:17 papa joined #koha
23:17 francesca you guys have an awesome jar?
23:18 BobB joined #koha
23:18 eythian http://notalwaysright.com/this[…]a-time-bomb/44954 <-- "online card catalog" ?!
23:18 eythian tcohen: sure
23:25 tubaclarinet Good bye :-)
23:26 tubaclarinet left #koha
23:29 tcohen eythian: is there a way to script thing inside pbuilder?
23:29 eythian how do you mean?
23:29 tcohen i'm creating kohabuildbox, to create an environment suitable for building packages
23:29 tcohen and i would like to add everything we need to the pbuilder env
23:30 tcohen vagrant + ansible to create everything that is needed
23:30 eythian the point of pbuilder is that you don't do that
23:30 eythian so you're doing a build in a totally clean environment
23:31 tcohen suppose i want to build a build server, and i want to script all its setup
23:31 tcohen that's pretty much what i'm doing
23:31 rangi yeah dont put vagrant and ansible etc inside pbuilder .. the other way round really
23:31 eythian oh, like you want to script the creation of the pbuilder environment?
23:32 tcohen exactly!
23:32 eythian yeah, you can do that, though it's fiddly
23:32 rangi have you looked at docker?
23:32 tcohen rangi: i did
23:32 rangi it might be easier to make a docker receipe with the pbuilder set up in it already
23:32 eythian http://wiki.koha-community.org[…]figuring_Pbuilder <-- tcohen, this is a bit old but might give you the gist
23:33 eythian also, some part of it doesn't work quite right, but I don't remember which bit
23:33 tcohen —othermirror
23:33 tcohen i'm sure it should be possible to make pbuilder run a script
23:34 eythian cat script | pbuilder --login --save ?
23:34 eythian but, I'd aim to have it work from a command because that's more better.
23:34 eythian https://twitter.com/maxlavergn[…]36092624219336704
23:34 tcohen rangi: i was intrigued by that option, but it is not that familiar to me, and i had too little time to do it
23:36 tcohen eythian: thanks, i'll try something like that
23:36 tcohen oh, pbuilder-scripts
23:36 eythian just keep in mind that if you make too many changes to the environment, you're defeating the purpose of pbuilder :)
23:38 tcohen eythian: i just want to add one of my own repos, and pull some packages for the build, and have it up to date too
23:38 eythian if packages are needed for the build, they should be in Build-Depends and in the koha repo.
23:39 eythian (unless you've got something weird going on)
23:39 * francesca does a happy dance
23:39 tcohen eythian: good point

| Channels | #koha index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary