#musicbrainz

/

      • reoafk joined the channel
      • Kryztof joined the channel
      • navap
        40 min later, I still can't figure out how to sort the releases :(
      • ijabz joined the channel
      • I have a feeling it's because I never know when to use a @ or a $ or a @$ or any other concoction
      • ianmcorvidae
        heh, yeah, this is a problem I frequently have as well :/
      • navap
        I'm trying to sort $releases which is an array of hashes. https://github.com/navap/musicbrainz-server/blo...
      • ianmcorvidae
        perhaps some variant of (n)sort_by
      • navap
        I've been fiddling with sort { $a->{name} <=> $b->{name} } $releases
      • ianmcorvidae
        maybe 'use List::UtilsBy qw( sort_by );' and use sort_by { $_->{name} } @$releases or so
      • and assign it to something, I guess
      • I wonder how that works on arrayrefs versus arrays, I never got how that all worked in perl
      • VxJasonxV
        I never understood refs in perl either.
      • navap
        my @sorted = sort_by { $_->{name} } @$releases; gives me only one release. It's a release that starts with a so that's a little promising
      • VxJasonxV
        I assume I'll understand @$releases as soon as I see that source?
      • could you gist the data itself?
      • (P.S. Data::Dumper)
      • ianmcorvidae
        with Data::Dumper, yeah, hah
      • and $releases is an arrayref of hashes (or maybe hashrefs) that describe releases
      • sort_by takes an array; hence @$releases
      • unless I'm totally confused
      • jesus2099 joined the channel
      • which is probable :P
      • luks
        is it a long list of releases, or just a few user-selected ones?
      • navap
        Here's a dump of the first few release http://pastie.org/3690226
      • luks
        because normally you wouldn't want to sort thme in perl
      • ianmcorvidae
        luks: it's the results of a query based on CDTOC
      • jesus2099
        CatCat: your cool quotes I loved was « i'd say he did *enough* … *puts on shades* » :D
      • luks
        in which case it seems they should be sorted in the query
      • ianmcorvidae
        so I guess that means modify Data::Release::find_for_cdtoc, or possibly query_to_list_limited
      • jesus2099
        kepstin-laptop: Thanks I’m really flattered, it was a fun script to write, for every script I write I love to try new funny stuff
      • luks
        but I don't know the exact code, maybe it wouldn't be so useful
      • ianmcorvidae
        oh, actually, looks like it'd be reordering an ORDER BY statement
      • that's not too bad
      • jesus2099
        Hey tech guys out there, have you noticed that NOW all artists got an artist credit entry = name ? http://tickets.musicbrainz.org/browse/SEARCH-198
      • ianmcorvidae
        making sure nowhere else needs it sorted by date before name, of course, but
      • navap
        Huzzah!
      • ianmcorvidae
        navap: yay! by changing the SQL, or?
      • navap
        ianmcorvidae: Yeah, the sql
      • ianmcorvidae
        somehow I always forget that option, good thing luks is around to keep us in line :)
      • VxJasonxV
        I assume $releases is the root element?
      • considering that's where the array you want is.
      • ianmcorvidae
        the problem's fixed anyway, by fixing the SQL
      • not sure what you mean by root element, though
      • navap
        I think he meant of the data dump, which it was
      • ianmcorvidae
        ah, yes
      • hrglgrmpf joined the channel
      • jacobbrett
        Could really use disambiguation comment search for live recordings...
      • mchou joined the channel
      • navap
        There, tracklists + JS added. Time for bed.
      • Thanks luks and ianmcorvidae!
      • djce joined the channel
      • CatCat
        jesus: :)
      • JoeLlama joined the channel
      • JoeLlama joined the channel
      • jmv_ joined the channel
      • ijabz joined the channel
      • Kryztof joined the channel
      • AAAHHH i am amused
      • using http://translate.google.com/ while typing in "Estonian" for a moment the transaltor on the right side was like "Er..."
      • Knio_ joined the channel
      • _5moufl
        I can't find the thing reo linked me about the new guidelines for classical VA releases
      • or not VA actually
      • saying the main artists should be Composer, Composer; Performer, Performer
      • CatCat
        Now grooving to: Noel Fielding & Julian Barratt ~ Naboo and Bollo (0:34) (from The Mighty Boosh Music) (2007)
      • loi
      • djce joined the channel
      • jesus2099 joined the channel
      • jesus2099
        nikki: I’m trying to make a jQuery.get() or jQuery.ajax() to work but it doesn’t perform my http request at all (I sniff packets)… I even copied your code from wikipedia.user.js no effect… is there a way to understand or to debug those functions ?
      • someone knows jquery here ?
      • CatCat
        i read "I sniff packets" out of context and was like "huh?" are you banned from the post office?
      • jesus2099
        héhé :D
      • what does sniff mean btw ?
      • to attract air in our nose ?
      • nikki: don’t worry I’ve made it the old school way (iframe)
      • nikki: nikkimini : do you know how long does the JASRAC session timeout ?
      • if based on JSESSIONID cookie, it should stay as long as browser… but iirc I was disconnected sometimes, does someone uses JASRAC here, are you disconnected sometimes ?
      • djce joined the channel
      • reosarevok joined the channel
      • CatCat
        sniff? isn't it like "smelling"?
      • djce joined the channel
      • jacobbrett
        CatCat: A sniff (physical action of drawing air through the nose) could involve smelling the air's aromas--the latter part analogous to detected data packets.
      • reosarevok
        CatCat: the computer people want to feel they are not boring and can be poets too
      • (sniff still makes sense, but really, someone explain "surf the web" to me)
      • CatCat
        someoen explain Chinese Hong Kong SAR China t ome
      • SAR?
      • what is that
      • i have translated almost 50%
      • not bad eh
      • i also wanted to know. if i could "Join the team" pn https://launchpad.net/~musicbrainz-developers or if thats jsut for developers
      • reosarevok
        CatCat: "Hong Kong Special Administrative Region of the People's Republic of China"
      • CatCat
        hmm, i have to include that in the transaltion? or i guess a norwegia nversion.. lwet me think
      • yes
      • reosarevok
        And doubt anyone even knows about that team
      • reosarevok had never heard of it, and I see our current main devs are not there either
      • CatCat
        what bitmap ,ad dupuy is!
      • erh i meaqn "language devs"
      • i remember dupuy, that guy, he's the one who showed me the ropes on mb when i was a noob
      • i miss him.
      • but it's so great to see he is til part of mb somehow
      • i think he's on the mailing list also
      • ehrgeiz joined the channel
      • reosarevok
        http://musicbrainz.org/user/dupuy/edits he actually edited a bit in December
      • CatCat
        \o/
      • lol
      • a "special administrative region (SAR)"
      • in norwegian is
      • "spesiell administrativ region "
      • CatCat shakes head inhouse style
      • reosarevok
        heh
      • At least you don't have to think, SAR is SAR
      • CatCat
        yes
      • a thing that bugs me is that if i type like Chinese Macau SAR China in google transalte ,the caps are not retained
      • aseem_ joined the channel
      • aseem joined the channel
      • djce joined the channel
      • reosarevok
        pffft
      • Ok
      • I'm clearly not going to scan 500 pages of booklets
      • (I have several booklets here with 30+ pages each, plus one with 200)
      • (classical stuff)
      • I guess I should still scan the pages with credits in them though :)
      • DarkAudit joined the channel
      • CatCat
        for <abbr title="Subversion">SVN</abbr> Viewer
      • what is this? a program or a person?
      • timo
        SVN is a version control system
      • kurtjx joined the channel
      • reosarevok
        Like github
      • More or less
      • So, translation is SVN
      • _5moufl
        14°42'37" reosarevok> (I have several booklets here with 30+ pages each, plus one with 200)
      • CatCat
        ARG i mean..
      • _5moufl
        you clearly shouldn't scan those unless you're crazy
      • but you're not
      • CatCat
        how do itransalte. .i eman what parts? SVN Viewer?
      • viewer
      • nevermind thoguh, i am working on picard now, i'll do server another time
      • reosarevok
        _5moufl, for the first 30+ one I'm scanning like 8 pages
      • navap
        Is this MB translation or Picard?
      • reosarevok
        Tracklists, credits and the English notes
      • Sorry French and German
      • (and photos)
      • But yeah, dunno if I'll keep all of that or stick to credits + tracklists
      • When I'm tired of it
      • kepstin-laptop joined the channel
      • jacobbrett
        _5moufl: Woah, I gotta know where in the world it is standard to use degrees, minutes and seconds for time display?
      • _5moufl
        nowhere
      • I thought it looked nice :x