« first day (2287 days earlier)      last day (2676 days later) » 

10:07 AM
@KarelG Yes. Will. Discussed.
 
10:25 AM
what's a better way of saying "I saw scaredness in your face", by changing scaredness with something else?
 
fear?
 
frightenment...
oh
good point :P
thanks
 
horror
 
@BenFortune +1
 
in regex is there a way to use or matches x times? something like: [0-9]{3|9}
 
10:28 AM
@towc "You look scared."
 
@Sheepy you're changing the whole sentence
I was looking for fear, and I found it -- so deep
 
That's like improving a program by changing variable name. Which you already have a good answer.
@joshhunt No. But you can do \d{3}|\d{9}
 
Thanks, I'll just stick with that then. Looks like there is a way using lookaheads but definitely not worth it: stackoverflow.com/a/12784477/1661462
 
Yup.
 
when using reviews.map(value => foo(value)); is it possible to access an iterator? So, like say I also have another array movies whose values are in match with reviews[]? So say reviews[1] will be a review for movie[1]
essentially it would look something like reviews.map(review => compile(review, movie[i]))
 
10:41 AM
@Thaenor reviews.map( (review,i) => compile(review, movie[i]))
 
gotcha, thanks.
Can I just keep passing parameters there? I never know... what happens if I do
reviews.map( (review,i,j,x,y) => compile(review, movie[i]))
 
the params are fixed: item, index, and array - https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/map
but you can use variables in parent context (closure)
 
Now I understand what @david said... about promises...
 
Can anyone look into this content policy meta tag ? https://hastebin.com/jeqosodijo.xml
This is giving me -9807 OSStatus error on IOS. My requirement is to allow wss:// urls as I am using websockets. What is the error
 
why I hate systemd
It's the worst thing that ever happened to linux
 
10:54 AM
Hey guys, could I get some help with my code?
 
@WhytetheWeeabear 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.
 
Hey guys, I have written a little bit of code to interact with a bitcoin exchange's trade API. It's my first project of the sort, so i'm new!
However I get a really vague error message from node, saying "TypeError: must start with number, buffer, array or string"
 
@WhytetheWeeabear Any line number? And that's a pretty specific error, given that Node cannot read your mind.
 
@WhytetheWeeabear new Buffer is not valid anymore. Use Buffer.from
 
o'rly?
 
user6438653
11:08 AM
Is this possible?
 
user6438653
`var location = location.origin.replace('http', 'ws'),
wss = new (WebSocket(location) || MozWebSocket(location));`
 
@WATERYMEL0N No
Just no
 
it will throw shit at you if WebSocket is not known
 
user6438653
lol
 
It's also calling a constructor without new and then passing the result to new
 
user6438653
11:11 AM
@jAndy thus the fallback for moz. otherwise ya.
 
user6438653
@OliverSalzburg eh?
 
ecmascript won't work like that respectively the logical OR doesn't. Types must be at least defined (known) in order to work on that level
 
@WATERYMEL0N The (WebSocket(location) || MozWebSocket(location)) is evaluated first
 
if you execute that line in any device where WebSocket is an unknown reference, you're basically calling window.THISISNOTTHERE();
 
new (WebSocket || MozWebSocket)(location) might work, but you'll still go straight to hell for using it
 
user6438653
11:13 AM
hahaha why?
 
needs at least an additional try / catch which reserves you even in hell a special place for all the real fuckers
 
user6438653
new (window.WebSocket || window.MozWebSocket)(location); I could just use a variable... called websocket
 
user6438653
@jAndy lol.
 
user6438653
11:16 AM
var ws = WebSocket || MozWebSocket;
 
Don't try to be smart with shit like that. Just properly determine the type to use at a certain time and then use that. And don't be scared to use an if ;P
 
user6438653
yip.
 
user6438653
I'll use the variable ^^ check if it's ok, then use new ws(location);
 
const Socket = "MozWebSocket" in window ? MozWebSocket : WebSocket;
const ws = new Socket(location);
 
no check for WebSocket in window? :P
 
user6438653
11:18 AM
Magical @BenFortune!
 
user6438653
not many browser don't support websocket.
 
user6438653
!!
 
ie9 can't
 
guys i had a doubt
 
@SmartManoj 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.
 
const Socket = "MozWebSocket" in window ? MozWebSocket : "WebSocket" in window ? WebSocket : () => throw "No Websocket available, fucker!";
 
user6438653
hahahahaha
 
teamviewer.com/en/download/windows/ this gives two different downloads links
 
@SmartManoj So?
 
one on chrome browser and another on edge browser
 
11:22 AM
1 message moved to Trash can
 
@SmartManoj now you have a ban
 
user6438653
@BenFortune Dang, oh well I'll show a your browser sucks.
 
and a curse
 
user6438653
Thanks @Ben
 
user6438653
what's better? addeventlistner or just .[name]?
 
11:24 AM
Personally, I'd just start my code with window.WebSocket = window.WebSocket || window.MozWebSocket;
 
@SmartManoj no longer?
 
@OliverSalzburg and then use a try catch on each invocation?
 
Or window.WebSocket = Math.random() < 0.01 ? Number : ( window.WebSocket || window.MozWebSocket ); tihihihi
 
@WATERYMEL0N addEventListener
 
user6438653
11:26 AM
keel.
 
user6438653
okay i gotta go to bed.
 
@jAndy No, actually I wouldn't do that at all ;P
I'm more of a socket.io guy anyway
 
feature detection in ecmascript is a slippery business.. in fact we would need to actually check if WebSocket is a function reference. But even that can be user defined, so we would need to analyze the .toString outcome of WebSocket and see if it contains "[native code]" .. and so forth
SLIPPERY... russian hackers will pwn your ass.... he's coming....the p0ny...
 
will bootstrap modal windows work even if they are not in the page as that of the launch button ?
 
Please don't w3schools.
 
11:31 AM
^
 
Can a website have 0 security? Apparently yes. Attached is a video from a talk in the Chaos Computer Club by Karsten Nohl and Nemanja Nikodijevic.
 
a website with no security shouldn't happen. If that's the case, then the developers behind that are to blame
 
@АндрейБеньковский You sound like a infosec newsletter.
an
 
@littlepootis I know just was looking for quick examples
I have a tendancy to click on the first google link
 
@jAndy var WebSocket = alert;
 
11:36 AM
Yes, that is why the only thing you could learn from them is SEO.
 
@FlyingGambit I have a tendency to click on first three links. I also have a plugin to hide all results from w3schools.
 
@Sheepy yea that works too
 
@АндрейБеньковский security is not a quantifiable value, it's all relative
 
@Sheepy Which plugin is that ?
 
@АндрейБеньковский there never was any security
 
@Sheepy is there one for firefox ?
 
@Shashi Have you clicked on the link?
 
yup
 
Liar
 
@Shashi Did you see the Firefox logo? I think they haven't updated that.
 
11:48 AM
it says only for firefox but does that mean it is not available for chrome
@Sheepy didn't they only changed the Mozilla logo ?
 
1 min ago, by Shashi
@Sheepy is there one for firefox ?
You asked for chrome?
 
oh sorry :D
crap
lemme rephrase
is there one for Chrome :p
 
you dun fked up
 
Yes. Check the store
I'd link it but im in the bathroom
 
@littlepootis lol....yup
 
11:50 AM
I judge people by their googling skills.
 
What If They Have Duckduckgo Skills Instead?
 
Then they wear a helmet to bed
 
@towc I never knew that existed!! My GOD I guess I need tea now :| my brain just isn't working
 
@Sheepy Looks Cool, thanks, I will look for a chrome one
 
@towc won't cut it
 
11:59 AM
is it difficult to just ignore unwanted results ?
like those w3schools thing. I just check the next block
 
@KarelG I thought the same. Until I installed it.
Actually, I first installed it to hide forbes. Because I AdBlock.
 
@littlepootis googling isnt easy.
You really have to know what you are searching
If you are trying to rotate a 2d vector image in 3d space but you dont know words like "projection", "matrix" etc then its hard to google for a solution etc
 
@Asperger Then google those too, research isn't limited to 1 request
 
@Asperger That's part of googling. You google for what you want, realise that your term is imprecise, and google for the correct term.
Or add more terms to narrow down the results. Judging which route to take is also part of the skill package.
 
or add filters :)
 
12:20 PM
@SterlingArcher i.imgur.com/5gvCIBm.jpg
 
@rlemon SterlingArcher is afk: protein shower bed
 
I'm picturing him laying down while protein shake pours over him
 
12:32 PM
> protein shower
I dunno
 
> Given Chrome’s market share, it’s not clear how many people will even associate the :// with a URL.
 
ouch
 
Breaking news: Logo not directly tied to people's browser choice
 
Tell Microsoft that. They didn't make the Edge icon look like IE for no reasons. But I agree, Mozilla didn't change the logo to help Firefox.
I also agree that the new logo is better than the old one. But that's like going from the 80s to 90s.
 
12:47 PM
Even Google Now thought that this news is relevant. "You've shown interest in Web Development. So here's a story about the new company logo of a browser manufacturer."
 
urgh, mozilla is losing it ://
 
@KendallFrey I'm just waiting for "DAMMIT I WOKE UP WITH SHAKE ALL OVER THE BED"
 
I mean, they must have had a good actual reason, they're not stupid, but I really don't see it
> Trump Corporation just bought mozilla for $2
 
I hope mdn's design doesn't change
 
12:56 PM
Need help with AngularJS
function openModel(){
    vm.lastOpenModal = $uibModal.open({
        templateUrl: 'widgets/paymentinitiation/widgets/comparenative.html',
        size: 'lg',
        scope: $scope
    });
}

function dismissModel(){
    vm.lastOpenModal; // lastOpenModal is not available
}
 
@towc If you want to know the reason, this is the old logo:
 
how to get lastOpenModal ?
 
@Sheepy I still think this is better
 
lol
 
also, WE'RE DOOMED, the wayback machine doesn't allow us to search mdn :/
 
12:57 PM
what's wrong with that?
 
next thing you know, mozilla might privatize mdn
and then what? w3schools?
developers will lose faith
 
that's not possible
 
I guess we are now thinking too far!
 
there will be no good sites, and amazon, youtube and similar will end up being crappy. Then humanity will soon be extinct
this is the end of an era
plz plz plz mozilla don't go private
don't "modernize" mdn, we love it the way it is
 
how about an Apocalypse :D
 
1:00 PM
developer.apache.org/web
If everything dies, we can count on Apache Foundation being there for us.
 
@littlepootis not sure if supposed to be a joke or real thing
there's no dns entry for developer.apache.org
 
It's a joke
 
ok, good
or bad
 
All dead projects go to Apache Org.
 
really bad
 
1:01 PM
@towc I'll go to msdn. It's my second go-to documentation. Example: Proxy
 
@Sheepy NOOOOOOOOO
don't fall for them
they just want to eat you
 
/me grin
 
it's like luring candy
 
I sometimes wonder how SQL database handles queries
 
@towc hahahaha!!
 
1:02 PM
@KarelG whatcha mean?
 
@KarelG why?
 
@towc what was the one called that was backed by Google and others?
 
@GNi33 probably mdn
 
@GNi33 Web Platform initiative
 
nah, it was something else
 
1:03 PM
It's dead
 
probably. yep, looks dead
it looked promising in the beginning :/
 
so, mozilla knows we depend on them...
 
SELECT ID, Foo FROM ... WHERE Name LIKE '%bar%';(returns 0.157), which processes faster than SELECT ID, Foo, Phone FROM ... WHERE Name LIKE '%bar%'; (returns in 19.110 sec). And it's only one additional column that isn't FK one
 
Very, yes. I contributed to that.
 
oh man
stopped in 2015... wow
 
1:04 PM
b-bye all, office time over!! catch ya tomorrow (y)
 
WE'RE DOOMED
I'll start building my bunker
or download every mdn resource as it is now
would actually be interesting to see how much data for web docs do they have
 
@KarelG A very very rough introduction to SQL engine: rusanu.com/2013/08/01/…
 
2.5 gigs
 
1:05 PM
have fun
 
@littlepootis oh, that was easy...
I'm definitely downloading it
 
you're paranoid
 
why exactly would they close mdn?
 
@littlepootis oooooh! Web Wars: a New Hope
 
1:07 PM
you have to maintain it (update the docs) regularly
 
Because Trump Corp bought it for 2 bucks?
 
@GNi33 they're rebranding. With everything that's going on, people would actually spend money in having access to mdn, I know I would, if it wasn't over, say £20. There's not much of a reason why they wouldn't
 
"The web is a disaster. MDN still not completely translated to German. Sad!"
 
@towc Mozilla is not the Open Group.
 
sure, chances are it's not going to happen, but i have this feeling... the risk is worth the precaution
 
1:09 PM
@GNi33 Yup. You lost. Learn English. That's what I tell Chinese devs, anyway.
 
with all of your paranoia and over-reacting you're going to have a stroke before you reach my age
 
THEY PUT A ROOTKIT ON MDN
 
@Sheepy Make Github great again! All these chinese repos
 
you can't see it, it doesn't affect you in any way, but it's there
sitting quietly, being a rootkit, doing its job
 
@towc go have a cup of coffee
 
1:11 PM
Biased Mozilla rebrands to close down internet. A disgrace #CrookedFirefox
 
@GNi33 Yup. And Chinese government tried to block GitHub. Didn't end well that time.
But you know, it's China. They will try it again when they are prepared.
 
yeah, I'm really not feeling well actually
 
Then they DDoS'ed it
 
Yes. And denied it.
 
        _
       / \      _-'
     _/|  \-''- _ /
__-' { |          \
    /             \
    /       "o.  |o }
    |            \ ;
                  ',
       \_         __\
         ''-_    \.//          I smell rootkits
           / '-____'
          /
        _'
      _-'
i.imgur.com/bD8rl6D.jpg @BenFortune damn those are expensive caps
but 👍 on the vending machine parts
 
1:13 PM
had my maths advanced exam 2 days ago. It was fairly complicated stuff that I think I understood, although I had learnt quite a bit of it that morning because I had been away for a while and didn't want to study anything... in the end it was ok, I just spent the first of the two hours doing things very wrongly and realizing only later that I had switched the compound angle formula for sin and cos around, which was supposed to be a given... I just wanted to go outside
so I just asked the teacher if I could do it another time, and he let me go out
 
he meant you can do it next year
you failed
 
I can't see how they can charge money for MDN
 
poor towc
where did this payed mdn topic come from?
 
idk I just read back a bit
 
@towc are... are you okay?
 
1:15 PM
today we had an italian exam. There were 3 options: writing about a text of contemporary stuff, another about an old author we were meant to study (which I did), and about a slightly more modern author. I started on the second author, but just couldn't concentrate on it because of existential questions
 
@Mosho Many, many years ago, Netscape had a dev sidebar that let you quickly lookup css and html and I forgot whatelse. Then Netscape folded and the sidebar is gone.
 
apparently not
 
the information on MDN hardly belongs to mozilla
 
Actually, it's not that long ago. Younger than most devs.
 
luckily the first text was about a guy who claimed that technology was soulless and we should study more literacy
so I went all out with how tech can be an art
 
1:16 PM
@Mosho this. The contributors own the copyrights.
 
but at least I got something
 
and left after 2 of the 4 hours because I just wanted to go away
school has offered a shrink
 
> Code samples added on or after August 20, 2010 are in the public domain.
 
parents are visiting tomorrow, and I really don't want to see them, something tells me they're bringing me back to italy
 
1:17 PM
The docs aren't though
 
@towc you should really relax a little I think
 
I am slightly afraid I've had a bad effect on you, @towc
 
everything else is CC
 
@AwalGarg what do you have to do with any of this?
well, I did try to install arch while I should have been studying I guess ;)
 
found the problem
 
1:19 PM
go on
 
and on
 
and on
 
and on
 
stfu
c....c....c....
 
you're lucky you're bigger than me or I'd smack you
 
1:21 PM
what if I like it
 
How do I iteratively create an array of promises and then wait for all of them to resolve?
 
you translate what you just said into code
 
Step one: iteratively create an array of promises. Step two: Use Promise.all().
 
@tereško happy birthday!
11
 
1:37 PM
@MadaraUchiha um
 
@MadaraUchiha lol
 
@SterlingArcher tinder fails imgur.com/gallery/B2HQP
 
@rlemon SterlingArcher is afk: protein shower bed
 
or wins
depends on your perspective
 
@CapricaSix He showers his bed with protein?
 
1:45 PM
we're unsure
 
@rlemon Damn, can get 50 for that price
 
right?! $0.25/cap
 
@BenjaminGruenbaum thanks
 
Happy Birthday!
 
user6820627
Can I say 'Hi guys' in formal context?
 
1:56 PM
@LearnHowToBeTransparent In a formal context, it is preferred to say "Whaddup"
 
hey please can someone tell me if it easy to migrate from jquery app to angular 2 app
?
 

« first day (2287 days earlier)      last day (2676 days later) »