00:06
<eboyjr>
I have a proposition for DOM if anyone is interested
00:06
<eboyjr>
I think it is important to be able to get the request headers sent by the browser for the current page
00:09
<webr3>
eboyjr, I'll second that and give a big +1
00:09
<webr3>
already addressed w/ XHR though..
00:10
<eboyjr>
like document.getAllReponseHeaders() and document.getAllRequestHeaders(). I thought of the idea since Javascript is unable to get the locale of the browser so you cannot localize your scripts without a server language like PHP
00:10
<eboyjr>
webr3: I think you would have to make a dummy request then wouldn't you?
00:11
<webr3>
yes - but it would require a request like that anyways to know which headers to expose..
00:11
<webr3>
so maybe just XHR it and leverage CORS - a document.getAllRequestHeaders() would have to take the same steps to know what to allow and what not to
00:12
<webr3>
imagine if Cookie: or similar was exposed.. or Content-Location on an intranet site to a js from the web.. and so on
00:13
<webr3>
just do a HEAD request via XHR to get them
00:13
<eboyjr>
I was thinking of getting the headers that were already sent on the current page though
00:14
<eboyjr>
I probably don't get what you mean though
00:14
<webr3>
a browser can't expose many headers on the current page for security reasons
00:15
<webr3>
so to know what to expose a CORS like system would have to be implemented for non-CORS requests via the browser
00:15
<webr3>
which isn't going to happen
00:15
<eboyjr>
Really? The server has full access to them though and you can use a server script to output all the information to javascript
00:15
<webr3>
(server needs to say which headers can be exposed to javascript/dom)
00:16
<webr3>
ahhhhh hold on..
00:16
<webr3>
you're saying Request Headers ya? not Response
00:16
<eboyjr>
Yes exactly
00:16
<eboyjr>
like Accpet-Language for example
00:16
<webr3>
why would a js script need to know that post response? what's your use-case?
00:17
<eboyjr>
Getting the users' locale/language
00:18
<eboyjr>
It is one of the request headers that a browser would send but can't be exposed to Javascript without a server-side script
00:19
<webr3>
in that case request headers aren't the right response
00:19
<webr3>
there should be attributes on Window or Navigator to expose the localization settings - but I can't see them
00:21
<webr3>
maybe you can parse navigator.userAgent string?
00:21
<webr3>
that has localization in it
00:22
<eboyjr>
In firefox there is navigator.language
00:23
<eboyjr>
Well chrome too :S
00:24
<eboyjr>
Wouldn't hurt to be able to access request headers though
09:05
<romeo_>
2010-10-10 10:10:13
09:05
<romeo_>
I missed it!
09:08
romeo_
was to busy looking at the beautiful fog outside his window.
09:08
<romeo_>
s/to/too/
09:10
<micheil>
it'll happen again
09:10
<micheil>
in 12 hours time.
09:10
<micheil>
10-10-10 10:10:10pm
09:34
<Philip`>
It'll happen again in 30 minutes, in another timezone
13:29
<annevk>
oh, I missed https://bugzilla.mozilla.org/show_bug.cgi?id=602028 (WebSocket prefixing discussion)
15:18
<annevk>
looking at the logs I wonder whether mookid is back with a new nick...
15:26
<MikeSmith>
annevk: I thought exactly the same thing
15:26
MikeSmith
goes back to find the nick
15:26
<MikeSmith>
anyway, I sure hope so
15:26
<MikeSmith>
too boring around here lately
15:29
<karlcow>
MikeSmith, annevk, I wish there was an author element O:-)
15:31
<sideshow>
annevk: http://irclogs.ubuntu.com/2008/05/20/%23ubuntu.txt might provide some clues
15:31
<sideshow>
karlcow: author element?
15:36
<micheil>
annevk: I sure hope firefox 4 doesn't prefix the WebSocket constructor..
15:36
<micheil>
dev's should be fine with the next version of the protocol being released in a browser breaking their current implementations
15:37
<micheil>
hence the reason I've gotten all the developers working on the websocket servers to follow the IETF hybi list.
15:37
<micheil>
(also even more reason to have something change in the handshake to notify servers of protocol versions)
15:56
<MikeSmith>
annevk: btw, instead of using Tidy, you can just open Firebug on your source and select the html element and choose "Copy HTML" to copy the serialization of the DOM for the whole document
15:56
<MikeSmith>
or in Web Inspector
15:56
<MikeSmith>
or equivalent
15:56
<MikeSmith>
I don't know if Dragonfly lets you do that yet
15:57
<annevk>
I see
15:57
<MikeSmith>
I don't think it did last time I tried
15:57
<MikeSmith>
or I couldn't find it at least
15:57
<annevk>
then again, tidy was installed and lots of other things already went via the command line
15:57
<MikeSmith>
yeah
15:57
MikeSmith
is reminded that he wants to install new Dragonfly
15:57
<MikeSmith>
how do I get new Dragonfly
15:58
<MikeSmith>
annevk: problem with Tidy is, you don't really know what all it might be changing
16:02
MikeSmith
installs Opera 10.62
16:03
<MikeSmith>
I hope some future generation of Opera developers will evolve to the point of figuring out how to make Opera "Check for Updates" actually work they way one might expect it to work
16:05
<MikeSmith>
maybe these guys could figure out how to do it properly -
16:05
<MikeSmith>
http://media.photobucket.com/image/star+trek+talosians/vladislaw_photo/startrek-Talosians.jpg
16:07
<MikeSmith>
hmm, after upgrading to 10.62, now my "Opera Dragonfly" menu item is grayed out
16:08
MikeSmith
reads http://my.opera.com/chooseopera/blog/2010/09/30/opera-dragonfly-preview
16:09
<MikeSmith>
ah sweet
16:10
MikeSmith
notes new icons
16:12
<MikeSmith>
ah cool
16:12
<espadrine>
The blue world icon looks foreign.
16:12
<espadrine>
All other icons have a clear black border.
16:13
<MikeSmith>
well, I just discovered the "Export current DOM view" button
16:13
<MikeSmith>
which seems to work as expected
16:14
<MikeSmith>
e.g., if you expand the whole DOM tree first, and then click that, you get the whole DOM as a text that you can copy and paste
16:22
<MikeSmith>
hmm, but "Export DOM" in the new Dragonfly preview causes the menu names to be selected as well as the actual DOM serialization
16:23
<MikeSmith>
I switched back to old Dragonfly and I see the Export DOM option there now too
16:23
<micheil>
hmm.. there's a John A Tamplin that's about here, right?
16:23
<MikeSmith>
and it works correctly
16:24
<MikeSmith>
micheil: doesn't sound familiar to me at least
16:24
<micheil>
hmm..
16:24
<micheil>
okay
16:24
<micheil>
I've seen the name else where thne
16:25
<MikeSmith>
hybi mailing list
16:25
<MikeSmith>
it seems
16:27
<micheil>
okay
17:14
gsnedders
hasn't really heard what's going on on hybi for a while
17:15
<gsnedders>
Like, since I heard from jgraham while still sharing an office with him. :P
21:08
<jgraham>
gsnedders: The update is that abarth has proposed a new, more secure handshake, and various others are arguing posiions ranging from "if you don't actually exploit the existing design it must be secure enough" to "we don't need to care about security because even if websockets is secure there will probably be other unrelated attack vectors"
21:09
<jgraham>
(I wish I was making this up)
21:09
<abarth>
:)
21:11
<gsnedders>
jgraham: And that's all that's happened in the last month? Okay. So I guess the eight-week plan has gone. :P
21:14
<jgraham>
gsnedders: It was a four week plan. And it is long gone
21:17
gsnedders
sighs, a bit after 9:00, an empty bottle of vodka and two half empty bottles, with only half my flat drinking
21:17
<gsnedders>
(actually, a bit less than half)
21:18
<jgraham>
Well that means the rest of them are sober and so still fun, right :)
21:19
<gsnedders>
Already out at concert, studying for tomorrow morning, or away for the weekend and not yet back.
21:19
<gsnedders>
So meh.
21:20
<gsnedders>
(And I've got bored of book now)
21:20
<jgraham>
You should have got invited to the concert
21:21
<gsnedders>
Heh, one of my flatmate's friends managed to get two free tickets (as he does music reviews for something), so just two people gone
21:21
gsnedders
is going to see The Birthday Massacre on Wednesday, however
22:02
<AryehGregor>
This new policy of mine, of not checking e-mail/feeds/websites I follow more than once per day except priority e-mail, is terrifying. I can't think of anything to do except actual work.
22:03
variable
should take on AryehGregor's policy
22:03
<Rik`>
AryehGregor: how do you only check "priority email"
22:04
<AryehGregor>
Rik`, well, I use Gmail's priority inbox feature. I still see the regular inbox (although not spec mail), but I don't open any of them unless Google clearly misplaced it and it should be priority.
22:05
<AryehGregor>
So I can check my mail, but it doesn't waste much time because I don't read the actual mail, except the small number of priority messages (from people I know IRL, etc.).