#musicbrainz-devel

/

      • bitmap is working on http://tickets.musicbrainz.org/browse/PICARD-17 and wondering if the entire list of locales we use should be selectable
      • 2011-10-03 27649, 2011

      • ianmcorvidae joined the channel
      • 2011-10-03 27651, 2011

      • kepstin-laptop
        bitmap: you could make it default to the user's current user interface locale
      • 2011-10-03 27659, 2011

      • bitmap
        kepstin-laptop: I figured it should default to english, since it would replace the "translate foreign artist names to English" checkbox and use the same config variable
      • 2011-10-03 27631, 2011

      • bitmap
        only the new option would use a generic description like "translate artist names to this locale:" or something, and have a dropdown menu
      • 2011-10-03 27628, 2011

      • bitmap
        the list of locales we allow for aliases is rather large though, and it's not clear to me what should be done if someone selected "English United States" (if that should even be listed)
      • 2011-10-03 27640, 2011

      • kepstin-laptop
        well, the match should generally first try the exact locale the user picked (e.g. en_US), then generic language (e.g. en), then maybe fallback to sort name?
      • 2011-10-03 27607, 2011

      • ianmcorvidae
        the default should be "don't translate", also
      • 2011-10-03 27617, 2011

      • kepstin-laptop
        of course.
      • 2011-10-03 27619, 2011

      • ianmcorvidae
        but that's nitpicking :P
      • 2011-10-03 27644, 2011

      • kepstin-laptop thinks of it as an opportunity to learn how to read new scripts ;)
      • 2011-10-03 27654, 2011

      • ianmcorvidae
        yup
      • 2011-10-03 27647, 2011

      • kepstin-laptop
        that reminds me of the other issue with the alias locale thing; there's no way to specify what script an alias is in if the language that's set can be written in multiple scripts
      • 2011-10-03 27629, 2011

      • kepstin-laptop isn't sure how often that would be the case tho; probably fairly rare
      • 2011-10-03 27645, 2011

      • ianmcorvidae
        not sure how many languages are customarily written in multiple scripts
      • 2011-10-03 27654, 2011

      • ianmcorvidae
        japanese vs. kana, I suppose
      • 2011-10-03 27613, 2011

      • kepstin-laptop
        hmm. how does it deal with the same name being used in multiple languages?
      • 2011-10-03 27646, 2011

      • kepstin-laptop
        say, some artist with a japanese name who uses the same latin transliteration on german, french, and english releases?
      • 2011-10-03 27608, 2011

      • kepstin-laptop
        can you add the same alias multiple times, each time with a different locale set?
      • 2011-10-03 27620, 2011

      • kepstin-laptop notes that the locale aliases /do/ work quite nicely for those cases where an artist is known by one name in the UK and a different name in the US for legal reasons.
      • 2011-10-03 27600, 2011

      • Leftmost
        Japanese is generally considered to be a single script, albeit composed of others.
      • 2011-10-03 27619, 2011

      • ianmcorvidae
        not according to our database
      • 2011-10-03 27627, 2011

      • ianmcorvidae
        hiragana, katakana, hiragana+katakana, and japanese
      • 2011-10-03 27630, 2011

      • ianmcorvidae
        are all four separate scripts :P
      • 2011-10-03 27646, 2011

      • Leftmost
        I'm guessing it's based on ISO-15924.
      • 2011-10-03 27601, 2011

      • ianmcorvidae
        it's based on some ISO standard
      • 2011-10-03 27603, 2011

      • ianmcorvidae
        so probably
      • 2011-10-03 27627, 2011

      • Leftmost
        "Japanese" is meant to refer to the whole of the script. Hiragana, katakana and kanji.
      • 2011-10-03 27638, 2011

      • ianmcorvidae
        even so
      • 2011-10-03 27639, 2011

      • Leftmost
        Katakana as a separate entry is useful for, say, Ainu.
      • 2011-10-03 27644, 2011

      • ianmcorvidae
        yeah
      • 2011-10-03 27659, 2011

      • ianmcorvidae
        even so, the difference between an alias in "Japanese" and one in "Hiragana+Katakana" is meaningful
      • 2011-10-03 27628, 2011

      • Leftmost
      • 2011-10-03 27604, 2011

      • ianmcorvidae
        presumably that didn't require dumping into the release editor, but :P
      • 2011-10-03 27615, 2011

      • Leftmost
        ianmcorvidae, it is, but maybe not in the artist locale alias bit for translating in picard.
      • 2011-10-03 27628, 2011

      • Leftmost
        Err, no, it didn't. I forget these things. :P
      • 2011-10-03 27639, 2011

      • Leftmost
        I'm tired. My brain is dead from maths. Other plausible excuses.
      • 2011-10-03 27604, 2011

      • ianmcorvidae
        less math, more haskell
      • 2011-10-03 27605, 2011

      • ianmcorvidae
        or something
      • 2011-10-03 27641, 2011

      • Leftmost
        Sadly, Haskell doesn't get me a better grade in my courses.
      • 2011-10-03 27654, 2011

      • ianmcorvidae
        choose better courses :P
      • 2011-10-03 27614, 2011

      • Leftmost
        Other courses don't get me a maths degree. :P
      • 2011-10-03 27635, 2011

      • Leftmost
        And hell, even the CS department at my uni would be scared by Haskell.
      • 2011-10-03 27639, 2011

      • ianmcorvidae
        choose a better school/degree, then :P
      • 2011-10-03 27645, 2011

      • ianmcorvidae
        haha
      • 2011-10-03 27654, 2011

      • ianmcorvidae
        clearly 'choose a better school' is the one here
      • 2011-10-03 27613, 2011

      • Leftmost
        I didn't have much choice when I chose. And now I'm too close to graduating to go elsewhere.
      • 2011-10-03 27622, 2011

      • ianmcorvidae
        yeah
      • 2011-10-03 27632, 2011

      • ianmcorvidae
        I understand these things, it's just more fun to pester you
      • 2011-10-03 27641, 2011

      • Leftmost
        I may as well finish and then go work on another degree that won't benefit from Haskell.
      • 2011-10-03 27607, 2011

      • Leftmost is curious about rewriting his syntactic parser in Haskell, though...
      • 2011-10-03 27612, 2011

      • ianmcorvidae
        I'm hoping you meant "will" there :P
      • 2011-10-03 27620, 2011

      • ianmcorvidae
        well, parsing
      • 2011-10-03 27621, 2011

      • ianmcorvidae
        haskell
      • 2011-10-03 27627, 2011

      • ianmcorvidae
        good pairing there XD
      • 2011-10-03 27648, 2011

      • Leftmost
        I didn't mean "will" there. I'm not a computer scientist. :P
      • 2011-10-03 27606, 2011

      • ianmcorvidae
        but but ALL degrees should benefit from Haskell ;)
      • 2011-10-03 27614, 2011

      • Leftmost
        ianmcorvidae, I would like you to evaluate the truth of a statement of logic for me: "should" = "do"
      • 2011-10-03 27659, 2011

      • ianmcorvidae passes through the ';)' monad, reaches conclusion "sure, why not"
      • 2011-10-03 27631, 2011

      • Leftmost
        Huh. I don't think we ever learned statements could take that truth value.
      • 2011-10-03 27638, 2011

      • Leftmost
        Should make these proofs I have to write a lot easier to manage.
      • 2011-10-03 27642, 2011

      • ianmcorvidae
        haha
      • 2011-10-03 27602, 2011

      • Leftmost
        "The sum for n running from 0 of B_n/n! t^n increases without bound. Sure, why not? Therefore, the radius of convergence..."
      • 2011-10-03 27603, 2011

      • Leftmost
        Good night, fair ianmcorvidae.
      • 2011-10-03 27646, 2011

      • ianmcorvidae
        good night
      • 2011-10-03 27651, 2011

      • ianmcorvidae
        probably myself soon, as well
      • 2011-10-03 27638, 2011

      • dinog joined the channel
      • 2011-10-03 27654, 2011

      • warp
        hello!
      • 2011-10-03 27603, 2011

      • ruaok joined the channel
      • 2011-10-03 27601, 2011

      • ruaok_ joined the channel
      • 2011-10-03 27610, 2011

      • warp
        goodevening ruaoks
      • 2011-10-03 27634, 2011

      • ruaok
        hi warp!
      • 2011-10-03 27657, 2011

      • djce joined the channel
      • 2011-10-03 27659, 2011

      • warp
        ocharles: I get a crash when the release editor tries to access ->entity on an Edit::Artist::Create instance.
      • 2011-10-03 27624, 2011

      • warp
        ocharles: did anything change with those edits recently? (this occurs when trying to reproduce MBS-3414).
      • 2011-10-03 27602, 2011

      • reosarevok joined the channel
      • 2011-10-03 27622, 2011

      • ijabz_ joined the channel
      • 2011-10-03 27644, 2011

      • ruaok joined the channel
      • 2011-10-03 27651, 2011

      • ruaok
        warp: ping
      • 2011-10-03 27650, 2011

      • ruaok
        warp: read your email please!
      • 2011-10-03 27650, 2011

      • warp
        ok!
      • 2011-10-03 27616, 2011

      • warp
        ruaok: about the search servers needing regular kicking?
      • 2011-10-03 27624, 2011

      • ruaok
        yep.
      • 2011-10-03 27626, 2011

      • ruaok
        thanks.
      • 2011-10-03 27633, 2011

      • warp
        ok, I'll try to keep an eye on it.
      • 2011-10-03 27636, 2011

      • ruaok
        thx
      • 2011-10-03 27612, 2011

      • flamingspinach joined the channel
      • 2011-10-03 27640, 2011

      • ocharles
        warp: yes
      • 2011-10-03 27646, 2011

      • ocharles
        entity no longer exists
      • 2011-10-03 27601, 2011

      • ocharles
        you have to use entity_id and $c->model('Artist')->get_by_id
      • 2011-10-03 27608, 2011

      • ocharles
        but I thought I fixed all references to that?
      • 2011-10-03 27615, 2011

      • warp
        ocharles: well, apparently not :)
      • 2011-10-03 27605, 2011

      • ocharles
        where's the reference to ->entity?
      • 2011-10-03 27601, 2011

      • ocharles
        oh, I see some, bah
      • 2011-10-03 27619, 2011

      • ocharles
        would you like me to fix them?
      • 2011-10-03 27621, 2011

      • warp
        Wizard/ReleaseEditor.pm, around line 930, missing entities
      • 2011-10-03 27639, 2011

      • warp
        ocharles: yes please. you can reproduce the crash with the instructions in MBS-3414
      • 2011-10-03 27617, 2011

      • ocharles
        warp: pushed, but I can't reproduce that ticket :)
      • 2011-10-03 27658, 2011

      • warp
        ocharles: pushed in master?
      • 2011-10-03 27608, 2011

      • ocharles
        yea
      • 2011-10-03 27635, 2011

      • warp
        ok, I'll give that a try.
      • 2011-10-03 27611, 2011

      • warp
        no, still get it.
      • 2011-10-03 27614, 2011

      • warp
        [error] Caught exception in MusicBrainz::Server::Controller::ReleaseEditor::Edit->edit "Can't locate object method "entity" via package "MusicBrainz::Server::Edit::Artist::Create" at /home/warp/code/mb/script/../lib/MusicBrainz/Server/Wizard/ReleaseEditor.pm line 929."
      • 2011-10-03 27632, 2011

      • warp
        oh, probably forgot to pull.
      • 2011-10-03 27640, 2011

      • warp
        ocharles: yes, you fixed it. artist was properly created, etc..
      • 2011-10-03 27606, 2011

      • ocharles
        magic!
      • 2011-10-03 27652, 2011

      • pecastro joined the channel
      • 2011-10-03 27603, 2011

      • warp
        wow, test.musicbrainz.org is a bit messed up.
      • 2011-10-03 27619, 2011

      • ocharles
        warp: how so?
      • 2011-10-03 27630, 2011

      • warp
      • 2011-10-03 27655, 2011

      • warp
      • 2011-10-03 27644, 2011

      • ocharles
        well, re the width stuff, that's cause I was playing around trying to get overflow stuff working
      • 2011-10-03 27658, 2011

      • ocharles
        time for a clean out though I think :)
      • 2011-10-03 27612, 2011

      • warp nods.
      • 2011-10-03 27625, 2011

      • ocharles
        but we should be releasing today anyway
      • 2011-10-03 27627, 2011

      • ocharles
        so we can just reset
      • 2011-10-03 27646, 2011

      • warp
        I have to run off to the muncipality whatever before it closes at 15:00
      • 2011-10-03 27651, 2011

      • warp
        bbl
      • 2011-10-03 27619, 2011

      • pecastro joined the channel
      • 2011-10-03 27624, 2011

      • djce
        ijabz_: hi
      • 2011-10-03 27626, 2011

      • ijabz_
        djce: hi dave
      • 2011-10-03 27645, 2011

      • djce
        Just chatting to our java guru here at work about our search server troubles
      • 2011-10-03 27600, 2011

      • djce
        you know, where it runs out of file descriptors (I assume you're aware of this)
      • 2011-10-03 27616, 2011

      • djce
        he suggests using "findbugs" http://findbugs.sourceforge.net/ on the codebase
      • 2011-10-03 27631, 2011

      • djce
        "probably caused by bad error handling code in Java. Probably a try/catch block without a finally statement to close the file handle / socket."
      • 2011-10-03 27615, 2011

      • ijabz_
        Right, I was aware that one of the servers was running out of file handles, but do both do it ?
      • 2011-10-03 27632, 2011

      • djce
        I think so, yes.
      • 2011-10-03 27638, 2011

      • djce
        I'll check the logs.
      • 2011-10-03 27615, 2011

      • ijabz_
        My code doesn't really directly deal with files themselves, file handling is done by the lucene library
      • 2011-10-03 27632, 2011

      • ijabz_
        and I would be surprised if it has this kind of error
      • 2011-10-03 27640, 2011

      • ijabz_
        Yeah, check logs and let me know
      • 2011-10-03 27651, 2011

      • ocharles
        I'm pretty sure it affects both servers
      • 2011-10-03 27600, 2011

      • ocharles
        and if you open a resource via lucene, you'd still have to close it
      • 2011-10-03 27643, 2011

      • ijabz_
        I'll have a look but AFAIK I only open one resource per index, i.e 7 resources and thats it
      • 2011-10-03 27609, 2011

      • ijabz_
        once opened they remain open for the duration of search server running
      • 2011-10-03 27644, 2011

      • warp returns
      • 2011-10-03 27646, 2011

      • ijabz_
        Also, can configure search servers to use mapped mode ?init=mmap which doesn't use files (at least not in the same way)
      • 2011-10-03 27627, 2011

      • ijabz_
        Haven't received anything from ruaok about this, so Im in the dark about what his investigations uncovered
      • 2011-10-03 27601, 2011

      • ocharles
        all in the chatlogs
      • 2011-10-03 27632, 2011

      • ocharles
        though this is why I'm trying to push people to discuss things via tickets
      • 2011-10-03 27635, 2011

      • ocharles
        much easier to track stuff
      • 2011-10-03 27650, 2011

      • ijabz_
        + 1 on that
      • 2011-10-03 27645, 2011

      • voiceinsideyou joined the channel
      • 2011-10-03 27600, 2011

      • ijabz_
        from logs , seems ruaok thinks that tomcat could actually be the problem
      • 2011-10-03 27611, 2011

      • ocharles
        i know he wants to change from tomcat, but I'm not sure why that is
      • 2011-10-03 27611, 2011

      • ijabz_
        Well assuming something on the search server is leaking file handles sockets, and its not the search server code, or the lucene libs, or JVM it only leaves tomcat
      • 2011-10-03 27622, 2011

      • ijabz_
        Could try updating to latest version though first
      • 2011-10-03 27612, 2011

      • ijabz_
        Also we could update Lucene, although will introduce deprecations to be cleared yup I think it will still work , I'll check in a minute
      • 2011-10-03 27639, 2011

      • CatCat
        [06:15] kepstin-laptop that reminds me of the other issue with the alias locale thing; there's no way to specify what script an alias is in if the language that's set can be written in multiple scripts
      • 2011-10-03 27605, 2011

      • CatCat
        in india they have idk 3-4 languages, and 9-13 scripts afaik