Options:
- # Session Start: Sun Jun 29 00:00:00 2008
- # Session Ident: #whatwg
- # [00:08] * Joins: gsnedders (n=gsnedder@host217-44-35-200.range217-44.btcentralplus.com)
- # [00:10] <gsnedders> Philip`, jgraham: You want to meet up next Monday (20080707), or not?
- # [00:15] <tusho> Hmm.
- # [00:15] <tusho> Why can't I style 'article' in Firefox3, I wonder...
- # [00:15] <tusho> It seems to just ignore my styles.
- # [00:15] <tusho> Ah.
- # [00:15] <tusho> I need to specify display: block
- # [00:18] * weinig is now known as weinig|away
- # [00:22] * Joins: mikedoty (n=mdotycha@static-209-107-232-58.consolidated.net)
- # [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
- # [00:26] <othermaciej> mikedoty: you can't just use a data URL as a parameter to drawImage
- # [00:26] <othermaciej> mikedoty: you would have to make it the src of an img element and draw that
- # [00:26] <mikedoty> Hm, I do x = new Image(); x.src = toDataURL() then use x
- # [00:26] <mikedoty> That's what I meant, sorry
- # [00:27] <othermaciej> mikedoty: but it might be a better choice to use getImageData / putImageData
- # [00:27] <mikedoty> It is like here http://www.psyguygames.com/paint.html
- # [00:27] <othermaciej> if you just want to reuse the image content across the same session
- # [00:27] <mikedoty> Ok, I'll reexamine those
- # [00:27] <othermaciej> toDataURL is mainly useful for when you want to save it for a later page load
- # [00:28] <mikedoty> I think Opera doesn't support get/put though :(
- # [00:28] <mikedoty> This would not be a big deal but I had hoped to have it working in the Wii browser
- # [00:29] * Parts: hasather (n=hasather@ti0034a380-2730.bb.online.no)
- # [00:34] <othermaciej> I'm pretty sure they do
- # [00:34] <othermaciej> at least in the newest Opera
- # [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.
- # [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
- # [00:39] <othermaciej> I think it was added at the same time as toDataURL
- # [00:43] * weinig|away is now known as weinig
- # [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)
- # [00:55] * Joins: svl (n=me@60-234-138-177.bitstream.orcon.net.nz)
- # [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)
- # [00:57] <Philip`> mikedoty: which is a bug since in most cases they should consider data: images to be safe
- # [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 :)
- # [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
- # [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
- # [01:00] <Philip`> http://www.opera.com/support/search/view/883/ only says it's fixed in 9.5, though
- # [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)
- # [01:05] <Philip`> (But if there's a 9.28 then it'll probably be fixed in there)
- # [01:05] <Philip`> (where "fixed" means it'll stop working and break any attempts to utilise that hack for noble purposes)
- # [01:09] * Quits: qwert666_ (n=qwert666@acaf52.neoplus.adsl.tpnet.pl) ("Leaving")
- # [01:22] * Quits: weinig (n=weinig@c-71-198-176-23.hsd1.ca.comcast.net)
- # [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.")
- # [01:25] * Joins: webben_ (n=benh@dip5-fw.corp.ukl.yahoo.com)
- # [01:27] * Joins: weinig (n=weinig@c-71-198-176-23.hsd1.ca.comcast.net)
- # [01:39] * Joins: myakura (n=myakura@p1216-ipbf601marunouchi.tokyo.ocn.ne.jp)
- # [01:41] * Quits: webben (n=benh@91.85.160.213) (Read error: 110 (Connection timed out))
- # [01:44] * Quits: Maurice` (i=copyman@cc90688-a.emmen1.dr.home.nl) ("Disconnected...")
- # [02:09] * Quits: tusho (n=tusho@91.105.117.61)
- # [02:56] <Philip`> gsnedders: Oops, forgot to reply
- # [02:56] <Philip`> gsnedders: That sounds quite a reasonable idea to me :-)
- # [02:57] <Philip`> (I'm not really doing anything useful any time that day)
- # [03:23] <gsnedders> Philip`: I'm gonna be off in Ely for most of that day :P
- # [03:23] <gsnedders> brb
- # [03:23] * Quits: gsnedders (n=gsnedder@host217-44-35-200.range217-44.btcentralplus.com) ("Killin' teh intarwebs")
- # [03:24] * Joins: gsnedders (n=gsnedder@host217-44-35-200.range217-44.btcentralplus.com)
- # [03:28] * Quits: tndH (i=Rob@87.102.5.204) ("ChatZilla 0.9.83-rdmsoft [XULRunner 1.8.0.9/2006120508]")
- # [04:07] * weinig is now known as weing|away
- # [04:52] * Joins: Star (i=beos@213-66-217-32-no30.tbcn.telia.com)
- # [04:56] * Quits: Star (i=beos@213-66-217-32-no30.tbcn.telia.com) (Client Quit)
- # [05:12] * Quits: jruderman_ (n=jruderma@ip68-5-179-249.oc.oc.cox.net)
- # [05:12] * Quits: mikedoty (n=mdotycha@static-209-107-232-58.consolidated.net) (Remote closed the connection)
- # [05:14] * Joins: mikedoty (n=mdotycha@static-209-107-232-58.consolidated.net)
- # [05:18] * Joins: Philip`_ (n=philip@zaynar.demon.co.uk)
- # [05:26] * Quits: Philip` (n=philip@zaynar.demon.co.uk) (Read error: 101 (Network is unreachable))
- # [05:40] * Philip`_ is now known as Philip`
- # [07:11] * Joins: eseidel (n=eseidel@c-24-118-134-245.hsd1.mn.comcast.net)
- # [07:12] * weing|away is now known as weinig
- # [07:26] * Quits: eseidel (n=eseidel@c-24-118-134-245.hsd1.mn.comcast.net)
- # [07:29] * Joins: jacobolus (n=jacobolu@12.31.165.244)
- # [08:13] * Quits: hdh (n=hdh@118.71.124.238) (Remote closed the connection)
- # [08:18] * Quits: mikedoty (n=mdotycha@static-209-107-232-58.consolidated.net)
- # [08:28] * Quits: jacobolus (n=jacobolu@12.31.165.244)
- # [09:06] * Joins: qwert666 (n=qwert666@acaf52.neoplus.adsl.tpnet.pl)
- # [09:16] * Joins: jacobolus (n=jacobolu@12.31.165.244)
- # [09:35] * Quits: jacobolus (n=jacobolu@12.31.165.244) (Read error: 104 (Connection reset by peer))
- # [09:36] * Joins: jacobolus (n=jacobolu@12.31.165.244)
- # [09:38] * Quits: jacobolus (n=jacobolu@12.31.165.244) (Client Quit)
- # [09:38] <hsivonen> http://www.w3.org/QA/2008/06/war-of-the-worlds.html#c151388
- # [09:39] <hsivonen> I was unaware of being quoted on the microformats wiki
- # [10:03] * Joins: Philip`_ (n=philip@zaynar.demon.co.uk)
- # [10:14] * Quits: Philip` (n=philip@zaynar.demon.co.uk) (Read error: 110 (Connection timed out))
- # [10:15] * Joins: eseidel (n=eseidel@c-24-118-134-245.hsd1.mn.comcast.net)
- # [10:33] * Joins: zcorpan (n=zcorpan@scandic817.host.songnetworks.se)
- # [10:45] * Joins: ROBOd (n=robod@89.122.216.38)
- # [10:49] * Joins: Maurice` (i=copyman@cc90688-a.emmen1.dr.home.nl)
- # [10:52] * Maurice` is now known as Maurice
- # [11:07] * Joins: jruderman (n=jruderma@ip68-5-179-249.oc.oc.cox.net)
- # [11:25] * Joins: maikmerten (n=maikmert@L9313.l.pppool.de)
- # [11:30] <jgraham> gsnedders: AFAIK I can do Monday. Did you say a time?
- # [13:56] * Disconnected
- # [16:56] * Attempting to rejoin channel #whatwg
- # [16:56] * Rejoined channel #whatwg
- # [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!'
- # [16:56] * Set by gsnedders on Tue Dec 18 21:41:19
- # [18:56] * Disconnected
- # [18:56] * Attempting to rejoin channel #whatwg
- # [18:56] * Rejoined channel #whatwg
- # [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!'
- # [18:56] * Set by gsnedders on Tue Dec 18 21:41:19
- # [19:19] * Joins: ROBOd (n=robod@89.122.216.38)
- # [19:45] * Joins: qwert666_ (n=qwert666@etp225.neoplus.adsl.tpnet.pl)
- # [19:53] * Joins: hdh (n=hdh@118.71.126.84)
- # [20:01] * Quits: qwert666 (n=qwert666@acaf52.neoplus.adsl.tpnet.pl) (Connection timed out)
- # [20:13] * Quits: hasather (n=hasather@ti0034a380-2730.bb.online.no) (Remote closed the connection)
- # [20:14] * Joins: hasather (n=hasather@ti0034a380-2730.bb.online.no)
- # [20:21] * Quits: maikmerten_ (n=maikmert@Lb37c.l.pppool.de) (Remote closed the connection)
- # [20:32] * Quits: webben_ (n=benh@dip5-fw.corp.ukl.yahoo.com)
- # [20:40] * weinig is now known as weinig|foods
- # [20:54] * bradee-oh is now known as bradee-et
- # [20:56] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [21:11] * Joins: eseidel (n=eseidel@c-24-118-134-245.hsd1.mn.comcast.net)
- # [21:16] * Joins: webben (n=benh@91.85.160.213)
- # [21:19] * Joins: jacobolus (n=jacobolu@c-67-188-23-59.hsd1.ca.comcast.net)
- # [21:22] * Quits: webben (n=benh@91.85.160.213)
- # [21:23] * Joins: webben (n=benh@91.85.160.213)
- # [21:23] * Quits: jacobolus (n=jacobolu@c-67-188-23-59.hsd1.ca.comcast.net) (Client Quit)
- # [21:36] * bradee-et is now known as bradee-oh
- # [21:38] * Quits: eseidel (n=eseidel@c-24-118-134-245.hsd1.mn.comcast.net)
- # [21:40] * weinig|foods is now known as weinig
- # [22:19] * Joins: jacobolus (n=jacobolu@c-67-188-23-59.hsd1.ca.comcast.net)
- # [22:30] * Quits: othermaciej (n=mjs@c-24-5-43-151.hsd1.ca.comcast.net) (Read error: 104 (Connection reset by peer))
- # [22:31] * Joins: othermaciej (n=mjs@c-24-5-43-151.hsd1.ca.comcast.net)
- # [22:48] * Quits: ROBOd (n=robod@89.122.216.38) ("http://www.robodesign.ro")
- # [22:53] * Joins: webben_ (n=benh@dip5-fw.corp.ukl.yahoo.com)
- # [22:55] * Parts: hasather (n=hasather@ti0034a380-2730.bb.online.no)
- # [22:55] * Joins: hasather (n=hasather@ti0034a380-2730.bb.online.no)
- # [22:57] * bradee-oh is now known as bradee-ultimate
- # [22:57] * Joins: scotfl (n=scotfl@S0106001b114f914a.ss.shawcable.net)
- # [23:02] * Quits: starjive (i=beos@213-66-217-32-no30.tbcn.telia.com) (Read error: 104 (Connection reset by peer))
- # [23:10] * Quits: webben (n=benh@91.85.160.213) (Read error: 110 (Connection timed out))
- # [23:16] <jgraham> Lachy: Discission of Wall-E should be prohibited until I have seen it :)
- # [23:17] <jgraham> gsnedders: OK
- # [23:17] * Joins: roc (n=roc@202.0.36.64)
- # [23:20] * Parts: hasather (n=hasather@ti0034a380-2730.bb.online.no)
- # [23:25] <Hixie> Lachy: yes, very good
- # [23:26] <gsnedders> Suggestions for basic project that could be done in a week or two to learn Haskell/functional programming?
- # [23:27] * Joins: tantek_ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [23:28] <jgraham> gsnedders: Implement a html5 URL parsing library? It maybe isn't a natural match but it wouls at least be useful
- # [23:28] <jgraham> s/wouls/would/
- # [23:29] <Philip`> Who would find a URL parsing library implemented in Haskell to be useful? :-)
- # [23:29] <jgraham> Philip`: Other people who use Haskell, I guess
- # [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
- # [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
- # [23:32] <jgraham> The problem is that there are lots of useful practical problems that involve strings
- # [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
- # [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
- # [23:33] <Philip`> jgraham: There are also lots that don't, and those are the ones that functional languages seem more suited to
- # [23:34] <Philip`> like writing compilers, perhaps
- # [23:34] <jgraham> Philip`: They tend to be more theoretical, less accessible problems
- # [23:34] <jgraham> or rather more theory heavy
- # [23:34] <Philip`> Haskell is a more theoretical, less accessible language, so that's a perfect match :-)
- # [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
- # [23:40] * Joins: svl (n=me@60-234-138-177.bitstream.orcon.net.nz)
- # [23:43] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Read error: 110 (Connection timed out))
- # [23:45] <roc> you could write Haskell-to-JS compiler in Haskell and self-host it to get Haskell in the browser
- # [23:49] * jgraham will be seriously impressed if gsnedders manages that
- # [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
- # [23:53] * gsnedders would be seriously impressed if he managed that
- # [23:54] <gsnedders> (which kinda means I'm not going to try when I haven't even done any functional programming before)
- # [23:55] <gsnedders> I think the main thing will be getting my head around functional programming
- # [23:55] * Quits: Maurice (i=copyman@cc90688-a.emmen1.dr.home.nl) ("Disconnected...")
- # [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" :-)
- # [23:58] <gsnedders> :)
- # [23:59] <gsnedders> But those sensible things are almost always boring, so I give up quite quickly :P
- # [23:59] <jgraham> It will be factorials. Always with the bloody factorials
- # Session Close: Mon Jun 30 00:00:00 2008
The end :)