* Spaceghost|cloud has quit (Ping timeout: 264 seconds) * starapple_corki has quit (Ping timeout: 264 seconds) * nocturne777 has left * Heero` (~Heero@207.182.200.130) has joined * nocturne777 (80f26de2@gateway/web/freenode/ip.128.242.109.226) has joined * relipse2 has quit (Ping timeout: 258 seconds) * benlyn (~benlyn@cm-84.215.168.97.getinternet.no) has joined * Ralt has quit (Remote host closed the connection) * chevdor (~chevdor@87.79.9.139) has joined * m4ggus (marcus@unaffiliated/m4ggus) has joined * nocturne777 has left * erichynds has quit () * nocturne777 (80f26de2@gateway/web/freenode/ip.128.242.109.226) has joined * mossback (~kvirc@172-1-125-83.lightspeed.irvnca.sbcglobal.net) has joined * Morkel (~Morkel@xdsl-78-35-207-237.netcologne.de) has joined * Slartibart (~kvirc@212.112.56.201) has joined * ravenzz (~raven@unaffiliated/ravenzz) has joined hello, I am trying to find a lib or a sample to add some kind of logger to a page. Logger is actually not the term, I want a windows whre I can display information to the user. See it as a chat window for instance. DO you know anything like this ? * Heero has quit (Ping timeout: 246 seconds) I have single page app and every time I re-load a tab, event handlers get re-created. What is a good clean way to solve this issue? I guess I can unhook event handlers, but I am feeling that there must be a better way to solve this problem. * xai_beha_ (~xai_beha@chello080109212102.3.graz.surfer.at) has joined * CaptainBlaze (~anonymous@cpc13-hawk12-2-0-cust97.aztw.cable.virginmedia.com) has joined * ryanh (~textual@96-35-158-122.static.stls.mo.charter.com) has joined * xai_beha has quit (Ping timeout: 256 seconds) * xai_beha_ is now known as xai_beha ? * Heero` has quit (Ping timeout: 245 seconds) * sayah has quit (Ping timeout: 258 seconds) * garbagecollectio (~cnn@rrcs-24-213-161-74.nyc.biz.rr.com) has joined * korilo (~antonio@adsl-ull-148-26.48-151.net24.it) has joined * voidpirate has quit (Quit: voidpirate) * rickibalboa has quit (Quit: rickibalboa) * Stuk has left * dxeh (~sodxeh@unaffiliated/dxeh) has joined * rickibalboa (~ricki@84.19.104.118) has joined * sphenxes (~sphenxes@91-119-55-227.dynamic.xdsl-line.inode.at) has joined * Ralt (~ralt@89-92-204-200.hfc.dyn.abo.bbox.fr) has joined * darkmutt (~darkmutt@ekv170.neoplus.adsl.tpnet.pl) has joined * c4milo has quit (Remote host closed the connection) * abstractj|lunch is now known as abstractj * user_corrupt has quit (Quit: user_corrupt) * l4z3aN (~l4z3aN@108.62.174.58) has joined * mitemitreski has quit (Read error: Connection reset by peer) * l4z3aN has left * rickibalboa has quit (Client Quit) * rickibalboa (~ricki@84.19.104.118) has joined * morficus (~morficus@108-205-132-58.lightspeed.livnmi.sbcglobal.net) has joined * Swimming_Bird (~Swimming_@cpe-68-173-73-203.nyc.res.rr.com) has joined * RLa has quit (Remote host closed the connection) * akkufomk has left * rickibalboa has quit (Client Quit) having an hard time with closure scope * rickibalboa (~ricki@84.19.104.118) has joined can someone tell me why the last expression raise an error? -> http://paste.pm/5h7.js * Heero (~Heero@207.182.200.130) has joined * Heero has quit (Changing host) * Heero (~Heero@unaffiliated/heero) has joined if the check if the setter is m <= n ? if i pass 2000 is == so it should set n = m korilo: please indent that stuff man instead it throw an erro * gudik (~aleksey@ip-79-111-15-45.bb.netbynet.ru) has joined i'm not doing mental gymnastics to help sorry NoiseEee i just copy pasted is a 10 line func, better saying i won't help you uh? readibility trumps all * gudik has quit (Client Quit) * jarek has quit (Quit: jarek) it's just a return obj.. with a setter and a getter i don't see any need to do mental gymnastic * ppppaul (~paul@66.207.222.14) has joined * panaggio has quit (Quit: WeeChat 0.4.0) korilo why dont you add the field to the object directly i can't read your funciton. so, someone could help me undertand? niggler, it's just an example taken from a book about closure scoping oh your getter is wrong i want to understand why it throw an error in the last expressin when you get count you are postincrementing it's from JS the def guide so when you call c.count it prints 2000 but it sets n to 2001 i know that :) * Stilo has quit (Quit: Textual IRC Client: www.textualapp.com) * morficus has quit (Ping timeout: 252 seconds) my problem is with the setter so what's the issue? last line * Stilo (~textual@a85-138-2-114.cpe.netcabo.pt) has joined * influx has quit (Quit: Computer has gone to sleep.) * TelFiRE (~telfire@67.139.187.38) has joined why if n it's just 2000 and i pass to the setter 2000 it throws the error because it post-increments c.count calls the getter * codecop (~codecop@78.61.251.3) has joined oh shit * crowster has quit (Quit: crowster) if you rewrote it to say ++n then you will see what happens then the last c.count would say 2001 so it's 2001 before the last line after count... * sphenxes has quit (Remote host closed the connection) i know thanks niggler * niggler pets korilo * jcromartie has quit (Quit: Computer has gone to sleep.) appreciated :) * Heero has quit (Ping timeout: 245 seconds) * RogWilco has quit (Quit: Sleep!) * Axsuul has quit (Remote host closed the connection) * arietis (~arietis@188.242.181.162) has joined * Antiga (uid8115@gateway/web/irccloud.com/x-diwhjdvyongscylz) has joined * nessus (~nessus@199-195-149-159.dyn.novuscom.net) has joined * finishingmove (~finishing@dynamic-78-8-159-246.ssp.dialog.net.pl) has joined * graydot has quit (Ping timeout: 248 seconds) * user_corrupt (~user_corr@dyn216-8-143-74.ADSL.mnsi.net) has joined * Disconnected (Connection reset by peer) * hasc sets mode +i on hasc -NickServ- This nickname is registered. Please choose a different nickname, or identify via /msg NickServ identify . * Now talking on ##javascript * Topic for ##javascript is: Can't Talk? Get Registered on FreeNode (HOWTO: http://ur1.ca/90niw) | ECMAScript, Javascript, JS *not* Java | Say: "!help" (or ask and wait) | Run: "!mdn foo" for docs on "foo" | Don't paste code in the channel. * Topic for ##javascript set by gkatsev!~gkatsev@oftn/board/gkatsev (Mon Feb 25 08:02:19 2013) * garbagecollectio (~cnn@rrcs-24-213-161-74.nyc.biz.rr.com) has joined * guidj0s (~guidjos@oftn/member/guidj0s) has joined * Bombo (~bombo@dslb-084-060-250-061.pools.arcor-ip.net) has joined * browndawg has quit (Quit: Leaving.) * dhaber has quit (Quit: Lost terminal) * RLa (~RL@gprs-inet-65-175.elisa.ee) has joined * Nurbs has quit (Read error: Connection reset by peer) * johnkpaul_ has quit (Quit: ZNC - http://znc.in) * ndngvr has quit (Ping timeout: 260 seconds) * BuenGenio has quit (Read error: Connection reset by peer) * johnkpaul (johnkpaul@2600:3c03::f03c:91ff:fe70:4f5e) has joined * dhaber (~dhaber@c-76-28-237-222.hsd1.wa.comcast.net) has joined * nessus (~nessus@199-195-149-159.dyn.novuscom.net) has joined * lingo has quit (Quit: Leaving) * Taggnostr2 has quit (Ping timeout: 245 seconds) * m8 (~mor@unaffiliated/m8) has joined * masondesu has quit (Ping timeout: 264 seconds) * paullik (~paullik@unaffiliated/paullik) has joined * CornishPasty (uid158@gateway/web/irccloud.com/x-kwmlhzljubouzfex) has joined * averiso has quit (Ping timeout: 245 seconds) * Quest (~syncsys@pool2-80-210.brain.net.pk) has joined I discover the coolness again, firefox is incredibly fast and stable with js disabled but greasemonkey still seems to work "without" js can have just the scripts running you want :D any ideas about this? is it a json / javascript problem http://stackoverflow.com/questions/15392439/error-at-customer-registration-cart-software ? * averiso (~averiso@180.148.35.73) has joined * bradleymeck has quit (Quit: bradleymeck) * Taggnostr2 (~x@dyn57-146.yok.fi) has joined * mhn23 has quit (Quit: Goodbye.) * Hannibal_Smith has quit (Quit: Sto andando via) * masondesu (~textual@71-12-31-113.static.spbg.sc.charter.com) has joined * NahimN has quit (Quit: Computer has gone to sleep.) * Taggnostr2 has quit (Read error: Connection reset by peer) * jsimms (~jsimms@70.88.201.30) has joined * kicken has quit (Read error: No route to host) * rickibalboa has quit (Ping timeout: 245 seconds) * Myk267 has quit (Quit: Ack! Hans, run! It's the lhurgoyf!) * Heero (~Heero@unaffiliated/heero) has joined * dhruvasagar (~dhruvasag@122.178.228.250) has joined * blup (~blup@mon75-12-82-236-114-40.fbx.proxad.net) has joined * yacks has quit (Quit: Leaving) * nessus has quit (Ping timeout: 264 seconds) * Absolute0 has quit (Quit: leaving) * timkoh (~timkohrum@208.80.69.2) has joined * aMoniker has quit (Quit: aMoniker) * mossback has quit (Ping timeout: 246 seconds) * RogWilco has quit (Quit: Sleep!) * whitenexx has quit (Remote host closed the connection) * _gambit (~prajwalit@59.95.27.16) has joined * sku11knight has quit (Quit: sku11knight) * mike4_ has quit (Ping timeout: 276 seconds) * Heero has quit (Ping timeout: 240 seconds) Hey guys, can I use closures and create a function to generate fuctions that make reference to scope-specific variables (that is, the function works as a factory of functions that will only work when used in a specific method) and then call this externally defined factory function in the appropriate scope? * blup has quit (Remote host closed the connection) * dhruvasagar has quit (Ping timeout: 245 seconds) ffreire0403: Write a use case. That description is bad. guidj0s: ok * exoon (~exoon@p4FD385E9.dip0.t-ipconnect.de) has joined * mary5030 has quit (Remote host closed the connection) * ElDiabolo (~jo@92.116.53.246) has joined * wo (~klar@24.244.143.13) has joined * sphenxes has quit (Remote host closed the connection) * PaulCapestany (~PaulCapes@204.28.124.82) has joined * mikef has quit (Ping timeout: 252 seconds) * Xgc has quit (Ping timeout: 258 seconds) * mary5030 (~mary5030@72.32.115.231) has joined guidj0s: http://pastebin.com/PnvzYA1b * r0bby_ (~wakawaka@guifications/user/r0bby) has joined * sphenxes (~sphenxes@91-119-55-227.dynamic.xdsl-line.inode.at) has joined * pretty_f_ has quit (Remote host closed the connection) * banisterfiend (~banisterf@5ED280BF.cm-7-3c.dynamic.ziggo.nl) has joined hey can someone here explain basically how 'comet' works? * RogWilco (~RogWilco@206.169.179.202) has joined ffreire0403: That is convoluted. Write up an isolated, simpler use case. banisterfiend: #comet may. You write really fast. guidj0s: "invite only" :) banisterfiend: Try registering. guidj0s: i am registered banisterfiend: "comet" is a good solution if this wasn't 2013 * Xgc (~Xgc@p-68-237-142-209.dsl1.rtr.chat.fpma.frpt.net) has joined NoiseEee: i know, im using websockets, but still curious how comet works * RogWilco has quit (Client Quit) banisterfiend: Well, screw it. * hagb4rd has quit (Ping timeout: 245 seconds) http://en.wikipedia.org/wiki/Comet_(programming) * RogWilco (~RogWilco@206.169.179.202) has joined * ElDiabolo has quit (Ping timeout: 245 seconds) * Axsuul (~Axsuul@pool-108-38-11-179.lsanca.fios.verizon.net) has joined ffreire0403: It looks to me that you misunderstand what closures are. * nomenkun (~nomenkun@178.121.119.172) has joined guidj0s: I'm rewriting it simplier, just 1 sec * zodiak (~stef@173.230.189.93) has joined * ElDiabolo (~jo@46.115.18.185) has joined * ElDiabolo has quit (Max SendQ exceeded) * Xgc has quit (Ping timeout: 240 seconds) * jgeerdes (~Adium@173-25-32-59.client.mchsi.com) has joined * ElDiabolo (~jo@46.115.18.185) has joined guidj0s: http://pastebin.com/HWH4bwjN * fhd (uid2508@gateway/web/irccloud.com/x-facxwealqpwcnrfh) has joined * timkoh has quit (Remote host closed the connection) * CaptainBlaze has quit (Quit: CaptainBlaze) * guy (~gajus@oftn/member/guy) has joined * aniasis (~aniasis@64.124.202.222) has joined ffreire0403: There would be no gain in that. ffreire0403: The difference is that having a generator will cost you an extra function invocation. * exoon has quit (Quit: Verlassend) guidj0s: wouldn't it? That's part of what I want to know. How costly is it to create a function for every iteration? Should I actually do something about it? It looks wrong but I have no idea about the numbers involved. * garbagecollectio has quit (Quit: garbagecollectio) * stereohorse (~Stratocas@broadband-178-140-161-151.nationalcablenetworks.ru) has joined ffreire0403: The cost is not specified, and you should not worry about it unless you determine it is a bottleneck (through accurate profiling). * JoeNova has quit (Ping timeout: 245 seconds) guidj0s: oh, cool then. thanks. * fission6 has left * erichynds has quit () ffreire0403: Consider `function makeAdder(amount) { return function (x) { return amount + x; }; }`. ffreire0403: `var add10 = makeAdder(10), add100 = makeAdder(100);` -- here, two functions are created and returned by the two calls to `makeAdder`. guidj0s: right. * blup (~blup@mon75-12-82-236-114-40.fbx.proxad.net) has joined * garbagecollectio (~cnn@rrcs-24-213-161-74.nyc.biz.rr.com) has joined * user_corrupt (~user_corr@dyn216-8-143-74.ADSL.mnsi.net) has joined * domie has quit (Read error: Connection reset by peer) * arietis has quit (Quit: Textual IRC Client: http://www.textualapp.com/) * rohitag (~androirc@49.207.216.29) has joined * nessus (~nessus@199-195-149-159.dyn.novuscom.net) has joined * sphenxes has quit (Remote host closed the connection) * mikef (~mikef@105.165.167.246) has joined * oreth (~oreth@pool-71-97-52-188.dfw.dsl-w.verizon.net) has joined * wo has left * influx has quit (Quit: Textual IRC Client: www.textualapp.com) * heavysixer has quit (Quit: heavysixer) * Slartibart has quit (Ping timeout: 252 seconds) * _dc has quit (Ping timeout: 240 seconds) * _gambit has quit (Quit: Computer has gone to sleep.) * tcstar has quit (Ping timeout: 258 seconds) * seismo has quit (Remote host closed the connection) * sphenxes (~sphenxes@91-119-55-227.dynamic.xdsl-line.inode.at) has joined * timeturner (~TimeTurne@r74-192-65-59.vctrcmta01.vctatx.tl.dh.suddenlink.net) has joined * domie (~IT@79.112.61.81) has joined * _dc (~dc@adrian.nat.trb.com) has joined * gabriel9 has quit (Quit: Konversation terminated!) * guy has quit (Remote host closed the connection) * stereohorse has quit (Remote host closed the connection) * x82_nicole has quit (Quit: Computer has gone to sleep.) * voda (4014bdfe@gateway/web/freenode/ip.64.20.189.254) has joined * AlphaPinky (unknown@189.113.75.19) has joined * sgrover (~quassel@184.70.115.158) has joined * toad__ (5eadb31a@gateway/web/freenode/ip.94.173.179.26) has joined hello * ##javascript :Cannot send to channel >nickserv< identify **** -NickServ- You are now identified for hasc. hello * supersym has quit (Quit: WeeChat 0.4.0) * Umren has quit (Read error: Connection reset by peer) * fermion has quit (Quit: Textual IRC Client: www.textualapp.com) * stereohorse (~Stratocas@broadband-178-140-161-151.nationalcablenetworks.ru) has joined * rohitag has left * systemfault (~systemfau@oftn/member/systemfault) has joined * stereohorse has quit (Client Quit) * hackygolucky (~hackygolu@sccc-66-78-236-243.smartcity.com) has joined * j201 (~chatzilla@CPE106f3f634275-CM001868e649d8.cpe.net.cable.rogers.com) has joined * boundsj (~boundsj@204.28.127.10) has joined * Kismet010 (~Kismet@100.Red-83-40-214.dynamicIP.rima-tde.net) has joined * pamasaur has quit (Ping timeout: 258 seconds) hello * nessus has quit (Ping timeout: 245 seconds) * mastro has quit (Ping timeout: 258 seconds) * Amnesia (~Amnesia@unaffiliated/amnesia) has joined * dsirijus (~dsirijus@cpe-188-252-137-249.zg5.cable.xnet.hr) has joined question, geolocation through javascript should be possible right? * kolir has quit (Remote host closed the connection) as in, get js to determine the ip, and sent it back to the webserver * Slartibart (~kvirc@212.112.56.201) has joined * Phunky (uid4769@gateway/web/irccloud.com/x-rnokhaknbubdewqh) has joined * jgaui (uid5142@gateway/web/irccloud.com/x-lrinootywbrrbpyy) has joined * ChanServ gives channel operator status to buu * amatecha (uid10006@gateway/web/irccloud.com/x-uzpyxubroubgvhsx) has joined Amnesia: Any request you send back to the webserver will by default include the ip.. * taqutor (uid8051@gateway/web/irccloud.com/x-zjpkkihictoxspjx) has joined But I don't think JS itself can access that * jamesgorrie (uid7904@gateway/web/irccloud.com/x-mrguiivmqelxlpso) has joined maybe you can first try geo api well, some server's able to locate me quite accurate, while I'm using a socks proxy so now I'm wonder how that's possible * AlphaPinky has quit (Ping timeout: 252 seconds) The proxy is passing on your ip? * buu shrugs If you were behind a nat you wouldn't get your "real" ip either * toad__ has quit (Quit: Page closed) no the proxy isn't * AusME (~bens@66.239.2.38) has joined * jaequery_ (uid5254@gateway/web/irccloud.com/x-omyywiiybzxwoitq) has joined * sphenxes has quit (Read error: Connection reset by peer) Simple question... Why is document below, in parenthesis? $(document).ready(DocumentReady); * paullik has quit (Quit: WeeChat 0.4.0) AusME: Becasuse $() is calling a function. * denysonique (uid484@gateway/web/irccloud.com/x-cwfnsycxvbhqqacy) has joined * Amnesia has left AusME: It's almost certainly a jquery thing. * jmcantrell (uid324@gateway/web/irccloud.com/x-gmtaxnnbjwpukkss) has joined So, $(function) is saying, call function?