Log in

No account? Create an account
jsdraw archive - brad's life — LiveJournal [entries|archive|friends|userinfo]
Brad Fitzpatrick

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

jsdraw archive [Mar. 15th, 2005|07:19 am]
Brad Fitzpatrick
I made jsdraw (see previous entry) save the screen whenever somebody wipes the board:


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.

[User Picture]From: xb95
2005-03-15 03:48 pm (UTC)
You should go hear Anil talk about blortals!
(Reply) (Thread)
[User Picture]From: feignedapathy
2005-03-15 05:15 pm (UTC)
Argh. I want to try, but my employer blocks LJ, so by association, danga. ;)
(Reply) (Thread)
[User Picture]From: avatraxiom
2005-03-15 05:41 pm (UTC)
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. :-)

(Reply) (Thread)
From: (Anonymous)
2005-03-15 05:45 pm (UTC)
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.
(Reply) (Thread)
[User Picture]From: bdinger
2005-03-15 08:25 pm (UTC)
If you build an IRC client that integrates that, I will have your firstborn child.
(Reply) (Thread)
[User Picture]From: jwz
2005-03-15 08:45 pm (UTC)
Perhaps you can get VC funding for your way-new paradigm-shifting drawblog technology! (drawg?)
(Reply) (Thread)
[User Picture]From: meowpurrr
2005-03-16 12:33 am (UTC)
oh god, i just wondered why this hadn't been moderated "+5, funny"..
(Reply) (Parent) (Thread)
From: divelog
2005-03-15 10:28 pm (UTC)

Event loop

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.
(Reply) (Thread)
[User Picture]From: mart
2005-03-15 11:39 pm (UTC)

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

(Reply) (Thread)
[User Picture]From: terrajen
2005-03-16 09:33 pm (UTC)
omg brad. did you meet Denz from dodgeball.com? he went to etech too. we're pals ;>
(Reply) (Thread)