« first day (1721 days earlier)      last day (3230 days later) » 

8:04 AM
@bergi I am not so sure about CancellationError for already cancelled promises anymore
 
bluebird creator here :O
o/
 
ohai @Esailija
long time no see
y u no hang out here :(
 
@FlorianMargaine hi :) gz for the baby
 
are we not cool enough for you?!
@Esailija thanks
 
-1
Q: Why is my fizzbuzz program not working correctly?

André PeñaI have been struggling ot make this work all day..Something does not seem write with the output like you would expect. Here is the code: (Javascript) var VARIABLES = global; global.VARIABLES = global; VARIABLES.CONDITION_TRUE = function(func) { return func; } VARIABLES.CONDITION_FALSE = ...

> And I am also adhering to strict programming guidelines.
 
8:09 AM
the Reddit fiasco is making me think of not coming back to it :/
 
Pretty sure strict programming guidelines wouldn't tell you to add everything to the global.
 
var VARIABLES = global;
global.VARIABLES = global;
 
but I don't know where else I could get news and interesting stuff
 
what again?
 
I guess I could subscribe to lwn... But that'd be one kind of source only
 
8:10 AM
@BenFortune I hope this is a troll
 
@AwalGarg Look at FUNCTION_DECLARATOR :D
 
@AwalGarg try now
i have constant 60 on my machine
 
@BenFortune what. the. holy fuck.
@Abhishrek same pen? still ~45fps max
 
yes
reload ?
 
@Abhishrek yeah, 59fps minimum. very nice.
 
8:14 AM
@BenFortune this is amazing.
 
I love how it's tagged
 
mine sometime slacks i will profile and optimize further
 
VARIABLES.ARRAY_MAKE = function(params) {
    return arguments;
}
VARIABLES.OBJECT_LITERAL = function(a) {
    return a;
}
is this some kind of "longest ugly code" contest?
 
8:25 AM
Oh come on. You're not even trying to hide it anymore
 
@Kippie I never do
I mean, depends for who.
 
Btw, has anyone here tried the new Terraria update yet? I wonder if it's worth getting into again
 
anyone here familiar with angular-ui-router? have an issue where it wont go into a state and i can't figure out why?!
 
I got a call from shine.com, regarding getting me a job in Axis Bank.
But she was asking to deposite 2500 Rs.
was that ok?
 
no.
 
8:29 AM
@AwalGarg am gonna squeeze even more out of this... now i am really really wanting to squeeze the max out of it rawr
now get me the scroll math
 
I neglected her.
I told her I need a job in asp.net development not in Accounts.
 
TIL fizzbuzz problem. my solution: jsbin.com/lejaxicuji/edit?js,console,output
 
angular.module('obsidian-csh-module', ['csh-controller-module']).config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
    $stateProvider.state('csh', {
        url: "/csh",
        views: {
            info: {
                templateUrl: 'partials/csh.template.html',
                controller: 'cshController',
                controllerAs: 'ctrl'
            }
        },
        onEnter: function () {
            console.log('csh enter');
        },
        onExit: function () {
that is my state, when i call $state.go('csh) nothing happens, any idea why?
 
@AwalGarg just 1 css optimization yet.
 
@Abhishrek nice... put this in the url bar and see the frame rate as well:
data:text/html, <ul><script>for(i=0;i<5000;i++)document.write('<li>'+i+'</li>');</script></ul><style>*{padding:0}
 
8:38 AM
@AwalGarg ofcourse html will be fast
i amma give u a proper use case just gimme a lil while
 
@Abhishrek it is fast but is also taking about 3megs more memory
 
ofc it will
@AwalGarg funny enough my view is super easy breakable
i havent properly bounded it yet. but i guess that should be super easy
 
document.write causes reflow?
 
document.write causes all sorts of bad stuff
 
Happy birthday @phenomnomnominal!
13
 
8:48 AM
document.write('i am innocent');
 
@BadgerCat only 3 hours left :P
 
@phenomnomnominal happy birthday then!
 
I know :( stupid timezones
 
@phenomnomnominal Better late than never ;P
 
hi guys
 
8:51 AM
Haha thanks y'all
 
:)
 
anybody used "FakeTouches.js" library and succeded?
 
nobody
 
@phenomnomnominal did you do anything special?
 
got a tattoo?
 
8:53 AM
Is it a badger?
 
poidh
 
!!> [{foo(){}}.foo.name, {['foo'](){}}.foo.name]
 
@AwalGarg ["foo",""]
 
:(
 
9:11 AM
@FlorianMargaine I guess it really depends on how the company reacts
 
@Fabiotocchi 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.
 
0
Q: $state.go no staying in new state

DrogoNevetsI have the following state declaration $stateProvider.state('csh', { url: "/csh", views: { info: { templateUrl: 'partials/csh.template.html', controller: 'cshController', controllerAs: 'ctrl' } }, onEnter: function () { ...

 
@phenomnomnominal Happy birthday! :D
 
@SomeGuy churrrr
 
Whoops, I'll wish you in 2.5 hours :p
 
9:20 AM
haha no I meant there's only 3 hours left of the day :P
 
Oh, right, you live too far ahead in the future
How'd it go?
 
Pretty chill just had work etc
 
it's not a racial issue, the girl seems a gorilla
 
9:34 AM
hahaha
 
is doing + "1" easier than parseInt("1") because one has to do take into account the base as well so technically teh parseInt statement has to be modified to parseInt("1", 10);
 
@AwalGarg check pen now
set number of posts to 500
see result
it wont let you create the div of that height
 
@argentum47 Number("1")
 
ok .. and the reason
 
do a 10.000 loop and use time
 
9:40 AM
parseInt without a second argument is essentially the same as + or the Number constructor
 
It's just a nice way of doing it, plus I think parseInt is pretty slow, but don't quote me on that
 
!!> +"1"
 
@Neoares 1
 
@JanDvorak It's actually not. parseInt parses everything that is a valid number until it finds an invalid character. Number on the other hand, parses it as a whole and returns NaN if it's invalid.
 
@AwalGarg codepen.io/darkyen/pen/QbQKQz?editors=001 does it hang on loading for you too ?
 
9:44 AM
!!> console.log(parseInt("123a")); console.log(Number("123a"));
 
@BenFortune "undefined" Logged: 123,"NaN"
 
1
A: Why does my javascript only fire when the code is repeated?

Alex TartanThis works: <script type="text/javascript"> var url = window.location.href + ""; document.write('<script type="application/javascript" src="https://testdomain.com/mik21?add=2140535&mik21=' + url + '"></scr'+'ipt>'); document.close(); </script> To prevent js from crashing, i've split the <script>...

^ I have no idea how that will prevent js from crashing
 
!!> console.log(+ "123")
 
@argentum47 "undefined" Logged: "NaN"
 
ok bit more info on my bug, it is throwing a "Error: transition superseded" mean anything to anyone?
 
9:45 AM
@argentum47 "undefined" Logged: 123
 
so + === Number in this case or just that their results are same?
 
If you use Number as a normal function, not as a constructor, then it's the same.
 
ok. no point typing more :D
 
!!> new Number(123) === 123
 
@afonsomatos false
 
9:47 AM
!!> +"123"===Number("123")
 
@Neoares true
 
@afonsomatos that's because new Number returns an object
 
I know
 
and Number returns a number
c:
 
I will have to check how caprica does this console logging thing
 
@argentum47 yes. + and Number both internally use ToNumber so they are 100% same.
only reason people ask to use Number is to sound geeky and/or readability
 
yeah ^
 
Geeky, no. Readability, definitely.
 
I use Number for readability
 
parseInt/parseFloat are for extracting numerical values. ToNumber is for casting.
or for parsing as other bases than 10
 
9:56 AM
@AwalGarg you are the man .. :P , and soon you will become the spec guy
but then I should do it to..
 
@argentum47 nah that position is held by lord zirak.
 
zirak will be zirak .. its in the name
:d
 
Number: awal.js.org/especser/#20.1.1.1 unary +: awal.js.org/especser/#12.5.9.1 both are essentially casting via tonumber (proof)
 
@AwalGarg your website is buggy here
 
@AwalGarg nice!
 
9:59 AM
@afonsomatos file an issue on github describing steps to repro
@FlorianMargaine thanks!
 
since when ctrl+p is to search?
 
procurar means find in portuguese
just saying
 
@Neoares sublime text mimicry
 
and now how do I print the docu?
:c
 
who prints an SPA? :D
 
10:02 AM
anyone :D
 
should be Ctrl + A .. A for Awal
 
kek
 
inb4 how to select everything :D
 
@AwalGarg In my end fetching latest version of spec and caching locally. this might take a while. is still there after 10 minutes.
 
@afonsomatos went on for ~2 minutes for me
 
10:04 AM
@afonsomatos can you see any errors in the console?
 
Took about 10 seconds here
 
@afonsomatos do you have ff developer edition?
 
> String See grammar and conversion algorithm below.
"below"
 
oh now it loaded
 
10:04 AM
cause it's not working on ff38
 
@FlorianMargaine hmm, I need to add a "next section" link as well :/
 
@AwalGarg Very nice, now let's work on that UI
 
@AwalGarg yup
 
@AwalGarg Some broken images awal.js.org/especser/#4.2.1
 
@AwalGarg but really, nice work
@AwalGarg's ES spec navigator: awal.js.org/especser
5
 
10:06 AM
@BenFortune this will actually be fixed with the next revision of indexedDB api. right now not much can be done about it :/
 
@AwalGarg do you have the code on github?
 
@FlorianMargaine thanks for the pin!
 
@Neoares it's written in the footer.
 
@Neoares yeah that ^
 
10:08 AM
thanks
!!mdn let
 
@Neoares let
 
@AwalGarg if I add webworkers to fetch and indx the contents .. would that speed up the process ?
 
@argentum47 no because threads aren't inherently faster
 
depends actually
 
it is network bound, and the ES spec is very very very large. We can't do much about it.
 
10:11 AM
fetch will be same
@AwalGarg add a serviceworker
 
@Abhishrek the api is too much unstable right now :(
 
cache it :D
 
but yeah serviceworker will help
 
google uses it dude\
 
@Abhishrek it is cached
reload page, close browser etc... and no need to click update
!!caniuse service workers
 
@Abhishrek we are talking about the first time it loads the page
 
see? no out of the box firefox support even :(
 
holy caw .. that's a lot of support
 
once service workers do become stable, they are gonna be really fun
 
does the term "holy cow" come from India or with reference to India?
 
10:16 AM
reference to
@AwalGarg i can help you
 
yeah too much specism in India. No "holy dog" or anything
 
gmail
 
on it
 
I want to know too :(
 
in Europe we have "holy Mother of God"
 
10:17 AM
where did holy shit originate from
 
@JanDvorak who even says that?
 
didn't know fetch can be enabled on FF38
 
Czechs do, at least
 
dom.fetch.enabled flag
 
or did
the most common expression is "oh god", though
come to think of it, we also have the equivalent of "holy cow"
 
10:23 AM
is codepen down ?
 
I always wondered, why not holy sheep?
 
doesn't sound bad
 
@argentum47 miaou
 
@JanDvorak gist.github.com/afonsomatos/62d84c87f6fbd8dfff64 check this out, buffers had the best performance 20~million digit numbers addition in ~700ms
actually ~30ms, I was using time unix command, switched to Date.now
 
there is a Console..time api as well btw
 
10:32 AM
it prints the result, doesn't store the value
I could consider using it btw
 
I don't see why you want to store it and not use timeEnd
but ok..
 
true, I am not currently storing
 
brb holy cows
 
totally imagines a cow wander into an office in India
 
indian drivers have more respect to cows than to human life
 
10:46 AM
@JanDvorak What about the human cows?
 
@AwalGarg is your think open source? I need to fix that bottom bar
 
@phenomnomnominal yeah github.com/awalGarg/especser (link is also in the footer btw)
clicking on the especser logo takes you to github as well I think.
 
Can't see the footer cause of the bar :)
 
ah right. it lets you get rid of it btw after you update.
 
hello, how do We convert NAMED HTML_ENTITIES to some usable value in JavaScript? Things like &Scaron; etc.
 
11:02 AM
!!tell anima google javascript decode html entities
 
any HTML parser should do. Either DOMParser or the DOM itself
 
var div = document.createElement('div'); div.innerHTML = '&Scaron;'; div.textContent; //?
 
yep; though It might be useful to cache the div.
 
thx
 
11:07 AM
@animaacija also, if you're accepting that as user input, don't.
 
where are these coming from?
 
Is there anyone familiar with the new unity webGl
 
@J0N3X 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.
 
11:30 AM
@copy Woohoo! What kind
 
@Abhishrek cows are holy in india, right?
or sacred
 
sacred
 
And cows are scared in America! =D
 
11:45 AM
your mom isn't
 
How to debug lodash templates
It is hard to debug them
 
what's wrong with "onload" event listener on IE11?
it's not fcking working Q_Q
 
try addEventListener
 
on<...> events are bad
addEventListener, good
 
11:49 AM
@BenFortune what
 
It's attachEvent('onload', ...) or addEventListener('load', ...).
 
I used both
 
the former is IE-specific, the latter works everywhere since IE8 or so
 
and attachEvent it's not working neither on FF nor IE
 
use any one
 
11:51 AM
53 secs ago, by Jan Dvorak
the former is IE-specific, the latter works everywhere since IE8 or so
 
@BenFortune k :)
 
use addEventListener and include a shim based of attachEvent for old IE if required.
 
use addEventListener, it does work
 
In case anybody's interested, I've analyzed the titles of 4 millions questions to see what words are found in good question titles and what words are found in bad ones. For example questions with "monad" in their title will have upvoted answers and a question will be a disaster if the title contains "infopath" or "wordpress".
3
 
#justusejquery
 
11:53 AM
@DenysSéguret I'm more interested in common English words and phrases
 
object.addEventListener("load", handler, useCapture)
what's the "useCapture"?
 
@KendallFrey phrases in the title ?
 
read the documentation
@DenysSéguret yes
 
More details:
Nb tokens in at least 300 questions: 5269
Most frequent words:
|  #  |         Token        | Questions | Closures | Avg BAS |
|:---:|:--------------------:|-----------|----------|---------|
|    0|with                  |     492770|     13923|      2.4|
|    1|from                  |     351338|     10763|      2.3|
|    2|using                 |     303473|      9409|      2.4|
|    3|quot                  |     253647|     10791|      3.2|
|    4|file                  |     181303|      6373|      2.5|
bayesian filter incoming...
 
Funny, 'with', 'from', and 'using', generally make the question more specific. Imagine. Being specific gets more points
 
11:55 AM
@AwalGarg 5 mints
 
@Cereal Pretty sure it's not sorted by points
 
Oh you're right
Didn't look
Lame
 
The first table is just the frequent words
There are 3 tables
 
is "BAS" the average score?
 
I'll build the probabilities ASAP
 
11:56 AM
| 6|jquery | 168201| 4390| would've definitely thought the closures would be higher
 
@KendallFrey it's the average of the best answer score of each question
 
<div class="test"><h2>Heading</h2></div>
.class.active { color : red;}
 
@JanDvorak addEventListener is ie9+
 
how can I force this class color on it's h2 ?
 
11:57 AM
screw IE8 then
define "force"
 
.test > h2?
 
thanks
do i really need ">" symbol
 
.class.active, .class.active * {...}
 
@JanDvorak this won't work
it doesn't forces color down to h2
 
typo
 
11:59 AM
typos are great and do all the things
 
@DenysSéguret Time to break your statistics by adding <!-- monad --> to questions. :D
 

« first day (1721 days earlier)      last day (3230 days later) »