« first day (1446 days earlier)      last day (3519 days later) » 

6:00 PM
but I agree. it shouldn't wrap the script by default.
it is misleading
 
;)
 
did I scare Jenn away with my 1/2 ?? I didn't mean for it to sound rude.
 
no, I'm just confused
 
also @JonathanSampson while editing as html in elements tab, add emmet support :D
 
I can see how the pause after while I made the image could have made it seem that way
@Jenn right click on the results frame and view source
you'll see
 
6:01 PM
those free hand red circles xD
 
<script type='text/javascript'>//<![CDATA[
window.onload=function(){
function getValues() {
    document.getElementById("test").value = 'start';
}
}//]]>
so your function getValues is scope blocked by the anon function it is contained in
so nothing outside of that function can access it
 
dat //<![CDATA[
 
yea. gotta love jsfiddle
 
I would like to see jsfiddle in a darkish interface, easier on eyes... gotta make a userscript for that someday
 
I see. Okay, but you are all saying that I shouldn't use onchange in my actual code because it is an inline event?
 
6:03 PM
@AwalGarg I would love something like that while editing HTML in IE. Please consider adding that suggestion to the F12 Developer Tools sub-forum.
 
@Jenn don't listen for events in your HTML
 
@JonathanSampson sure why not... second one the same day :D
 
var input = document.getElementById('foo');
input.addEventListener('change', function(event) {

});
@Jenn, this is how you should be listening for events
 
ohhh, okay. I can definitely change that.
 
6:04 PM
@rlemon Don't forget to name your anonymous function! :D
 
and change your js fiddle options to this for now, it will work.
@JonathanSampson wasn't that because of some shoddy IE leak?
:P
Chrome stack traces are fine, and no leaks
:D
 
@rlemon I'm thinking more for debugging purposes; a call-stack full of Anonymous Functions is depressing :P
 
I've never run into a situation where I've needed to name my anon functions
 
thanks so much. Everything I have learned about javascript has been while maintaining old systems. So onchange is everywhere. I didn't even realize I shouldn't be using it. Oh well
 
@SomeKittens same
 
@JonathanSampson Great for obfuscation though...
 
@JonathanSampson Not if you use a browser that allows you to zoom right to the function.
 
@Jenn you can use it. but you shouldn't :P it is like, you can nail in a nail with a rock. but a hammer is better. but in a bind a rock will work too
 
@SomeKittens It's a good habit to form.
@SomeKittens Internet Explorer takes you to the functions; but you don't want to have to click around on four Anonymous Functions to find the one you want.
:D
 
I don't often use anon functions unless it is a iife which I don't care about
 
6:06 PM
@Algorath Obfuscators will change those function names up for you :)
 
@JonathanSampson I disagree. It's meaningless typing
 
foo.addEventListener(evtName, bar);
function bar(event) {

}
is what I would write in my production code
 
@rlemon That's usually the one exception I make; though I at times use (function IIFE(){ /*...*/ }()); when I'm feeling super pure.
 
@rlemon I think I'd rather learn the better way
 
6:08 PM
@JonathanSampson I name them only if I want to use recursion ;)
(function run() {
  ///
  run();
}());
 
@rlemon or to escape from callback hell
xD
 
I use commonjs and browserify
 
:P
 
screw yo iife
/me jokes
 
6:09 PM
Loktar used IIFE's before IIFE's were cool
now that they are he's too hip for them
 
no man commonjs is just the light!
well ES6 modules are truly
 
way to ruin my hipster joke
jerk
 
umm I mean I got burned by them
because I used them before they were cool
 
also @JonathanSampson when we use device emulation, the new viewport display is overlaid on the original one... this creates a confusing cascaded view of the same page. It would be good if the original one disappeared and the new one centered in the screen.
 
@AwalGarg Screenshot of what you are describing?
 
6:12 PM
hold on
can't find on google, I am on linux right now. I would post one from FF to tell you how what should look like
 
@SterlingArcher Please tell me you're joking.
 
@JonathanSampson ^ is from FF, but on IE, different views stack together on each other. It looks confusing.
 
@SterlingArcher Shameful.
 
6:18 PM
just tried IE device emulation for the first time
it was confusing and I ended up with this
 
...
 
IE is bad
 
@rlemon rofl, which version of ie is that?
 
I should give FF device emulation a shot
 
IE would be useful if it were secure.
 
6:19 PM
@AwalGarg
 
hmm, I have the same one but mine behaves differently... And I am too lazy to boot in windows. I am in the middle of 500 lines of code in ST ;p
 
@TravisJ I wouldn't use IE any more than I would FF. I am a chrome man. but in recent months Ive been able to drop almost all IE support <10
so yea, that is nice.
can dev for modern browsers
 
like Opera
hurrrrr
 
@rlemon - I still support IE8+ mostly. I only use chrome because it has the least amount of exploits.
I would use IE if it were more secure than chrome.
 
90% of why I use chrome -> devtools
 
6:21 PM
Opera is pretty nice, tbh. Also, since version 15 or so, Opera is basically a reskinned Chrome
 
in IE9, I only saw lack of placeholder and border-radius... other than that, I think everything is almost fine.
 
@Zirak I can't do opera. but I'm biased and I know it
 
So much envy...
 
(yeah some JS functions too)
 
We just got IE 9
 
6:22 PM
@rlemon That's an odd Emulation result; what were your settings?
 
boycotted since the days where they baked ads into the browser.
@JonathanSampson umm windows phone, then tried to apply the smallest resolution
 
ok I am rebooting
 
then that happened so I closed it
 
I used Opera back when it was in its peak of coolness, but then Chrome started to dominate the market, and I switched
 
@rlemon Yeah; I suspected that was the case. I wasn't able to repro. Let me try on another device...
 
6:23 PM
Well, give it another shot.
 
@JonathanSampson okay my steps to reproduce
1) open msn.com in IE11
2) F12 to the dev tools and goto emulation tab
3) select 'windows phone' under browser profile
4) select 4" resolution (800*480 landscaped)
5) undock the dev tools. (ctrl + p)
does it every time ;)
 
@Zirak opera has always been so damn fancy
 
Repro'd. That. Is. Awesome.
 
:D
 
@rlemon Good news is I wasn't able to repro on a more recent IE build :)
@rlemon Seems we're snapping the sized viewport to the window. Resize your window for a better experience.
@rlemon I just resized mine, and I actually favor this a bit more than the approaches that leave remaining white-space in the tab empty. I'm going to talk to somebody about this though - figure out what the best approach is.
 
6:34 PM
I still can't believe we didn't take a picture.
 
@BenjaminGruenbaum @Mosho I thought Zirak appreciated a husky woman
 
Ok, at this point we're just going to stop discussing Zirak's private life because he fuckin hates that haha.
 
all the more reason!
 
;(
 
6:34 PM
@Mosho you've now met both of us. who would win in a fight. me or Zirak?
 
Sorry, it's the law.
 
@BenjaminGruenbaum You took out my promise question as well :(
 
@BenjaminGruenbaum you moved the ie screenshot stupid! ;p
 
@rlemon I haven't met you. But I'd still put my money on you :D
 
@SecondRikudo it's not about promises, it's about how process.exit works.
 
6:35 PM
@BenjaminGruenbaum censorship!
heathen!
 
@BenjaminGruenbaum No, the reason was I forgot to actually return the promise.
And so the next .then didn't wait for it.
 
i.sstatic.net/9fdUW.png I hope this is the expected screenshot @JonathanSampson but it is a very weirdish system and confusing at times.
 
@SecondRikudo use promiselint
 
@rlemon depends on your definition of fight
 
@BenjaminGruenbaum wat
 
6:36 PM
I think he can take you at being a massive nerd :D
 
It catches these errors.
 
@Mosho but in a slap-off?
 
that is a nerd's specialty
 
:(
 
!!mindblown
 
@BenjaminGruenbaum
Also send me that link you promised yesterday!
 
@BenjaminGruenbaum tomorrow me and Ariyeh (sp?) are having a push-up competition
don't miss it :D
 
@Mosho you know, Aryeh is a ninja right?
 
@Mosho my money is on you
 
TIL css speak
 
6:38 PM
@BenjaminGruenbaum You've seen him, so no he isn't.
 
@Mosho He's been doing Karate since he was 5, and has been doing it for 4-5 times a week ever since.
 
@AwalGarg I am not able to repro this issue in IE11 on Windows 8.1. What is your OS version, browser version?
 
@JonathanSampson IE11 win7 ultimate x64
 
@rlemon like benji said, this guy is quite confident and now I know why :P
 
@Mosho unless you're doing it with one hand, I don't think doing push ups bothers him very much, I'm sure he can do 500.
 
6:39 PM
he can't do 500 :|
 
@AwalGarg win7 ultimate x64 === cracked window :D
 
@JonathanSampson can you show us your version to compare?
 
time them. how many you can do in 60 seconds and then go for how many total
 
@SecondRikudo stahp! xD
 
@Mosho remember, he's skinny, he has a lot less to lift.
 
6:40 PM
@BenjaminGruenbaum subtle
 
@Mosho @BenjaminGruenbaum just called you fat
 
A lot less to lift
 
kick his ass seabass!
 
Also, he can break concrete with his hands, and has shown us videos of that :P
 
I am proud of my fat
 
6:40 PM
What? @Mosho is a big guy, no shame in that :D
 
Mosho is a tank
 
Especially since it's mostly muscle
 
I was surprised when I saw him
 
He can also twist the very fabric of time and space, with his biceps.
 
@taco how was the sausagefest?
 
6:41 PM
Re!
When you use xhr.send(), how to be sure that the page had no error when getting data back from server with xhr.onload ?
 
I mean @Mosho with that last statement btw ^
 
> version 11.0.9600.17041
@JonathanSampson ^
 
@Basj There are all kinds of 'errors'
 
Do you usually check for status in xhr.onload?
 
@SecondRikudo caught you mirin'
 
6:41 PM
@Basj you use .onerror for errors and .onload with the status code otherwise.
 
I doubt I can do much more than a 100 pushups
but we'll see :X
 
most i've ever done was like 120
and that was at my prime
now I can do.. ugh.. like 30 max
 
There're errors in sending, which can be caught using xhr.onerror
 
@Mosho good luck bro :D Did you bet anything?
 
And there are errors in your requests, which usually can be checked by looking at the status code inside the onload handler
(404, 500, etc)
 
6:43 PM
@BenjaminGruenbaum if I win he releases me of my $4 debt, and if he wins I owe him $5 rather than just a measly $4
as you can see, the stakes are high
 
Later today, I'll be interviewing a guy who worked on the original Sims
 
speaking of which, time to lift
!!afk
 
@Mosho CAD or ILS?
makes a big difference
 
he wants twonies
 
toonies*
 
6:45 PM
@rlemon Just saw the taco cat (Taco pussy)
 
@AwalGarg I'm provisioning a VM with your specs to check. Here is what I get when I enable a new Browser Profile on IE11 in Windows 8.1: i.imgur.com/5Ufg4YR.png
 
ILS are ₪, not $
 
@BenjaminGruenbaum I call a PHP, and then during xhr.onload, I use xhr.responseText.... But if there is a PHP error.... the PHP error is visible in xhr.responseText, that's very bad :) How would you do on such a situation ?
 
although twonies would make more sense now that I think about i t
dammit Canada! how did you fuck that up!?
 
@Basj you check the http status code, also - you shouldn't have php errors in production.
 
6:46 PM
@JonathanSampson this is what I get when I resize my window to a lower size, though.
 
Anyway, I'm going afk for a bit, ttyl people
 
The Canadian 2 dollar coin, commonly called the toonie, was introduced on February 19, 1996 by Public Works minister Diane Marleau. The toonie is a bi-metallic coin which on the reverse side bears an image of a polar bear by artist Brent Townsend. The obverse, like all other current Canadian coins, has a portrait of Queen Elizabeth II. It has the words "ELIZABETH II / D.G. REGINA" in a different typeface from any other Canadian coin; it is also the only coin to consistently bear its issue date on the obverse. The coin is manufactured using a patented distinctive bi-metallic coin locking mechanism...
 
Later @BenjaminGruenbaum
 
seriously... that is going to bother me now @Mosho
 
!!afk @rlemon what about the bot? How is the bot doing?
 
6:46 PM
thanks.
 
anytime breh :D
 
!!tel BenjaminGruenbaum you sonofabitch
 
@BenjaminGruenbaum you sonofabitch
 
@AwalGarg Yeah, I'm not seeing the full page beneath the resized viewport that you're seeing. May be a Windows 7 issue; I'll definitely know in about 10 minutes :)
 
I like bi-metallic coins. I like shiny things in general
 
6:47 PM
@JonathanSampson I'm on W7
I didn't see that
 
@JonathanSampson sure
 
@rlemon Strange.
 
@taco my toaster is shiny
and has red trim
 
@rlemon you are very literal
I'd say I like shiny things like coins, or old statues covered in tarnish. I like cleaning them up and polishing them so they're shiny & new again. It's my kind of fun. :d
 
@BenjaminGruenbaum PHP error would not be a 'HTTP status code' error : developer.mozilla.org/en-US/docs/Web/HTTP/Response_codes , is that right ?
 
6:50 PM
@Basj BenjaminGruenbaum is afk: @rlemon what about the bot? How is the bot doing?
 
so now we ping benjamin and caprica pings rlemon xD
 
@Basj return a HTTP code. You shouldn't return PHP errors. That's only for debugging.
 
I'm the queen of Canada
 
user1596138
span.slideTit {
 
user1596138
Interesting...
 
user1596138
 
@taco what would you recommend to clean then seal my brass ecig mod
 
@rlemon toothpaste with a little bit of water
 
@JonathanSampson another one ^
(I just switched through a few screen sizes and each kept stacking over the original one)
 
In a Node application, would you handle error logging inside the application (i.e. open a file stream, and write stuff), or would you use console.error and log stderr to some file?
 
6:57 PM
@AwalGarg It doesn't continue to draw the lower viewports, does it? If you open up a WebGL demo, or CSS3 animation, and then resize a couple of times, does it keep rendering in all regions?
 
@SecondRikudo I think I'm using bunyan for logging
 
@JonathanSampson my present system doesn't support webgl, and no for css3 animations.
and no, it doesn't draw the lower viewports.
 
@AwalGarg IE11 had support for WebGL. Okay, so those viewports aren't real viewports any longer... just visual artifacts. I'll keep investigating.
@AwalGarg Could you run dxdiag from cmd, and email me the results?
 
@JonathanSampson sure ;)
@JonathanSampson sure, just a sec
 

« first day (1446 days earlier)      last day (3519 days later) »