#musicbrainz

/

      • Sargun has quit
      • srotta has quit
      • Dhraakellian joined the channel
      • Dhraakellian
        'Barcode "07464476022" is not a valid EAN barcode.' it tells me
      • srotta joined the channel
      • comparing to another barcode, it appears to be missing a digit
      • the one in the right corner of the barcode, I think
      • should I just tick the checkbox and enter it as-is?
      • deadchip
        are there some docs on an "official" way of extending XSPF playlists with MB data?
      • Dhraakellian, it could be missing the checksum digit
      • Dhraakellian, 00074644760224 maybe
      • Dhraakellian
        "0 7464 - 47602 - 2" is how it's written on the back cover
      • deadchip
        i don't know any barcodes with 11 digits
      • xlotlu
        Dhraakellian: you're missing a digit at the end
      • Dhraakellian
        xlotlu: yeah, I figured that, given the alignment
      • xlotlu
        like that 0 at the beginning is sifferent, there should be another one at the end
      • Dhraakellian
        everything but the 0 at the beginning is centered under the lines
      • the first zero is off to the left
      • which makes me think that, like you said, there should be another on the right
      • so should I put it in with the 4 at the end, as deadchip suggested?
      • xlotlu
        i dunno
      • iirc that's the last one is the check digit, and you could compute it yourself
      • dunno exactly how though :)
      • deadchip
        xlotlu, i just gave a website to do it
      • deadchip thinks everyone is ignoring him :P
      • xlotlu
        ah :)
      • deadchip
        Dhraakellian, check digit is4
      • xlotlu
        deadchip: i'm only ignoring urls :)
      • deadchip
        heh
      • xlotlu
        Dhraakellian: the 4 looks right http://www.google.com/search?q=074644760224
      • amapedia o.O
      • deadchip
        amapedia?
      • lol
      • wtf
      • since when do they have that
      • xlotlu
        Amapedia is a community for sharing information about the products you like the most. .....
      • since very recently :)
      • deadchip
        well amazon has always been slightly low-brow
      • xlotlu
        user-generated content ftw
      • deadchip
        "Askville Can't find what you're looking for? Ask Askville! There's a growing community of people just waiting to answer your question. "
      • lol
      • although their mechanical turk idea is great
      • it's basically like all user-generated-content web sites work
      • xlotlu
        so, hmm... that's really useful
      • they list the UPC for all ASINs it seems
      • Dhraakellian wonders if he should add dates to the performance AR's
      • Dhraakellian: do that, do that
      • Dhraakellian
        8 tracks with track-level AR's... is there a quicker way to do this?
      • xlotlu
      • Dhraakellian: start by adding an AR to the release. on that page you have a link to "add relationships to tracks on this release"
      • Dhraakellian
        also, would 'Symphonies Nos. 1 "Classical", 5' be better than the current release title?
      • xlotlu
        or something alike... and then you get a nice page with checkboxes for tracks
      • Dhraakellian
        xlotlu: it already has the symphony orchestra and conductor AR's for each track
      • xlotlu
        Dhraakellian: ah :/
      • then no, no faster way
      • Dhraakellian: but at least put the date in the annotation...
      • Dhraakellian
        already done
      • Infinito- joined the channel
      • hmm... "The Royal Edition"
      • "No. 64 of 100"
      • with a painting by HRH the Prince of Wales on the front cover
      • Dhraakellian should probably put something to that effect in the annotation
      • xlotlu
        Dhraakellian: last time i had to do that, i removed all the previous ARs
      • Dhraakellian
        hmm
      • xlotlu
        which got some mixed opinions...
      • Dhraakellian
        and changing the "&" to "from ... to" is still *technically* correct, I suppose
      • xlotlu
        but then again, that was a 50-track release
      • Dhraakellian
        hehhehheh
      • ruaok joined the channel
      • ruaok
        niklas: ping!
      • niklas
        hello
      • ruaok
        hi!
      • xlotlu
        hi ruaok
      • ruaok
        so, the easy way to do date calculations is to either doit using julian dates or seconds.
      • hi xlotlu
      • julian dates are total overkill for this and would require a new module.
      • xlotlu
      • ruaok
        so, that's silly.
      • niklas
        yes
      • ruaok
        but you can get a date expressed in seconds since the epoch (1-1-70)
      • then to add one to the date simply do
      • date += (24 * 60 * 60)
      • and convert the date back into yyyy-mm-dd format
      • Dhraakellian
        ruaok: but a mistake results in epoch fail
      • Dhraakellian isn't sure whether to be ashamed of himself for recycling that horrid pun
      • niklas
        but dont that conversion back to yyyy-mm-dd format require some module I dont have?
      • ruaok
        Dhraakellian: thanks. I was waiting for that. :)
      • xlotlu
        :D
      • ruaok
        niklas: maybe. I would have to review what functions we have.
      • sometimes its possible to have postgres add a day
      • I'm not sure if that works in this context.
      • niklas
        ahh
      • ruaok
        you certainly don't want to make an extra call to postgres for that.
      • niklas
        ok
      • ruaok
        but if you can squeeze that in as part of a sql query then you're in good share.
      • shape.
      • everyone: if you want to follow my blogging of OSCON, look here: http://radar.oreilly.com/robk/
      • ruaok has to finish up the next blog post.
      • niklas
        there's no CAST for casting e.g. unix timestamp to yyyy-mm-dd format?
      • ruaok
        Google invited a bunch of people for dinner and I dont want to be late -- its a nice dinner. :)
      • <3 Google
      • not a cast, no.
      • xlotlu
        select foo, foo + '1 day'::interval as foo_tomorrow
      • ruaok
        ding!!
      • Dhraakellian is feeling lazy atm and will just leave the dates in the annotation
      • xlotlu: something like that is what I had in mind.
      • Dhraakellian
        if ARs could be edited in a single page like track titles and lengths, it'd just be a matter of doing a bunch of middle-clicks
      • <3 X11's middle-click paste
      • xlotlu
        Dhraakellian: i want this: http://bugs.musicbrainz.org/ticket/3758 :)
      • i dream of editing an entire release in a text editor in say.. yaml format
      • niklas
        xlotlu: thank you :)
      • aCiD2
        xlotlu: one day... one day
      • xlotlu
        niklas: extract (epoch from datefield)
      • Dhraakellian
        how would one encode dates before 1970?
      • xlotlu
        niklas: sorry, you wanted the other day around: to_timestamp(int)
      • (or was it double?)
      • Dhraakellian: negative integers, obviously :)
      • Dhraakellian
        heck with BC/AD and BCE/CE!
      • BE and AE?
      • pbryan has quit
      • niklas
        xlotlu: ah, but this wont work if its not a timestamp?
      • xlotlu
        niklas: what / which part?
      • niklas
        dates are stored as CHAR(10) formatted "yyyy-mm-dd"
      • foo ยด'1 day'::interval and extract
      • xlotlu
        they are char in the db, not timestamp??
      • niklas
        yes, as far as I can see
      • xlotlu
        why? o.O
      • niklas: you can use to_timestamp(date_string, date_format) ...
      • niklas
        xlotlu: seems like most dates are stored as timestamps, but not the one Im using. its possible that Im messing with the wrong date
      • great
      • Kerensky98 has left the channel
      • xlotlu
        you can just cast it to timestamp if it's in the default format (normally yyyy-mm-dd)
      • niklas
        no need to specify format string if its YYYY-MM-DD?
      • xlotlu
        niklas: casting as in 'string'::timestamp
      • about to_timestamp, i dunno. if there's a to_timestamp(varchar) function, then that's what it probably does :)
      • niklas
        ohh
      • deadchip
        if there was ever cheese on a pizza then it's on the one i just made
      • Dhraakellian
        hmm
      • Dhraakellian somehow read the word "war" in there somehow
      • deadchip
        i think it's b ecause "was ever" were placed unusually
      • maybe rather "if there ever was cheese"
      • Dhraakellian declares cheese on deadchip
      • deadchip accepts with sour and cream
      • Dhraakellian changes his mind and decides to seek Peas
      • ruaok
        xlotlu: thanks for helping niklas.
      • niklas: if you need more help, send me another mail.
      • xlotlu
        :)