how is the collab artist conversion script supposed to work for artists with more than one first name?
2010-05-22 14222, 2010
fatih
currently it ignores them
2010-05-22 14228, 2010
fatih
if ($member->{name} =~ /^\w+ \w+$/) {
2010-05-22 14234, 2010
fatih
looks for only one space in the name
2010-05-22 14247, 2010
fatih
so this line never works
2010-05-22 14251, 2010
fatih
$last =~ s/.*? (((van|von|de) )?[^ ]+)$/$1/i;
2010-05-22 14256, 2010
fatih
am i wrong?
2010-05-22 14259, 2010
nikki
hmm...
2010-05-22 14206, 2010
nikki
I think you're right
2010-05-22 14229, 2010
fatih
/^\w+ \w+( \w+)?$/ will match artists with 2 or 3 names I think
2010-05-22 14241, 2010
nikki nods
2010-05-22 14257, 2010
nikki prods luks
2010-05-22 14249, 2010
fatih
^ by "never works" I meant the (van|von|de) part never matches
2010-05-22 14216, 2010
outsidecontext joined the channel
2010-05-22 14206, 2010
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?
2010-05-22 14246, 2010
outsidecontext
nikki: after the plugins
2010-05-22 14211, 2010
avi| joined the channel
2010-05-22 14226, 2010
avi| has left the channel
2010-05-22 14224, 2010
avi|1 joined the channel
2010-05-22 14233, 2010
avi|1 has left the channel
2010-05-22 14230, 2010
ruaok joined the channel
2010-05-22 14232, 2010
Leftmost joined the channel
2010-05-22 14219, 2010
jdamcd joined the channel
2010-05-22 14213, 2010
avi| joined the channel
2010-05-22 14206, 2010
ijabz joined the channel
2010-05-22 14207, 2010
Sephiroth77 joined the channel
2010-05-22 14206, 2010
Sephiroth77 has left the channel
2010-05-22 14225, 2010
ruaok joined the channel
2010-05-22 14229, 2010
ijabz joined the channel
2010-05-22 14252, 2010
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).
2010-05-22 14221, 2010
nikki
use utf-8
2010-05-22 14210, 2010
brianfreud
those are encodings straight from escape()...
2010-05-22 14228, 2010
nikki
then convert to utf-8 before escape()ing?
2010-05-22 14207, 2010
brianfreud tries encodeURIComponent()
2010-05-22 14221, 2010
nikki
and after writing it so many times in perl, I had to stop myself from writing "use utf8;" in response to that :P
2010-05-22 14226, 2010
brianfreud
lol
2010-05-22 14250, 2010
brianfreud
yeah encodeURIComponent() works; seems encode() doesn't do proper utf-8 encoding
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."
2010-05-22 14208, 2010
djce joined the channel
2010-05-22 14255, 2010
brianfreud joined the channel
2010-05-22 14229, 2010
brianfreud joined the channel
2010-05-22 14259, 2010
brianfreud joined the channel
2010-05-22 14201, 2010
ijabz joined the channel
2010-05-22 14239, 2010
ijabz
Hi, just trying to setup the latest postgres db, what do I have to install to support Cube ?
2010-05-22 14229, 2010
nikki
the postgresql8.x-contrib package I think (where x is your version)
2010-05-22 14255, 2010
nikki
well, that's assuming debian or ubuntu, I suppose it could be somewhere else in other things
2010-05-22 14212, 2010
nikki
oh. it seems it's postgresql-contrib-8.x (I knew there was a contrib in there somewhere :P)