#metabrainz

/

      • Gentlecat
        so much problems to fix
      • 2015-09-16 25909, 2015

      • Gentlecat
        so little time
      • 2015-09-16 25912, 2015

      • ruaok
        do we have an "ALPHA!!" sign on the site yet?
      • 2015-09-16 25950, 2015

      • Gentlecat
        ¡ALPHA!
      • 2015-09-16 25958, 2015

      • ruaok
        sure
      • 2015-09-16 25911, 2015

      • Gentlecat
        ruaok: the timestamp problem you asked me about earlier today
      • 2015-09-16 25932, 2015

      • Gentlecat
        was timestamp completely missing or just in different format?
      • 2015-09-16 25959, 2015

      • Gentlecat
      • 2015-09-16 25902, 2015

      • ruaok
        I don't know -- that one PR I sent was to fix that one error the scraper threw -- some element was missing apparently.
      • 2015-09-16 25943, 2015

      • ruaok
        I really don't know what format it was.
      • 2015-09-16 25901, 2015

      • Gentlecat
        well it should be just that huge integer
      • 2015-09-16 25909, 2015

      • Gentlecat
        not fancy string
      • 2015-09-16 25916, 2015

      • alastairp
        I think you’re both talking about different things
      • 2015-09-16 25926, 2015

      • chirlu` has quit
      • 2015-09-16 25934, 2015

      • alastairp
        as I understand, Gentlecat has a problem in the data returned from the LB api to show on the data page
      • 2015-09-16 25935, 2015

      • Gentlecat
        :(
      • 2015-09-16 25940, 2015

      • alastairp
        Mineo: fyi, & is fixed too
      • 2015-09-16 25943, 2015

      • Gentlecat
        correct
      • 2015-09-16 25902, 2015

      • ruaok
        ah, not the js one from the scaper.
      • 2015-09-16 25906, 2015

      • ruaok
        what is the question then?
      • 2015-09-16 25913, 2015

      • chirlu` joined the channel
      • 2015-09-16 25918, 2015

      • Gentlecat
      • 2015-09-16 25922, 2015

      • Leftmost
        If the LB importer finishes with 183/187 complete, can I assume it actually completed the other four, or did it just stop once it finished sending all 187?
      • 2015-09-16 25938, 2015

      • ruaok
        Gentlecat: that chatlog link doesn't really help me.
      • 2015-09-16 25939, 2015

      • alastairp
        you can’t assume anything
      • 2015-09-16 25952, 2015

      • Leftmost
        I can assume many things, but they might not be right.
      • 2015-09-16 25905, 2015

      • Gentlecat
      • 2015-09-16 25913, 2015

      • alastairp
        Gentlecat: better you explain it to him again
      • 2015-09-16 25928, 2015

      • alastairp
        easier than trying to understand context + all the other discussions going on
      • 2015-09-16 25942, 2015

      • Gentlecat
        ok, let me grab another bottle then
      • 2015-09-16 25942, 2015

      • ruaok nods
      • 2015-09-16 25958, 2015

      • alastairp
        Leftmost: one problem is that that counter is “number of requests made”, not “number of requests succeeded” (I’ve changed this and should be released soon)
      • 2015-09-16 25900, 2015

      • djpretzel joined the channel
      • 2015-09-16 25940, 2015

      • alastairp
        another problem is that people seem to have a set of pages at the end of their list with “Unknown date”, and our parser chokes and dies, so who knows if you even succeeded in sending those pages (ruaok has a fix for this too)
      • 2015-09-16 25954, 2015

      • alastairp
        Leftmost: can you paste a link to page 183 of your profile?
      • 2015-09-16 25922, 2015

      • Gentlecat
        well, my VM just stopped responding
      • 2015-09-16 25923, 2015

      • alastairp
        ruaok: my new cassandra schema (table?) isn’t creating. do you know what I need to drop?
      • 2015-09-16 25929, 2015

      • Gentlecat
      • 2015-09-16 25936, 2015

      • Gentlecat
        "listened_at": 1442394540
      • 2015-09-16 25946, 2015

      • Leftmost
      • 2015-09-16 25956, 2015

      • Gentlecat
        instead of that number I get "Wed, 16 Sep 2015 17:27:00 GMT"
      • 2015-09-16 25902, 2015

      • ruaok
        alastairp: to drop the table, just "drop table listens;"
      • 2015-09-16 25922, 2015

      • ruaok
        in cqlsh
      • 2015-09-16 25932, 2015

      • ruaok
        but you need to start with "use listenbrainz;"
      • 2015-09-16 25944, 2015

      • Gentlecat
        actually, it was completely missing before
      • 2015-09-16 25949, 2015

      • alastairp
        Leftmost: interesting, you don’t have any unknown date scrobbles. we know that this happens, but don’t know a good solution yet, sorry :(
      • 2015-09-16 25951, 2015

      • ruaok
        then paste the query that is at the bottom of the listenstore.py
      • 2015-09-16 25955, 2015

      • alastairp
        ruaok: hm. I thought I did that
      • 2015-09-16 25959, 2015

      • alastairp
        oh. I need to paste that??
      • 2015-09-16 25906, 2015

      • ruaok
        yes, that re-creates the table
      • 2015-09-16 25912, 2015

      • Leftmost
        What seemed to happen was that it stopped updating "completed" as soon as it stopped updating "sent".
      • 2015-09-16 25914, 2015

      • ruaok
        truncate listens
      • 2015-09-16 25916, 2015

      • Gentlecat
      • 2015-09-16 25917, 2015

      • ruaok
        is much easier.
      • 2015-09-16 25943, 2015

      • alastairp
        ruaok: I still have the old schema though, whcih is why I need to drop
      • 2015-09-16 25905, 2015

      • ruaok
        ok, that sequence is what you need then
      • 2015-09-16 25910, 2015

      • ruaok
        listen, drop, create
      • 2015-09-16 25915, 2015

      • ruaok
        stop, drop, roll
      • 2015-09-16 25926, 2015

      • ruaok
        listen? use.
      • 2015-09-16 25931, 2015

      • alastairp
        weird, because the listenstore constructor seems to imply that it’ll create it for you
      • 2015-09-16 25947, 2015

      • alastairp
        oh, perhaps only if the /keyspace/ doesn’t exist, not the table
      • 2015-09-16 25908, 2015

      • alastairp
        yes! bingo
      • 2015-09-16 25911, 2015

      • ruaok
        try dropping the keyspace
      • 2015-09-16 25915, 2015

      • alastairp
        thanks
      • 2015-09-16 25926, 2015

      • ruaok
        np
      • 2015-09-16 25931, 2015

      • alastairp reproduces Gentlecat’s cyrilic
      • 2015-09-16 25954, 2015

      • Gentlecat
        ping me if you need some more
      • 2015-09-16 25902, 2015

      • Gentlecat
        I've got a whole keyboard of those
      • 2015-09-16 25912, 2015

      • Gentlecat
        :P
      • 2015-09-16 25913, 2015

      • ruaok
        lol
      • 2015-09-16 25959, 2015

      • ruaok
        hmm. next time we need to pick project colors more carefully.
      • 2015-09-16 25905, 2015

      • ruaok
        I don't have a matching blue sock. :(
      • 2015-09-16 25946, 2015

      • Gentlecat
        ruaok: did you catch my explanation?
      • 2015-09-16 25903, 2015

      • ruaok
        no. :(
      • 2015-09-16 25910, 2015

      • Gentlecat
        :(
      • 2015-09-16 25935, 2015

      • ruaok
        state your question again, please.
      • 2015-09-16 25946, 2015

      • Gentlecat
        timestamps
      • 2015-09-16 25955, 2015

      • ruaok
        not a question.
      • 2015-09-16 25903, 2015

      • ruaok
        :-p
      • 2015-09-16 25916, 2015

      • Gentlecat
        I'm still typing
      • 2015-09-16 25921, 2015

      • Gentlecat
        they are supposed to be returned for each listen, that's what I use in pagination stuff
      • 2015-09-16 25944, 2015

      • Gentlecat
      • 2015-09-16 25950, 2015

      • Gentlecat
        listened_at
      • 2015-09-16 25902, 2015

      • Gentlecat
        in this case it's 1442391120, as it should be
      • 2015-09-16 25925, 2015

      • Gentlecat
        what I'm getting locally is "Wed, 16 Sep 2015 17:27:00 GMT"
      • 2015-09-16 25952, 2015

      • ruaok
        odd.
      • 2015-09-16 25955, 2015

      • Gentlecat
        before there was no listened_at value at all, but something happened
      • 2015-09-16 25901, 2015

      • Gentlecat
        so... any ideas?
      • 2015-09-16 25917, 2015

      • ruaok
        does this happen on forward or backward?
      • 2015-09-16 25933, 2015

      • Gentlecat
        it happens on this API endpoint
      • 2015-09-16 25939, 2015

      • ruaok
        here is the background: russss thought that timestamps were datetime objects.
      • 2015-09-16 25949, 2015

      • ruaok
        when in fact they are ints.
      • 2015-09-16 25900, 2015

      • Gentlecat
        which means data is not going to be displayed at all, no forward or backward buttons
      • 2015-09-16 25904, 2015

      • ruaok
        so, I went through and removed unneeded conversions and whatnot.
      • 2015-09-16 25926, 2015

      • Gentlecat
        what I think is that python's json module is doing conversion differently
      • 2015-09-16 25937, 2015

      • ruaok
        there is a chance that I missed something.
      • 2015-09-16 25940, 2015

      • ruaok
        but only for you??
      • 2015-09-16 25923, 2015

      • Gentlecat
        well, you had that problem with missing timestamp: http://chatlogs.metabrainz.org/brainzbot/metabrai…
      • 2015-09-16 25927, 2015

      • Gentlecat
        maybe that's related
      • 2015-09-16 25957, 2015

      • ruaok
        that is because my code wasn't putting them into the output.
      • 2015-09-16 25912, 2015

      • Gentlecat
        and what did you to fix that?
      • 2015-09-16 25912, 2015

      • ruaok
        I fixed, committed and merged that... last night?
      • 2015-09-16 25932, 2015

      • Gentlecat
        got a link to commit?
      • 2015-09-16 25938, 2015

      • ruaok
        looking
      • 2015-09-16 25903, 2015

      • ruaok
      • 2015-09-16 25906, 2015

      • ruaok
        api.py
      • 2015-09-16 25916, 2015

      • Gentlecat
        and the thing is, I'm on the latest commit in master
      • 2015-09-16 25949, 2015

      • Gentlecat
        datetime.fromtimestamp(row.id)
      • 2015-09-16 25910, 2015

      • alastairp
        feh
      • 2015-09-16 25916, 2015

      • Gentlecat
        why was that removed?
      • 2015-09-16 25920, 2015

      • ruaok
        the first block was ever more confusing.
      • 2015-09-16 25933, 2015

      • ruaok
        because row.id is an integer timestamp, which is what we want, no?
      • 2015-09-16 25935, 2015

      • alastairp
        Gentlecat: did you know that your import is failing only because it cannot print a debug message that it loaded your listen?
      • 2015-09-16 25949, 2015

      • Gentlecat
        well...
      • 2015-09-16 25912, 2015

      • Gentlecat
        this is fucking hilarious
      • 2015-09-16 25938, 2015

      • Gentlecat
        why didn't you use py3 from the start?
      • 2015-09-16 25943, 2015

      • Gentlecat
        ruaok: let me try to add that back
      • 2015-09-16 25916, 2015

      • Gentlecat
        nope, that didn't help
      • 2015-09-16 25945, 2015

      • ruaok
        have you logged the data in the listen to see what it is working with?
      • 2015-09-16 25952, 2015

      • Gentlecat
        oh wait, I need to rebuild listenstore after modifying it
      • 2015-09-16 25903, 2015

      • ruaok
        unless you did
      • 2015-09-16 25909, 2015

      • ruaok
        python setup.py develop
      • 2015-09-16 25920, 2015

      • ruaok
        in which case it makes symlinks to your local dir
      • 2015-09-16 25949, 2015

      • Gentlecat
        ok, now I'm getting these integers
      • 2015-09-16 25957, 2015

      • Gentlecat
        no idea what's going on
      • 2015-09-16 25935, 2015

      • ruaok
        welcome to my world
      • 2015-09-16 25929, 2015

      • demonimin has quit
      • 2015-09-16 25943, 2015

      • demonimin joined the channel
      • 2015-09-16 25943, 2015

      • demonimin has quit
      • 2015-09-16 25943, 2015

      • demonimin joined the channel
      • 2015-09-16 25946, 2015

      • diana_olhovik_ has quit
      • 2015-09-16 25950, 2015

      • alastairp
        I hate unicode
      • 2015-09-16 25907, 2015

      • github joined the channel
      • 2015-09-16 25907, 2015

      • github
        [listenbrainz-server] gentlecat created link (+1 new commit): https://github.com/metabrainz/listenbrainz-server…
      • 2015-09-16 25907, 2015

      • github
        listenbrainz-server/link f6f198b Roman Tsukanov: LB-15: Link username in navbar to profile page.
      • 2015-09-16 25907, 2015

      • github has left the channel
      • 2015-09-16 25938, 2015

      • github joined the channel
      • 2015-09-16 25938, 2015

      • github
        [listenbrainz-server] gentlecat opened pull request #26: LB-15: Link username in navbar to profile page (master...link) https://github.com/metabrainz/listenbrainz-server…
      • 2015-09-16 25938, 2015

      • github has left the channel
      • 2015-09-16 25952, 2015

      • Freso
        My TV remote is dead. :'(
      • 2015-09-16 25935, 2015

      • Freso
        chirlu`: I don't think I do.
      • 2015-09-16 25939, 2015

      • Freso
        navap: They poked me too.
      • 2015-09-16 25903, 2015

      • Gentlecat
        alastairp: I left "Your listens" link there
      • 2015-09-16 25938, 2015

      • Gentlecat
        kind of redundant, not sure if we need to remove it
      • 2015-09-16 25905, 2015

      • alastairp
        Gentlecat: for now, no problem
      • 2015-09-16 25923, 2015

      • alastairp
        My internet has stopped, and Unicode is getting the better of me
      • 2015-09-16 25932, 2015

      • alastairp
        I'll follow this up tomorrow morning
      • 2015-09-16 25937, 2015

      • Gentlecat
        yep
      • 2015-09-16 25950, 2015

      • Gentlecat
        ruaok: I managed to reproduce that problem with timestamp
      • 2015-09-16 25955, 2015

      • ruaok
        yay!