/irc-logs / freenode / #html5 / 2011-12-28 / end

Options:

  1. # Session Start: Wed Dec 28 00:00:00 2011
  2. # Session Ident: #html5
  3. # [00:01] * Joins: Jayflux1 (~jay_knows@cpc1-dudl6-0-0-cust1981.wolv.cable.virginmedia.com)
  4. # [00:02] * Joins: ShadowE989 (~ShadowE98@74-47-218-61.dr02.rmny.wv.frontiernet.net)
  5. # [00:02] * Quits: Jayflux (~jay_knows@cpc1-dudl6-0-0-cust1981.wolv.cable.virginmedia.com) (Ping timeout: 252 seconds)
  6. # [00:05] * Joins: wbednarski (~wbednarsk@bwy158.neoplus.adsl.tpnet.pl)
  7. # [00:06] * Joins: manitwo (~maniwo@p57978EF3.dip.t-dialin.net)
  8. # [00:07] * Joins: OzDave_imac (~OzDave@27-33-43-79.static.tpgi.com.au)
  9. # [00:08] * Quits: martndemus (~martndemu@h254064.upc-h.chello.nl) (Remote host closed the connection)
  10. # [00:09] * Quits: beckybunny (~becky@host-92-23-131-114.as13285.net) (Read error: Connection reset by peer)
  11. # [00:09] * Joins: beckybunny (~becky@host-92-23-131-114.as13285.net)
  12. # [00:13] * Joins: henrikkok (~henrikkok@3306ds3-amb.0.fullrate.dk)
  13. # [00:14] * Quits: thcipriani (~tyler@173-14-24-158-Colorado.hfc.comcastbusiness.net) (Quit: leaving)
  14. # [00:16] * Joins: erichynds (~ehynds@pool-71-184-234-218.bstnma.fios.verizon.net)
  15. # [00:17] * Quits: N0va (~ricki@84.19.108.75) (Quit: Leaving)
  16. # [00:18] * Joins: manitwo_ (~maniwo@p57978EF3.dip.t-dialin.net)
  17. # [00:18] * Quits: manitwo (~maniwo@p57978EF3.dip.t-dialin.net) (Quit: Textual IRC Client: http://www.textualapp.com/)
  18. # [00:18] * manitwo_ is now known as manitwo
  19. # [00:18] * Quits: manitwo (~maniwo@p57978EF3.dip.t-dialin.net) (Quit: Textual IRC Client: http://www.textualapp.com/)
  20. # [00:22] * Quits: JL235 (~JL235@host86-185-216-215.range86-185.btcentralplus.com) (Read error: Connection reset by peer)
  21. # [00:22] * Joins: JL235 (~JL235@host86-185-216-215.range86-185.btcentralplus.com)
  22. # [00:30] * Quits: beckybunny (~becky@host-92-23-131-114.as13285.net) (Quit: beckybunny)
  23. # [00:30] * Quits: koggdal (~koggdal@83.251.117.159) (Quit: koggdal)
  24. # [00:39] * Joins: tw2113 (~tw2113@fedora/tw2113)
  25. # [00:45] * Quits: Mahoek (~Mahoek@ip51ceb6d4.adsl-surfen.hetnet.nl) (Quit: Mahoek)
  26. # [00:48] * Joins: joepie91 (~joepie91@ip5457f51b.direct-adsl.nl)
  27. # [00:48] * Quits: wbednarski (~wbednarsk@bwy158.neoplus.adsl.tpnet.pl) (Ping timeout: 268 seconds)
  28. # [00:52] * Joins: wbednarski (~wbednarsk@abir80.neoplus.adsl.tpnet.pl)
  29. # [00:54] * Quits: cocoadaemon (~cocoadaem@2a01:e35:8a99:e90:20d:93ff:fe3b:868c) (Quit: cocoadaemon)
  30. # [00:57] * Quits: [E]sc (~armani@cm218-252-220-28.hkcable.com.hk) (Ping timeout: 255 seconds)
  31. # [01:03] * Quits: jacobolus (~jacobolus@h-66-166-3-76.lsanca54.static.covad.net) (Ping timeout: 276 seconds)
  32. # [01:10] * Joins: beckybunny (~becky@host-92-23-131-114.as13285.net)
  33. # [01:10] * Quits: GeoDud (~Ross@65.74.6.82) (Ping timeout: 252 seconds)
  34. # [01:10] * Quits: simenbrekken (~simenbrek@c85-196-101-98.static.sdsl.no) (Remote host closed the connection)
  35. # [01:14] * Quits: taylorRichie (~Adium@208.110.141.169) (Ping timeout: 240 seconds)
  36. # [01:21] * Joins: jacobolus (~jacobolus@h-66-166-3-76.lsanca54.static.covad.net)
  37. # [01:25] * Quits: JL235 (~JL235@host86-185-216-215.range86-185.btcentralplus.com) (Ping timeout: 240 seconds)
  38. # [01:29] * Joins: addyosmani (~addyosman@host86-164-98-62.range86-164.btcentralplus.com)
  39. # [01:32] * Joins: tmds (~tmds@gateway/tor-sasl/tmds)
  40. # [01:35] * Joins: leftblank (~leftblank@host109-149-198-5.range109-149.btcentralplus.com)
  41. # [01:44] * Joins: rottenrec1 (~calvin@pool-74-100-117-52.lsanca.dsl-w.verizon.net)
  42. # [01:46] * Quits: rottenrec (~calvin@pool-74-100-117-52.lsanca.dsl-w.verizon.net) (Ping timeout: 240 seconds)
  43. # [01:51] * Quits: strevat_ (~strevat@honeydew.cictr.com) (Quit: strevat_)
  44. # [01:52] * Quits: joepie91 (~joepie91@ip5457f51b.direct-adsl.nl) (Ping timeout: 252 seconds)
  45. # [01:58] * Quits: henrikkok (~henrikkok@3306ds3-amb.0.fullrate.dk) (Quit: Leaving.)
  46. # [02:01] * Quits: wbednarski (~wbednarsk@abir80.neoplus.adsl.tpnet.pl) (Remote host closed the connection)
  47. # [02:04] * Quits: thatryan (~thatryan@c-24-4-167-46.hsd1.ca.comcast.net) (Quit: Leaving...)
  48. # [02:05] <tw2113> http://hipstergrammers.tumblr.com/
  49. # [02:14] * Joins: pandeiro_ (~pandeiro@bd21c422.virtua.com.br)
  50. # [02:16] * Quits: pandeiro (~pandeiro@bd21c422.virtua.com.br) (Ping timeout: 240 seconds)
  51. # [02:19] * Quits: addyosmani (~addyosman@host86-164-98-62.range86-164.btcentralplus.com) (Quit: addyosmani)
  52. # [02:25] * Joins: thatryan (~thatryan@c-71-202-3-49.hsd1.ca.comcast.net)
  53. # [02:36] * Joins: NarfZoid (~cobbman@38.73.129.80)
  54. # [02:37] * Joins: Zauberfisch (Zauberfisc@venus.zauberfisch.at)
  55. # [02:37] * Quits: erichynds (~ehynds@pool-71-184-234-218.bstnma.fios.verizon.net)
  56. # [02:43] <NarfZoid> I have an absolutely positioned element which seems to "cover up" some links that are next to it. But visually the links are in front, it's just the actual clickable area that is being covered up. Any ideas?
  57. # [02:43] * Joins: intellilogic (~intellilo@static-96-241-182-10.washdc.fios.verizon.net)
  58. # [02:43] <divya> well your abs pos element must be covering the text but not having a background
  59. # [02:43] <divya> so it appears like links are in front?
  60. # [02:45] <NarfZoid> Here's how it's set up:
  61. # [02:45] <NarfZoid> two images, facebook and twitter, are wrapped in anchor tags
  62. # [02:46] <NarfZoid> they are inside their own div called SocialLinks
  63. # [02:46] * Quits: silky (~silky@pool-74-108-142-22.nycmny.fios.verizon.net) (Ping timeout: 240 seconds)
  64. # [02:46] <NarfZoid> then the next div is div id="gradient"
  65. # [02:46] * Quits: teleject (~christoph@66-90-185-148.dyn.grandenetworks.net) (Quit: teleject)
  66. # [02:46] <NarfZoid> that is absolutely positioned
  67. # [02:47] <NarfZoid> The images show up in front of the background gradient div, but the clickable area is half behind it
  68. # [02:47] * Joins: silky (~silky@pool-74-108-142-22.nycmny.fios.verizon.net)
  69. # [02:47] * Joins: humanpipecleaner (~chatzilla@wsip-24-234-202-219.lv.lv.cox.net)
  70. # [02:47] <NarfZoid> I'll make a screenshot, just a sec...
  71. # [02:47] * Joins: tktiddle (~tim@cpc4-hari15-2-0-cust505.20-2.cable.virginmedia.com)
  72. # [02:47] * Quits: silky (~silky@pool-74-108-142-22.nycmny.fios.verizon.net) (Read error: Connection reset by peer)
  73. # [02:51] <NarfZoid> it's hard to see because it's dark, but you can sorta tell that the gradient is behind the images, how it should be. http://i.imgur.com/H2khp.png
  74. # [02:51] * Quits: SaadIbrahim (~mslfreak@unaffiliated/saadibrahim) (Ping timeout: 252 seconds)
  75. # [02:52] <NarfZoid> But, the actual anchor tags get covered by the gradient div
  76. # [02:52] * Joins: JL235 (~JL235@host86-185-216-215.range86-185.btcentralplus.com)
  77. # [02:52] <NarfZoid> i know i could just abs position the social links too, but i want to avoid that
  78. # [02:53] <divya> NarfZoid: its most likely your images are inlined
  79. # [02:53] <divya> so the clickable area is not around the image only around the line-height.
  80. # [02:53] <divya> make the links inline-block and image itself block
  81. # [02:53] * Joins: joepie91 (~joepie91@86.93.142.233)
  82. # [02:54] <NarfZoid> divya: I tried that, setting them to inline-block so they would still be next to each other
  83. # [02:54] <divya> you could check the boundaries on the sociallinks div and see how it appears on Dragonfly or Chrome dev tools or firebug
  84. # [02:55] <divya> or you should paste your code in jsfiddle.net and reproduce it :)
  85. # [02:55] <NarfZoid> Okay, I'll check those out
  86. # [02:56] <NarfZoid> if I remove the gradient div the links work for the whole image
  87. # [02:57] * Quits: Antonis (~Antonis@unaffiliated/take0n) (Remote host closed the connection)
  88. # [02:58] * Quits: Jayflux1 (~jay_knows@cpc1-dudl6-0-0-cust1981.wolv.cable.virginmedia.com) (Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com ))
  89. # [02:58] * Quits: humanpipecleaner (~chatzilla@wsip-24-234-202-219.lv.lv.cox.net) (Ping timeout: 240 seconds)
  90. # [03:02] <NarfZoid> i'm using firebug and dev tools. The topographic information shows it overlapping the images clearly
  91. # [03:02] <NarfZoid> just not sure why visually it would look fine, but functionality is the opposite
  92. # [03:03] * Quits: thatryan (~thatryan@c-71-202-3-49.hsd1.ca.comcast.net) (Quit: Leaving...)
  93. # [03:04] * Quits: rottenrec1 (~calvin@pool-74-100-117-52.lsanca.dsl-w.verizon.net) (Ping timeout: 240 seconds)
  94. # [03:04] <divya> not sure :/
  95. # [03:08] * Joins: rottenrec (~calvin@pool-74-100-117-52.lsanca.dsl-w.verizon.net)
  96. # [03:22] * Quits: budmaddock (~budmaddoc@essn-4d09cbf7.pool.mediaWays.net) (Ping timeout: 240 seconds)
  97. # [03:23] * Quits: ColKurtz (~ColKurtz@216.86.217.155) (Quit: Leaving)
  98. # [03:24] * Quits: jacobolus (~jacobolus@h-66-166-3-76.lsanca54.static.covad.net) (Ping timeout: 252 seconds)
  99. # [03:26] <NarfZoid> I fixed it by changing some of the markup. took out the gradient div completely, added it to the footer, and then just used a negative margin value to overlap it behind the facebook/twitter links. Now they work :)
  100. # [03:27] <NarfZoid> *added the gradient to the footer
  101. # [03:27] * Joins: strickly (strickly@200.125.87.24)
  102. # [03:30] <divya> sweet
  103. # [03:32] * Joins: wbednarski (~wbednarsk@aesj100.neoplus.adsl.tpnet.pl)
  104. # [03:35] <daleharvey> hrm, is it possible to stop particular elements resizing when ctrl++ / ctrl+- is used?
  105. # [03:36] * Joins: jacobolus (~jacobolus@h-66-166-3-76.lsanca54.static.covad.net)
  106. # [03:37] * Joins: diraol (~diraol@189.38.130.99)
  107. # [03:37] * Joins: budmaddock (~budmaddoc@essn-4db6517e.pool.mediaWays.net)
  108. # [03:40] * Joins: wbednars_ (~wbednarsk@aesj100.neoplus.adsl.tpnet.pl)
  109. # [03:41] * Joins: pandeiro__ (~pandeiro@bd21c422.virtua.com.br)
  110. # [03:43] * Quits: wbednarski (~wbednarsk@aesj100.neoplus.adsl.tpnet.pl) (Ping timeout: 268 seconds)
  111. # [03:43] * pandeiro__ is now known as pandeiro
  112. # [03:44] * Quits: pandeiro_ (~pandeiro@bd21c422.virtua.com.br) (Ping timeout: 252 seconds)
  113. # [03:58] * Joins: msponge (~msponge@18.189.103.48)
  114. # [04:00] * Joins: dissipate (~steve@unaffiliated/dissipate)
  115. # [04:08] * Quits: nassosdim (~NStojan@ppp-94-65-56-196.home.otenet.gr)
  116. # [04:17] * Joins: thatryan (~thatryan@c-71-202-3-49.hsd1.ca.comcast.net)
  117. # [04:22] * Quits: thatryan (~thatryan@c-71-202-3-49.hsd1.ca.comcast.net) (Ping timeout: 276 seconds)
  118. # [04:22] * Joins: Nyteshayd (~Nyteshayd@ip72-211-231-62.oc.oc.cox.net)
  119. # [04:25] * Joins: mike5w3c_ (~MikeSmith@EM114-48-186-67.pool.e-mobile.ne.jp)
  120. # [04:28] * Quits: mike5w3c (~MikeSmith@EM114-48-75-17.pool.e-mobile.ne.jp) (Ping timeout: 255 seconds)
  121. # [04:28] * mike5w3c_ is now known as mike5w3c
  122. # [04:30] * Quits: pandeiro (~pandeiro@bd21c422.virtua.com.br) (Quit: Out of quarters)
  123. # [04:32] * Quits: dissipate (~steve@unaffiliated/dissipate) (Ping timeout: 240 seconds)
  124. # [04:34] * Quits: diraol (~diraol@189.38.130.99) (Quit: Leaving.)
  125. # [04:41] * Quits: tmds (~tmds@gateway/tor-sasl/tmds) (Quit: Leaving)
  126. # [04:52] * Joins: dissipate (~steve@unaffiliated/dissipate)
  127. # [04:54] * Quits: benv (~benv@50-0-80-160.dsl.static.sonic.net) (Quit: Leaving...)
  128. # [04:55] * Quits: dissipate (~steve@unaffiliated/dissipate) (Max SendQ exceeded)
  129. # [04:55] * Joins: dissipate (~steve@unaffiliated/dissipate)
  130. # [04:57] * Quits: moshee (~moshee@unaffiliated/moshee) (Ping timeout: 240 seconds)
  131. # [04:57] * Joins: moshee (~moshee@c-50-135-229-127.hsd1.wa.comcast.net)
  132. # [04:57] * Quits: moshee (~moshee@c-50-135-229-127.hsd1.wa.comcast.net) (Changing host)
  133. # [04:57] * Joins: moshee (~moshee@unaffiliated/moshee)
  134. # [05:03] * Quits: tktiddle (~tim@cpc4-hari15-2-0-cust505.20-2.cable.virginmedia.com) (Remote host closed the connection)
  135. # [05:05] * Joins: dr0id (~andy@unaffiliated/dr0id)
  136. # [05:06] * Joins: teleject (~teleject@cpe-72-177-94-231.austin.res.rr.com)
  137. # [05:11] * Joins: rottenrec1 (~calvin@pool-74-100-117-52.lsanca.dsl-w.verizon.net)
  138. # [05:12] * Quits: rottenrec (~calvin@pool-74-100-117-52.lsanca.dsl-w.verizon.net) (Ping timeout: 240 seconds)
  139. # [05:18] * Joins: [E]sc (~armani@cm218-252-220-28.hkcable.com.hk)
  140. # [05:27] * Quits: wbednars_ (~wbednarsk@aesj100.neoplus.adsl.tpnet.pl) (Remote host closed the connection)
  141. # [05:28] * Joins: humanpipecleaner (~chatzilla@ip68-227-12-51.lv.lv.cox.net)
  142. # [05:35] * Quits: teleject (~teleject@cpe-72-177-94-231.austin.res.rr.com) (Quit: Colloquy for iPhone - http://colloquy.mobi)
  143. # [05:38] * Joins: slaininjektilo (slaininjek@crlspr-69.65.73.39.myacc.net)
  144. # [05:39] * Joins: thatryan (~thatryan@c-71-202-3-49.hsd1.ca.comcast.net)
  145. # [05:40] * Joins: gavin_huang (~gravof@60.179.103.124)
  146. # [05:41] * Quits: jacobolus (~jacobolus@h-66-166-3-76.lsanca54.static.covad.net) (Ping timeout: 264 seconds)
  147. # [05:48] * Joins: jacobolus (~jacobolus@h-66-166-3-76.lsanca54.static.covad.net)
  148. # [05:48] * Joins: diraol (~diraol@189.38.130.99)
  149. # [05:50] * Quits: moshee (~moshee@unaffiliated/moshee) (Ping timeout: 252 seconds)
  150. # [05:50] * Joins: moshee (~moshee@unaffiliated/moshee)
  151. # [05:55] * Joins: DrThodt (~DrThodt@ip68-228-210-138.ph.ph.cox.net)
  152. # [05:59] * Quits: humanpipecleaner (~chatzilla@ip68-227-12-51.lv.lv.cox.net) (Ping timeout: 240 seconds)
  153. # [06:11] * Joins: teleject (~christoph@cpe-72-177-94-231.austin.res.rr.com)
  154. # [06:11] * Quits: kevindanko (~kevindank@c-76-99-192-101.hsd1.de.comcast.net) (Remote host closed the connection)
  155. # [06:12] * Joins: kevindanko (~kevindank@c-76-99-192-101.hsd1.de.comcast.net)
  156. # [06:16] * Quits: ShadowE989 (~ShadowE98@74-47-218-61.dr02.rmny.wv.frontiernet.net) (Ping timeout: 252 seconds)
  157. # [06:16] * Quits: kevindanko (~kevindank@c-76-99-192-101.hsd1.de.comcast.net) (Ping timeout: 240 seconds)
  158. # [06:21] * Quits: webguynow (~webguynow@c-24-1-222-204.hsd1.il.comcast.net)
  159. # [06:22] * Joins: shwetank (~shwetank@122.173.21.205)
  160. # [06:29] * Joins: ShadowE989 (~ShadowE98@74-36-227-143.br1.rmn.wv.frontiernet.net)
  161. # [06:33] * Joins: bAnt_ (~bant@184.152.63.99)
  162. # [06:39] * Quits: diraol (~diraol@189.38.130.99) (Quit: Leaving.)
  163. # [06:39] * Joins: rvmeier (~rodrigo@pc-72-166-86-200.cm.vtr.net)
  164. # [07:05] * Quits: jacobolus (~jacobolus@h-66-166-3-76.lsanca54.static.covad.net) (Remote host closed the connection)
  165. # [07:08] * Quits: JL235 (~JL235@host86-185-216-215.range86-185.btcentralplus.com) (Ping timeout: 240 seconds)
  166. # [07:12] * Quits: joepie91 (~joepie91@86.93.142.233) (Ping timeout: 255 seconds)
  167. # [07:12] * Quits: sephr (~Eli@c-98-235-63-240.hsd1.pa.comcast.net) (Ping timeout: 248 seconds)
  168. # [07:12] * Quits: rvmeier (~rodrigo@pc-72-166-86-200.cm.vtr.net) (Quit: Leaving)
  169. # [07:13] * Joins: jacobolu_ (~jacobolus@pool-71-189-159-67.lsanca.fios.verizon.net)
  170. # [07:14] * Joins: joepie91 (~joepie91@86.93.142.233)
  171. # [07:18] * Joins: LongBeach (~mike@AFontenayssB-152-1-65-121.w82-121.abo.wanadoo.fr)
  172. # [07:19] * Quits: icepick (~icepick@unaffiliated/pitchfork) (Ping timeout: 248 seconds)
  173. # [07:27] * Joins: sephr (~Eli@c-98-235-63-240.hsd1.pa.comcast.net)
  174. # [07:27] * Quits: Lebannen (~lebannen@87.127.122.195) (Ping timeout: 252 seconds)
  175. # [07:30] * Quits: dissipate (~steve@unaffiliated/dissipate) (Ping timeout: 240 seconds)
  176. # [07:33] * Quits: joepie91 (~joepie91@86.93.142.233) (Ping timeout: 276 seconds)
  177. # [07:33] * Joins: Lebannen (~lebannen@87.127.122.195)
  178. # [07:35] * Quits: miketaylr (~miketaylr@cpe-68-203-0-108.austin.res.rr.com) (Quit: miketaylr)
  179. # [07:36] * Quits: obert- (~obert@host230-207-dynamic.46-79-r.retail.telecomitalia.it) (Ping timeout: 240 seconds)
  180. # [07:38] * Quits: shwetank (~shwetank@122.173.21.205) (Ping timeout: 240 seconds)
  181. # [07:42] * Joins: LyoShi (~shiljche@cable-89-216-203-112.dynamic.sbb.rs)
  182. # [07:42] * Quits: Lebannen (~lebannen@87.127.122.195) (Ping timeout: 248 seconds)
  183. # [07:47] * Joins: Lebannen (~lebannen@87.127.122.195)
  184. # [07:48] * Quits: LyoShi (~shiljche@cable-89-216-203-112.dynamic.sbb.rs) (Remote host closed the connection)
  185. # [07:54] * Quits: thatryan (~thatryan@c-71-202-3-49.hsd1.ca.comcast.net) (Quit: Leaving...)
  186. # [07:55] * Quits: bAnt_ (~bant@184.152.63.99) (Remote host closed the connection)
  187. # [07:57] * Quits: sephr (~Eli@c-98-235-63-240.hsd1.pa.comcast.net) (Ping timeout: 240 seconds)
  188. # [08:04] * Joins: Lyoshi1 (~Adium@cable-89-216-203-112.dynamic.sbb.rs)
  189. # [08:05] * Quits: tonesfrommars (~tonesfrom@adsl-75-50-147-232.dsl.lsan03.sbcglobal.net) (Quit: KVIrc 4.0.1 Insomnia http://www.kvirc.net/)
  190. # [08:07] * Quits: Nyteshayd (~Nyteshayd@ip72-211-231-62.oc.oc.cox.net)
  191. # [08:13] * Quits: doritoDan (~doritoDan@unaffiliated/doritodan) (Quit: I love web and I love doritos. Coincidence? You decide.)
  192. # [08:14] * Quits: kadiks (~kadiks@APuteaux-652-1-214-73.w90-44.abo.wanadoo.fr) (Quit: Leaving)
  193. # [08:20] * Quits: teleject (~christoph@cpe-72-177-94-231.austin.res.rr.com) (Remote host closed the connection)
  194. # [08:21] * Joins: teleject (~christoph@cpe-72-177-94-231.austin.res.rr.com)
  195. # [08:21] * Joins: decthomas (~decthomas@d5152D79D.static.telenet.be)
  196. # [08:24] <Lyoshi1> If you were building a car listings website, like Yahoo Used Cars for example, would you use Microdata attributes (http://schema.org/ > product) only on a Car Detail page, or you would place them on the page with a list of results (SRP), as well? BTW, I know that only one "product" per page is supported, but maybe multiple "offers" would do here…
  197. # [08:25] * Quits: NarfZoid (~cobbman@38.73.129.80) (Quit: Leaving)
  198. # [08:26] * Joins: BigKing (~BigKing@dslb-088-077-165-062.pools.arcor-ip.net)
  199. # [08:36] * Joins: shwetank (~shwetank@122.173.74.1)
  200. # [08:39] * Joins: thatryan (~thatryan@c-71-202-3-49.hsd1.ca.comcast.net)
  201. # [08:41] * Joins: solocio (~solocio@p5B2FC727.dip.t-dialin.net)
  202. # [08:42] * Quits: jacobolu_ (~jacobolus@pool-71-189-159-67.lsanca.fios.verizon.net) (Remote host closed the connection)
  203. # [08:44] * Joins: dissipate (~steve@unaffiliated/dissipate)
  204. # [08:49] * Joins: Ms2ger (~Ms2ger@91.181.167.105)
  205. # [08:58] * Joins: icepick (~icepick@unaffiliated/pitchfork)
  206. # [08:58] * Quits: patcito (~123@190.237.239.205) (Read error: Connection reset by peer)
  207. # [08:58] * Quits: Lyoshi1 (~Adium@cable-89-216-203-112.dynamic.sbb.rs) (Quit: Leaving.)
  208. # [09:00] * Quits: beckybunny (~becky@host-92-23-131-114.as13285.net) (Quit: beckybunny)
  209. # [09:00] * Quits: thatryan (~thatryan@c-71-202-3-49.hsd1.ca.comcast.net) (Quit: Leaving...)
  210. # [09:02] * Joins: sebadoh (~sebadoh@c-98-210-49-147.hsd1.ca.comcast.net)
  211. # [09:04] * Quits: tw2113 (~tw2113@fedora/tw2113) (Quit: Nice Scotty, now beam my clothes up too!)
  212. # [09:12] * Joins: manuchill (~mstalfoor@83.232.96.217)
  213. # [09:14] * Parts: leftblank (~leftblank@host109-149-198-5.range109-149.btcentralplus.com)
  214. # [09:15] * Joins: beckybunny (~becky@host-92-23-131-114.as13285.net)
  215. # [09:15] * Joins: HintPL (~Olgierd_G@bov181.neoplus.adsl.tpnet.pl)
  216. # [09:15] * Quits: insin (~insin@host86-148-254-166.range86-148.btcentralplus.com) (Quit: What's the point in giving us haaaaannnds?)
  217. # [09:16] * Parts: HintPL (~Olgierd_G@bov181.neoplus.adsl.tpnet.pl)
  218. # [09:16] * Joins: djazz1 (~djazz@78-70-243-240-no186.tbcn.telia.com)
  219. # [09:16] * Joins: doritoDan (~doritoDan@unaffiliated/doritodan)
  220. # [09:17] * Joins: _srp (~quassel@115.99.249.182)
  221. # [09:17] * djazz1 is now known as djazz
  222. # [09:30] * Joins: nonge_ (~nonge@p5082AB7A.dip.t-dialin.net)
  223. # [09:30] * Quits: beckybunny (~becky@host-92-23-131-114.as13285.net) (Quit: beckybunny)
  224. # [09:30] * Quits: doritoDan (~doritoDan@unaffiliated/doritodan) (Ping timeout: 240 seconds)
  225. # [09:30] * Joins: doritoDan_ (~doritoDan@81-232-79-127-no46.business.telia.com)
  226. # [09:30] * Quits: devongovett (~devongove@pppoe-68-142-43-29.gmavt.net) (Quit: devongovett)
  227. # [09:33] * Joins: victorporof (~victorpor@79.112.124.251)
  228. # [09:33] * Quits: nonge (~nonge@p5082A8AE.dip.t-dialin.net) (Ping timeout: 240 seconds)
  229. # [09:36] * Quits: jochen__ (jochen@nat/google/x-papzndlcmlivwwdv) (Remote host closed the connection)
  230. # [09:36] * Joins: jochen__ (jochen@nat/google/x-frhqfrjpnzekaoqk)
  231. # [09:39] * Joins: Stava (~Stava@ip232-rld-sdt.tyfon.se)
  232. # [09:39] * Joins: kevindanko (~kevindank@c-76-99-192-101.hsd1.de.comcast.net)
  233. # [09:40] * Quits: kevindanko (~kevindank@c-76-99-192-101.hsd1.de.comcast.net) (Read error: Connection reset by peer)
  234. # [09:40] * Joins: kevindanko (~kevindank@c-76-99-192-101.hsd1.de.comcast.net)
  235. # [09:52] * Joins: mishunov (~spliter@77.88.72.162)
  236. # [09:52] * Quits: kevindanko (~kevindank@c-76-99-192-101.hsd1.de.comcast.net) (Ping timeout: 240 seconds)
  237. # [09:53] * Joins: mr_lou (~sirlou@0x555321d8.adsl.cybercity.dk)
  238. # [09:58] * Joins: PalleZingmark (~Adium@217.13.228.226)
  239. # [10:03] * Quits: doritoDan_ (~doritoDan@81-232-79-127-no46.business.telia.com) (Ping timeout: 252 seconds)
  240. # [10:05] * Joins: doritoDan (~doritoDan@unaffiliated/doritodan)
  241. # [10:06] * Quits: BigKing (~BigKing@dslb-088-077-165-062.pools.arcor-ip.net) (Ping timeout: 244 seconds)
  242. # [10:07] * Joins: spliter_ (~spliter@77.88.72.162)
  243. # [10:11] * Joins: Jahan (~IceChat9@2a02:200:102d:2:b562:331b:b6ef:a73a)
  244. # [10:13] * Joins: Nassosdim (~nassosdim@ppp-94-65-56-196.home.otenet.gr)
  245. # [10:14] * Quits: mishunov (~spliter@77.88.72.162) (Quit: mishunov)
  246. # [10:14] * Quits: buribu (~buribu@unaffiliated/buribu) (Read error: Connection reset by peer)
  247. # [10:15] <Jahan> In HTML5 <canvas> are rectangles are drawn from bottom left to top right and images are drawn from top right to bottom left?
  248. # [10:15] * Quits: prodn (~rakuen@178.174.190.55) (Ping timeout: 252 seconds)
  249. # [10:15] * Joins: prodn (~rakuen@178.174.190.55)
  250. # [10:17] <moo-_-> Jahan: everything is drawn from top left
  251. # [10:17] <moo-_-> except text (drawString)
  252. # [10:17] <moo-_-> I believe
  253. # [10:17] * Joins: obert- (~obert@host230-207-dynamic.46-79-r.retail.telecomitalia.it)
  254. # [10:17] * Quits: spliter_ (~spliter@77.88.72.162) (Quit: spliter_)
  255. # [10:18] * Joins: mishunov (~spliter@77.88.72.162)
  256. # [10:20] <Jahan> For fillRect I set the starting point x and y and define the length and height. and it draws from bottom left to top right
  257. # [10:21] <moo-_-> Jahan: have you applied some transformations on canvas before the call?
  258. # [10:21] <moo-_-> you need to clear them properly using push and pop state stack
  259. # [10:21] <moo-_-> Jahan: can you repeat the example in jsfiddle.net?
  260. # [10:22] * Quits: _srp (~quassel@115.99.249.182) (Remote host closed the connection)
  261. # [10:22] <Jahan> I am using transformations but am popping back the states correctly
  262. # [10:23] <moo-_-> Jahan: which browser you are using?
  263. # [10:23] <moo-_-> (please don't say IE)
  264. # [10:23] <moo-_-> :)
  265. # [10:24] <moo-_-> some IE Flash <canvas> hack is buggy
  266. # [10:25] <Jahan> nope am testing with latest ff.
  267. # [10:26] <Jahan> let me try and get some code, because the image doesn't rotate as it should either
  268. # [10:28] * Quits: mike5w3c (~MikeSmith@EM114-48-186-67.pool.e-mobile.ne.jp) (Ping timeout: 244 seconds)
  269. # [10:29] <CapnKernel> Hello folks. Ok if I ask a Javascript question here? (I've googled for the answer)
  270. # [10:30] <CapnKernel> Any way I can turn a string into a reference to the javascript function of the same name?
  271. # [10:30] <Ms2ger> window["foo"]()
  272. # [10:34] <CapnKernel> Thank you
  273. # [10:34] <CapnKernel> But I don't quite understand.
  274. # [10:34] <CapnKernel> If I have "fn_str" as my string containing the name of the function, what magic can I do to get "fn_ref", so I can execute "fn_ref()"?
  275. # [10:34] <moo-_-> CapnKernel: exactly as stated above
  276. # [10:34] <CapnKernel> Is "window" a DOM variable?
  277. # [10:34] * Joins: mike5w3c (~MikeSmith@EM1-113-118-139.pool.e-mobile.ne.jp)
  278. # [10:34] <moo-_-> window object holds global Javascript namespace
  279. # [10:35] <moo-_-> it's the magic
  280. # [10:35] <moo-_-> window.foo
  281. # [10:35] <moo-_-> var foo
  282. # [10:35] <CapnKernel> Oh I see. I'll give it a try.
  283. # [10:35] <moo-_-> are equal
  284. # [10:35] <moo-_-> on global level
  285. # [10:36] * Joins: monteslu_ (~monteslu@ip68-109-174-213.ph.ph.cox.net)
  286. # [10:36] * Joins: martndemus (~martndemu@h254064.upc-h.chello.nl)
  287. # [10:36] * Quits: martndemus (~martndemu@h254064.upc-h.chello.nl) (Remote host closed the connection)
  288. # [10:36] * Joins: whitman (~whitman@87-194-159-116.bethere.co.uk)
  289. # [10:37] * Quits: moshee (~moshee@unaffiliated/moshee) (Ping timeout: 240 seconds)
  290. # [10:37] * Joins: moshee (~moshee@c-50-135-229-127.hsd1.wa.comcast.net)
  291. # [10:37] * Quits: moshee (~moshee@c-50-135-229-127.hsd1.wa.comcast.net) (Changing host)
  292. # [10:37] * Joins: moshee (~moshee@unaffiliated/moshee)
  293. # [10:37] <CapnKernel> Does window["foo"]() give me a reference, or actually evaluate the "foo" function?
  294. # [10:37] * Joins: martndemus (~martndemu@h254064.upc-h.chello.nl)
  295. # [10:39] * Quits: monteslu (~monteslu@ip68-109-174-213.ph.ph.cox.net) (Ping timeout: 240 seconds)
  296. # [10:40] <Ms2ger> window["foo"] gets you a reference
  297. # [10:40] <Ms2ger> The () executes it
  298. # [10:41] <CapnKernel> It's not working (and I'm a newbie :-( )
  299. # [10:41] <CapnKernel> Example: http://paste.pocoo.org/show/526756/
  300. # [10:41] <CapnKernel> (I haven't tried running that)
  301. # [10:41] <Ms2ger> Try declaring myfunc outside the if
  302. # [10:41] <CapnKernel> My code is sitting inside an anonymous function which is run when the window is loaded.
  303. # [10:42] <Ms2ger> Ah
  304. # [10:42] <Nassosdim> I have a feeling that you forgot a curly brace and a parentheses
  305. # [10:42] <CapnKernel> Yes I think that would work, but I have vars inside the anonymous function that I'd like myfunc to access
  306. # [10:42] <Nassosdim> dunno if it matters
  307. # [10:42] <CapnKernel> Can I do something with "this" inside the anonymous function?
  308. # [10:43] <Ms2ger> Mm, maybe
  309. # [10:44] <CapnKernel> I appreciate your help, but I'm not comprehending what you're saying.
  310. # [10:44] <CapnKernel> For example, if I've forgotten a brace and a pair of parentheses, where do you think they should do?
  311. # [10:44] <CapnKernel> *go?
  312. # [10:45] <CapnKernel> Would "window.onload" help me? (That's where the anonymous function is being stuffed. myfunc should be inside that)
  313. # [10:46] <Ms2ger> You could use something like http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1287
  314. # [10:49] <CapnKernel> Thanks, I'll give that a go.
  315. # [10:56] * Quits: victorporof (~victorpor@79.112.124.251) (Remote host closed the connection)
  316. # [10:59] * Joins: Mahoek (~Mahoek@ip51ceb6d4.adsl-surfen.hetnet.nl)
  317. # [11:00] * Joins: sean` (~seankoole@D97A9E4C.cm-3-3c.dynamic.ziggo.nl)
  318. # [11:02] * Joins: Shusshu (~shu@ip51cd1542.speed.planet.nl)
  319. # [11:04] * Joins: seutje (~sdejonghe@drupal.org/user/264148/view)
  320. # [11:07] * Quits: Jahan (~IceChat9@2a02:200:102d:2:b562:331b:b6ef:a73a) (Quit: Easy as 3.14159265358979323846...)
  321. # [11:07] * Joins: cocoadaemon (~cocoadaem@2a01:e35:8a99:e90:20d:93ff:fe3b:868c)
  322. # [11:09] <CapnKernel> I'm not getting very far with this string-to-function thing :-(
  323. # [11:09] <CapnKernel> I didn't see anything in the live DOM viewer that looked like the function. I also had a look using Firebug.
  324. # [11:11] <CapnKernel> It seems that every entry in the DOM has an attribute called window, which is I guess how window as a global object is done. Fair enough.
  325. # [11:12] <CapnKernel> I'm looking in window for something that is correlated with this: window.addEventListener('load', function() {
  326. # [11:12] <CapnKernel> For example, window.onload or something.
  327. # [11:12] <CapnKernel> But not seeing anything.
  328. # [11:20] * Quits: matijsb (u2278@gateway/web/irccloud.com/x-otcqmarlciydyszy) (Quit: Connection closed for inactivity)
  329. # [11:33] * Joins: squeakytoy (hidden-use@gateway.netset.se)
  330. # [11:34] * Parts: djazz (~djazz@78-70-243-240-no186.tbcn.telia.com)
  331. # [11:39] <Pomax> string-to-function? you mean using the new Function equivalent of eval?
  332. # [11:50] * Quits: sean` (~seankoole@D97A9E4C.cm-3-3c.dynamic.ziggo.nl) (Quit: Ik ga weg)
  333. # [11:52] * Quits: DrThodt (~DrThodt@ip68-228-210-138.ph.ph.cox.net) (Remote host closed the connection)
  334. # [11:55] <Pomax> hm, scrolled up, CapnKernel, if you have a function like "function globalMoo" and you have a string "var fn_str = 'globalMoo'" you can call that function by using window[fn_str]();
  335. # [11:57] <Pomax> because in JavaScript a prototype property can be called either as object.property or object["propertyname"]. So we can either call window.globalMoo, window["globalMoo"] or window[x] with var x = "globalMoo" and they'll all do the same thing.
  336. # [11:57] <Pomax> also remember that a property is a property is a property is only a function is you add the execution operator, ()
  337. # [11:57] <Pomax> (possibly with some arguments)
  338. # [11:57] <Pomax> *if you add
  339. # [11:58] * Joins: Jonadabe (~Jonadabe@bl10-165-94.dsl.telepac.pt)
  340. # [11:58] * Joins: DrThodt (~DrThodt@ip68-228-210-138.ph.ph.cox.net)
  341. # [12:00] * Joins: zampano (~Jim@unaffiliated/zampano)
  342. # [12:00] * Quits: hsbot (~hsbot@46-38-167-162.static.cloud-ips.co.uk) (Quit: lol?)
  343. # [12:00] * Joins: hsbot (~hsbot@46-38-167-162.static.cloud-ips.co.uk)
  344. # [12:00] * Quits: msponge (~msponge@18.189.103.48) (Quit: msponge)
  345. # [12:02] <moo-_-> globalMoo
  346. # [12:02] <moo-_-> sounds awesome
  347. # [12:02] * Quits: PSJunkie (ident@unaffiliated/playstationjunki) (Read error: Connection reset by peer)
  348. # [12:02] * Joins: RobGroove (ident@cpc6-mapp10-2-0-cust184.12-4.cable.virginmedia.com)
  349. # [12:02] * Quits: RobGroove (ident@cpc6-mapp10-2-0-cust184.12-4.cable.virginmedia.com) (Changing host)
  350. # [12:02] * Joins: RobGroove (ident@unaffiliated/playstationjunki)
  351. # [12:02] * RobGroove is now known as PSJunkie
  352. # [12:05] <Pomax> I try to work in Moo as much as possible.
  353. # [12:05] <Pomax> whoever decided on foo/bar could have done a better job.
  354. # [12:05] <moo-_-> definitely
  355. # [12:08] * Joins: humanpipecleaner (~chatzilla@ip68-227-12-51.lv.lv.cox.net)
  356. # [12:08] * Quits: hsbot (~hsbot@46-38-167-162.static.cloud-ips.co.uk) (Quit: brb)
  357. # [12:08] * Joins: hsbot (~hsbot@46-38-167-162.static.cloud-ips.co.uk)
  358. # [12:09] * Quits: hsbot (~hsbot@46-38-167-162.static.cloud-ips.co.uk) (Remote host closed the connection)
  359. # [12:09] * Joins: hsbot (~hsbot@46-38-167-162.static.cloud-ips.co.uk)
  360. # [12:09] <CapnKernel> Pomax: Hey thanks!
  361. # [12:10] * Quits: hsbot (~hsbot@46-38-167-162.static.cloud-ips.co.uk) (Remote host closed the connection)
  362. # [12:10] <CapnKernel> However my functions are inside an anonymous function that gets called on window load.
  363. # [12:10] * Joins: hsbot (~hsbot@46-38-167-162.static.cloud-ips.co.uk)
  364. # [12:10] <CapnKernel> And I can't work out how to get there from the global window var.
  365. # [12:10] <Pomax> that is not a problem. you can copy over references.
  366. # [12:10] <Pomax> window.ohMyGodNewFunctionLol = dynamicobject.lollerskatepies;
  367. # [12:10] <Pomax> and done.
  368. # [12:11] <CapnKernel> I first have to get the reference.
  369. # [12:11] <CapnKernel> Did you see my sample? (It's not too far from what I'm trying to do)
  370. # [12:11] <CapnKernel> http://paste.pocoo.org/show/526756/
  371. # [12:12] <CapnKernel> Obviously "fref = window[fname]" needs some work :-)
  372. # [12:13] <CapnKernel> These functions are local in scope: I can go "myfunc()" just fine.
  373. # [12:13] * Quits: whitman (~whitman@87-194-159-116.bethere.co.uk)
  374. # [12:16] * Quits: [E]sc (~armani@cm218-252-220-28.hkcable.com.hk) (Remote host closed the connection)
  375. # [12:16] <CapnKernel> Pomax: Still there?
  376. # [12:19] * Joins: [E]sc (~armani@cm218-252-220-28.hkcable.com.hk)
  377. # [12:19] * Joins: JoshManders_ (~Josh@unaffiliated/killswitch)
  378. # [12:20] * Quits: zampano (~Jim@unaffiliated/zampano) (Read error: Connection reset by peer)
  379. # [12:22] <CapnKernel> I nearly got an answer... :-(
  380. # [12:33] * Joins: zampano_ (~Jim@unaffiliated/zampano)
  381. # [12:33] * Joins: Jackneill (~Jackneill@unaffiliated/jackneill)
  382. # [12:37] * Joins: _srp (~quassel@115.99.249.182)
  383. # [12:41] <_srp> hi, i wanted a offline html5 reference document (a pdf or a chm).. where can i find one..?
  384. # [12:44] <CapnKernel> You could try looking on these sites: http://wsc.opera.com/, http://www.htmlhelp.com/, http://css-discuss.incutio.com/, http://www.brainjar.com/, www.htmldog.com/, http://css.maxdesign.com.au/
  385. # [12:45] <CapnKernel> This also gives meaningful results: https://www.google.com/search?q=html5+reference+pdf
  386. # [12:46] * CapnKernel wishes his string->function question was Googlable.
  387. # [12:46] * Quits: Ms2ger (~Ms2ger@91.181.167.105) (Quit: bbl)
  388. # [12:48] * Joins: henrikkok (~henrikkok@3306ds3-amb.0.fullrate.dk)
  389. # [12:49] * Joins: matijsb (u2278@gateway/web/irccloud.com/x-okzyhlgtjoyugvki)
  390. # [12:50] * Quits: humanpipecleaner (~chatzilla@ip68-227-12-51.lv.lv.cox.net) (Ping timeout: 255 seconds)
  391. # [12:50] * Quits: _srp (~quassel@115.99.249.182) (Remote host closed the connection)
  392. # [13:07] * Quits: JoshManders_ (~Josh@unaffiliated/killswitch) (Ping timeout: 276 seconds)
  393. # [13:08] * Quits: slaininjektilo (slaininjek@crlspr-69.65.73.39.myacc.net)
  394. # [13:11] * Quits: DEac- (~deac@81.16.104.86) (Remote host closed the connection)
  395. # [13:11] * Joins: lulzilla (~theCode@61.12.14.178)
  396. # [13:22] * Joins: glcrazy (~SiRiuS@79.119.95.103)
  397. # [13:24] <Pomax> aha. let me write you a jsfiddle with this
  398. # [13:24] <CapnKernel> Pomax: Still there?
  399. # [13:25] <CapnKernel> Cool!
  400. # [13:25] * Joins: martndem_ (~martndemu@h254064.upc-h.chello.nl)
  401. # [13:27] * Quits: soulraven (~soulraven@79.117.214.12) (Quit: Leaving.)
  402. # [13:27] * Joins: uu (~uu@180.95.152.29)
  403. # [13:28] * Quits: martndemus (~martndemu@h254064.upc-h.chello.nl) (Ping timeout: 252 seconds)
  404. # [13:29] * Joins: serroba (~serroba@190-20-242-2.baf.movistar.cl)
  405. # [13:29] * CapnKernel goes off to find out what a jsfiddle is
  406. # [13:29] * Quits: glcrazy (~SiRiuS@79.119.95.103) (Remote host closed the connection)
  407. # [13:30] <CapnKernel> Hmm, haven't seen it before, but I think I'm going to like it
  408. # [13:30] * Quits: serroba (~serroba@190-20-242-2.baf.movistar.cl) (Remote host closed the connection)
  409. # [13:31] * Quits: dissipate (~steve@unaffiliated/dissipate) (Ping timeout: 248 seconds)
  410. # [13:31] * Joins: serroba (~serroba@190-20-242-2.baf.movistar.cl)
  411. # [13:32] <Pomax> http://jsfiddle.net/4xEhP/
  412. # [13:34] <Pomax> or rather, http://jsfiddle.net/4xEhP/1/
  413. # [13:34] <Pomax> because otherwise "myfunc" clashes
  414. # [13:34] <CapnKernel> I'm trying to understand it now...
  415. # [13:35] <Pomax> first we define the function name as a string, fn_Str
  416. # [13:35] <CapnKernel> Yep
  417. # [13:35] <Pomax> then we make an anonymous new function based on some string content, through the "sneaky" approach of making a Function that returns an object.
  418. # [13:36] <Pomax> that object has one property, our function string, with as value an actual function definition.
  419. # [13:36] <CapnKernel> I can see where myfunc is used (in the div's innerHtml) but I can't see where it's defined.
  420. # [13:36] * Quits: martndem_ (~martndemu@h254064.upc-h.chello.nl) (Ping timeout: 252 seconds)
  421. # [13:36] <Pomax> so when the function is run, it returns { <fn_str>: <new function that actually works}
  422. # [13:36] <CapnKernel> So the anonymous function returns a "myfunc" function?
  423. # [13:37] <Pomax> so the function's reference is functioncall()[fn_str], or, directly, functioncall().myfunc
  424. # [13:37] * Joins: ciro_nunes (c8ba7e3a@gateway/web/freenode/ip.200.186.126.58)
  425. # [13:37] <Pomax> (since fn_str resolves to the string "myfunc")
  426. # [13:37] <Pomax> no, the anonymous function returns an object much like this:
  427. # [13:38] <Pomax> {a: function() { alert("lol"); }
  428. # [13:38] <Pomax> except 'a' is whatever fn_str is, and the function has, in this case, a more elaborate function
  429. # [13:38] * Joins: martndemus (~martndemu@h254064.upc-h.chello.nl)
  430. # [13:38] <CapnKernel> I'm having trouble separating the clever, from the necessary.
  431. # [13:39] <CapnKernel> The "{a: function() { alert("lol"); }" part I understand.
  432. # [13:40] <CapnKernel> Look up "a" in that array, and you'll get a function which can be evaluated by appending ().
  433. # [13:40] <Pomax> it's not an array
  434. # [13:40] <Pomax> there are no arrays here.
  435. # [13:40] <CapnKernel> object?
  436. # [13:40] <Pomax> there are JavaScript objects.
  437. # [13:41] <CapnKernel> (Sorry, newbie here)
  438. # [13:41] <Pomax> which is a HUGE difference in this case
  439. # [13:41] <Pomax> new Function("...") defines a new function with, as body, whatever string you pass it
  440. # [13:41] * Joins: silentimp (~silentimp@88-87-200-46.pool.ukrtel.net)
  441. # [13:41] <CapnKernel> So "a" is the name of an attribute of the object?
  442. # [13:41] <Pomax> correct
  443. # [13:42] <CapnKernel> With "function() { alert("lol");" being the value of that attribute.
  444. # [13:42] <CapnKernel> Oops, with "function() { alert("lol");}" being the value of that attribute.
  445. # [13:42] <Pomax> in order to make new Function() do what eval() normally does, but without using eval (thus making it a tiny bit safer, because it'll simply reject the entire code block if it has an error, rather than only the last erroring statement) we have to make it return something sensible
  446. # [13:42] <CapnKernel> Oops2: I nearly understood but now I don't, because your line {a: function() { alert("lol"); } has two x { but only one }
  447. # [13:43] <CapnKernel> I'm not trolling, I'm genuinely trying to understand.
  448. # [13:43] <Pomax> so concisely, this code says: var globalMoo = new Function("return { attribute: function(){} };")
  449. # [13:43] <CapnKernel> Should it be {a: function() { alert("lol"); }}
  450. # [13:43] <lulzilla> guys, can you name some of the best html5 developers in the world?
  451. # [13:44] <Pomax> yes it should.
  452. # [13:44] <Pomax> lulzilla: what does "best" mean?
  453. # [13:45] <CapnKernel> It's like "what's the best editor?" or "what is the best linux distro". Stuff trolls say :-)
  454. # [13:45] <Pomax> or people who genuinely want to know something, but don't realise the phrasing doesn't actually allow for an answer.
  455. # [13:45] <CapnKernel> Yes that one too
  456. # [13:45] * Quits: martndemus (~martndemu@h254064.upc-h.chello.nl) (Remote host closed the connection)
  457. # [13:45] <Pomax> now, once we have this new Function compiled, we need to run it in order to get at the object it's supposed to build.
  458. # [13:46] <CapnKernel> I have a question
  459. # [13:46] <Pomax> we could do it the way I show it here, but in production I'd probably instead use something like this:
  460. # [13:46] <Pomax> var actualfunctionreference = ((new Function("return { "fn_str+":...}")())[fn_str];
  461. # [13:47] <CapnKernel> Please see my paste: http://paste.pocoo.org/show/526756/
  462. # [13:47] <Pomax> which does three things at once.
  463. # [13:47] * Joins: martndemus (~martndemu@h254064.upc-h.chello.nl)
  464. # [13:47] <CapnKernel> My myfunc() function may be many dozens of lines long.
  465. # [13:47] <Pomax> that is not a problem in the slightest, as long as you can stick it in a string.
  466. # [13:47] <CapnKernel> Is there any way I can keep it separate from the thingy which generates the reference?
  467. # [13:47] <CapnKernel> So the function has to be in the form of a string constant, rather than appearing in the source as a function?
  468. # [13:47] <Pomax> sure. Just have a var functionBody = "...."; functionBody += "...."; etc.
  469. # [13:48] <Pomax> not constant.
  470. # [13:48] <CapnKernel> It can't appear as a normal function?
  471. # [13:48] <Pomax> new Function simplyu takes a string as argument, representing the function body text
  472. # [13:48] <CapnKernel> I understand that, thank you.
  473. # [13:48] <Pomax> the problem with "a normal function" is that you already know what it looks like, and what all the code is, so normal functions and dynamic functions are mutually exclusive things.
  474. # [13:48] <CapnKernel> What if I want to keep myfunc as a function, and not start with a string?
  475. # [13:50] <Pomax> either you know what the code looks like, and you already wrote it in your source code (in which case we can do: window["function name"] = function(...) {...} and be done immediatley) or you don't, in which case it's an eval or new Function treatment
  476. # [13:50] <CapnKernel> As Ms2ger pointed out, if the function were outside the if, it would be trivial: window.myfunc
  477. # [13:50] <Pomax> if doesn't change the scope.
  478. # [13:50] <CapnKernel> Can I write window["function name"] = myfunc?
  479. # [13:50] <Pomax> if(a) { doThis = function(x,y) { return x+y; }}
  480. # [13:51] <Pomax> this will create a global property "doThis" that you can call as function
  481. # [13:51] <CapnKernel> Where myfunc is inside the scope of the if()? Will evaluating it later allow it to access the local vars inside the if, even though the function was located via window?
  482. # [13:51] <Pomax> sure, then we get this:
  483. # [13:52] * Joins: Vier (~Vier@120.152.7.8)
  484. # [13:53] <Pomax> http://jsfiddle.net/4xEhP/2/
  485. # [13:53] <CapnKernel> I'm hoping myfunc() can be an ordinary function lurking in the anon fn inside the if, and the *reference* to the function is in window. Can I do that?
  486. # [13:53] <CapnKernel> And I can call the func with window.myfunc()
  487. # [13:53] <CapnKernel> Oh actually, window["function name"](), as otherwise it misses the point of mapping a string to a function
  488. # [13:54] * Parts: manuchill (~mstalfoor@83.232.96.217) ("Ex-Chat")
  489. # [13:54] <Pomax> yeah, have a look at that fiddle and see if that's what you mean
  490. # [13:54] * Joins: solocio_ (~solocio@p5B2FC727.dip.t-dialin.net)
  491. # [13:55] * Quits: hsbot (~hsbot@46-38-167-162.static.cloud-ips.co.uk) (*.net *.split)
  492. # [13:55] * Quits: Shusshu (~shu@ip51cd1542.speed.planet.nl) (*.net *.split)
  493. # [13:55] * Quits: solocio (~solocio@p5B2FC727.dip.t-dialin.net) (*.net *.split)
  494. # [13:55] * Quits: kennyluck (~kennyluck@114-25-244-221.dynamic.hinet.net) (*.net *.split)
  495. # [13:55] * Quits: Kichael (~Kichael@70-36-49-167.dyn.novuscom.net) (*.net *.split)
  496. # [13:55] * solocio_ is now known as solocio
  497. # [13:55] * Joins: [1]Kichael (~Kichael@70-36-49-167.dyn.novuscom.net)
  498. # [13:55] <Pomax> we can trivially get rid of the variable, but since stating "var myfunc = ..." is window.myfunc = ..., it wouldn't make much difference.
  499. # [13:55] <CapnKernel> Ok, thank you@
  500. # [13:55] <CapnKernel> !
  501. # [13:55] <Pomax> np.
  502. # [13:55] <Pomax> (now for a cup of coffee =)
  503. # [13:56] <Vier> Var myfunc means declare a new local var
  504. # [13:56] <Pomax> close
  505. # [13:56] <Pomax> "var varname" means "declare a variable, scoped to the current scope"
  506. # [13:56] <Pomax> which at the highest level is global scope, bound to the omnipresent "window" object
  507. # [13:57] <Vier> Yeah, so why would car myfunc be the same as window.myfunc?
  508. # [13:57] <Pomax> it's not.
  509. # [13:57] * Quits: silentimp (~silentimp@88-87-200-46.pool.ukrtel.net) (Ping timeout: 240 seconds)
  510. # [13:57] <Pomax> note *where* the "var myfunc" is.
  511. # [13:58] <Vier> Mmk, ill take your word cuz im tired and didn't get much background before jumping in
  512. # [13:58] <Pomax> it's only the same because of where it's found in the code example (global scope level)
  513. # [13:59] <Pomax> but it's incredibly good practice to get in the habit of adding "var" in front of everything you declare, so that you never run into name clashing. even if you need a global var, declare it as "var happything" outside any function.
  514. # [13:59] * Joins: kennyluck (~kennyluck@114-25-244-221.dynamic.hinet.net)
  515. # [14:01] * Joins: Shusshu (~shu@ip51cd1542.speed.planet.nl)
  516. # [14:02] * Joins: danishman (~kvirc@0x5da0ec2a.cpe.ge-0-1-0-1104.ronnqu1.customer.tele.dk)
  517. # [14:05] * Quits: feeeR (~ircap@3.58.18.95.dynamic.jazztel.es) (Read error: Connection reset by peer)
  518. # [14:05] <CapnKernel> I understand that there are two myfuncs. The global one is a reference to the local one.
  519. # [14:06] <CapnKernel> (I'm off fiddling)
  520. # [14:06] * Joins: beckybunny (~becky@host-92-23-131-114.as13285.net)
  521. # [14:07] <Pomax> sort of - the function is technically scope-independent, it simply gets garbage collected when all references to it are gone.
  522. # [14:07] <Pomax> so you create a function with a local reference, and also a global reference.
  523. # [14:07] * Quits: martndemus (~martndemu@h254064.upc-h.chello.nl) (Remote host closed the connection)
  524. # [14:07] <Vier> CapnKernal: I don't think that's quite the right terminology there... also, I hope myfunc isn't what your actually calling your variables
  525. # [14:08] <Pomax> except it gets more fun: javascript scoping is based on functions, not based on {}
  526. # [14:08] <Pomax> so what you call a local reference is technically also a global reference.
  527. # [14:08] <CapnKernel> Ahh, there are two references, and one function
  528. # [14:08] <CapnKernel> Pythonesque :-)
  529. # [14:09] <Pomax> most scripting langauges-esque =)
  530. # [14:09] <Pomax> (javascript is fairly different from most languages in both how it deals with scoping, and how it does with objects)
  531. # [14:09] <Pomax> *deals with
  532. # [14:09] * Parts: Vier (~Vier@120.152.7.8) ("Leaving")
  533. # [14:09] <CapnKernel> The second div is not becoming 789. What silly thing am I doing/not doing? http://jsfiddle.net/4xEhP/9/
  534. # [14:10] <CapnKernel> Does fiddle not support the document load event?
  535. # [14:11] * Joins: martndemus (~martndemu@h254064.upc-h.chello.nl)
  536. # [14:11] <Pomax> don't use "load"
  537. # [14:11] <chachan> guys, why could I get "canceled" when I try to use audio tag?. The "canceled" appears after download the file
  538. # [14:11] <CapnKernel> What do I use instead?
  539. # [14:12] <Pomax> use document.addEventListener("DOMContentLoaded", ..., false);
  540. # [14:12] <CapnKernel> Interesting, ok.
  541. # [14:12] <Pomax> load is from the era of "onload"
  542. # [14:12] * Joins: whitman (~whitman@87-194-159-116.bethere.co.uk)
  543. # [14:12] <Pomax> it's been mostly superceded-replaced by actual events like the DOMContentLoaded event
  544. # [14:12] <CapnKernel> Yes, works much better, thanks!
  545. # [14:13] * Joins: martndem_ (~martndemu@h254064.upc-h.chello.nl)
  546. # [14:13] * Joins: diraol (~diraol@189.38.130.99)
  547. # [14:13] * Joins: silentimp (~silentimp@46.247.252.199)
  548. # [14:15] * Joins: silentimp_ (~silentimp@72-165-132-95.pool.ukrtel.net)
  549. # [14:15] * Joins: feeeR (~ircap@91.213.222.87.dynamic.jazztel.es)
  550. # [14:16] * Quits: martndemus (~martndemu@h254064.upc-h.chello.nl) (Ping timeout: 240 seconds)
  551. # [14:18] * Quits: diraol (~diraol@189.38.130.99) (Client Quit)
  552. # [14:18] * Quits: silentimp (~silentimp@46.247.252.199) (Ping timeout: 268 seconds)
  553. # [14:18] * silentimp_ is now known as silentimp
  554. # [14:18] * Joins: Lyoshi (~Adium@cable-89-216-203-112.dynamic.sbb.rs)
  555. # [14:19] * Quits: martndem_ (~martndemu@h254064.upc-h.chello.nl) (Read error: Connection reset by peer)
  556. # [14:19] * Joins: martndemus (~martndemu@h254064.upc-h.chello.nl)
  557. # [14:19] * Parts: Lyoshi (~Adium@cable-89-216-203-112.dynamic.sbb.rs)
  558. # [14:26] * Quits: martndemus (~martndemu@h254064.upc-h.chello.nl) (Remote host closed the connection)
  559. # [14:26] * Joins: martndemus (~martndemu@h254064.upc-h.chello.nl)
  560. # [14:27] <CapnKernel> Pomax: By Jove, it's working! http://jsfiddle.net/4xEhP/14/
  561. # [14:30] * Joins: erichynds (~ehynds@venkman.brightcove.com)
  562. # [14:31] * Joins: simenbrekken (~simenbrek@c85-196-101-98.static.sdsl.no)
  563. # [14:33] * Joins: djazz (~djazz@78-70-243-240-no186.tbcn.telia.com)
  564. # [14:35] <CapnKernel> Thanks for your time and help.
  565. # [14:39] * Joins: silky (~silky@pool-74-108-142-22.nycmny.fios.verizon.net)
  566. # [14:41] * Joins: strevat_ (~strevat@c-66-31-28-249.hsd1.ma.comcast.net)
  567. # [14:42] * Joins: strevat__ (~strevat@c-66-31-28-249.hsd1.ma.comcast.net)
  568. # [14:44] * Joins: diraol (~diraol@189.38.130.99)
  569. # [14:45] * Joins: jetienne (~jerome@ivr94-6-82-230-255-246.fbx.proxad.net)
  570. # [14:47] * Quits: jetienne (~jerome@ivr94-6-82-230-255-246.fbx.proxad.net) (Client Quit)
  571. # [14:47] * Joins: N0va` (~ricki@84.19.108.75)
  572. # [14:51] * Joins: RobLoach (~RobLoach@drupal.org/user/61114/view)
  573. # [15:00] * Joins: insin (~insin@host86-148-254-166.range86-148.btcentralplus.com)
  574. # [15:02] * Quits: lulzilla (~theCode@61.12.14.178) (Quit: This computer has gone to sleep)
  575. # [15:02] * Quits: diraol (~diraol@189.38.130.99) (Quit: Leaving.)
  576. # [15:04] * Quits: strevat__ (~strevat@c-66-31-28-249.hsd1.ma.comcast.net) (Quit: strevat__)
  577. # [15:05] * Quits: Xo__ (~Hautain@AOrleans-258-1-135-160.w90-21.abo.wanadoo.fr) (Quit: Leaving)
  578. # [15:10] * Quits: OzDave_imac (~OzDave@27-33-43-79.static.tpgi.com.au) (Quit: OzDave_imac)
  579. # [15:13] * Quits: temp02 (~temp01@unaffiliated/temp01) (Ping timeout: 244 seconds)
  580. # [15:15] * Quits: bot-t (~bot-t@unaffiliated/temp01/bot/bot-t) (Ping timeout: 240 seconds)
  581. # [15:15] * Joins: Hautain (~Hautain@AOrleans-258-1-135-160.w90-21.abo.wanadoo.fr)
  582. # [15:16] * Joins: Jayflux (~jay_knows@cpc1-dudl6-0-0-cust1981.wolv.cable.virginmedia.com)
  583. # [15:16] * Joins: ericbarnes (~ericbarne@rrcs-98-101-76-192.midsouth.biz.rr.com)
  584. # [15:22] * Joins: humanpipecleaner (~chatzilla@ip68-227-12-51.lv.lv.cox.net)
  585. # [15:36] * Quits: silentimp (~silentimp@72-165-132-95.pool.ukrtel.net) (Read error: No route to host)
  586. # [15:36] * Joins: silentimp_ (~silentimp@72-165-132-95.pool.ukrtel.net)
  587. # [15:40] * Joins: saschagehlich (~saschageh@p5DE82F5F.dip.t-dialin.net)
  588. # [15:40] * Joins: kevindanko (~kevindank@c-76-99-192-101.hsd1.de.comcast.net)
  589. # [15:42] * monteslu_ is now known as monteslu
  590. # [15:49] * Quits: serroba (~serroba@190-20-242-2.baf.movistar.cl) (Remote host closed the connection)
  591. # [15:50] * Joins: serroba (~serroba@190-20-242-2.baf.movistar.cl)
  592. # [16:01] * Quits: saschagehlich (~saschageh@p5DE82F5F.dip.t-dialin.net) (Ping timeout: 252 seconds)
  593. # [16:06] * Quits: gavin_huang (~gravof@60.179.103.124) (Quit: Leaving)
  594. # [16:07] * theresa_away is now known as theresaanna
  595. # [16:07] * Quits: serroba (~serroba@190-20-242-2.baf.movistar.cl) (Ping timeout: 240 seconds)
  596. # [16:08] * Joins: SaadIbrahim (~mslfreak@unaffiliated/saadibrahim)
  597. # [16:09] * Joins: CAP2732 (~ircap@172.212.222.87.dynamic.jazztel.es)
  598. # [16:10] * Joins: miketaylr (~miketaylr@cpe-68-203-0-108.austin.res.rr.com)
  599. # [16:11] * Quits: feeeR (~ircap@91.213.222.87.dynamic.jazztel.es) (Ping timeout: 240 seconds)
  600. # [16:12] * Joins: saschagehlich (~saschageh@p57A06624.dip.t-dialin.net)
  601. # [16:17] * Joins: devongovett (~devongove@pppoe-68-142-43-29.gmavt.net)
  602. # [16:19] * Quits: mishunov (~spliter@77.88.72.162) (Quit: mishunov)
  603. # [16:21] * Joins: imacinto (~imacinto@c1fw226.constantcontact.com)
  604. # [16:25] * Quits: whitman (~whitman@87-194-159-116.bethere.co.uk) (Disconnected by services)
  605. # [16:25] * Joins: whitman_ (~whitman@87-194-159-116.bethere.co.uk)
  606. # [16:25] * Quits: uu (~uu@180.95.152.29) (Remote host closed the connection)
  607. # [16:26] * Joins: mike5w3c_ (~MikeSmith@EM114-48-232-224.pool.e-mobile.ne.jp)
  608. # [16:27] * Joins: Taftse (~Taftse@unaffiliated/taftse)
  609. # [16:29] * Quits: mike5w3c (~MikeSmith@EM1-113-118-139.pool.e-mobile.ne.jp) (Ping timeout: 240 seconds)
  610. # [16:29] * mike5w3c_ is now known as mike5w3c
  611. # [16:30] * Quits: squeakytoy (hidden-use@gateway.netset.se) (Quit: Leaving)
  612. # [16:38] * Joins: jarek (~jarek@unaffiliated/jarek)
  613. # [16:38] <jarek> "let" keyword has just landed in V8 and Chromium
  614. # [16:38] <jarek> do you know when it will be supported in JavaScriptCore?
  615. # [16:39] * Joins: buribu (~buribu@unaffiliated/buribu)
  616. # [16:40] <Pomax> all I know is that as a linguist, I hate the word "let" as scope operator.
  617. # [16:40] <Pomax> unless it is impossible to say "let x;"
  618. # [16:40] <Pomax> if you can only use it as "let x=4" I'm linguistically okay with it.
  619. # [16:40] * Joins: thcipriani (~tyler@173-14-24-158-Colorado.hfc.comcastbusiness.net)
  620. # [16:42] <jarek> what's wrong with "let" word? It's short and easily distinguishable
  621. # [16:42] <jarek> this is what makes a good name
  622. # [16:43] <jarek> I wish I could replace all vars with lets already
  623. # [16:45] <jarek> https://lists.webkit.org/pipermail/webkit-dev/2011-December/018903.html
  624. # [16:45] <jarek> ^ this says "Modules are being worked on for V8, but not finished AFAIK."
  625. # [16:45] <jarek> is it possible to enable support for ES6 modules in Chromium somehow?
  626. # [16:46] <Pomax> it's short, easily distinguishable, and a verb that requires a copula
  627. # [16:46] <Pomax> i..e "let x be ..."
  628. # [16:46] <Pomax> "let ..." is just raping English =)
  629. # [16:46] <Pomax> "var x" is typing, and exempt. "let x" is a verb statement.
  630. # [16:46] <Pomax> not variable typing.
  631. # [16:47] * Joins: rottenrec (~calvin@pool-74-100-117-52.lsanca.dsl-w.verizon.net)
  632. # [16:48] * Quits: rottenrec1 (~calvin@pool-74-100-117-52.lsanca.dsl-w.verizon.net) (Ping timeout: 252 seconds)
  633. # [16:49] <jarek> why there was "strict mode" introduced in ES5?
  634. # [16:49] <jarek> when ES6 comes out, we will have "stricter mode"?
  635. # [16:52] <Pomax> what makes you ask?
  636. # [16:53] * Joins: conancat (~conancat@175.139.165.171)
  637. # [16:54] <martndemus> annevk wrote about version statements in newer versions of ES
  638. # [16:55] <martndemus> it's somewhere on the mailinglist of ES
  639. # [16:56] <martndemus> https://lists.webkit.org/pipermail/webkit-dev/2011-December/018924.html
  640. # [16:56] <martndemus> gotcha
  641. # [16:57] * Joins: glcrazy (~SiRiuS@79.119.95.103)
  642. # [16:58] <jarek> martndemus: I see...
  643. # [16:59] <jarek> latest Chromium build returns null for "typeof null" event without "use strict" header
  644. # [16:59] <jarek> I hope they will fix it
  645. # [16:59] <jarek> s/event/even
  646. # [17:00] <martndemus> did u enable harmony/es6?
  647. # [17:00] <jarek> yeah
  648. # [17:00] <martndemus> then it's not a bug
  649. # [17:01] <jarek> but ES6 can't break compatibility with older scripts
  650. # [17:01] <martndemus> the harmony implementation of chrome doesn't look for a string
  651. # [17:01] * Joins: robhawkes (~robhawkes@188-220-16-96.dsl.cnl.uk.net)
  652. # [17:02] * Quits: danishman (~kvirc@0x5da0ec2a.cpe.ge-0-1-0-1104.ronnqu1.customer.tele.dk) (Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/)
  653. # [17:02] <martndemus> it's a special flag for development/testing, not for production
  654. # [17:03] * Joins: bot-t (~bot-t@unaffiliated/temp01/bot/bot-t)
  655. # [17:04] * Joins: temp01 (~temp01@unaffiliated/temp01)
  656. # [17:07] * Quits: devongovett (~devongove@pppoe-68-142-43-29.gmavt.net) (Quit: devongovett)
  657. # [17:08] * Parts: conancat (~conancat@175.139.165.171) ("Leaving...")
  658. # [17:11] * Joins: DudeNesss (DudeNess@124.106.218.138)
  659. # [17:12] * Quits: decthomas (~decthomas@d5152D79D.static.telenet.be) (Quit: decthomas)
  660. # [17:16] * Quits: Nassosdim (~nassosdim@ppp-94-65-56-196.home.otenet.gr) (Ping timeout: 240 seconds)
  661. # [17:16] * Joins: msponge (~msponge@18.189.103.48)
  662. # [17:17] * Joins: Nassosdim (~nassosdim@ppp-94-65-56-196.home.otenet.gr)
  663. # [17:19] * Quits: whitman_ (~whitman@87-194-159-116.bethere.co.uk)
  664. # [17:19] * Joins: whitman (~whitman@87-194-159-116.bethere.co.uk)
  665. # [17:21] * Quits: PalleZingmark (~Adium@217.13.228.226) (Quit: Leaving.)
  666. # [17:24] * Joins: thatryan (~thatryan@c-24-4-167-46.hsd1.ca.comcast.net)
  667. # [17:26] * Joins: jarek_ (~jarek@bdd73.neoplus.adsl.tpnet.pl)
  668. # [17:27] * Quits: seutje (~sdejonghe@drupal.org/user/264148/view) (Quit: WeeChat 0.3.2)
  669. # [17:27] * Quits: glcrazy (~SiRiuS@79.119.95.103) (Remote host closed the connection)
  670. # [17:28] * Quits: jarek (~jarek@unaffiliated/jarek) (Ping timeout: 240 seconds)
  671. # [17:33] * Joins: gavin_huang (~gravof@60.179.103.124)
  672. # [17:33] * Quits: teleject (~christoph@cpe-72-177-94-231.austin.res.rr.com) (Quit: teleject)
  673. # [17:35] * Joins: Itrace (~Itrace@74-84-107-90.client.mchsi.com)
  674. # [17:42] * Quits: dr0id (~andy@unaffiliated/dr0id) (Quit: Leaving.)
  675. # [17:44] * Joins: tmds (~tmds@gateway/tor-sasl/tmds)
  676. # [17:44] * Quits: jarek_ (~jarek@bdd73.neoplus.adsl.tpnet.pl) (Quit: jarek_)
  677. # [17:48] * Quits: beckybunny (~becky@host-92-23-131-114.as13285.net) (Quit: beckybunny)
  678. # [17:48] * Joins: taylorRichie (~Adium@208.110.141.169)
  679. # [17:52] * Quits: gavin_huang (~gravof@60.179.103.124) (Quit: Leaving)
  680. # [17:52] * Joins: axos411 (~axos@xdsl-78-35-131-253.netcologne.de)
  681. # [17:54] * Quits: saschagehlich (~saschageh@p57A06624.dip.t-dialin.net) (Remote host closed the connection)
  682. # [17:57] * Parts: djazz (~djazz@78-70-243-240-no186.tbcn.telia.com)
  683. # [17:58] * Quits: shwetank (~shwetank@122.173.74.1) (Quit: Linkinus - http://linkinus.com)
  684. # [18:00] * Joins: djazz (~djazz@78-70-243-240-no186.tbcn.telia.com)
  685. # [18:03] * Quits: tmds (~tmds@gateway/tor-sasl/tmds) (Remote host closed the connection)
  686. # [18:06] * Joins: patcito (~123@190.42.224.67)
  687. # [18:07] * Joins: serroba (~serroba@190-20-242-2.baf.movistar.cl)
  688. # [18:07] * Quits: doritoDan (~doritoDan@unaffiliated/doritodan) (Quit: I love web and I love doritos. Coincidence? You decide.)
  689. # [18:13] * Joins: gyzmodo (x@89.146.122.210)
  690. # [18:14] * Joins: sephr (~Eli@c-98-235-63-240.hsd1.pa.comcast.net)
  691. # [18:15] * Quits: PSJunkie (ident@unaffiliated/playstationjunki) (Ping timeout: 252 seconds)
  692. # [18:17] * Joins: pocopina (~pocopina@li298-99.members.linode.com)
  693. # [18:19] * Quits: DudeNesss (DudeNess@124.106.218.138)
  694. # [18:24] * Joins: nafcool (~nafcool@180.215.6.136)
  695. # [18:25] <nafcool> hi
  696. # [18:25] <nafcool> i need to make a widget that slides from the right side
  697. # [18:25] <nafcool> i need that it can resize uploaded image.
  698. # [18:25] <nafcool> how to do that? please help
  699. # [18:25] <moo-_-> usually image resize is a server-side operation and not related to HTML5
  700. # [18:25] <moo-_-> you can create animated effects with CSS3, but unless you know what you are doing I recommend you to do effects with jQuery or jQuery UI Javascript libraries
  701. # [18:25] <nafcool> but we can do it using canvas, i guess
  702. # [18:25] <moo-_-> nafcool: good
  703. # [18:26] * Quits: DrThodt (~DrThodt@ip68-228-210-138.ph.ph.cox.net) (Read error: Connection reset by peer)
  704. # [18:26] <moo-_-> I have a solution for resizing images on the client side using Javascript
  705. # [18:26] <nafcool> moo-_-: please hrlp me with your solution.
  706. # [18:26] <nafcool> *help
  707. # [18:26] <moo-_-> https://github.com/miohtama/Krusovice/blob/master/src/tools/resizer.js
  708. # [18:27] <moo-_-> no warranty, no documentation
  709. # [18:27] <moo-_-> :)
  710. # [18:27] <moo-_-> also it only works for Chrome and Firefox for now
  711. # [18:27] <moo-_-> other browsers must still resize images on the server-side
  712. # [18:27] * Joins: ebidel (~ericbidel@76.226.176.214)
  713. # [18:27] * Quits: ebidel (~ericbidel@76.226.176.214) (Client Quit)
  714. # [18:27] <nafcool> moo-_-: no problem, you still helped me.
  715. # [18:27] <nafcool> thanks a lot.
  716. # [18:27] <nafcool> :)
  717. # [18:28] <moo-_-> the most difficult trick is to
  718. # [18:28] <moo-_-> read JPEG metadata and determine the photo orientation
  719. # [18:28] <moo-_-> or the photo might end up being wrongly rotated
  720. # [18:28] <moo-_-> ah
  721. # [18:28] <moo-_-> and the script only supports JPEG images for this very reason
  722. # [18:28] <nafcool> oh!
  723. # [18:28] * Joins: uf0_work (~deeznuts@cpe-67-247-8-211.nyc.res.rr.com)
  724. # [18:29] <nafcool> well, but how to integrate it to a webpage. can u help me with that too?
  725. # [18:29] <moo-_-> no
  726. # [18:29] <moo-_-> that's the no documentation part
  727. # [18:29] <uf0_work> paul_irish: you around?
  728. # [18:29] * Joins: croby (~croby@c-24-22-130-41.hsd1.wa.comcast.net)
  729. # [18:29] <moo-_-> you need some mad Javascript skillz to deal with experimental code like that
  730. # [18:29] <nafcool> moo-_-: well, thanks
  731. # [18:29] <nafcool> bye
  732. # [18:30] <moo-_-> or it will blow on your face
  733. # [18:30] <moo-_-> :(
  734. # [18:30] * Parts: nafcool (~nafcool@180.215.6.136) ("Coming back after a while, maybe")
  735. # [18:30] <Pomax> actually, reading that information is fairly easy
  736. # [18:30] <Pomax> it's in the first few bytes
  737. # [18:30] <uf0_work> guys.. so I'm moving my domains off godaddy
  738. # [18:30] <Pomax> the real annoying part is that client-resize typically uses a rather poor resize algorithm.
  739. # [18:30] <uf0_work> what's the best alternative
  740. # [18:30] <Pomax> why, they did an aboutface, the campaign worked
  741. # [18:31] <uf0_work> doesn't matter
  742. # [18:31] <uf0_work> that's bs
  743. # [18:31] <moo-_-> Pomax: you could write your own pixel resizer in JS, theoretically
  744. # [18:31] <moo-_-> and run it in a web worker, theoretically
  745. # [18:31] <uf0_work> PR pretty much
  746. # [18:31] <Pomax> no, that's how conditioning works. You punish bad behaviour, and reward good behaviour =)
  747. # [18:31] <moo-_-> in fact, now the resizer gives a hit to UI thread because <canvas> operation always blocks
  748. # [18:32] <uf0_work> and i agree and disagree
  749. # [18:32] <Pomax> godaddy was punished, they fixed their policy, their reward is going "good boy, I won't leave until the next time you screw up"
  750. # [18:32] <djazz> <3 WebGL + Linux
  751. # [18:32] <Pomax> that said, pick whoever you like? I hear good things about heroku
  752. # [18:32] <djazz> its slower on windows
  753. # [18:32] <uf0_work> agree and disagree :)
  754. # [18:32] <Pomax> moo-_-, you can indeed, but the fact that canvas is subpixel makes it a chore to get right.
  755. # [18:33] <uf0_work> well the ones i'm looking at are... 1and1 and namecheap
  756. # [18:33] <moo-_-> Pomax: I managed to get accetable quality out of it for photos
  757. # [18:33] <moo-_-> when resizing photos to full HD quality
  758. # [18:35] <Pomax> those two things don't go together =P
  759. # [18:36] <Pomax> "full HD" is a video thing, and years behind the resolution digital photos are these days
  760. # [18:36] <moo-_-> yes
  761. # [18:36] <moo-_-> I refer to 1920 x 1020 resolution
  762. # [18:36] <moo-_-> as the target resolution for the downscale
  763. # [18:36] <Pomax> ah
  764. # [18:36] <moo-_-> because that's what user monitors are running
  765. # [18:36] * Pomax stabs HD
  766. # [18:37] <Pomax> nuts to that, I want my goddamn 16:10
  767. # [18:37] <Pomax> 16:9 is for chumps
  768. # [18:37] <moo-_-> mobile phones are 16:10?
  769. # [18:37] <moo-_-> smart phones, specifically
  770. # [18:38] <Pomax> no idea, to be honest. Not really the device I associate with even remotely needing "HD" resolutions or aspects
  771. # [18:38] <moo-_-> :)
  772. # [18:38] <Pomax> but let's see what my phone does
  773. # [18:38] <Pomax> oh right. or not. it can't see the wifi here.
  774. # [18:40] <Pomax> heh.
  775. # [18:40] <Pomax> in between 16:10 and 16:9
  776. # [18:40] <Pomax> (800x480)
  777. # [18:40] <Pomax> 16:9.6? =P
  778. # [18:41] <moo-_-> ...
  779. # [18:41] * Joins: RobGroove (ident@cpc6-mapp10-2-0-cust184.12-4.cable.virginmedia.com)
  780. # [18:41] * Quits: RobGroove (ident@cpc6-mapp10-2-0-cust184.12-4.cable.virginmedia.com) (Changing host)
  781. # [18:41] * Joins: RobGroove (ident@unaffiliated/playstationjunki)
  782. # [18:41] * RobGroove is now known as PSJunkie
  783. # [18:44] * Joins: saschagehlich (~saschageh@p5DD54DDC.dip.t-dialin.net)
  784. # [18:44] * Quits: axos411 (~axos@xdsl-78-35-131-253.netcologne.de) (Ping timeout: 248 seconds)
  785. # [18:45] * Joins: expilicious (~zAyghip8@cpc1-cdif9-0-0-cust70.5-1.cable.virginmedia.com)
  786. # [18:45] * Quits: expilicious (~zAyghip8@cpc1-cdif9-0-0-cust70.5-1.cable.virginmedia.com) (Read error: Connection reset by peer)
  787. # [18:46] * Joins: DrThodt (~DrThodt@ip68-228-210-138.ph.ph.cox.net)
  788. # [18:47] * Quits: SaadIbrahim (~mslfreak@unaffiliated/saadibrahim) (Ping timeout: 240 seconds)
  789. # [18:50] * Joins: brettgoulder (~textual@173-164-36-90-colorado.hfc.comcastbusiness.net)
  790. # [18:53] <Pomax> I really wish this cat didn't try to FTP to one of my more popular domains and then almost delete the index.php file ...
  791. # [18:54] * Quits: Lebannen (~lebannen@87.127.122.195) (Ping timeout: 240 seconds)
  792. # [18:54] * Joins: SaadIbrahim (~mslfreak@unaffiliated/saadibrahim)
  793. # [18:59] * Joins: Lebannen (~lebannen@87.127.122.195)
  794. # [18:59] * Joins: beckybunny (~becky@host-92-23-131-114.as13285.net)
  795. # [18:59] * Quits: beckybunny (~becky@host-92-23-131-114.as13285.net) (Client Quit)
  796. # [19:01] * Parts: djazz (~djazz@78-70-243-240-no186.tbcn.telia.com)
  797. # [19:03] * Quits: sw0rdfish (~Johnson@unaffiliated/robinux) (Ping timeout: 252 seconds)
  798. # [19:04] * Joins: djazz (~djazz@78-70-243-240-no186.tbcn.telia.com)
  799. # [19:05] * Quits: solocio (~solocio@p5B2FC727.dip.t-dialin.net) (Quit: solocio)
  800. # [19:07] * Quits: BBBThunda (~IceChat77@pool-71-162-117-84.bstnma.fios.verizon.net) (Ping timeout: 240 seconds)
  801. # [19:11] * Joins: devilswings7 (~unknown@ool-44c74ead.dyn.optonline.net)
  802. # [19:11] * Quits: devilswings7 (~unknown@ool-44c74ead.dyn.optonline.net) (Client Quit)
  803. # [19:13] * Joins: tw2113 (~tw2113@host-162-8-107-208.midco.net)
  804. # [19:13] * Quits: tw2113 (~tw2113@host-162-8-107-208.midco.net) (Changing host)
  805. # [19:13] * Joins: tw2113 (~tw2113@fedora/tw2113)
  806. # [19:21] * Parts: djazz (~djazz@78-70-243-240-no186.tbcn.telia.com)
  807. # [19:28] * Joins: automate (~automate@tok69-4-82-236-110-224.fbx.proxad.net)
  808. # [19:31] * Quits: DrThodt (~DrThodt@ip68-228-210-138.ph.ph.cox.net) (Remote host closed the connection)
  809. # [19:38] * Joins: devongovett (~devongove@pppoe-68-142-43-29.gmavt.net)
  810. # [19:39] * Joins: djazz (~djazz@78-70-243-240-no186.tbcn.telia.com)
  811. # [19:41] * Joins: Conexion (~chatzilla@75-147-178-254-Washington.hfc.comcastbusiness.net)
  812. # [19:43] * Quits: whitman (~whitman@87-194-159-116.bethere.co.uk)
  813. # [19:45] * Quits: taylorRichie (~Adium@208.110.141.169) (Quit: Leaving.)
  814. # [19:47] * Joins: segora (~marc@p5DD0CBCF.dip.t-dialin.net)
  815. # [19:53] * Joins: tantek (~tantek@97-125-10-42.eugn.qwest.net)
  816. # [19:55] * Joins: franksalim (~frank@64-71-23-251.static.wiline.com)
  817. # [19:58] <franksalim> hello!
  818. # [20:00] * Quits: ShooterMG (~shootermg@c-98-246-240-17.hsd1.or.comcast.net) (Read error: Connection reset by peer)
  819. # [20:01] * Joins: ShooterMG (~shootermg@c-98-246-240-17.hsd1.or.comcast.net)
  820. # [20:01] * Joins: EuroNerd (~EuroNerd@178235202099.unknown.vectranet.pl)
  821. # [20:07] * Quits: imacinto (~imacinto@c1fw226.constantcontact.com)
  822. # [20:09] * Joins: dissipate (~steve@unaffiliated/dissipate)
  823. # [20:12] * Joins: nikstepff (~nikstepff@0907ds5-vbr.0.fullrate.dk)
  824. # [20:12] * Joins: benv (~benv@50-0-80-160.dsl.static.sonic.net)
  825. # [20:12] * Quits: ShooterMG (~shootermg@c-98-246-240-17.hsd1.or.comcast.net) (Ping timeout: 240 seconds)
  826. # [20:12] * Joins: ShooterMG (~shootermg@c-98-246-240-17.hsd1.or.comcast.net)
  827. # [20:13] * Joins: Saaaaad (~mslfreak@92.99.163.58)
  828. # [20:13] * Quits: Saaaaad (~mslfreak@92.99.163.58) (Changing host)
  829. # [20:13] * Joins: Saaaaad (~mslfreak@unaffiliated/saadibrahim)
  830. # [20:13] * Quits: SaadIbrahim (~mslfreak@unaffiliated/saadibrahim) (Disconnected by services)
  831. # [20:18] * Quits: saschagehlich (~saschageh@p5DD54DDC.dip.t-dialin.net) (Remote host closed the connection)
  832. # [20:20] * Joins: hsbot (~hsbot@46-38-167-162.static.cloud-ips.co.uk)
  833. # [20:20] * Quits: zampano_ (~Jim@unaffiliated/zampano) (Quit: I was never here.)
  834. # [20:21] * Quits: dissipate (~steve@unaffiliated/dissipate) (Ping timeout: 252 seconds)
  835. # [20:22] * Quits: gde33 (kvirc@546A1A51.cm-12-3a.dynamic.ziggo.nl) (Read error: Connection reset by peer)
  836. # [20:25] * Joins: koggdal (~koggdal@c83-251-117-159.bredband.comhem.se)
  837. # [20:28] * Quits: automate (~automate@tok69-4-82-236-110-224.fbx.proxad.net) (Ping timeout: 240 seconds)
  838. # [20:29] * Joins: dissipate (~steve@unaffiliated/dissipate)
  839. # [20:33] * Joins: zeppo (~zeppo@anon-185-91.vpn.ipredator.se)
  840. # [20:39] * Quits: tantek (~tantek@97-125-10-42.eugn.qwest.net) (Ping timeout: 240 seconds)
  841. # [20:45] * Quits: nikstepff (~nikstepff@0907ds5-vbr.0.fullrate.dk) (Quit: nikstepff)
  842. # [20:46] * Joins: teleject (~christoph@72-48-145-180.static.grandenetworks.net)
  843. # [20:52] * Joins: automate (~automate@tok69-4-82-236-110-224.fbx.proxad.net)
  844. # [20:54] * Quits: Jonadabe (~Jonadabe@bl10-165-94.dsl.telepac.pt) (Quit: http://www.visitportugal.com | http://www.youtube.com/visitportugal)
  845. # [20:58] * Joins: tantek (~tantek@97-125-15-223.eugn.qwest.net)
  846. # [20:59] * Quits: patcito (~123@190.42.224.67) (Ping timeout: 240 seconds)
  847. # [21:03] * Quits: Orbitrix (Orbitrix@c-68-35-125-188.hsd1.nm.comcast.net)
  848. # [21:04] <Jayflux> hi franksalim
  849. # [21:07] * Joins: ttjordan (~chatzilla@static-71-126-247-202.bstnma.fios.verizon.net)
  850. # [21:15] * Quits: tantek (~tantek@97-125-15-223.eugn.qwest.net) (Quit: tantek)
  851. # [21:15] * Quits: CAP2732 (~ircap@172.212.222.87.dynamic.jazztel.es) (Quit: • IRcap • 8.6 •)
  852. # [21:19] * Joins: joepie91 (~joepie91@86.93.142.233)
  853. # [21:25] * Quits: mr_lou (~sirlou@0x555321d8.adsl.cybercity.dk) (Quit: Ex-Chat)
  854. # [21:36] * Joins: manuchill (~mstalfoor@81.69.16.186)
  855. # [21:37] * Joins: RobLoach1 (~RobLoach@CPE002191e9c8f4-CM00222d6c714d.cpe.net.cable.rogers.com)
  856. # [21:37] * Quits: RobLoach (~RobLoach@drupal.org/user/61114/view) (Read error: Connection reset by peer)
  857. # [21:38] * Joins: squeakytoy (~squeakyto@107-232-96-87.cust.blixtvik.se)
  858. # [21:42] * Quits: manuchill (~mstalfoor@81.69.16.186) (Quit: Ex-Chat)
  859. # [21:44] * Joins: addyosmani (~addyosman@host86-164-98-62.range86-164.btcentralplus.com)
  860. # [21:45] * Quits: msponge (~msponge@18.189.103.48) (Quit: msponge)
  861. # [21:46] * Quits: thatryan (~thatryan@c-24-4-167-46.hsd1.ca.comcast.net) (Quit: Leaving...)
  862. # [21:46] * Quits: teleject (~christoph@72-48-145-180.static.grandenetworks.net) (Quit: teleject)
  863. # [21:49] * Quits: zeppo (~zeppo@anon-185-91.vpn.ipredator.se) (Quit: zeppo)
  864. # [21:51] * Quits: ciro_nunes (c8ba7e3a@gateway/web/freenode/ip.200.186.126.58) (Ping timeout: 258 seconds)
  865. # [21:55] * Joins: serroba_ (~serroba@190-20-221-163.baf.movistar.cl)
  866. # [21:57] * Quits: tw2113 (~tw2113@fedora/tw2113) (Quit: Nice Scotty, now beam my clothes up too!)
  867. # [21:58] * Quits: serroba (~serroba@190-20-242-2.baf.movistar.cl) (Ping timeout: 248 seconds)
  868. # [21:59] * Joins: tmds (~tmds@gateway/tor-sasl/tmds)
  869. # [22:04] * Quits: strevat_ (~strevat@c-66-31-28-249.hsd1.ma.comcast.net) (Quit: strevat_)
  870. # [22:07] * Quits: ShadowE989 (~ShadowE98@74-36-227-143.br1.rmn.wv.frontiernet.net) (Read error: Connection reset by peer)
  871. # [22:07] * Quits: humanpipecleaner (~chatzilla@ip68-227-12-51.lv.lv.cox.net) (Ping timeout: 244 seconds)
  872. # [22:07] * Quits: dissipate (~steve@unaffiliated/dissipate) (Ping timeout: 248 seconds)
  873. # [22:10] * Joins: thatryan (~thatryan@c-24-4-167-46.hsd1.ca.comcast.net)
  874. # [22:10] * Quits: ttjordan (~chatzilla@static-71-126-247-202.bstnma.fios.verizon.net) (Quit: ChatZilla 0.9.88 [Firefox 8.0/20111104165243])
  875. # [22:11] * Joins: ttjordan (~chatzilla@static-71-126-247-202.bstnma.fios.verizon.net)
  876. # [22:14] * Quits: silentimp_ (~silentimp@72-165-132-95.pool.ukrtel.net) (Quit: silentimp_)
  877. # [22:15] * Joins: teleject (~christoph@cpe-72-177-94-231.austin.res.rr.com)
  878. # [22:17] * Quits: tmds (~tmds@gateway/tor-sasl/tmds) (Quit: Leaving)
  879. # [22:26] * Quits: erichynds (~ehynds@venkman.brightcove.com) (Ping timeout: 252 seconds)
  880. # [22:28] * Quits: mike5w3c (~MikeSmith@EM114-48-232-224.pool.e-mobile.ne.jp) (Ping timeout: 252 seconds)
  881. # [22:33] * Quits: martndemus (~martndemu@h254064.upc-h.chello.nl) (Remote host closed the connection)
  882. # [22:33] * Joins: mike5w3c (~MikeSmith@EM114-48-37-236.pool.e-mobile.ne.jp)
  883. # [22:34] * Quits: serroba_ (~serroba@190-20-221-163.baf.movistar.cl) (Remote host closed the connection)
  884. # [22:35] * Joins: martndemus (~martndemu@h254064.upc-h.chello.nl)
  885. # [22:35] * Quits: LongBeach (~mike@AFontenayssB-152-1-65-121.w82-121.abo.wanadoo.fr)
  886. # [22:36] * Quits: martndemus (~martndemu@h254064.upc-h.chello.nl) (Remote host closed the connection)
  887. # [22:39] * RobLoach1 is now known as RobLoach
  888. # [22:39] * Quits: RobLoach (~RobLoach@CPE002191e9c8f4-CM00222d6c714d.cpe.net.cable.rogers.com) (Changing host)
  889. # [22:39] * Joins: RobLoach (~RobLoach@drupal.org/user/61114/view)
  890. # [22:43] * Joins: strevat_ (~strevat@honeydew.cictr.com)
  891. # [22:43] * Quits: ttjordan (~chatzilla@static-71-126-247-202.bstnma.fios.verizon.net) (Quit: ChatZilla 0.9.88 [Firefox 8.0/20111104165243])
  892. # [22:44] * Quits: Jackneill (~Jackneill@unaffiliated/jackneill) (Read error: Connection reset by peer)
  893. # [22:47] * Quits: ericbarnes (~ericbarne@rrcs-98-101-76-192.midsouth.biz.rr.com) (Quit: Leaving...)
  894. # [22:58] * Joins: tw2113 (~tw2113@host-139-59-230-24.midco.net)
  895. # [22:58] * Quits: tw2113 (~tw2113@host-139-59-230-24.midco.net) (Changing host)
  896. # [22:58] * Joins: tw2113 (~tw2113@fedora/tw2113)
  897. # [22:58] * Parts: djazz (~djazz@78-70-243-240-no186.tbcn.telia.com)
  898. # [23:00] * Quits: tristanseifert (~tristanse@c-67-164-14-81.hsd1.ca.comcast.net) (Quit: DEATH IS UPON US)
  899. # [23:08] * Joins: tristanseifert (~tristanse@c-67-164-14-81.hsd1.ca.comcast.net)
  900. # [23:11] * Joins: salazr_ (u2027@gateway/web/irccloud.com/x-nmhckrrahxxxvvul)
  901. # [23:11] * Quits: automate (~automate@tok69-4-82-236-110-224.fbx.proxad.net) (Ping timeout: 252 seconds)
  902. # [23:12] * Joins: gasbakid (~gasbakid@41.96.0.135)
  903. # [23:14] * Joins: automate (~automate@tok69-4-82-236-110-224.fbx.proxad.net)
  904. # [23:15] * Joins: patcito (~123@201.240.212.53)
  905. # [23:16] * Quits: thatryan (~thatryan@c-24-4-167-46.hsd1.ca.comcast.net) (Quit: Leaving...)
  906. # [23:18] * Quits: PSJunkie (ident@unaffiliated/playstationjunki) (Ping timeout: 252 seconds)
  907. # [23:19] * Quits: automate (~automate@tok69-4-82-236-110-224.fbx.proxad.net) (Ping timeout: 240 seconds)
  908. # [23:20] * Joins: RobGroove (ident@unaffiliated/playstationjunki)
  909. # [23:20] * RobGroove is now known as PSJunkie
  910. # [23:24] * Joins: zeppo (~zeppo@h237n2fls34o891.telia.com)
  911. # [23:26] * Quits: zeppo (~zeppo@h237n2fls34o891.telia.com) (Client Quit)
  912. # [23:31] * Quits: gasbakid (~gasbakid@41.96.0.135) (Ping timeout: 240 seconds)
  913. # [23:36] * Quits: bot-t (~bot-t@unaffiliated/temp01/bot/bot-t) (Quit: bot-t)
  914. # [23:38] * Joins: ColKurtz (~ColKurtz@216.86.217.155)
  915. # [23:39] * Joins: temp02 (~temp01@unaffiliated/temp01)
  916. # [23:39] * Quits: temp01 (~temp01@unaffiliated/temp01) (Ping timeout: 252 seconds)
  917. # [23:40] * Quits: strevat_ (~strevat@honeydew.cictr.com) (Quit: strevat_)
  918. # [23:43] * Joins: strevat_ (~strevat@honeydew.cictr.com)
  919. # [23:52] * Quits: Conexion (~chatzilla@75-147-178-254-Washington.hfc.comcastbusiness.net) (Quit: ChatZilla 0.9.87 [Firefox 8.0/20111104165243])
  920. # [23:53] * Quits: cocoadaemon (~cocoadaem@2a01:e35:8a99:e90:20d:93ff:fe3b:868c) (Remote host closed the connection)
  921. # [23:53] * Quits: gyzmodo (x@89.146.122.210)
  922. # [23:53] * Joins: cocoadaemon (~cocoadaem@2a01:e35:8a99:e90:20d:93ff:fe3b:868c)
  923. # Session Close: Thu Dec 29 00:00:00 2011

The end :)