« first day (969 days earlier)      last day (3996 days later) » 

1:00 PM
how many times?
just one image?
 
@Loktar seems like it, yeah. probably microsoft has to change something now
 
no
 
@AaditMShah :P
most of the code is not actually for performance
 
one sec, let me fix one thing in this code and i'll show you
 
I'm considering to buy a PS3 with a custom firmware right now, but 300€ seems a little too much... i don't know
 
1:00 PM
@rlemon I honestly don't know then, my gut would say pixel manipulation
@GNi33 ps3? You can get them dirt cheap here
 
@Esailija - I wouldn't know. I didn't even bother reading. =P
 
like $120
 
@GNi33 wat!? Mine cost 200 something Euro.
 
;p
 
yeah, it would be a 320gb one with cfw and 10 games on blu-ray
 
1:01 PM
Anyway, it's a good idea. Get a PS3 and then buy GT5.
 
not sure if 300 is a good price on that, it's in a good condition
 
Then we can race together.
 
I just want to play Red Dead Redemption for some reason :D
 
@Btuman Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@AaditMShah I love your comments on people code thre though
 
1:02 PM
I was always terrible on Gran Turismo, would be fun though
 
I didn't have the balls to say it
 
@GNi33 All I heard right now is, fuck yea, that's a good idea, I'll do what you just said
 
but writing 3 functions and still require code in constructor is ridiculous
 
@Esailija - I know. I was reading peoples' answer and I kept thinking to myself, "why do you give us JavaScript programmers a bad name?"
 
@OctavianDamiean I'm actually pretty sure that GT5 is one of the games
 
1:04 PM
@GNi33 To make it a bit easier for you, they have 25 different Mitsubishi Lancer versions.
 
holy! do need then! :D
 
@shin Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
playstation network is free, right?
 
Afaik, yea.
I haven't played any online races yet, because I lack friends to race with but I think it is.
 
1:06 PM
@CapricaSix<Okay
 
hm, so I'll probably just need one of my weak moments during this week and I'll buy this thing
300 still seems an utter lot
 
!!/undo
forgot the echo
 
go away google
 
@shin "Do you know how to code?"
 
@Loktar lemonmeme.com/demos/The%20Blob ignore that the force emitters are ugly - see how they are different colours? I want them to influence a colour change on the particles they act on
 
1:07 PM
@CapricaSix What code?
 
@GNi33 Not sure if that'll work but you can try.
 
@rlemon I got "dun fucked up"
 
the owner said so at least
 
@shin javascript
 
@BenjaminGruenbaum aww really?
 
1:08 PM
flashed it and it worked pretty well, but what do i know
 
consistently?
 
@rlemon Twice now, I'm on Chromium in Debian
Pretty old chrome "Version 21.0.1180.89 Debian wheezy/sid (154005)"
 
this.context.decodeAudioData(xhr.response, function (buffer) {
	callback && callback.call(this);
	this.playing = true;
	this.source.buffer = buffer;
	this.source.noteOn(0);
}.bind(this), function (e) {
	alert('dun fucked up');
});
 
I can't believe that this is an ingame screenshot ...
 
sweet
 
1:09 PM
@Esailija look at graph: jsperf.com/jt-create
 
Jquery, yay or nay?
 
@Loktar exams are over :D
i am free!!!!!
and now i can write my game :D :D
 
@Btuman What's the target platform?\
 
I was just wondering how people felt about it in general
 
i get a marquee code with recent post.. i want to do it category basis not recent post.. any idea
 
1:11 PM
@Btuman People dislike it, but use it.
 
@krampstudio Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
I have heard coffee script get called poopy in here
 
@BenjaminGruenbaum \o/ how was ur class ?
 
@Btuman I like CS
 
@IvoWetzel how are you feeling now ?
 
1:11 PM
@Darkyen interesting, all in LISP
 
@Btuman it will be
@BenjaminGruenbaum fun :D
 
@redline yeah, chrome just dominates
:D?
 
wish LISP was taught here, but it will obliterate my teachers puny heads
 
@Esailija yea too bad that doesn't help for production
 
i ask a question from wordpress.stackexchange.com/questions/102618/… . anyone can help me?
 
1:12 PM
@Esailija Gee, I wonder why that might be
 
Smart, that is a ghost town
 
@redline well maybe not for now, but all the engines are constantly improving
 
@BenjaminGruenbaum caniuse.com/audio-api
 
so spidermonkey could optimize new at some point
 
1:12 PM
should be supported no
 
@Btuman We all know XKCD, don't one box them all around :)
 
@BenjaminGruenbaum i was reading
 
Sorry, force of habit
 
@rlemon Audio api is moz only
 
@Esailija so it would still be wise to go the new route for future optimizations
 
1:13 PM
@rlemon well, doesn't work on Chrome 21 here
 
Darkyen, they are in the recycle bin
 
the other is called webAudio
@Btuman i know
 
@Darkyen funny works perfectly fine on my chrome
 
@redline well it's still a lot faster in chrome, and a bit faster in IE/Firefox, and could possibly be even faster in those in the future so yeah
 
as well as everyone elses (cept Benji) ;)
 
1:13 PM
@rlemon needless to say it doesn't work in FF either (Well, iceweaslel, meh)
 
0
Q: How to get the center of a rotated rectangle regardless of point of rotation

PhotonStormI need help working out the centre coordinate of a rotated rectangle regardless of the point of rotation (i.e. the rectangle doesn't rotate around its center). It's easier to show than tell, so here's example 1: http://gametest.mobi/rotate/index.php?f=point1.js&d=tests Click to start/stop the ...

 
@BenjaminGruenbaum hrm
i'll try my linux box
 
@Esailija very very interesting stuff, i'm glad i caught you talking about that yesterday
 
@rlemon wait they named it wrong (x
 
anyone share my random pet peeve of people not researching before posting a question?
 
1:15 PM
@davblayn Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
Audio Data API ( Audio API sometimes is Firefox ) , WebAudio is Chrome it will work
 
where is the funny pic about SO questions
not the jQuery one, but the new one
 
because thats what they are showing :D
 
@Btuman No, we all love stupid questions which make no sense
 
starring so I can find it
!
 
1:15 PM
I just googled an error I had
 
@BenjaminGruenbaum you might wanna include jQAudio it might work ;D ;D
 
3 stack overflow questions
on the same thing
 
@Esailija maybe he means center of mass LOL
 
like I spend hours, days even, before postign a question
wtf!
 
I have almost posted a technical problem question but then figured it out
 
1:16 PM
y i was ban again?
 
@BenjaminGruenbaum Nobody is muted
 
Apparently not banned enough.
 
if you have good research skills and don't find something in a few days
 
Has anyone got some experience with facebook's page tab?
 
1:17 PM
will you get answer from SO? probably not
 
@Esailija Sometimes, you do.
 
hi octavian!
 
Oh hey!
 
@BenjaminGruenbaum example
 
All good?
 
1:17 PM
ok, why i was muted for 100m?
 
0 Questions votesactivitynewest
You have not asked any questions
 
works on XP
 
@Trufa Yea, mostly.
 
btw I am talking about technical solve-this-for-me problems, not why-questions or the like
 
@rlemon thats nice man
 
1:18 PM
like Why this performs faster than that is not what I'm talking about
 
@OctavianDamiean good to hear!
 
and so on
 
@BenjaminGruenbaum you know, I even tested FF then realized "well shit, I only use the webkit prefix :/"
 
@rlemon lol
 
Yeah, I figured out the issue late, and need to get around to answering my own questions
 
1:18 PM
@Loktar ok, so back to my issue: I think I should just try both ways and perf them
 
facebook documentation sucks
 
@Esailija When experts come here and explain stuff.
 
yeah you might as well
 
!!s/documentation//
 
@OctavianDamiean facebook sucks (source)
 
1:19 PM
@Esailija For example, "why does framework X implement feature Y like it does?" often gets very useful answers.
 
yeah that's not the kind of stuff i'm talking about
 
1 min ago, by Esailija
btw I am talking about technical solve-this-for-me problems, not why-questions or the like
 
I absolutely love debugging questions.
 
50
Q: How can I perform a culture-sensitive "starts-with" operation from the middle of a string?

Jon SkeetI have a requirement which is relatively obscure, but it feels like it should be possible using the BCL. For context, I'm parsing a date/time string in Noda Time. I maintain a logical cursor for my position within the input string. So while the complete string may be "3 January 2013" the logical...

see, no satisfactory answer
 
1:21 PM
Like SO would be a huge distributed debugger where you just dump your faulty code into a textarea and get the error returned.
3
 
hey what if by mistake admin bans himself?then he can't even unban himself!!
 
@Esailija That's one example
 
@web2students.com Indeed, such a case has not been thought of.
 
@web2students.com I expect it'd remove that person from room owner status, and ban them too
@OctavianDamiean Actually, I talked about it with Zirak, the above happens in practice
Sorry for the refresh everyone!
!!/mute BenjaminGruenbaum 1m
 
1:22 PM
@BenjaminGruenbaum Wait, it really demotes room owners?
lol
 
@BenjaminGruenbaum Muted user 1348195 for 1m
 
It changes their status to 'explicit read', no matter what that status was :)
Now, an interesting thing to check would be
 
1:23 PM
That's kinda odd.
 
!!/mute CapricaSix 1m
 
ok, @BenjaminGruenbaum this is bug or feature?and why i was ban?
 
1:24 PM
Does anyone have this feature in CHROME when you resize your browser you have the size pop up in the top right corner?
 
@web2students.com Because a room owner felt like you were being more harm and good to the room
 
Bug filing time.
 
No need, this is all known behavior, it's no big deal
@Esailija I think there are useful SO questions, although admittedly I asked most of mine after knowing the answer.
 
Anyone else feel like taking a look at my problem? I think Jan Dvorak is gone for the time being.
 
While that might be, it's not how it should work.
 
1:25 PM
Very well
 
That's just the minute expiring, so it changed us to explicit write access
 
@billmalarky whats up?
 
Was that from the sandbox?
 
1:26 PM
@BenjaminGruenbaum no I mean, if you have good research skills and base understanding and knowledge, and have a technical how-to problem
 
and you wrestle the problem for a few days
 
@OctavianDamiean No, I banned me and her for a minute, the minute expired.
 
what if by mistake u click me as room's owner??? :P
 
if you cannot come up with anything at that point, will SO help
 
1:26 PM
@web2students.com We'll remove you again, then
 
@Esailija Not likely, but sometimes, it will.
 
@Connor Strange jQuery issue. I'm using colorbox to load some content into a page, but when I use colorbox to load more content a strange bug pops up and only under certain circumstances. I can link to the page with the issue and the js code if you are interested.
 
Oh dude ...
 
Wait, what?
!!/die
 
1:27 PM
@BenjaminGruenbaum Registered; need 0 more to execute
 
!!/die
 
@billmalarky i can take a look...
 
Infinite loop?
 
anyway i am going offline now bye all
 
what happened =)
 
1:27 PM
@BenjaminGruenbaum seems you need some help
 
!!/die
@Zirak now that's a bug :)
 
@BenjaminGruenbaum I did
 
I created one extension for jquery ui slider to add additional functionality
 
1:28 PM
@BenjaminGruenbaum I guess it refreshes the banlist
 
It works as expected
 
@BenjaminGruenbaum That didn't make much sense. Maybe you meant: live
 
She thinks you should be banned
 
1:29 PM
!!/ban
 
!!/mute
 
@Connor Okay first log in here: lolbrary.com/user/loginform.php with username javachat pass javachat and then go to here lolbrary.com/user/shelf/javachat/1 you will see 2 nsfw thumbnails (don't worry they are tame). When you click on one thumbnail and then click the nsfw shield image that pops up, it shows you the actual image. However, if you click "next" and go to the next nsfw content, clicking on the nsfw shield doesn't reveal the underlying image.
 
@JanDvorak Nobody is muted
 
1:29 PM
@BenjaminGruenbaum Yeah, sorry...manually fixed that
 
but after using this extenstion default callback function is not working
 
The refresh happened before the bot had a chance to remove you from the mute list
 
anyone can help me
 
I'm off, will be back a bit later. Bye everyone.\
 
I'll add a clause so you can't mute a bot. Or the more general "can't mute a room owner"
 
see ya
 
@Connor The actual js code can be found here lolbrary.com/scripts/shelf-popup-actions.js search for "NSFW post shield uncover"
 
@Zirak "can't mute a room owner" would be too nice
 
1:31 PM
@JanDvorak Jan did you get a chance to look at that page I was having an issue with? Thanks!
 
@billmalarky ok when i press next & prev it shows the images fine? ....
 
3 mins ago, by gowri
I created one extension for jquery ui slider to add additional functionality
 
@billmalarky I did some debug; it seems the script is run before the elements it hooks to are inserted
 
@gowri want a sticker?
 
dafuk is going on ?
 
1:32 PM
@billmalarky try delegating the event handlers to some element that isn't added dynamically
 
sticker?
 
@Connor Conner, did you click on the big white text images that say "NSFW click here to view"
 
@Darkyen @billmalarky is vamping hard, and gowri is advertising?
 
@Darkyen PMS
 
lol
 
1:33 PM
@rlemon ???
 
!!!
 
what happeend b/w caprica and benji
 
she broke his heart
 
@Darkyen Told you, PMS
 
seemed like caprica wanted to run away with benjamin
 
1:33 PM
@billmalarky yeah then i get a pink Chinese image?
 
so he broke her legs
 
!!/define PMS
 
@billmalarky also, please don't download javascript through AJAX; for starters, it doesn't show up in the sources panel, and is harder to debug
 
lol
 
@JanDvorak Jan, can I tie an event to a div id that doesn't currently exist on page? Or should I "bubble up" with jquery's on delegation feature?
 
1:33 PM
@OctavianDamiean kindly define PMS for me ?
Premenstrual syndrome (PMS) is what google answers
 
Premenstrual syndrome (PMS) is a collection of emotional symptoms, with or without physical symptoms, related to a woman's menstrual cycle. While most women of child-bearing age (up to 85%) report having experienced physical symptoms related to normal ovulatory function, such as bloating or breast tenderness, medical definitions of PMS are limited to a consistent pattern of emotional and physical symptoms occurring only during the luteal phase of the menstrual cycle that are of "sufficient severity to interfere with some aspects of life". In particular, emotional symptoms must be presen...
 
Lmfao
 
@Esailija did you forget to call the level 2 constructor in level 1?
 
@billmalarky you can't bind to an ID. You can either bind to an element, or delegate to some element
 
@Esailija or was that intentional?
 
1:34 PM
@Connor Yes, but then if you click previous to go to the other nsfw image then you can't reveal that image. It is strange.
 
@redline no, I removed it manually
I have macro that generated those
it always generates _super.constructor.apply( this, arguments )
 
@Esailija and why did you remove it?
 
lol pms picture looks so serious
 
because it would affect performance unfairly*
we are just about creating objects with 4 level inheritance
 
I'm going to add an extra case, i'm curious how that affects performance
 
1:35 PM
the inheritance is there regardless if we call super constructor
 
but i understand you are making it comparable to object.create as it should
i just didn't know you used a macro and that's why it was in level 2 and 3
 
@JanDvorak Jan, so I should try to delegate it to a higher div that exists on the page before the content is loaded with ajax? Since colorbox gets appended to the body element, should I tie the js event to body and then have it bubble down to the NSFW shield div like $('body').on("click", '#shelf-actual-post-content-nsfw', function(){ function code goes here});
 
@billmalarky correct
@billmalarky I was initially suspecting duplicate IDs or not-frequent-enough rebinding, which it would solve as well
 
@JanDvorak Interestingly enough it seems that all the other similar code works... Oh wait, I think you may have solved it. All the other onclick functions are tied to class selectors, not an id selector.
 
I should have payed more attention in trig class.
 
1:41 PM
@JanDvorak I'll switch the id to a class and see if that solves it.
 
@Esailija it had a negligible effect in ff and ie, but about 1/3 the ops in chrome
 
@billmalarky perhaps you do have duplicate IDs after all?
@billmalarky try replacing #id with *#id. If that alone solves that, you have duplicate IDs
 
@redline I see
you could make it more efficient by
method.$constructor = _super.constructor
 
@JanDvorak On it.
 
1:43 PM
and then in the constructor
this.$constructor( param1, param2 );
 
so invoking the constructor manually instead of using the literal constructor
 
@JanDvorak You mean replacing #id with *#id in the selector correct?
 
no .apply, and no arguments
 
@billmalarky as in, $("*#some-id").click(...)
 
@Esailija but you could still have no apply or arguments even if you didn't use $constructor
 
1:45 PM
@billmalarky that star makes jQuery think it's not an ID selector, and use querySelectorAll
 
@redline oh right, yea
 
lol
 
but it's a Context variable instead of a object property read
this.$constructor doesn't need to read anything from Context
 
so you're saying to use both of those together
 
i cant think :-/
 
1:46 PM
there was a reason behind $constructor
 
oh god no :-((
 
it's basically object prototype property read vs closure variable read
 
i cant code... gurr i think i need a walk or some time out :-|
 
_super has to read closure variable
 
cya guys.. ventout
 
1:46 PM
ahh got it
 
@JanDvorak Jan, we, or should I say, you, solved it. I'm going to go ahead and change the id to a class regardless. It's a bit strange because I was under the impression colorbox removed all the old content from the dom when it loaded new content in but I guess not.
 
it's the closure vs not
 
ye
 
so closure can really drop that down to 1/3 the ops
 
@billmalarky I can't find the old element anywhere, however, when the thing is done
 
1:48 PM
anyone got lots of scrap aluminum and want to fabricate me a few things ??? :P
I'll pay shipping ;) ;)
 
@Esailija does closure degregate equally with each level of closure or is it pretty much, whether there is closure or not is what gives the hit
 
@JanDvorak Must be some quirk of how colorbox functions. Perhaps it loads in the new content then removes the old content so there are 2 divs with the same id for a split second. I'm not complaining.
 
no one?
@Gacnt you work in a metal shop no?
 
@redline biggest hit is from having a closure in the first place
 
@rlemon s/want to fabricate me/want me to fabricate/, then you might stand bigger chance
 
1:49 PM
as for deeper levels, I haven't investigated it actually
 
@Esailija i'd be curious to know how much the levels of the closure chain have an effect
 
@JanDvorak yea I don't want to make nothing
I need stuff made
 
@redline ah yes, now I found it
well at least a blog post
 
Hey I got a question... currently my company uses <iframes> to embed an e-shop on affiliate sites but they want to make the embedding more customizable... how could I do this. I was thinking about maybe making a Jquery plugin so they could just $('div').eshop(); or something like that.. is there a better way?
 
1:51 PM
36" (long) x 3/4" (high interior) x 3/4" (wide interior) aluminum channel
 
@JanDvorak @Connor Hey I just want to thank you guys for taking your time to help me out. Have a great rest of the morning! :-)
 
@Esailija alright i'll check that out, thanks
 
I need a heat sync for strip lights.
 
people im getting confused here, i have just installed a add on for chrome that shows the window size when you resize when fullscreen it says like 1800px wide when my screen resolution in 1680px, i have just tried jQuery window width and its saying the same
!!tell blackbee format
or don't
 
1 message moved to Trash can
 
1:54 PM
@rlemon lol
 
if you don't format your code this can go on all day
or we just mute you
your choice.
 
@blackbee please format your code.
 
ok
 
although muting would be harsh
 
1:56 PM
i write it and click on fixed font??
 
@Esailija and strict mode causes arguments object not to be in the context?
 
@blackbee That works too.
 
strict mode enables some guarantees about arguments
 
You can also hit Ctrl + K, also do us a favor and don't put the actual question in the same fixed-font formatted message.
 
sanity check: all inner functions will be strict when the outer-most is strict...
 
1:58 PM
yes
 
k good
 
@rlemon Yeah, kinda, we have fabricators and machinists a building over, why?>
 
might be worthwhile to run the jsperf in strict mode
 
Split it in two messages.
 
if it mentions arguments
 
1:58 PM
yep that's exactly what i was thinking
 
7 mins ago, by rlemon
36" (long) x 3/4" (high interior) x 3/4" (wide interior) aluminum channel
^^ but I'm cheap and hoping someone here has extra sheets of 1/4" aluminum
 
    function mail_check() {
    $('#iemail').keyup(function() {
    	var n=getIdValue('iemail').length;
    	if(n<9)
    	$('#check_mail').html("Bad Email Address");
    	else
    	$.post("validatefields.php",{iemail:usrEmail},function(res){
    		$('.errors').html(res);}
    });
    }
    if i wwrite the code like this, then will it be executed onkeyup or do i need to call it from the html like
 <input type="text" id="iemail" onkeyup="mail_check()"/>
 

« first day (969 days earlier)      last day (3996 days later) »