#musicbrainz-devel

/

      • navap
      • jensl1 joined the channel
      • ruaok joined the channel
      • ruaok joined the channel
      • ruaok joined the channel
      • ruaok joined the channel
      • brianfreud joined the channel
      • brianfreud joined the channel
      • warp_ joined the channel
      • fatih joined the channel
      • fatih
        nikki: are you around?
      • nikki
        yes
      • fatih
        how is the collab artist conversion script supposed to work for artists with more than one first name?
      • currently it ignores them
      • if ($member->{name} =~ /^\w+ \w+$/) {
      • looks for only one space in the name
      • so this line never works
      • $last =~ s/.*? (((van|von|de) )?[^ ]+)$/$1/i;
      • am i wrong?
      • nikki
        hmm...
      • I think you're right
      • fatih
        /^\w+ \w+( \w+)?$/ will match artists with 2 or 3 names I think
      • nikki nods
      • nikki prods luks
      • ^ by "never works" I meant the (van|von|de) part never matches
      • outsidecontext joined the channel
      • nikki
        outsidecontext: thanks for the hint yesterday, I got it mostly doing what I want, but now another question... is tagger script stuff done before or after plugins?
      • outsidecontext
        nikki: after the plugins
      • avi| joined the channel
      • avi| has left the channel
      • avi|1 joined the channel
      • avi|1 has left the channel
      • ruaok joined the channel
      • Leftmost joined the channel
      • jdamcd joined the channel
      • avi| joined the channel
      • ijabz joined the channel
      • Sephiroth77 joined the channel
      • Sephiroth77 has left the channel
      • ruaok joined the channel
      • ijabz joined the channel
      • brianfreud
        Ok, this is really obscure, but tracking down an annoying bug in one of my scripts, I've found a wierd server issue. The server throws an error 500 if you post an artistname param value to add release which includes an encoded ü (%FC), é (%E9), ç (%E7) or ö (%F6).
      • nikki
        use utf-8
      • brianfreud
        those are encodings straight from escape()...
      • nikki
        then convert to utf-8 before escape()ing?
      • brianfreud tries encodeURIComponent()
      • and after writing it so many times in perl, I had to stop myself from writing "use utf8;" in response to that :P
      • brianfreud
        lol
      • yeah encodeURIComponent() works; seems encode() doesn't do proper utf-8 encoding
      • sorry, escape()
      • input: üéçö escape: %FC%E9%E7%F6 encodeURI/encodeURIComponent: %C3%BC%C3%A9%C3%A7%C3%B6
      • nikki
        hah, I googled and the first result was http://xkr.us/articles/javascript/encode-compare/ which says "Due to this shortcoming and the fact that this function fails to handle non-ASCII characters correctly, you should avoid use of escape() whenever possible."
      • djce joined the channel
      • brianfreud joined the channel
      • brianfreud joined the channel
      • brianfreud joined the channel
      • ijabz joined the channel
      • ijabz
        Hi, just trying to setup the latest postgres db, what do I have to install to support Cube ?
      • nikki
        the postgresql8.x-contrib package I think (where x is your version)
      • well, that's assuming debian or ubuntu, I suppose it could be somewhere else in other things
      • oh. it seems it's postgresql-contrib-8.x (I knew there was a contrib in there somewhere :P)
      • ijabz
        its mac actually, but thanks
      • ruaok joined the channel