#musicbrainz

/

      • luks
        but not, really, MusicDNS will be around at least for a few years
      • there are paying contracts that will keep it live
      • it would be stupid to shut it down if it produces money
      • hrglgrmpf
        not bad at all, leaves enough time to test alternatives
      • reosarevokphone
        does it being live imply MB can still use it for free?
      • luks
        yes, because nobody cares about it
      • hrglgrmpf
        too little traffic?
      • luks
        probably not, but as long as it's not only MB, it's probably worth it to keep it alive
      • note that MusicDNS itself has not been sold, only the IP
      • intgr
        Weren't they supposed to pay $10k or some amount to MusicBrainz when they stop the service?
      • luks
        that's complicated, MB would get the code, but wouldn't be able to run it because of the patents :)
      • I started thinking of a way to make PUIDs useful ever after MusicDNS is dead
      • I'm going to try to map as many PUIDs as possible to Acoustid fingerprints
      • intgr
      • "$10,000 held in escrow for MusicBrainz, plus contractual commitment to supply hardware resources should MusicIP exit the fingerprinting business. This is designed to allow us to continue the service should they decide to stop providing the service."
      • So is this still in effect?
      • luks
        yes
      • cparker joined the channel
      • technically
      • intgr
        :/
      • gnu_andrew joined the channel
      • gnu_andrew joined the channel
      • adhawkins joined the channel
      • cparker joined the channel
      • cparker joined the channel
      • reosarevokphone
        why just technically?
      • luks
        because it's not sure what will really happen
      • hrglgrmpf
        maybe because we don't have lawyers...
      • suriv joined the channel
      • nikki
        oh, hi hrglgrmpf
      • hrglgrmpf
        nikki: hi :-)
      • nikki owes you some edit notes :/
      • really? what exactly?
      • nikki
        good question :P probably recording comments
      • hrglgrmpf
        ah yes, I will change them once they are applied
      • if something is unfinished, I put it in my "TODO" collection, so I won't forget it :-)
      • nikki
        I mark the emails as unread even though I've read them, but I'm usually slow at replying to emails or edit notes
      • nikki doesn't really know why
      • ruaok joined the channel
      • hrglgrmpf
        nikki: what do you think about server-side URL cleanup?
      • since you are very active cleaning them up, you must have a profound opinion of it...
      • nikki
        hmm... I'm actually more curious about why some urls don't get cleaned up even though the user has js on
      • hrglgrmpf
        I have to use ctrl-v (not the mouse), otherwise the JS isn't triggered
      • nikki
        I don't really have much of an opinion about doing it server side though, for the most part it's things that aren't even being done in js
      • or fixing things that are hard to do programmatically, like fixing or removing wikipedia's damned 404s
      • hrglgrmpf
        I'm talking about the server-side validation ticket... I always thought the MB approach is: better the user enters a malformed URL, than nothing, it can be cleaned up later
      • nikki nods
      • that would mean the ticket should be closed as invalid probably...
      • but server-side cleanup for e.g. ASINs, allmusic etc. would be very simple and effective
      • nikki
        I have to wonder if there are that many urls which slip through that we should spend time adding it in the server too though
      • btw, if you know how to reproduce it not working with the mouse, please do report it
      • ianmcorvidae
        possibly we should just run the JS callback thing on more things
      • hrglgrmpf
        probably not...
      • nikki
        I guess we're not checking for everything
      • ianmcorvidae
        it currently runs on change and keyup
      • hrglgrmpf
        ianmcorvidae: yes
      • ianmcorvidae
        well, or, after we set the value we should do .blur() or something, I forget how that works
      • nikki
        .blur()?
      • ianmcorvidae
        blur is triggered when something loses focus
      • and I know that for me the value of the field doesn't actually change until I click into the edit note field
      • i.e. when a blur event is fired :)
      • so possibly triggering a blur event would make it work more correctly
      • nikki
        ah, so it doesn't make it blur it
      • ianmcorvidae
        yeah
      • it does 'self.urlControl.val(clean)'
      • djce joined the channel
      • hrglgrmpf
        nikki: I think I was wrong... if I paste with the mouse, the link doesn't get corrected, but clicking "Enter edit" (or return) afterwards does... so I don't have a explanation...
      • ianmcorvidae
        something like self.urlControl.val(clean).blur(); might fix it
      • hrglgrmpf: if you paste in and then click into the edit note field, what happens?
      • nikki would go insane if it kept unfocusing the field. the release editor does that to her in the basic editor and she wants to throw things at the screen when it happens
      • hrglgrmpf
        ianmcorvidae: nothing
      • ianmcorvidae: no correction
      • ianmcorvidae
        oh, it doesn't unfocus it, it just triggers the event that unfocusing would trigger
      • if that makes sense
      • nikki
        yeah, just saying :)
      • ianmcorvidae
        it triggers a blur event without you actually having to unfocus it
      • nikki prods kepstin
      • hrglgrmpf
        ianmcorvidae: argh, sorry, I misread: clicking in the "Edit note" field cleans up the URL, but clicking in the URL field doesn't
      • ianmcorvidae
        okay, cool
      • I think triggering a blur may fix hrglgrmpf's problem too then
      • nikki
        but it cleans it up when you press enter/return?
      • ianmcorvidae
        hitting enter selects the "enter edit" button, deselecting the url field, triggering a blur event :)
      • nikki
        something's not working somewhere at some point though
      • and I seem to have seen more urls needing cleaning up since ngs came out
      • ianmcorvidae
        hm
      • nikki
        and kepstin managed to enter an amazon url twice that didn't get cleaned up
      • (and when he asked, he said he has js on)
      • ianmcorvidae
        hm
      • Tecfan__ joined the channel
      • I'm having trouble figuring out what exactly happens when http:// isn't included
      • it looks like maybe it doesn't run cleanup when that's not there?
      • nikki
        I thought it wouldn't accept it without that
      • at least on the live server
      • ianmcorvidae
        well, yeah
      • so the urlChanged trigger checks, first: url.match(/^\w+\./)
      • if that hits (i.e. there's no http, although it's a convoluted way of saying it)
      • then it adds http:// to the front of the url in the value and returns
      • nikki
        that was added recently though
      • ianmcorvidae
        if that _doesn't_ match then it goes on and uses the cleaned value, if applicable
      • nikki wonders if hrglgrmpf saw what she said
      • so what I'm not sure is if the self.urlControl.val('http://' + url) would trigger a change event, and thus cause urlChanged to get run a second time
      • nikki
        I tried on test and it added the http:// immediately, then fixed the url when I submitted it
      • but that doesn't really explain why it happened before that was added
      • ianmcorvidae
        yeah
      • HumHumXX has left the channel
      • perhaps compile a list of un-corrected URLs and we can see if there's a pattern there?
      • nikki
        :o
      • I did it!
      • ianmcorvidae
        ooh
      • how?
      • nikki
        *and* I finally got that fly that's been annoying me for hours
      • nikki is having a lucky minute it seems
      • ruaok bows down before nikki
      • I used cmd-v to paste www.amazon.co.jp/dp/tracks/B0000AFOPB/ref=dp_tr... and hit enter really quickly
      • ianmcorvidae
        if you hit enter more slowly does it correct it, or?
      • nikki
        it seems so
      • hm, no
      • it seems I just need to click in the field, paste, press enter, and most of the time the page submits before the js finishes
      • ianmcorvidae
        hm
      • that suggests that hitting submit should fire the url cleanup thing
      • or something like that
      • nikki
      • it does
      • but it finishes submitting before the field updates
      • ianmcorvidae
        oh I think I see what's going on
      • without the http:// the urlChanged thing has to fire twice
      • so it fires once, and then your submit fires before it can hit it a second time
      • nikki
        yeah
      • ianmcorvidae
        whereas if the http is there it only has to fire once, so it happens before the submit
      • nikki
        bwahaha
      • ianmcorvidae
        what this says to me is
      • instead of changing the value and returning, it should change the url within the function and then clean
      • i.e. don't have two different paths by which it sets the value
      • nikki
        I can reproduce it with http:// if I use the mouse to drag selected text into the box and then hit enter
      • ianmcorvidae
        hm
      • that's even with the http:// there?
      • nikki
        which I suppose is the closest I can get to middle-click paste without opening my vm
      • yep
      • oh, it is open
      • that's handy
      • JoeLlama joined the channel
      • ianmcorvidae
        hm
      • potentially you should litter your root/static/scripts/edit/MB/Control/URLCleanup.js with console.log to see what's getting fired when
      • (well, and how many times, with what URLs, etc)
      • er, opera doesn't have console.log, it has something else
      • but still
      • nikki
        yay!
      • middle click paste + enter