#musicbrainz-devel

/

      • kurtjx joined the channel
      • kurtjx joined the channel
      • kurtjx joined the channel
      • ianmcorvidae
        hm, I guess I should sign up for MHD london if I'm ostensibly going, shouldn't I
      • CallerNo6 joined the channel
      • bloopletech joined the channel
      • bloopletech
        Hello, I am currently setting up a local copy of the musicbrainz server software and loading a dump, so I can process my music collection more quickly
      • I am up to the initdb stage, but with the most recently available dump, I get a duplicate key error in createindexes
      • Is this a known issue at all? Can I do something about this so I can successfully import the dump?
      • ianmcorvidae
        it's known
      • comment out the relevant index
      • it'll stop being a problem with the next dump, but the current one it's still a problem :(
      • if you've already gotten as far as the CreateIndexes stage, what you can do in order to not need to rerun the import step is:
      • a.) comment out the broken index(es) (I think it may just be label_idx_null_comment at this point though)
      • b.) comment out the stuff that's already been done in InitDb.pl
      • bloopletech
        oh, awesome!
      • Sorry I went away thinking no one was on
      • ianmcorvidae
        specifically, for b.): lines 236-276
      • bloopletech
        doing now
      • ianmcorvidae
        no worries, I was just at the store :)
      • but yeah, those indexes aren't super necessary, they prevent some situations that we don't want to happen, but on a mirror server they won't anyway, since you aren't editing things there :)
      • bloopletech
        ok sure
      • thanks for the help, I'm retrying now
      • kepstin-laptop joined the channel
      • luks
        nikki: pong
      • bloopletech joined the channel
      • djce joined the channel
      • ijabz joined the channel
      • adhawkins joined the channel
      • nikki
        luks: I was wondering if you knew whether gettext plurals should be used when the string doesn't actually contain numbers. I could have sworn I read somewhere that they shouldn't, but then couldn't find anything to support that
      • (the thing in question being "type" or "types" on the cover art tab, depending on the number of types displayed for the cover art)
      • dsteiner joined the channel
      • warp
        hello!
      • ijabz joined the channel
      • luks
        nikki: no idea, but I see nothing technically wrong with it
      • I can't think of a language that would actually depend on the number in there
      • nikki
        we did try using plural forms there and ran into problems with translations being wrongly merged >_<
      • since the singular also exists without a plural in other places
      • luks
        maybe it just needs a context?
      • nikki
        no idea. no matter how I look at it, it's stupid to encounter "type" on its own and "type" with the plural "types" and then think the best way to resolve it is to to throw away the plural :P
      • ianmcorvidae
        gettext considers msgid "blah" + msgid_plural "blahs" to be duplicate with just plain msgid "blah"
      • ijabz joined the channel
      • luks
        yeah, that's why I'd add context to it
      • ianmcorvidae
        well, plural + context is usually wrong (generally it's encouraged to just put it into the string, with the plural -- since typically you're interpolating something)
      • I could add it to all the singular ones, but that's also annoying :P
      • luks
        how are the strings displayed?
      • ianmcorvidae
        er, not sure what you mean
      • luks
        is it really just singular/plural without any number anywhere?
      • nikki
        type: front
      • types: back, spine
      • ianmcorvidae
        yeah
      • luks
        ah, then I'd translate them separately
      • ianmcorvidae
        it's <string:> <list of types>
      • luks
        in slovak we have 3 plural form, but I would use the third one in this case
      • ianmcorvidae
        yeah, I just am wary of any time I do "if whatever.size = 1, l(whatever), else l(whatever-plural)"
      • luks
        it would be wrong
      • but that's the right thing to do here
      • er, I meant "I wouldn't use"
      • nikki was gonna say :)
      • ianmcorvidae
        yeah
      • luks
        "1 typ, 2 typy, 5 typov"
      • but "typov: a, b, c, d, e, f" is totally wrong in slovak
      • nikki is not imagining things, woo :D
      • ianmcorvidae
        in short, the pluralization rules are different in this case so don't worry about the ln() stuff?
      • (just making sure I'm understanding what you're saying)
      • luks
        yes, because you don't really know the total count
      • (at the language level)
      • ianmcorvidae
        yeah
      • despite the fact the *code* can pass in an exact count, the language still needs to be written as though it's non-specific
      • makes sense
      • luks
        the hard thing to do is how to deal with 0 :)
      • djce joined the channel
      • ianmcorvidae
        heh
      • nikki
        which I suppose explains why I don't find "types: foo" that odd, while "1 types" is just wrong
      • ianmcorvidae
        well, germanic plurals is 1 vs. everything else (0 included)
      • nikki
        but not french, afaik
      • luks
        I'd probably always use plural there
      • just to avoid the (none) case
      • ianmcorvidae
        which is I guess how we'd have to do it sans-ln()
      • adhawkins joined the channel
      • djce joined the channel
      • warp: so, are you planning to ship your schema change stuff to the branch, or has that bug now gotten postponed 6 months?
      • warp
        ianmcorvidae: MBS-4627? I was waiting for an OK from ocharles
      • mb-chat-logger
      • ianmcorvidae
        this stuff ostensibly ships monday
      • I don't know about merging everything else, but at least the actual changes to the schema need to be in the branch IMO
      • warp
        afaics the branch is ready for merging entirely
      • ocharles: ping :)
      • ijabz joined the channel
      • stefans_ joined the channel
      • CatBuss joined the channel
      • ruaok joined the channel
      • ruaok joined the channel
      • ocharles
        warp: pong
      • warp
        ocharles: apparently http://codereview.musicbrainz.org/r/2304/ is not in the schema change branch yet. can I merge that in?
      • ocharles
        i'll review it now
      • ianmcorvidae
        ocharles, warp: I see ocharles' comments are all code stuff -- can we get the schema change scripts themselves into the branch so that part can get tested?
      • (like we have with several other tickets)
      • ocharles
        yea, the schema is fine
      • ianmcorvidae
        k, that should probably get into the schema change branch ASAP then
      • what with the five days until we supposedly release this :)
      • I, however, am going to bed so I don't miss the meeting at 19:00 by sleeping through it -- tell me if I should do that merge when I wake up
      • ocharles
      • warp can do that merge
      • ianmcorvidae
        block opening braces for subs I feel like I've more often seen on the next line
      • rest looks reasonable to me
      • ianmcorvidae goes to bed now, really XD
      • nikki thought the block opening stuff was as inconsistent as the rest of our whitespace
      • nikki
        but it's not like I look at it as often as you guys :P
      • ocharles: when exactly should whitespace be used before ()? it's not that I don't agree (totally throws me every time I see a space I wasn't expecting), but given that you write "if ( ..." later on, it's not *always* the case :)
      • warp returns from lunch.
      • uk
        s/pareth/parenth/, s/parenthesis/parentheses/g
      • nikki
        heh, I was just thinking that
      • nikki also wonders if alphabetical is case-sensitive or not
      • I think I might have too much time on my hands, 'cause I've wondered the same thing (both about spacing and ordering of imports) with my own stuff :P
      • ocharles
        nikki: I was meant to qualify that with 'except for flow control' where we do use a leading space
      • warp
        ocharles: the leading space around parens is a habit I should unlearn.
      • ocharles
        i'm afraid so
      • warp
        ocharles: but I disagree with the braces, I much prefer matching braces in the same column.
      • ocharles
        hm?
      • oh
      • so on a separate line
      • warp
        yes
      • ocharles
        it just leads to less code on the screen, and more I have to hold in my head
      • warp
        it leads to clearly visible start/end points for blocks :)
      • ocharles
        so does indentation
      • warp
        ocharles: anyway, no objections to the other bits.
      • ocharles
        i'll need to flesh it out a bit more and open it for general discussion
      • nikki prefers them on the same line too
      • warp
        ocharles: are you going to write a syntax linter go check these? :P
      • s/go/to/
      • ocharles
        i wish i could
      • CatBuss joined the channel
      • uk
        GNU Indent is specific to C, I think.
      • warp
        Perl::Critic is the canonical solution for perl I guess?
      • ocharles
        that's more for actual code linting
      • warp
        Perl::Critic::Policy::CodeLayout has checks for a couple of things you've listed in the linked gist.
      • well, one thing :)
      • ocharles
        we have t/author/no-tabs.t for that too
      • ijabz joined the channel
      • reosarevok joined the channel
      • kurtjx joined the channel
      • njh
        reosarevok: do you think it would be a good idea for me to submit the BBC artwork for the releases we have reviewed?
      • reosarevok
        Can't hurt, I think
      • (make sure they have no existing front image, though)
      • njh
        sure
      • reosarevok
        (in the archive, from Amazon is OK)
      • njh
        yeah
      • Should have bigish images for them
      • we are about to rebuild our tools