brad's life - jsdraw archive [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

jsdraw archive [Mar. 15th, 2005|07:19 am]
Previous Entry Add to Memories Share Next Entry
I made jsdraw (see previous entry) save the screen whenever somebody wipes the board:

http://www.danga.com/misc/jsdraw/archive/

And yeah, sorry for forgetting to mention that you can't use it too long else Mozilla shits itself and possibly kills your machine.

Today I'll be making it leapfrog two connections back and forth, initiating the second one to start connecting once the first has downloaded like 1MB, so neither one is open too long and Mozilla can release the responseText of the XmlHttpRequest. I just need to add sequence numbers to the event stream coming down so the client can know where to pick up in the second thread without duplicating things. (which wouldn't be bad, except for chat items)

Oh yeah, I'm at ETech in San Diego. Never been to one before. I'm crossing my fingers it's not just a bunch of self-important people frothing at the mouth about changing the world with their latest buzzword. But I remain optimistic because there are enough cool people I want to meet and hear talk.
LinkReply

Comments:
[User Picture]From: xb95
2005-03-15 03:48 pm (UTC)

(Link)

You should go hear Anil talk about blortals!
[User Picture]From: feignedapathy
2005-03-15 05:15 pm (UTC)

(Link)

Argh. I want to try, but my employer blocks LJ, so by association, danga. ;)
[User Picture]From: avatraxiom
2005-03-15 05:41 pm (UTC)

(Link)

I think it's becoming a meme. I saw the link pop up in #mozwebtools on irc.mozilla.org, and I have no idea how it got there. :-)

-Max
From: (Anonymous)
2005-03-15 05:45 pm (UTC)

(Link)

This is a really cool hack...

But my right-click menu keeps coming up, because Firefox for Mac brings up the menu when you left-click-and-hold (eg dragging, but not moving enough pixels in the first second of mouseDownNess).

You could probably use one of those (usually annoying) js things that disables the right click, and this would be a lot more usable on the mac.
[User Picture]From: bdinger
2005-03-15 08:25 pm (UTC)

(Link)

If you build an IRC client that integrates that, I will have your firstborn child.
[User Picture]From: jwz
2005-03-15 08:45 pm (UTC)

(Link)

Perhaps you can get VC funding for your way-new paradigm-shifting drawblog technology! (drawg?)
[User Picture]From: meowpurrr
2005-03-16 12:33 am (UTC)

(Link)

oh god, i just wondered why this hadn't been moderated "+5, funny"..
*cry*
From: divelog
2005-03-15 10:28 pm (UTC)

Event loop

(Link)

Consider using the google-style adjustable event loop; time how long the XMLHTTPRequest takes to return, and adjust your loop based on the time. Assuming the callback time is proportional to connection speed in some way, people with high-latency connections will make fewer, larger requests where people with low-latency will make many, small requests.

Also, why are you setting the callback after you make the GET call? Seems dangerous.
[User Picture]From: mart
2005-03-15 11:39 pm (UTC)

(Link)

You're going to end up with a lot of tiny files in that directory. I hope you're using a sensible filesystem! ;)

[User Picture]From: terrajen
2005-03-16 09:33 pm (UTC)

(Link)

omg brad. did you meet Denz from dodgeball.com? he went to etech too. we're pals ;>