/irc-logs / freenode / #whatwg / 2010-02-09 / end

Options:

  1. # Session Start: Tue Feb 09 00:00:00 2010
  2. # Session Ident: #whatwg
  3. # [00:00] <zcorpan> i tested the site in ie6 once and fixed a few things so that it was at least usable
  4. # [00:00] <Johnny__> I guess that's a no then.
  5. # [00:00] * Joins: matijsb (~matijsb@86.93.69.153)
  6. # [00:01] <TabAtkins> I'm with zcorpan - I make sure the site is *usable* in ie6, but I make *no* effort to keep it pretty.
  7. # [00:01] <Johnny__> But you do display a message to someone using ie6?
  8. # [00:01] <TabAtkins> Yes.
  9. # [00:01] <zcorpan> no
  10. # [00:01] <Johnny__> Why not?
  11. # [00:02] <zcorpan> not the kind of site to tell the user to switch browser
  12. # [00:02] <webben> Johnny__: I do.
  13. # [00:03] <Johnny__> I think that's a good idea, at least tell them that it's the browser not your site's fault.
  14. # [00:04] <webben> (Support IE6, that is, as part of http://developer.yahoo.com/yui/articles/gbs/ )
  15. # [00:06] * Quits: dbaron (~dbaron@nat/mozilla/x-xwkxavvjkiaxdfsr) (Ping timeout: 252 seconds)
  16. # [00:07] * Quits: onar (~onar@2620:0:1b00:16f2:21f:5bff:fe3e:944) (Remote host closed the connection)
  17. # [00:07] * Joins: onar (~onar@2620:0:1b00:16f2:21f:5bff:fe3e:944)
  18. # [00:07] <zcorpan> apparently my visitors have 19 different versions of flash
  19. # [00:09] <Johnny__> Do you style the section tag in css after declaring it as a block element?
  20. # [00:09] * Quits: FireFly (~firefly@unaffiliated/firefly) (Quit: Leaving)
  21. # [00:09] <TabAtkins> If necessary?
  22. # [00:10] <TabAtkins> It's just like any other element.
  23. # [00:10] <TabAtkins> I just feed it the IE shim and the quick block declaration for current-browser compatibility, then style it as I would any other element.
  24. # [00:10] <Johnny__> I've read an article saying that section is not for that and should use div instead.
  25. # [00:10] <TabAtkins> I think you misinterpreted the article.
  26. # [00:11] <TabAtkins> <section> is not meant to be used *solely* as a styling hook.
  27. # [00:11] <zcorpan> 1280x800 is more common than 1024x768
  28. # [00:11] <TabAtkins> That is, if you need an element *only* to hang styles on. <div> is appropriate there.
  29. # [00:11] * Quits: onar (~onar@2620:0:1b00:16f2:21f:5bff:fe3e:944) (Remote host closed the connection)
  30. # [00:11] <Johnny__> I'm talking about the html5doctor.com's article on how to use the section tag.
  31. # [00:11] <TabAtkins> Yeah, I suspected you meant that article. That's not what they meant.
  32. # [00:12] * Joins: onar (~onar@2620:0:1b00:16f2:21f:5bff:fe3e:944)
  33. # [00:12] <TabAtkins> The rule is to just make sure that you're using <section> properly for its semantics, just like you should use all elements properly for their semantics.
  34. # [00:12] <TabAtkins> After that, style away.
  35. # [00:15] <Johnny__> I think I'm still a bit confused as to when should one use section and when should one use article.
  36. # [00:18] <Johnny__> <section><h1>title</h1><article>content</article></section> Is this wrong?
  37. # [00:20] <zcorpan> my other site has 74% ie apparently
  38. # [00:21] <Johnny__> Do you use html5?
  39. # [00:21] <zcorpan> yeah
  40. # [00:21] <Johnny__> Can I see your site?
  41. # [00:21] <zcorpan> which one?
  42. # [00:21] <Johnny__> The one that uses html5
  43. # [00:22] <zcorpan> emeress.se
  44. # [00:24] <Johnny__> Ok I see you used the section tag
  45. # [00:25] <Johnny__> Now I understand.
  46. # [00:26] * Joins: GarethAdams|Home (~GarethAda@pdpc/supporter/active/GarethAdams)
  47. # [00:27] * Quits: BlurstOfTimes (~blurstoft@168.203.117.66) (Quit: Leaving...)
  48. # [00:28] <zcorpan> i guess i can remove the script for firefox 2 by now
  49. # [00:32] * Quits: jgornick (~joe@199.199.210.66) (Quit: jgornick)
  50. # [00:33] <Johnny__> Thanks TabAtkins, and zcorpan
  51. # [00:36] * Joins: dbaron (~dbaron@nat/mozilla/x-gcivxrvtyoizgzff)
  52. # [00:41] <zcorpan> nn
  53. # [00:42] * Quits: zcorpan (~zcorpan@c-ca9be355.410-6-64736c14.cust.bredbandsbolaget.se) (Quit: zcorpan)
  54. # [00:44] <TabAtkins> Johnny__: The difference between <section> and <article> is somewhat subtle, but there's an easy rule-of-thumb to tell them apart.
  55. # [00:45] <TabAtkins> Use <section> whenever it would be appropriate to put a heading on the stuff you're enclosing (even if you don't actually end up putting one there).
  56. # [00:45] <TabAtkins> Use <article> when you have something that could be a <section>, but would also be appropriate to link directly to, or to view by itself.
  57. # [00:46] <TabAtkins> That rule-of-thumb helps capture the "independent content" semantic that <article> has.
  58. # [00:46] <TabAtkins> Basically if it would be useful to link to a page that had *nothing* on it but the content of the <article>, then <article> is appropriate.
  59. # [00:54] * Quits: franksalim (~frank@adsl-75-61-86-190.dsl.pltn13.sbcglobal.net) (Quit: Ex-Chat)
  60. # [00:54] <Johnny__> I see.
  61. # [00:55] <TabAtkins> Frex, I have a CMS with multiple tabs, one for each segment of my application. Each tab is an <article>, because it would make sense to have them on a separate page (though I happen to collect them on a single page for convenience).
  62. # [00:58] <othermaciej> I don't think using <article> or <section> for applications typically makes sense
  63. # [00:59] <othermaciej> I mean, look at the GMail UI, almost none of the logical groupings of UI elements have anything resembling a header
  64. # [00:59] <TabAtkins> Eh, works for me. Helps to delineate major sections of the app (using <article>) from minor sections (using <section>).
  65. # [00:59] <TabAtkins> They certainly *could* have a header.
  66. # [00:59] <othermaciej> the only thing that might be an <article> is an individual email message
  67. # [00:59] <othermaciej> they *could* but they don't
  68. # [00:59] <TabAtkins> They don't, because it's obvious from context. But it wouldn't be weird to add one.
  69. # [01:00] <TabAtkins> Yes. Presentational details like that shouldn't affect the semantics of the element.
  70. # [01:00] <othermaciej> I don't see any reasonable way to decide which groupings in the UI should be <section>s and which should be <div>s
  71. # [01:00] <TabAtkins> Just use the guideline I just said.
  72. # [01:00] <othermaciej> <section> is a concept that makes sense for documents but not as much for applications
  73. # [01:01] <TabAtkins> I agree, though, that the major sections of GMail should be <section>, and email messages should be <article>s.
  74. # [01:01] <othermaciej> you were explaining the difference between <section> and <article>, but that doesn't really clarify the difference between <section> and <div> in an app context
  75. # [01:02] * Joins: workmad3 (~workmad3@cpc3-bagu10-0-0-cust651.1-3.cable.virginmedia.com)
  76. # [01:02] <TabAtkins> Sure. The differernce is that <div> just groups things for some arbitrary reason, usually for styling or scripting purposes. <section> groups them according to a logical division of the doc/app, with the "heading" rule of thumb helping to determine what's an appropriate "logical grouping".
  77. # [01:02] <TabAtkins> That just keeps you from overthinking things and over-dividing the app.
  78. # [01:04] <TabAtkins> Like, say, the Labels panel in the GMail ui - individual labels, with their color spot, would probably be <div>s. It's not appropriate to use <section> there, because you wouldn't put a heading on individual labels.
  79. # [01:04] <TabAtkins> Though, if you were on a label-centric page with a lot of info on each label, then it would be appropriate.
  80. # [01:05] <TabAtkins> Same as how, frex, a group of ledes for blog posts on a blog home page should just be <div>s, but a group of full posts (or perhaps truncated posts with a "Read More" link) are appropriate for <article>.
  81. # [01:05] <TabAtkins> <div> or <li> or something, that is.
  82. # [01:08] * Joins: yutak_home (~kee@N038037.ppp.dion.ne.jp)
  83. # [01:10] * Quits: matijsb (~matijsb@86.93.69.153) (Quit: matijsb)
  84. # [01:11] * Joins: cardona507 (~cardona50@c-67-180-160-250.hsd1.ca.comcast.net)
  85. # [01:14] * Quits: Rik` (~Rik`@pha75-2-81-57-187-57.fbx.proxad.net) (Ping timeout: 252 seconds)
  86. # [01:14] * Quits: aroben (~aroben@unaffiliated/aroben) (Read error: Connection reset by peer)
  87. # [01:18] <Johnny__> Does it make sense to nest two aside tags into one aside tag? I need to place two things one beside the other and float them so the one on the right won't go on the next row.
  88. # [01:18] * Quits: Heimidal (~heimidal@unaffiliated/heimidal) (Remote host closed the connection)
  89. # [01:23] * Quits: cardona507 (~cardona50@c-67-180-160-250.hsd1.ca.comcast.net) (Quit: zzzzz)
  90. # [01:26] * Joins: MikeSmith (~MikeSmith@EM114-48-84-58.pool.e-mobile.ne.jp)
  91. # [01:31] * Joins: wakaba_ (~wakaba_@122x221x184x68.ap122.ftth.ucom.ne.jp)
  92. # [01:38] * Quits: yutak_home (~kee@N038037.ppp.dion.ne.jp) (Quit: Ex-Chat)
  93. # [01:40] * Quits: Johnny__ (~johnny__@host106-216-dynamic.54-79-r.retail.telecomitalia.it) (Quit: Java user signed off)
  94. # [01:51] * Joins: slightlyoff (~slightlyo@2620:0:1002:1002:21f:5bff:feec:e987)
  95. # [02:00] * Quits: Necrathex (~bleptop@212-123-163-12.ip.telfort.nl) (Remote host closed the connection)
  96. # [02:03] * Joins: cardona507 (~cardona50@c-67-180-160-250.hsd1.ca.comcast.net)
  97. # [02:03] * Quits: cardona507 (~cardona50@c-67-180-160-250.hsd1.ca.comcast.net) (Client Quit)
  98. # [02:04] * Joins: erikvold (~erikvold@nat/mozilla/x-ommtgbwclvcqfbwe)
  99. # [02:06] * Quits: erikvold (~erikvold@nat/mozilla/x-ommtgbwclvcqfbwe) (Client Quit)
  100. # [02:10] * Quits: JonathanNeal (~JonathanN@rrcs-76-79-114-213.west.biz.rr.com) (Ping timeout: 245 seconds)
  101. # [02:25] * Quits: ap (~ap@17.246.19.5) (Quit: ap)
  102. # [02:26] * Joins: KevinMarks (~KevinMark@70-36-187-154.dsl.dynamic.sonic.net)
  103. # [02:30] * Quits: workmad3 (~workmad3@cpc3-bagu10-0-0-cust651.1-3.cable.virginmedia.com) (Remote host closed the connection)
  104. # [02:36] * Joins: Rik` (~Rik`@pha75-2-81-57-187-57.fbx.proxad.net)
  105. # [02:40] * Quits: cpearce (~cpearce@203-97-204-82.dsl.clear.net.nz) (Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.0.15/2009101909])
  106. # [02:41] * Joins: cpearce (~cpearce@203-97-204-82.dsl.clear.net.nz)
  107. # [02:46] * Quits: paul_irish (~paul_iris@12.33.239.250) (Quit: paul_irish)
  108. # [02:47] * Quits: KevinMarks (~KevinMark@70-36-187-154.dsl.dynamic.sonic.net) (Quit: The computer fell asleep)
  109. # [02:49] * Quits: tndH (~Rob@cpc2-leed18-0-0-cust427.leed.cable.ntl.com) (Ping timeout: 256 seconds)
  110. # [03:00] * Joins: paradisaeidae (~chatzilla@r125-63-186-202.cpe.unwired.net.au)
  111. # [03:04] * Joins: tndH (~Rob@cpc2-leed18-0-0-cust427.leed.cable.ntl.com)
  112. # [03:09] * Quits: cying (~cying@70.90.171.153) (Quit: cying)
  113. # [03:09] * Quits: rsteiner (~rolandste@220.109.219.244)
  114. # [03:10] * Quits: othermaciej (~mjs@17.246.19.234) (Quit: othermaciej)
  115. # [03:12] * dave_levin is now known as dave_levin|afk
  116. # [03:17] * Quits: wakaba_ (~wakaba_@122x221x184x68.ap122.ftth.ucom.ne.jp) (Ping timeout: 245 seconds)
  117. # [03:18] * Quits: GarethAdams|Home (~GarethAda@pdpc/supporter/active/GarethAdams) (Ping timeout: 245 seconds)
  118. # [03:19] * Joins: wakaba_ (~wakaba_@119-228-219-41.eonet.ne.jp)
  119. # [03:19] * Quits: dglazkov (~dglazkov@216.239.45.130) (Quit: dglazkov)
  120. # [03:20] * Joins: paul_irish (~paul_iris@c-71-192-163-128.hsd1.nh.comcast.net)
  121. # [03:21] * Quits: MikeSmith (~MikeSmith@EM114-48-84-58.pool.e-mobile.ne.jp) (Quit: Tomorrow to fresh woods, and pastures new.)
  122. # [03:22] * Quits: smaug_ (~chatzilla@cs181150024.pp.htv.fi) (Quit: ChatZilla 0.9.86 [Firefox 3.7a1pre/20100203110813])
  123. # [03:22] * Joins: MikeSmith (~MikeSmith@EM114-48-84-58.pool.e-mobile.ne.jp)
  124. # [03:24] * Joins: GarethAdams|Home (~GarethAda@pdpc/supporter/active/GarethAdams)
  125. # [03:33] * Quits: grimboy (~grimboy@bcm-131-111-216-247.girton.cam.ac.uk) (Remote host closed the connection)
  126. # [03:33] * Quits: gavin_ (~gavin@firefox/developer/gavin) (Ping timeout: 264 seconds)
  127. # [03:34] * Joins: dglazkov (~dglazkov@c-67-188-0-62.hsd1.ca.comcast.net)
  128. # [03:34] * Joins: gavin_ (~gavin@firefox/developer/gavin)
  129. # [03:34] * Quits: dglazkov (~dglazkov@c-67-188-0-62.hsd1.ca.comcast.net) (Client Quit)
  130. # [03:34] * Joins: dglazkov (~dglazkov@c-67-188-0-62.hsd1.ca.comcast.net)
  131. # [03:35] * Quits: roc (~roc@203-97-204-82.dsl.clear.net.nz) (Quit: roc)
  132. # [03:37] * Quits: nessy (~Adium@124-168-170-167.dyn.iinet.net.au) (Quit: Leaving.)
  133. # [03:42] * Quits: dbaron (~dbaron@nat/mozilla/x-gcivxrvtyoizgzff) (Quit: 8403864 bytes have been tenured, next gc will be global.)
  134. # [03:43] * Quits: dave_levin|afk (~dave_levi@2620:0:1008:1101:225:ff:fef0:9a9e) (Quit: dave_levin|afk)
  135. # [03:44] * Quits: MikeSmith (~MikeSmith@EM114-48-84-58.pool.e-mobile.ne.jp) (Quit: This computer has gone to sleep)
  136. # [03:58] * Quits: jwalden (~waldo@nat/mozilla/x-vwtrdplvryyxmwjq) (Quit: ChatZilla 0.9.85-rdmsoft [XULRunner 1.9.2/20100122095031])
  137. # [04:06] * Joins: mackstann_ (~death@216-20-152-177-dsl.hevanet.com)
  138. # [04:07] * Quits: drunknbass_work (~aaron@71.106.110.90) (Quit: Leaving...)
  139. # [04:09] * Joins: roc (~roc@121-74-149-63.telstraclear.net)
  140. # [04:23] * Quits: ttepasse (~ttepasse@ip-95-222-120-117.unitymediagroup.de) (Read error: Connection timed out)
  141. # [04:24] * Joins: ttepasse (~ttepasse@ip-95-222-120-117.unitymediagroup.de)
  142. # [04:26] * Quits: ttepasse (~ttepasse@ip-95-222-120-117.unitymediagroup.de) (Client Quit)
  143. # [04:30] * Joins: nessy (~Adium@124-170-159-245.dyn.iinet.net.au)
  144. # [04:30] * Joins: miketaylr (~miketaylr@24.42.95.234)
  145. # [04:35] * Quits: nessy (~Adium@124-170-159-245.dyn.iinet.net.au) (Quit: Leaving.)
  146. # [04:56] * Quits: cpearce (~cpearce@203-97-204-82.dsl.clear.net.nz) (Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.0.15/2009101909])
  147. # [05:08] * Quits: slightlyoff (~slightlyo@2620:0:1002:1002:21f:5bff:feec:e987) (Remote host closed the connection)
  148. # [05:08] * Joins: slightlyoff (~slightlyo@nat/google/x-yedhvrfvkyznbzxt)
  149. # [05:13] * Quits: gavin_ (~gavin@firefox/developer/gavin) (Ping timeout: 260 seconds)
  150. # [05:14] * Joins: gavin_ (~gavin@firefox/developer/gavin)
  151. # [05:15] * Joins: MikeSmith (~MikeSmith@EM114-48-197-180.pool.e-mobile.ne.jp)
  152. # [05:26] * Joins: nessy (~Adium@124-168-170-167.dyn.iinet.net.au)
  153. # [05:32] * Quits: paul_irish (~paul_iris@c-71-192-163-128.hsd1.nh.comcast.net) (Remote host closed the connection)
  154. # [05:33] * Joins: paul_irish (~paul_iris@c-71-192-163-128.hsd1.nh.comcast.net)
  155. # [05:35] * Joins: MikeSmithX (~MikeSmith@EM114-48-23-230.pool.e-mobile.ne.jp)
  156. # [05:36] * Quits: MikeSmith (~MikeSmith@EM114-48-197-180.pool.e-mobile.ne.jp) (Disconnected by services)
  157. # [05:36] * MikeSmithX is now known as MikeSmith
  158. # [05:37] <MikeSmith> nessy: about the report of problems with links in the http://lists.w3.org/Archives/Public/public-html/feed.rss feed
  159. # [05:38] <MikeSmith> the feed readers I've tried do handle those links as expected
  160. # [05:38] * Quits: slightlyoff (~slightlyo@nat/google/x-yedhvrfvkyznbzxt) (Ping timeout: 264 seconds)
  161. # [05:38] <MikeSmith> e.g., if I click on the first link, it takes me to http://lists.w3.org/Archives/Public/public-html/2010Feb/0221.html
  162. # [05:39] * Joins: paradisaeidae_ (~chatzilla@r125-63-186-202.cpe.unwired.net.au)
  163. # [05:44] * Quits: paradisaeidae (~chatzilla@r125-63-186-202.cpe.unwired.net.au) (Quit: ChatZilla 0.9.86 [Firefox 3.6/20100115144158])
  164. # [05:49] * Joins: MikeSmithX (~MikeSmith@EM114-48-152-154.pool.e-mobile.ne.jp)
  165. # [05:52] * Quits: MikeSmith (~MikeSmith@EM114-48-23-230.pool.e-mobile.ne.jp) (Ping timeout: 272 seconds)
  166. # [05:53] * Quits: miketaylr (~miketaylr@24.42.95.234) (Remote host closed the connection)
  167. # [05:53] * MikeSmithX is now known as MikeSmith
  168. # [05:55] <MikeSmith> hmm, I guess those are supposed to be absolute URIs
  169. # [05:56] * Joins: JonathanNeal (~JonathanN@99-59-124-67.lightspeed.irvnca.sbcglobal.net)
  170. # [05:59] * Quits: gavin_ (~gavin@firefox/developer/gavin) (Ping timeout: 240 seconds)
  171. # [05:59] * Joins: gavin_ (~gavin@firefox/developer/gavin)
  172. # [06:00] * Parts: MikeSmith (~MikeSmith@EM114-48-152-154.pool.e-mobile.ne.jp) ("Tomorrow to fresh woods, and pastures new.")
  173. # [06:01] * Quits: paradisaeidae_ (~chatzilla@r125-63-186-202.cpe.unwired.net.au) (Read error: Connection reset by peer)
  174. # [06:02] * Joins: paradisaeidae (~chatzilla@r125-63-186-202.cpe.unwired.net.au)
  175. # [06:04] * Quits: wakaba (~wakaba@122.139.210.220.dy.bbexcite.jp) (Read error: Connection reset by peer)
  176. # [06:04] * Joins: wakaba (~wakaba@122.139.210.220.dy.bbexcite.jp)
  177. # [06:05] * Joins: erikvold (~erikvold@ip67-152-86-163.z86-152-67.customer.algx.net)
  178. # [06:08] * Quits: erikvold (~erikvold@ip67-152-86-163.z86-152-67.customer.algx.net) (Remote host closed the connection)
  179. # [06:08] * Joins: erikvold (~erikvold@ip67-152-86-163.z86-152-67.customer.algx.net)
  180. # [06:10] * Quits: Amorphous (jan@unaffiliated/amorphous) (Ping timeout: 246 seconds)
  181. # [06:10] * Quits: roc (~roc@121-74-149-63.telstraclear.net) (Quit: roc)
  182. # [06:13] * Joins: Utkarsh (~admin@117.201.86.233)
  183. # [06:16] * Quits: paradisaeidae (~chatzilla@r125-63-186-202.cpe.unwired.net.au) (Read error: Connection reset by peer)
  184. # [06:18] * Joins: paradisaeidae (~chatzilla@r125-63-186-202.cpe.unwired.net.au)
  185. # [06:26] * Joins: dave_levin (~dave_levi@216.239.45.130)
  186. # [06:26] * Joins: Amorphous (jan@unaffiliated/amorphous)
  187. # [06:45] * Quits: Utkarsh (~admin@117.201.86.233) (Ping timeout: 248 seconds)
  188. # [06:50] * Joins: paul_iri_ (~paul_iris@65.112.12.151)
  189. # [06:50] * Quits: paul_irish (~paul_iris@c-71-192-163-128.hsd1.nh.comcast.net) (Ping timeout: 248 seconds)
  190. # [06:52] * Joins: Utkarsh (~admin@117.201.82.193)
  191. # [07:07] * Quits: dave_levin (~dave_levi@216.239.45.130) (Quit: dave_levin)
  192. # [07:09] * Joins: MikeSmith (~MikeSmith@EM114-48-33-206.pool.e-mobile.ne.jp)
  193. # [07:11] * Quits: JonathanNeal (~JonathanN@99-59-124-67.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 272 seconds)
  194. # [07:13] * Joins: TheOutlawTorn (~TheOutlaw@unaffiliated/theoutlawtorn)
  195. # [07:13] <TheOutlawTorn> Morning.
  196. # [07:14] <MikeSmith> TheOutlawTorn: hey
  197. # [07:15] <MikeSmith> nessy: I filed a systems bug for the RSS feed link problem
  198. # [07:15] <TheOutlawTorn> Is this considered correct use of the following tags: <div id="someClass"><aside id="one">some stuff</aside><aside id="two">some stuff again</aside></div>
  199. # [07:15] <nessy> MikeSmith: excellent - wondered if there was some setup issue
  200. # [07:15] <nessy> thanks!
  201. # [07:15] <TheOutlawTorn> Basically I need to have a big block inside which I will position (using floats) something on the left and something besides it on the right.
  202. # [07:15] * Quits: Utkarsh (~admin@117.201.82.193) (Ping timeout: 248 seconds)
  203. # [07:16] <TheOutlawTorn> I'm not sure I'm using the new tag correctly though.
  204. # [07:18] <MikeSmith> nessy: it seems that many (or maybe even most) feed readers resolve those into absolute URIs, but regardless, the feed validator says relative URIs in rss <link> elements aren't valid, so we should fix it
  205. # [07:18] <MikeSmith> TheOutlawTorn: is your content all <aside>s?
  206. # [07:19] * Quits: mpt (~mpt@canonical/mpt) (Ping timeout: 260 seconds)
  207. # [07:19] <TheOutlawTorn> Everything is inside a <section> tag. The content is above the aside tags
  208. # [07:20] <MikeSmith> so if the asides are stuff that you are having rendered as sidebars around the main content, then it would seem you are using it as intended
  209. # [07:20] <TheOutlawTorn> Well I'm placing a form in one and some text in the other
  210. # [07:21] <MikeSmith> all sounds fine
  211. # [07:21] <TheOutlawTorn> Hm, ok.
  212. # [07:21] <MikeSmith> that would all validate, as far as I can see
  213. # [07:21] <MikeSmith> but you can always check at http://validator.nu/ to make sure
  214. # [07:21] <TheOutlawTorn> It validates, sure.
  215. # [07:22] * Joins: Utkarsh (~admin@117.201.88.4)
  216. # [07:29] <MikeSmith> TheOutlawTorn: if it validates, then the question about usage is mostly a subjective judgement call
  217. # [07:29] <MikeSmith> you could probably find somebody who might think the way you are using it is wrong
  218. # [07:29] <TheOutlawTorn> I see.. thanks
  219. # [07:36] * Quits: surkov (~surkov@client-64-22.sibtele.com) (Quit: surkov)
  220. # [07:37] * Quits: dglazkov (~dglazkov@c-67-188-0-62.hsd1.ca.comcast.net) (Quit: dglazkov)
  221. # [07:46] * Quits: erikvold (~erikvold@ip67-152-86-163.z86-152-67.customer.algx.net) (Quit: Bye bye)
  222. # [07:53] * Joins: maikmerten (~merten@ls5dhcp196.cs.uni-dortmund.de)
  223. # [07:57] * Joins: JonathanNeal (~JonathanN@99-59-124-67.lightspeed.irvnca.sbcglobal.net)
  224. # [07:59] * Joins: zalan (~zalan@host-131.nrln.net)
  225. # [08:05] * Quits: TheOutlawTorn (~TheOutlaw@unaffiliated/theoutlawtorn) (Quit: ChatZilla 0.9.86 [Firefox 3.6/20100115144158])
  226. # [08:06] * Quits: ciaran_lee (leecn@spoon.netsoc.tcd.ie) (Ping timeout: 256 seconds)
  227. # [08:08] * Joins: KevinMarks (~KevinMark@c-67-161-44-219.hsd1.ca.comcast.net)
  228. # [08:08] * Joins: ciaran_lee (leecn@spoon.netsoc.tcd.ie)
  229. # [08:11] * Quits: gavin_ (~gavin@firefox/developer/gavin) (Ping timeout: 264 seconds)
  230. # [08:12] * Joins: gavin_ (~gavin@firefox/developer/gavin)
  231. # [08:13] * Quits: ciaran_lee (leecn@spoon.netsoc.tcd.ie) (Read error: Operation timed out)
  232. # [08:16] * Joins: matijsb (~matijsb@86.93.69.153)
  233. # [08:16] * Quits: MikeSmith (~MikeSmith@EM114-48-33-206.pool.e-mobile.ne.jp) (Quit: Tomorrow to fresh woods, and pastures new.)
  234. # [08:22] * Quits: paul_iri_ (~paul_iris@65.112.12.151) (Ping timeout: 240 seconds)
  235. # [08:22] * Joins: ciaran_lee (leecn@spoon.netsoc.tcd.ie)
  236. # [08:33] * Joins: roc (~roc@121-74-149-63.telstraclear.net)
  237. # [08:37] * Joins: cpearce (~cpearce@ip-118-90-39-120.xdsl.xnet.co.nz)
  238. # [08:40] * Joins: Maurice (~ano@a80-101-46-164.adsl.xs4all.nl)
  239. # [08:46] * Quits: paradisaeidae (~chatzilla@r125-63-186-202.cpe.unwired.net.au) (Read error: Connection reset by peer)
  240. # [08:47] * Joins: paradisaeidae (~chatzilla@r125-63-186-202.cpe.unwired.net.au)
  241. # [08:47] * Joins: FireFly (~firefly@unaffiliated/firefly)
  242. # [08:48] * Joins: zcorpan (~zcorpan@90-224-190-71-no135.tbcn.telia.com)
  243. # [08:51] * Joins: workmad3 (~workmad3@cpc3-bagu10-0-0-cust651.1-3.cable.virginmedia.com)
  244. # [08:59] * Quits: zalan (~zalan@host-131.nrln.net) (Read error: Connection reset by peer)
  245. # [09:04] * Joins: mpt (~mpt@canonical/mpt)
  246. # [09:08] * Joins: MikeSmith (~MikeSmith@EM114-48-211-230.pool.e-mobile.ne.jp)
  247. # [09:15] * Joins: drunknbass_work (~aaron@cpe-76-173-195-145.socal.res.rr.com)
  248. # [09:17] * Joins: zalan (~zalan@host-131.nrln.net)
  249. # [09:17] * Joins: virtuelv (~virtuelv_@pat-tdc.opera.com)
  250. # [09:17] * Quits: FireFly (~firefly@unaffiliated/firefly) (Quit: Leaving)
  251. # [09:20] * Joins: pesla (~retep@procurios.xs4all.nl)
  252. # [09:22] <MikeSmith> hsivonen: link about the Oracle-Gnome accessibility news?
  253. # [09:22] <MikeSmith> nm
  254. # [09:22] <MikeSmith> found it
  255. # [09:25] * Quits: erlehmann (~erlehmann@82.113.121.136) (Quit: Ex-Chat)
  256. # [09:26] * Quits: Lachy (~Lachlan@213.163.64.43) (Quit: Leaving)
  257. # [09:27] * Quits: nessy (~Adium@124-168-170-167.dyn.iinet.net.au) (Quit: Leaving.)
  258. # [09:27] * Quits: roc (~roc@121-74-149-63.telstraclear.net) (Ping timeout: 245 seconds)
  259. # [09:30] * Quits: GarethAdams|Home (~GarethAda@pdpc/supporter/active/GarethAdams) (Quit: GarethAdams|Home)
  260. # [09:30] * Joins: roc (~roc@121-72-164-122.dsl.telstraclear.net)
  261. # [09:31] * Joins: Lachy (~Lachlan@london.perfect-privacy.com)
  262. # [09:36] * Quits: Utkarsh (~admin@117.201.88.4) (Ping timeout: 256 seconds)
  263. # [09:36] * Quits: paradisaeidae (~chatzilla@r125-63-186-202.cpe.unwired.net.au) (Quit: ChatZilla 0.9.86 [Firefox 3.6/20100115144158])
  264. # [09:37] * Quits: cpearce (~cpearce@ip-118-90-39-120.xdsl.xnet.co.nz) (Read error: Connection reset by peer)
  265. # [09:38] * Joins: cpearce (~cpearce@ip-118-90-39-120.xdsl.xnet.co.nz)
  266. # [09:42] * Joins: nessy (~Adium@203-158-55-153.dyn.iinet.net.au)
  267. # [09:44] * Joins: svl (~chatzilla@a194-109-2-65.dmn.xs4all.nl)
  268. # [09:44] * Quits: Lachy (~Lachlan@london.perfect-privacy.com) (Quit: This computer has gone to sleep)
  269. # [09:45] * Quits: nessy (~Adium@203-158-55-153.dyn.iinet.net.au) (Client Quit)
  270. # [09:46] * Joins: nessy (~Adium@203-158-55-153.dyn.iinet.net.au)
  271. # [09:46] * Quits: nessy (~Adium@203-158-55-153.dyn.iinet.net.au) (Client Quit)
  272. # [09:46] * Joins: mhausenblas (~mhausenbl@wg1-nat.fwgal01.deri.ie)
  273. # [09:54] <annevk> do about: URIs need some kind of wiki registry as well?
  274. # [09:58] * Joins: danbri (~danbri@ip176-48-210-87.adsl2.static.versatel.nl)
  275. # [09:58] * Quits: danbri (~danbri@ip176-48-210-87.adsl2.static.versatel.nl) (Changing host)
  276. # [09:58] * Joins: danbri (~danbri@unaffiliated/danbri)
  277. # [09:58] * Quits: workmad3 (~workmad3@cpc3-bagu10-0-0-cust651.1-3.cable.virginmedia.com) (Remote host closed the connection)
  278. # [10:00] <MikeSmith> how many are there currently?
  279. # [10:00] <MikeSmith> annevk: ↑
  280. # [10:00] <MikeSmith> and are we planning to add many more?
  281. # [10:01] * Quits: zalan (~zalan@host-131.nrln.net)
  282. # [10:02] * Quits: cpearce (~cpearce@ip-118-90-39-120.xdsl.xnet.co.nz) (Ping timeout: 256 seconds)
  283. # [10:05] <Philip`> Are there any where interoperability is needed, except about:blank?
  284. # [10:06] <annevk> MikeSmith, the sandbox stuff ended up adding one
  285. # [10:06] <annevk> MikeSmith, if people start using them for icons that would be at least one more
  286. # [10:06] <MikeSmith> hmm
  287. # [10:06] * Joins: Lachy (~Lachlan@pat.se.opera.com)
  288. # [10:06] <MikeSmith> 困った
  289. # [10:07] <MikeSmith> it seems like a registry might have an unintended side-effect of encouraging further proliferation of about: stuff
  290. # [10:08] <zcorpan> google translate couldn't detect the language for "困った" but could for "困った困った"
  291. # [10:08] <MikeSmith> weird
  292. # [10:09] <MikeSmith> I wonder how it translates it
  293. # [10:09] <zcorpan> Trouble trouble
  294. # [10:10] <MikeSmith> try 困ったな
  295. # [10:10] <zcorpan> Damn
  296. # [10:10] <MikeSmith> that's more like it
  297. # [10:14] <annevk> i guess it's not really needed
  298. # [10:15] <annevk> though some overview would be nice
  299. # [10:15] <annevk> i like overviews :)
  300. # [10:15] * Quits: JonathanNeal (~JonathanN@99-59-124-67.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 248 seconds)
  301. # [10:16] * Quits: mackstann_ (~death@216-20-152-177-dsl.hevanet.com) (Ping timeout: 240 seconds)
  302. # [10:20] * Joins: JonathanNeal (~JonathanN@99-59-124-67.lightspeed.irvnca.sbcglobal.net)
  303. # [10:20] <MikeSmith> it would be nice for any new registries to use some innovative technology of the last 30 years, such as, say, an actual database backend
  304. # [10:20] * Quits: JonathanNeal (~JonathanN@99-59-124-67.lightspeed.irvnca.sbcglobal.net) (Client Quit)
  305. # [10:22] <hsivonen> does anyone have a reference to an authoritative Google statement on the breadth of the H.264 decoding license a user get for Chrome?
  306. # [10:22] <hsivonen> http://www.google.com/chrome/intl/en/eula_text.html says nothing on the topic
  307. # [10:23] * Joins: Michelangelo (~Michelang@93-41-57-90.ip80.fastwebnet.it)
  308. # [10:23] <hsivonen> (for background, Flash Player appears to be licensed only for non-commercial decoding)
  309. # [10:23] * Quits: gavin_ (~gavin@firefox/developer/gavin) (Ping timeout: 256 seconds)
  310. # [10:23] <hsivonen> freedom zero FTW
  311. # [10:24] * Quits: Rik` (~Rik`@pha75-2-81-57-187-57.fbx.proxad.net) (Quit: Rik`)
  312. # [10:26] <MikeSmith> hsivonen: I don't remember public statements except what was posted to the whatwg list
  313. # [10:27] * Joins: Utkarsh (~admin@117.201.81.62)
  314. # [10:27] <hsivonen> MikeSmith: thanks
  315. # [10:27] <annevk> hsivonen, is it non-commercial if you make money of advertizements?
  316. # [10:28] * Joins: gavin_ (~gavin@firefox/developer/gavin)
  317. # [10:29] * Joins: ROBOd (~robod@89.122.216.38)
  318. # [10:29] <jgraham> annevk: Doesn't that make commercial TV non-commercial?
  319. # [10:29] <jgraham> (I know TV is different)
  320. # [10:30] <hsivonen> annevk: IANAL, but I doubt the user of Flash Player is the one making money from advertisements when decoding is practiced
  321. # [10:30] <annevk> I thought commercial TV was TV not sponsored by the government
  322. # [10:30] <hsivonen> Is BBC World commercial or non-commercial under that definition?
  323. # [10:30] <jgraham> (but the point is it is a pretty weird defenition of "non-commercial" that includes the main way that video has amde money since its inception)
  324. # [10:31] * Quits: broquaint (6d7dabc82e@spc2-brig11-0-0-cust103.asfd.cable.virginmedia.com) (Ping timeout: 260 seconds)
  325. # [10:31] <annevk> The public channels do advertising as well
  326. # [10:31] <jgraham> s/video/TV/ maybe. Or whatever the term is for "recorder moving images"
  327. # [10:31] * Quits: Utkarsh (~admin@117.201.81.62) (Client Quit)
  328. # [10:31] <jgraham> *recorded
  329. # [10:31] <hsivonen> having different licensing terms for commercial and non-commercial use is a trap.
  330. # [10:32] <hsivonen> setting those traps is uncool
  331. # [10:32] <hsivonen> (I'm looking at you, Creative Commons.)
  332. # [10:32] * jgraham is quite happy to put photos under a non-nomercial CC license
  333. # [10:32] <jgraham> argh
  334. # [10:32] <jgraham> commercial
  335. # [10:32] <jgraham> That wasn't even close
  336. # [10:33] <jgraham> But I would be somewhat less happy to put them under a simply BY license
  337. # [10:33] * Quits: Michelangelo (~Michelang@93-41-57-90.ip80.fastwebnet.it) (Remote host closed the connection)
  338. # [10:34] * Joins: Michelangelo (~Michelang@93-41-57-90.ip80.fastwebnet.it)
  339. # [10:34] <hsivonen> jgraham: so someone else creates a larger work that includes your photos somewhere. Then later they find they want to make some money from their work.
  340. # [10:34] <hsivonen> jgraham: so they can't presumptively
  341. # [10:35] <hsivonen> which sucks
  342. # [10:35] <hsivonen> or they need to make more money than it costs to negotiate commercial licenses, which sucks
  343. # [10:35] * Quits: Michelangelo (~Michelang@93-41-57-90.ip80.fastwebnet.it) (Remote host closed the connection)
  344. # [10:35] <Philip`> It seems the problem is when people think CC-NC means "free but with some extra restrictions" instead of "proprietary but with some exceptions"
  345. # [10:35] <hsivonen> and you can extort them for money up to the cost of removing and replacing your photos
  346. # [10:35] * Joins: Utkarsh (~admin@117.201.81.62)
  347. # [10:35] <jgraham> hsivonen: In my spoecific case it would almost always be a case of "ask, get permission"
  348. # [10:36] <hsivonen> so effectively CC-NC is an attractive nuisance
  349. # [10:37] <hsivonen> creators of larger works would be smarter to search Flickr for someone else's less good photos instead than take the risk of not being able to make money from their additive creativity
  350. # [10:37] <jgraham> hsivonen: You would prefer things were "all rights reserved" than BY-NC
  351. # [10:37] <hsivonen> jgraham: yes
  352. # [10:37] <jgraham> Curious.
  353. # [10:38] <jgraham> There are many instances where you are clearly never intending to make money from a project e.g. one-off presentations at science conferences
  354. # [10:39] <jgraham> However it is generally not worth the effort of asking for permission to use some nice pictures in those cases
  355. # [10:39] <Philip`> Do people giving presentations at science conferences care about licenses, and not just crawl through Google Images looking for suitably amusing clipart they can grab without worrying about where it came from?
  356. # [10:39] <jgraham> I did. I'm not sure about anyone else
  357. # [10:40] <Hixie> it's not clear those cases would even be violations of copyright law, depending on how many people watch your talk
  358. # [10:40] <jgraham> But I guess there is a higher-than-average chance of people doing that sort of thing abiding by the rules
  359. # [10:40] <hsivonen> jgraham: NC is basically this problem: http://www.techdirt.com/articles/20090117/0537253446.shtml
  360. # [10:41] <hsivonen> the saddest part of it is how Lessig goes on the talking circuit talking about the problems documentary makers face in this area
  361. # [10:42] <hsivonen> and then his own organization is effectively promoting the same problem
  362. # [10:42] <hsivonen> that if you later find your larger work could be used in a way you didn't plan for, you are in a permission culture hell
  363. # [10:43] * Quits: drunknbass_work (~aaron@cpe-76-173-195-145.socal.res.rr.com) (Quit: drunknbass_work)
  364. # [10:44] * Joins: drunknbass_work (~aaron@cpe-76-173-195-145.socal.res.rr.com)
  365. # [10:52] <annevk> Hixie, I reckon he might have told you in private already, but just in case: http://bitworking.org/news/2010/02/joel-in-a-box
  366. # [10:52] * Joins: othermaciej (~mjs@c-69-181-42-237.hsd1.ca.comcast.net)
  367. # [10:52] <annevk> Hixie, also, if you're out there, did you see my notes on XMLHttpRequest from yesterday?
  368. # [10:52] <annevk> Hixie, I was wondering if you agree it could use "fetch" if synchronous requests were told to "pause"
  369. # [10:52] <othermaciej> howdy folks
  370. # [10:53] <annevk> heya othermaciej
  371. # [10:53] <Hixie> annevk: hmm... "fetch" works by queueing events
  372. # [10:53] <Hixie> er, tasks
  373. # [10:53] <Hixie> not events
  374. # [10:53] <Hixie> forget i said events
  375. # [10:54] <Hixie> annevk: which means you have to spin the event loop to get them
  376. # [10:54] <Hixie> annevk: is the synchronous stuff supposed to block all tasks?
  377. # [10:54] <othermaciej> Hixie: this would be the thread to reply to on rel if you want to make your suggestion: http://lists.w3.org/Archives/Public/public-html/2010Jan/1006.html
  378. # [10:54] <annevk> Hixie, yes
  379. # [10:54] <annevk> Hixie, apart from network tasks
  380. # [10:55] <annevk> Hixie, network tasks are processed to figure out when the request is done
  381. # [10:55] <annevk> Hixie, or to do some kind of timeout fail
  382. # [10:55] <Hixie> annevk: even network tasks relating to other things?
  383. # [10:55] <annevk> Hixie, or follow a redirect, etc.
  384. # [10:55] <Hixie> annevk: e.g. does <img onload> fire during a sync XHR?
  385. # [10:56] <annevk> Hixie, hmm no, that shouldn't happen
  386. # [10:56] <othermaciej> Hixie: or you could respond to the comments on issue 27 here: http://lists.w3.org/Archives/Public/public-html/2010Jan/1399.html
  387. # [10:56] <Hixie> othermaciej: is there corresponding bug?
  388. # [10:56] <annevk> Hixie, only network tasks of the object in question
  389. # [10:56] <othermaciej> Hixie: that issue predates the current process, and I believe there is no bug at all relating to it
  390. # [10:57] <Hixie> othermaciej: sounds like the process is too heavy weight, then. we should just do it in the lightweight bug fashion. I'll respond to the change proposals saying that and proposing we exercise the registry.
  391. # [10:57] <Hixie> annevk: sounds like your life would be better off if in the sync case you just did the fetch manually
  392. # [10:57] <Hixie> annevk: rather than try to use the event loop for everything except the event loop! :-)
  393. # [10:58] <othermaciej> Hixie: sounds ok to me
  394. # [10:58] * Joins: mat_t (~mattomasz@91.189.88.12)
  395. # [10:58] <othermaciej> and I am fine with using a bug to track the needed change if after exercising the process there's consensus that we should go with it
  396. # [10:59] <roc> woohoo, some open Web motion in China: http://blog.mozilla.com/ligong/2010/02/09/china-construction-bank-supports-firefox/
  397. # [10:59] <annevk> Hixie, can I convince you to give "fetch" an optional sync flag so that I can use fetch?
  398. # [10:59] <annevk> Hixie, the reason I'm asking is that fetch defines a bunch of things already; having to define all those things again (as I've done now) is a bit of a waste
  399. # [10:59] <annevk> though I suppose I could
  400. # [11:00] <Hixie> annevk: that might work. file a bug? mark it P1 critical if you need it this week rather than just anytime this month.
  401. # [11:00] <annevk> roc, would be interesting to know what they use for Firefox
  402. # [11:00] <roc> yeah
  403. # [11:00] <annevk> roc, do they use <keygen> or some Mozilla proprietary API?
  404. # [11:01] <annevk> ah, you don't know either :)
  405. # [11:01] <roc> I hope not
  406. # [11:01] <roc> even if they do, it's a big step forward from ActiveX
  407. # [11:01] <roc> of course it could also be NPAPI
  408. # [11:02] <zcorpan> maybe they use XBL1
  409. # [11:03] <hsivonen> it's really sad that it's 2010 and banks support particular browsers
  410. # [11:03] <roc> in China it's not really 2010 :-)
  411. # [11:03] <roc> not on the Web
  412. # [11:03] <hsivonen> roc: It's not 2010 in Danske Bank, either.
  413. # [11:04] * Joins: Necrathex (~bleptop@212-123-163-12.ip.telfort.nl)
  414. # [11:05] <annevk> Hixie, cool, thanks
  415. # [11:05] <annevk> filed
  416. # [11:12] * Joins: workmad3 (~workmad3@cspool71.cs.man.ac.uk)
  417. # [11:17] * Joins: zalan (~zalan@host-131.nrln.net)
  418. # [11:19] * Joins: nessy (~Adium@124-168-170-167.dyn.iinet.net.au)
  419. # [11:20] * Quits: matijsb (~matijsb@86.93.69.153) (Quit: matijsb)
  420. # [11:21] * Joins: adactio (~adactio@host213-123-197-180.in-addr.btopenworld.com)
  421. # [11:21] <Lachy> hsivonen, what does Flickr use to "protect" images? I didn't think they did anything like that.
  422. # [11:23] <hsivonen> Lachy: if the user who publishes photos chooses to enable the feature, Flickr disables the "All sizes" button and overlays the photo with a transparent gif
  423. # [11:23] <hsivonen> as a result, browsers offer to save the transparent gif, since it's the frontmost image for any given pixel of the photo
  424. # [11:24] <Lachy> I thought the All Sizes button was just disabled for free accounts. I didn't realise there was an option to disable it manually
  425. # [11:25] <hsivonen> interesting tidbit of the day, there are named character references starting with each of the letters a-z and A-Z
  426. # [11:25] <hsivonen> there are no other start characters for named character references
  427. # [11:26] * Joins: andol (andreas@ubuntu/member/andol)
  428. # [11:26] <annevk> zcorpan, I removed the other filter options
  429. # [11:27] <annevk> zcorpan, until someone complaints
  430. # [11:27] <roc> hmm, so it appears they have in fact wrapped their ActiveX controls in NPAPI
  431. # [11:27] <roc> so it could work cross-browser, but still stuck on Windows :-(
  432. # [11:27] * hsivonen is happy to be able to read the spec in Minefield these days without beachballing
  433. # [11:28] <MikeSmith> hsivonen: because of parser changes or other changes?
  434. # [11:28] * hsivonen wonders what the situation with banking on mobile devices is in China and South Korea
  435. # [11:28] <hsivonen> MikeSmith: I think both due to parser changes and due to layout changes
  436. # [11:28] <MikeSmith> cool
  437. # [11:29] <MikeSmith> I don't think people actually do any browser-based banking in China and South Korea
  438. # [11:30] <hsivonen> at least with the Danske Bank JNI craziness, you can get around it using the Web bank version meant for mobile devices
  439. # [11:30] <MikeSmith> bank sites as a class are the worst as far as lack of cross-browser support and broken JS and other things
  440. # [11:30] <zcorpan> annevk: ok
  441. # [11:31] <MikeSmith> but airline sites as a class are not far behind
  442. # [11:32] <MikeSmith> I find it not coincidental that airlines are in a class of business that it is known to treat its customers with a relatively higher degree of contempt that most other customer-service businesses
  443. # [11:32] <hsivonen> yeah. Lufthansa should rewrite their seat selector without Flash.
  444. # [11:32] <MikeSmith> banks also operate with a certain amount of contempt toward their average customers
  445. # [11:33] <annevk> zcorpan, I want to remove filter options from the diff page too because they are useless there
  446. # [11:33] <annevk> zcorpan, that's for whenever I have some more free time
  447. # [11:33] <hsivonen> Web bank considerations are a big factor in my bank choice, but my airline choices would become overconstrained if I wanted to avoid both Heathrow and Flash
  448. # [11:33] <MikeSmith> I mean I find it not so coincidental that the same classes of business that are known for poor/contemptuous customer services are also the same ones that try to force their users to use particular browsers and OSes
  449. # [11:36] <MikeSmith> Heathrow is great example of open contempt on a large scale
  450. # [11:36] <othermaciej> roc, annevk: I wish we could standardize some better crypto APIS than just keygen (whether Mozilla's PKI stuff, or something modeled on Microsoft's APIs, or something new)
  451. # [11:37] <zcorpan> annevk: the diff page could have a link back to index
  452. # [11:37] <Hixie> AryehGregor: "A square wheel works, as long as you're willing to do a lot more work"
  453. # [11:37] <Hixie> AryehGregor: you should go to the San Francisco exploratorium, they have a track with a square wheel where the ride is completely smooth :-)
  454. # [11:38] * Parts: andol (andreas@ubuntu/member/andol)
  455. # [11:38] <roc> MikeSmith: there is massive amounts of online banking in China
  456. # [11:38] <othermaciej> yeah, you don't need more work, you just need to make your road a catenary curve
  457. # [11:38] <roc> just not on mobile
  458. # [11:38] <Hixie> AryehGregor: http://en.wikipedia.org/wiki/File:Rolling-Square.gif http://www.americandigest.org/mt-archives/square_wheels.jpg
  459. # [11:39] <roc> othermaciej: the issue here is that the large Chinese banks each have their own USB key storage device, and custom ActiveX controls to talk to those devices
  460. # [11:39] <othermaciej> roc: I see, awesome
  461. # [11:40] <roc> it's pretty dumb
  462. # [11:40] <roc> there is no trusted path to the device, so you don't actually get any protection against malware
  463. # [11:40] <othermaciej> if you ever look at the per-country browser stats from NetApps, China seems to have much more computing monoculture than almost any other country
  464. # [11:41] <Philip`> Before cavemen invented circles, I wonder if they made square wheels and inverted-catenary roads
  465. # [11:41] <othermaciej> the percentages for Windows and for IE are both much higher than anywhere else I could find
  466. # [11:41] <roc> China and South Korea
  467. # [11:41] <othermaciej> (though part of that could have been Maxthon getting counted as IE)
  468. # [11:41] <hsivonen> one *should* count Maxthon as IE
  469. # [11:42] <roc> We should send Li Gong from our Beijing office down to talk to you guys
  470. # [11:42] <MikeSmith> roc: yeah, I was just referring to browser-based banking from mobile devices
  471. # [11:43] <othermaciej> hsivonen: from the perspective of "computing monoculture", that is probably true
  472. # [11:43] <roc> he's been in there for years figuring out the problems and trying to make progress
  473. # [11:46] * Quits: mpt (~mpt@canonical/mpt) (Ping timeout: 252 seconds)
  474. # [11:46] * zcorpan decides to use the indent/outdent feature in fckeditor to be translated into <details>
  475. # [11:47] <roc> one huge problem is that almost every PC comes with CDs full of pirated software
  476. # [11:47] * Joins: smaug_ (~chatzilla@cs181150024.pp.htv.fi)
  477. # [11:47] * hendry lived in Korea for a year. Also I am helping train some guys from our Taiwan office who find it difficult to think outside Visual Studio.
  478. # [11:47] <roc> if you want distribution your best strategy is to pay to be on those CDs
  479. # [11:47] <roc> along with the malware guys :-(
  480. # [11:48] <roc> another interesting problem is that the "non-IE browser" niche has been partially filled by browsers like Maxthon and others that are just shells around Trident
  481. # [11:48] <roc> they are perceived as non-IE
  482. # [11:48] <roc> better still for them, they are perceived as Chinese-made
  483. # [11:49] <roc> that's in addition to the complete dependence of banking on ActiveX, and on Web sites in general on IE quirks
  484. # [11:51] <roc> it may also be true that Microsoft can get away with certain practices in China that they can't any longer in other countries
  485. # [11:52] <roc> ah well. There is hope.
  486. # [11:52] <jgraham> Mobile is interesting, because Microsoft don't have nearly the same presence there
  487. # [11:53] <othermaciej> true, I have not observed the same kind of monoculture in mobile browsers or operating systems anywhere
  488. # [11:53] <roc> ahem
  489. # [11:54] <zcorpan> hmm, indent used style="" without a wrapper element, so that's not so useful. blockquote probably works better
  490. # [11:55] <roc> Mobile is probably the big hope in China, because ActiveX controls simply won't be a solution there
  491. # [11:56] <hendry> i've seen a couple of Chinese android devices at work. So we can look forward to a webkit monoculture :)
  492. # [11:56] <roc> there are in fact quite a few people looking forward to a webkit monoculture
  493. # [12:00] * Quits: virtuelv (~virtuelv_@pat-tdc.opera.com) (Quit: Ex-Chat)
  494. # [12:02] <othermaciej> there are people who want a webkit monoculture, but even that is less "mono" than an IE monoculture, plus I don't see them getting their wish so far
  495. # [12:02] <othermaciej> Opera is still pretty big in mobile browsing volume
  496. # [12:05] * Parts: annevk (~annevk@pat-tdc.opera.com)
  497. # [12:07] * Joins: annevk (~annevk@213.236.208.247)
  498. # [12:12] <AryehGregor> Hixie, I would consider making your floor be a precisely-shaped series of inverted catenaries to be "a lot more work".
  499. # [12:13] <Hixie> :-)
  500. # [12:18] <AryehGregor> MikeSmith, http://wiki.whatwg.org/api.php?action=query&prop=revisions&titles=Validator.nu+alt+advice&rvprop=content&rvsection=2
  501. # [12:18] * Quits: roc (~roc@121-72-164-122.dsl.telstraclear.net) (Quit: roc)
  502. # [12:18] <AryehGregor> I finally managed to find the API guy and ask him. He's on at different times from you, I guess, so I kept on forgetting.
  503. # [12:19] * Quits: drunknbass_work (~aaron@cpe-76-173-195-145.socal.res.rr.com) (Quit: Leaving...)
  504. # [12:22] * Joins: roc (~roc@121-72-164-122.dsl.telstraclear.net)
  505. # [12:23] * Quits: wakaba_ (~wakaba_@119-228-219-41.eonet.ne.jp) (Ping timeout: 265 seconds)
  506. # [12:26] * Joins: wakaba_ (~wakaba_@122x221x184x68.ap122.ftth.ucom.ne.jp)
  507. # [12:28] * Quits: zcorpan (~zcorpan@90-224-190-71-no135.tbcn.telia.com) (Quit: zcorpan)
  508. # [12:30] * Quits: roc (~roc@121-72-164-122.dsl.telstraclear.net) (Quit: roc)
  509. # [12:30] * Joins: roc (~roc@121-72-164-122.dsl.telstraclear.net)
  510. # [12:35] * Quits: gavin_ (~gavin@firefox/developer/gavin) (Ping timeout: 256 seconds)
  511. # [12:35] * gsnedders sighs at the es5-discuss emails
  512. # [12:39] * Joins: gavin_ (~gavin@firefox/developer/gavin)
  513. # [12:40] <MikeSmith> AryehGregor: nice, thanks
  514. # [12:41] <MikeSmith> hmm, or not, maybe
  515. # [12:41] <MikeSmith> that's just giving the raw wikitext, right?
  516. # [12:43] <MikeSmith> man, subversion never fails to find new ways to be disappointing
  517. # [12:44] <MikeSmith> I'm discovering that once you have a workspace that you've used with a newer version svn client, you can't then go back to using that workspace with an older version of an svn client
  518. # [12:46] <othermaciej> gsnedders: what makes you sigh about them?
  519. # [12:46] <othermaciej> AryehGregor: once you've boiled the ocean, retiling your floor is no big deal
  520. # [12:46] <gsnedders> othermaciej: Well, basically, we have interop on behaviour of \09 and \9, but because the comittiee doesn't like octal escape sequences, we're just going to make them illegal.
  521. # [12:47] <AryehGregor> Yeah, it gives you wikitext. As discussed, it's not obvious what HTML output would be correct. You can feed it back with action=parse: http://wiki.whatwg.org/api.php?action=parse&title=Validator.nu+alt+advice&text=''Foo''
  522. # [12:47] <AryehGregor> (you might want to POST if you're using lots of text, I guess)
  523. # [12:47] <gsnedders> othermaciej: https://mail.mozilla.org/pipermail/es5-discuss/2010-February/003491.html
  524. # [12:48] <othermaciej> gsnedders: what does it mean to make them "illegal"? will the required behavior for \07 change, or will it be mandatory to reject it, or will it just be "undefined"?
  525. # [12:48] <othermaciej> there's not even a surface-level ECMAScript conformance checker so it's hard to say what is illegal for the language
  526. # [12:49] <othermaciej> (I think maybe there should at least be a checker to verify that your program is correct syntax per the ECMAScript grammar, even though that wouldn't catch many other kinds of undefined constructs)
  527. # [12:50] <gsnedders> othermaciej: Per spec, "\07" does not meet the grammar, except if you allow octals (defined in appendix B). "\08" equally does not match the grammar.
  528. # [12:50] <gsnedders> The problem is the latter case
  529. # [12:50] <othermaciej> I see, so pseudo-octal is the problem?
  530. # [12:50] <gsnedders> Everything treats that as \x008
  531. # [12:50] <gsnedders> OR octal-followed by non-octal
  532. # [12:50] <othermaciej> and by "problem" I mean not part of the defined grammar and behavior not defined
  533. # [12:50] * Quits: nessy (~Adium@124-168-170-167.dyn.iinet.net.au) (Quit: Leaving.)
  534. # [12:51] <gsnedders> The grammar uses lookaheads to forbid it
  535. # [12:51] <gsnedders> So yeah, behaviour is undefined
  536. # [12:51] <othermaciej> gsnedders: if Brendan thinks it's not used on the Web, I kinda wish he would test that with the Mozilla code before failing to spec t
  537. # [12:51] <gsnedders> Whereas if the lookaheads asserting != OctalDigit and not != DecimalDigit, it would match the spec
  538. # [12:52] * Joins: broquaint (3a72bc5568@spc2-brig11-0-0-cust103.asfd.cable.virginmedia.com)
  539. # [12:52] * gsnedders sends email asking when they intend to change Gecko
  540. # [12:56] <AryehGregor> othermaciej, surely you could write a decent ECMAScript validator by just adding extra code to normal JS engines, which (maybe optionally) raise a warning whenever they hit spec violations?
  541. # [12:56] <AryehGregor> Of course, it wouldn't be perfect, but it would catch errors that were actually hit at runtime.
  542. # [12:57] <othermaciej> AryehGregor: the word "just" in your question contains a large assumption
  543. # [12:57] * Quits: m_W (~mwj@c-69-141-106-205.hsd1.nj.comcast.net)
  544. # [12:57] <AryehGregor> That it would be easy to do that?
  545. # [12:57] * Joins: yutak_home (~kee@N038037.ppp.dion.ne.jp)
  546. # [12:58] <AryehGregor> Well, you could presumably offer to raise warnings for at least *some* conformance requirements.
  547. # [12:58] <AryehGregor> Even if most would be hard to check for.
  548. # [12:58] <othermaciej> JavaScriptCore couldn't even easily be used to check the syntax level, since we support many extensions
  549. # [12:59] <othermaciej> so step 1 would be rewriting the tokenizer and parser to remove all grammar extensions
  550. # [12:59] <AryehGregor> Shouldn't those extensions raise warnings as spec violations if used?
  551. # [12:59] <AryehGregor> I guess it's not quite that simple.
  552. # [12:59] <AryehGregor> But it's doable in principle. Gecko is rewriting its HTML parser right now for spec compliance, right?
  553. # [12:59] * gsnedders thinks it would be non-trivial even in Carakan without us supporting many extensions
  554. # [13:00] <AryehGregor> Just depends on how much people want it.
  555. # [13:00] <gsnedders> AryehGregor: That doesn't throw warnings on parse errors
  556. # [13:01] <AryehGregor> gsnedders, well, no. It's not meant to.
  557. # [13:01] <AryehGregor> I didn't mean actual browsers should necessarily do JS validation.
  558. # [13:02] <AryehGregor> . . . anyway.
  559. # [13:02] <AryehGregor> No one seems to care about JS spec conformance.
  560. # [13:02] <AryehGregor> I've never even looked at the ES spec.
  561. # [13:02] * gsnedders has spent far too much time looking atit
  562. # [13:03] * gsnedders really hates it
  563. # [13:07] * Quits: MikeSmith (~MikeSmith@EM114-48-211-230.pool.e-mobile.ne.jp) (Quit: Tomorrow to fresh woods, and pastures new.)
  564. # [13:11] * Joins: CriticalMass (~andrew@brick-lane.lbi.co.uk)
  565. # [13:11] * Quits: CriticalMass (~andrew@brick-lane.lbi.co.uk) (Client Quit)
  566. # [13:25] * Joins: surkov (~surkov@client-64-22.sibtele.com)
  567. # [13:26] * Philip` wonders where the missing space is meant to occur in "looking atit"
  568. # [13:29] <gsnedders> *at it
  569. # [13:35] <Philip`> Oh
  570. # [13:38] * Joins: virtuelv (~virtuelv_@213.236.208.247)
  571. # [13:45] * Quits: smaug_ (~chatzilla@cs181150024.pp.htv.fi) (Remote host closed the connection)
  572. # [13:49] * Joins: mpt (~mpt@canonical/mpt)
  573. # [13:50] * Joins: smaug_ (~chatzilla@cs181150024.pp.htv.fi)
  574. # [14:01] * Parts: annevk (~annevk@213.236.208.247)
  575. # [14:02] * Quits: Utkarsh (~admin@117.201.81.62) (Ping timeout: 256 seconds)
  576. # [14:02] * Quits: virtuelv (~virtuelv_@213.236.208.247) (Read error: Operation timed out)
  577. # [14:02] * Quits: tndH (~Rob@cpc2-leed18-0-0-cust427.leed.cable.ntl.com) (Ping timeout: 248 seconds)
  578. # [14:04] * Joins: annevk (~annevk@pat-tdc.opera.com)
  579. # [14:06] * Joins: ChrisLTD|Work (~blahness@152.2.194.196)
  580. # [14:08] * Joins: Michelangelo (~Michelang@93-42-110-105.ip86.fastwebnet.it)
  581. # [14:11] * Joins: paul_irish (~paul_iris@c-71-192-163-128.hsd1.nh.comcast.net)
  582. # [14:13] * Joins: paul_iri_ (~paul_iris@c-71-192-163-128.hsd1.nh.comcast.net)
  583. # [14:15] * Joins: virtuelv (~virtuelv_@pat-tdc.opera.com)
  584. # [14:16] * Quits: paul_irish (~paul_iris@c-71-192-163-128.hsd1.nh.comcast.net) (Ping timeout: 256 seconds)
  585. # [14:17] * Joins: tndH (~Rob@cpc2-leed18-0-0-cust427.leed.cable.ntl.com)
  586. # [14:26] * Quits: yutak_home (~kee@N038037.ppp.dion.ne.jp) (Quit: Ex-Chat)
  587. # [14:27] * Quits: virtuelv (~virtuelv_@pat-tdc.opera.com) (Quit: Ex-Chat)
  588. # [14:28] * Joins: virtuelv (~virtuelv_@pat-tdc.opera.com)
  589. # [14:30] * Quits: wakaba_ (~wakaba_@122x221x184x68.ap122.ftth.ucom.ne.jp) (Quit: Leaving...)
  590. # [14:41] * Quits: workmad3 (~workmad3@cspool71.cs.man.ac.uk) (Remote host closed the connection)
  591. # [14:41] * Joins: FireFly (~firefly@unaffiliated/firefly)
  592. # [14:42] <annevk> Hixie, you are using "Pause until either any applicable style sheets have been fetched and applied, or the user agent has timed out and decided to not wait for those style sheets."
  593. # [14:42] <annevk> Hixie, so is that incorrect too?
  594. # [14:42] <annevk> Hixie, it mixes pause and fetching
  595. # [14:43] <annevk> this stuff is hairy
  596. # [14:52] * Joins: kfirst (~chatzilla@pc154-c716.uibk.ac.at)
  597. # [15:01] * Joins: Utkarsh (~admin@117.201.80.69)
  598. # [15:05] * Joins: erlehmann (~erlehmann@82.113.121.136)
  599. # [15:09] * Joins: MikeSmith (~MikeSmith@EM114-49-145-115.pool.e-mobile.ne.jp)
  600. # [15:09] * Quits: gavin_ (~gavin@firefox/developer/gavin) (Ping timeout: 240 seconds)
  601. # [15:09] * Joins: zcorpan (~zcorpan@90-224-190-71-no135.tbcn.telia.com)
  602. # [15:09] * Joins: gavin_ (~gavin@firefox/developer/gavin)
  603. # [15:11] * Quits: Michelangelo (~Michelang@93-42-110-105.ip86.fastwebnet.it) (Remote host closed the connection)
  604. # [15:12] * Joins: Michelangelo (~Michelang@93-42-110-105.ip86.fastwebnet.it)
  605. # [15:14] * Joins: BlurstOfTimes (~blurstoft@168.203.117.66)
  606. # [15:20] * Joins: miketaylr (~miketaylr@38.117.156.163)
  607. # [15:36] * Quits: mat_t (~mattomasz@91.189.88.12) (Quit: This computer has gone to sleep)
  608. # [15:37] * Joins: surkov_ (~surkov@client-72-70.sibtele.com)
  609. # [15:37] * Joins: mat_t (~mattomasz@91.189.88.12)
  610. # [15:40] * Quits: surkov (~surkov@client-64-22.sibtele.com) (Ping timeout: 258 seconds)
  611. # [15:55] * Quits: zcorpan (~zcorpan@90-224-190-71-no135.tbcn.telia.com) (Remote host closed the connection)
  612. # [15:55] * Joins: zcorpan (~zcorpan@90-224-190-71-no135.tbcn.telia.com)
  613. # [16:10] <Dashiva> "I'm not so concerned about implementers, I'm concerned about people reading just HTML5 and concluding that the spec requires sniffing"
  614. # [16:10] <Dashiva> What is the danger here?
  615. # [16:12] <TabAtkins> You mean, like, what could happen if an author were to somehow read that and gain that impression?
  616. # [16:12] <Philip`> Users might decide that since the spec requires sniffing, it's safe for them to produce content that relies on sniffing
  617. # [16:12] <Philip`> and that would harm the UAs that don't sniff
  618. # [16:13] <Dashiva> The one user doing that seems rather insignificant compared with the thousands of users who don't read the spec, but produce content that requires sniffing anyhow
  619. # [16:14] <annevk> if users read the spec there would be no need for sniffing
  620. # [16:14] <hsivonen> Dashiva: you could point that out in the bug
  621. # [16:14] <Philip`> That's still one user who would benefit from the spec being clear that sniffing is not required (from which they infer that they can't rely on sniffing)
  622. # [16:14] <annevk> because HTTP requires UAs to adhere to the Content-Type currently
  623. # [16:14] <Philip`> (and hence they will produce content that works in more UAs, so everyone wins)
  624. # [16:15] <Philip`> so it's better than nothing
  625. # [16:15] * Quits: MikeSmith (~MikeSmith@EM114-49-145-115.pool.e-mobile.ne.jp) (Quit: Tomorrow to fresh woods, and pastures new.)
  626. # [16:15] <Dashiva> Philip`: UAs that don't sniff would still be in an equally bad position
  627. # [16:15] * Quits: zcorpan (~zcorpan@90-224-190-71-no135.tbcn.telia.com) (Remote host closed the connection)
  628. # [16:15] * Quits: zalan (~zalan@host-131.nrln.net)
  629. # [16:15] * Joins: zcorpan (~zcorpan@90-224-190-71-no135.tbcn.telia.com)
  630. # [16:16] <Philip`> They'd be in a marginally better position, and the author would be in a wider marginally better position
  631. # [16:16] * Joins: MikeSmith (~MikeSmith@EM114-49-145-115.pool.e-mobile.ne.jp)
  632. # [16:16] <Philip`> and the HTML5 spec is a collection of tens of thousands of things that each make the world only a tiny bit better
  633. # [16:16] <Dashiva> If the author cared about UAs that didn't sniff, he wouldn't make content that relies on sniffing
  634. # [16:17] <TabAtkins> On the other hand, if he thinks that all UAs are required to sniff, then he might not care about ones that don't, as they're non-conformant in his eyes.
  635. # [16:17] <Philip`> If he reads just HTML5 and concludes the spec requires sniffing, then he is more likely to believe there are no UAs that don't sniff
  636. # [16:18] <Dashiva> Surely not
  637. # [16:18] <Dashiva> If he cares about UAs that don't sniff, then he knows about them
  638. # [16:19] <Philip`> That seems untrue
  639. # [16:19] <Philip`> I care a bit about people who visit my sites in browsers I've never even heard of
  640. # [16:19] * Quits: paul_iri_ (~paul_iris@c-71-192-163-128.hsd1.nh.comcast.net) (Quit: Leaving...)
  641. # [16:19] <Philip`> and search engine crawlers I've never heard of
  642. # [16:19] <Philip`> etc
  643. # [16:20] <Philip`> so I want to make content that is likely to work for them, even if I don't know any details about them
  644. # [16:21] <Philip`> and to some extent I do that based on the assumption that if a spec requires something then these unknown UAs are likely to follow it
  645. # [16:22] <Philip`> (particularly if all desktop browser I test in follow it too)
  646. # [16:22] <Philip`> s//s/
  647. # [16:24] * Joins: pmuellr (~pmuellr@nat/ibm/x-bjvdmynbnpkldprg)
  648. # [16:25] * Quits: smaug (~chatzilla@cs181150024.pp.htv.fi) (Ping timeout: 245 seconds)
  649. # [16:25] <Dashiva> Philip`: But that's trivially untrue, since a large amount of tools don't use HTML parsers.
  650. # [16:26] * Quits: KevinMarks (~KevinMark@c-67-161-44-219.hsd1.ca.comcast.net) (Quit: The computer fell asleep)
  651. # [16:27] * Joins: smaug (~chatzilla@cs181150024.pp.htv.fi)
  652. # [16:27] <gsnedders> regexp ftw!
  653. # [16:28] <Philip`> Dashiva: It's an unsafe assumption, but (in the absence of better information) it's the best assumption I can make
  654. # [16:29] <Philip`> I have no idea how Googlebot parses HTML but I assume that if my page is valid HTML and parses correctly in desktop browsers then probably Googlebot will parse it correctly too
  655. # [16:30] <Philip`> and I'll happily omit </p> and <html> tags, and write <br /> etc, based on that assumption
  656. # [16:33] * Quits: zcorpan (~zcorpan@90-224-190-71-no135.tbcn.telia.com) (Remote host closed the connection)
  657. # [16:33] * Joins: zcorpan (~zcorpan@90-224-190-71-no135.tbcn.telia.com)
  658. # [16:33] * Quits: zcorpan (~zcorpan@90-224-190-71-no135.tbcn.telia.com) (Remote host closed the connection)
  659. # [16:33] <Dashiva> Philip`: But that changes your assumption. You aren't actually aligning with the spec, but rather with desktop browser behavior
  660. # [16:33] * Joins: zcorpan (~zcorpan@90-224-190-71-no135.tbcn.telia.com)
  661. # [16:35] <Philip`> I'm aligning with the information I have available, which consists of the spec plus observable behaviour
  662. # [16:36] <Philip`> If they agree then I'll be reasonably confident in my assumption
  663. # [16:36] * Joins: paul_irish (~paul_iris@12.33.239.250)
  664. # [16:36] <Philip`> But if I conclude from reading the spec that some UAs might not have that behaviour, I'll be much more cautious about assuming it
  665. # [16:37] <Dashiva> Well, the spec says UAs don't have to support text/html, so leaving out </p> will break a class of conforming UAs
  666. # [16:38] <zcorpan> using text/html at all will break a class of conforming UAs (regardless of tags used)
  667. # [16:39] <Philip`> My available information also consists of knowledge that most implementors are not entirely insane, and therefore will attempt to support text/html
  668. # [16:39] <Dashiva> Equally, most implementors are not entirely insane, and will sniff as required
  669. # [16:40] <zcorpan> maybe they'll sniff but not exactly as required
  670. # [16:40] * Joins: TheOutlawTorn (~TheOutlaw@unaffiliated/theoutlawtorn)
  671. # [16:40] <TheOutlawTorn> Hi
  672. # [16:40] <gsnedders> hi
  673. # [16:41] <TheOutlawTorn> Hi gsnedders
  674. # [16:41] <TabAtkins> Yay for PHP SPL.
  675. # [16:42] * TabAtkins just wrote a convenience class for turning mysql results into a tree iterator.
  676. # [16:42] * Quits: Utkarsh (~admin@117.201.80.69) (Ping timeout: 245 seconds)
  677. # [16:43] * Joins: dglazkov (~dglazkov@c-67-188-0-62.hsd1.ca.comcast.net)
  678. # [16:43] <gsnedders> TabAtkins: The real question is are you dealing with software in which you can rely upon SPL being enabled
  679. # [16:43] <TabAtkins> Yes - it's all personal tools for use on servers I control.
  680. # [16:44] <gsnedders> Ah, that avoids so much of the horribleness of PHP.
  681. # [16:44] <TabAtkins> Yus.
  682. # [16:46] * gsnedders founds another crash bug in PHP over the weekend
  683. # [16:47] <Philip`> Is crashing PHP considered to be a bug?
  684. # [16:47] * Quits: kfirst (~chatzilla@pc154-c716.uibk.ac.at) (Quit: ChatZilla 0.9.86 [Firefox 3.6.2pre/20100205055834])
  685. # [16:48] <gsnedders> They are less often closed as bogus
  686. # [16:50] <Philip`> Perl's unpack function lets you read arbitrary integers as pointers, so you can crash it trivially (unless running in a restricted-capability environment), so crashes with easy workarounds (i.e. "don't do that") aren't necessarily serious problems
  687. # [16:50] * Joins: Utkarsh (~admin@117.201.80.69)
  688. # [16:50] <Philip`> but crashes in JS implementations would be much more serious because there's different expectations in the environments where they're used
  689. # [16:51] <Philip`> but I don't know which end of the scale PHP asires to
  690. # [16:51] <Philip`> *aspires
  691. # [16:51] <gsnedders> If something relies upon a deprecated option to crash, it might not matter
  692. # [16:51] <gsnedders> Otherwise, it probably does
  693. # [16:53] * Joins: Heimidal (~heimidal@c-71-237-116-77.hsd1.co.comcast.net)
  694. # [16:53] * Quits: Heimidal (~heimidal@c-71-237-116-77.hsd1.co.comcast.net) (Changing host)
  695. # [16:53] * Joins: Heimidal (~heimidal@unaffiliated/heimidal)
  696. # [16:58] * Quits: smaug (~chatzilla@cs181150024.pp.htv.fi) (Ping timeout: 245 seconds)
  697. # [17:00] <TheOutlawTorn> Did any of you made a website recently that does not support 1024 screen resolution?
  698. # [17:00] * Joins: smaug (~chatzilla@cs181150024.pp.htv.fi)
  699. # [17:01] <TabAtkins> You mean, that is too wide for 1024?
  700. # [17:02] <TheOutlawTorn> I mean that the website will look as it should only at resolution higher than 1024, probabil 1280x768
  701. # [17:02] <TabAtkins> No, I've never done so. I test my stuff at 1024.
  702. # [17:02] <TheOutlawTorn> I see.
  703. # [17:02] * Quits: maikmerten (~merten@ls5dhcp196.cs.uni-dortmund.de) (Remote host closed the connection)
  704. # [17:03] <Philip`> I only test at 1280x800, but I don't have users
  705. # [17:03] <TabAtkins> Which can be annoying sometimes, since all of my monitors are larger than 1024.
  706. # [17:03] <TabAtkins> But I've set up a resize command in Web Developer that helps out, at least.
  707. # [17:03] * Quits: Maurice (~ano@a80-101-46-164.adsl.xs4all.nl) (Quit: Disconnected...)
  708. # [17:04] <annevk> getComputedStyle ... I wish you'd die
  709. # [17:04] <annevk> lalala
  710. # [17:04] <TheOutlawTorn> I finished my website that took a lot of planning since I don't do well at designing, and yesterday when I tested it at 1024 I've discovered that it does not look as it should.
  711. # [17:04] <TabAtkins> annevk: I just... stay far away from that. I rely solely on jQuery to do my CSS parsing for me. Shrug.
  712. # [17:04] <TheOutlawTorn> I thought for a min not to support 1024 but I don't know how smart is that.
  713. # [17:05] <TabAtkins> There's still lots of people at 1024.
  714. # [17:05] <TabAtkins> So it depends on if you care about them or not.
  715. # [17:05] <TheOutlawTorn> Indeed there are.
  716. # [17:08] * Quits: mpt (~mpt@canonical/mpt) (Quit: Ex-Chat)
  717. # [17:08] <TheOutlawTorn> Better offer support if I think about it, it's just about resizing an image and displaying a different stylesheet after all.
  718. # [17:08] <TabAtkins> Use media queries!
  719. # [17:09] * Quits: dglazkov (~dglazkov@c-67-188-0-62.hsd1.ca.comcast.net) (Quit: dglazkov)
  720. # [17:09] <TheOutlawTorn> I thought of doing it with php since I don't know javascript
  721. # [17:09] <TabAtkins> Media queries are CSS, actually.
  722. # [17:09] <annevk> actually, they're not
  723. # [17:09] <TabAtkins> http://www.w3.org/TR/css3-mediaqueries/
  724. # [17:10] <TheOutlawTorn> lol
  725. # [17:10] <TabAtkins> Then why are they in a CSS spec, smartypants? ^_^
  726. # [17:10] <TheOutlawTorn> I doubt that all the users using 1024 will have a modern browser.
  727. # [17:10] * Joins: Sidnicious (~Sidney@pdpc/supporter/professional/sidney)
  728. # [17:10] <TheOutlawTorn> I bet a lot of them still use ie6
  729. # [17:10] <Philip`> Not everyone has their browser fullscreen
  730. # [17:10] <TabAtkins> Sure, but everyone hates ie6 users.
  731. # [17:11] <TheOutlawTorn> :)
  732. # [17:11] <Philip`> People on larger screens might have multiple browser windows and preferably your page should work sensibly when they make the windows smaller
  733. # [17:11] <TheOutlawTorn> I hate IE users in general.
  734. # [17:11] <Philip`> I hate users in general
  735. # [17:12] <daedb> No version of IE supports media queries.
  736. # [17:12] <TabAtkins> That's the spirit, Philip`.
  737. # [17:12] <TheOutlawTorn> I didn't thought about what you just said, I guess I still need to do some tests before I can call it finished.
  738. # [17:12] * Joins: ttepasse (~ttepasse@ip-95-222-120-117.unitymediagroup.de)
  739. # [17:13] <TheOutlawTorn> Hate is what keeps the world moving, never stop hating.
  740. # [17:15] <TabAtkins> Yay SPL again.
  741. # [17:15] * TabAtkins just wrote a useless class that lets him iterate through the fibonacci sequence.
  742. # [17:15] <TheOutlawTorn> Why?
  743. # [17:15] <TabAtkins> Just to play around.
  744. # [17:15] <TabAtkins> Using the Iterator interface.
  745. # [17:16] <TheOutlawTorn> Hm
  746. # [17:16] <gsnedders> TabAtkins: That's not SPL
  747. # [17:16] <TabAtkins> foreach(new LimitIterator(new Fib,0,20) as $fib){ echo $fib."<br>"; }
  748. # [17:16] <TabAtkins> Mang, whatever.
  749. # [17:16] <Philip`> Why not just write a function that returns it in constant time for any arbitrary index?
  750. # [17:17] <TabAtkins> Because that's silly, Philip`.
  751. # [17:17] <gsnedders> TabAtkins: http://se2.php.net/manual/en/class.iterator.php#91068
  752. # [17:17] <Philip`> It's just http://upload.wikimedia.org/math/9/6/8/968be88f42e32712cb10d89a765ce708.png and you save all the effort of iteration
  753. # [17:18] <TabAtkins> gsnedders: Yeah, I know it's a common toy. ^_^
  754. # [17:18] <gsnedders> TabAtkins: I was just playing around with infinite iterators :P
  755. # [17:19] <TabAtkins> Philip`: That looks to have relatively hefty constant factors. If I want the fib sequence starting from the beginning, iteration is cheaper.
  756. # [17:19] <TabAtkins> gsnedders: Oh, haha, didn't see that was you who made the comment.
  757. # [17:19] <gsnedders> TabAtkins: :)
  758. # [17:19] <gsnedders> TabAtkins: I have written a fair bit of PHP :)
  759. # [17:19] <TabAtkins> Yeah, I know.
  760. # [17:20] <gsnedders> ]http://github.com/gsnedders/complexpie — what I've been touching recently
  761. # [17:20] <TabAtkins> It's my main language at this point, unfortunately.
  762. # [17:20] <Philip`> TabAtkins: It's two pows and a subtraction and a division - that's going to be far cheaper than even just printing the output :-)
  763. # [17:20] * TabAtkins needs to get Lisp running on his webserver.
  764. # [17:20] <TabAtkins> Philip`: Bah!
  765. # [17:20] <Philip`> Admittedly you might get problems with the finite precision of floating point numbers
  766. # [17:21] <TabAtkins> Yeah, was just typing that it requires an accurate expansion of phi, which itself uses sqrt(5) in its definition.
  767. # [17:22] <TabAtkins> On that note: http://www.facebook.com/photo.php?pid=3458694&id=707492809&comments&alert
  768. # [17:23] <TabAtkins> (Dunno how widely viewable that is.)
  769. # [17:24] * Quits: othermaciej (~mjs@c-69-181-42-237.hsd1.ca.comcast.net) (Quit: othermaciej)
  770. # [17:26] * Quits: gavin_ (~gavin@firefox/developer/gavin) (Ping timeout: 240 seconds)
  771. # [17:28] * Joins: dglazkov (~dglazkov@2620:0:1000:1b01:21f:f3ff:fed0:dd49)
  772. # [17:30] * Quits: pesla (~retep@procurios.xs4all.nl) (Quit: ( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com ))
  773. # [17:31] * Joins: gavin_ (~gavin@firefox/developer/gavin)
  774. # [17:37] * Quits: cedricv (~cedric@116.197.248.72) (Ping timeout: 245 seconds)
  775. # [17:38] <TabAtkins> Bwahaha, the text-wrapping on my company's site means that, at the precise size that my IE window opened up at, we proclaim that we have "The World's Largest Member".
  776. # [17:38] <TabAtkins> And that size is 800x600. Glorious.
  777. # [17:38] <annevk> TabAtkins, the css3- prefix is a historical accident
  778. # [17:38] <annevk> TabAtkins, much like it is with Selectors
  779. # [17:39] <annevk> TabAtkins, anyway, ask the TAG, URIs have no meaning
  780. # [17:39] <TabAtkins> I know. ^_^ My point, though, was that it didn't have anything to do with javascript, which seemed to be TheOutlawTorn's concern.
  781. # [17:39] * Joins: dave_levin (~dave_levi@c-98-203-247-78.hsd1.wa.comcast.net)
  782. # [17:41] <TheOutlawTorn> Well anyways I think it's best to use js since that's really easy to accomplish.
  783. # [17:41] <TheOutlawTorn> And I think it would be also good to start learning js at this point.
  784. # [17:42] <TabAtkins> It is a good idea. Go learn jQuery, though. Your life will be made infinitely easier.
  785. # [17:42] <annevk> wait what?
  786. # [17:42] <annevk> js is really easy but you don't actually know it?
  787. # [17:42] <TheOutlawTorn> That is a javascript library
  788. # [17:42] <gsnedders> TabAtkins: You've never tried to debug random objects becoming undefined in jQuery obviously
  789. # [17:42] <TheOutlawTorn> annevk: I never actually wanted to learn it in the first place.
  790. # [17:43] <TabAtkins> gsnedders: No. I have never had such a problem.
  791. # [17:43] <gsnedders> TabAtkins: See, you obviously need to do more browser QA on buggy JS engines :P
  792. # [17:43] <TabAtkins> TheOutlawTorn: Yeah, I know. I mean, though, that jQuery makes javascript development infinitely easier.
  793. # [17:43] <TheOutlawTorn> Yeah, I heard..
  794. # [17:44] * Joins: sbublava (~stephan@77.118.180.46.wireless.dyn.drei.com)
  795. # [17:44] <TabAtkins> I think I need to *not* do that, gsnedders ^_^.
  796. # [17:45] <gsnedders> TabAtkins: :)
  797. # [17:47] * Quits: ttepasse (~ttepasse@ip-95-222-120-117.unitymediagroup.de) (Quit: Verlassend)
  798. # [17:47] * Joins: ttepasse (~ttepasse@ip-95-222-120-117.unitymediagroup.de)
  799. # [17:50] * Quits: svl (~chatzilla@a194-109-2-65.dmn.xs4all.nl) (Quit: And back he spurred like a madman, shrieking a curse to the sky!)
  800. # [17:51] <TabAtkins> Actually, that's a good reason to avoid joining the Chrome team fully, and instead just using them as a 20% project to implement CSS specs.
  801. # [17:51] * Quits: dave_levin (~dave_levi@c-98-203-247-78.hsd1.wa.comcast.net) (Quit: dave_levin)
  802. # [17:52] <TheOutlawTorn> ?
  803. # [17:52] <TabAtkins> That way I don't have to ever go debug random js engine things.
  804. # [17:53] * TabAtkins just got hired by Google and hasn't yet gotten to the point where he decides what team to join.
  805. # [17:54] <gsnedders> heh
  806. # [17:54] <Philip`> You should join the secret Evil team
  807. # [17:54] <TabAtkins> Hey, if they offer...
  808. # [17:55] * Quits: virtuelv (~virtuelv_@pat-tdc.opera.com) (Quit: Ex-Chat)
  809. # [17:58] * Quits: ttepasse (~ttepasse@ip-95-222-120-117.unitymediagroup.de) (Quit: Verlassend)
  810. # [17:58] <jgraham> TabAtkins: Oh, congratulations
  811. # [17:59] * Joins: ttepasse (~ttepasse@ip-95-222-120-117.unitymediagroup.de)
  812. # [17:59] <TabAtkins> Thanks, jgraham. ^_^
  813. # [17:59] <jgraham> Did you announce that already? I missed it if so
  814. # [17:59] <TabAtkins> I'd talked about it before, but I don't think many people were around then. I wasn't sure I'd be able to accept at that point.
  815. # [18:02] * Joins: Maurice (copyman@5ED548D4.cable.ziggo.nl)
  816. # [18:02] <jgraham> So you are working mainly on specs, or mainly on products?
  817. # [18:02] <TheOutlawTorn> Congratulations.
  818. # [18:03] <jgraham> (well I guess you just said you don't know)
  819. # [18:03] <TabAtkins> jgraham: My intention is to join the Open Source office with Hixie, and work on CSS specs.
  820. # [18:03] <TheOutlawTorn> They let you choose what team you wanna be a part of?
  821. # [18:03] <TabAtkins> TheOutlawTorn: Yeah, several teams pitch themselves at you, and you pick which you'd prefer to work with.
  822. # [18:04] <TheOutlawTorn> Interesting
  823. # [18:04] <TheOutlawTorn> What team has the most members?
  824. # [18:04] <TabAtkins> No clue.
  825. # [18:05] * Dashiva wonders why thunderbird thinks "received:" headers are useful to normal people
  826. # [18:05] <jgraham> TabAtkins: Nice
  827. # [18:05] <TheOutlawTorn> Where are you from? If you don't mind me asking.
  828. # [18:05] <TabAtkins> Houston
  829. # [18:05] <TheOutlawTorn> Nice.
  830. # [18:05] <jgraham> You don't fancy moving to California?
  831. # [18:05] <TabAtkins> (Since this is my real name, it's not like there's any real privacy involved. ^_^)
  832. # [18:06] <TabAtkins> Nah, we're moving next month.
  833. # [18:09] * TabAtkins wonders if there's any good way to expose depth information from his tree iterator in a foreach loop. Maybe as the key?
  834. # [18:10] <gsnedders> Tree iterator for what?
  835. # [18:11] <TabAtkins> The one that I just wrote. Iterates through a hierarchical collection of mysql rows, turning it into a RecursiveIterator suitable for passing to RecursiveIteratorIterator.
  836. # [18:11] <Philip`> TabAtkins: Set a global variable
  837. # [18:12] <Dashiva> RecursiveIteratorIterator doesn't sound like a class that should exist outside parody
  838. # [18:12] <TabAtkins> Dashiva: Heh, I know. It's kinda rediculous.
  839. # [18:13] <Dashiva> Although I've taken a MMI course where the prof had classes like SliderSliderSliderInputExample
  840. # [18:13] <TabAtkins> But it transforms a RecursiveIterator into a linear iterator, so you don't have to deal with maintaining a stack as you descend through children yourself.
  841. # [18:13] <Philip`> Does it use a RecursiveIteratorIteratorFactory?
  842. # [18:13] <TabAtkins> Luckily, no.
  843. # [18:13] * jgraham is just staring wide-mouted at the IRC channel
  844. # [18:14] <jgraham> *mouthed
  845. # [18:14] <jgraham> RecursiveIteratorIterator? Seriously?
  846. # [18:14] <TabAtkins> (I attached a static function to the class that takes the same arguments as the constructor, which just returns a RecursiveIteratorIterator so I don't have to type that myself.)
  847. # [18:14] <Dashiva> So that class implements RecursiveIteratorIteratorFactory via duck typing
  848. # [18:15] <TabAtkins> jgraham: http://php.net/manual/en/class.recursiveiteratoriterator.php
  849. # [18:16] <jgraham> I refuse to be dirtied by reading the PHP manual
  850. # [18:16] <gsnedders> jgraham: Welcome to PHP.
  851. # [18:16] <TabAtkins> Hahaha.
  852. # [18:16] <gsnedders> jgraham: Oh, come on. That's quite good by PHP standards.
  853. # [18:16] <TabAtkins> Nod. It
  854. # [18:16] <TabAtkins> It's at least consistently named.
  855. # [18:18] <Philip`> It's like they decided to copy the irritating parts of Java
  856. # [18:18] <Sidnicious> PHP: If you don't think it's built in, you haven't spent enough time reading the docs.
  857. # [18:18] <AryehGregor> Practically nothing is reliably built into PHP, that's one of the most obnoxious things about it.
  858. # [18:19] <TabAtkins> The difficulty is just in parsing it. It's (RecursiveIterator)Iterator; that is, an iterator over a recursive iterator.
  859. # [18:19] * Joins: aroben (~aroben@unaffiliated/aroben)
  860. # [18:19] <Dashiva> $fileSPLObjects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory), RecursiveIteratorIterator::CHILD_FIRST);
  861. # [18:19] <TabAtkins> Transforming a tree-like structure back into a list-like structure, so you can just hand it to the foreach() loop.
  862. # [18:19] <Dashiva> It's like I'm really using Java!
  863. # [18:19] <Philip`> I was just about to paste exactly that line :-(
  864. # [18:20] <Dashiva> Finally, I beat Philip` at something.
  865. # [18:21] * Joins: JonathanNeal (~JonathanN@rrcs-76-79-114-213.west.biz.rr.com)
  866. # [18:21] <gsnedders> Dashiva: congrats!
  867. # [18:21] <JonathanNeal> What would you guys recommend as Windows sotware to convert mp4's to ogv's?
  868. # [18:21] <Philip`> use File::Find; find(sub { print "Found $_\n"; }, $directory);
  869. # [18:22] <Dashiva> Philip`: Can you fix LWP so it uses the right content-type?
  870. # [18:22] <Philip`> What is "right"?
  871. # [18:22] <Philip`> Also, what is wrong?
  872. # [18:23] <Philip`> Do you want it to not look at <meta> or something?
  873. # [18:23] <Philip`> (That's the biggest annoyance I've encountered)
  874. # [18:23] <Dashiva> Well, partially
  875. # [18:23] <Dashiva> I want it to not look at meta if there is a HTTP header
  876. # [18:23] <Dashiva> Like HTML5 (and HTML4) says
  877. # [18:24] <Dashiva> And additionally, it looks like the most recent LWPs use the first HTTP header instead of the last
  878. # [18:24] * Joins: ap_ (~ap@17.246.19.5)
  879. # [18:24] <JonathanNeal> I was hoping to convert videos over to ogv for Firefox <video> support.
  880. # [18:26] * Joins: drunknbass_work (~aaron@cpe-76-173-195-145.socal.res.rr.com)
  881. # [18:26] * Quits: drunknbass_work (~aaron@cpe-76-173-195-145.socal.res.rr.com) (Client Quit)
  882. # [18:26] <TabAtkins> Google is unhelpful, JonathanNeal. Shrug.
  883. # [18:26] <JonathanNeal> I know, that's why I came here.
  884. # [18:26] * Joins: drunknbass_work (~aaron@cpe-76-173-195-145.socal.res.rr.com)
  885. # [18:26] <daedb> Firefogg?
  886. # [18:27] <AryehGregor> Yeah, you could use Firefogg.
  887. # [18:27] * Joins: othermaciej (~mjs@17.244.209.254)
  888. # [18:27] <AryehGregor> Results when encoding H.264 -> Theora are not going to be great, though; conversions between different types of lossy formats never are.
  889. # [18:27] <Dashiva> I remember seeing some awesometastic transcoding anything-to-anything app, but I forgot the name
  890. # [18:28] <AryehGregor> You can also use ffmpeg2theora, according to this: http://diveintohtml5.org/video.html
  891. # [18:28] * Quits: drunknbass_work (~aaron@cpe-76-173-195-145.socal.res.rr.com) (Client Quit)
  892. # [18:28] * Dashiva wonders what will happen when there's a ffmpeg2. Will there be a ffmpeg22theora?
  893. # [18:29] <JonathanNeal> haha
  894. # [18:29] <TabAtkins> This is why programming languages should stop reserving so much syntax. ffmpeg->theora is much better.
  895. # [18:29] <TabAtkins> Or the actual unicode arrow.
  896. # [18:29] <JonathanNeal> Do you guys think mp4 support is in the future of Firefox?
  897. # [18:29] * TabAtkins keeps forgetting to mod his keyboard to output the unicode arrows.
  898. # [18:30] * Quits: Phae (~phaeness@gatea.mh.bbc.co.uk)
  899. # [18:30] <AryehGregor> TabAtkins, you want to actually type a Unicode arrow when you want to invoke the program?
  900. # [18:30] <TabAtkins> YES.
  901. # [18:30] <AryehGregor> Also, ffmpeg->theora = output of command "ffmpeg-" redirected to file "theora".
  902. # [18:31] <TabAtkins> Ys, because silly languages reserve so many symbols for their syntax.
  903. # [18:31] <Dashiva> Can you put theora inside a mp4 container?
  904. # [18:31] <AryehGregor> ffmpeg→theora should be a perfectly good command name, though.
  905. # [18:31] <TabAtkins> Lisp keeps it to a minimum. ()#'`, is all.
  906. # [18:31] <AryehGregor> bash reserves everything and its brother.
  907. # [18:31] <Sidnicious> APL tried this: http://www.wickensonline.co.uk/apl/unicomp-apl-top-large.jpg
  908. # [18:31] <Dashiva> #bash-2.0# brother: reserved name
  909. # [18:32] <TabAtkins> When you're limited to ascii, at least use camelCasing.
  910. # [18:32] <TabAtkins> ffmpegToTheora
  911. # [18:32] <JonathanNeal> AryehGregor, yes if we had those arrows on our keyboards.
  912. # [18:32] <TabAtkins> I mean, english letters and numbers.
  913. # [18:32] <Dashiva> TabAtkins: That insults the design sense of people who prefer lowercasenames
  914. # [18:32] <TabAtkins> Dashiva: Those people can die in a fire.
  915. # [18:32] <Dashiva> They can, but I don't think they will
  916. # [18:32] * Joins: drunknbass_work (~aaron@cpe-76-173-195-145.socal.res.rr.com)
  917. # [18:32] <JonathanNeal> A dash never killed anyone either.
  918. # [18:32] * Quits: drunknbass_work (~aaron@cpe-76-173-195-145.socal.res.rr.com) (Client Quit)
  919. # [18:32] <AryehGregor> JonathanNeal, Ctrl+Shift+u2192, not too hard to remember.
  920. # [18:33] <Dashiva> Dash is overloaded as minus, bad story there
  921. # [18:33] <TabAtkins> JonathanNeal: Yeah it does. Stupid inline minus operator.
  922. # [18:33] <AryehGregor> TabAtkins, camel-casing is contrary to Unix conventions dating to before both of us were born.
  923. # [18:33] * TabAtkins uses dashes in all his Lisp stuff, as is appropriate Lisp style.
  924. # [18:33] <Dashiva> Unix "conventions"
  925. # [18:33] <JonathanNeal> TabAtkins, oh.
  926. # [18:33] <JonathanNeal> An underscore never hurt anyone.
  927. # [18:33] <Dashiva> That's sort of like microsoft "open standards"
  928. # [18:33] <AryehGregor> Pretty sure "foo2bar" has been well established for an awfully long time.
  929. # [18:33] <TabAtkins> AryehGregor: Those conventions are silly.
  930. # [18:33] <TabAtkins> As demonstrated by ffmpeg22theora
  931. # [18:34] <jgraham> TabAtkins: You know, sounding grumpy won't convert more people to lisp ;)
  932. # [18:34] <TabAtkins> I'm not trying to convert anyone. ^_^
  933. # [18:34] <Dashiva> So atoi should be a2i
  934. # [18:34] <AryehGregor> It would just still be called ffmpeg2theora.
  935. # [18:35] <AryehGregor> Why would you change the name of the command for a new version?
  936. # [18:35] <Dashiva> Maybe ffmpeg and ffmpeg2 aren't compatible
  937. # [18:35] <TabAtkins> What, and use flags to tell it that you're passing an old version?
  938. # [18:35] <AryehGregor> What?
  939. # [18:36] <AryehGregor> Why wouldn't the command-line syntax remain compatible across versions?
  940. # [18:36] <AryehGregor> Or at least compatible enough to give it the same name?
  941. # [18:36] <jgraham> There are lots of much sillier unix things than the naming conventions
  942. # [18:36] <TabAtkins> So then flags to tell it you're passing a new version?
  943. # [18:36] <AryehGregor> What does "passing a new version" mean?
  944. # [18:36] <jgraham> Like the total lack of a standardised way of telling what flag a program accests
  945. # [18:36] <jgraham> *accepts
  946. # [18:37] <Dashiva> I hear make is going to start supporting general whitespace before 2072
  947. # [18:37] <TabAtkins> ffmpeg versus ffmpeg2 (assuming they're incompatible for some reason)
  948. # [18:37] <AryehGregor> ffmpeg is a piece of software. You don't "pass" it, you're calling it.
  949. # [18:37] <AryehGregor> jgraham, you mean --help isn't good enough? That's not *quite* universal, I'll grant, but it works pretty reliably.
  950. # [18:37] <TabAtkins> Gah, pedantry. You know what I mean.
  951. # [18:37] <Dashiva> AryehGregor: Except when it's only -h
  952. # [18:37] * Quits: Sidnicious (~Sidney@pdpc/supporter/professional/sidney) (Quit: Sidnicious)
  953. # [18:38] <AryehGregor> TabAtkins, no I don't. I have no idea what you're talking about. Why would you even have the old version installed alongside the new version? If you do, you can use the full path, weirdo.
  954. # [18:38] <jgraham> AryehGregor: That's not enough for e.g. command line completionto work without insane hacks
  955. # [18:38] <AryehGregor> Dashiva, yes, but then usually it says "unrecognized option -" and prints a usage summary anyway.
  956. # [18:38] <AryehGregor> jgraham, programs can provide custom command-line completion if they want, there's a standard way to do that.
  957. # [18:38] <Dashiva> Unless it's a helpful program that ignores unrecognized flags
  958. # [18:38] <AryehGregor> apt-get inst<Tab> -> apt-get install
  959. # [18:39] <AryehGregor> Dashiva, yes, there are a few of those, and they should die in fire.
  960. # [18:39] <Dashiva> -v is also a popular flag to overload
  961. # [18:39] <AryehGregor> Everyone on Linux should follow the GNU command-line argument conventions, period.
  962. # [18:39] <jgraham> AryehGregor: [citation needed]
  963. # [18:40] <Dashiva> AryehGregor: So linux should be incompatible with other *nixes?
  964. # [18:40] <AryehGregor> jgraham, typing "apt-get inst<Tab>" on stock Ubuntu isn't good enough evidence for you?
  965. # [18:40] <jgraham> I was under the impression that those completions were hardcoded in shell-specific scripts
  966. # [18:40] <AryehGregor> Dashiva, no, they should use the same conventions too.
  967. # [18:40] <AryehGregor> jgraham, shell-specific, maybe. I don't know.
  968. # [18:41] <jgraham> Not that the shell could parse out the command line options from the binary somehow
  969. # [18:41] <AryehGregor> Well, obviously not, but there's a format that you can use to achieve the same effect.
  970. # [18:41] <AryehGregor> Often you want more complicated autocompletion anyway.
  971. # [18:41] <jgraham> AryehGregor: This is roughly my definition of "insane hacks"
  972. # [18:41] <AryehGregor> E.g., only autocomplete to files that exist *and* make sense for the command.
  973. # [18:42] <AryehGregor> Your way isn't flexible enough, you need to support scripted autocomplete to get full functionality anyway.
  974. # [18:42] <Dashiva> jgraham: Surely metadata never becomes out of sync with the binaries
  975. # [18:42] <AryehGregor> Dashiva, pretty rarely, when you use package managers.
  976. # [18:43] <Dashiva> Because the people in charge of packages never make mistakes
  977. # [18:43] <AryehGregor> No, but you're inventing unreasonable hypotheticals at this point instead of pointing out real-world problems.
  978. # [18:43] <jgraham> less /etc/bash_completion looks kinda crazy
  979. # [18:43] <AryehGregor> I guess the completion rules are bash-specific.
  980. # [18:44] <AryehGregor> If so, that's kind of lame.
  981. # [18:44] <AryehGregor> Wait a minute, these autocomplete rules are all stored in one big file?
  982. # [18:44] <AryehGregor> Ah, there's also bash_completion.d/.
  983. # [18:45] <AryehGregor> That's a perfectly good Unix-style convention: implement potentially complicated functionality using a shell script you include with your program.
  984. # [18:45] <AryehGregor> I don't see a better proposal from you that's as flexible.
  985. # [18:46] <jgraham> Embed the same information in the binary in a format that can be parsed out
  986. # [18:46] <AryehGregor> Why?
  987. # [18:46] <AryehGregor> You'd have to use a scripting language anyway.
  988. # [18:46] <Dashiva> Looks like a lot of hardcoding inside bash_completion...
  989. # [18:47] <AryehGregor> Dashiva, some core programs seem to be there, /etc/bash_completion.d/ lets other programs add their own stuff, in typical Unix (or at least Linux) fashion.
  990. # [18:47] <Dashiva> freeamp is a core program?
  991. # [18:48] <AryehGregor> Hmm. Suppose not.
  992. # [18:48] <Dashiva> Heh, acroread is there. I guess they're anticipating installs :)
  993. # [18:48] <AryehGregor> I guess it's easier to stick it there than have a whole new file.
  994. # [18:48] * Joins: maikmerten (~maikmerte@port-92-201-98-142.dynamic.qsc.de)
  995. # [18:49] <TabAtkins> Yay, it was trivial to hack a depth tracker into the SQLTree class, and just return it as the key of each value.
  996. # [18:50] * Joins: KevinMarks (~KevinMark@157.22.22.46)
  997. # [18:50] * Joins: dave_levin (~dave_levi@2620:0:1008:1101:225:ff:fef0:9a9e)
  998. # [18:51] * Quits: Lachy (~Lachlan@pat.se.opera.com) (Quit: This computer has gone to sleep)
  999. # [18:56] * Quits: pmuellr (~pmuellr@nat/ibm/x-bjvdmynbnpkldprg) (Read error: Connection reset by peer)
  1000. # [18:59] * Joins: GarethAdams|Home (~GarethAda@pdpc/supporter/active/GarethAdams)
  1001. # [18:59] <Philip`> Dashiva: ffmpeg has only done about one release in its entire history, and that was version 0.5, so I think we've got plenty of time before worrying about version 2
  1002. # [19:04] * Quits: GarethAdams|Home (~GarethAda@pdpc/supporter/active/GarethAdams) (Quit: GarethAdams|Home)
  1003. # [19:05] * Joins: pmuellr (~pmuellr@nat/ibm/x-sboynfdrybqzvofl)
  1004. # [19:06] * Quits: othermaciej (~mjs@17.244.209.254) (Quit: othermaciej)
  1005. # [19:09] <hober> It's nice to read something about how people *like* Hixie's spec-writing style for a change: http://bitworking.org/news/2010/02/joel-in-a-box
  1006. # [19:11] <gsnedders> RFC 5023 is APP, right?
  1007. # [19:12] <Philip`> Google says yes
  1008. # [19:12] * gsnedders sighs at the sheer number of RFCs he knows the numbers for
  1009. # [19:14] * Joins: svl (~me@ip565744a7.direct-adsl.nl)
  1010. # [19:14] <gsnedders> TabAtkins: http://github.com/gsnedders/complexpie/blob/master/src/cachearray.php — fun with PHP!
  1011. # [19:15] <gsnedders> (complete with my own very naïve GC impl within PHP!)
  1012. # [19:15] <TabAtkins> Yay!
  1013. # [19:15] * Quits: TheOutlawTorn (~TheOutlaw@unaffiliated/theoutlawtorn) (Quit: ChatZilla 0.9.86 [Firefox 3.6/20100115144158])
  1014. # [19:16] <gsnedders> (basically for static variable caches within functions to avoid computing stuff all the time, and with GC to stop it from growing to really large amounts of memory)
  1015. # [19:16] <gsnedders> (the GC is really too naive though, I expect, but it gets pretty good cache hit rates)
  1016. # [19:17] <gsnedders> (compared with having no GC whatsoever)
  1017. # [19:18] <gsnedders> (there again, for it to be worthwhile to still have the cache, the GC needs to be really cheap)
  1018. # [19:18] * Quits: ttepasse (~ttepasse@ip-95-222-120-117.unitymediagroup.de) (Quit: Verlassend)
  1019. # [19:19] <TabAtkins> Ah, so a helper for manually implementing memoization. Cool.
  1020. # [19:19] * Joins: othermaciej (~mjs@17.246.19.234)
  1021. # [19:21] <Philip`> How does that actually cache anything?
  1022. # [19:21] <Philip`> It looks like it's deferring to the parent all the time, and never returning anything from a cache
  1023. # [19:21] * Parts: adactio (~adactio@host213-123-197-180.in-addr.btopenworld.com)
  1024. # [19:22] <TabAtkins> It's an ArrayObject, which has an internal array backing.
  1025. # [19:22] <TabAtkins> And uses parent::offsetGet and parent::offsetSet to actually do the storing/retrieving.
  1026. # [19:22] <gsnedders> TabAtkins: Yeah, basically
  1027. # [19:22] <TabAtkins> It just wraps gc around it.
  1028. # [19:23] * Quits: aroben (~aroben@unaffiliated/aroben) (Read error: Connection reset by peer)
  1029. # [19:23] <Philip`> Hmm, so this code isn't actually caching anything, it's more of a SelfCleaningArray?
  1030. # [19:23] <gsnedders> TabAtkins: Indeed, and offsetExists is deliberately not overridden to keep it quicker
  1031. # [19:23] <gsnedders> Philip`: yeah
  1032. # [19:23] <TabAtkins> It's meant for *other* things to use it for caching.
  1033. # [19:23] <gsnedders> http://github.com/gsnedders/complexpie/blob/master/src/iri.php#L788
  1034. # [19:23] <gsnedders> for example
  1035. # [19:24] <TabAtkins> function foo(){ static $cache = new CacheArray; }
  1036. # [19:24] <gsnedders> (it turns out doing IRI processing is amazingly expensive)
  1037. # [19:24] <gsnedders> TabAtkins: That's invalid syntax, you can't set a new object like that
  1038. # [19:24] <TabAtkins> Sure you can.
  1039. # [19:24] * Joins: jgornick (~joe@199.199.210.66)
  1040. # [19:25] <TabAtkins> As long as your constructor can be called with no args.
  1041. # [19:25] * Quits: onar (~onar@2620:0:1b00:16f2:21f:5bff:fe3e:944) (Remote host closed the connection)
  1042. # [19:25] * Joins: onar (~onar@2620:0:1b00:16f2:21f:5bff:fe3e:944)
  1043. # [19:26] <TabAtkins> Frex, I use foreach(new UserList as $user){} all over my code.
  1044. # [19:26] <gsnedders> TabAtkins: Parse error: syntax error, unexpected T_NEW
  1045. # [19:26] <gsnedders> TabAtkins: That's totally different
  1046. # [19:26] <gsnedders> TabAtkins: It's the fact it's on the RHS of a static dfn
  1047. # [19:26] * Joins: GarethAdams|Home (~GarethAda@pdpc/supporter/active/GarethAdams)
  1048. # [19:27] <Philip`> Seems like a weird cache eviction policy
  1049. # [19:27] * Joins: aroben (~aroben@unaffiliated/aroben)
  1050. # [19:27] <Philip`> If you access "x" 100 times, then "y" once, then "x" 99 times, it will throw away "x" and keep "y"?
  1051. # [19:27] <gsnedders> TabAtkins: http://pastebin.ca/1791616
  1052. # [19:27] * Quits: aroben (~aroben@unaffiliated/aroben) (Read error: Connection reset by peer)
  1053. # [19:27] <gsnedders> Philip`: I said naïve for a reason
  1054. # [19:28] <Philip`> Naive is different to stupid ;-)
  1055. # [19:28] <gsnedders> patches welcome :)
  1056. # [19:28] <gsnedders> (provided they don't make the getter in the general case more expensive)
  1057. # [19:28] <TabAtkins> Ah, is that something special just for static vars?
  1058. # [19:29] <gsnedders> TabAtkins: static and global, IIRC
  1059. # [19:29] <gsnedders> TabAtkins: It's a property of the keywords
  1060. # [19:29] <TabAtkins> How weird.
  1061. # [19:29] <gsnedders> TabAtkins: Same applies for public $foo = 'bar'; in a class dfn
  1062. # [19:29] <Philip`> LRU would probably the most common arguably-naive algorithm, I guess
  1063. # [19:29] <TabAtkins> Okay, well, I use static vars very rarely.
  1064. # [19:30] * Joins: aroben (~aroben@unaffiliated/aroben)
  1065. # [19:30] <gsnedders> Philip`: The aim was more some fairly basic LFU
  1066. # [19:31] <gsnedders> With a really bad LFU-aging impl
  1067. # [19:32] * Quits: mat_t (~mattomasz@91.189.88.12) (Write error: Broken pipe)
  1068. # [19:33] <TabAtkins> You could perhaps drop $oldaccess, and just determine what to drop based on $access.
  1069. # [19:33] <TabAtkins> Perhaps just array_slice($access,0,80) to allow young accesses to stick around.
  1070. # [19:33] <gsnedders> I could just move over to LRU, but I don't think that's very good for what I need
  1071. # [19:34] <gsnedders> e.g., given parsing a URL like '/', it may in general come up a lot, but in one file I get a thousand unqiue other items. I don't want to push that out of the cache
  1072. # [19:34] * Quits: sbublava (~stephan@77.118.180.46.wireless.dyn.drei.com) (Quit: sbublava)
  1073. # [19:35] <gsnedders> There's a very long tail for this from the data set I was testing with, so caching that tail doesn't gain much
  1074. # [19:35] <gsnedders> What is important is you get the high priority things
  1075. # [19:35] <gsnedders> Which is why I really want some sort of LFU impl
  1076. # [19:35] <Philip`> If it comes up a lot, it will always be recently used, and you'd only push it out of the cache for the duration of that one file where it's not used
  1077. # [19:35] <TabAtkins> Okay, then just cut things based on array_count_values(
  1078. # [19:35] <TabAtkins> $access)
  1079. # [19:35] * Joins: Lachy (~Lachlan@london.perfect-privacy.com)
  1080. # [19:35] * Quits: gavin_ (~gavin@firefox/developer/gavin) (Ping timeout: 252 seconds)
  1081. # [19:36] <Philip`> Things that are used frequently are used recently
  1082. # [19:36] <gsnedders> Philip`: It's a question of whether I want to push it out for that one file, whether I gain anything by losing that cache
  1083. # [19:36] <Philip`> Also, RAM is cheap so make the cache much bigger :-)
  1084. # [19:36] <gsnedders> Philip`: PHP often runs with small memory limits
  1085. # [19:37] <Philip`> I suppose PHP isn't clever enough to have weak references
  1086. # [19:37] <gsnedders> It isn't, sadly.
  1087. # [19:37] <Philip`> Does it throw an exception when you run out of memory, or just crash?
  1088. # [19:37] <TabAtkins> Exception, usually.
  1089. # [19:37] <TabAtkins> Sometimes just a crash.
  1090. # [19:37] <gsnedders> Throws E_ERROR, a non-catchable error.
  1091. # [19:37] <Philip`> That's not so helpful
  1092. # [19:38] <gsnedders> Indeed. The only option for keeping caches within a sane size is something like this.
  1093. # [19:39] * gsnedders does still use an unbound (direct associative array) cache in one place, but where it grows to a certain size and stops growing due to the nature of the cache
  1094. # [19:39] <gsnedders> (and where any indirection to another PHP function call is too expensive to be worthwhile even having the cache)
  1095. # [19:40] * Joins: gavin_ (~gavin@firefox/developer/gavin)
  1096. # [19:43] * Joins: drunknbass_work (~aaron@pool-71-106-110-90.lsanca.dsl-w.verizon.net)
  1097. # [19:45] * Quits: mhausenblas (~mhausenbl@wg1-nat.fwgal01.deri.ie) (Quit: mhausenblas)
  1098. # [19:46] * Joins: wycats (~yehudakat@enginey-9.border1.sfo002.pnap.net)
  1099. # [19:47] * Joins: jwalden (~waldo@c-98-248-40-206.hsd1.ca.comcast.net)
  1100. # [19:57] * Quits: Lachy (~Lachlan@london.perfect-privacy.com) (Quit: Leaving)
  1101. # [20:03] * Joins: franksalim (~frank@adsl-75-61-86-190.dsl.pltn13.sbcglobal.net)
  1102. # [20:05] * Joins: cying (~cying@70.90.171.153)
  1103. # [20:07] <jgraham> You know you have been using computers in general, and irc in particular, too long when you can't remember what normal people say when they mean "ping"
  1104. # [20:08] <AryehGregor> Normal people say "ping"? Other than as part of "ping-pong"?
  1105. # [20:08] <jgraham> No, they don't, that's the point
  1106. # [20:08] <AryehGregor> Oh.
  1107. # [20:08] <AryehGregor> So, uh, how can they mean anything when they say it, if they don't say it?
  1108. # [20:08] <othermaciej> "hello"
  1109. # [20:09] <gsnedders> AryehGregor: It's the noise you get when the touch a glass in a certain way!
  1110. # [20:09] <othermaciej> AryehGregor: "say when they mean", not "mean when they say"
  1111. # [20:09] * Quits: onar (~onar@2620:0:1b00:16f2:21f:5bff:fe3e:944) (Remote host closed the connection)
  1112. # [20:09] <jgraham> They don't say it. But they say things with similar meanings
  1113. # [20:09] <AryehGregor> Oh, I see.
  1114. # [20:09] <wycats> question: why does CORS not support unfettered HTTP requests in non-credentialed mode?
  1115. # [20:09] * Joins: onar (~onar@2620:0:1b00:16f2:21f:5bff:fe3e:944)
  1116. # [20:09] <AryehGregor> I misread.
  1117. # [20:09] <othermaciej> i.e. instead of saying "ping" to get someone's attention, face-to-face or over the phone the standard protocol is to say "hi" or "hello"
  1118. # [20:10] <AryehGregor> I suppose they say "Excuse me" or "Are you there" or such?
  1119. # [20:10] <othermaciej> people who are not geeks probably say "are you there" or "ayt" over IM-type communication channels
  1120. # [20:10] <jgraham> In context the word I needed was really "remind"
  1121. # [20:11] <jgraham> (but that doesn't make sense in general)
  1122. # [20:11] <AryehGregor> Ah, like as a transitive verb.
  1123. # [20:11] <othermaciej> oh, as in "can you ping her about that"
  1124. # [20:11] <jgraham> Yes
  1125. # [20:12] * Joins: Lachy (~Lachlan@london.perfect-privacy.com)
  1126. # [20:16] * Quits: erlehmann (~erlehmann@82.113.121.136) (Quit: Ex-Chat)
  1127. # [20:19] * Joins: Rik` (~Rik`@pha75-2-81-57-187-57.fbx.proxad.net)
  1128. # [20:25] * Joins: gratz|home (~gratz@cpc3-brig15-2-0-cust237.3-3.cable.virginmedia.com)
  1129. # [20:46] <hsivonen> oh great. HTML5 parsing seems to make tests from the W3C DOM Level 1 test suite fail
  1130. # [20:46] <hsivonen> oops
  1131. # [20:46] <hsivonen> the test had been modified from the W3C original based on an old snapshot of HTML5
  1132. # [20:46] <hsivonen> now I need to change it back
  1133. # [20:53] * Quits: zcorpan (~zcorpan@90-224-190-71-no135.tbcn.telia.com) (Ping timeout: 265 seconds)
  1134. # [21:04] * Joins: virtuelv (~virtuelv_@162.179.251.212.customer.cdi.no)
  1135. # [21:08] <wycats> so why does uncredentialled CORS still require approval to make the request?
  1136. # [21:08] * Joins: MikeSmithX (~MikeSmith@EM114-48-22-85.pool.e-mobile.ne.jp)
  1137. # [21:09] <Philip`> To stop pages from arbitrarily reconfiguring the user's router on http://192.168.0.1, perhaps?
  1138. # [21:09] <othermaciej> wycats: for "simple requests" it doesn't require approval to make the request, just to read the results
  1139. # [21:09] * Philip` may be misunderstanding the question
  1140. # [21:10] <othermaciej> for non-simple requests, there is at least the risk of exposing servers behind firewalls to CSRF (beyond what is possible with cross-site form submission)
  1141. # [21:12] * Quits: MikeSmith (~MikeSmith@EM114-49-145-115.pool.e-mobile.ne.jp) (Ping timeout: 252 seconds)
  1142. # [21:14] <wycats> othermaciej: why is approval required to read the requests?
  1143. # [21:14] <wycats> without credentials == no CSRF, no?
  1144. # [21:14] <wycats> othermaciej: I'm curious why there's no "safe" API to make an HTTP request that doesn't expose any security issues
  1145. # [21:14] * Joins: cpearce (~cpearce@203-97-204-82.dsl.clear.net.nz)
  1146. # [21:15] <othermaciej> wycats: you can't use CSRF to read a resource served from another server, whether with or without credentials
  1147. # [21:15] <othermaciej> wycats: in intranets, there are servers where the only "credential" required to access them is being behind the firewall, which is a credential XHR can't remove
  1148. # [21:16] <wycats> othermaciej: isn't this something UAs can handle?
  1149. # [21:16] <wycats> and behind the firewall people can lock down the credential?
  1150. # [21:17] <wycats> othermaciej: in practice, this means that I can't use certain public APIs until people get around to supporting CORS :/
  1151. # [21:17] <othermaciej> wycats: what I'm saying is, there's servers behind firewalls containing confidential information that require no explicit credential to access
  1152. # [21:17] <othermaciej> their only protection is being behind a firewall
  1153. # [21:17] <wycats> othermaciej: right... and people can already get that info by installing a native app
  1154. # [21:17] <wycats> the way around that is permissions
  1155. # [21:18] <wycats> so UAs can allow the "corporate security" to disallow access
  1156. # [21:18] <othermaciej> wycats: browsing to a web page in your browser should not be equivalent to installing a native app
  1157. # [21:18] <wycats> of course not
  1158. # [21:18] <wycats> but making an HTTP GET request is a reasonable thing to be able to do
  1159. # [21:18] <wycats> in the vast majority of cases
  1160. # [21:19] <othermaciej> and indeed the spec lets you make such a request, just not read the result unless the server opts in
  1161. # [21:20] <wycats> othermaciej: in general, getting the results of an HTTP request is not considered a secure transaction
  1162. # [21:21] * Quits: smaug_ (~chatzilla@cs181150024.pp.htv.fi) (Quit: ChatZilla 0.9.86 [Firefox 3.7a1pre/20100203110813])
  1163. # [21:21] <othermaciej> browsers enforce the same-origin security model and therefore have created the expectation that it is, in the browser context
  1164. # [21:23] <wycats> brb
  1165. # [21:26] * Quits: roc (~roc@121-72-164-122.dsl.telstraclear.net) (Quit: roc)
  1166. # [21:26] * Joins: zcorpan (~zcorpan@c-ca9be355.410-6-64736c14.cust.bredbandsbolaget.se)
  1167. # [21:38] * Quits: maikmerten (~maikmerte@port-92-201-98-142.dynamic.qsc.de) (Remote host closed the connection)
  1168. # [21:42] * miketaylr is now known as miketaylrswift
  1169. # [21:43] * Joins: nessy (~Adium@124-168-170-167.dyn.iinet.net.au)
  1170. # [21:44] * Quits: gavin_ (~gavin@firefox/developer/gavin) (Ping timeout: 258 seconds)
  1171. # [21:47] * Quits: zcorpan (~zcorpan@c-ca9be355.410-6-64736c14.cust.bredbandsbolaget.se) (Remote host closed the connection)
  1172. # [21:48] * Joins: zcorpan (~zcorpan@c-ca9be355.410-6-64736c14.cust.bredbandsbolaget.se)
  1173. # [21:48] * Joins: ojan (~ojan@2620:0:1002:1002:225:ff:feef:1010)
  1174. # [21:48] * peol is now known as peoleary
  1175. # [21:48] * Joins: gavin_ (~gavin@firefox/developer/gavin)
  1176. # [21:49] * Quits: surkov_ (~surkov@client-72-70.sibtele.com) (Quit: surkov_)
  1177. # [21:56] <zcorpan> TabAtkins: congrats
  1178. # [21:56] <TabAtkins> Thanks, zcorpan.
  1179. # [21:58] * peoleary is now known as peol
  1180. # [21:58] * Joins: mat_t (~mattomasz@ppp-3-229.leed-b-2.access.uk.tiscali.com)
  1181. # [21:58] * Quits: mat_t (~mattomasz@ppp-3-229.leed-b-2.access.uk.tiscali.com) (Remote host closed the connection)
  1182. # [22:01] * Joins: TheOutlawTorn (~TheOutlaw@unaffiliated/theoutlawtorn)
  1183. # [22:02] <TheOutlawTorn> Hello
  1184. # [22:02] * Quits: beilabs (~beilabs@ppp121-44-120-55.lns20.syd6.internode.on.net) (Quit: Leaving)
  1185. # [22:07] * Quits: ROBOd (~robod@89.122.216.38) (Quit: http://www.robodesign.ro)
  1186. # [22:08] * Joins: roc (~roc@203-97-204-82.dsl.clear.net.nz)
  1187. # [22:21] <wycats> othermaciej: back
  1188. # [22:22] * Joins: jianli (~jianli@74.125.59.73)
  1189. # [22:28] * Quits: pmuellr (~pmuellr@nat/ibm/x-sboynfdrybqzvofl) (Quit: pmuellr)
  1190. # [22:38] * Joins: workmad3 (~workmad3@cpc3-bagu10-0-0-cust651.1-3.cable.virginmedia.com)
  1191. # [22:47] * Quits: zcorpan (~zcorpan@c-ca9be355.410-6-64736c14.cust.bredbandsbolaget.se) (Remote host closed the connection)
  1192. # [22:48] * Joins: zcorpan (~zcorpan@c-ca9be355.410-6-64736c14.cust.bredbandsbolaget.se)
  1193. # [22:50] <zcorpan> why can't css transitions transition to height:auto
  1194. # [22:50] <zcorpan> how are submenus or <details> supposed to have a nice animation with height:auto?
  1195. # [22:51] <othermaciej> CSS transitions should totally transition to (and from) height: auto
  1196. # [22:52] <othermaciej> I think it does not work right now because it would have to do an extra layout at the end state to figure out how to animate
  1197. # [22:52] <othermaciej> or something
  1198. # [22:52] <othermaciej> I'm wondering if I can figure out another way to implement <details> nicely w/ mostly just CSS
  1199. # [22:53] <zcorpan> webkit animates to height:0 and then snaps over to auto
  1200. # [22:53] <zcorpan> opera doesn't animate at all
  1201. # [22:53] <wycats> zcorpan: sounds like an impl bug
  1202. # [22:53] <othermaciej> I think the spec actually doesn't define animating to/from auto
  1203. # [22:54] <othermaciej> so it is also a spec bug
  1204. # [22:54] <wycats> othermaciej: is the issue you referred to earlier about behind the firewall the same issue with JSONRequest?
  1205. # [22:54] <othermaciej> (or really conscious spec design limitation)
  1206. # [22:54] <wycats> one option of course would be to try to calculate it yourself
  1207. # [22:54] <othermaciej> wycats: there is some of that issue with JSONRequest, though JS content can to some extent be read cross-site already since there is no same-origin limit on embedding scripts via <script>
  1208. # [22:54] <wycats> might work in many cases
  1209. # [22:55] <othermaciej> yes, you could get the actual height, and animate from that to 0
  1210. # [22:55] <wycats> othermaciej: right but you can't actually SEE the data with the exception of the __defineSetter__ hole
  1211. # [22:55] <othermaciej> going the other way might be trickier (may need an extra layout)
  1212. # [22:55] * Quits: Michelangelo (~Michelang@93-42-110-105.ip86.fastwebnet.it) (Remote host closed the connection)
  1213. # [22:56] <othermaciej> wycats: there have been other holes (mostly closed now I think)
  1214. # [22:56] <othermaciej> but I do think JSONRequest is not a great security design
  1215. # [22:57] <wycats> othermaciej: agree 100%
  1216. # [22:57] <wycats> I'm just frustrated by having to get people to agree to open up CORS
  1217. # [22:57] <wycats> thinking about adding an easy way to do it to Rails
  1218. # [22:57] <othermaciej> wycats: are you having trouble persuading people?
  1219. # [22:57] <wycats> class MyController; cors_friendly; end
  1220. # [22:57] <othermaciej> it would be nice for frameworks to give an easy way to do it
  1221. # [22:57] <wycats> othermaciej: there are two issues: (1) the security implications are not obvious, so people want to research; (2) it's never a high priority
  1222. # [22:58] <othermaciej> you may want to give the option of allowing access to anyone or to a whitelist, and whether to allow credentials or not
  1223. # [22:58] <wycats> othermaciej: I work with the 37 signals guys and they say "cool" to adding CORS to their Campfire API but it's not on their list
  1224. # [22:58] <zcorpan> working around the height:auto limitation with script gets really ugly
  1225. # [22:58] <wycats> othermaciej: yeah
  1226. # [22:58] <wycats> othermaciej: Rails tends to go with 90% case first and then refine to other cases
  1227. # [22:58] <wycats> instead of trying to preplan everything... but some additional config wouldn't be bad
  1228. # [22:58] <othermaciej> so you're thinking the 90% case is fully public data source that takes no credentials and is open to everyone?
  1229. # [23:00] <wycats> othermaciej: the 90% case I think takes credentials via an API token
  1230. # [23:00] <wycats> or basic auth
  1231. # [23:00] <wycats> more likely an API token
  1232. # [23:00] <othermaciej> depends on what kind of credentials you have in mind
  1233. # [23:00] <othermaciej> if it's a resource that is somehow per-user, people may want to use cookies
  1234. # [23:01] <wycats> othermaciej: that's not a common case
  1235. # [23:01] <wycats> the common case is you have an API that is available from Ruby or Java or something
  1236. # [23:01] <wycats> via HTTP
  1237. # [23:01] <wycats> and you want to open it up for web access
  1238. # [23:01] <othermaciej> if for example GMail wanted to offer a contacts service as a data API
  1239. # [23:01] <wycats> othermaciej: I'd consider that the 10% case
  1240. # [23:01] <wycats> Gmail has smart engineers
  1241. # [23:01] <othermaciej> or flickr wanted a photostream data API
  1242. # [23:01] <wycats> and we can converge on that case if it gets common
  1243. # [23:02] <wycats> othermaciej: why wouldn't an API token work for that case?
  1244. # [23:02] <othermaciej> wycats: how does an API token tell you which flickr user is logged into the browser?
  1245. # [23:02] <othermaciej> is the token per-user or is it an "app key"?
  1246. # [23:03] <othermaciej> if it's per-app, then if you ship it down to the client anyone can rip it from your client-side code
  1247. # [23:03] <othermaciej> if it's per user, then you need a server-to-server communication to do setup per-user
  1248. # [23:03] <wycats> othermaciej: nah it'd be stored in local storage
  1249. # [23:03] <wycats> the user would type in their un/pw, and a call would be made to get the token
  1250. # [23:03] <othermaciej> a call to who?
  1251. # [23:03] <wycats> a fully open CORS service
  1252. # [23:04] <othermaciej> you sure don't want the user typing their site A password into site B
  1253. # [23:04] <wycats> ha
  1254. # [23:04] <wycats> see: the internet :P
  1255. # [23:04] <othermaciej> the whole point of CORS is to avoid brokenness like that
  1256. # [23:04] <wycats> but yeah
  1257. # [23:04] <wycats> othermaciej: seems basic auth would work
  1258. # [23:05] <wycats> othermaciej: I was being snarky -- I of course realize that's bad
  1259. # [23:05] <othermaciej> basic auth over CORS requires the same level of opt-in as cookies, so you may as well use cookies since that is probably what the service already uses for normal login
  1260. # [23:05] <wycats> othermaciej: hmmm
  1261. # [23:06] <wycats> so why wouldn't the default just be "allow cookies"?
  1262. # [23:06] <wycats> in the non-preflight case we don't even need to do anything
  1263. # [23:06] <othermaciej> well it's pretty easy for a server to opt into cookies
  1264. # [23:06] <wycats> in the preflight case it seems "yes" is the right default
  1265. # [23:06] <wycats> othermaciej: yeah I've read the spec
  1266. # [23:06] <othermaciej> all it has to do is add Access-Control-Allow-Cookies: true
  1267. # [23:06] <wycats> othermaciej: I know
  1268. # [23:07] <wycats> othermaciej: it seems the make_cors_friendly should do that by default
  1269. # [23:07] <wycats> othermaciej: I understand how the spec works, I'm thinking through the 90% case here
  1270. # [23:07] <othermaciej> seems fine for a framework to make it the default if that is well-documented and well-understood
  1271. # [23:07] <wycats> (you are being very helpful, thank you)
  1272. # [23:07] <wycats> othermaciej: make_cors_friendly :cookies => false
  1273. # [23:07] <wycats> would be the opt-out
  1274. # [23:08] <wycats> obviously that would not be the method name
  1275. # [23:08] <wycats> :p
  1276. # [23:08] <wycats> probably something more like allow_cross_origin_requests
  1277. # [23:08] <wycats> othermaciej: and could be implemented as Rack middleware, although you'd probably want finer control than that offered
  1278. # [23:08] * Joins: ttepasse (~ttepasse@dslb-084-060-055-116.pools.arcor-ip.net)
  1279. # [23:10] * Quits: miketaylrswift (~miketaylr@38.117.156.163) (Remote host closed the connection)
  1280. # [23:13] <wycats> othermaciej: what is the one-sentence answer to "I need to explore the security considerations"
  1281. # [23:14] <othermaciej> wycats: I don't know if there is one - depends on the context
  1282. # [23:15] <othermaciej> wycats: if it's a fully public data service that's not per-user and would work without cookies, you could say "other sites can already do this by routing requests bak through their own servers"
  1283. # [23:15] <othermaciej> *back
  1284. # [23:17] <wycats> lemme look at how conceptually campfire works
  1285. # [23:17] <wycats> othermaciej: why is it considered verboten to type un/pw into "some random web app" but not in "some random native iphone app"?
  1286. # [23:17] <wycats> expectation discrepancy?
  1287. # [23:19] * Quits: ChrisLTD|Work (~blahness@152.2.194.196) (Quit: ChrisLTD|Work)
  1288. # [23:21] <wycats> "When you're using the API, it's always through an existing user in Campfire. There's no special API user. So when you use the API as "david", you get to see and work with what "david" is allowed to. Authenticating is done with an authentication token, which you'll find on the "Edit my Campfire account" screen in Campfire (click the "Reveal authentication token for API" link).
  1289. # [23:21] <wycats> When using the authentication token, you don't need a separate password. But since Campfire uses HTTP Basic Authentication, and lots of implementations assume that you want to have a password, it's often easier just to pass in a dummy password, like X."
  1290. # [23:21] <wycats> I think this is pretty representative
  1291. # [23:23] * Quits: danbri (~danbri@unaffiliated/danbri) (Remote host closed the connection)
  1292. # [23:33] * Quits: svl (~me@ip565744a7.direct-adsl.nl) (Quit: And back he spurred like a madman, shrieking a curse to the sky.)
  1293. # [23:37] * Quits: jgornick (~joe@199.199.210.66) (Quit: jgornick)
  1294. # [23:39] * Joins: til (~til@75.141.192.2)
  1295. # [23:40] <til> i'm serializing some objects to XML, and trying to decide how to serialize the booleans
  1296. # [23:40] <TabAtkins> zcorpan: Are you going to ping www-style about the "animating to auto" thing?
  1297. # [23:40] <TabAtkins> til: true/false?
  1298. # [23:40] <til> i know that you guys consider a boolean to be true if the key is included and false if its omitted
  1299. # [23:40] <til> is this a feature of xml, or a quirk of html?
  1300. # [23:41] <TabAtkins> Ah, that. That's how HTML works. A general XML language can define booleans however they want.
  1301. # [23:41] <til> TabAtkins: i'm wondering whether to represent @mirror as <… mirror = 'true' />
  1302. # [23:41] <til> TabAtkins: i thought so
  1303. # [23:41] <til> thanks
  1304. # [23:42] * Quits: Maurice (copyman@5ED548D4.cable.ziggo.nl)
  1305. # [23:44] * Parts: til (~til@75.141.192.2)
  1306. # [23:51] <zcorpan> TabAtkins: not tonight
  1307. # [23:51] <TabAtkins> Eventually, or you want me to do it?
  1308. # [23:52] <zcorpan> you can do it if you want
  1309. # Session Close: Wed Feb 10 00:00:01 2010

The end :)