/irc-logs / freenode / #whatwg / 2009-05-04 / end

Options:

  1. # Session Start: Mon May 04 00:00:01 2009
  2. # Session Ident: #whatwg
  3. # [00:06] * Quits: ZombieLoffe (n=e@unaffiliated/zombieloffe)
  4. # [00:11] <Dashiva> "You can not argue this because it is factual opinion."
  5. # [00:12] <Dashiva> Axiomatic proof, move over
  6. # [00:12] * Quits: MikeSmith (n=MikeSmit@EM114-48-160-91.pool.e-mobile.ne.jp) (Read error: 110 (Connection timed out))
  7. # [00:12] <hsivonen> Dashiva: what are you quoting?
  8. # [00:13] <Dashiva> Nothing related, it just reminded me of The Proof.
  9. # [00:20] * Quits: zalan (n=kvirc@catv-80-99-193-98.catv.broadband.hu) ("KVIrc 3.4.0 Virgo http://www.kvirc.net/")
  10. # [00:27] * Quits: weinig (n=weinig@nat/apple/x-4bc87e6d32d66cba)
  11. # [00:35] * Joins: weinig (n=weinig@nat/apple/x-84eab42023b5a976)
  12. # [00:37] * Quits: Lachy (n=Lachlan@85.196.122.246) ("This computer has gone to sleep")
  13. # [00:38] * Quits: svl (n=me@ip565744a7.direct-adsl.nl) ("And back he spurred like a madman, shrieking a curse to the sky.")
  14. # [00:55] <Hixie> http://identi.ca/notice/3921839
  15. # [00:55] <Hixie> now people want to physically beat us :-(
  16. # [00:56] <weinig> Hixie: that can only mean you are doing things right
  17. # [00:59] <Dashiva> First they flame you, then they assault you, then you reach CR
  18. # [01:13] * Joins: itpastorn1 (n=itpastor@139.57.227.87.static.th.siw.siwnet.net)
  19. # [01:30] * Quits: itpastorn (n=itpastor@139.57.227.87.static.th.siw.siwnet.net) (Read error: 110 (Connection timed out))
  20. # [01:33] * Joins: Lachy (n=Lachlan@85.196.122.246)
  21. # [01:47] * Joins: davidb (n=davidb@bas4-toronto06-1279277838.dsl.bell.ca)
  22. # [01:48] * Quits: davidb (n=davidb@bas4-toronto06-1279277838.dsl.bell.ca) (Client Quit)
  23. # [01:49] <Hixie> interesting
  24. # [01:50] <Hixie> setTimeout() doesn't seem to throw if you pass it non-code non-string first arguments
  25. # [01:52] * Quits: gsnedders (n=gsnedder@host86-136-52-180.range86-136.btcentralplus.com) (Remote closed the connection)
  26. # [01:55] * Quits: heycam (n=cam@203-217-72-53.dyn.iinet.net.au) ("bye")
  27. # [01:57] <weinig> Hixie: we recently changed that WebKit
  28. # [01:58] <Hixie> webkit returns undefined
  29. # [01:58] <Hixie> firefox actually just works
  30. # [01:58] <Hixie> (and doesn't do anything when the timeout comes)
  31. # [01:58] <weinig> well, I am not sure we threw, but we now call toString on whatever is passed if it is not a function
  32. # [01:58] <weinig> so setTimeout({ toString : function() { }, 0) now works as it does in firefox
  33. # [01:58] <Hixie> that doesn't seem to be the behaviour
  34. # [01:59] <Hixie> setTimeout(true, 0); should return a number if that was the case
  35. # [01:59] <Hixie> but it returns undefined
  36. # [01:59] <weinig> Hixie: this is a very recent change
  37. # [01:59] <weinig> Hixie: in the last week or so
  38. # [01:59] * weinig checks to make sure it was actually landed
  39. # [01:59] * Hixie updates to the latest build in case he last updated just before it landed or something
  40. # [02:00] <weinig> yeah, javascript:alert(setTimeout(true, 0)) returns a number in ToT
  41. # [02:00] <weinig> in shipping, we return undefined
  42. # [02:00] <Hixie> i never test shipping builds
  43. # [02:01] <Hixie> shipping is just another word for "obsolete"
  44. # [02:01] <weinig> Hixie: a trunk build from a week ago would do the same :)
  45. # [02:01] * weinig was playing around with setTimeout and noticed this difference so fixed it
  46. # [02:01] <Hixie> yup, it is indeed changed
  47. # [02:01] <Hixie> cool
  48. # [02:02] <weinig> happy to help :)
  49. # [02:03] <weinig> weird coincidence though
  50. # [02:04] <Hixie> well in my case it's just a matter of going down a list and this was the next item
  51. # [02:07] <Hixie> you do the same with the second argument?
  52. # [02:09] * Joins: davidb (n=davidb@bas4-toronto06-1279277838.dsl.bell.ca)
  53. # [02:41] * Joins: heycam (n=cam@zot.infotech.monash.edu.au)
  54. # [02:48] <Hixie> can anyone think of any unusual objects in JavaScript that have a [[Call]] thingy defined but aren't what you would consider regular functions?
  55. # [02:48] <Hixie> ...and which have some detectable side-effect?
  56. # [02:50] <olliej> Hixie: huh?
  57. # [02:50] <olliej> Hixie: what do you mean?
  58. # [02:51] <olliej> Hixie: you mean standard runtime functions that aren't 'pure'?
  59. # [02:51] <Hixie> well e.g. select.options can be invoked as a function
  60. # [02:51] <Hixie> like select.options('a')
  61. # [02:51] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  62. # [02:51] <Hixie> as well as being a regular object in its own right
  63. # [02:52] <Hixie> with select.options.length, etc
  64. # [02:52] <olliej> Hixie: all functions are objects in their own right
  65. # [02:52] <olliej> Hixie: anyFunction.length
  66. # [02:52] <olliej> Hixie: will return the number of arguments to said function
  67. # [02:52] <olliej> Hixie: that said
  68. # [02:52] <Hixie> oh i should have said in the DOM, not in JS, my bad
  69. # [02:52] <olliej> Hixie: iirc /a/("foo") in js
  70. # [02:52] <olliej> Hixie: oh
  71. # [02:52] <olliej> only the dom
  72. # [02:53] <Hixie> well in js too is fine
  73. # [02:53] <Hixie> does /a/("foo") have any detectable side-effects?
  74. # [02:53] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Read error: 104 (Connection reset by peer))
  75. # [02:53] <Hixie> does it change state when you invoke it or something?
  76. # [02:53] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  77. # [02:53] <olliej> Hixie: evaluating a regex puts the results on the RegExp constructor
  78. # [02:54] <Hixie> come again?
  79. # [02:54] <Hixie> wait, really?
  80. # [02:54] <olliej> Hixie: yeah
  81. # [02:54] <olliej> i discovered this last week
  82. # [02:54] <Hixie> that's awesome
  83. # [02:54] <olliej> or maybe two weeks ago
  84. # [02:54] <olliej> that made me sad
  85. # [02:54] <olliej> Hixie: just a mo
  86. # [02:54] <olliej> i'll dig up the details
  87. # [02:55] * Quits: Amorphous (i=jan@unaffiliated/amorphous) (Read error: 110 (Connection timed out))
  88. # [02:55] <Hixie> /.+/('eueouue'); RegExp.lastMatch
  89. # [02:55] <Hixie> that's super
  90. # [02:55] * Joins: MikeSmith (n=MikeSmit@EM114-48-137-234.pool.e-mobile.ne.jp)
  91. # [02:56] <Hixie> hahaha yes!
  92. # [02:56] <Hixie> olliej: thanks, that's what i needed
  93. # [02:56] <Hixie> setTimeout(/.*/, 0, 'test'); affects RegExp.lastMatch
  94. # [02:56] <olliej> ah ha
  95. # [02:56] <Hixie> man in this API ridiculous or what
  96. # [02:56] * Quits: MikeSmith (n=MikeSmit@EM114-48-137-234.pool.e-mobile.ne.jp) (Client Quit)
  97. # [02:56] <olliej> Hixie: hehe
  98. # [02:56] <olliej> it made me very sad
  99. # [02:56] <olliej> Hixie: when i discovered that
  100. # [02:56] <Hixie> heycam: i need a new thing in WebIDL which means "this interface is only for JS if you're even thinking of using this in another language please go have a cold shower right now"
  101. # [02:57] <heycam> hah
  102. # [02:57] <Hixie> maybe, say, as a [HereBeDragons] interface decorator
  103. # [02:57] <heycam> can i ask, what interface is this?
  104. # [02:57] <Hixie> WindowTimers
  105. # [02:58] <heycam> huh. how come?
  106. # [02:58] * Joins: Amorphous (i=jan@unaffiliated/amorphous)
  107. # [02:58] <Hixie> it has setTimeout and company on it, so that i can reuse them in workers without taking all of Window with it
  108. # [02:58] <Hixie> but if you mean "why is setTimeout so bad", consider that its signature is:
  109. # [02:58] <Hixie> long setTimeout(in any handler, [Optional] in any timeout, [Variadic] in any args)
  110. # [02:59] <Hixie> and the function's behaviour depends on whether handler has a [[Call]] method or not
  111. # [02:59] <heycam> so overloading a DOMString and a Callback interface isn't enough?
  112. # [03:00] <Hixie> what's the interface that defines a callback that the object /foo/ matches?
  113. # [03:00] <Hixie> (but which the string "foo" doesn't)
  114. # [03:01] <heycam> not sure what you mean
  115. # [03:01] <Hixie> how could overloading a DOMString and a Callback interface be enough?
  116. # [03:01] <heycam> currently i think you can overload and distinguish between DOMStrings and an object of an interface
  117. # [03:01] <Hixie> setTimeout() takes anything
  118. # [03:02] <Hixie> its first argument can be { toString: function() { return 'alert(0)'; } }
  119. # [03:02] <Hixie> and you'll get an alert
  120. # [03:02] <Hixie> it can also be window.alert
  121. # [03:02] <Hixie> you'll also get an alert
  122. # [03:02] <heycam> ok maybe the rules don't exactly fit, since when you have overloading any old type won't get stringified to match the DOMString
  123. # [03:02] <heycam> iirc
  124. # [03:02] <heycam> but i should check...
  125. # [03:04] <Hixie> setTimeout(handler, { toString: function() { return '20.1'; } }) is treated the same as setTimeout(handler, 20);
  126. # [03:04] <Hixie> if you give me the webidl to do that and i'll use it, but i think our time might be better spent just writing a few lines of prose
  127. # [03:05] <heycam> yeah
  128. # [03:05] <heycam> ok
  129. # [03:05] <heycam> you want a [Language=ECMAScript] or something?
  130. # [03:05] <heycam> or a term you can use in prose?
  131. # [03:06] <Hixie> actually i kinda think [HereBeDragons] would be pretty neat. but i could work with Language=ECMAScript too if you like.
  132. # [03:06] <Hixie> i just want something that prevents the idl from compiling
  133. # [03:06] <heycam> ?
  134. # [03:06] <Hixie> so that people who use it have to go figure out wtf is going on
  135. # [03:07] <heycam> then perhaps idl is not what you're looking for?
  136. # [03:07] <Hixie> possibly
  137. # [03:07] <heycam> well, there's a slight advantage to still using it; you get the long return value
  138. # [03:07] <heycam> and the association of arguments to the argument names
  139. # [03:08] <heycam> but i guess that's about it =)
  140. # [03:08] <Hixie> it also implies that the methods are on the object, etc
  141. # [03:08] <Hixie> i think i'll keep using it
  142. # [03:08] <heycam> yeah
  143. # [03:08] <heycam> ok
  144. # [03:08] <Hixie> don't worry about it
  145. # [03:08] <Hixie> they'll have to implement this anyway i guess
  146. # [03:09] <Hixie> so they'll soon find what a... poorly designed API it is
  147. # [03:09] <heycam> are you going to supply a big idl file of all the definitions (or a zip file of separate idl files)?
  148. # [03:09] <Hixie> (not my first choice of words)
  149. # [03:09] <Hixie> wasn't planning on it
  150. # [03:09] <Hixie> but people might want it
  151. # [03:09] <Hixie> it's pretty easy to make it
  152. # [03:09] <Hixie> just strip all the blocks with class=idl
  153. # [03:09] <heycam> that's what i do currently (with a bookmarklet)
  154. # [03:10] <Hixie> though a few things will fail, e.g. WindowProxy isn't defined in idl
  155. # [03:10] <Hixie> only in prose
  156. # [03:10] <heycam> hmm
  157. # [03:10] <heycam> because it's difficult to specify?
  158. # [03:10] <Hixie> (and, well, see above are setTimeout()!)
  159. # [03:10] <Hixie> I have no idea how I'd define WindowProxy in IDL
  160. # [03:11] <Hixie> it is in every sense indistinguishable from Window
  161. # [03:11] <Hixie> and you can't get a hold of the Window object anyway
  162. # [03:11] <Hixie> so...
  163. # [03:11] <heycam> if it's indistinguishable, and you've got a definition of Window, then it should be easy to come up with a definition for WindowProxy
  164. # [03:12] <heycam> (i.e., just copy it)
  165. # [03:12] <Hixie> all it does is forward every operation to the underlying Window
  166. # [03:13] <Hixie> for example, it's prototype changes when the underlying Window changes
  167. # [03:13] <Hixie> its
  168. # [03:14] <heycam> does that mean it's impossible to specify in idl though?
  169. # [03:14] <Hixie> i think it means that it's not useful to specify in idl
  170. # [03:14] <heycam> ok
  171. # [03:15] <heycam> so what i'm concerned about is whether it'd be possible to "compile" or process however all the idl for html5
  172. # [03:15] <heycam> if there are dangling references to interfaces like WindowProxy...
  173. # [03:15] <Hixie> there are bits that need to be provided first
  174. # [03:15] <Hixie> but after they are provided, sure
  175. # [03:15] <Hixie> (such as WindowProxy)
  176. # [03:17] * Quits: weinig (n=weinig@nat/apple/x-84eab42023b5a976)
  177. # [03:23] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  178. # [03:27] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  179. # [03:28] <Hixie> i wonder how to spec the whole "compile the string" thing
  180. # [03:29] * Quits: davidb (n=davidb@bas4-toronto06-1279277838.dsl.bell.ca)
  181. # [03:31] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Client Quit)
  182. # [03:32] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  183. # [03:32] * Quits: dbaron (n=dbaron@c-98-234-51-190.hsd1.ca.comcast.net) ("8403864 bytes have been tenured, next gc will be global.")
  184. # [03:40] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  185. # [03:42] * Joins: itpastorn (n=itpastor@139.57.227.87.static.th.siw.siwnet.net)
  186. # [03:43] * Joins: mpilgrim (n=mark@rrcs-96-10-240-189.midsouth.biz.rr.com)
  187. # [03:43] * Joins: archtech (n=stanv@83.228.56.37)
  188. # [03:48] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  189. # [03:53] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Client Quit)
  190. # [03:53] * Joins: weinig (n=weinig@c-67-180-35-124.hsd1.ca.comcast.net)
  191. # [03:57] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  192. # [04:03] * Quits: itpastorn1 (n=itpastor@139.57.227.87.static.th.siw.siwnet.net) (Read error: 110 (Connection timed out))
  193. # [04:12] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  194. # [04:18] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  195. # [04:24] * Joins: tantek_ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  196. # [04:24] * Quits: mpilgrim (n=mark@rrcs-96-10-240-189.midsouth.biz.rr.com) (Remote closed the connection)
  197. # [04:25] * Joins: mpilgrim (n=mark@rrcs-96-10-240-189.midsouth.biz.rr.com)
  198. # [04:27] * Joins: tantek__ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  199. # [04:40] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Read error: 110 (Connection timed out))
  200. # [04:47] * Quits: tantek__ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  201. # [04:47] * Joins: MikeSmith (n=MikeSmit@EM114-48-173-49.pool.e-mobile.ne.jp)
  202. # [04:48] * Quits: tantek_ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Read error: 110 (Connection timed out))
  203. # [04:52] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  204. # [04:57] * Quits: mpilgrim (n=mark@rrcs-96-10-240-189.midsouth.biz.rr.com) (Remote closed the connection)
  205. # [04:57] * Joins: mpilgrim (n=mark@rrcs-96-10-240-189.midsouth.biz.rr.com)
  206. # [05:21] * Quits: MikeSmith (n=MikeSmit@EM114-48-173-49.pool.e-mobile.ne.jp) ("Tomorrow to fresh woods, and pastures new.")
  207. # [05:21] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Read error: 104 (Connection reset by peer))
  208. # [05:21] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  209. # [05:28] * weinig is now known as weinig|yum
  210. # [05:28] * Joins: tantek_ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  211. # [05:45] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Read error: 110 (Connection timed out))
  212. # [06:01] * Quits: tantek_ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Read error: 110 (Connection timed out))
  213. # [06:15] <hsivonen> I wonder which one of jd's posts has resonated http://twitter.com/jbowtie/status/1691112133
  214. # [06:27] * Joins: ojan (n=ojan@203.39.247.241)
  215. # [06:27] <ojan> Hixie: ping
  216. # [06:28] <Hixie> here
  217. # [06:29] <ojan> Hixie: i'm trying to see if it's worth trying to add undo/redo events to webkit...
  218. # [06:29] <ojan> Hixie: seems like they are tied to the UndoManager though...so we'd need to hash all that stuff out before moving forward?
  219. # [06:29] <Hixie> pretty much
  220. # [06:29] <Hixie> though nobody has suggested a better solution yet
  221. # [06:32] <ojan> Hixie: to be sure i'm understanding the intent, onundo/onredo would fire when the user picks undo/redo from a menu, fires the undo/redo execCommands or hits the appropriate key-command, right?
  222. # [06:32] <Hixie> yup
  223. # [06:42] <ojan> Hixie: i don't quite follow some bits here...
  224. # [06:42] <ojan> in 6.11.4
  225. # [06:42] <ojan> "If the entry immediately before the undo position is an undo object entry"
  226. # [06:43] <ojan> what else could it be?
  227. # [06:43] <Hixie> The entries are of two type: DOM changes and undo objects.
  228. # [06:43] <Hixie> click "undo transaction history"
  229. # [06:43] <Hixie> for more details
  230. # [06:44] <ojan> right, i saw that...so, undo/redo events don't fire for DOM changes?
  231. # [06:45] <Hixie> the undo/redo events are there just to let scripts perform the changes that need doing for the relevant objects they put on the list
  232. # [06:45] <ojan> ah
  233. # [06:45] <ojan> that's what i wasn't understanding
  234. # [06:45] <Hixie> the whole section is a mess imho
  235. # [06:45] <Hixie> i don't really like it
  236. # [06:46] * Joins: harig (n=opera@59.90.71.35)
  237. # [06:46] <Hixie> (i don't have anything better to suggest though)
  238. # [06:46] <ojan> so, the thing you pass in to the add method is any arbitrary JS object of your choosing?
  239. # [06:46] <Hixie> right
  240. # [06:46] <ojan> i see
  241. # [06:46] <ojan> i'm starting to get the intention here now at least :)
  242. # [06:47] <Hixie> hehe
  243. # [06:47] <ojan> Hixie: i feel like it would be a ton simple to just have the object you pass in be required to have undo/redo methods
  244. # [06:48] <ojan> Hixie: gives more flexibility to the web developer in terms of when they setup the undo/redo state
  245. # [06:48] <ojan> (i.e. they can do it at the time of the change or at the time of the undo)
  246. # [06:48] <ojan> I guess you can do that already with the current API
  247. # [06:48] <Hixie> how would you handle the case where an undo operation has no matching redo?
  248. # [06:49] <Hixie> i recommend sending a more concrete proposal to the list
  249. # [06:49] <ojan> sure
  250. # [06:49] <Hixie> it really wouldn't take much to convince me to change the spec
  251. # [06:49] <ojan> have you considered undo/redo events for DOM changes?
  252. # [06:49] <Hixie> anything even semi-coherent would probably be convincing enough :-)
  253. # [06:50] <Hixie> i don't think i had use cases for those
  254. # [06:50] <Hixie> so probably not
  255. # [06:50] <ojan> ok, i'll try and draft an email then...
  256. # [06:50] <Hixie> (i'm not opposed though)
  257. # [06:50] <ojan> the use-case is for apps that want to capture the undo/redo and handle it themselves
  258. # [06:51] <Hixie> that's not a use case, that's a description of what it can do :-)
  259. # [06:53] <ojan> Hixie: as an example, the google rich text editor keeps its own undo stack. right now it doesn't do the right thing if you undo/redo from the menu because the JS code doesn't know that an undo happened. it can't catch and cancel the event.
  260. # [06:53] <ojan> Hixie: anyways, I'll put this stuff in an email
  261. # [06:54] <Hixie> k
  262. # [06:55] <Hixie> (why would an editor _want_ to do things itself, assuming an ideal implementation?)
  263. # [06:58] <ojan> Hixie: yeah, that's true, the google editor would use the browser's undo if it didn't suck so much
  264. # [07:01] <ojan> Hixie: if you have an editor where the backing store is not HTML, you want to be able to update your sense of the state when an undo/redo happens
  265. # [07:02] <Hixie> if you have an editor where the backing store is not HTML, surely you just want to catch any DOM changes
  266. # [07:02] <Hixie> not necessarily undo/redo ones in particular
  267. # [07:04] * Joins: myakura (n=myakura@p1120-ipbf2303marunouchi.tokyo.ocn.ne.jp)
  268. # [07:10] * weinig|yum is now known as weinig
  269. # [07:10] <ojan> yes, but you want to be able to know what happened, and in most cases, be able to cancel the event
  270. # [07:11] <ojan> in practice, mutation events are far too noisy and hard to work with
  271. # [07:11] <Hixie> it's possible that we need to fix mutation events
  272. # [07:13] <hsivonen> Hixie: posting them on the event loop or something more drastic?
  273. # [07:13] <ojan> Hixie: in practice, mutation events are useless for anything other than a high level sense that something changed
  274. # [07:14] <Hixie> hsivonen: i haven't studied the problem, so i don't know
  275. # [07:14] <ojan> Hixie: maybe that's a bit harsh, but i've never heard of them actually being used for anything else
  276. # [07:14] <Hixie> ojan: it would be good to tell www-dom@w3.org this, as that is where the DOM3 Events spec is being discussed
  277. # [07:14] <Hixie> and mutation events are on the table
  278. # [07:15] * ojan goes to join yet another mailing list
  279. # [07:15] <Hixie> yeah not sure why that's not on public-webapps
  280. # [07:16] <Hixie> (in particular, not sure why that's elsewhere but widgets are on public-webapps)
  281. # [07:29] * Joins: ap (n=ap@194.154.88.36)
  282. # [07:33] * Quits: weinig (n=weinig@c-67-180-35-124.hsd1.ca.comcast.net)
  283. # [07:51] <ojan> Hixie: yeah, the more i look at mutation events for this, the more i think that they're just at the wrong granularity for the use-case in question. you actually want something that conveys the semantics of the user-action, not something the just tells you all the details of what changed after the fact
  284. # [08:01] * Joins: itpastorn1 (n=itpastor@139.57.227.87.static.th.siw.siwnet.net)
  285. # [08:07] * Joins: maikmerten (n=merten@ls5dhcp196.cs.uni-dortmund.de)
  286. # [08:09] * Joins: pesla (n=retep@procurios.xs4all.nl)
  287. # [08:11] <ojan> Hixie: more random questions...
  288. # [08:12] <ojan> dataTransfer only supports "Text" and "URL" as types
  289. # [08:12] <ojan> is that just because that's what IE does? or is there some reason not to also support HTML?
  290. # [08:15] <Hixie> dataTransfer supports any type
  291. # [08:15] <Hixie> where does it say it only supports Text and URL?
  292. # [08:17] <ojan> under setData/getData it only list Text and URL as options
  293. # [08:17] <ojan> i guess it doesn't forbid other options
  294. # [08:18] <Hixie> oh those are just two values that are supported for legacy reasons
  295. # [08:18] <Hixie> because the value is supposed to be a mime type
  296. # [08:18] * Quits: itpastorn (n=itpastor@139.57.227.87.static.th.siw.siwnet.net) (Read error: 110 (Connection timed out))
  297. # [08:18] <ojan> oh, i see...so to support HTML text we would just use the mime type directly?
  298. # [08:18] <ojan> i.e. text/html
  299. # [08:19] <Hixie> yup
  300. # [08:19] * Quits: maikmerten (n=merten@ls5dhcp196.cs.uni-dortmund.de) (Read error: 60 (Operation timed out))
  301. # [08:19] * Joins: maikmerten (n=merten@ls5dhcp196.cs.uni-dortmund.de)
  302. # [08:19] <ojan> Hixie: great. we'll attempt adding such to webkit.
  303. # [08:19] <Hixie> cool
  304. # [08:20] <ojan> thanks for talking through all my random questions :)
  305. # [08:20] <Hixie> np
  306. # [08:21] * Quits: dolske (n=dolske@firefox/developer/dolske) (Read error: 60 (Operation timed out))
  307. # [08:21] * Quits: heycam (n=cam@zot.infotech.monash.edu.au) ("bye")
  308. # [08:27] * Joins: heycam (n=cam@dyn-130-194-221-98.its.monash.edu.au)
  309. # [08:29] <Hixie> feedback i just got from someone not (as far as i know) affiliated with any existing solution for microdata:
  310. # [08:30] <Hixie> * they'd like to share event listing data on their city "what's on" guide web site "in a way that retains the event information in a meaningful way"
  311. # [08:30] * Quits: onar_ (n=onar@c-98-234-65-251.hsd1.ca.comcast.net)
  312. # [08:31] <Hixie> asked why microformats don't work for them, they had several replies that apply equally to microformats and other technologies, and one that is specific to microformats:
  313. # [08:31] <Hixie> "There are no obvious parsing tools for people to actually do anything with the data (other than add an event to a calendar)"
  314. # [08:31] * Joins: itpastorn (n=itpastor@139.57.227.87.static.th.siw.siwnet.net)
  315. # [08:37] * sid0_ is now known as sid0
  316. # [08:38] * Joins: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se)
  317. # [08:38] <zcorpan> Hixie: <li><p>If none of the values (if any) result in an access key being
  318. # [08:38] <zcorpan> + assigned, then the element has no <span>assigned access
  319. # [08:38] <zcorpan> + key</span>.</p></li>
  320. # [08:39] <zcorpan> Hixie: why not allow the UA to make up its own shortcut in that case?
  321. # [08:39] <zcorpan> Hixie: e.g. based on textContent
  322. # [08:39] <zcorpan> Hixie: or based on the keys available in the UA
  323. # [08:41] <Hixie> i guess we could...
  324. # [08:42] * Joins: Maurice (n=ano@a80-101-46-164.adsl.xs4all.nl)
  325. # [08:44] * Parts: itpastorn (n=itpastor@139.57.227.87.static.th.siw.siwnet.net)
  326. # [08:45] <zcorpan> Hixie: there's some magic required with focusing and accesskey that i don't quite remember
  327. # [08:46] <zcorpan> Hixie: e.g. for fieldset you should focus the first descendant form control or something
  328. # [08:46] <Hixie> send mail for these issues, i'll look at them in due course
  329. # [08:50] * Quits: itpastorn1 (n=itpastor@139.57.227.87.static.th.siw.siwnet.net) (Read error: 110 (Connection timed out))
  330. # [08:57] * Joins: othree (n=othree@admin39.ct.ntust.edu.tw)
  331. # [08:59] * Quits: othree (n=othree@admin39.ct.ntust.edu.tw) (Client Quit)
  332. # [08:59] * Joins: othree (n=othree@admin39.ct.ntust.edu.tw)
  333. # [09:22] * Joins: zalan (n=kvirc@catv-80-99-193-98.catv.broadband.hu)
  334. # [09:23] * Joins: sid0_ (n=sid0@unaffiliated/sid0)
  335. # [09:30] * Joins: sid0__ (n=sid0@unaffiliated/sid0)
  336. # [09:34] <zcorpan> maybe accesskeyLabel should be available to css 'content'
  337. # [09:36] <zcorpan> :has-accesskey::after { content:'(' accesskey ')' }
  338. # [09:39] <hendry> how are you supposed to express last modified time (mtime) and creation time (ctime) of a page in markup?
  339. # [09:41] * Joins: virtuelv (n=virtuelv@pat-tdc.opera.com)
  340. # [09:41] <Philip`> hendry: <p>Last modified: 2009-05-04.</p>
  341. # [09:42] * Joins: svl (n=chatzill@a194-109-2-36.dmn.xs4all.nl)
  342. # [09:42] * Quits: roc (n=roc@65.123.0.210)
  343. # [09:42] * Quits: svl (n=chatzill@a194-109-2-36.dmn.xs4all.nl) (Client Quit)
  344. # [09:43] * Quits: sid0 (n=sid0@unaffiliated/sid0) (Read error: 110 (Connection timed out))
  345. # [09:44] <hendry> Philip`: so no time element? :)
  346. # [09:45] <Philip`> hendry: What's the use case for using a special element here? :-)
  347. # [09:45] <zcorpan> "You would say just "n" for now, then, when the new feature is wildly deployed, " -- Hixie expects accesskey to be *wildly* deployed?
  348. # [09:46] <zcorpan> Philip`: maybe you would add the date to your calendar so you can compare next time you look at the page if it has been modified since you last read it
  349. # [09:47] <hendry> Philip`: i'm helping out moving ikiwiki templates to html5. every page has a ctime and mtime in there, and i was wondering how best to mark it up
  350. # [09:47] * Joins: svl (n=chatzill@a194-109-2-36.dmn.xs4all.nl)
  351. # [09:49] * Quits: sid0_ (n=sid0@unaffiliated/sid0) (Read error: 110 (Connection timed out))
  352. # [09:49] <hendry> Philip`: here is an example of the markup so far http://h.dabase.com/html5-tmp/html5/
  353. # [09:50] * Joins: dolske (n=dolske@76.103.40.203)
  354. # [09:56] <Lachy> Philip`, in hendry's example, the benefit of using the time element would be that the browser can, at the user's request, present the date in a more familiar format. (Though, this depends on future UAs implementing such a feature)
  355. # [09:58] <Lachy> although, such a feature would be more useful on sites that insist on using ambiguous localised date formats like 04/05/09
  356. # [10:00] <hendry> Lachy: thanks, that's a good use case
  357. # [10:03] * Quits: myakura (n=myakura@p1120-ipbf2303marunouchi.tokyo.ocn.ne.jp) ("Leaving...")
  358. # [10:08] * Quits: heycam (n=cam@dyn-130-194-221-98.its.monash.edu.au) ("bye")
  359. # [10:10] <jgraham> Lachy: Hopefully UAs won't implement such a feature
  360. # [10:10] <jgraham> Since I guess it will be more confusing than the status-quo
  361. # [10:11] <jgraham> (although I suppose some good implementation is possible like displaying the time as the author wrote it and giving the option to display it in some other format)
  362. # [10:12] <Philip`> They could display the localised time in a tooltip, perhaps
  363. # [10:12] * jgraham notes that js also has magic $1-$9 variables on the RegExp object which point to the first 9 match groups in the last regexp called
  364. # [10:13] <jgraham> I shoul really document that on the web ecmascript page, I guess
  365. # [10:15] <Lachy> jgraham, that's one of the major problems solved by having the time element, so I hope they do implement it in some way.
  366. # [10:19] <jgraham> Lachy: Mixing up author supplied content and UA supplied content is likely to be really confusing though
  367. # [10:19] * Quits: ojan (n=ojan@203.39.247.241)
  368. # [10:19] <Philip`> Lachy: That's a problem solved by having authors write dates like "2009-05-04" instead of "04/05/09", with no need for any markup
  369. # [10:21] * Joins: ROBOd (n=robod@89.122.216.38)
  370. # [10:22] <Philip`> Anyway there'll be too much legacy content saying <time datetime=2007-10-05>December 3rd 2009</time> for UAs to replace the textual content with something derived from the datetime
  371. # [10:22] * Quits: harig (n=opera@59.90.71.35) (Read error: 110 (Connection timed out))
  372. # [10:25] <Lachy> Philip`, getting authors to write dates in pages only using unambiguous date formats isn't a viable solution in practice. Letting authors use whatever date format they like like in the page, while providing a way to mark up the date unambiguously and letting UAs expose that to users somehow is
  373. # [10:26] <Lachy> jgraham, I'm not proposing that UAs replace the text in the page with the unambiguous format by default, but rather provide a way for the user to access it on request
  374. # [10:27] <Philip`> Lachy: Why is getting authors to write dates in pages only using unambiguous date formats not a viable solution in practice?
  375. # [10:28] * Philip` very rarely sees pages that say "01/02/03" so it seems like most people already use unambiguous date formats
  376. # [10:28] <Lachy> because we have ~15 years of experience showing us that authors still publish ambiguous date formats
  377. # [10:28] <Lachy> I see it relatively often
  378. # [10:30] * jgraham wonders if authours who use ambiguous date formats would be likely to use <time>
  379. # [10:30] <Lachy> here's a page I recall seeing http://news.zdnet.com/2100-9595_22-293658.html scroll down to the comments
  380. # [10:33] <Lachy> if authors see practical benefits for users provided by UAs by using it, then they will
  381. # [10:34] <Lachy> but if <time> is just seen as useless metadata that doesn't help users at all in major browsers, then it's less likely
  382. # [10:35] <Philip`> They would also have to think the aesthetic advantages of writing mm/dd/yy outweigh the practical benefits for users of just writing yyyy-mm-dd with no markup
  383. # [10:35] * Joins: gavin____ (n=gavin@CPE001346f5db49-CM0018c0db9a8a.cpe.net.cable.rogers.com)
  384. # [10:36] * gavin____ is now known as gavin
  385. # [10:36] <Philip`> Actually: They would also have to think the aesthetic advantages of writing mm/dd/yy, plus the practical benefits for users of whatever their UA does with <time>, minus the cost of adding and maintaining the extra <time> markup, outweigh the practical benefits for users of just writing yyyy-mm-dd with no markup
  386. # [10:37] <Philip`> Also they would have to know about and care about the issue, which I presume many people don't
  387. # [10:40] <Lachy> Philip`, from my experience, a lot of american sites do seem to prefer the asthetics of writing mm/dd/yy over the less ambiguous yyyy-mm-dd format
  388. # [10:40] <olliej> Lachy: yeah
  389. # [10:41] <olliej> Lachy: i've actually taken to writing dd-mmm-yyyy on everything
  390. # [10:41] <olliej> simply to avoid confusion
  391. # [10:41] <Lachy> and when I was doing web development a few years ago, many of the clients/designers demanded that I use dd/mm/yy (for Australian sites) despite my objectinos
  392. # [10:41] <olliej> Lachy: (NZ does dd/mm/yy so i keep getting confused)
  393. # [10:41] <Lachy> olliej, I know
  394. # [10:41] <Lachy> so does Australia
  395. # [10:42] <olliej> Lachy: yeah, you said above
  396. # [10:42] <olliej> (i hit enter just after your comment)
  397. # [10:42] <Lachy> and, IIRC, the UK (though I could be wrong about that)
  398. # [10:45] * Joins: ojan (n=ojan@203.39.247.241)
  399. # [10:45] <Rik`> why mm/dd/yy exists ?
  400. # [10:50] <olliej> Rik`: because the US exists
  401. # [10:50] <Rik`> yeah but how did they come up with that ?
  402. # [10:50] <Philip`> Lachy: (It's dd/mm/yy in the UK)
  403. # [10:51] <olliej> Rik`: they went "how does the rest of the world do this? let's do it differently"
  404. # [10:51] <olliej> Rik`: you can't talk you don't even have the right names for your months ;)
  405. # [10:52] <Rik`> hum ?
  406. # [10:52] <olliej> Rik`: i'm joking :D
  407. # [10:52] <olliej> Rik`: referring to france not using english month names :D
  408. # [10:52] <olliej> for obvious reasons :D
  409. # [10:53] <Philip`> "The mm/dd/yy format is used in: Belize, Canada, Federated States of Micronesia, Kenya, Palau, Philippines, Puerto Rico, United States"
  410. # [10:53] <Philip`> (says Wikipedia)
  411. # [10:53] <Rik`> ohh, like the rest of the world except england, australia and new zealand ? :)
  412. # [10:54] <olliej> Rik`: hehe
  413. # [10:55] <Rik`> and we're not yet talking about miles and gallons :)
  414. # [10:56] <olliej> shudder
  415. # [10:56] * Parts: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se)
  416. # [10:56] <olliej> hatehatehate
  417. # [10:57] * Joins: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se)
  418. # [11:00] * Philip` wonders whether those are the big gallons or the little gallons
  419. # [11:02] <Lachy> I suspect the US went with mm/dd/yy so that the numerical order matched the order when spoken as words, like May 4th 2009
  420. # [11:03] <Lachy> whereas Australians tend to say 4th of May, 2009, and use dd/mm/yy
  421. # [11:06] <Lachy> wow, apparently the US also do crazy street address formats by putting the apartment number after the street number/name http://en.wikipedia.org/wiki/Endianness#Clarifying_analogy
  422. # [11:08] <olliej> Lachy: yeah
  423. # [11:08] <olliej> Lachy: that took me a while as well
  424. # [11:08] <olliej> Lachy: the US is a bizarre place
  425. # [11:09] <olliej> Lachy: oh, and i say 4th May, 2009 :D
  426. # [11:09] * Parts: ojan (n=ojan@203.39.247.241)
  427. # [11:09] <Lachy> I'd better get used to it since I'm moving there in July
  428. # [11:10] <olliej> Lachy: where abouts?
  429. # [11:10] <Lachy> Mountain View, California
  430. # [11:10] <olliej> Lachy: ah ha
  431. # [11:11] <olliej> Lachy: we should meet up at some point
  432. # [11:11] <Lachy> ok
  433. # [11:34] * Joins: gsnedders (n=gsnedder@host86-136-52-180.range86-136.btcentralplus.com)
  434. # [11:38] * Quits: Lachy (n=Lachlan@85.196.122.246) ("This computer has gone to sleep")
  435. # [11:40] * sid0__ is now known as sid0
  436. # [11:51] * Joins: Lachy (n=Lachlan@pat-tdc.opera.com)
  437. # [11:51] * Quits: Lachy (n=Lachlan@pat-tdc.opera.com) (Client Quit)
  438. # [11:53] * Joins: Lachy (n=Lachlan@pat-tdc.opera.com)
  439. # [11:59] * Joins: annevk42 (n=annevk@53568A94.cable.casema.nl)
  440. # [12:02] <annevk42> http://www.webdirections.org/blog/ask-the-browser-makers-pete-lepage-from-the-internet-explorer-team/ -- see question 5
  441. # [12:17] <jgraham> So, say I had a reasonably well structured word document and I wanted to convert it to HTML in a way that roughly preserved the structure but that also added links e.g. from the TOC and from certain terms to their defining instance (which would always be a subsection). WWhat tools could I use to help me achieve that?
  442. # [12:20] * Joins: Mau`werk (n=ano@80.101.46.164)
  443. # [12:21] <Lachy> jgraham, depending on the techniques used to create the Word document, then I've found copying and pasting from Word into Dreamweaver to be a rather successful technique for maintaining structure
  444. # [12:22] <Lachy> though it requires the use of the Styles and Formatting task pane in word to do the styles, and the use of the some HTML specific styles (available from the customisation dialog), and there's a Word specific setting in dreamweaver that needs to be turned on to get paragraphs to work right
  445. # [12:22] <jgraham> Lachy: Let's assume for the sake of argument that I don't have dreamweaver :)
  446. # [12:23] <jgraham> (I could probably download a trial version at home or something but it's not quite convenient)
  447. # [12:23] <Lachy> what HTML editor do you have?
  448. # [12:24] <Lachy> http://www.google.com/search?q=word+to+HTML+converter
  449. # [12:24] * Quits: Maurice (n=ano@a80-101-46-164.adsl.xs4all.nl) (Read error: 110 (Connection timed out))
  450. # [12:24] <jgraham> Lachy: emacs
  451. # [12:24] * jgraham thinks that might not have been the right answer
  452. # [12:26] <Lachy> then I can't help you with that.
  453. # [12:27] <jgraham> It seems like the oo.o HTML export + a considerable amount of scripting might be a good enough solution
  454. # [12:31] <Lachy> have you tried MS Word's own HTML saving feature?
  455. # [12:31] <Lachy> it has a clean HTML option
  456. # [12:31] <jgraham> Lachy: I don't have MS Word either
  457. # [12:31] <Lachy> ok
  458. # [12:31] <Philip`> You could copy-and-paste from Word into a JavaScript editing component
  459. # [12:31] <Philip`> Oh
  460. # [12:32] <Lachy> jgraham, I have Word. If you sent me the file, I could try doing that for you
  461. # [12:32] <jgraham> On the other hand, since the document in question is readily publically avaliable it is not a problem if someone else does these things for me and sends me the result
  462. # [12:33] <jgraham> Lachy: It is the ES5 spec :) http://wiki.ecmascript.org/lib/exe/fetch.php?id=es3.1%3Aes3.1_proposal_working_draft&cache=cache&media=es3.1:candidate-draft-tc39-2009-025.doc
  463. # [12:36] <Lachy> this is going to take a while. I have to do it on my Windows machine at home over VNC, which is itself being ssh-tunnelled over a wifi connection through my imac, so the connection is a little slow
  464. # [12:38] <jgraham> Lachy: It's not a problem. Getting a TML version of the document is more of a long-term solution to the issue that I spend too long searching for stuff in the spec :)
  465. # [12:38] <jgraham> *HTML
  466. # [12:40] <Lachy> ah, ok. Good, then it can wait till after I go have some lunch
  467. # [12:42] <jgraham> Lachy: Sure. Take as long as you like. Thanks for the help :)
  468. # [12:45] * Quits: pesla (n=retep@procurios.xs4all.nl) ("( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )")
  469. # [13:21] <Lachy> jgraham, http://lachy.id.au/temp/ecma-tc39.zip
  470. # [13:24] <jgraham> Lachy: That gives me a 403
  471. # [13:25] * Joins: gavin___1 (n=gavin@people.mozilla.com)
  472. # [13:25] * Quits: gavin___1 (n=gavin@people.mozilla.com) (Client Quit)
  473. # [13:28] <Lachy> fixed
  474. # [13:31] <jgraham> Lachy: Thanks
  475. # [13:32] <jgraham> (at a glance it doesn't seem like the Word output is substantailly better than the Oo.o output; both will need substantial cleanup)
  476. # [13:33] <jgraham> Or rather either since I don't intend to do both
  477. # [13:38] <olliej> is it just me or does the ES5 spec not document deletability/replacability of standard properties?
  478. # [13:41] <jgraham> olliej: What do you mean standard properties? Properties have the Writable:true attribute set unless otherwise specified
  479. # [13:42] <jgraham> s/Properties/Properties of built in objects/
  480. # [13:42] <jgraham> (see section 15, pg 98 or PDF page 112)
  481. # [13:44] <jgraham> (oh and Configurable: true)
  482. # [13:50] <olliej> jgraham: yeah, cheers for that
  483. # [13:50] <olliej> jgraham: terminology changed from DontDelete to writable:false
  484. # [13:54] <jgraham> olliej: Indeed. There's no point in releasing a new spec without a few cosmetic changes to screw with the brains of people familar with the old spec ;)
  485. # [13:54] <olliej> jgraham: hehehe
  486. # [14:18] <jgraham> zcorpan: YT?
  487. # [14:19] * Joins: starjive (i=beos@213.66.216.93)
  488. # [14:27] * Quits: sid0 (n=sid0@unaffiliated/sid0) (Read error: 104 (Connection reset by peer))
  489. # [14:27] * Joins: sid0 (n=sid0@unaffiliated/sid0)
  490. # [14:34] * Joins: pmuellr (n=pmuellr@nat/ibm/x-ebeb71e218cb6158)
  491. # [14:41] <Lachy> looking at a couple of rental sites for Mountain View, they all seem to share a major usability problem! They don't state whether the prices are monthly, fortnightly or weekly! :-(
  492. # [14:42] <Lachy> oh, yeah, one of them does actually. Was just hard to find
  493. # [14:43] <jgraham> Lachy: Sweden has that underlying poblem writ large; it is assumed that everyone already knows all the rules so they don' bother to state them until you violate them
  494. # [14:46] * Lachy realises that finding an apartment in the right area is hard for someone who knows absolutely nothing about US geography.
  495. # [14:47] <olliej> Lachy: typically monthly
  496. # [14:47] <olliej> Lachy: and they will almost cetainly be assuming a 12 month lease
  497. # [14:47] <Lachy> yeah, 12 month lease is normal
  498. # [14:48] <jgraham> Lachy: For where? e.g. here it is rather unusual or illegal or something
  499. # [14:48] <Lachy> olliej, what sort of price range is reasonable for that area?
  500. # [14:49] <olliej> Lachy: honestly not sure about MV
  501. # [14:49] <olliej> Lachy: i have a flatmate and our aparments rent is i think $US2400/mo (in cupertino)
  502. # [14:49] <Lachy> jgraham, illegal to offer 12 month leases? wtf?
  503. # [14:50] <Lachy> in Australia, leases are generally either 6 or 12 months
  504. # [14:50] <jgraham> Lachy: I'm not sure it is actually illegal. It's more that contracts aren't usually (legally?) for fixed periods but are continuous. And it is rather hard for landlords to kick you out unless you don't pay the rent
  505. # [14:51] <Lachy> jgraham, are there minimum lease terms imposed?
  506. # [14:52] <olliej> jgraham: leases are more about ensuring a minimum time
  507. # [14:52] <olliej> rather than a maximum
  508. # [14:52] <jgraham> Lachy: I think the only requirement in our contract is that we give 3 months notice if we want to leave
  509. # [14:52] <jgraham> So that is a kind of minimum
  510. # [14:53] <Lachy> wow, 3 months is an absurdly long notice period
  511. # [14:53] <olliej> yeah
  512. # [14:53] <jgraham> Yeah, it is pretty long
  513. # [14:53] <Lachy> but I think that's like Norway
  514. # [14:53] <olliej> when i wasn't in a lease, i only had to give 2 weeks notice
  515. # [14:54] <Lachy> in Australia, the term means that neither the tennant or landlord can break the lease before that period, and then after that it continues with a requirement for 2 weeks notice
  516. # [14:54] <jgraham> It seems to be the Swedish way. The landlord has no right to get rid of you (wwhich is good) but it is rather hard to leave (which is bad)
  517. # [14:55] <Lachy> (except when the tennant does something like significantly damages the property, then the landlord can evict the tennant before the end of the lease and keep the bond)
  518. # [14:56] <Lachy> olliej, is it usually a 1 month bond as well?
  519. # [14:56] <olliej> yeah
  520. # [14:56] <Lachy> ok
  521. # [14:56] <olliej> i may have had a bit more
  522. # [14:56] <jgraham> (We didn't have to pay any deposit or anything either)
  523. # [14:56] <olliej> due to my complete absence of a credit history
  524. # [14:57] <Lachy> I should check if Opera will be providing me with temporary accommodation so I can look for an apartment when I get there
  525. # [14:57] <Lachy> I'd rather not have to rent something before I get a chance to actually go over there and see the place
  526. # [14:57] <jgraham> (and the landlady seems to be part of some collective which negotiates the rent with the tennants association and then assigns the right rent to each apartment based on size, facilities, condition, etc.)
  527. # [14:58] <jgraham> (at least that's how I understand it)
  528. # [14:58] <Lachy> I like the deal I get in Norway by staying in one of Opera's apartments :-)
  529. # [14:58] <Rik|work> in France, you have to give a 3 months notice before leaving but you can arrange with the owner if you find someone to replace you
  530. # [15:00] * Joins: aroben (n=aroben@unaffiliated/aroben)
  531. # [15:00] * Joins: heycam (n=cam@203-217-72-53.dyn.iinet.net.au)
  532. # [15:18] * Joins: sid0_ (n=sid0@unaffiliated/sid0)
  533. # [15:18] * Quits: sid0 (n=sid0@unaffiliated/sid0) (Nick collision from services.)
  534. # [15:19] * sid0_ is now known as sid0
  535. # [15:19] * Joins: rubys (n=rubys@cpe-075-182-092-038.nc.res.rr.com)
  536. # [15:23] * Quits: virtuelv (n=virtuelv@pat-tdc.opera.com) ("Ex-Chat")
  537. # [15:25] * Joins: mlpug (n=mlpug@a91-156-60-13.elisa-laajakaista.fi)
  538. # [15:26] <gsnedders> Germany is similar to France, but it is 1 month, IIRC
  539. # [15:27] <gsnedders> Wow. It is almost two hours by bus from Stirling to here
  540. # [15:27] <olliej> erk
  541. # [15:27] <olliej> bed time i think
  542. # [15:27] * gsnedders shakes his head at olliej
  543. # [15:27] <olliej> gsnedders: ?
  544. # [15:28] <gsnedders> olliej: Your sleeping his hours…
  545. # [15:28] <Lachy> gsnedders, do you need to travel to Stirling?
  546. # [15:28] <gsnedders> s/his//
  547. # [15:28] <olliej> gsnedders: are awesome? ;D
  548. # [15:28] <gsnedders> Lachy: Well, yes, but only from Stirling to here; I'll be coming from London
  549. # [15:28] <gsnedders> olliej: :D
  550. # [15:28] <olliej> gsnedders: i hate x86 assembly
  551. # [15:28] <Lachy> gsnedders, where is "here"?
  552. # [15:28] <Rik|work> Stirling, like the engine ?
  553. # [15:28] <olliej> i have been up all night fighting it
  554. # [15:28] * Joins: hdh (n=hdh@118.71.78.38)
  555. # [15:29] <Rik|work> olliej is a knight fighting evil while you sleep
  556. # [15:30] * Quits: sid0 (n=sid0@unaffiliated/sid0) (pratchett.freenode.net irc.freenode.net)
  557. # [15:30] * Quits: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se) (pratchett.freenode.net irc.freenode.net)
  558. # [15:30] * Quits: annevk5 (n=annevk@53568A94.cable.casema.nl) (pratchett.freenode.net irc.freenode.net)
  559. # [15:30] * Quits: riven (n=colin@pdpc/supporter/professional/riven) (pratchett.freenode.net irc.freenode.net)
  560. # [15:30] * Quits: Philip` (n=philip@zaynar.co.uk) (pratchett.freenode.net irc.freenode.net)
  561. # [15:30] * Quits: takkaria (n=takkaria@isparp.co.uk) (pratchett.freenode.net irc.freenode.net)
  562. # [15:30] * Quits: jtcranmer (n=jcranmer@ltsp1.csl.tjhsst.edu) (pratchett.freenode.net irc.freenode.net)
  563. # [15:30] * Quits: jan____ (n=njan@web.traeumt.net) (pratchett.freenode.net irc.freenode.net)
  564. # [15:30] * Quits: eighty4 (n=eighty4@eighty4.se) (pratchett.freenode.net irc.freenode.net)
  565. # [15:30] <Lachy> 2 hours doesn't seem too long though. Is that about 180 to 200km distance?
  566. # [15:30] * Joins: sid0 (n=sid0@unaffiliated/sid0)
  567. # [15:30] * Joins: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se)
  568. # [15:30] * Joins: annevk5 (n=annevk@53568A94.cable.casema.nl)
  569. # [15:30] * Joins: riven (n=colin@pdpc/supporter/professional/riven)
  570. # [15:30] * Joins: jtcranmer (n=jcranmer@ltsp1.csl.tjhsst.edu)
  571. # [15:30] * Joins: jan____ (n=njan@web.traeumt.net)
  572. # [15:30] * Joins: takkaria (n=takkaria@isparp.co.uk)
  573. # [15:30] * Joins: eighty4 (n=eighty4@eighty4.se)
  574. # [15:30] * Joins: Philip` (n=philip@zaynar.co.uk)
  575. # [15:30] <gsnedders> Lachy: St Andrews
  576. # [15:30] <gsnedders> Lachy: No
  577. # [15:30] <Lachy> how far is it?
  578. # [15:30] * gsnedders looks up
  579. # [15:30] <gsnedders> 70km or so, I'd guess
  580. # [15:31] * gsnedders has to do 6502 Assembly for a practical computing assessment
  581. # [15:31] <gsnedders> How useful!
  582. # [15:31] <Lachy> google maps says 83
  583. # [15:32] <gsnedders> Yeah, 83km
  584. # [15:32] <Lachy> that must be an incredibly slow bus, travelling at an average speed less than 50km/h
  585. # [15:33] <gsnedders> The route it takes is unusually sane for a bus around here
  586. # [15:33] <Lachy> hmm, I guess it's passing through a fair few towns on the way, which would slow it down
  587. # [15:33] <gavin_> average speed of less than 50km for a bus in a city is not "incredibly slow"
  588. # [15:33] <gsnedders> A lot of towns.
  589. # [15:34] * Joins: pesla (n=retep@procurios.xs4all.nl)
  590. # [15:34] <gsnedders> gavin_: This is certainly not a city whatsoever.
  591. # [15:35] * Joins: mstange (n=markus@buntes215.wohnheim.uni-kl.de)
  592. # [15:35] <Lachy> gsnedders, is the maximum speed limit for a bus there about 100km/h, outside of towns?
  593. # [15:35] <gsnedders> I think it is 60mph, so yeah.
  594. # [15:35] <Lachy> like on highways, etc.
  595. # [15:35] <gsnedders> 100 is 62.3km/h
  596. # [15:35] <Lachy> wtf? You measure in miles there?!
  597. # [15:35] <gsnedders> Oh sure.
  598. # [15:35] <Lachy> why? I though only the US was backwards enough to be using miles
  599. # [15:35] <gsnedders> We also measure fuel economy in miles per gallon (imperial gallons, not US gallons), and buy petrol in litres.
  600. # [15:36] <olliej> Lachy: i believe the highway speed limit is 60 or 65mph
  601. # [15:36] <Lachy> huh?
  602. # [15:36] <olliej> Lachy: and i wouldn't plan on relying on buses/public transport
  603. # [15:36] * Quits: hdh (n=hdh@118.71.78.38) (Read error: 104 (Connection reset by peer))
  604. # [15:36] <gsnedders> olliej: We aren't talking about CA
  605. # [15:36] <gsnedders> olliej: We're talking about somewhere more awesome. :D
  606. # [15:36] <olliej> gsnedders: oh?
  607. # [15:36] <olliej> gsnedders: not hard
  608. # [15:36] <olliej> :D
  609. # [15:36] <gsnedders> olliej: Scotland, here.
  610. # [15:37] <gsnedders> olliej: Unless you want to find my house in CA :D
  611. # [15:37] * Quits: zalan (n=kvirc@catv-80-99-193-98.catv.broadband.hu) ("KVIrc 3.4.0 Virgo http://www.kvirc.net/")
  612. # [15:37] <olliej> hehe
  613. # [15:37] <Lachy> olliej, I've been warned about the poor bus services in CA before.
  614. # [15:37] <olliej> erk
  615. # [15:37] <gsnedders> http://www.stagecoachbus.com/timetables/23pckttt18082008[1].pdf doesn't ever seem to be overly slow, anywhere, it just seems to be slightly slow for the entire route and it just adds up
  616. # [15:38] <zcorpan> jgraham: pong
  617. # [15:38] <beowulf> Lachy: what's wrong with miles?
  618. # [15:39] <Lachy> beowulf, the fact that they aren't metric, and doing maths with them is hard
  619. # [15:39] <olliej> gah
  620. # [15:39] <olliej> why am i still up
  621. # [15:39] <olliej> night all
  622. # [15:39] * Quits: olliej (n=oliver@c-67-164-125-23.hsd1.ca.comcast.net)
  623. # [15:39] <gsnedders> Hm, Google Maps says only 16 hours and 18 minutes on foot.
  624. # [15:40] <Lachy> beowulf, try making sense out of why there's 12 inches/foot, 3 feet/yard, and 1760 yards/mile, or 5280 feet/mile. There's just no logic there.
  625. # [15:40] <gsnedders> Lachy: You actually know that? I don't.
  626. # [15:41] <Lachy> (and I had to look those last 2 values up, cause I've got no hope of remembering them)
  627. # [15:41] <Lachy> gsnedders, what's the difference between imperial and US gallons?
  628. # [15:42] <gsnedders> Lachy: They are a different amount.
  629. # [15:42] <gsnedders> Lachy: More detailed than that, I don't know and don't care.
  630. # [15:42] * Lachy looks it up
  631. # [15:42] <gsnedders> (I have software to convert it to litres, so I don't care.)
  632. # [15:43] * beowulf wonders when in real life Lachy needed to know how many feet where in a mile
  633. # [15:43] * beowulf lives in Ireland, on one side of the border we measure in miles, on the other, km
  634. # [15:44] * gsnedders ought to go to Ireland some time
  635. # [15:44] <Lachy> beowulf, luckily, I come from a sensible country that uses the metric system, so I don't need to know. But I might need to when I go to the US
  636. # [15:44] * gsnedders is going to be taking a stupid route home from Linköping, via Berlin, London, Southampton, and finally Stirling before getting back to St Andrews
  637. # [15:45] <Lachy> gsnedders, so you did get the internship at Opera?
  638. # [15:45] <gsnedders> Lachy: Yes
  639. # [15:45] <Lachy> cool
  640. # [15:45] * beowulf makes note to invite gsnedders to the next whatever camp to talk about html5 or something
  641. # [15:45] <Lachy> when?
  642. # [15:45] <gsnedders> Lachy: June 29th to August 28th
  643. # [15:45] <gsnedders> beowulf: Also: get me money to go there :P
  644. # [15:45] <Lachy> ok
  645. # [15:46] <beowulf> gsnedders: would sir prefer HSS or regular ferry?
  646. # [15:46] <gsnedders> HSS?
  647. # [15:46] <gsnedders> http://en.wikipedia.org/wiki/High-speed_Sea_Service?
  648. # [15:46] <beowulf> gsnedders: high speed ... service? the catamaran thing
  649. # [15:47] <gsnedders> Ah. I wouldn't really care :)
  650. # [15:47] <beowulf> :)
  651. # [15:47] * Joins: zdobersek (n=zan@cpe-92-37-70-11.dynamic.amis.net)
  652. # [15:47] <gsnedders> Provided I'm not meant to be doing anything else at the time (which is not much next year) I don't care how long it takes
  653. # [15:47] <gsnedders> Actually, more to the point, I'm not doing anything that involves me being anywhere specific, I can live fine with my laptop and do what is needed.
  654. # [15:48] <jgraham> Lachy: Mathematics with miles: 0.1 miles, 0.5 miles, 1.0 miles 100 miles. Cars on the motorway travel at an average of about 1 mile/minute
  655. # [15:48] <beowulf> Lachy: so you'd struggle if i told how how far my house is from here in fields?
  656. # [15:48] * Joins: tantek (n=tantek@63.195.114.133)
  657. # [15:49] <Lachy> beowulf, is "fields" a standardised unit of measure?
  658. # [15:49] * Joins: zdobersek1 (n=zan@cpe-92-37-74-29.dynamic.amis.net)
  659. # [15:50] <Dashiva> Fields medal radii
  660. # [15:50] <Lachy> Dashiva, what?
  661. # [15:51] <Dashiva> I figured that would be standardized :)
  662. # [15:51] <beowulf> Lachy, the distance from one hedge to the other?
  663. # [15:51] * Lachy assumes beowulf is now just being silly
  664. # [15:52] <gsnedders> Only 10:36 from train station to arriving by ferry in Dublin :P
  665. # [15:52] * Joins: myakura (n=myakura@p1120-ipbf2303marunouchi.tokyo.ocn.ne.jp)
  666. # [15:52] <gsnedders> Oh, and five changes :P
  667. # [15:53] <Lachy> oh, wow, apparently there are 128 ounces in a gallon (US). That also makes things complicated
  668. # [15:54] * jgraham wonders why gsnedders is taking such a convoluted route home
  669. # [15:54] <gsnedders> 128 is a nice round number!
  670. # [15:54] <Lachy> is there a smaller unit than a fluid ounce?
  671. # [15:54] <Lachy> gsnedders, only if doing maths in binary
  672. # [15:55] <jgraham> Lachy: Sure. But I guess you mean a smaller imperial unit
  673. # [15:55] <gsnedders> jgraham: Well, I'm dropping into Berlin to see my sister (and my probable niece), then off to London to spend the night there, to Southampton for uni open day, then off to Stirling for conference on the same evening
  674. # [15:55] <Lachy> jgraham, yes
  675. # [15:55] <gavin_> you have a probable niece?
  676. # [15:55] <gsnedders> Yes.
  677. # [15:55] <jgraham> |niece>
  678. # [15:56] <gsnedders> She might be a nephew.
  679. # [15:56] <Lachy> jgraham, actually, I mean in US units, not imperial units
  680. # [15:56] <beowulf> Lachy: a dram?
  681. # [15:56] <beowulf> Lachy: not a dram then
  682. # [15:56] <Lachy> oh, I forgot about the pint. Better find out how much that is
  683. # [15:56] * beowulf knows nothing of US units
  684. # [15:56] * Quits: nessy (n=nessy@203-214-157-222.perm.iinet.net.au) ("This computer has gone to sleep")
  685. # [15:57] <gsnedders> Very approx. 500ml
  686. # [15:57] <jgraham> Lachy: A pint is the unit that ber comes in. That is all that you need to know
  687. # [15:57] <jgraham> *beer
  688. # [15:57] * gsnedders thinks going to Dublin would be easier by air :)
  689. # [15:59] <beowulf> gsnedders: dublin is expensive coming from the uk, euro/sterling exchange rate and then the recession
  690. # [15:59] <Lachy> jgraham, beer should come in either a Schooner or a Middy
  691. # [16:00] * jgraham laughs
  692. # [16:00] <gsnedders> beowulf: Peh. I have no money any way. What difference does it make? :)
  693. # [16:01] <Lachy> jgraham, why is that funny?
  694. # [16:02] <jgraham> Uh because they are such silly names? A schooner is a type of boat and, well, if you can't see why "middy" sounds funny there is no hope for you :)
  695. # [16:03] * Quits: zdobersek (n=zan@cpe-92-37-70-11.dynamic.amis.net) (Read error: 110 (Connection timed out))
  696. # [16:04] * Joins: hdh (n=hdh@118.71.78.38)
  697. # [16:05] * Quits: tantek (n=tantek@63.195.114.133) (Connection timed out)
  698. # [16:10] * Quits: broquaint (n=dbrook@spc1-brig11-0-0-cust544.asfd.broadband.ntl.com) (Remote closed the connection)
  699. # [16:22] * Joins: billmason (n=billmaso@ip28.unival.com)
  700. # [16:24] * Quits: gsnedders (n=gsnedder@host86-136-52-180.range86-136.btcentralplus.com) (Remote closed the connection)
  701. # [16:25] * Joins: gsnedders (n=gsnedder@host86-136-52-180.range86-136.btcentralplus.com)
  702. # [16:29] <gsnedders> Lachy: Avoid wearing glasses.
  703. # [16:32] * Joins: maikmerten_ (n=merten@vp-c-74.cs.uni-dortmund.de)
  704. # [16:33] * Quits: maikmerten (n=merten@ls5dhcp196.cs.uni-dortmund.de) (Read error: 110 (Connection timed out))
  705. # [16:33] <Lachy> gsnedders, my choices are: wear glasses, or avoid needing to look at anything that isn't close enough to see clearly
  706. # [16:34] <gsnedders> Lachy: I do the latter.
  707. # [16:34] * Lachy notes that even the computer screen at arms length in front of me is a little blurry without glasses
  708. # [16:37] * jgraham did the latter for rather a long time
  709. # [16:39] * gsnedders does have glasses, just only wears them when he can't do the latter
  710. # [16:40] * Quits: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se) (Remote closed the connection)
  711. # [16:41] * Joins: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se)
  712. # [16:41] <Lachy> I'm getting new lenses when I go to Australia next week. I was really hoping the insurance would cover the cost :-(
  713. # [16:42] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  714. # [16:45] * Joins: broquaint (i=516c2d1b@spc1-brig11-0-0-cust544.asfd.broadband.ntl.com)
  715. # [16:46] * Quits: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se) (Remote closed the connection)
  716. # [16:55] * gsnedders isn't really convinced by the ending of Pride and Prejudice
  717. # [16:57] <Lachy> how does it end?
  718. # [16:58] <gsnedders> It just quickly says a lot trying to wrap up all the story arcs, instead of properly ending.
  719. # [16:59] * jgraham isn't really convinced that finding only 16 / 1289370 pages with a <html> element is realistic and not, say, a bug in his script
  720. # [17:00] <jgraham> (As a collary, the 1289370 number might well be wrong)
  721. # [17:07] <Lachy> jgraham, are you searching for pages that use the start tag compared with those that don't?
  722. # [17:08] <jgraham> Lachy: No, I'm just testing the code that I wrote to look at the dotnetdotcom data. My conclusion is that the code is broken. This is not really surprising :)
  723. # [17:12] * Quits: Mau`werk (n=ano@80.101.46.164) ("Disconnected...")
  724. # [17:14] * Quits: drostie (n=hopkins@5354256F.cable.casema.nl) (Remote closed the connection)
  725. # [17:16] * gsnedders thought jgraham was a brilliant programmer ;P
  726. # [17:17] * Joins: ZombieLoffe (n=e@unaffiliated/zombieloffe)
  727. # [17:17] * Joins: davidb (n=davidb@mozca02.ca.mozilla.com)
  728. # [17:21] * Joins: drostie (n=hopkins@5354256F.cable.casema.nl)
  729. # [17:22] <jgraham> Because gsnedders never has bugs
  730. # [17:23] <gsnedders> No, never.
  731. # [17:23] * Joins: cgriego (n=cgriego@out-02.hotels.com)
  732. # [17:23] <beowulf> not closing your lists in an <a> is a bad idea, you get the same blocks within a element thing as from packet boundaries
  733. # [17:26] <beowulf> http://carisenda.com/sandbox/blocka/
  734. # [17:32] * Quits: Lachy (n=Lachlan@pat-tdc.opera.com) ("This computer has gone to sleep")
  735. # [17:37] * Joins: roc (n=roc@65.123.0.210)
  736. # [17:44] * Joins: hasather (n=hasather@90-231-107-133-no62.tbcn.telia.com)
  737. # [17:46] * Quits: drostie (n=hopkins@5354256F.cable.casema.nl) (Remote closed the connection)
  738. # [17:51] * Joins: drostie (n=hopkins@5354256F.cable.casema.nl)
  739. # [17:52] * Quits: maikmerten_ (n=merten@vp-c-74.cs.uni-dortmund.de) (Read error: 60 (Operation timed out))
  740. # [17:52] <Philip`> jgraham: There should be something like 425K pages, not 1.3M
  741. # [17:53] * Quits: svl (n=chatzill@a194-109-2-36.dmn.xs4all.nl) ("And back he spurred like a madman, shrieking a curse to the sky.")
  742. # [17:53] <Philip`> jgraham: By the way, I hope you're planning to process all the ~20GB of data in Python in finite time :-)
  743. # [17:53] <Philip`> Uh
  744. # [17:53] <Philip`> *not planning
  745. # [17:54] * Joins: dave_levin (n=dave_lev@72.14.227.1)
  746. # [17:54] * gsnedders points at the parallelizm module
  747. # [17:55] * Philip` points at the orders of magnitude by which Python is slower than fast languages
  748. # [17:55] * Joins: Lachy (n=Lachlan@85.196.122.246)
  749. # [17:55] <Philip`> and the non-corresponding orders of magnitudes more processing cores that you can run it on
  750. # [17:56] * gsnedders notes he has been wondering about using C to do some processing with the 20GB of data
  751. # [17:56] <jgraham> Philip`: I was planning on seeing how hard it was to process in python and then hen that failed to process it using hadoop, perhaps using python for the map/reduce functions. But that may not be a sensible plan :)
  752. # [17:57] <jgraham> Also, since the process is mainly IO bound it's not clear why using python is a bad idea
  753. # [17:58] * jgraham was following the approach in http://effbot.org/zone/wide-finder.htm which did OK: http://www.tbray.org/ongoing/When/200x/2007/10/30/WF-Results
  754. # [18:00] <gsnedders> jgraham: Shouldn't you be doing it in Perl if you're basing it on WF?
  755. # [18:00] <jgraham> gsnedders: No. :)
  756. # [18:01] * Quits: roc (n=roc@65.123.0.210)
  757. # [18:01] * jgraham has to go but wants to find out why he is doing everything wrong :)
  758. # [18:06] * Quits: archtech (n=stanv@83.228.56.37)
  759. # [18:08] * Quits: pesla (n=retep@procurios.xs4all.nl) ("( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )")
  760. # [18:18] * Joins: aroben_ (n=aroben@unaffiliated/aroben)
  761. # [18:18] * Quits: sid0 (n=sid0@unaffiliated/sid0) (Read error: 104 (Connection reset by peer))
  762. # [18:20] * Quits: aroben (n=aroben@unaffiliated/aroben) (Read error: 104 (Connection reset by peer))
  763. # [18:20] * aroben_ is now known as aroben
  764. # [18:23] * Joins: sid0 (n=sid0@unaffiliated/sid0)
  765. # [18:37] * Quits: ROBOd (n=robod@89.122.216.38) ("http://www.robodesign.ro")
  766. # [18:38] * Joins: Maurice (i=copyman@5ED548D4.cable.ziggo.nl)
  767. # [18:40] * Joins: zalan (n=kvirc@dsl54009DA0.pool.t-online.hu)
  768. # [18:45] * Joins: roc (n=roc@guest-226.mountainview.mozilla.com)
  769. # [18:53] * gsnedders wonders whether we really need to treat U+000C as whitespace
  770. # [18:53] <hsivonen> http://xformstest.org/klotz/shibumiscript/2009/04/tv-raman-on-xforms-and-screen-scraping.html
  771. # [18:53] * Joins: onar_ (n=onar@17.244.69.252)
  772. # [18:54] <hsivonen> the post that seemed to be about HTML5 and XHTML2 seems to have comments increasingly about XForms--not XHTML2
  773. # [18:57] * Quits: hsivonen (n=hsivonen@kekkonen.cs.hut.fi) ("leaving")
  774. # [18:58] * Joins: hsivonen (n=hsivonen@kekkonen.cs.hut.fi)
  775. # [19:02] * Joins: ROBOd (n=robod@89.122.216.38)
  776. # [19:07] * Parts: billmason (n=billmaso@ip28.unival.com)
  777. # [19:07] <Philip`> jgraham: It shouldn't be IO bound for the current dotnetdotcom data - there's not even 4GB, so it should fit in RAM with no IO at all
  778. # [19:09] * Joins: svl (n=me@ip565744a7.direct-adsl.nl)
  779. # [19:10] * Quits: dolske (n=dolske@firefox/developer/dolske)
  780. # [19:10] <Philip`> jgraham: Also, IO should be on the order of 100MB/s, which seems much faster than you can decompress and parse data
  781. # [19:15] * Joins: taf2_ (n=taf2@38.99.201.242)
  782. # [19:15] * Joins: weinig (n=weinig@nat/apple/x-cd9e9ebbf8cba5f7)
  783. # [19:18] * Joins: billmason (n=billmaso@ip28.unival.com)
  784. # [19:30] * Quits: onar_ (n=onar@17.244.69.252)
  785. # [19:37] <Philip`> jgraham: (By "IO" I mean raw disk IO)
  786. # [19:40] * Joins: dolske (n=dolske@corp-241.mountainview.mozilla.com)
  787. # [19:42] * Quits: fishd (n=darin@nat/google/x-a463241a8706d600) ("Leaving")
  788. # [19:48] * aroben is now known as aroben|lunch
  789. # [19:49] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  790. # [19:50] * Joins: archtech (n=stanv@83.228.56.37)
  791. # [19:52] <gsnedders> If you have a text/html document within an object element, is it within a new browsing context?
  792. # [19:52] <Philip`> Why wouldn't it be?
  793. # [19:52] * Joins: maikmerten (n=maikmert@U1305.u.pppool.de)
  794. # [19:52] * gsnedders claims ignorance
  795. # [19:55] <gsnedders> Does anyone serve XHTML as application/xml or text/xml?
  796. # [19:56] <hsivonen> gsnedders: mozillaquestquest uses text/xml, IIRC
  797. # [19:56] * gsnedders was hoping he could just ignore such content, oh well
  798. # [19:56] <hsivonen> gsnedders: also, I believe there's MathML content that uses application/xml for IE XSLT hooks
  799. # [19:58] <rubys> what do browsers do with xhtml served as appliction/xml or text/xml?
  800. # [19:59] <hsivonen> rubys: dispatch on namespace, but at least old versions have issues with what interfaces the document object exposes
  801. # [19:59] <rubys> what does IE do?
  802. # [19:59] <hsivonen> rubys: also, I'd expect createElement not to be magic
  803. # [20:00] <hsivonen> rubys: shows a prettyprint tree or applies XSLT if available
  804. # [20:00] <gsnedders> rubys: It treats it as any other XML document, so you can use XSLT to transform it to HTML
  805. # [20:00] <rubys> Can the link to the XSLT be in an HTTP header?
  806. # [20:01] <hsivonen> unlikely
  807. # [20:01] <hsivonen> but I don't know
  808. # [20:03] * Joins: onar_ (n=onar@17.244.69.252)
  809. # [20:03] <rubys> I will run a test to verify, but to be clear: webkit + presto + gecko all are thought to dispatch based on namespace when they encounter text/xml ?
  810. # [20:03] <hsivonen> rubys: yes, except the document object is created on MIME type
  811. # [20:04] <hsivonen> which is a bug per HTML5
  812. # [20:04] <hsivonen> I don't know what the implementation reality on that point is today
  813. # [20:05] <rubys> I wasn't thinking of starting with HTML, but testing it out on separate SVGs.
  814. # [20:05] <annevk5> differs
  815. # [20:05] <annevk5> DOM behavior for e.g. createElement differs too
  816. # [20:05] <hsivonen> rubys: If you run tests, I suggest testing what interfaces you get on document and testing what document.createElement("foo") returns
  817. # [20:06] <rubys> the first thing I would likely try is to see how jquery reacts. :-)
  818. # [20:07] <rubys> but I like the idea of svg images being like feeds were a few years ago: displayed as raw xml to backlevel browsers and as something usable by modern browsers.
  819. # [20:08] <hsivonen> rubys: you find an XML tree better user experience than a download dialog?
  820. # [20:11] <Philip`> hsivonen: You could write a polyglot document that displays the same content via XHTML and via ASCII art in the XML tree
  821. # [20:13] <hsivonen> Philip`: should there be validation for that? :-)
  822. # [20:18] * Quits: hdh (n=hdh@118.71.78.38) (Remote closed the connection)
  823. # [20:19] * aroben|lunch is now known as aroben
  824. # [20:27] * Quits: zalan (n=kvirc@dsl54009DA0.pool.t-online.hu) ("KVIrc 3.4.0 Virgo http://www.kvirc.net/")
  825. # [20:29] <annevk42> hmm, great, any form of pasting makes my chromium build crash
  826. # [20:29] * gsnedders ought to do physics, but reading Anna Karenina is awfully tempting
  827. # [20:29] * Joins: zalan (n=kvirc@dsl54009DA0.pool.t-online.hu)
  828. # [20:30] * Joins: dbaron (n=dbaron@corp-241.mountainview.mozilla.com)
  829. # [20:30] * Philip` wonders how Larry sees hundreds of messages when loading whatwg.org/issues (presumably without manually clicking on all the links)
  830. # [20:30] <Philip`> since I just get the 15 folders, in Chrome 1.0 and Chrome 2.0 and Firefox 3.0 and Opera 9.6
  831. # [20:30] <annevk42> I was trying to find out, but Chromium crashes on me
  832. # [20:30] <hsivonen> I replied to Larry
  833. # [20:31] <annevk42> (when I enter the address manually I get the same as Philip`)
  834. # [20:31] <Philip`> hsivonen: I noticed, just before I sent the reply I'd written myself :-)
  835. # [20:31] <Philip`> (saying basically the same thing)
  836. # [20:31] * Quits: Lachy (n=Lachlan@85.196.122.246) ("This computer has gone to sleep")
  837. # [20:31] <Philip`> annevk42: Fortunately Chromium has lots of clever process isolation so that the browser won't crash
  838. # [20:32] <annevk42> you know, not working
  839. # [20:32] <annevk42> :)
  840. # [20:32] <hsivonen> has Chrome 2.0 already been pushed to users?
  841. # [20:32] <Philip`> hsivonen: No
  842. # [20:32] <hsivonen> Philip`: do you have separate VMs for different versions of Chrome?
  843. # [20:32] <Philip`> hsivonen: (I had to manually find and install the beta)
  844. # [20:33] <Philip`> hsivonen: No; I tested in Chrome 1.0, then upgraded to 2.0 and tested again
  845. # [20:33] * Quits: onar_ (n=onar@17.244.69.252)
  846. # [20:33] <hsivonen> ah
  847. # [20:33] * Philip` has no VMs at all
  848. # [20:34] <Philip`> mostly because VMware on Linux started panicking my kernel after I updated something
  849. # [20:34] * Joins: onar_ (n=onar@17.244.69.252)
  850. # [20:34] <Philip`> and then I decided there were more useful uses of several gigabytes of disk space than a VM which I never use
  851. # [20:42] * Quits: mstange (n=markus@buntes215.wohnheim.uni-kl.de) (Remote closed the connection)
  852. # [20:43] * Joins: mstange (n=markus@buntes215.wohnheim.uni-kl.de)
  853. # [20:44] * Quits: mstange (n=markus@buntes215.wohnheim.uni-kl.de) (Remote closed the connection)
  854. # [20:44] * Joins: mstange (n=markus@buntes215.wohnheim.uni-kl.de)
  855. # [20:56] <hsivonen> Hixie: what's your take on http://mxr.mozilla.org/mozilla-central/source/layout/reftests/bugs/228856-2.html ?
  856. # [21:01] <jgraham> Philip`: My plan was to decompress the data upfront rather than on the fly. Possibly that isn't sensible (but I'm no sure how the compressed size of the data relative to the ram size matters since presumably it has o be decompressed at some point)
  857. # [21:03] <Philip`> jgraham: I think that isn't sensible, because of disk IO speed and RAM buffer sizes
  858. # [21:03] <Philip`> The decompressed data will get processed and discarded and garbage-collected very quickly
  859. # [21:03] <Philip`> so it won't take up much RAM in total
  860. # [21:04] <Philip`> which leaves all the rest available for buffering the disk
  861. # [21:04] <jgraham> Philip`: I'm not sure I understand. Maybe I don't understand gzip well enough
  862. # [21:05] <Philip`> jgraham: You decompress and process it streamingly, you don't decompress the entire thing into RAM and then process it all at once
  863. # [21:06] * Quits: dolske (n=dolske@firefox/developer/dolske)
  864. # [21:06] <jgraham> Philip`: But that limits you to a single process operating on the data, right?
  865. # [21:06] <jgraham> (i.e. you can't look at it in chunks)
  866. # [21:06] <Philip`> jgraham: If you've got a single gzipped file, then yes
  867. # [21:07] <Philip`> so I suggest doing some pre-processing to split it into several chunks, each of which can be gzipped independently
  868. # [21:07] <Philip`> (and also change it to a format that can be read more easily than null-terminated fields)
  869. # [21:08] <Philip`> and then you can parallelise by having each process process one of the chunks
  870. # [21:08] <Philip`> (so make them pretty small chunks, like a hundred megabytes or whatever)
  871. # [21:08] <jgraham> Philip`: All of that sounds like a sensible optimisation but essentially not that different to the (broken) code I already have
  872. # [21:09] <Philip`> Much more sensible than storing the uncompressed data on disk :-)
  873. # [21:09] <jgraham> Which processed the whole file in ~5 minutes. Although that might change a lot when it actually does the right thing
  874. # [21:09] <jgraham> Philip`: It's not really that big a file compared to the amount of free disk space I have :)
  875. # [21:10] <Philip`> jgraham: The point is that it's big compared to the amount of RAM you have
  876. # [21:10] <Philip`> and so it'll be slower to process
  877. # [21:10] * Parts: hasather (n=hasather@90-231-107-133-no62.tbcn.telia.com)
  878. # [21:11] <Philip`> I suppose unless you've got 4GB of RAM (or you restrict yourself to a subset of the data) you'll have to do some disk IO anyway, and if the OS does FIFO buffering then it'll be the worst possible case, which isn't so good
  879. # [21:12] * gsnedders always gets FIFO and FILO mixed up
  880. # [21:12] <jgraham> FILO is a type of pastry
  881. # [21:12] * jgraham is sure he has said that before
  882. # [21:13] <Philip`> gsnedders: It's easy to remember, because people never use the term FILO :-)
  883. # [21:13] <Philip`> (They're called stacks instead)
  884. # [21:13] <gsnedders> Philip`: Assuming the SQA has logic
  885. # [21:13] <gsnedders> (Unlikely)
  886. # [21:14] * Joins: dolske (n=dolske@corp-241.mountainview.mozilla.com)
  887. # [21:14] <rubys> LIFO is common, however
  888. # [21:14] <Philip`> jgraham: Is that ~5 minutes with some parallelisation?
  889. # [21:15] * jgraham can find no evidence in the logs that he has actually made the pastry bun before so he is safe in the knowledge that people will only think him unfunny rather than unfunny and repetitive
  890. # [21:15] <jgraham> Philip`: Yes. 4 processes processing 50Mb chunks
  891. # [21:15] <Philip`> Pastry bun? :-p
  892. # [21:16] <jgraham> Argh
  893. # [21:17] <Philip`> jgraham: Hmm, seems to take me ~5 minutes to grep for a string in the 425K pages with no parallelisation
  894. # [21:17] <Philip`> (and it's all CPU bound, so it should parallelise embarrassingly)
  895. # [21:18] <Philip`> (Actually I suppose it's memory bound, so that's not really true; oh well)
  896. # [21:25] * Quits: jwalden (n=waldo@c-24-6-168-212.hsd1.ca.comcast.net) ("inbound")
  897. # [21:32] * Joins: othree_ (n=othree@admin39.ct.ntust.edu.tw)
  898. # [21:33] * Quits: othree (n=othree@admin39.ct.ntust.edu.tw) (Read error: 104 (Connection reset by peer))
  899. # [21:35] <Hixie> hsivonen: is the spec ambiguous?
  900. # [21:39] <Philip`> hsivonen: Did you see http://krijnhoetmer.nl/irc-logs/whatwg/20090424#l-503 ?
  901. # [21:39] * Philip` wonders if he should report it via the bug tracker or something
  902. # [21:40] * Quits: dbaron (n=dbaron@corp-241.mountainview.mozilla.com) ("8403864 bytes have been tenured, next gc will be global.")
  903. # [21:42] <rubys> Hixie: what's the status/outlook on RDFa?
  904. # [21:42] <Philip`> jgraham: (For comparison: It takes ~70 seconds to read all the pages and extract the HTTP headers, with 4 processes in parallel; and ~400 seconds to parse all the HTML (via SAX2) and extract all the <meta> elements)
  905. # [21:43] <Hixie> rubys: just had a meeting with the last group of people i know of who had input they wanted to give on the issue, having lunch now, plan to start going down the use cases this afternoon
  906. # [21:44] <rubys> so you will have a proposal by the end of the... week? month? Don't need a firm date, just a guess.
  907. # [21:45] <Hixie> there are a number of use cases each of which will likely get their own proposals
  908. # [21:45] <Hixie> i expect the easiest ones will have proposals by tonight
  909. # [21:46] <Hixie> and the more complex ones likely by the end of the week
  910. # [21:46] <rubys> thanks!
  911. # [21:47] <Hixie> np
  912. # [21:51] * Quits: mlpug (n=mlpug@a91-156-60-13.elisa-laajakaista.fi) (Remote closed the connection)
  913. # [21:53] <annevk42> "Estimated date for last e-mail: 2009-11-01" fun
  914. # [21:55] <Hixie> it was april 2010 last week :-)
  915. # [21:55] <annevk42> it's making a nose dive atm
  916. # [21:56] * Joins: jwalden (n=waldo@63.245.220.241)
  917. # [21:56] <jgraham> Philip`: OK, now I have some idea what to aim for :)
  918. # [21:56] * Quits: ap (n=ap@194.154.88.36)
  919. # [21:57] <Hixie> annevk42: it's gonna flatline this week as i go back to microdata stuff :-)
  920. # [21:58] <Philip`> jgraham: (This is on a 2.4GHz quad Core 2)
  921. # [21:58] * Joins: Lachy (n=Lachlan@85.196.122.246)
  922. # [22:01] * Quits: maikmerten (n=maikmert@U1305.u.pppool.de) (Remote closed the connection)
  923. # [22:13] <gsnedders> Where is the estimate?
  924. # [22:14] <Philip`> http://tomayko.com/ - <meta http-equiv='X-UA-Compatible' content='YOUR MOM'>
  925. # [22:15] * Quits: starjive (i=beos@213.66.216.93)
  926. # [22:15] <annevk42> hehe
  927. # [22:16] * Quits: myakura (n=myakura@p1120-ipbf2303marunouchi.tokyo.ocn.ne.jp) ("Leaving...")
  928. # [22:21] <annevk42> W3C QA blog needs karl back; this latest post doesn't even provide some simple pointers
  929. # [22:23] <annevk42> Hixie, if you could reply to my email about sync fetch that'd great btw
  930. # [22:24] * Parts: rubys (n=rubys@cpe-075-182-092-038.nc.res.rr.com)
  931. # [22:24] <Philip`> http://philip.html5.org/data/ua-compatible-contents.txt
  932. # [22:24] * Joins: virtuelv (n=virtuelv@084202133045.customer.alfanett.no)
  933. # [22:25] * Quits: archtech (n=stanv@83.228.56.37)
  934. # [22:25] <annevk42> Hixie, especially if you have any tips on how to share an algorithm between a sync and async fetch at the same time (where the algorithm would only dispatch events in the async case, but would share a bunch of common that do not affect the event loop (apart from completely killing the network request; i.e. the current task))
  935. # [22:25] <Hixie> annevk42: do you want other events, timeouts, etc, to fire during the sync request?
  936. # [22:26] <annevk42> nope
  937. # [22:26] <Hixie> k
  938. # [22:26] <annevk42> it would be sync very much like alert() is sync I guess
  939. # [22:26] <annevk42> but I still need it to follow redirects, throw on network errors, etc. (and dispatch events if invoked as async)
  940. # [22:27] * Quits: Lachy (n=Lachlan@85.196.122.246) ("This computer has gone to sleep")
  941. # [22:27] <Hixie> i don't think i'd recommend reusing the 'fetch' algorithm then
  942. # [22:27] <Hixie> i'd just write a new one
  943. # [22:27] <Hixie> that happens to have bits in common
  944. # [22:28] <Hixie> not really sure what to suggest, tip wise
  945. # [22:28] <Hixie> how can i help you?
  946. # [22:30] <annevk42> from http://dev.w3.org/2006/webapi/XMLHttpRequest/#send step 9 and 10 are basically the part that the UA needs to do while fetching regardless of sync/async
  947. # [22:30] <annevk42> now I was thinking that if fetch qeued some kind of task I could just wait for that task to complete in the sync case
  948. # [22:30] <annevk42> and for async return early
  949. # [22:31] <Hixie> the task will not complete if you're waiting
  950. # [22:31] <Hixie> the tasks only ever run when the event loop runs
  951. # [22:31] <Hixie> this is really just a regular event loop pattern
  952. # [22:32] * Parts: zdobersek1 (n=zan@cpe-92-37-74-29.dynamic.amis.net)
  953. # [22:32] <annevk42> I see
  954. # [22:32] <annevk42> writing out everything two times seems like the wrong approach though
  955. # [22:33] * Joins: Lachy (n=Lachlan@85.196.122.246)
  956. # [22:34] <annevk42> I suppose writing a sync fetch isn't too hard; hmm
  957. # [22:36] <annevk42> does XHR delay the load event?
  958. # [22:39] <annevk42> so you'd have ... fetch resource; return send(); follow loading algorithm; ... or ... sync fetch resource; follow loading algorithm; return send()
  959. # [22:41] <annevk42> this still requires some kind of event loop for the sync case in the UA of course, but I guess that's always required, because otherwise you'd get stuck
  960. # [22:41] <annevk42> but it doesn't have to be explicit in the spec
  961. # [22:43] * Joins: akamike (n=mikerobi@92.3.35.15)
  962. # [22:43] * Quits: ROBOd (n=robod@89.122.216.38) ("http://www.robodesign.ro")
  963. # [22:50] <Philip`> http://philip.html5.org/data/ua-compatible-headers.txt
  964. # [22:51] <Philip`> I like the first one
  965. # [22:52] <gsnedders> IE=8;FF=3;OtherUA=4: X-UA-Compatible: IE=8;FF=3;OtherUA=4
  966. # [22:52] <gsnedders> WTF?
  967. # [22:52] * Joins: nessy (n=nessy@203-214-157-222.perm.iinet.net.au)
  968. # [22:53] <annevk42> Hixie, did the above make some amount of sense?
  969. # [22:55] <Philip`> gsnedders: *shrug*
  970. # [22:55] <Hixie> annevk42: sorry, was afk. reading.
  971. # [22:56] <Hixie> annevk42: you don't need an event loop in the sync case if you just avoid queueing tasks in that case
  972. # [22:56] * Quits: pmuellr (n=pmuellr@nat/ibm/x-ebeb71e218cb6158)
  973. # [22:56] <Hixie> annevk42: i would just have on algorithm, and every now and then say "if sync... else if async ..."
  974. # [22:57] <annevk42> Hixie, yeah, that is "follow loading algorithm" :)
  975. # [22:57] <annevk42> I suppose I could do it for fetching as well
  976. # [22:59] * Quits: nessy (n=nessy@203-214-157-222.perm.iinet.net.au) ("This computer has gone to sleep")
  977. # [22:59] <annevk42> defining the Web sometimes feels like building a house of cards
  978. # [23:00] * Quits: Lachy (n=Lachlan@85.196.122.246) ("This computer has gone to sleep")
  979. # [23:01] * Philip` wobbles the table
  980. # [23:03] * Quits: ZombieLoffe (n=e@unaffiliated/zombieloffe)
  981. # [23:13] * Joins: weinig_ (n=weinig@17.246.16.148)
  982. # [23:19] * Quits: davidb (n=davidb@mozca02.ca.mozilla.com)
  983. # [23:22] * Quits: Maurice (i=copyman@5ED548D4.cable.ziggo.nl) ("Disconnected...")
  984. # [23:28] * Quits: weinig (n=weinig@nat/apple/x-cd9e9ebbf8cba5f7) (Read error: 110 (Connection timed out))
  985. # [23:30] * Quits: mstange (n=markus@buntes215.wohnheim.uni-kl.de) ("ChatZilla 0.9.84-2009030221 [Firefox 3.6a1pre/20090426031353]")
  986. # [23:34] * Quits: dave_levin (n=dave_lev@72.14.227.1)
  987. # [23:35] <Hixie> oops
  988. # [23:35] <Hixie> i just XSSed myself
  989. # [23:35] <Hixie> <iframe src="data:text/html,<script>document.write(location)</script>"></iframe> doesn't do quite what you might think it does
  990. # [23:48] * Quits: zalan (n=kvirc@dsl54009DA0.pool.t-online.hu) ("KVIrc 3.4.0 Virgo http://www.kvirc.net/")
  991. # [23:54] * Joins: Lachy (n=Lachlan@85.196.122.246)
  992. # [23:55] * gsnedders wonders how it does that
  993. # Session Close: Tue May 05 00:00:00 2009

The end :)