/irc-logs / freenode / #whatwg / 2008-06-29 / end

Options:

  1. # Session Start: Sun Jun 29 00:00:00 2008
  2. # Session Ident: #whatwg
  3. # [00:08] * Joins: gsnedders (n=gsnedder@host217-44-35-200.range217-44.btcentralplus.com)
  4. # [00:10] <gsnedders> Philip`, jgraham: You want to meet up next Monday (20080707), or not?
  5. # [00:15] <tusho> Hmm.
  6. # [00:15] <tusho> Why can't I style 'article' in Firefox3, I wonder...
  7. # [00:15] <tusho> It seems to just ignore my styles.
  8. # [00:15] <tusho> Ah.
  9. # [00:15] <tusho> I need to specify display: block
  10. # [00:18] * weinig is now known as weinig|away
  11. # [00:22] * Joins: mikedoty (n=mdotycha@static-209-107-232-58.consolidated.net)
  12. # [00:24] <mikedoty> Hey! Someone here might be able to help me! I'm playing with the Canvas tag. I do a toDataURL and save that to a variable. Then I try to use that variable as the first parameter for drawImage. It somehow errors, and all subsquent calls to toDataURL fail. Is this a known issue by any chance? I'm using Opera 9.27
  13. # [00:26] <othermaciej> mikedoty: you can't just use a data URL as a parameter to drawImage
  14. # [00:26] <othermaciej> mikedoty: you would have to make it the src of an img element and draw that
  15. # [00:26] <mikedoty> Hm, I do x = new Image(); x.src = toDataURL() then use x
  16. # [00:26] <mikedoty> That's what I meant, sorry
  17. # [00:27] <othermaciej> mikedoty: but it might be a better choice to use getImageData / putImageData
  18. # [00:27] <mikedoty> It is like here http://www.psyguygames.com/paint.html
  19. # [00:27] <othermaciej> if you just want to reuse the image content across the same session
  20. # [00:27] <mikedoty> Ok, I'll reexamine those
  21. # [00:27] <othermaciej> toDataURL is mainly useful for when you want to save it for a later page load
  22. # [00:28] <mikedoty> I think Opera doesn't support get/put though :(
  23. # [00:28] <mikedoty> This would not be a big deal but I had hoped to have it working in the Wii browser
  24. # [00:29] * Parts: hasather (n=hasather@ti0034a380-2730.bb.online.no)
  25. # [00:34] <othermaciej> I'm pretty sure they do
  26. # [00:34] <othermaciej> at least in the newest Opera
  27. # [00:38] <mikedoty> Yeah, I think it says 9.50 does, but the Wii's version is a bit older and I fear it probably doesn't. I could take a look though.
  28. # [00:39] <mikedoty> I think I might be able to skate by with reloading the page when I need to prepare new images (an uncommon occurence). It is hackish but shouldn't be too unsightly
  29. # [00:39] <othermaciej> I think it was added at the same time as toDataURL
  30. # [00:43] * weinig|away is now known as weinig
  31. # [00:55] <Philip`> mikedoty: That's a security-related bug - if you draw an image from a remote location onto a canvas, then that prevents you later calling toDataURL/getImageData on the canvas (because then your script could access the image's data, which is bad since the image contain be something secret)
  32. # [00:55] * Joins: svl (n=me@60-234-138-177.bitstream.orcon.net.nz)
  33. # [00:56] <Philip`> mikedoty: but most implementations did/do consider images created from data: URLs to count as 'from a remote location' (or at least not from somewhere they know is safe)
  34. # [00:57] <Philip`> mikedoty: which is a bug since in most cases they should consider data: images to be safe
  35. # [00:58] <mikedoty> Ok, although I'm super disappointed in that, I understand the reasoning and thank you for bringing some light on what was a very dark situation :)
  36. # [00:59] <Philip`> There is a way to work around that security feature in some versions of Opera, but that workaround is a security vulnerability so maybe they've fixed it on the Wii
  37. # [01:00] <mikedoty> Well, what I'm doing is prerendering levels into images, which I just need to do at the start of a level... I think I can get away with reloading the page to start a new level probably
  38. # [01:00] <Philip`> http://www.opera.com/support/search/view/883/ only says it's fixed in 9.5, though
  39. # [01:03] <Philip`> (Draw unsafe stuff on a canvas; call ctx.createPattern(canvas, ...) on that canvas; create a new canvas and set ctx2.fillStyle = pattern and draw stuff, and it won't realise the new canvas is unsafe)
  40. # [01:05] <Philip`> (But if there's a 9.28 then it'll probably be fixed in there)
  41. # [01:05] <Philip`> (where "fixed" means it'll stop working and break any attempts to utilise that hack for noble purposes)
  42. # [01:09] * Quits: qwert666_ (n=qwert666@acaf52.neoplus.adsl.tpnet.pl) ("Leaving")
  43. # [01:22] * Quits: weinig (n=weinig@c-71-198-176-23.hsd1.ca.comcast.net)
  44. # [01:24] * Quits: svl (n=me@60-234-138-177.bitstream.orcon.net.nz) ("And back he spurred like a madman, shrieking a curse to the sky.")
  45. # [01:25] * Joins: webben_ (n=benh@dip5-fw.corp.ukl.yahoo.com)
  46. # [01:27] * Joins: weinig (n=weinig@c-71-198-176-23.hsd1.ca.comcast.net)
  47. # [01:39] * Joins: myakura (n=myakura@p1216-ipbf601marunouchi.tokyo.ocn.ne.jp)
  48. # [01:41] * Quits: webben (n=benh@91.85.160.213) (Read error: 110 (Connection timed out))
  49. # [01:44] * Quits: Maurice` (i=copyman@cc90688-a.emmen1.dr.home.nl) ("Disconnected...")
  50. # [02:09] * Quits: tusho (n=tusho@91.105.117.61)
  51. # [02:56] <Philip`> gsnedders: Oops, forgot to reply
  52. # [02:56] <Philip`> gsnedders: That sounds quite a reasonable idea to me :-)
  53. # [02:57] <Philip`> (I'm not really doing anything useful any time that day)
  54. # [03:23] <gsnedders> Philip`: I'm gonna be off in Ely for most of that day :P
  55. # [03:23] <gsnedders> brb
  56. # [03:23] * Quits: gsnedders (n=gsnedder@host217-44-35-200.range217-44.btcentralplus.com) ("Killin' teh intarwebs")
  57. # [03:24] * Joins: gsnedders (n=gsnedder@host217-44-35-200.range217-44.btcentralplus.com)
  58. # [03:28] * Quits: tndH (i=Rob@87.102.5.204) ("ChatZilla 0.9.83-rdmsoft [XULRunner 1.8.0.9/2006120508]")
  59. # [04:07] * weinig is now known as weing|away
  60. # [04:52] * Joins: Star (i=beos@213-66-217-32-no30.tbcn.telia.com)
  61. # [04:56] * Quits: Star (i=beos@213-66-217-32-no30.tbcn.telia.com) (Client Quit)
  62. # [05:12] * Quits: jruderman_ (n=jruderma@ip68-5-179-249.oc.oc.cox.net)
  63. # [05:12] * Quits: mikedoty (n=mdotycha@static-209-107-232-58.consolidated.net) (Remote closed the connection)
  64. # [05:14] * Joins: mikedoty (n=mdotycha@static-209-107-232-58.consolidated.net)
  65. # [05:18] * Joins: Philip`_ (n=philip@zaynar.demon.co.uk)
  66. # [05:26] * Quits: Philip` (n=philip@zaynar.demon.co.uk) (Read error: 101 (Network is unreachable))
  67. # [05:40] * Philip`_ is now known as Philip`
  68. # [07:11] * Joins: eseidel (n=eseidel@c-24-118-134-245.hsd1.mn.comcast.net)
  69. # [07:12] * weing|away is now known as weinig
  70. # [07:26] * Quits: eseidel (n=eseidel@c-24-118-134-245.hsd1.mn.comcast.net)
  71. # [07:29] * Joins: jacobolus (n=jacobolu@12.31.165.244)
  72. # [08:13] * Quits: hdh (n=hdh@118.71.124.238) (Remote closed the connection)
  73. # [08:18] * Quits: mikedoty (n=mdotycha@static-209-107-232-58.consolidated.net)
  74. # [08:28] * Quits: jacobolus (n=jacobolu@12.31.165.244)
  75. # [09:06] * Joins: qwert666 (n=qwert666@acaf52.neoplus.adsl.tpnet.pl)
  76. # [09:16] * Joins: jacobolus (n=jacobolu@12.31.165.244)
  77. # [09:35] * Quits: jacobolus (n=jacobolu@12.31.165.244) (Read error: 104 (Connection reset by peer))
  78. # [09:36] * Joins: jacobolus (n=jacobolu@12.31.165.244)
  79. # [09:38] * Quits: jacobolus (n=jacobolu@12.31.165.244) (Client Quit)
  80. # [09:38] <hsivonen> http://www.w3.org/QA/2008/06/war-of-the-worlds.html#c151388
  81. # [09:39] <hsivonen> I was unaware of being quoted on the microformats wiki
  82. # [10:03] * Joins: Philip`_ (n=philip@zaynar.demon.co.uk)
  83. # [10:14] * Quits: Philip` (n=philip@zaynar.demon.co.uk) (Read error: 110 (Connection timed out))
  84. # [10:15] * Joins: eseidel (n=eseidel@c-24-118-134-245.hsd1.mn.comcast.net)
  85. # [10:33] * Joins: zcorpan (n=zcorpan@scandic817.host.songnetworks.se)
  86. # [10:45] * Joins: ROBOd (n=robod@89.122.216.38)
  87. # [10:49] * Joins: Maurice` (i=copyman@cc90688-a.emmen1.dr.home.nl)
  88. # [10:52] * Maurice` is now known as Maurice
  89. # [11:07] * Joins: jruderman (n=jruderma@ip68-5-179-249.oc.oc.cox.net)
  90. # [11:25] * Joins: maikmerten (n=maikmert@L9313.l.pppool.de)
  91. # [11:30] <jgraham> gsnedders: AFAIK I can do Monday. Did you say a time?
  92. # [13:56] * Disconnected
  93. # [16:56] * Attempting to rejoin channel #whatwg
  94. # [16:56] * Rejoined channel #whatwg
  95. # [16:56] * Topic is 'WHATWG (HTML5) -- http://www.whatwg.org/ -- Logs: http://krijnhoetmer.nl/irc-logs/ -- Please leave your sense of logic at the door, thanks!'
  96. # [16:56] * Set by gsnedders on Tue Dec 18 21:41:19
  97. # [18:56] * Disconnected
  98. # [18:56] * Attempting to rejoin channel #whatwg
  99. # [18:56] * Rejoined channel #whatwg
  100. # [18:56] * Topic is 'WHATWG (HTML5) -- http://www.whatwg.org/ -- Logs: http://krijnhoetmer.nl/irc-logs/ -- Please leave your sense of logic at the door, thanks!'
  101. # [18:56] * Set by gsnedders on Tue Dec 18 21:41:19
  102. # [19:19] * Joins: ROBOd (n=robod@89.122.216.38)
  103. # [19:45] * Joins: qwert666_ (n=qwert666@etp225.neoplus.adsl.tpnet.pl)
  104. # [19:53] * Joins: hdh (n=hdh@118.71.126.84)
  105. # [20:01] * Quits: qwert666 (n=qwert666@acaf52.neoplus.adsl.tpnet.pl) (Connection timed out)
  106. # [20:13] * Quits: hasather (n=hasather@ti0034a380-2730.bb.online.no) (Remote closed the connection)
  107. # [20:14] * Joins: hasather (n=hasather@ti0034a380-2730.bb.online.no)
  108. # [20:21] * Quits: maikmerten_ (n=maikmert@Lb37c.l.pppool.de) (Remote closed the connection)
  109. # [20:32] * Quits: webben_ (n=benh@dip5-fw.corp.ukl.yahoo.com)
  110. # [20:40] * weinig is now known as weinig|foods
  111. # [20:54] * bradee-oh is now known as bradee-et
  112. # [20:56] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  113. # [21:11] * Joins: eseidel (n=eseidel@c-24-118-134-245.hsd1.mn.comcast.net)
  114. # [21:16] * Joins: webben (n=benh@91.85.160.213)
  115. # [21:19] * Joins: jacobolus (n=jacobolu@c-67-188-23-59.hsd1.ca.comcast.net)
  116. # [21:22] * Quits: webben (n=benh@91.85.160.213)
  117. # [21:23] * Joins: webben (n=benh@91.85.160.213)
  118. # [21:23] * Quits: jacobolus (n=jacobolu@c-67-188-23-59.hsd1.ca.comcast.net) (Client Quit)
  119. # [21:36] * bradee-et is now known as bradee-oh
  120. # [21:38] * Quits: eseidel (n=eseidel@c-24-118-134-245.hsd1.mn.comcast.net)
  121. # [21:40] * weinig|foods is now known as weinig
  122. # [22:19] * Joins: jacobolus (n=jacobolu@c-67-188-23-59.hsd1.ca.comcast.net)
  123. # [22:30] * Quits: othermaciej (n=mjs@c-24-5-43-151.hsd1.ca.comcast.net) (Read error: 104 (Connection reset by peer))
  124. # [22:31] * Joins: othermaciej (n=mjs@c-24-5-43-151.hsd1.ca.comcast.net)
  125. # [22:48] * Quits: ROBOd (n=robod@89.122.216.38) ("http://www.robodesign.ro")
  126. # [22:53] * Joins: webben_ (n=benh@dip5-fw.corp.ukl.yahoo.com)
  127. # [22:55] * Parts: hasather (n=hasather@ti0034a380-2730.bb.online.no)
  128. # [22:55] * Joins: hasather (n=hasather@ti0034a380-2730.bb.online.no)
  129. # [22:57] * bradee-oh is now known as bradee-ultimate
  130. # [22:57] * Joins: scotfl (n=scotfl@S0106001b114f914a.ss.shawcable.net)
  131. # [23:02] * Quits: starjive (i=beos@213-66-217-32-no30.tbcn.telia.com) (Read error: 104 (Connection reset by peer))
  132. # [23:10] * Quits: webben (n=benh@91.85.160.213) (Read error: 110 (Connection timed out))
  133. # [23:16] <jgraham> Lachy: Discission of Wall-E should be prohibited until I have seen it :)
  134. # [23:17] <jgraham> gsnedders: OK
  135. # [23:17] * Joins: roc (n=roc@202.0.36.64)
  136. # [23:20] * Parts: hasather (n=hasather@ti0034a380-2730.bb.online.no)
  137. # [23:25] <Hixie> Lachy: yes, very good
  138. # [23:26] <gsnedders> Suggestions for basic project that could be done in a week or two to learn Haskell/functional programming?
  139. # [23:27] * Joins: tantek_ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
  140. # [23:28] <jgraham> gsnedders: Implement a html5 URL parsing library? It maybe isn't a natural match but it wouls at least be useful
  141. # [23:28] <jgraham> s/wouls/would/
  142. # [23:29] <Philip`> Who would find a URL parsing library implemented in Haskell to be useful? :-)
  143. # [23:29] <jgraham> Philip`: Other people who use Haskell, I guess
  144. # [23:31] <jgraham> You could build up to it in stages. First get your head around IO by doing a "hixie movie rater" which would simply return "excellent" if the input matched the name of a Pixar movie and "unknown" otherwise
  145. # [23:31] <Philip`> It might be better to do something that involves more interesting data structures than strings, since you might as well just use Perl if you're dealing with strings
  146. # [23:32] <jgraham> The problem is that there are lots of useful practical problems that involve strings
  147. # [23:33] <Philip`> Implementing any algorithm from the HTML5 spec might not be the best idea, since they're all written very imperatively and you have to reverse-engineer them before writing a functional solution
  148. # [23:33] <jgraham> I mean, I guess gsnedders could implement a graph traversing algorithm or something in Haskell but it's not like its an intrinsically useful problem
  149. # [23:33] <Philip`> jgraham: There are also lots that don't, and those are the ones that functional languages seem more suited to
  150. # [23:34] <Philip`> like writing compilers, perhaps
  151. # [23:34] <jgraham> Philip`: They tend to be more theoretical, less accessible problems
  152. # [23:34] <jgraham> or rather more theory heavy
  153. # [23:34] <Philip`> Haskell is a more theoretical, less accessible language, so that's a perfect match :-)
  154. # [23:35] <jgraham> gsnedders: You could always just start using XMonad as your window manager (it works on OSX) and then the config file is Haskell code
  155. # [23:40] * Joins: svl (n=me@60-234-138-177.bitstream.orcon.net.nz)
  156. # [23:43] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Read error: 110 (Connection timed out))
  157. # [23:45] <roc> you could write Haskell-to-JS compiler in Haskell and self-host it to get Haskell in the browser
  158. # [23:49] * jgraham will be seriously impressed if gsnedders manages that
  159. # [23:52] <Philip`> Or just write a (subset-of-)JS parser and interpreter, as the first stage towards writing an entire web browser in Haskell
  160. # [23:53] * gsnedders would be seriously impressed if he managed that
  161. # [23:54] <gsnedders> (which kinda means I'm not going to try when I haven't even done any functional programming before)
  162. # [23:55] <gsnedders> I think the main thing will be getting my head around functional programming
  163. # [23:55] * Quits: Maurice (i=copyman@cc90688-a.emmen1.dr.home.nl) ("Disconnected...")
  164. # [23:58] <Philip`> It's probably better to find a decent tutorial/book/etc and follow the examples in there, since it'll be sensible things like "implement a 'map' function" or "construct an infinite Fibonacci sequence" instead of "implement a Haskell compiler" :-)
  165. # [23:58] <gsnedders> :)
  166. # [23:59] <gsnedders> But those sensible things are almost always boring, so I give up quite quickly :P
  167. # [23:59] <jgraham> It will be factorials. Always with the bloody factorials
  168. # Session Close: Mon Jun 30 00:00:00 2008

The end :)