News for hackers. Stuff that matters.
Re:Zed Shaw's latest project - Fret War by aston on Friday November 06, 2009 @03:35PM (#926861)
From his most recent blog post:

  There’s a good chance the site will crash if this blog post 
  hits the nerd sites, so just ignore Fret War until it’s stable.
Re:Zed Shaw's latest project - Fret War by jrockway on Saturday November 07, 2009 @07:45AM (#927798)
There's a good chance that Zed is saying that to get his site posted to all the "nerd sites".
Re:Zed Shaw's latest project - Fret War by rick888 on Friday November 06, 2009 @06:02PM (#927162)
Did zed ever get another job? (didn't he leave to California a couple of months ago?)
Re:Zed Shaw's latest project - Fret War by zacharydanger on Friday November 06, 2009 @06:22PM (#927186)
https://www.dropbox.com/about -- He's an engineer at Dropbox now.
Re:Zed Shaw's latest project - Fret War by unalone on Friday November 06, 2009 @07:42PM (#927301)
Hot damn! I'd never have expected him to find his way there, but it seems like it would be a good fit. A smart ambitious guy who hates bullshit, and one of the few companies that it's impossible to accuse of bullshitting. I wish them both luck.
Re:Zed Shaw's latest project - Fret War by antidaily on Friday November 06, 2009 @05:05PM (#927050)
The concept isn't clear enough. Either that or there's not enough content yet. Or maybe I have to sign up? I'm confused.
Re:Zed Shaw's latest project - Fret War by Locke1689 on Saturday November 07, 2009 @03:27AM (#927659)
I don't like the idea. I prefer playing with other musicians, not trying to beat them. That doesn't even sound fun to me.
Re:Zed Shaw's latest project - Fret War by ahsanulhaque on Saturday November 07, 2009 @03:43AM (#927671)
Sure, you might prefer jamming with other musicians. But Fret War really is for guitarists who're keen on developing technical proficiency,, composition and improvisation skills. To be technically proficient, you always have to strive to be better than others, not necessarily "beat them".
Re:Zed Shaw's latest project - Fret War by chasingsparks on Friday November 06, 2009 @03:57PM (#926903)
The information collected is actually pretty interesting. I assume voting will have something to do with sounding good in addition to speed and accuracy. Besides making a cool site, he just crowd-sourced music production (everything is released with a CC license).
Re:Zed Shaw's latest project - Fret War by tptacek on Friday November 06, 2009 @08:18PM (#927334)
So, this is GuitarWar, right?
Re:Zed Shaw's latest project - Fret War by zedshaw on Friday November 06, 2009 @08:51PM (#927362)
http://runplaybook.com/ is just rsync, right?

:-)

Re:Zed Shaw's latest project - Fret War by tptacek on Friday November 06, 2009 @09:11PM (#927374)
Not even. It's mostly straight SSH. With a little Ragel thrown in.
Re:Zed Shaw's latest project - Fret War by dzohrob on Friday November 06, 2009 @05:40PM (#927119)
who wants to spend time learning to play this?

http://fretwar.com/static/data/round/1/media/xzibitonics_C.m...

Re:Zed Shaw's latest project - Fret War by spudlyo on Friday November 06, 2009 @08:16PM (#927333)
Jamming to randomly generated music doesn't sound like everyone's cup of tea.
Re:Zed Shaw's latest project - Fret War by zedshaw on Friday November 06, 2009 @09:30PM (#927391)
Well the challenge wasn't to "jam" to it, it was to be able to play it. I did it, and I'll say it was way too hard for most guitarists.

This was on purpose to act as a sort of implicit "invite only" mechanism. It kind of worked a bit too well.

The next round will be more "jamming" oriented and open ended so more people can play.

Re:Zed Shaw's latest project - Fret War by eric_t on Saturday November 07, 2009 @03:06AM (#927650)
I didn't find it hard at all, just not very interesting, so wasn't motivated to learn it (no offense). I think having more open-ended jam tracks would work better.
Re:Zed Shaw's latest project - Fret War by zedshaw on Saturday November 07, 2009 @11:15AM (#927988)
Alright, prove it. Send in your submission. If it was so easy you should be able to send it in and compete, regardless of whether it's interesting or not.
Re:Zed Shaw's latest project - Fret War by vorador on Saturday November 07, 2009 @02:47AM (#927639)
I think that there's a display bug under firefox 3.0.5 (ubuntu) : the order of the labels of the fields of the signup form is wrong.

By the way, why is it required to have a twitter account ?

Re:Zed Shaw's latest project - Fret War by ahsanulhaque on Saturday November 07, 2009 @03:48AM (#927674)
It's not required, but preferred.
Re:Zed Shaw's latest project - Fret War by cmelbye on Friday November 06, 2009 @04:05PM (#926919)
Using Ruby on Rails and running on Mongrel, I assume?
Re:Zed Shaw's latest project - Fret War by zedshaw on Friday November 06, 2009 @05:45PM (#927128)
Nope, not rails (troll). It's a web.py application combined with a Lamson application. The frontend is run through nginx and I use some heavy caching tricks to make it fast as possible.

The primary design for hosting costs (scalability) are:

1) http://wiki.nginx.org/NginxHttpAdditionModule to serve static headers and footers so the framework doesn't.

2) Javascript determines the login state of a user and then displays user state links.

3) Generation of the site is "out of order" for convenience of generation/caching, and then javascript knits it back together. We'll explore more of this later.

4) Caching for about 5 minutes on most pages, depending on usage.

5) Use of http://wiki.nginx.org/NginxHttpProxyModule#proxy_store to do page caching for content that needs to be dynamically generated very infrequently.

6) Gzip compression (should do precompression really) and other tuneups.

7) Using Lamson to accept posts via email so that they're processed off-line and statically generated. This is also really easy for people to use and easy to setup, so triple win.

It's currently not close to a production setup, but I'm going for making it easy to host on a small server to keep costs low. Part of that is just not using the framework when possible.

For statistics, right now the Nginx server is getting a modest 4-10 req/sec for html, but the backend is only serving about 1 request a minute thanks to all the above. Also the site really doesn't accept uploaded content via HTTP except say for photos.

Hope that helps, I may blog about it more later.

Re:Zed Shaw's latest project - Fret War by apu on Friday November 06, 2009 @06:28PM (#927193)
Wow, someone else using web.py, and that too for a "real" project! I always feel like a n00b for using such a stripped-down "framework" but after spending some time trying Pylons and Django, I found them both to be too "heavy-weight" for me.

What do you like and dislike about web.py?

Re:Zed Shaw's latest project - Fret War by zedshaw on Friday November 06, 2009 @07:23PM (#927289)
I like web.py for this because it's tiny, fits HTTP real well (try doing REST with Django), and it's "just a library" so it's easy to mesh with Lamson. Also, I was bored.

What I don't like about web.py is this:

https://bugs.launchpad.net/webpy/+bug/435370

I have to hack that fix in to every web.py install because they're too arrogant to actually fix it properly, even when given the fix.

Re:Zed Shaw's latest project - Fret War by jpeterson on Friday November 06, 2009 @09:45PM (#927404)
Zed, I know you mean well, but your wording in that bug report is extremely asshole-ish. Can't you point out flaws without being so snarky?
Re:Zed Shaw's latest project - Fret War by zedshaw on Saturday November 07, 2009 @01:32AM (#927599)
It's not asshole-ish at all, it was just direct and made the point much clearer with the proper amount of urgency. This bug crashes sites consistently and is easily exploited. That's serious enough to warrant an immediate fix and release with an apology for the design. That's what I've done on my projects, and that's what I expect.

Now, the question is why do you demand humility from me, but not from them?

Re:Zed Shaw's latest project - Fret War by jpeterson on Saturday November 07, 2009 @09:08PM (#928656)
Given the downvotes and the other comment here, it seems taht I'm in error, and I'll retract my statement. I guess I misread it; sorry about that.
Re:Zed Shaw's latest project - Fret War by idm on Saturday November 07, 2009 @01:02AM (#927573)
Seriously? A bug report that identifies a DOS condition gets flagged as "won't fix" -- and Zed's followup explains, with details, why it should be fixed, and what the fix should be.

I tried, and I couldn't find anything asshole-ish about the bug report. It looks like good work to me.

Re:Zed Shaw's latest project - Fret War by didip on Friday November 06, 2009 @10:44PM (#927451)
Hi Zed, did you roll your own session and caching library?

In the past, I've had a few problems with sessions on web.py, like AttributeError (Googling around, one of them is still there https://bugs.launchpad.net/webpy/+bug/204084).

Re:Zed Shaw's latest project - Fret War by zedshaw on Saturday November 07, 2009 @01:37AM (#927604)
We actually keep the sessions very light, and if I could I'd get rid of them entirely.

For caching I'm just using nginx and generating as much content to disk as possible. It is much simpler that way, and the goal is to keep things simple and cheap so I can bootstrap the site.

Re:Zed Shaw's latest project - Fret War by chasingsparks on Friday November 06, 2009 @04:06PM (#926926)
He posted sample python code for the rating system in a blog post.

http://zedshaw.com/blog/2009-11-6.html

Re:Zed Shaw's latest project - Fret War by Scriptor on Friday November 06, 2009 @04:56PM (#927033)
I think Zed's pretty much done with Rails. He said he'd only use it if absolutely necessary.
Re:Zed Shaw's latest project - Fret War by garndt on Friday November 06, 2009 @05:08PM (#927062)
Chances are he used django for it. He has blog posts on his new found love for django and his ratings code is in python. According to the Lamson (his project) FAQ, Lamson was influenced by django's features and structure.
Re:Zed Shaw's latest project - Fret War by cturner on Friday November 06, 2009 @05:31PM (#927105)
Whatever it is, it's really fast.
Re:Zed Shaw's latest project - Fret War by 9oliYQjP on Friday November 06, 2009 @05:05PM (#927054)
I might check this out if they had a category for bass guitars.
Re:Zed Shaw's latest project - Fret War by SwellJoe on Friday November 06, 2009 @05:40PM (#927121)
Why would it require a bass guitar category? It appears to be entirely about generic scales and such. Just play it a couple of octaves down.
Re:Zed Shaw's latest project - Fret War by vorador on Saturday November 07, 2009 @03:17AM (#927655)
Because it could get way harder ?
Re:Zed Shaw's latest project - Fret War by acarabott on Friday November 06, 2009 @06:14PM (#927177)
Seems like 'web 2.0' guitarwar.com right?