0:02 AM
ruaok
its interesting… its hard to find releases that we dont have a match for, that is also in Spotify.
0:02 AM
with only 250k matching releases.
0:03 AM
Gentlecat
0:03 AM
spinza joined the channel
0:06 AM
ruaok
thanks.
0:06 AM
ok, the add code works. finally.
0:07 AM
(took long enough)
0:07 AM
now to do the add vote and then to deploy this to the new server.
0:07 AM
once I have it running, I’ll start deploying CB as well.
0:08 AM
do you think there is any point to ever voting FOR a mapping?
0:09 AM
what would we ever do with the knowledge that a mapping is correct?
0:11 AM
Gentlecat
I don't think people are going to vote for that much
0:12 AM
ruaok
exactly.
0:12 AM
Gentlecat
maybe just add a small link under embed "Spotify link is incorrect" or something like that
0:12 AM
ruaok
the only point to vote is if a match is wrong.
0:12 AM
yes, exactly.
0:13 AM
ok, I’ll just skip the vote type column.
0:13 AM
there is only one reason to record a vote and its to indicate a bad match.
0:13 AM
Gentlecat
right
0:29 AM
JesseW joined the channel
0:29 AM
JesseW joined the channel
0:29 AM
spinza joined the channel
0:43 AM
spinza joined the channel
0:59 AM
ruaok
ok, voting works.
0:59 AM
I’m going to dump the db and spool it up on sakura.
1:09 AM
Nyanko-sensei joined the channel
1:11 AM
spinza_ joined the channel
1:16 AM
so, I can work on the deployment bits for mbspotify.
1:17 AM
Gentlecat
I might need some help with nginx setup since I never done anything with python there
1:18 AM
if you want me to do that
1:19 AM
ruaok
don’t sweat it. I can do that.
1:19 AM
I’ve got things laying around that I can crib from.
1:19 AM
ianmcorvidae notes to use uwsgi-pass
1:19 AM
not sure if the domain transfer will go through in time for our demo tomorrow.
1:20 AM
ianmcorvidae
(look at what I did for geordi on rocko, at least in part)
1:20 AM
ruaok
ianmcorvidae: yep.
1:20 AM
1:20 AM
ianmcorvidae
sure
1:20 AM
ruaok
that will be my failback in case we don’t have the finished domain transfer.
1:20 AM
they claimed it might take 5-8 days. ;(
1:20 AM
I should’ve thought about this last week apparently.
1:21 AM
Gentlecat
so mbspotify is complete, right?
1:21 AM
ruaok
in theory, yes.
1:21 AM
Gentlecat
I'll finish integration with CB then
1:22 AM
ruaok
let me update the gist from earlier
1:22 AM
Gentlecat
which one?
1:22 AM
I think I can just look at the sources
1:23 AM
ruaok
1:23 AM
faster this way.
1:23 AM
it would be nice to finish this today.
1:24 AM
Gentlecat
mapping stuff and deployment?
1:24 AM
ruaok
especially since you’re going to be sleeping right up until the hack day is over.
1:24 AM
whatever we can get done.
1:24 AM
but, yeah.
1:24 AM
ruaok gets the DNS change underway
1:26 AM
ianmcorvidae
anything running on sakura:80 right now? I have the lenny bits up
1:26 AM
ruaok
I dont think so.
1:26 AM
1:26 AM
we’ll need to use that for the time being.
1:27 AM
let me get nginx up on sakura
1:30 AM
ianmcorvidae: I’ve nginx answering on port 80, but it doesn’t seem to work
1:30 AM
403 forbidden
1:30 AM
ianmcorvidae
yeah, I'm not sure where that's coming from
1:31 AM
ruaok goes to hunt a slice of pizza
1:41 AM
spinza joined the channel
2:01 AM
Gentlecat
looks like someone is having fun with my box :)
2:02 AM
ruaok: we probably want some kind of confirmation dialog for mapping submission, right?
2:03 AM
ruaok
I think that is probably a good idea, yeah.
2:05 AM
Gentlecat: do you remeber the command line you used to restore the .sql file?
2:05 AM
ianmcorvidae
how did you dump it?
2:05 AM
Gentlecat
which one?
2:05 AM
ruaok
pg_dump
2:05 AM
ianmcorvidae
pg_dump has its own format, if you used that, which requires using pg_restore
2:06 AM
(you can dump as sql too, but usually the special format is faster)
2:06 AM
ruaok
pg_restore: [archiver] input file does not appear to be a valid archive
2:06 AM
:-(
2:06 AM
I did pg_dump without arguments.
2:06 AM
ianmcorvidae
no <
2:06 AM
Gentlecat
I unpacked it and piped into psql
2:06 AM
ruaok
ah, thanks ianmcorvidae
2:07 AM
same error.
2:07 AM
ianmcorvidae
then I'm guessing the input file isn't valid, heh
2:07 AM
oh, but it's a plain-sql one
2:07 AM
ruaok
I’ll just redirect it hen
2:08 AM
into a hen, that is.
2:08 AM
Gentlecat
I can make one for you
2:08 AM
ruaok
squawk.
2:08 AM
ianmcorvidae
check the file and see if it includes the creating of the DB, if so you can just psql it in, anyway
2:08 AM
ruaok
Gentlecat: no worries.
2:08 AM
I’ll create it by hand
2:08 AM
ianmcorvidae
(I've mostly only ever used pg_dump --schema-only, for testing schema change stuff, so :P)
2:10 AM
ruaok
ok, that worked. wicked fast too.
2:10 AM
ianmcorvidae
I can't imagine that DB is exactly huge
2:12 AM
Gentlecat
about 250k rows iirc
2:12 AM
ianmcorvidae
yeah, heh, 264.5k rows in one table
2:12 AM
nothing
2:12 AM
Gentlecat
ruaok: AssertionError: View function mapping is overwriting an existing endpoint function: add
2:12 AM
2:13 AM
ianmcorvidae
yup, two add functions
2:13 AM
heh
2:16 AM
ruaok
lame copy pasta
2:16 AM
fix pushed
2:17 AM
now to deploy this, then to deploy CB itself. then that will probably be it for the day.
2:18 AM
tomorrow, I’ll try and create a userscript to use the mapping layer for
mb.org
2:19 AM
Gentlecat
CB might me a good source of mapping submissions after some time
2:19 AM
ruaok
any preferences on where virtual envs should live on the server?
2:19 AM
yeah.
2:19 AM
Gentlecat
good way to fill the DB
2:19 AM
ruaok
but we have enough for a good demo now.
2:20 AM
which is all that is needed to get Spotify’s attention.
2:20 AM
Gentlecat
for sure
2:20 AM
ruaok
which, I think, we already have.
2:20 AM
ianmcorvidae
considering they invited us to have a summit at their headquarters I imagine they're fairly aware of us :P
2:20 AM
Gentlecat
did they?
2:21 AM
ianmcorvidae
at the last summit, yeah XD
2:21 AM
Gentlecat
wow, that's cool
2:21 AM
ruaok
ianmcorvidae: sure they are, but they are not moving fast enough on the MBIDs bit.
2:21 AM
ianmcorvidae
yeah, that much is fair
2:21 AM
ruaok
I’m trying to create more external pressure.
2:21 AM
separate user account for mbspotify and critiquebrainz?
2:22 AM
then /home/<user>/ve ?
2:22 AM
user name mbspotify and cb?
2:22 AM
or spell out cb?
2:23 AM
are two letter usernames even allowed?
2:23 AM
ianmcorvidae
I'd spell it out anyway
2:23 AM
Gentlecat
I'm going to send user ids on CB
2:24 AM
I believe that's all we have there apart from user id on musicbrainz
2:24 AM
oh, you are talking about different thing
2:24 AM
sorry
2:24 AM
ruaok
:)
2:24 AM
ok, long names used
2:29 AM
Gentlecat
2:31 AM
ianmcorvidae
don't use % with cur.execute
2:31 AM
you're not actually using string formatting
2:32 AM
should probably be ('''SELECT ...''', id_tuple) other than I'm not completely sure how it deals with tuples
2:32 AM
if you have the proper array options set, mbid = any(%s) should behave properly though
2:33 AM
(related, I hate the psycopg2 decided to quasi-override the string formatting syntax, since *actually* using string formatting there is a big sql injection risk)
2:35 AM
ruaok
habit, thanks for catching that.
2:35 AM
ruaok thinks to the doc not about not ever doing that, even at gunpoint.
2:36 AM
ianmcorvidae
yeah, heh
2:36 AM
ruaok
at least I got right elsewhere.
2:36 AM
ianmcorvidae
I really wish they'd use a different syntax so that it'd fail harder if you do it wrong
2:37 AM
ruaok
+1 ianmcorvidae
2:37 AM
Gentlecat: pull
2:37 AM
(my finger)
2:37 AM
which is interesting too. when you to a pull, the bits come from two floors above me.
2:37 AM
github is an odd, crazy, opulent place.
2:37 AM
ianmcorvidae: did you see the pic I posted to FB?
2:37 AM
ianmcorvidae
I did
2:37 AM
I have a low opinion of github's self-indulgence