I guess it should be reversed though. "foo.defined ? foo : bar;"
2012-11-28 33325, 2012
ianmcorvidae
yeah
2012-11-28 33356, 2012
ianmcorvidae
yeah, it supports it looks like
2012-11-28 33304, 2012
Freso
What happens if you `shift` and there are no more arguments?
2012-11-28 33307, 2012
Freso
(Back in Perl now. :))
2012-11-28 33321, 2012
ianmcorvidae
I think you get undef
2012-11-28 33329, 2012
ianmcorvidae
but it might crash on you
2012-11-28 33334, 2012
ianmcorvidae
you might appreciate Devel::REPL :P
2012-11-28 33343, 2012
ianmcorvidae
(install it, re.pl provides a perl repl)
2012-11-28 33318, 2012
ianmcorvidae
yeah, you get undef looks like
2012-11-28 33340, 2012
Freso
What's "a perl repl"?
2012-11-28 33338, 2012
ianmcorvidae
do you know what a repl is?
2012-11-28 33353, 2012
ianmcorvidae
because a 'perl repl' is a repl for perl :P
2012-11-28 33356, 2012
Freso
No. :)
2012-11-28 33359, 2012
ianmcorvidae
ah
2012-11-28 33303, 2012
ianmcorvidae
read-eval-print loop
2012-11-28 33304, 2012
Freso
If I knew, I doubt I'd've asked.
2012-11-28 33314, 2012
Freso
Ah.
2012-11-28 33321, 2012
ianmcorvidae
slightly more precise term for an interactive shell for a language, but
2012-11-28 33352, 2012
ianmcorvidae
amusingly, in common lisp, you can actually implement a (poor) one with (loop(print(eval(read))) :P
2012-11-28 33305, 2012
Freso
:)
2012-11-28 33346, 2012
ianmcorvidae
anyway, yeah, Devel::REPL gives you a nice way to test things like "what happens if you shift an empty list"
2012-11-28 33324, 2012
Freso
The TT docs don't seem to note how you can pass multiple variables to a FILTER. Or that it's only able to take one argument.
2012-11-28 33354, 2012
ianmcorvidae|alt joined the channel
2012-11-28 33306, 2012
ianmcorvidae|alt
hm
2012-11-28 33311, 2012
ianmcorvidae|alt
stupid connection
2012-11-28 33358, 2012
flamingspinach joined the channel
2012-11-28 33304, 2012
ianmcorvidae
anyway as I was saying, multiple variables you'd just pass separately
2012-11-28 33311, 2012
ianmcorvidae
e.g. var1 | filter + var2 | filter
2012-11-28 33316, 2012
ianmcorvidae
or such
2012-11-28 33351, 2012
ianmcorvidae
and if you want to pass multiple things to a given thing, you probably want a macro, not a filter
2012-11-28 33303, 2012
ianmcorvidae
if it must be done in perl, decompose it to something that can take one argument
2012-11-28 33345, 2012
Freso
Yeah. I was hoping I wouldn't have to fall back on regexes.
2012-11-28 33355, 2012
Freso
Hm. But perhaps I don't.
2012-11-28 33358, 2012
CatCat joined the channel
2012-11-28 33301, 2012
ianmcorvidae
as before, it might help if you explain what you're trying to do :P
2012-11-28 33319, 2012
Freso
\o/
2012-11-28 33327, 2012
Freso
ianmcorvidae: Where'd the fun be in that?
2012-11-28 33304, 2012
ianmcorvidae
it'd be less obnoxious than the long stream of questions :P but other than that
2012-11-28 33338, 2012
warp
>_<
2012-11-28 33304, 2012
mb-chat-logger joined the channel
2012-11-28 33315, 2012
warp
unrelated: swagger isn't looking very promising.
2012-11-28 33322, 2012
ianmcorvidae
ah :/
2012-11-28 33314, 2012
warp
mostly due to the interplay between 1) it's a spec with many implementations 2) the spec is not flexible/expressive enough to describe our API
2012-11-28 33319, 2012
ianmcorvidae
also unrelated: my head feeling like it's slightly overstuffed with cotton balls is not helping me get work done :/
2012-11-28 33324, 2012
ianmcorvidae
heh
2012-11-28 33302, 2012
ianmcorvidae
the ?inc thing isn't really that uncommon (under different names, of course), so I'm sort of surprised that's posing so much trouble
2012-11-28 33303, 2012
warp
so i/o docs looks more promising, there is no spec seperate from the implementation, so it's easy to mess with it and get some real work done :)
2012-11-28 33334, 2012
ianmcorvidae
heh, yeah
2012-11-28 33330, 2012
hawke_1 joined the channel
2012-11-28 33344, 2012
Prophet5_ joined the channel
2012-11-28 33358, 2012
warp
ianmcorvidae: cotton balls does not sound fun.
2012-11-28 33342, 2012
Freso
ianmcorvidae: Is https://pastee.org/ttmen because of bad/lacking configuration on my part, something missing on rika, or a genuine code bug?
2012-11-28 33344, 2012
ianmcorvidae
yeah, my body is showing remarkable persistence in failing to get over this illness
2012-11-28 33356, 2012
warp
warp has changed the topic to: tropical week | http://musicbrainz.org/#devel | agenda: reviews, MBS-2021 (DR/hawke), MBS-5035 (various, ian can talk about it), caa (warp)
2012-11-28 33320, 2012
ianmcorvidae
Freso: rika's static DB hasn't been updated for the schema change, so probably that
2012-11-28 33338, 2012
Freso
ianmcorvidae: Okay.
2012-11-28 33351, 2012
ianmcorvidae
guess I should fix that :)
2012-11-28 33317, 2012
Freso
Does anyone know of a user profile of a deleted user I can see? Or is it even possible to see user profiles of deleted users?
ianmcorvidae has changed the topic to: tropical week | http://musicbrainz.org/#devel | agenda: reviews, MBS-2021 (DR/hawke), MBS-5035 (various, ian can talk about it), caa (warp)
kepstin-work notes that on http://people.scs.carleton.ca/~cwalton3/temp/mbmockups/ajax/?artist=cd4f5ac3-5e0e-45a0-ae01-32c3cf117071 he is doing no language detection whatsoever, and is just using the first wikipedia link in the webservice response :/
2012-11-28 33347, 2012
kepstin-work
i should fix that...
2012-11-28 33318, 2012
ianmcorvidae
apparently it's completely failing to actually sort the list
2012-11-28 33320, 2012
ianmcorvidae
bah
2012-11-28 33334, 2012
hawke_1 joined the channel
2012-11-28 33350, 2012
Freso
ianmcorvidae: Can't you map it to $lang => $lang.wp.org/... falling back to looking up $lang against $random.wp.org falling back to using $random.wp.org?
2012-11-28 33305, 2012
ianmcorvidae
that's largely what it does, yes
2012-11-28 33323, 2012
ianmcorvidae
when I do the sorting correctly :P
2012-11-28 33325, 2012
Freso
Well... okay then. :)
2012-11-28 33345, 2012
Freso
(That was also something like that I'd imagined to do for the Bottle.)
2012-11-28 33335, 2012
ianmcorvidae
yeah; what it does is looks at interface language, if it's set chooses that as the "wanted language", otherwise en