Live data from Hacker News

Serve Your Music Collection Using HTML5, Backbone, and Flask

git.zx2c4.com

21–30 of 86 posts

Re: Serve Your Music Collection Using HTML5, Backbone, and Flask

#25

Nice work! I see it supports X-Accel-Redirect. Do you think it could proxy music from a remote HTTP server, i.e., an S3 bucket? http://kovyrin.net/2010/07/24/nginx-fu-x-accel-redirect-remo...

Absolutely. Lots of ways to set things up here. You could build support directly into the app, which isn't very difficult, or even easier, just use s3fs:

https://code.google.com/p/s3fs/wiki/FuseOverAmazon

Re: Serve Your Music Collection Using HTML5, Backbone, and Flask

#26
post #10
post #8

Curious as to why you aren't hosting this on github? I would have loved to star it and then come back later.

I don't use github. I use cgit and gitolite. I also don't use Google Music or Amazon Music; I use ZX2C4 Music. I don't use Picasa either - I use PhotoFloat http://zx2c4.com/projects/photofloat/ . Pattern? I don't like relying on cloud services I can't maintain myself. Schneier's got some essay out there called "Feudal Security" or the like that's a decent summary of this position. (I also happen to be the maintainer…

Have you tried using gitlab (which leverages gitolite)?

Re: Serve Your Music Collection Using HTML5, Backbone, and Flask

#27
post #26
post #10

Earlier quoted context omitted.

I don't use github. I use cgit and gitolite. I also don't use Google Music or Amazon Music; I use ZX2C4 Music. I don't use Picasa either - I use PhotoFloat http://zx2c4.com/projects/photofloat/ . Pattern? I don't like relying on cloud services I can't maintain myself. Schneier's got some essay out there called "Feudal Security" or the like that's a decent summary of this position. (I also happen to be the maintainer…

Have you tried using gitlab (which leverages gitolite)?

No, I'll take a look. Though on first glance, I don't really want to be supporting some massive ruby on rails apparatus. I'm pretty much entirely satisfied with cgit -- it's small, minimal, easy to hack on, extensible, and suits all of my git web needs.

Re: Serve Your Music Collection Using HTML5, Backbone, and Flask

#29
post #28

This looks really great. Silly question: is there any way to access localhost from other devices on my WLAN?

No, not localhost. But you can make the built-in debugging server bind to all IP addresses, including the one used on your WLAN.

In backend/local_server.py, change the line that says:

    app.run()
to instead read:

    app.run(host='0.0.0.0')
You should then be able to access the server at the WLAN IP address of your machine, provided port 5000 is opened by your firewall.

Even better, however, would be to use uwsgi in standalone mode. I've updated the README with instructions on this.

Re: Serve Your Music Collection Using HTML5, Backbone, and Flask

#30
Pretty interesting. What does your uwsgi line look like? Mine keeps failing with "ImportError: No module named zmusic.login". I'm running:

uwsgi --socket /tmp/uwsgi-zmusic.sock --file /home/user/zmusic-ng/backend/zmusic -H /home/user/zmusic-ng/venv --callable app --processes 4

Post reply on HN