« first day (1911 days earlier)      last day (3051 days later) » 
00:00 - 17:0017:00 - 00:00

12:13 AM
is the type of Promise.resolve(2).then(r => r) still a promise object, or a number?
 
can you .then it again?
did you run it and try?
!!> Promise.resolve(2).then(r => r).then(r=>r).then(r=>console.log(r));
 
@rlemon "undefined" Logged: 2
 
i tried it, and typeof printed object and i couldn't tell if that was r's type or the promise's
 
> Promise.resolve(2).then(r => r)
> > Promise {[[PromiseStatus]]: "pending", [[PromiseValue]]: undefined}
 
12:37 AM
hi
 
 
2 hours later…
3:03 AM
I make a post from angular using $http, but I'm not sure of why I get the error response from the server at the first callback function, the status I send if 422, here's my code:
$http({
        url: 'request-url',
        method: "POST",
        data: { 'message' : message }
    })
    .then(function(response) {
            // here's where I get the response even with the 422 status

    },
    function(response) {
            // isn't it supposed to come here?
    });
 
What.. he left :/
 
3:43 AM
How the heck do we find bungee jumping spots ?
 
4:29 AM
@Abhishrek So, I went to a resort in my city recently. Their website said they had a fucking bungee jumping spot, it was a fucking trampoline.
 
@SterlingArcher the streak continues, I went to get the cases of water from the car I forgot... slipped on some ice, gash on my foot and skinned my knee, pretty sure I also broke my foot... we'll see
hurts like a motherfucker right now
 
4:55 AM
Yea I think it's fractured. I can move it but this hurts way more than it should.
 
5:12 AM
@rlemon I think Abhishrek might be easier to understand, though, because he has an American(ish) accent
(He learned English around Americans as a child or something like that)
 
@copy where are you? :(
 
shrek just needs to get rid of all his hair and no one will ever think he is an Indian.
 
 
2 hours later…
user2620028
7:40 AM
@Jhawins My engine builder wanted $700 for labor to stick a cam in the engine while it was in the car. I think a complete rebuild for $550 is very reasonable for labor on a complete rebuild as long as they aren't cutting corners
 
crl
8:19 AM
chrome, you bastard, y u no support var [x,y]=[1,2]
 
8:32 AM
To define user defined exception function constructor? DO we need to extend Error.prototype?
How crucial is it to define user defined exceptions?
@SterlingArcher Are you a descendant of Hitler family?
 
crl
why do you say that?
 
He behaves like a Hitler.
 
crl
what happened?
 
!!> Function("return this")().setTimeout(function(){postMessage("wtf")}, 4)
 
@Quill Malformed output from web-worker. If you weren't just fooling around trying to break me, raise an issue or contact Zirak
 
crl
8:44 AM
Cap has no window, it execute in a WebWorker, ^ oh nice
gosh I'm gonna post my 9th Chrome bug in 1 week
 
@pootis risr?
 
I've got a quick question about Zirak's bot, how do you get it to read the rules for the first time you post in the chatroom?
 
crl
search "Welcome" in the source
 
9:16 AM
oh lol I was set as RO, FAIL
 
9:34 AM
anyone tried ng2?
 
!!/meme notbad
 
do the meme images actually work?
 
no .. meme is lame
 
9:49 AM
@Abhishrek come visit me? We have lots of bungy jumping.
 
crl
 
10:39 AM
That Postman API tool is cool
 
crl
used it,but now I kinda just use the browser :) with ajax in console
 
11:26 AM
The Spotify player is down play.spotify.com
 
11:52 AM
@crl worms!!
the old one
Guys dont loops work in all c based languages the same?
 
installing skype on linux x64 is like installing another OS
 
@Asperger in theory yes
 
crl
12:08 PM
@AwalGarg there's a web.skype.com maybe worth too
web version of skype, but still < hangout
 
works for text only
 
crl
even with the extension? (didn't try the extension, just with text yes)
 
the buttons just say "not available for your OS"
 
crl
oh lol
 
12:31 PM
@DenysSéguret @FlorianMargaine miaou profiles are google indexed now?!
 
are they?
yep, they can be
 
@AwalGarg that is so true ... that's why I use the web version for text and android for video+audio
 
(and since they're linked on e.g. SO profile, there's a high change they are)
@AwalGarg send a PR
Denys is too busy to code :)
 
hi guys can I ask you about php cause there's no one in php room?
 
crl
did you try irc?
 
12:38 PM
typescrpt .................. SAAAAAACKS ... github.com/ReactiveX/RxJS/blob/master/src/Observable.ts what the HEEEECK is even written ....
 
crl
looks like java
 
lol
 
crl
static create: Function = <T>(subscribe?: <R>(subscriber: Subscriber<R>) => Subscription|Function|void) => {
    return new Observable<T>(subscribe);
};
 
<R> and ?: in every line :d
 
crl
ok...
 
12:40 PM
can devs not sue microsoft for taking good things turning them into fucking crazy crap
even angular2 source code is typescript now
 
but MS's vscode is good ... I like the part where we can write tasks and execute them ... ithout switching back and forth between terminal and editor
 
crl
sometimes I feel like ts, or angular are some 'troll' moves from microsoft or google who probably don't use it seriously so as to confuse other companies and increase their advantage
 
but I <strike>think<strike> hope that google will do well with angular2 , according to video tutorials its more like react and redux combined in one place ... Its good, because we have to do less wiring ... I can live with some convention instead of configuring manually everytime
 
crl
hmm the | seems to be used to default parameters
!!s/<\/?strike>/---/g 28025848
 
12:49 PM
@crl but I ?strike>strike>think<strike> hope that google will do well with angular2 , according to video tutorials its more like react and redux combined in one place ... Its good, because we have to do less wiring ... I can live with some convention instead of configuring manually everytime (source)
@crl but I think hope that google will do well with angular2 , according to video tutorials its more like react and redux combined in one place ... Its good, because we have to do less wiring ... I can live with some convention instead of configuring manually everytime (source)
 
ah nice..
 
there is an ES6 + ES7 interesting question on SO
0
Q: ES6 asynchronous generator result

yuri kilochekES6 has generators that return iterators: function* range(n) { for (let i = 0; i < n; ++i) { yield i; } } for (let x of range(10)) { console.log(x); } And ES7 has asynchronous functions that return Promises: async function f(x) { let y = await g(x); return y * y; ...

 
crl
@FlorianMargaine funny comment reddit.com/r/france/comments/4036lm/…
 
cc @Zirak @BenjaminGruenbaum ^--
 
Hi, can anyone tell me why this isn't working..? vocaroo.com/i/s1qczzEcLYc1
 
crl
1:04 PM
there should be a (jk )
 
@pootis the website plays music .. its working
 
crl
he might be trolling
 
I found nasty stuff today json-porn.com
4
an api for porn.. rofl
" The JSON Porn API allows you to build sites and applications based on the latest adult content available." XD XD
it also has documentation ...
 
haha
tried that "random" :/
 
crl
google app engine is still a thing
 
1:15 PM
it's an easy platform for having a distributed system
 
guys I'm working with restriction of dates in user inputs and I found this nice tutorial but there's a problem
 
you can pick HTML5 date input field btw
 
but you can't restrict prevoius dates there
 
crl
!!mdn input date
 
1:18 PM
"min" ?
 
no the problem is that it
 
anyways, what's wrong with the fiddle ? it does what it does
 
@Pretorian what is the problem?
 
doesn't accept current date as valid
can you please fix it
try entering the current date
 
it does at me
 
1:19 PM
can you please pay me
 
hahaha
 
kiss?
 
ewwwww .. no plz ..
 
1:19 PM
No, prehistorian pootises.
 
ohhh
 
your regex expects 2 entries between the first 2 /
 
crl
@pootis I like you bro, you sometimes don't make sense just like me :)
 
you would also have to check for other things like 31/2/2014
 
@argentum47 yo
 
1:21 PM
ok sorry my bad, thought there's something wrong
 
crl
<input type="datetime-local"><input type="month"><input type="week">
 
@AwalGarg hiyyaa
 
wait guys
 
@Pretorian you still have to finetune it
 
@AwalGarg I am trying typescript ... so far I only like the auto-completion I can get :D
 
1:23 PM
invalid dates like 31 february still get validated
 
how will I change the code so that it will only accept current date and future dates?
and the previous dates will get invalid
 
crl
input.min = new Date(Date.now()-24*3600*1000)
 
^--
 
nice thanks bruh
 
@argentum47 nice! I am redoing two of my old projects in rust :D so far I only understand that it is like C/C++ but not ugly/insane/stupid/weirdo/badly-designed/horrible like them.
 
1:24 PM
works only if your input is a date type
 
I gottta try it then .. me loved C once
 
where did you have dug up your regex ?
the first part accounts both day and month ... may give troubles when parsing
 
crl
looks like a rusty language tho
 
sorry bro but I'm really a scrub, where will I put
input.min = new Date(Date.now()-24*3600*1000)
 
crl
HTML, JS, CSS guess which?
 
1:26 PM
leapYear checking is easy .. check if new Date(year, 1, 29/30/31/or whatever date is).getMonth() == 1
 
crl
!!> new Date("2016-02-29")
 
@crl "null"
 
invalid entries get nulled :p
 
@crl "2016-02-29T00:00:00.000Z"
 
!!> new Date(2016, 1, 29).getMonth()
 
1:28 PM
@argentum47 1
 
leap year
 
crl
won't work
!!> new Date(2017, 1, 29)
 
@crl "2017-03-01T05:00:00.000Z"
 
!!> new Date(2014, 1, 29).getMonth()
 
@argentum47 2
 
1:28 PM
not leap year
it works
 
crl
not too bad
 
:))
atleast I don't have to do that %4 %400 %100 == 0 stuff
 
@argentum47 @pootis any of you worked with laravel before?
 
yes
 
@AwalGarg no .. but I saw laracast .. it looks like the shite ... with looooooooong chain of namespaces \\\
 
1:31 PM
@pootis where does it rank between jQuery and Indian colleges in terms of terribleness?
 
crl
!!> var y=2016; !(y%4) && y%100 && !(y%400)
 
@crl "false"
 
@argentum47 so like java's ecosystem embedded in PHP?
 
!!> const a = new Date(2014, 1, 29); a.toString();
 
@KarelG "Sat Mar 01 2014 00:00:00 GMT-0500 (Eastern Standard Time)"
 
1:32 PM
march ? wtf
ah yes
 
crl
it goes in March
 
month starts with 0
confusing <.<
 
yes march .. I didn't know the behaviour until I stumbled upon the spec once
 
@AwalGarg It's actually pretty good (I haven't used version 5), follows PSR (upto 3, I guess) and contains a lot of Symphony components. 7/10.
@argentum47 use generators, duh
 
crl
var y=2016; !(y%4) && (y%100 || !(y%100) && !(y%400)) // there if false non leap
 
1:35 PM
I don't know php ... the last php I did was php 5.x .. it has changed a lot since the
 
@crl i have a different approach :p
 
crl
I have to do the same historic graph than this for Firefox en.wikipedia.org/wiki/…, wow Firefiox has planned a version 59 for June 2017..
 
@AwalGarg got what you were looking for?
 
@argentum47 what was I looking for? opinions on laravel? then yes.
 
1:44 PM
@crl FF Aurora is already at v45
 
no other thing .. where you play Bond boy
 
crl
it's a race with chrome :)
I gotta put the 2 graphes in one to show
 
@argentum47 not yet, things keep getting delayed due to orthogonal reasons
 
I see
 
@argentum47 check hangouts, awesome link
 
1:46 PM
if i recall right, FF has a 6 week release cycle
 
crl
can't really make the difference between asians
there should be a country-face detector, sayinh which is your more likely origin country
 
Russia is in asia
 
Why doesn't this work??
elt.unitId ? elt.UnitId : "?"
if elt.unitId is not empty or null it should give elt.unitId as a result, else "'"
no?
 
elt.unitId || "";
 
crl
man give a fiddle if you have a real problem, you should know it now
 
1:54 PM
I think that en empty string is false. Isn't it?
@rlemon I don't understand your correction...
 
@pootis homestead is taking too long to download :(
 
crl
y u php bro
 
@AwalGarg upgrade your goddamn internet. Also, download the box first and then use it.
 
@pootis what transfer rate do you get?
 
crl
download and install more ram and bandswidth
 
2:01 PM
On paper, it's 40mbps, but I get around 5mbps.
 
crl
too many people, that's why, can't scale well
 
@AwalGarg rust is a lot more than "not ugly C/C++"
 
@AwalGarg erm.. also take a look at lumen.
 
@AwalGarg it sucks. Any question?
 
@FlorianMargaine What about Symphony?
2
 
2:04 PM
I don't know symphony
 
You don't know laravel. bye
 
symfony2 is not bad though
 
I went once. It was okay. 6/10
 
symfony2 components are brilliant
 
@pootis you don't know how to spell one of the most popular php projects, bye
 
crl
2:05 PM
I know the bolero of ravel tho, it's fantastic to hear youtube.com/watch?v=7aXwTPQQ1_U
 
I know the thrilla in Manila
 
@FlorianMargaine this is not the first time I've made that typo..........
 
no, a typo is hitting "i" instead of "o"
 
crl
!!urban phony
 
@crl Phony Somebody who pretends to be something else. It's like a bad actor.
 
2:12 PM
@FlorianMargaine I need to write a simple quizzing app quickly (only PHP because has to run on shared hosts). performance is not important. and I CBA to write vanilla stuff. laravel good for that?
 
crl
just throw the whole shit in index.php
 
!!google wordpress quiz
 
no please no wordpress, ffs
!!undo
 
fu
 
@FlorianMargaine Actually, a typo is specifically mis-writing an o, so hitting "o" instead of "i"
Or anything where you hit an "o" rather than your intended letter. Hence the name: Type O.
 
2:15 PM
looks suspiciously at Zirak
 
crl
it's a typ[a-z]
if you ever have to deal with <table> once, I think the goodest way is:
function tableToMatrix(t){ // <table> to matrix nRows*nCols
  var width = Array.from(t.rows[0].cells).reduce((a,v)=>a+v.colSpan,0);
  var M = Array.from({length:t.rows.length},_=>Array(width).fill(null))
  for (var i=0; i<t.rows.length; i++){
    var tr=t.rows[i]
    for (var j=0,k=0; j<tr.cells.length; j++){
      var td=tr.cells[j];
      k=M[i].indexOf(null, k);
      for (var r=0;r<td.rowSpan;r++)
        M[i+r].splice(k, td.colSpan, ...Array(td.colSpan).fill(td))
    }
  }
  return M;
}
and then use M (tables with merges I mean)
 
@SomeGuy I'm creating a new character in Dragon Age: Inquisition and didn't have a name, so I looked for a list of Dragon Age characters. It led to TVTropes. I've started looking for a name about 20 minutes ago.
 
anyone wanna write a readme for me
 
crl
just concat all your commit messages, and add some buzz words
 
"lol what was I thinking everything broken ok fixed still broken this works but I don't know why should probably write tests"
done
 
crl
2:26 PM
lol
 
crl
!!> [+[1,2], typeof +[1,2]]
 
@crl "number"
@crl "NaN,number"
 
@rlemon 6/5 would buy again
 
2:43 PM
@Zirak Formaldehyde.. or wait, that's a thing isn't it?
 
crl
!!wiki Formaldehyde
 
Formaldehyde is a naturally-occurring organic compound with the formula CH2O. It is the simplest aldehyde and is also known by its systematic name methanal. The common name of this substance comes from its similarity and relation to formic acid. Formaldehyde is an important precursor to many other materials and chemical compounds. In 1996, the installed capacity for the production of formaldehyde was estimated to be 8.7 million tons per year. It is mainly used in the production of industrial resins, e.g., for particle board and coatings. In view of its widespread use, toxicity, and volatility,...
 
crl
!!doyouwant formaldehyde?
 
@crl Do you want formaldehyde?? Because that's how you get formaldehyde?.
 
fail
 
crl
2:47 PM
indeed :)
I need a array.indexOf(x=>/shit/.test(x.textContent)) // first index in array that returns true
[{x:1},{x:2}].some(a=>a.x>1) // if that shit could return the index instead
ok I'm gonna map/process first and do indexOf
 
3:03 PM
keh, in the SO survey, they have tagged WordPress as a language
* cries *
 
crl
oh gosh I have to merge 2 arrays of dates
I have [chomeVersions, dates] and [firefoxVersions, dates]
 
what's the difference between " B.A. " and "B.S" concerning grades
B.A. in Computer Science (or related field)
B.S. in Computer Science (or related field)
 
If you've got a bachelor of science, then you're full of BS
joking aside, I think BA is less restrictive than a BS
 
B.Tech. in Computer Science (or related field)
 
at least that's what I've understood.. you get more electorates
 
3:15 PM
B.Com. in Computer Science (or related field)
 
3:28 PM
some npm nerds here ? say I have a globally installed package (bower) and I have many projects that use bower but I don't install locally to avoid useless duplications of the package so I just want to make a devDependencies in the package.json file, I know I can just write into the file by myself but I like the command line so I'd like to know if there is a way to tell npm to write the line. Something like "npm install bower" is there some flags to avoid real installation ?
 
crl
hm
some version overwrite other past ones... gotta fix
 
Hello?
How could I use css or something to position objects on a webpage like this?
It messed up, damn
Basically, one large element, and stuck to its right side another smaller element, then another smaller one below it
 
crl
3:43 PM
there was an app for sharing quick drawings
 
mspaint
 
crl
online :)
 
@AwalGarg Yes, there are just regular (and mainly useless) HTML pages, and they don't require a login (it's a feature). Is that a problem ?
 
crl
<div style="display:flex"><div style="flex:1">big element</div><div style="width:50px;">tiny one</div></div><div>another one below</div> but do it without online styles
 
what does flex specifically do?
 
crl
3:48 PM
it's line <div><div style="display:inline-block; width:80%">big element</div><div style="display:inline-block;width:20%;">tiny one</div></div> but flex is more sexy to adjust widths (noneed for %)
 
It's fine I guess
 
okay... okay, let's see
oh, I meant I want both of the small ones on the right of the big one
 
that flex thing is a nice feature
 
crl
 I have 2 arrays  a1=[1,1,1,2,2,2,3,3,3] and a2=['a','b','c','d',....] I'd like to get
[ [1,'a'], [2,'d'], ...] // not repeating the other 1's after the first one and same for 2, etc
 
we went over this a week ago
 
filter the duplicates, then use the result as index for a2 ?
 
@FlorianMargaine having linked that to countless other people myself, I have realized using a framework is still easier :D
 
crl
4:06 PM
yea zipping, but it's a zip-filter
 
hey. When using Chrome JS console and console.log() i get the same object state printed when FIRST logging the object, then changing it and then loggin it again. I get 2x the same object state printed. How can i prevent that and get the real object state printed at the time being?
 
@AwalGarg then you suck, get better
 
crl
@KarelG I need to keep the indexes references for a2
I think I'll zip, then process
 
does js have a native zip ?
 
@crl Yes, that! Thank you so much!
 
crl
4:09 PM
@KarelG not yet
 
!! mdn Array.zip
 
@KarelG Array
 
ok sadly
 
what does flex:number do?
 
crl
gives a weight
I don't like to use Array.reduce when the final result is still an array :(, for me reduce produces an object/number, maybe I'm wrong
@AlexMitan you can also put a fixed width:200px if you want
filter ! dat's what I need
 
4:15 PM
-.-
 
crl
var a1=[1,1,1,2,2,2,3,3,3], a2='abcdefghi'.split(''); a1.map((a1i,i)=>[a1i,a2[i]]).filter((_,i,d)=> i==0||(d[0][i]!==d[0][i-1]))
 
@FlorianMargaine story of my life
 
It's been greatly helpful, @crl! Thanks!
I had a canvas that I tried to apply this to and it didn't work until I wrapped it in a div apparently
Also, for the mouse events, what's the difference between layerX and eventX?
 
crl
4:36 PM
usually you use .clientX/Y
FF vs chrome versions
 
What's that?
 
crl
the versions number of those browsers
 
Ok, so what does that mean?
oh, so layer is for the specific element, I get it
 
crl
if Firefox had Chrome console/dev-tools I'd totally use it
 
4:52 PM
Hi guys, good evening :)
 
crl
smells a question
 
Is ajax a secure way to login?
 
crl
as secure as the underlying http(s) request
 
Mine is https
 
Hmm, I need to make a ~40 minute lecture for this Monday about something that has to do with cyber security and programming to convince people that are somewhat skeptical it's cool. Any interesting ideas?
 
4:56 PM
Is it with normal people or programmers?
 
00:00 - 17:0017:00 - 00:00

« first day (1911 days earlier)      last day (3051 days later) »