#musicbrainz

/

      • xlotlu
        think i'll create a chroot under a loop mounted ext2 image
      • 2008-06-30 18215, 2008

      • Infinito- has quit
      • 2008-06-30 18217, 2008

      • MrQwerty` joined the channel
      • 2008-06-30 18215, 2008

      • niklas
        ruaok: let me know when you are back
      • 2008-06-30 18242, 2008

      • niklas
        Ive got a question... I think a collection_info tuple for each moderator should be created when user accounts are created? (and in some update script)
      • 2008-06-30 18250, 2008

      • aCiD2
      • 2008-06-30 18204, 2008

      • aCiD2 leaves it to Muzzz to style for now as he's in code mode, not art mode
      • 2008-06-30 18224, 2008

      • MrQwerty has quit
      • 2008-06-30 18218, 2008

      • Kerensky98 joined the channel
      • 2008-06-30 18223, 2008

      • Infinito- joined the channel
      • 2008-06-30 18240, 2008

      • Kerensky97 has quit
      • 2008-06-30 18224, 2008

      • Jormangeud^ joined the channel
      • 2008-06-30 18251, 2008

      • Jormangeud has quit
      • 2008-06-30 18251, 2008

      • Jormangeud^
        Jormangeud^ is now known as Jormangeud
      • 2008-06-30 18243, 2008

      • ruaok is knackered
      • 2008-06-30 18244, 2008

      • ruaok
      • 2008-06-30 18214, 2008

      • xlotlu
        ruaok: because of mb server messing up under perl 5.10 i ended up hacking schroot to allow bind mounts
      • 2008-06-30 18217, 2008

      • niklas
        ruaok: thats very beautiful
      • 2008-06-30 18255, 2008

      • niklas
        do anyone know how to reverse the behaviour of s/foo/bar?
      • 2008-06-30 18203, 2008

      • niklas
        so that everything that is not matched will be replaced
      • 2008-06-30 18243, 2008

      • aCiD2
        niklas: you could s/.*(foo).*/bar$1bar
      • 2008-06-30 18254, 2008

      • aCiD2
        or something, but I'm not quite sure what you expect - can you give an example of input and output?
      • 2008-06-30 18226, 2008

      • niklas
        aCiD2: I have something like INSERT INTO ´_1004´ (21,'Âò·¿ÈË','homebuyer','mai3fang2ren2','NOUN',0,'ADSO' as input
      • 2008-06-30 18240, 2008

      • aCiD2
        mmk
      • 2008-06-30 18241, 2008

      • niklas
        and I want to match the first 4 values sent
      • 2008-06-30 18249, 2008

      • niklas
        (this is not for my soc project)
      • 2008-06-30 18256, 2008

      • niklas
        and then replace everything else
      • 2008-06-30 18201, 2008

      • niklas
        so I wanna cut this down to 4 values
      • 2008-06-30 18210, 2008

      • aCiD2
        oh
      • 2008-06-30 18253, 2008

      • aCiD2
        so maybe... s/.*\((.*), (.*), (.*)*\/$1, $2, $3, $4/ ?
      • 2008-06-30 18223, 2008

      • niklas
        no :(
      • 2008-06-30 18236, 2008

      • niklas
        but I like that approach
      • 2008-06-30 18247, 2008

      • aCiD2
        well, I haven't tested it :)
      • 2008-06-30 18253, 2008

      • aCiD2
        but that would be how I'd look at it, I suppose
      • 2008-06-30 18210, 2008

      • niklas
        will whats inside() be stored in a variable?
      • 2008-06-30 18202, 2008

      • niklas
        ssed -R 's/.*([0-9]*).*/$1/' matches, but outputs $1 :(
      • 2008-06-30 18223, 2008

      • xlotlu
        omg you regexp wizzes :)
      • 2008-06-30 18212, 2008

      • niklas
        hehe
      • 2008-06-30 18219, 2008

      • xlotlu
        s/(?!foo)/bar/
      • 2008-06-30 18223, 2008

      • niklas is not a regex wizz :(
      • 2008-06-30 18234, 2008

      • Clint
        niklas: yes, the parens populate the variables
      • 2008-06-30 18238, 2008

      • niklas
        thats weird isnt it? that $1 is displayed.
      • 2008-06-30 18249, 2008

      • Clint
        use \1
      • 2008-06-30 18251, 2008

      • Clint
        it's not perl
      • 2008-06-30 18223, 2008

      • niklas
        ssed -R 's/.*([0-9]*).*/\1/' ?
      • 2008-06-30 18233, 2008

      • Clint
        put backslashes before each paren too
      • 2008-06-30 18252, 2008

      • xlotlu
        umm, wait, that's look ahead, it will only add, not replace
      • 2008-06-30 18222, 2008

      • niklas
        Clint: if I do that it wont match
      • 2008-06-30 18236, 2008

      • Clint
        are you trying to match literal parens?
      • 2008-06-30 18238, 2008

      • xlotlu
        it's -r not -R
      • 2008-06-30 18242, 2008

      • niklas
        oh!
      • 2008-06-30 18244, 2008

      • niklas
        -r for PRE?
      • 2008-06-30 18252, 2008

      • xlotlu
        pre?
      • 2008-06-30 18200, 2008

      • niklas
        perl regular expressions
      • 2008-06-30 18205, 2008

      • Clint
        pcre
      • 2008-06-30 18210, 2008

      • niklas
        oh ok
      • 2008-06-30 18216, 2008

      • niklas
        Clint: literal parens?
      • 2008-06-30 18220, 2008

      • xlotlu
        well, they're extended regexps, not really perl, but sorta like that
      • 2008-06-30 18257, 2008

      • niklas
        man says it is "Perl 5's regular expressions"
      • 2008-06-30 18226, 2008

      • xlotlu
        if man says so, then that's how it is :)
      • 2008-06-30 18240, 2008

      • niklas
        :(
      • 2008-06-30 18246, 2008

      • niklas
        it... should... work..?
      • 2008-06-30 18201, 2008

      • xlotlu
        niklas: i think my lookahead thingie was ok, it just needs to also actually match something
      • 2008-06-30 18218, 2008

      • niklas
        iklas [at ace]:~$ echo "INSERT INTO \`_1000\` VALUES (21,'Âò·¿ÈË','homebuyer','mai3fang2ren2','NOUN',0,'ADSO','','',NULL,NULL,NULL," | ssed -R 's/.*([0-9]*).*/$1/'$1
      • 2008-06-30 18219, 2008

      • xlotlu
        ... so s/(?!foo)[a-z]+/bar/
      • 2008-06-30 18233, 2008

      • niklas
        it matches, but outputs $1 instead of the variable value
      • 2008-06-30 18236, 2008

      • niklas
        oh
      • 2008-06-30 18221, 2008

      • xlotlu
        just use -r? :P (and \1)
      • 2008-06-30 18234, 2008

      • niklas
        hmm I dont understand how that would work?
      • 2008-06-30 18236, 2008

      • niklas
        oh. I'll try
      • 2008-06-30 18223, 2008

      • niklas
        xlotlu: that seems to work
      • 2008-06-30 18229, 2008

      • niklas
        thanks. sorry I didnt get you first
      • 2008-06-30 18218, 2008

      • duckman joined the channel
      • 2008-06-30 18219, 2008

      • niklas
        works fine... but why is ([0-9]*) okay, but (.*) is not?
      • 2008-06-30 18240, 2008

      • niklas
        it doesnt match anything, while ([0-9]*) matches
      • 2008-06-30 18253, 2008

      • stochasticism has quit
      • 2008-06-30 18223, 2008

      • aCiD2
        that doesn't make sense... .* should work :S
      • 2008-06-30 18227, 2008

      • aCiD2
        what regex engine?
      • 2008-06-30 18223, 2008

      • niklas
        extended regular expressions
      • 2008-06-30 18233, 2008

      • niklas
        very weird indeed, especially since its working elsewhere. just wont work within the parenthesis
      • 2008-06-30 18201, 2008

      • Clint
        in ERE, (.*) matches 0 or more characters surrounded by literal parentheses
      • 2008-06-30 18212, 2008

      • niklas
        echo "INSERT INTO \`_1000\` VALUES (21,'Âò·¿ÈË','homebuyer" | ssed -r 's/.*\((.*),.*/\1/'
      • 2008-06-30 18219, 2008

      • niklas
        Clint: same with .+
      • 2008-06-30 18228, 2008

      • niklas
        oh
      • 2008-06-30 18242, 2008

      • niklas
        matches (whatever inside here)?
      • 2008-06-30 18246, 2008

      • Clint
        yes
      • 2008-06-30 18200, 2008

      • Clint
        and it won't put it into a variable
      • 2008-06-30 18211, 2008

      • niklas
        why!?
      • 2008-06-30 18200, 2008

      • Clint
        because that's the way regexes have been forever until perl messed them up
      • 2008-06-30 18210, 2008

      • niklas
        oh ok
      • 2008-06-30 18217, 2008

      • niklas
        do you know how to put it into a variable?
      • 2008-06-30 18238, 2008

      • Clint
        /\(blah (blah)\) blah/ will match "blah (blah) blah" and put "blah (blah)" into \1
      • 2008-06-30 18255, 2008

      • niklas
        but how do you put .* into \1?
      • 2008-06-30 18216, 2008

      • Clint
        \(.*\)
      • 2008-06-30 18252, 2008

      • niklas
        that gives me an error: ssed: -e expression #1, char 19: invalid reference \1 on `s' command's RHS
      • 2008-06-30 18255, 2008

      • niklas
        hmm
      • 2008-06-30 18249, 2008

      • niklas
        ah RHS as in right hand side
      • 2008-06-30 18225, 2008

      • niklas
        I give up
      • 2008-06-30 18221, 2008

      • xlotlu
        umm ssed. what's ssed?
      • 2008-06-30 18211, 2008

      • Clint
        supersed
      • 2008-06-30 18213, 2008

      • xlotlu
        several new features (including in-place editing of files, extended regular expression syntax and a few new commands) <-- and how's that new? (except maybe for the new commands)...
      • 2008-06-30 18222, 2008

      • Clint
        it was a fork of sed3 by the current gnu sed maintainer
      • 2008-06-30 18228, 2008

      • Clint
        so pretty much everything got folded into sed4
      • 2008-06-30 18247, 2008

      • Clint
        (assuming you build sed4 with the extensions)
      • 2008-06-30 18207, 2008

      • niklas
        Im using it because it supports perl regular expressions
      • 2008-06-30 18236, 2008

      • xlotlu
        i assume debian does. never knew sed didn't have in place editing or extended regexps..
      • 2008-06-30 18256, 2008

      • Clint
        debian does not build with pcre because libpcre isn't in /lib yet
      • 2008-06-30 18231, 2008

      • xlotlu
        oh, so that -R does indeed do pcre
      • 2008-06-30 18251, 2008

      • niklas
        leaving. good night
      • 2008-06-30 18257, 2008

      • niklas
        thanks for the help
      • 2008-06-30 18236, 2008

      • xlotlu
        'nn
      • 2008-06-30 18248, 2008

      • niklas has quit
      • 2008-06-30 18249, 2008

      • MrQwerty`
        MrQwerty` is now known as MrQwerty
      • 2008-06-30 18223, 2008

      • Amblin joined the channel
      • 2008-06-30 18237, 2008

      • xlotlu
        beautiful... make had returned bad status, install seems impossible
      • 2008-06-30 18243, 2008

      • xlotlu
        cpan sucks
      • 2008-06-30 18259, 2008

      • xlotlu
        i just seem to be unable to get that server running :/
      • 2008-06-30 18214, 2008

      • Amblin- has quit
      • 2008-06-30 18218, 2008

      • DarkAudit has quit
      • 2008-06-30 18239, 2008

      • xlotlu
        well... at least it's good at downloading: for d in $(ls); do (cd $d; perl Makefile.PL; make; make install); done
      • 2008-06-30 18211, 2008

      • DarkAudit joined the channel
      • 2008-06-30 18235, 2008

      • mikemorr joined the channel
      • 2008-06-30 18213, 2008

      • Infinito- has quit
      • 2008-06-30 18251, 2008

      • stochasticism joined the channel
      • 2008-06-30 18256, 2008

      • DarkAudi1 joined the channel
      • 2008-06-30 18203, 2008

      • xlotlu
        yey, got a mb server that throws exceptions: Caught exception in MusicBrainz::Server::Controller::Root->index "Can't locate object method "new" via package "MusicBrainz::Server::NewsFeed"
      • 2008-06-30 18232, 2008

      • DarkAudit has quit
      • 2008-06-30 18249, 2008

      • DarkAudi1
        DarkAudi1 is now known as DarkAudit
      • 2008-06-30 18204, 2008

      • duckman has quit
      • 2008-06-30 18247, 2008

      • MrQwerty` joined the channel
      • 2008-06-30 18243, 2008

      • luks has quit
      • 2008-06-30 18219, 2008

      • outsidecontext joined the channel
      • 2008-06-30 18226, 2008

      • luks joined the channel
      • 2008-06-30 18254, 2008

      • outsidecontext
        good morning luks
      • 2008-06-30 18221, 2008

      • luks
        moin
      • 2008-06-30 18254, 2008

      • ruaok waves at his friends from europe
      • 2008-06-30 18215, 2008

      • ruaok
        oh hey.. been meaning to ask you for a while, luks
      • 2008-06-30 18224, 2008

      • outsidecontext
        hey ruaok
      • 2008-06-30 18237, 2008

      • ruaok
        you pastebin'ed a code fragment that would run search_server as a standalone process.
      • 2008-06-30 18247, 2008

      • ruaok
        can you paste that again, please?
      • 2008-06-30 18250, 2008

      • ruaok
        moin outsidecontext!
      • 2008-06-30 18253, 2008

      • ruaok
        good weekend?
      • 2008-06-30 18204, 2008

      • outsidecontext
        yep
      • 2008-06-30 18218, 2008

      • ruaok
        good. mine i still going well.
      • 2008-06-30 18242, 2008

      • outsidecontext
        :) then enjoy the rest of it
      • 2008-06-30 18257, 2008

      • ruaok
        naw, enough fun for today. gotta finish off some bugs.
      • 2008-06-30 18218, 2008

      • ruaok went for a bike ride today: http://trail.motionbased.com/trail/activity/6118677
      • 2008-06-30 18257, 2008

      • MrQwerty has quit
      • 2008-06-30 18247, 2008

      • outsidecontext
        ruaok: looks like a nice trip
      • 2008-06-30 18214, 2008

      • luks
        ruaok: well, it's something simple like this - http://rafb.net/p/z3C8Fr90.html