#musicbrainz

/

      • ruaok
        yep.
      • 2007-06-22 17338, 2007

      • cooperaa
        heh, I wish I came in 5 mins ago :)
      • 2007-06-22 17348, 2007

      • dholmes
        Excellent choice in language at least. Some of us started with C :P
      • 2007-06-22 17302, 2007

      • ruaok
        BASIC here.
      • 2007-06-22 17305, 2007

      • ruaok
        but I gave that up fast.
      • 2007-06-22 17313, 2007

      • cooperaa
        TURING!!
      • 2007-06-22 17319, 2007

      • ruaok
        assembly.
      • 2007-06-22 17322, 2007

      • cooperaa
        put "Hello World"
      • 2007-06-22 17327, 2007

      • dholmes
        Yeah, actually, I sorta started with gwbasic, but that doesn't really count 'cause I was like 5 years old and my programs were a joke =D
      • 2007-06-22 17332, 2007

      • luks
        ooh, BASIC
      • 2007-06-22 17342, 2007

      • ojnkpjg <- logo
      • 2007-06-22 17350, 2007

      • ojnkpjg
        but i was 3
      • 2007-06-22 17352, 2007

      • dholmes
        Oh yeah, some of that too =D
      • 2007-06-22 17357, 2007

      • ojnkpjg
        C was my first real language
      • 2007-06-22 17307, 2007

      • yllona used logo :)
      • 2007-06-22 17317, 2007

      • catgroove
        arg why does not \n or \newline work
      • 2007-06-22 17325, 2007

      • catgroove
        (don'tr answer that)
      • 2007-06-22 17334, 2007

      • ruaok
        pascal was my first real language.
      • 2007-06-22 17351, 2007

      • ruaok
        but the first language that I wrote meanigful programs in would be C.
      • 2007-06-22 17356, 2007

      • Freso
        catgroove: Learning Python? :)
      • 2007-06-22 17334, 2007

      • luks
        I had really hard times switching from "safe" pascal strings to C pointers
      • 2007-06-22 17358, 2007

      • dholmes
        That's why in a way, I think starting with C is easiest in the long run
      • 2007-06-22 17301, 2007

      • ojnkpjg
        me, too
      • 2007-06-22 17303, 2007

      • ruaok
        like playing with razor blades.
      • 2007-06-22 17325, 2007

      • ojnkpjg
        i learned C hacking early linux 2.0 up :/
      • 2007-06-22 17326, 2007

      • dholmes
        I always enjoyed relaxing while my classmates struggled with C because they learned something like PHP
      • 2007-06-22 17341, 2007

      • catgroove was gonna jokingly say 'me cheats using print "1 0 1" n "0 1 0" n "1 0 1"' but since have found that doesn't work grmpfh
      • 2007-06-22 17342, 2007

      • ojnkpjg
        learning anything after you've mastered C is a week-long activity
      • 2007-06-22 17344, 2007

      • catgroove
        so much for my joke
      • 2007-06-22 17302, 2007

      • ruaok
        catgroove: pretty clever.
      • 2007-06-22 17322, 2007

      • ruaok
        until I'll tell you to read a number to determine the size of the square.
      • 2007-06-22 17336, 2007

      • dholmes
        catgroove: I've found that actually works in some graduate-level computer science classes. You can often tell when the TAs never actually look at your code
      • 2007-06-22 17350, 2007

      • hawke_ joined the channel
      • 2007-06-22 17301, 2007

      • catgroove
        I don't understand your sentence ru ;)
      • 2007-06-22 17325, 2007

      • catgroove
        'read a number' ?
      • 2007-06-22 17350, 2007

      • ruaok
        read a number from stdin (keyboard).
      • 2007-06-22 17358, 2007

      • ruaok
        if 4 make the square 4x4.
      • 2007-06-22 17303, 2007

      • ruaok
        if 5... make 5x5
      • 2007-06-22 17304, 2007

      • ruaok
        ...
      • 2007-06-22 17317, 2007

      • catgroove
        so its 3?
      • 2007-06-22 17318, 2007

      • Aankhen``
        Mmm, Python.
      • 2007-06-22 17319, 2007

      • catgroove
        or 6?
      • 2007-06-22 17326, 2007

      • catgroove
        1 space 0 etc
      • 2007-06-22 17337, 2007

      • cooperaa
        this picture makes me want to go for a run: http://images.apple.com/itunes/home/images/ipodyo…
      • 2007-06-22 17337, 2007

      • Aankhen``
        catgroove: `print` takes a string. "\n" is simply a part of that string, not an additional operator.
      • 2007-06-22 17344, 2007

      • catgroove
        ok
      • 2007-06-22 17348, 2007

      • Jugdish
        know what would be a cool? an rss feed for http://musicbrainz.org/mod/search/pre/subscriptio…
      • 2007-06-22 17351, 2007

      • Aankhen``
        catgroove: So to say hello followed by a newline, that'd be: print "hello\n"
      • 2007-06-22 17357, 2007

      • catgroove
        ok
      • 2007-06-22 17302, 2007

      • cooperaa
        Jugdish: I second that ;)
      • 2007-06-22 17307, 2007

      • catgroove
        don't tell me then i'm supposed to figure it out by myself :P
      • 2007-06-22 17311, 2007

      • luks
        Aankhen``: that prints two newlines ;)
      • 2007-06-22 17315, 2007

      • Aankhen``
        Heh, okay.
      • 2007-06-22 17315, 2007

      • catgroove
        also rss feed and no email yes plz
      • 2007-06-22 17323, 2007

      • Aankhen``
        luks: Meh, whatever. :-P
      • 2007-06-22 17324, 2007

      • cooperaa
        but first, I'd like all comments on an edit to be replies so they show up in context in gmail ;)
      • 2007-06-22 17334, 2007

      • Jugdish is tired of being emailed about his own edits to his subscribed artists :/
      • 2007-06-22 17337, 2007

      • Aankhen`` is not such a huge fan of Python.
      • 2007-06-22 17347, 2007

      • ojnkpjg
        python is a nice first language to learn
      • 2007-06-22 17349, 2007

      • ojnkpjg
        it's clean
      • 2007-06-22 17357, 2007

      • Aankhen``
        Oh, definitely.
      • 2007-06-22 17303, 2007

      • dholmes
        It's a nice last language to learn, too, if you ask me =D
      • 2007-06-22 17307, 2007

      • Aankhen``
        I've pointed two of my friends so far at Python.
      • 2007-06-22 17314, 2007

      • ojnkpjg
        easy last language to learn
      • 2007-06-22 17318, 2007

      • Aankhen``
        I just don't like it all that much myself.
      • 2007-06-22 17338, 2007

      • catgroove
        lol print "1 0 1\n" "0 1 0\n" "1 0 1" did it, but that's *not it* and i *know* that
      • 2007-06-22 17342, 2007

      • ruaok wants to smack the smashing pumpkins
      • 2007-06-22 17344, 2007

      • ruaok
      • 2007-06-22 17328, 2007

      • Jugdish
        heh, saw that
      • 2007-06-22 17335, 2007

      • chillware
        anyone know when luks is gonna take picard out of alpha? seems to be running pretty stable these days..\
      • 2007-06-22 17339, 2007

      • Aankhen``
        ruaok: Jeez.
      • 2007-06-22 17344, 2007

      • Aankhen``
        (Smashing Pumpkins)-- # jackasses
      • 2007-06-22 17345, 2007

      • Aankhen``
        (Smashing Pumpkins)-- # jackasses
      • 2007-06-22 17318, 2007

      • ojnkpjg
        what label are they on
      • 2007-06-22 17320, 2007

      • Jugdish
        (Smashing Pumpkins) -= MAX_INT
      • 2007-06-22 17322, 2007

      • Jugdish
        does that work?
      • 2007-06-22 17325, 2007

      • Aankhen``
        Nah.
      • 2007-06-22 17327, 2007

      • ojnkpjg
        probably more the label's doing than theirs
      • 2007-06-22 17336, 2007

      • ojnkpjg
        i quit buying anything on RIAA labels totally
      • 2007-06-22 17341, 2007

      • ojnkpjg
        and sold off everything i did own
      • 2007-06-22 17357, 2007

      • Aankhen``
        ojnkpjg: Can't be done without their consent (whether joyous or contracted).
      • 2007-06-22 17307, 2007

      • BrianFreud
        hmmm, how do I get python to print on the same line?
      • 2007-06-22 17324, 2007

      • dholmes
        BrianFreud, put a comma after the string, I think
      • 2007-06-22 17331, 2007

      • BrianFreud
        ok, thanks
      • 2007-06-22 17349, 2007

      • cooperaa
        "My god, you have to go to Target (and only Target!) to get the version with the title track! That just ain't right." hahahahahahaha
      • 2007-06-22 17319, 2007

      • Aankhen``
        O_O
      • 2007-06-22 17330, 2007

      • ojnkpjg
        eh, i always thought that band sucked, anyway
      • 2007-06-22 17355, 2007

      • drsaunde really likes Siamese Dream...and none of the other releases really
      • 2007-06-22 17323, 2007

      • cooperaa has quit
      • 2007-06-22 17344, 2007

      • BrianFreud
        ruaok: http://dpaste.com/12787/ ugly... I'm sure... Catgroove no look! :)
      • 2007-06-22 17325, 2007

      • ruaok
        yay.
      • 2007-06-22 17330, 2007

      • FauxFaux
        An ugly picture of catgroove? Not sure I want to look..
      • 2007-06-22 17340, 2007

      • ruaok
        no someone rewrite this using a lambda function.
      • 2007-06-22 17342, 2007

      • ruaok
        now
      • 2007-06-22 17347, 2007

      • BrianFreud
        lol
      • 2007-06-22 17355, 2007

      • FauxFaux
        Aaah, python, it burns!
      • 2007-06-22 17357, 2007

      • Aankhen``
        Python's lambdas are pathetic. :-\
      • 2007-06-22 17335, 2007

      • BrianFreud
        I'm sure there's a way to do it in half the lines :(
      • 2007-06-22 17353, 2007

      • dholmes
        I'm not sure using a lambda could help in any way for this particular problem
      • 2007-06-22 17340, 2007

      • BrianFreud
        well, if it didn't have to always be checkerboard no matter the n, I can think of a less lines solution
      • 2007-06-22 17358, 2007

      • BrianFreud
        would break on all even number ns
      • 2007-06-22 17339, 2007

      • Jugdish
        [15:36:16] Cannot connect to server.
      • 2007-06-22 17344, 2007

      • Jugdish
        ridicurous
      • 2007-06-22 17343, 2007

      • BrianFreud
        god it's been too long since I did any real programming... can someone translate this to english for me? http://docs.python.org/ref/lambdas.html#lambda
      • 2007-06-22 17312, 2007

      • FauxFaux
        lambda x: return x*2
      • 2007-06-22 17317, 2007

      • dholmes
        If you haven't studied functional programming before, then I doubt I can
      • 2007-06-22 17321, 2007

      • Aankhen``
        BrianFreud: Lambdas are just anonymous functions.
      • 2007-06-22 17337, 2007

      • Aankhen``
        def double: x*2
      • 2007-06-22 17345, 2007

      • Aankhen``
        Equivalent to: lambda x: return x*2
      • 2007-06-22 17353, 2007

      • Aankhen``
        Er, wait, double probably needed a return to.
      • 2007-06-22 17355, 2007

      • Aankhen``
        Anyway.
      • 2007-06-22 17307, 2007

      • Aankhen``
        They're the same except that the lambda doesn't have a name.
      • 2007-06-22 17315, 2007

      • BrianFreud
        dholmes: unfortunately all was imperative programming :(
      • 2007-06-22 17318, 2007

      • Aankhen``
        You can just stick it in a variable or pass it as a function argument or whatever you want.
      • 2007-06-22 17331, 2007

      • ojnkpjg
        lambda's useful for builtins like map and filter
      • 2007-06-22 17334, 2007

      • ojnkpjg
        not so much elsewhere
      • 2007-06-22 17356, 2007

      • Aankhen``
        Needs moar Lisp. ;-)
      • 2007-06-22 17316, 2007

      • luks
        and you are usually better using list comprehensions for that in python...
      • 2007-06-22 17321, 2007

      • BrianFreud
        lol... C, C++, Java, VBA, assembly... no Lisp/Ruby/etc experience whatsoever
      • 2007-06-22 17325, 2007

      • dholmes
        Anyways, here's in less than half the lines BrianFreud used ;) http://dpaste.com/12790/
      • 2007-06-22 17329, 2007

      • FauxFaux
        Needs more js.
      • 2007-06-22 17335, 2007

      • ojnkpjg
        if you're using python 2.4, yeah
      • 2007-06-22 17348, 2007

      • Aankhen``
        I love JS, but lately it irritates me a lot.
      • 2007-06-22 17350, 2007

      • lauri has quit
      • 2007-06-22 17311, 2007

      • BrianFreud still trying to understand what Aankhen`` said :P
      • 2007-06-22 17320, 2007

      • Aankhen``
        LOL.
      • 2007-06-22 17338, 2007

      • luks
        dholmes, BrianFreud: if you want a one-liner - http://dpaste.com/12791/ :)
      • 2007-06-22 17350, 2007

      • Aankhen``
        BrianFreud: Okay, do you understand what this is: def double(x): return x
      • 2007-06-22 17358, 2007

      • ojnkpjg
        brianfreud, e.g., map(lambda x: True, xrange(3)) -> [ True, True, True ]
      • 2007-06-22 17358, 2007

      • dholmes
        Shit, now you're making me look bad =D
      • 2007-06-22 17328, 2007

      • BrianFreud
        ojnkpjg: So it's basically a function you can map onto a matrix?
      • 2007-06-22 17332, 2007

      • dholmes
        Though that's sorta cheating by making the code unreadable, cramming those for loops in one line =D
      • 2007-06-22 17337, 2007

      • luks
        heh
      • 2007-06-22 17354, 2007

      • FauxFaux
        http://dpaste.com/12792/ goddamn geeks. :P
      • 2007-06-22 17303, 2007

      • Aankhen``
        ROTFL.
      • 2007-06-22 17308, 2007

      • BrianFreud
        you're all evil
      • 2007-06-22 17317, 2007

      • BrianFreud
        lol
      • 2007-06-22 17332, 2007

      • juhae
        helan g�r
      • 2007-06-22 17335, 2007

      • BrianFreud likes his program... it works
      • 2007-06-22 17351, 2007

      • BrianFreud
        lol
      • 2007-06-22 17320, 2007

      • RottenBer joined the channel
      • 2007-06-22 17351, 2007

      • BrianFreud
        what does the % in str(j % 2) do?
      • 2007-06-22 17301, 2007

      • luks
        modulo
      • 2007-06-22 17310, 2007

      • BrianFreud
        ah, ok
      • 2007-06-22 17328, 2007

      • ruaok
        whenever you hear checkerboard, you should think modulo
      • 2007-06-22 17335, 2007

      • catgroove
        args
      • 2007-06-22 17345, 2007

      • BrianFreud
        yeah, I was... just didn't know how to pull it off
      • 2007-06-22 17349, 2007

      • catgroove
        don't postthe solutino in here, i'll get to tempting
      • 2007-06-22 17352, 2007

      • BrianFreud
        lol
      • 2007-06-22 17356, 2007

      • catgroove has to clear the buffer