« first day (1411 days earlier)      last day (3542 days later) » 

10:00 AM
All browsers should
 
ok thanks :)
 
Well, all browsers that support .textContent
I wish I could downvote comments
 
@Cerbrus For now, you can comment that that comment is wrong. People who agree will upvote your comment and the other one will be buried down.
 
I agree. I think downvoting comments would be nice
Maybe you wouldn't get negative votes, but it would cancel out the postive upvotes
 
Is using timeout a good practice ?
 
10:07 AM
Sure, @CustomizedName
Sometimes, I don't want to get in a discussion with whoever posted a bad comment. I'd prefer to just downvote it and be done with it.
 
ok it works, but i will read more if it is definitely the best way of doing it, thank you :)
 
Not upvoting is equivalent to downvoting.
 
Eh, nope.
Not when comments are concerned
Well, not at all actually. as far as I know, there's a limit to the amount of votes you get
 
Upvoted comments are visible to others, which as a general rule means they are comments worth reading
However, just like some answers deserve downvotes for being inaccurate, so do comments I think
2
 
Well, I was just trying to be cinematic...
didn't mean that comment. :D
 
10:18 AM
Well we are just making conversation aftearll
 
0
Q: Inconsistent Timestamp in JavaScript?

Fidel90I'm running into some strange error with the Date.now() function in JS. Background Info: I'm developing a webApp that sends and receives packets to/from a server. All my incoming packets are marked with a timestamp, generated by Date.now(). Among these packets is data, that is printed into a lin...

Can anyone reproduce that?
 
Good Morning
 
@AbhishekHingnikar at 4 in the evening??? bro u broke my records!!
 
It's midday here
 
@AwalGarg bro i sleep at 7 in the morning
 
10:20 AM
@Neil 'aftearll'?
@AbhishekHingnikar why did you even sleep? Just keep awake lol
 
@Cerbrus it's always morning on the internet
 
@BenjaminGruenbaum okey. Could ask you a favor? Are you able to see the work of one script under Safari 5.1 or 6 on mac?
 
@AwalGarg work productivity down.
 
kk
guys how to keep your mobile users assure that they are on the right site? Most mobile browsers hide the url bar while you are busy browsing the site...
I guess this would make a nice Information Security question but I am lazy to write a question there...
 
@Cerbrus: nope, I've lowered the interval down to 16ms and still doing nothing
 
10:26 AM
@AwalGarg a secret greeting is a nice touch
 
@Eugene I have a laptop with Safari 6, but it's not connected, why?
I have Safari 8 here
 
ask them what they should be called as, and promise never to tell anybody.
 
In the Outlook Web App, the Refresh button is inside Settings. WTF
 
@JanDvorak a greeting for the sake of ensuring they are on the right side? are you sure? I don't think users will understand why is it there...
 
10:28 AM
@jAndy WTF. Also, I'm not laughing.
@AwalGarg they will if you explain it to them
some banks do that, IIRC
 
@BenjaminGruenbaum I need to know the min. version of safari where specific functionality works? I thought, that caniuse.com gives correct info, but after testing on windows I see, that it doesn't.
 
@JanDvorak but I am thinking, why don't big sites like SE, Google, FB (not sure about FB since I don't use it), Gmail etc. worry about this? Or if they do, how do they solve the issue?
 
@BenjaminGruenbaum To be more precise caniuse.com/#feat=matchmedia.
Script is here jsbin.com/focexo/12
 
@AwalGarg Have you noticed what's in common for all of these sites?
 
I need to know whether it captures the event in Developer console.
 
10:31 AM
@SecondRikudo huge traffic, lots of developers, lots of users, huge success.
ok, they have mobile apps, right?
 
@SecondRikudo mostly for desktop machines?
or ^that
google doesn't have a mobile app
does SSL warn you when you're navigating to a different domain?
 
@JanDvorak you mean a search app for mobile? It has chrome with default Google search built into url bar.
 
but yes: step one is to use SSL (with a valid cert from a respected authority)
@AwalGarg true
 
but on iOS, google has itunes.apple.com/us/app/id284815942?mt=8 (which I sometimes use on my iPad)
@JanDvorak that is not enough, atleast not for such large and targeted websites.
 
Google also has heuristics for blocking suspicious requests
 
10:37 AM
@AwalGarg yup
 
another thing they have in common is they are well-known and expected not to subvert their own security-
 
@AwalGarg ಠ_ಠ
 
@Eugene browserstack it
You can do it :)(
 
@Neil ? I don't think that is a word... atleast I don't know the meaning, and .oh wait...
!!urban aftearll
 
@AwalGarg No definition found for aftearll
 
10:40 AM
wtf?
 
@AwalGarg ಠ_ಠ
 
@Neil c'mon, what does that mean?
 
It's a typo of "afterall", come on
 
@Neil which is a typo of "after all", rite?
 
any book lover here ?
 
10:41 AM
hahahaha! wtf?
 
@CustomizedName does Bible count?
 
@CustomizedName present sir!
 
@JanDvorak oh dear
 
@Neil ಠ_ಠ
 
Whoever said Christans were overly judgemental? Certainly not me!
 
10:43 AM
Hi
 
Hi
 
Hi
 
I am book lover Awal Garg.
 
@BenjaminGruenbaum not sure I understand you.
 
10:44 AM
@ramesh c-c-c-combo breaker
 
belated Hi
 
stop starring bullshit, guys
 
s/guys/awal/
 
got my new resume,
its printed in comic sans ! https://www.youtube.com/watch?v=zq7Eki5EZ8o this guy is really smart lol
 
sry
 
10:45 AM
1 message moved to Trash
 
@JanDvorak IT Books in context here -_-
 
@CustomizedName I prefer online material
cost consideration
 
@JanDvorak I prefer videos even though they talk so much crap
 
@Eugene browserstack, the website
 
@CustomizedName well, they often do
@CustomizedName with videos you can't choose your tempo
 
10:48 AM
I prefer this room after googling.
 
Why is India getting so bad at cricket?
 
this room is not a javascript tutorial
@indieblue the british sport, you mean?
 
@JanDvorak yep
 
Anime in a nutshell
 
lol I call it bat ball! :D
 
10:49 AM
0
Q: Sorting code execution with Q-promises

Michael VayvalaI have tried to sort my node.js code with Q-promise: var request = require('request'); var cheerio = require('cheerio'); var Q = require('q'); var companiesUrls = []; var url = ''; var companiesUrls2 = []; var carsUrls = []; var carsOwnerReview = {}; var carReviewUrl = []; var site = 'http://www...

 
^ Its all about the pentium :o
i think he knows more tech jargon than I do :-/
 
I just made a userscript which attaches a delete button to all onebox boxes in chat \o/
 
@AwalGarg Whats onebox?
 
@SecondRikudo More anime craziness: img0.joyreactor.com/pics/post/…
 
@indieblue those boxes which appear when someone shares an image/youtubeLink/wikiLink/twitterLink/otherCrap in chat
 
10:53 AM
ok
@JanDvorak Did you think en.wikipedia.org/wiki/Cricket_(insect) ? :D
 
@BenjaminGruenbaum awesome. Didn't know about it. Got tested. Thank you.
 
so @SecondRikudo what about users not using apps but the mobile sites? (like m.youtube.com)
 
@AwalGarg When the site first loads, the green lock sign appears. The user is expected to look at it before he starts to scroll.
 
@SecondRikudo then he clicks some link, and another page loads. And now he is just as much vulnerable as an IE5 user.
 
@AwalGarg And when that other page loads that green mark should still be there
And if it isn't, then the user shouldn't trust the page.
 
10:59 AM
@SecondRikudo Some mobile browsers don't make the url bar appear on page load.
 
@AwalGarg Don't use them
Also, most browsers can be configured to always display the address bar.
 
@AbhishekHingnikar If you have a moment to listen to a bit of comedy: youtube.com/watch?v=Z8VD4JXUozM
 
@JanDvorak I am after a video series for JS in which they develop something meaning full, instead of listening to crockford about how computers came into existence yuiblog.com/crockford
http://stackoverflow.com/questions/11246/best-resources-to-learn-javascript

286 votes for the answer, i wasted 1.30 hours watching the first video
 
11:22 AM
@Eugene yw
 
11:35 AM
is someone aware of javascript "jelly style" dropdowns?
 
I'm about to get crazy trying to connect socket.io with express.js
I can't find a single tutorial of express 4. All of them are of older versions of express.js.

Anybody knows any basic tutorial about how to create the proper app.js for it?
 
@Moderateur what is "jelly style"?
sorry, probably not the best but I hope it'll help
 
@GNi33 something like this codepen.io/sol0mka/full/Jsyxq
but for dropdowns instead
 
you could use something like chosen and try to style it this way
 
@GNi33 nothing about socket.io and express.js there
 
11:39 AM
@Moderateur eeewwww
 
@GNi33 I already have the dropdown but I'm trying to understand how they create the jelly style and then apply it to my dropdown "on click/open". i asked here because I thought there was some simpler example somewhere and you peeps knew it :D
@CustomizedName whacha say?
 
@Moderateur drop downs are not meant to scroll ?
 
@CustomizedName lol I don't want the dropdown to scroll xD I want it to open in a "jelly" style, not on scroll really
 
You don't want that kind of animation. This is not the animation you're looking for.
 
11:42 AM
like when you open the dropdown it bounces like a jelly cream
@KendallFrey how so? are you the pope? :p
 
@Moderateur ahhh right
 
well if it isn't nice I dare you to suggest me a better way to animate a dropdown
:p
 
anyone using webbsy here?
 
@Moderateur I am not a Jedi. I am the sexiest beast in this galaxy.
 
users of the site said it's boring and told me to make it animate somehow
 
11:44 AM
boring is better than frustrating
 
@KendallFrey lol I thought you was either him or his brother .. sorry for the confusion
 
UI elements moving is great, until I want to click one.
 
@KendallFrey ur saying I should ignore my users wishes?
 
They shouldn't be moving more than the average human reaction time
 
11:46 AM
ahhh ok :-)
 
@Alvaro scotch.io/bar-talk/… well here's one that shows the differences and helps you upgrading vom 3 to 4
 
well maybe I can do so that when the dropdown opens it is slightly moved to the right and then back to the left...
 
@GNi33 i dont know about express, im totally new so that won't help much
but thanks
 
not so invasive no?
xD
 
11:47 AM
@SecondRikudo yeah, that's freaking stupid. I like how the managers of the shooting range ("Burgers and Bullets" by the way, holy hell) said "They have no idea what happened"
you gave a UZI to a fucking 9-year-old, that's what happened, you idiots!
@Alvaro well, you got tutorials about express 3 and socket, so you'd just need to adapt that to e4
 
well that happens more in middle east to arabs more than america really
filistin filistin ;-)
 
Is there any way we could find the flow of code of JS as a graphical report
 
if stackoverflow achieved democratization why can't reddit do it?
i mean democratic elections
 
hey
this code doesn't run in my page. why?!!!
$(document).ready(function () {
   ...
});
 
12:03 PM
@MRS1367 because you are shouting
 
@CustomizedName -> lol
 
@MRS1367 my best guess is that you don't include jQuery
 
@JanDvorak -> I've included it
 
!!s/run/ruin/
 
@Moderateur this code doesn't ruin in my page. why?!!! (source)
 
12:05 PM
@MRS1367 did you include it after the script?
 
@JanDvorak -> so, if you're right, why this code runs?
 
@MRS1367 -> We aren't PHP objects, no need for the -> operator.
2
 
haha ^
 
@MRS1367 you said it didn't
 
$(window).on('resize', function () {
}).resize();
@JanDvorak -> no. before the script
 
12:06 PM
@Moderateur Wrong star? XD
 
@SecondRikudo think so xD
wait I did that for you :p
 
@MRS1367 did you call noconflict?
 
@MRS1367 Can you set up an example?
 
@SecondRikudo -> ok
@JanDvorak -> no
 
1 min ago, by Second Rikudo
@MRS1367 -> We aren't PHP objects, no need for the -> operator.
 
12:07 PM
@SecondRikudo -> ok
 
troll alert..
 
@MRS1367 -> then stop using it
 
but I always use that sign for my replies
 
@MRS1367 The chat handles that for you. No need for it.
 
12:08 PM
I'm going to treat -> as a comment sigil and ignore what follows in this chat
4
 
@MRS1367 -> man you sure like chat rooms!
 
12:25 PM
@BenjaminGruenbaum why should I update the answer? new Promise(...) is not the recommended way anymore?
 
12:44 PM
is javascript a good language for someone who dont know much about programming to get started with ?
 
@CustomizedName depends. Do you mind ugly GUI?
the nice thing about javascript is that you don't need to worry about threading issues. The downside is that you can't easily do multithreaded code
 
No, the downside of JS is that [] == ![]
 
@KendallFrey no, that's a downside of ==
 
Which is part of JS, making it a downside of JS
 
When I got to know that an empty array returns true, I was like... what kind of paradigm is this?
 
12:52 PM
it's an object
 
it doesn't return true
 
Jun 14 at 17:46, by Jan Dvorak
@AwalGarg arrays are objects
 
!!> [] == true
 
@KendallFrey false
 
!!> []
 
12:53 PM
@AwalGarg []
 
haha no shit
 
I'm reading the Closure Compiler docs about a nullable-type (developers.google.com/closure/compiler/docs/…), which explicitly states that all object types are nullable by default. Is a string considered an object type or primitive type in js/closure?
 
it's a primitive type
all primitive types have their wrapper types (that really shouldn't be used), though.
 
If we just know JS in and out, we can make sense out of everything. But we need to know it first. Same with every other language. (including PHP)
 
Even if you understand truthiness, it's hard to make sense of [] and ![]
 
12:55 PM
@AwalGarg nope. You can't know make sense out of everything even if you know PHP really well
 
@JanDvorak Alright, thanks. Is it then OK to assume that the JavaScript community would read a Closure JSDoc type annotation such as {string} as requiring a string value?
 
@JanDvorak Do you know PHP in and out?
 
@RoelvanUden looks legit to me
 
@JanDvorak Alright thanks man :-) I'll start using the {!MyObjectType} to indicate an object of that type must be passed in as per docs as well. Hope it all makes sense. Thanks again :-)
 
We0
Hey Guys
var1 = "test123"; newvar = var1.replace( '\D/gi', ''); console.log(newvar); console.log(var1);
is suppose to strip the non decimal characters
but the first output is the original string
and second one is undefined
 
12:59 PM
@We0 /\D/gi instead of '\D/gi'
 
We0
@JanDvorak I am testing in the console dev tool in chrome and same result with "/"
 
var1 = "test123";
newvar = var1.replace( /\D/gi, '');
console.log(newvar);
console.log(var1);
 
lol what's with the -> ?
 
We0
@Neil OMG THANK YOU
@Neil I could kiss you
wasted my whole morning trying to figure this out
 
@We0 Jan was stating the same thing, thank him
 
1:01 PM
^
 
We0
@JanDvorak THANK YOU TOO MAN!
 
lololol
 
Heh, that NaN thing reminded me of
new Array(10).join([]/[]) + " Batman!"
 
@Cerbrus Would be 16, actually
 
Oh, he used 16?
 
1:02 PM
!!> new Array(16).join(0/0) + " Batman!"
 
@Neil "NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN Batman!"
2
 
Well that's the number of nanas :)
 
@Neil are you sure the TED talk is the original?
 
@Neil Well played :D
 
@JanDvorak Eh?
 
1:07 PM
!!> var p = new Image(); p.src = "http://www.gravatar.com/avatar/b3fbef105b46f8235f182c12bfa09e5c?s=32&d=identico‌​n&r=PG"; p.onload=function(){console.log(p);}
 
@AwalGarg "ReferenceError: Image is not defined"
 
was it image?
@CapricaSix y u no work?
 
if you'd read her code...
you'd know.
 
'her code'?
you mean the reference error? I don't think it is a valid error.
 
@AwalGarg Her code, as in, the source code of the bot.
 
1:11 PM
kk...
 
@AwalGarg she using web workers, there's no DOM available in them
 
alright.
lol we can define a dom structure for her :D
 
@FlorianMargaine spoiler alert
 
It wouldn't make sense for C6 to have DOM functions, @AwalGarg.
'cause DOM manipulation is client-side...
 
@Cerbrus caprica has dom too... look at the following:
!!> var document = { getElementById : function(){ return { value: "the game!" } } }; document.getElementById("game").value;
 
1:20 PM
@AwalGarg "the game!"
 
see?
 
Yea, sure.
 
user2620028
whats up guys
 
1:36 PM
Is there a way to get the x/y position of the mouse on click relative to the canvas isntead of the screen?
 
1:50 PM
how to check if uploading images from the mobile is supported or not?
 
@AwalGarg try and see if it fails?
 
@JanDvorak if it is not supported, the input box is just disabled. so I can't wrap the coed in try ... catch blocks. :(
 
woot my web component is live on customelements.io
much useful :P
 
@AwalGarg does it have the disabled property set?
 
1:52 PM
lol you put a canvas behind
 
@JanDvorak nope. Why would it?
 
@FlorianMargaine yep
going to make another tonight
I've got tons of ideas to knock out lol
my next personal site will definitely use polymer/web components
 
@Loktar shouldn't rAF be at the beginning?
 
at the beginning of the function?
I always put it at the end
 
I am talking about the <input type="file"/> thing. On lumia 510, it just gets disabled automatically, but works on PC and iPad. So how can I detect if uploading image from mobile is not supported and thus tell the user the scene?
 
1:56 PM
@Loktar it should be at the beginning afaik
 
the thing is, your delay isn't exact then
since you add the calculations of your js to it
before recalling the render function
 
yeah good point
Paul Irish has it at the beginning of his
I've always put it at the end
good to know
 
From what I know it will make the framerate uneven, because it will wait for all the calculations before requesting another. But don't quote me on that ._.
Oh, he already explained it, lol
 
/me heads to meeting
 
user1596138
1:59 PM
So I bought a new phone :D
 
i need to look into it more
because I've never had any issues or fps drops
 
user1596138
 

« first day (1411 days earlier)      last day (3542 days later) »