« first day (2243 days earlier)      last day (2688 days later) » 

12:21 AM
function delay(t){return new Promise(f=>setTimeout(f, t))}
function reconnect(){
  return delay(1000).then(connect);
}
function connect(){
  return thing().then(...).catch(reconnect);
}
 
Promise.delay(1000).then(connect);
bluebird
 
it's built in?
 
yup
 
fancy that
 
 
2 hours later…
2:46 AM
> Oculus Touch is the best VR controller made to date. Period.

Its design is as close to perfect as we’ve seen and Touch has enough software between Oculus Home and Steam to keep you captivated for months. It performs perfectly in recommended setup conditions, and its finger controls should be a standard-setting innovation for the rest of the indu
> Tom's Hardware: Until now, our recommendation was the HTC Vive, without much hesitation. But the situation just changed. From a hardware perspective, the Rift edges out HTC's Vive.
 
@Loktar :)
So I'm kind of unsure of the best way to set up my sensors. Does duct taping them to a wall sound like a bad idea?
 
user2620028
3:02 AM
just letting you know right now that if you put duct tape on a wall you will remove the paint when it falls off
 
I was kind of wondering about that lol
 
user2620028
been there, done that
 
user2620028
didn't know that house paint was that fragile
 
user2620028
but indeed it is
 
I'm not sure the best way to get a sensor a couple feet above my head
 
user2620028
3:03 AM
they make stuff for sticking to the wall without removing paint
 
user2620028
3m something
 
but is that strong enough
 
user2620028
 
user2620028
way stronger than any alternative that you are going to find that doesn't involve putting holes in the wall
 
user2620028
i would look up their expected load rating
 
user2620028
3:04 AM
and if you aren't close to that then probably find the studs in the room and stick a screw through em
 
I don't even know how to support the sensor even with screws
 
Those 3m mounting strips are sticky on both sides
 
@juanvan Good thing, that
 
that it is - all things on the wall
 
 
2 hours later…
5:00 AM
@KarelG URL is just fine
@kare
 
5:18 AM
@KendallFrey woah dude
I just got my tracking number holy shit
it's already in my town
I will receive it tomorrow
you should check to see if you got yours
I just did
> Louisville, KY, United States 12/02/2016 10:33 P.M. Origin Scan
United States 12/02/2016 5:46 P.M. Order Processed: Ready for UPS
damn man they were ready
 
@Loktar You live in Lu-oh-ville?
 
oh I don't that's just the first bit of tracking
just showing it went out Dec 2nd
crazy that Oculus was prepared this time
 
Was gonna say... Sorry. That's hands down the most depressing city I've ever been to
 
haha
 
6:07 AM
I got the vive
well, my mom got it in ontario
why'd you get the rift?
 
6:25 AM
@monners but there is stuff to do after 1700, just not downtown :P!
 
6:37 AM
omg there is a keyword "extends" in js
it looks more like Java
 
Ajax call is trowing error access denied in ie8 and ie9, Do anyone know alternate way to overcome this issue
 
hello
 
@FlyingGambit Yeah, we've had that since ES2015 now :)
 
6:54 AM
@ivarni why arent we using it ?!
 
enter the super() future
 
it is working in ie 10 and above @FilipDupanović
but we want to support ie 9 as well
so if you have any solutions, please let me know
 
7:11 AM
can recaptcha(i am not robot) be passed over?
 
@FlyingGambit I am using it, the question I guess is why aren't you?
Writing React with ES6 classes I use extends all day every day
 
sometimes, I have classes that extend class expressions even
 
Hey guys. I know this chatroom might not be the suitable place to ask this question but I'm just gonna ask anyway. My question is how do I design a function that only allows logged in users to send a request? For example, if someone digs around in my website he may find that the URL to send messages is xxx.
 
7:29 AM
@ivarni probably because I am dumb enough to not go through mdn docs
 
@Jeremy If you're running node, then passportjs.org makes it fairly easy to implement authentication, if you're using some other backend there's probably other options
 
@ivarni Yes I'm using NodeJS. Thanks I'll look into that.
 
@Shubham again, you're handling it incorrecly
<= ie9 doesn't use XMLHttpRequest
but XDomainRequest (had to google that name keh)
it has more strict security protocols than XMLHttpRequest
 
8:00 AM
o/
 
@Cerbrus \o
 
Great morning: Close-vote a meta thread as dupe, notice YCS posted it, get assaulted by him for not reading the feature request...
Business as usual on Meta.
 
That's generally why I avoid meta
 
why do you get yourself into this >.>?
SE is so big it's just butts on course for crash collision
 
Hold on to your butts
 
8:07 AM
Normally, dupe closure isn't an issue on meta
But obviously, that specific question is about something completely different, while 80% of it matches the dupe.
That said, @FilipDupanović: Meta is like coffee, but the opposite effect :P
 
user3119231
good morning r17!
 
goedemorgen
@Cerbrus I like mine bitter and hot; meta is bitter, cold
 
Like coffee, meta is best enjoyed with some strong liquor
 
8:31 AM
@Cerbrus hi. Dutch guy?
 
was about to say: "oh hai Belgium guy, where's the mayo?" and then I saw the fries ^^
 
@KarelG Yup
 
@ivarni I like my meta like I like my coffee: two sugars and a bit of milk
 
Oh wait. You assumed gender! Shame! Washdadhgjhdwgrbl!
Now we have that out of the way, yes, Dutch guy :P
 
where is your frikandel @Cerbrus?
 
8:45 AM
I don't like them, actually.
I prefer meat.
 
Morning
@Cerbrus Meat ? :|
who is looking forward to a challenge this morning ?
 
@Cerbrus well, I have problems with my mind. I am not able to associate things well since my accident. It either returns by learning or after a while :)
The first time after my coma, I saw a fork. I know what it is. But I didn't know what to do with that :-/
 
9:02 AM
@KarelG but this is not synchronous, I tried it too. and response comes blank some times and some time data is not reaching to server.
 
@KarelG that's the curious case of cognition... if you manage to realize you lost bits of it, you don't know how it worked in the first place
 
Hi all
 
@KarelG No worries :P
 
damn
lichess.com
analysis board + local cpu ... webworkers?
 
9:06 AM
When installing npm packages for @angular (v2.2.4) I get some unmet peer dependencies.
All of them are caused by "beta" versions required in package json
and I have rc version installed
(newer)
 
@Abhishrek i thought it was done server side
 
its heating my mbp over 40c
... so can't be just server side
 
I can "solve" this by changing manually the dependency version required in the package json, but is it a good way to do it?
 
haha o
 
example : Core-2.2.4 requires a peer of zone.js@^0.6.21 but none was installed. AND I have the zone.js@0.7.2 installed...
router@3.2.4 requires a peer of rxjs@5.0.0-beta.12 but none was installed. AND I have the rxjs@5.0.0-rc4 installed...
 
9:10 AM
hmm, I think caret matching '^' will break for versions higher than 0.6.x
 
@Abhishrek it's making a post request to https://en.lichess.org/xxxxxx/request-analysis
 
@FilipDupanović isn't it supposed to match all newer versions?
 
@bitten did you turn on Local analysis?
 
@Abhishrek shrek !
Heh... why do I associate you with that ?
 
@Abhishrek no :,)
 
9:11 AM
@KarelG probably because of the name
 
Anyone use ublock origin?
 
or for the "shrek is life" video.
 
@Shubham Please comprehend how the web traffic works and check how XDomainRequest works
 
@Julo0sS no, ^0.6.21 requires <0.7.0
 
As said, it's more strict than XMLHttpRequest. If I recall it right, it should display a warning in your firefox or chrome console
you're either accessing HTTP from HTTPS or otherwise, or attempting an intranet connection from your internet connection
 
9:13 AM
@KarelG XDomainRequest is the old ie8-only CORS thing, no?
 
@FilipDupanović ok then... What about the rxjs "beta" / "rc" problem?
 
the XMLHttpRequest doesn't give much fuss about that, it only gives you a warning
 
@Julo0sS try this: run npm prune to remove extraneous packages that aren't in your dependencies; run npm outdated to see where you have discrepancies between versions installed and versions required
 
but the old ie9 or lower XDomainRequest stops immediately and complaints about that
 
@Julo0sS my guess is that there's hopefully a newer version of router that includes the RC distribution
 
9:16 AM
@FilipDupanović no output to npm outdated
^^
 
hmm, did you run it where your package.json is located?
I'm using NPM 3.10.8 and it's picking up peer dependencies with npm outdated
 
yes i did, in the main folder
do I have to run it under the package folder (/node_modules/\@angular/.........) ?
i'm on 4.0.3
 
usually, the peer dependencies for beta and other dist tags are fixed to a particular version (e.g. ends with something like || 1.2-beta.6)
 
Well, let's say that to fix the rxjs issue, I'll change manually the "...-beta" in the package json to "..-rc". This will solve it, and I guess it's not a problem to do it.
but for the ^0.6 => 0.7 ?
 
@Julo0sS run it where your own package.json is located and make sure you have all your required dependencies saved (--save, --save-dev)
install a peer version that is <0.7.0
 
9:25 AM
^^
btw, @angular/testing fails anywhere
its version is 0.0.0-0
 
@CrazyDeveloper Welcome to the JavaScript chat! Please review the room 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.
 
and requires @angular peers that also have 0.0.0-0 versions (false : they all have 2.2.4)
 
Can I ask? Is this a question?
 
ok fixed the whole thing manually
thanks @FilipDupanović
 
Wow. Such meta
 
9:46 AM
where is the PHP forum
 
user3119231
wat did u say?
 
user3119231
 
10:39 AM
is there no spec for decorating regular functions?
 
@Mosho: Just use common sense. Confetti can get in the way of the arguments you're trying to pass. That stuff gets everywhere. Balloons, on the other hand, can be tied up.
 
10:52 AM
Hi all. Anyone of you that worked with Framework7?
 
Yo! anyone proeficient with Dust js around here?
 
nah not anymore sorry
 
@Martinn Welcome to the JavaScript chat! Please review the room 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.
 
@Mosho they pulled it out of Babel, so I guess there's not even a Stage-0 proposal
oh, it's Stage 2, tc39.github.io/proposal-decorators, maybe there is an up-to-date Babel syntax/transformer plugin
 
<3 you all
 
11:08 AM
why
 
Just had the first Cambridge interview (out of 2). They didn't seem too impressed with m problem solving, but then they asked how I learnt js and I mentioned this room. Then they looked so amazed
I mentioned Haskell and they asked to show some codegolfing from it. Nailed it ;)
You saved my interview, all of it
 
@FilipDupanović You just photoshopped a sausage with mayonaise into my mouth...
 
is that racist of me to think you're a wolf that likes frikandels?
 
0
Q: Can I use the same dust.js module with different partials?

ThaenorI'm trying to use dust.js templating powers to render some html. I've made a model that renders a button and takes as partials the href and the text. {>"modules/Button/Button.tl"/} {<button_link} some url {/button_link} {<button_text} some text ...

 
11:16 AM
@FilipDupanović LOL
 
I think he doesn't "get it" xD
Also, yes, so racist. TRIGGERED
 
it's not photoshop, because if it was I'd totally get that bg out of the picture... this is Gimp, because idkhtf the fuzzy select tool is supposed to work
 
it should have been a frikandel speciaal ;)
 
I wanted mexicanos, but Google didn't get it
 
Google: "mexicano snack"
 
11:20 AM
@towc hey congrats. i pictured you mentioning this room going something like this heh
 
fall in with psychopaths, get rewarded for it... preparing for interviews is pointless :|
 
11:33 AM
@towc Did you sneak a Rebecca link into it?
 
frikandel speciaal +1
 
the hamburger needs refactoring imo, it's missing bread
 
11:50 AM
Full gif from yesterday's short video.
 
Is it possible to define multiple properties using Object.defineProperty ?
 
Cc @KendallFrey @SterlingArcher @Loktar
 
jeeeeeesus
 
@FlyingGambit nop, use Object.defineProperties developer.mozilla.org/en/docs/Web/JavaScript/Reference/…
 
@FilipDupanović Ok, I did check MDN, just wanted to confirm :<
ECMA6 should have addressed these issues
and Date formats too
Wait ECMA6 is just a standard to follow, isnt it
 
11:55 AM
@FlyingGambit What is there to address?
 
@FilipDupanović thanks
but those aren't function decorators
 
Hi all any one know about how to run photoshop filter file in web ?
 
@GautamPatadiya Welcome to the JavaScript chat! Please review the room 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.
 
they're method/class decorators
 
jah, ctors and methods, so I guess the pull out of Babel was due to that?
 
11:58 AM
yeah, they seem to have a problem with defining how it works with hoisting
 
user3119231
my life in a few seconds
 
user3119231
 
no active proposals for function composition either
 
@rlemon cobblestone road ?
 
@GautamPatadiya You can install Photoshop on copy.sh/v86
 
12:03 PM
@Maurize happy wife happy life?
 
user3119231
kind of
 
@Maurize It keeps looping for ever and ever and ever and ever and ever and ever and ever and ever?
 
user3119231
while (true)
 
Syntax error: statement expected
 
12:19 PM
Stupid annoying looping GIF!
Someone please start shitposting
 
@OliverSalzburg 💩
 
user3119231
💩
 
user3119231
sorry, forgot to minify it
 
@OliverSalzburg various ways of formatting Date without using moment.js or Date.js , ability to define multiple object properties etc. More functionalities should be built into the native
 
It already has a lot of features not available in the original. There is a limit how far you can go before scraping it and start anew - which is what Java did. And JS's Date copied from (old) Java.
 
12:32 PM
I partly disagree with that .. in the sense that if majority of the people tilt towards using such libs when dealing with certain functions such as the Date, then JS should be updated to provide the same functionalities or atleast some major ones.
It will also help reduce the number of different libs out there
^ @Sheepy
 
By that reasoning, JS should starts with absorbing jQuery. Literally most of the web is using jQuery.
 
@Sheepy I think JQuery not needed anymore
 
user6820627
Warning: Stack Overflow has lots of SQL injections code meta.stackoverflow.com/questions/339093/…
 
@FlyingGambit Well, most web developers still "tilt towards using" jQuery. And this "most" is not what "I think" - it's backed by multiple web tech surveys.
 
@Sheepy "equivalents of virtually all its functionality are now easily accessible via native JavaScript functionality. " quora.com/Is-jQuery-already-outdated
@Sheepy Can you link me to one of the surveys ?
 
12:44 PM
The same can be said of most date libraries which are smaller and simpler than jQuery.
 
@LearnHowToBeTransparent SO answers. And that search probably generates a load of false positived.
 
@FlyingGambit Why? So that you can have more differences between implementations and browser versions? :P
And you can define as many object properties as you want already
 
@FlyingGambit Just google "jquery usage percentage", "jquery market share", or "how many website use jquery"
 
@OliverSalzburg That would be a nightmare but I am hoping things will get standardized and properly adopted by different browsers with time
@OliverSalzburg How ? MDN says only one property can be defined at a time Object.defineProperty developer.mozilla.org/en/docs/Web/JavaScript/Reference/…
 
user3119231
ot question, maybe you can tell a number: what is an average salary for a web developer who finished vocational training some time ago?
 
user3119231
12:49 PM
sorry, ping not expected
 
@FlyingGambit So use a loop or whatever
@Maurize In Bangalore?
 
@OliverSalzburg Thats one way to approach the problem but would it be nice if could just pass an array of keys ?
 
user3119231
@OliverSalzburg in Bangalore and in Germany
 
@OliverSalzburg How did you know ?! O.O
 
@FlyingGambit Seems like a very specific solution to a non-problem that rarely occurs :P
@Maurize Check the SO developer survey?
 
user3119231
12:52 PM
I've heard that the statistic isn't realistic
 
And, well, there is Object.defineProperties as previously mentioned. What's the problem with that?
@Maurize So you rather ask here and get an answer from 1 person? ;P
 
user3119231
I thought there were more Germans here.
 
@OliverSalzburg True but still wish we had a method for that.
I think we need a new scripting language for the web, one that compliments Javascript
or a framework that is vanilla flavoured
 
user3119231
awesome. you are the mvp
 
12:56 PM
Depends a lot on location, industry and company size
 
user3119231
It's because if I receive a job offer I don't want to get ripped off. :D
 
I have a problem with the express-validator as I started mix params with body validation. Can someone probably take a look here: jsfiddle.net/3mg344y4 If I do it with only body or params it worked
 
@Maurize You might still want to take a low-salary job if you like it. Then proof your worth and ask for a raise a couple months in. Your employer is more likely to raise your salary after you've shown what you can do than they are before you started work
@elsololobo Then you should probably start by looking at how that middleware works and see why it throws
 
If it throws, then you should even have a stack trace with a very clear indication to what is going wrong
 
user3119231
1:05 PM
@OliverSalzburg yeah, that's plan b. Well I don't know whereas me leads my way
 
We're looking for JS developers ;)
But we wouldn't hire people who hang around SO chat all day, right @Beat?!
 
I Will One Day I Will Make Javascript Great Again
 
@OliverSalzburg wh00t?
 
user3119231
huh, I have two screens. one for notepad, mysql workbench and stuff and one screen only for the browser.
 
user3119231
...this chatroom pinned as tab, so no problem here.
 
1:17 PM
Goddangit
My answer is even a heck of a lot faster than the accepted answer.
 
user3119231
@Cerbrus at least nina scholz is on your side.
 
@Cerbrus That is just nasty and you know it :P
 
I like it
upvoted
 
user3119231
why did she add css in her answer?
 
@Maurize: To make the console output in the snippet larger
 
user3119231
1:22 PM
Isn't important for the op
 
RegExp is the new jQuery
 
I added another option :P
 
@rlemon that's trash talk!
 
So we should stop using RegExp?
 
You shouldn't use RegExp for everything
Slight difference there
 
1:32 PM
s/n't//
 
you couldn't use regex for everything
 
@CSᵠ tell that to @KendallFrey
 
rebel for president!
 
So is RegExp turing complete?
 
REBEL is
 
1:38 PM
Quick Challenge of the day Time !!!
what google uses for there google maps in web view ? hint !! webGL ?
 
@Mosho what about making your functions static class methods? Python does that a lot, there are lowercase named classes all over the place to group related functions
 
fun fact, minecraft is turing complete
 
dwarf fortress is too
 
is there a easy way to create a pdf out of a mysql query result, like it exist for php?
 
1:44 PM
just save the data in pdf file ?
google-able answer
 
db -> email (attachment: pdf)
 
this should be in Node.js standard, with an option to pick which song you want attached along with the PDF
 
fetch your data from db, put it in pfd file, create email, attach the pdf file you just created and then send email
 
carrier pigeons
 
3
Q: How to generate pdf file from dynamic data coming from mysql database in php?

Yogesh kI am doing one web application society management system. In this application I want to generate pdf file for each user separately. Means during invoice generation , if there are 10 users then for each user separate invoice should get generated as a pdf after clicking on generate PDF button. My i...

see, google-able question
 
1:55 PM
you missunderstood my Q. 1) I need it for node 2) My Q was is there an easy like it exist for php, where the pdf is generated from the SQL query without the need to add colns ... by my self. But is np, then I craft it with my hands
 

« first day (2243 days earlier)      last day (2688 days later) »