#metabrainz

/

      • kartikgupta0909
        do you want me to use the metabrainz OAuth or the authentication token suggested by me
      • mootwo has quit
      • alastairp
        don't worry too much about specifically what option you want to use
      • Guest8612 is now known as leonardo
      • I was thinking that we could implement oauth in metabrainz (we have something similar in critiquebrainz)
      • with the expectation that there might be other things that we want to do in the future on AB that can use it
      • MBJenkins joined the channel
      • I'd be happy for your proposal to just say something like "we need authentication, two options are a simple token, or we can implement oauth"
      • kartikgupta0909
        oh okay. So right now I will submit the proposal with the authentication token system and also including the two phase idea for running the jobs. And we can decide on them later.
      • alastairp
        and if we go ahead with the project, we spend some more time looking into the options and seeing what one is better
      • kartikgupta0909
        and I will mention the two authentication options
      • alastairp
        perfect
      • kartikgupta0909
        yes
      • Thanks :)
      • alastairp
        ruaok: sorry for confusion. looks like I was wrong
      • ruaok
        I was confused about what you were wrong on. :)
      • alastairp
        everything has to be finished and squared away by Friday evening. no changes. do not pass go. do not collect $200
      • ruaok
        oh feck. that blows.
      • alastairp
        I was under the impression that if at least something was submitted by friday, it could be tweaked for a few weeks more
      • right. see?
      • ruaok
        why is the student selection phase a freaking month long?
      • alastairp
        2 months between application deadline and official start
      • ruaok
        must be all those mega OSS projects ruining it for us little folks.
      • alastairp
        something to bring up at the summit, I guess
      • yeah, I can see it being changed after people said the previous one didn't work well
      • ruaok
        here is the next odd thing.
      • I can't view a final proposal until the deadline has passed.
      • wtf?
      • alastairp
        I guess because we make our community bonding period now, between org announcement and submission
      • rather than after acceptance
      • yeah, someone mentioned that on the mentors list. I think they said they might be able to change the app for next year's programme...
      • ruaok
        armalcolite: I can't see your final proposal. there is one submitted, but I can't see it.
      • can you please mail a copy of rob@metab.... ?
      • +it to
      • navap1
        LordSputnik: Hey, sorry, I've been slacking with the twitter issues. Thanks for the prod. I'll get on it.
      • navap1 is now known as navap
      • gburlet has quit
      • Jormangeud has quit
      • Jormangeud joined the channel
      • ruaok
        alastairp: I've reviewed the rate limiting stuff on both the server and the scraper and things on the server side look fine.
      • the client, less so.
      • do I recall that there are multiple requests happening in parallel on the scraper?
      • up to 5 or so?
      • Gentlecat
        wasn't there some problem with retries?
      • ruaok
        yes and that is why multiple requests were added, right?
      • Jormangeud has quit
      • Jormangeud joined the channel
      • alastairp
        yes, the scraper will send a second request before the first one is finished
      • up to 10 simultaneous queries
      • ruaok
        I've yet to find where that code is that fires that off. :(
      • alastairp
        it's all javascripty
      • ruaok
        very so.
      • alastairp
        without looking at the code:
      • there's some sort of getAndSendNextPage
      • and somewhere in there is a if numOpenRequests < 10 { do next one }
      • and numOpenRequests is decremented in the success handler of the submit function
      • ruaok
        k.
      • I'll keep digging.
      • LordSputnik
        navap: thank you so much, it's really appreciated!
      • demonimin has quit
      • demonimin joined the channel
      • alastairp
        https://acousticbrainz.org/ Total (unique): 1,999,407
      • ruaok
        smells tantalizingly close to beer time to celebrate 2M. :)
      • Gentlecat
        did someone say beer?
      • ruaok
      • JesseW joined the channel
      • JesseW: just FYI: Discogs and MB are on good terms. At least myself and kevin are. :)
      • CallerNo6
        Indeed, Kevin seemed very cool.
      • diana_olhovyk has quit
      • UmkaDK joined the channel
      • UmkaDK
        Guys, a bit of a random question but is there an easy way to find an artist that was added to the database with a given replication packet?
      • chirlu
        You could look at the artists updated around that time, but otherwise no.
      • Well, you could look into the replication packet perhaps, if you have it.
      • UmkaDK
        That's what I mean! :)
      • armalcolite
        ruaok: sent a copy.
      • ruaok
        armalcolite: thanks.
      • UmkaDK
        I'm fiddling with the search server indices, so need to find a way to test my changes
      • armalcolite
        is the pdf at official website not accessible?
      • even i cannot view it.
      • ruaok
        armalcolite: correct. we can only view it when the submission deadline passes.
      • armalcolite
        but, when i try to open it it opens up a blank tab.
      • ruaok
        armalcolite: you should've spell checked this. :(
      • UmkaDK
        I figured that the easiest way to do it would be to set my server to update a bit after the replication packet has been released, download the replication packet, find a new artist, then search for it locally before and after the replication+index update
      • armalcolite
        ruaok: oh. i sent the wrong one. should i resend?
      • ruaok
        send me the final one that you submitted.
      • UmkaDK
        but looking at the replication packet, finding a new artist might be a bit harder then I originally thought. :)
      • armalcolite
        ok
      • ruaok
        UmkaDK: why not look a the last_updated timestamps in the aritst table?
      • keep track of the time you last looked at the artist table.
      • then examine all rows that have been changed and look for new ones that you haven't seen.
      • chirlu
        UmkaDK: I’m not sure I understand what you actually need. Couldn’t you just look at the artist(s) with the highest IDs?
      • ruaok
        chirlu: that would work. even though we keep telling people to not look at the id column. :)
      • Zialus is now known as RMF|away
      • JesseW has quit
      • UmkaDK
        Yep, I think that would definitely work for me!! Thanks guys!!!
      • chirlu
        Well, not for production use of course.
      • UmkaDK
        of course :)
      • ruaok
        for production use, i would suggest the last_updated timestamps, UmkaDK
      • UmkaDK
        kk, thank ruaok
      • *thanks
      • hellska joined the channel
      • chirlu
        Although those don’t distinguish between new artists and artists that newly got edited.
      • RMF|away is now known as Zialus
      • ruaok
        I think I *finally* grokked what is wrong with the rate-limiting branch.
      • sadly, hugh's improved code is less readable than what we had before.
      • I think I am going to grab armalcolite's latest code and re-add rate limiting to it.
      • but now that I understand what is going on, I'll need to have a think on how to add rate-limiting.
      • D4RK-PH0ENiX has quit
      • D4RK-PH0ENiX joined the channel
      • mihaitish has quit
      • Zialus is now known as RMF|away
      • RMF|away is now known as Zialus
      • hellska
        I set up a local AcousticBrainz server using vagrant, how can I upload content into the server without dowloading the entire AB DB dump?
      • yeeeargh joined the channel
      • Gentlecat
        you can POST data to the api endpoint /<MBID>/low-level
      • kartikgupta0909
        hellska: you can use the acousticBrainz client
      • and just edit the config file to upload it on localhost rather than acousticbrainz.org
      • hellska
        I tryed to post the data using the API but i get an error
      • Gentlecat
        what's the error?
      • hellska
        400 BAD FORMAT
      • kartikgupta0909
        do you have the acousticbrainz client?
      • hellska
        yes I downloaded both the gui and the command line
      • I posted to the endpoint using python requests
      • yeeeargh has quit
      • kartikgupta0909
        well i dont know about the bad format error
      • its better to simply use the acoustic brainz submission client
      • just modify the file default.conf
      • hellska
        ok I’ll try to set up it now!!! thanx
      • kartikgupta0909
        when you are done setting it up, just modify your default.conf
      • have a look at the gist
      • Mineo joined the channel
      • hellska
        Yo!
      • Mike_Aiir has quit
      • ruaok
        hellska: Tu qué?
      • hellska
        jajaja YO!!! is hiphop slang to say ‘cool’ or similar ;)
      • ruaok
        Sí, yo sé. :)
      • Jormangeud has quit
      • Jormangeud joined the channel
      • kartikgupta0909
        hellska: were you able to upload the files?
      • hellska
        running the client in this moment
      • kartikgupta0909
        oh cool
      • hellska
        kartikgupta0909: Yeah uploaded!!!
      • kartikgupta0909
        nice :)
      • Jormangeud has quit
      • hellska
        I can see from the server log, but there’s a way to refresh the website view to list the files!
      • Jormangeud joined the channel
      • kartikgupta0909
        it gets refreshed i think in every 10 minutes or so
      • or have a look at the database
      • run psql - U acousticbrainz acousticbrainz