-
Vlado`` joined the channel
-
Vlado``
hi why does tagger say with most songs it cannot send to server? is it a server problem temporarily?
-
djce
Vlado``: the server's fine as far as I know. What message are you getting?
-
Vlado``
in the error tab: cannot sen/receive from server
-
djce
Are /any/ songs getting through for you?
-
Vlado``
half of them
-
half not
-
djce
hmm, that's odd. The server's not showing any signs of trouble. Do you have a firewall or proxy which might be getting in the way?
-
djce has quit
-
Vlado`` has quit
-
]Thread[ joined the channel
-
]Thread[ has quit
-
spooge joined the channel
-
yalaforge joined the channel
-
Knio
Knio is now known as Knio-sleep
-
djce joined the channel
-
yalaforge_ joined the channel
-
yalaforge has quit
-
yalaforge_
yalaforge_ is now known as yalaforge
-
yalaforge is away: lunch
-
yalaforge is back (gone 01:11:00)
-
spooge has quit
-
spooge joined the channel
-
djce
yalaforge: another web service question?
-
yalaforge
yup?
-
djce
ok, suppose I want to retrieve things by either name or id.
-
the two obvious approaches are: GET /thing/7 <- id=7
-
or GET /thing?id=7
-
is it best to pick one and be consistent, or is mixing them ok?
-
yalaforge
GET /thing/<id>
-
no, mixing them is no good idea
-
djce
ok, so then what about using name instead of id as the key?
-
yalaforge
I'll show you a spec about our future webservice for examples
-
what name would that be?
-
djce
select moderator by name, for example
-
or artist
-
yalaforge
wait a minute, ...
-
djce
(mainly moderator, since name is unique)
-
yalaforge
-
the idea in this document is the following:
-
you'd have a set of moderations, available via /mod/
-
you can select a single one via /mod/<id>
-
you can search that resource (for a moderator) via /mod/?name=modname
-
(some kind of filtering mechanism, conceptionally)
-
err, /mod/?byModeratorName=modname
-
djce
ok, so you're using "/<guid>" where available, and /?column=value elsewhere
-
yalaforge
and /mod/?byModeratorId=id to get all moderations by that moderator
-
djce
the main problem I see with that is that it leads to ambiguities
-
yalaforge
no, it's just a coincidence that guids are available for artists, albums and tracks
-
mod ids are as good as guids
-
what kind of ambiguities?
-
djce
ok. example: suppose you define two ways of fetching artists.
-
GET /artists/?name=.....
-
yalaforge
yup
-
djce
GET /artists/?id=.....
-
what do you do with this query: GET /artists/?name=X&id=y ?
-
yalaforge
whatever you write in your spec :-)
-
you can also return an error code. that's up to you
-
djce
ok :-) I like that. fine
-
I'll go read that document properly now. Thanks
-
yalaforge
REST is a lot more flexible than other IPC mechanisms
-
np. but ignore the use cases on top
-
yalaforge is away: to boldly go ...
-
wheels has quit
-
yalaforge is back (gone 01:11:53)
-
yalaforge has quit
-
djce has quit
-
canidae chants "noooorwaay, norway, norway, nooooooooorwaaaaaaaay!" :D
-
canidae
we won! \o/
-
cikkolata
o_O
-
Knio-sleep
Knio-sleep is now known as Knio
-
real joined the channel
-
Kanmu joined the channel
-
Kanmu has quit
-
Kanmu joined the channel
-
wheels joined the channel
-
real has quit
-
yalaforge joined the channel
-
cikkolata
bah. I read about cd2trm on the mailing list and it doesn't work for me :(
-
Knio
Knio is now known as Knio-gone
-
yalaforge wrote a script in perl but the perl bindings lack proper trm submission functions
-
cikkolata
I'm getting wrong type for something
-
oh well.
-
cikkolata rips the CD as she's been meaning to.
-
yalaforge has quit
-
m_wheels joined the channel
-
wheels has quit