← Previous day | Today | Next day → | Search | Index
All times shown according to UTC.
| Time | Nick | Message |
|---|---|---|
| 00:14 | hdl joined #koha | |
| 00:30 | bigbrovar joined #koha | |
| 00:38 | hdl joined #koha | |
| 04:05 | Oak joined #koha | |
| 04:06 | Oak | kia ora #koha |
| 04:41 | bag | hi Oak |
| 04:41 | Oak | hello bag :o) |
| 04:52 | tcohen joined #koha | |
| 05:22 | tcohen | albatrosssss |
| 05:27 | bag | NateC? |
| 05:27 | wahanui | I LIKE SPACE AND MY WIFE |
| 05:28 | bag | love it :D |
| 05:38 | kmkale joined #koha | |
| 06:46 | cait joined #koha | |
| 08:04 | rangi | @wunder nzwn |
| 08:05 | huginn | rangi: Error: timed out |
| 08:05 | cait left #koha | |
| 08:05 | cait joined #koha | |
| 08:05 | cait | @wunder Reutlingen |
| 08:06 | huginn | cait: Error: timed out |
| 08:06 | Oak | Guten Morgen cait :o) |
| 08:06 | cait | Salaam Oak :) |
| 08:07 | Oak | 31st December huh |
| 08:07 | cait | correct |
| 08:07 | Oak | weird |
| 08:08 | cait | why? |
| 08:08 | Oak | not sure |
| 08:08 | cait | feeling not ready for the new year? |
| 08:10 | Oak | does not matter. 2012 won't wait. |
| 08:10 | cait | true :) |
| 09:21 | Oak | me go now. |
| 09:31 | bigbrovar joined #koha | |
| 10:29 | kmkale joined #koha | |
| 11:19 | cait | happy new year all :) |
| 11:19 | cait left #koha | |
| 11:25 | magnuse | happy 2012 to new zealand! |
| 11:53 | have fun, #koha! | |
| 14:50 | cait joined #koha | |
| 14:50 | jcamins | Good morning, cait. |
| 14:50 | cait | hi jcamins |
| 15:45 | druthb joined #koha | |
| 15:45 | druthb | o/ |
| 15:48 | jcamins | \o |
| 16:31 | kmkale joined #koha | |
| 16:38 | jcamins | kmkale: happy new year! |
| 16:48 | searching faq? | |
| 16:48 | wahanui | i heard searching faq was at http://koha-community.org/docu[…]on/faq/searching/ |
| 17:03 | trea joined #koha | |
| 17:48 | cait joined #koha | |
| 17:48 | cait | hi #koha |
| 17:49 | jcamins | Hi #cait. Made it home to Konstanz? |
| 17:49 | cait | yes :) |
| 17:49 | feels good to be home again | |
| 18:55 | * jcamins | wonders if chanting "rangi" over and over will cause him to appear. |
| 18:56 | jcamins | Rangi rangi rangi. |
| 18:56 | * jcamins | waits. |
| 18:57 | rangi | yup |
| 18:57 | jcamins | All right! |
| 18:57 | rangi++ | |
| 18:57 | rangi | makes the laptop beep |
| 18:57 | * cait | will memorize that trick |
| 18:57 | jcamins | rangi: I'm trying to figure out how to do plugin-style interfaces in Perl. |
| 18:57 | Any tips? | |
| 18:58 | Like, where do I start? | |
| 18:58 | rangi | plugin style? |
| 18:58 | jcamins | Specifically for the linker. |
| 18:58 | I would like the authority linker to have the option for people to implement their own linking algorithms. | |
| 18:59 | rangi | ah |
| 18:59 | jcamins | Without messing up my beautiful code. ;) |
| 18:59 | rangi | id do a base class |
| 18:59 | then they can do an ISA module | |
| 18:59 | jcamins | Okay, but how do they get their module called? |
| 19:00 | rangi | they could do it the way the label printer does it, with a syspref |
| 19:00 | jcamins | Ah, that's exactly what I was thinking of |
| 19:01 | I guess I just have to figure out how that works, then. :) | |
| 19:01 | Any idea what syspref that is? | |
| 19:02 | rangi | nope |
| 19:02 | but its called by one of teh label .pl files | |
| 19:03 | the important thing is making a nice base class module so ppl can write ones like you can for the template toolkit ones | |
| 19:04 | or Koha::Cache even | |
| 19:04 | bug 7248 | |
| 19:04 | huginn | 04Bug http://bugs.koha-community.org[…]w_bug.cgi?id=7248 enhancement, PATCH-Sent, ---, gmcharlt, NEW , Caching for services |
| 19:05 | * jcamins | will use that as a model, thanks. |
| 19:06 | jcamins | Yeah, I was not going to figure out what that meant. |
| 19:06 | * jcamins | now sees how it works. |
| 19:06 | jcamins | Very cool. |
| 19:06 | rangi | :) |
| 19:09 | jcamins | rangi: incidentally, all your copyright statements are wrong. |
| 19:09 | It's 2011, soon to be 2012. :P | |
| 19:10 | cait | even worse |
| 19:10 | it already is 2012 | |
| 19:11 | rangi | heh |
| 19:16 | LBA joined #koha | |
| 19:23 | jcamins | http://www.youtube.com/watch?v=wmwM_AKeMCk |
| 19:41 | * rangi | confesses to never having read a harry potter book, or seen more then 10 mins of any of the movies |
| 19:42 | jcamins | rangi: you might not find that quite so amusing then. |
| 19:43 | rangi | yep, i suspect some knowledge is needed |
| 19:43 | still clever though | |
| 19:48 | Soupermanito joined #koha | |
| 19:49 | * rangi | wonders if Soupermanito has or ever will say anything |
| 19:53 | jcamins | rangi: and apparently Harry Potter in that is replacing Daniel Radcliffe in How to Succeed. |
| 19:55 | rangi: so do I have to put a "use C4::Linker::Whatever" for every plugin? | |
| 19:55 | Right now there will only be one, so it's easy, but that seems... wasteful. | |
| 19:56 | rangi | no not use |
| 19:56 | jcamins | rangi: you have a use Koha::Cache::Memcached in your base class. |
| 19:56 | Am I misunderstanding what it does? | |
| 19:57 | rangi | yeah, thats a different thing |
| 19:57 | because for that you make a Koha::Cache | |
| 19:57 | and pass it a type | |
| 19:58 | jcamins | Hrm. That's not what I should be looking at? |
| 19:58 | rangi | and it creates one of those for you, its not really a plugin system, just a consistent API |
| 19:58 | nope the TT plugin is better | |
| 19:59 | jcamins | Where would I find one of those? |
| 19:59 | rangi | hmm 929 |
| 20:00 | or in the needs signoff queue there is one for enabling caching of TT includes | |
| 20:01 | Koha::Cache | |
| 20:01 | is how i would like Koha::Search to be | |
| 20:01 | so the calling programme doesnt have to actually care what is doign the search | |
| 20:01 | jcamins | Right. |
| 20:01 | rangi | same interface for them all |
| 20:02 | jcamins | So, I see how the TT plugins work, but I'm not sure how to do the back-end work to use it. |
| 20:03 | On the plus side, I now understand how Koha::Cache works. :) | |
| 20:03 | rangi | hehe |
| 20:03 | the way the pdf stuff does it is | |
| 20:04 | my $module = C4::Context->preference('something'); | |
| 20:04 | require $module; | |
| 20:04 | jcamins | Ooh! Found it. |
| 20:04 | bag | @wunder 93109 |
| 20:04 | jcamins | I was searching for "label." |
| 20:04 | huginn | bag: The current temperature in K6LCM - Westside / Mesa, Santa Barbara, California is 17.4°C (12:03 PM PST on December 31, 2011). Conditions: Scattered Clouds. Humidity: 76%. Dew Point: 13.0°C. Pressure: 29.96 in 1014.4 hPa (Steady). |
| 20:04 | rangi | but it needs to do some sanity chekcing |
| 20:05 | jcamins | Right. |
| 20:06 | rangi | so it cant just include anything |
| 20:06 | jcamins | Yeah... |
| 20:06 | "Registering" plugins is harder in Perl than it was in C++, isn't it? | |
| 20:07 | rangi | yep |
| 20:07 | jcamins | Phooey. |
| 20:08 | Idea: how about using the technique that Koha::Cache does, so that it has to be within the namespace C4::Linker? | |
| 20:08 | rangi | you could be cool |
| 20:08 | and do | |
| 20:08 | Koha::Plugin | |
| 20:08 | jcamins | Follow-up question: why do I need a "use whatever" at all, if I'm mandating a specific interface for the sub-module? |
| 20:09 | Imagine you're talking to someone who learned OO on C++. | |
| 20:09 | rangi | well you never call Koha::Cache::Memcached |
| 20:09 | jcamins | Right. |
| 20:10 | rangi | you always call my $cache = Koha::Cache->new() |
| 20:10 | jcamins | Yeah, that's my understanding. |
| 20:10 | rangi | so it needs to have Koha::Cache::Memcached in it |
| 20:10 | via the use | |
| 20:10 | jcamins | Ah. |
| 20:10 | rangi | the way TT plugins do it |
| 20:10 | is nicer for your situation | |
| 20:10 | https://metacpan.org/module/Template::Plugin | |
| 20:11 | if we made a Koha::Plugin | |
| 20:11 | jcamins | Indeed, that's exactly the idea I was going for, but I'm limited by the fact that I only know how to write plugins and not plugin hosts for TT. ;) |
| 20:12 | rangi | https://metacpan.org/source/AB[…]emplate/Plugin.pm |
| 20:12 | not so bad | |
| 20:12 | but yeah probably beyond the scope | |
| 20:12 | jcamins | Easy for you to say! |
| 20:12 | :P | |
| 20:13 | rangi | id make |
| 20:13 | Koha::Linker | |
| 20:13 | the | |
| 20:13 | Koha::Linker::Fish | |
| 20:13 | cait | eew |
| 20:13 | Koha::Linker::chocolate? | |
| 20:13 | rangi | use base qw( Koha::Linker ); |
| 20:13 | and the .pl would call Koha::Linker::Fish | |
| 20:14 | jcamins | Hm. |
| 20:14 | And when someone wants to add an additional plugin, let them do the marshalling work? | |
| 20:14 | rangi | well if you make the .pl use the syspref |
| 20:15 | they make a new module | |
| 20:15 | and add that as an option to the syspref | |
| 20:15 | jcamins | Gotcha. |
| 20:15 | rangi | so the .pl doesnt need to change |
| 20:22 | jcamins | Okay... are you *sure* that the handling of the syspref can't be squished into C4::Linker somehow? |
| 20:24 | And, unrelated to that, is there a reason why __END__ has a ton of whitespace after it? | |
| 20:24 | rangi | it probably could but its pretty unclean |
| 20:24 | jcamins | Alas. |
| 20:27 | rangi | that whitespace can die, no need for it |
| 20:27 | jcamins | Woohoo! |
| 20:40 | Oh wise rangi: is there a correct way to replace a field in MARC? | |
| 20:40 | rangi | Hehe |
| 20:40 | hmm check man MARC::Field | |
| 20:41 | * jcamins | has decided to invoke you in this fashion from now on, in the hopes that you won't get irritated by my ceaseless questions and kickban me. ;) |
| 20:41 | rangi | I think there is a replace method |
| 20:41 | jcamins | Ah, yeah. |
| 20:41 | I found it. | |
| 20:41 | I was looking in MARC::Record. | |
| 20:41 | rangi | *nod* |
| 20:41 | jcamins | I should've been looking at MARC::Field. |
| 20:41 | rangi | I do that |
| 20:43 | jcamins | Hm. I'm missing something here. I need to store parameters associated with an object. |
| 20:44 | rangi | Class::Accessor :) |
| 20:44 | pass in some params in ur new call, set them in your object (its just a hashref u bless) | |
| 20:45 | C4::Template might help show u | |
| 20:45 | jcamins | Ah, yeah, that's easier to follow than Koha::Cache. |
| 20:46 | kmkale | happy new year jcamins rangi and #koha |
| 20:49 | rangi | thannks kmkale, u too |
| 20:52 | * jcamins | weeps. |
| 20:52 | jcamins | I need to use C4::Search. |
| 20:53 | C4::Search uses C4::Biblio. | |
| 20:53 | The entire point is that C4::Biblio should call my code. | |
| 20:54 | Alternatively, I could use C4::AuthoritiesMarc, instead of C4::Search. | |
| 20:54 | But that also requires C4::Biblio. | |
| 20:55 | (and, no, I am not implementing Koha::Search in a sane fashion today) | |
| 21:00 | rangi | yeah hated when that happens |
| 21:00 | hate too | |
| 21:01 | * jcamins | saves the feature that requires that for the end. |
| 21:03 | considers heading flipping. | |
| 21:05 | considers the possibility that his head has flipped. | |
| 21:07 | rangi | heh |
| 21:08 | * cait | can't follow |
| 21:08 | jcamins | cait: heading flipping would be changing from an old heading to the new form. |
| 21:09 | "Flipping" is slang for "going crazy." | |
| 21:09 | *to flip = to go crazy | |
| 21:09 | To lose one's marbles. | |
| 21:09 | To suddenly find oneself one card short of a full deck. | |
| 21:09 | To... | |
| 21:10 | Let this be a lesson to you all: avoid authorities. | |
| 21:10 | There be dragons. | |
| 21:11 | cait | lol |
| 21:11 | thx jcamins :) jcamins++ | |
| 21:15 | jcamins | rangi: if I do the dynamic import thing, will the thingies remain in the namespace if I call a sub? |
| 21:15 | * jcamins | tries again. |
| 21:15 | jcamins | The... methods. |
| 21:16 | rangi | if u call them via the object yep |
| 21:16 | jcamins | Excellent, thanks. |
| 21:18 | Oh bother. | |
| 21:18 | How do I create the object? | |
| 21:20 | Soupermanito | rangi, :) i will when i have something useful to say or ask :D |
| 21:24 | jcamins | Why doesn't Perl know what import means? |
| 21:25 | pastebot | "jcamins" at 98.14.120.176 pasted "Help me, oh wise rangi!" (8 lines) at http://paste.koha-community.org/178 |
| 21:26 | jcamins | Oh, because there's no such function. |
| 21:27 | rangi: ignore that question. It was pointless. | |
| 21:27 | rangi | :) |
| 21:28 | jcamins | Okay... now, why am I getting an undefined subroutine error? |
| 21:29 | Well. | |
| 21:29 | I'll be. | |
| 21:29 | It seems to have worked. | |
| 21:30 | (the answer, incidentally, is that there was a syntax error in the file that was imported at run-time) | |
| 21:42 | Soupermanito joined #koha | |
| 21:46 | jcamins | rangi: do you have any idea how to do this properly: @unlinked_headings{keys %$results->{'unlinked'}} += values $results->{'unlinked'}; |
| 21:47 | cait | @wunder Konstanz |
| 21:47 | huginn | cait: The current temperature in Taegerwilen, Taegerwilen, Germany is 7.1°C (10:44 PM CET on December 31, 2011). Conditions: Rain Showers. Humidity: 95%. Dew Point: 6.0°C. Windchill: 5.0°C. Pressure: 30.08 in 1018.5 hPa (Rising). |
| 21:50 | jcamins | rangi: I got it. |
| 21:50 | :) | |
| 21:50 | cait | yay :) |
| 21:50 | rangi++ jcamins++ | |
| 21:53 | jcamins | Dinner time. |
| 21:55 | kmkale_ joined #koha | |
| 22:58 | jcamins | wizzyrea++ # for signing off on things. |
← Previous day | Today | Next day → | Search | Index