« first day (2307 days earlier)      last day (2864 days later) » 

16:02
@rlemon I tried this:
 [ngClass]="{ 'login-form__text login-form__email' : '!displayErrors', 'login-form__text login-form__email-confirm error': 'displayErrors && this.Form.get(\'email\').value !=\"\" && !Form.valid && Form.errors?.mismatch'}"
It's close I was able to rescape the single quotes in email
it will still be evaluated the same after the conversion
but I'm having issues with value
how do I properly escape the double quotes here: value != ""
Anyone here used react-router@next?
using withRouter is not giving me access to the router on my wrapped component
Ced
Ced
anyone knows if I can use steam to authenticate on the client with firebase ?
user1596138
16:05
Most broken page on mdn? lol
user2620028
i fuckin hope so
> Your browser does not support MathML. A CSS fallback has been used instead.
user1596138
MathML was needed to explain the img element ?
user1596138
Everyone gets the MathML error?
user1596138
16:07
@DenysSéguret Yea Idk...
MathML is dead, so I guess everybody gets it
A client of mine just received a $273 bill from nodejitsu (of all things), have anyone else had them suddenly send a bill like a year after they closed down service?
user1596138
So does the page look ok in FF?
Nope haha
user1596138
16:08
/me doesn't have that garbage
user1596138
Uhh the whole page is white for me on FF
user1596138
user1596138
Nice.
reverted to working version
16:11
thanks
Was the faulty edit old ?
nope
edited today
ok (I'm too lazy to try to use their painful login system my OAuth2 GitHub login worked this time, cool)
I just signed up. it was painless
I just clicked to log in with github.
Yeah. My previous bad experiences were with their own system, I can't remember exactly, something like "persona"
Yea. I never tried until now.
Or I tried and noped out
16:26
Nice, mobx, @action.bound
Hello! I have a quick question about promises
Suppose I have a promise like this:
new Promise((resolve, reject) => { doMyStuff() });
At which point in time is doMyStuff() called?
A broken promise.
Is it executed immediately after the Promise is constructed?
It's called right away, but that promise will never resolve.
Yes.
16:32
Thanks, that's what I wanted to know
In that example, it is probably wrong to use new Promise() at all. What does doMyStuff return? a promise?
user2620028
@jhawins why were you on the mdn img page anyways? lol
(I guess it should be new Promise((resolve, reject) => { doMyStuff(); resolve(); });)
that's better, in that the promise will at least resolve, but it shows no purpose for a promise.
What's the point of that?
16:33
I'm just curious about the behavior of Promises in general. I'm not actually using the promise in my example.
We're jumping on this because mis-use of "new Promise()" is common.
Fair enough. I am admittedly still new to Promises :P
If you give more real examples, we'll happily trash them for actual reasons.
I mean 'critique'
xD
omg, today I witnessed the power of ellipses in CVs
16:37
Education: High School... ?
hey guys ^^
who can help me? simple stroke offset animation for svg - make it work in Edge (the project is running on holo lens, thats why edge)
!!urban edge
!!undo
ahem
dont ban me
what urban edge
@Luggage was actually thinking of the skill listing, but even if you're joking, there's a good way to also make education look better
@towc I was joking. :)
16:39
> even if you're joking
yea I see @Luggage am fucked ^^ but ehm there is no way with javascript or something?
I saw vivus.js
That, i don't know.
maybe someone else has an idea? :) thank you
an svg emulator in canvas
googling: "svg smil polyfill" returns lots of promising looking results
16:40
actually, see if html-gl works for your cases
maxwellito.github.io/vivus - but this has only one type of animation
not sure it works for svg...
!!tell me what to eat for lunch
@Luggage Command what does not exist. Did you mean: wat (note that /tell works on commands, it's not an echo.)
tacos
eat tacos
burritos
16:45
heh, do online courses count as education?
plural burritos?
user1596138
@HatterisMad I saw a nonstandard attribute used somewhere and wanted to know what was up
@Luggage I asked this question if you want to answer it: stackoverflow.com/questions/42118900/…
It doesn't look like anybody has asked my question on SO before.
@towc no online courses make one dumb - so they are anti-education
I find that hard to believe.
16:46
@towc depends
@PomeGranate was talking about cvs
no harm in mentioning when you've got space left
@littlepootis did you have a look at the stuff I sent you? Still trying to find out if there's a good way for me to market it
they count surely, for example courses on udacity.. they are 1000 times better than our courses at the university here in switzerland
Yes, I did.
16:46
(market the skill of being able not to need libraries, therefore being a "fallback" developer)
That's not in demand.
yeah, exactly
more like "fall guy" developer
I assume you think they're actually pretty small things
how can you make the stroke-offset animation for svg without libraries?
16:48
canvas implementation
I couldn't find a duplicate when I wrote the question or by looking at the duplicate suggestions when flagging my question. But I agree, I won't be too surprised if there's a question I missed :P
@Kevin they have, but the answer is undefined
@towc hmm but ehm wait
@ssube still exists!
aye
16:49
@towc how could I get this effect with canvas?
@PomeGranate by being a half-assed enough canvas dev
that's fairly easy
I can do it for you if you pay me smth, otherwise I'll leave you with the hint of... canvas
just animate it like anything else in the dom, mutate it's values.
the problem is I have a svg graphic
an on top of that I have to animate my things
you can convert it to coordinates
and it's not hard to transform those into graphic coordinates and instructions, as long as there are no weird arcs/filters/whatever
hm what do you mean by coordinates? i have xml of svg yes
16:51
do you kind of know how to svg?
is the property set with CSS? try css animations
@Luggage his problem is that edge doesn't animate stroke-offset I think
not with <animate> but possibly with css.
oh, I thought he did use css
Also, falling bck to a svg -> canvas drawing library should be plan B, not plan A
16:52
yeah, he did use css
so he did. I was thinking about <animate> from the previous question
oh
is there not a chat room for jquery?
This is it. :(
try the C# room
they know all about jQuery
after all, it's a different language
16:55
@Luggage why the sad face?
@towc well I'm surprised the room for jQuery has no one in it
so can you really there's a room when no one's there?
of course
jQuery is JS mate
I know but some people like the divide
JS is jQuery
well, I want to keep jQ away from me and my projects, if that's what you mean
16:56
I don't want to ask about jquery in a place that doesn't explicitly say I can other some people may get upset
!!welcome BlueBarren
@towc why? What's wrong with it?
@BlueBarren 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.
jquery is upsetting, there's nothing you can do about that
i mean, we talk about trucks here, why not jquery
16:57
youmightnotneedjquery
@CapricaSix I looked at that but I didn't see anything explicit
s/might/never/
@Zirak jesus no versioning?!
> just ask your question, and if anyone's [...] interested they'll help
jQuery is on-topic here. Ask away. Some grotesque uses may get you some unsolicited opinions.
16:58
@towc okay but it still has to be relevant to topic of the room xD
I really appreciate that! Go seems very interesting. I have a potential job interview for wearable tech that uses Go and Node and I wanted to get that opinion. Doesn't seem like the worst language to work with, but not the best either.
Thanks bud :D
@BlueBarren dw about it. Sterling here is asking about go
@BlueBarren nowhere does it say your question has to be on topic
@SterlingArcher it's pretty fun
ugly as hell, but can do some very useful low level things
What isn't on topic is trying to coax a question out of people. We've spent too much time giving you a personal invitation as it is.
16:59
We'll see if I can get an interview. They're willing to teach Go, but I'm worried I don't have a deep enough systems knowledge for this job.
@KevinB well I try to be on topic because rooms exist for certain topics if that's bad then sue me (please don't, I'm poor)
my company is starting to move some of our easily isolated endpoints to go microservices for compute-heavy stuff (login, f.ex) and putting the rest into lambda
But I have literally nothing to lose so why not try right?
plus, all my monitoring stuff is Go, since it's Prometheus
works great for tiny little daemons, their gc doesn't have much overhead
Anyways I just wanted to verify something
17:01
1 message moved to Trash can
@BlueBarren Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
theoretically
@CapricaSix I'm trying
1 message moved to Trash can
@BlueBarren Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
    if ($(".scoreType").val() == "Percent") {
       $(".scoreLimitRows").show();
       $(".scoreBoolRows").hide();
    }

I should only go into this block if the option in my select box `scoreType` is selected, right?
how come media type image/jpeg shows as Custom files in File browser but image/png shows as PNG Image?
17:04
@BlueBarren yea.. looks that way..
@Luggage huh that's what I thought, well something is a miss. Thank you I was just checking if I was missing something obvious
$(".scoreType").val() could match a whole bunch of elements
@ssube are you suggesting there's more select boxes with the same name?
Because I hadn't thought of that, it might be a good idea
well.. you say "name" but it's "class" that this selector is looking for.
It'll work if there is a single <select class="scoreType" />
but id might be better.
or name.. if it's in a form
actually that makes me think of something else too
17:09
also that's not how checkboxes work, pretty sure
The important difference between a name and an id is that with a name it’s short because you can just use scoreType (self is implicit) but with an id you have to use document.all.scoreType
ahh there we go
you have to do some weird stuff for that to happen
it was class vs id
It's not a checkbox, it's a select.
17:11
so I switched to # and everything is as it should be
oh yeah
ahh, so it was id="scoreType"
I mean I knew it was an id but until you (@Luggage ) pointed out it's a class, I was just being lazy and calling it a "name" (don't worry I know the actual difference)
or rather what I was posting was a class
why doesn’t jQuery(document.all).prop('chat-body') work =/
the difference is important when discussing it to avoid confusion.
17:12
that's for sure
Especially since that confusion is often the underlying problem
thanks again
!!afk tacos
@Ryan because console.log($(document.all))
17:30
I just nuked me some salmon, and it tasted just like any other salmon I've ever had
why do people even own ovens
you could also just eat salmon raw (at least the deep-frozen kind)
but how would that taste
I would never have guessed it was cooked in a microwave
because ovens are "betterer"
if I hadn't done it myself
how are they better
they're not
17:32
this was cooked from raw in the microwave?
@KevinB That’s bad practice but if you mean $(console).prop('log')($(document.all)) I understand now
!document.all is why jquery doesn't wrap it
$('<i>').toggleClass('JQuery', !!document.all).toggleClass('JQuery').is('.JQuery') is more cross-browser but yeah
What the hell is going on with all this jQuery abuse?
Is there a joke I don't get?
ok, so im trying to use the id of an image which is obtained as a global variable, but its undefined, can i ask where im going wrong? codepen.io/rusticblonde/pen/ygxJXK
17:37
$(jQuery) is twice as compatible but also doesn't return unfortunately
@KirstyMarks that says sad when I click it twice
is that what you're going for? and then +1 sad for every new click?
@KirstyMarks You are logging what functionTwo() returns. which is nothing.
yep, but what i want to do is use Sad outside say to concatinate a sentence with Sad in it?
(btw there is logic behind this)
are clicks involved or no
So you want to make the sentence only when someone clicks on the thing
17:40
So lets say there is 4 pics, each pic depicts a mood, i want to give that pic an id of the mood, so i can use that to distinguish what they have clicked on, and use that word if that makes sense
You already are. It gets the ID
So i thought i could pass that back and use outside the function (the id) that is
No. The funciton only registers a click handler and returns immediately. It doesn't know any IDs
yes, but using that ID outside the function doesnt seem to work :S
oh right ok. Makes sense
can i store that id in the function so i can retrieve outside?
a simplified example that might make this easier?
17:43
yea, i did that. But I cant get that value outside the function if this makes sense?
The function you pass to click() runs when you click on the box
so say i have var x = id?
Don't worry about getting a value "from outside", just do what you want when the click happens.
hmmm, maybe im crap and explaining XD
basically i want to use say ID = Sad, outside the function,
It's not inside/outside that is your problem it's future/present
17:44
So write:
var x = 'sad';
// use it
if it doesn’t depend on the click
if it does depend on the click… well…
… then you’re going to have to explain more yeah
var x;
img.click(() => {
    x = $(this).attr('id');
});
yea, it depends on the click thats the thing. Because i want different picture emotions and i want to know what they have clicked on. And use that value
but.. that doesn't solve your problem. The value doesn't exist until after a click.
ok thats fine.
maybe it does solve the problem? maybe it only needs to be used in subsequent clicks
¯\_(ツ)_/¯
17:46
im happy for the value to not exist, its more a case it exists after a click, as ive established what they have clicked on XD
What does it mean, in plain english, when a user clicks an image?
yes
user clicks image...... Image is Sad image.
Then I establish that because ive gave it an id of Sad,
@Luggage... hmm saying img.click is undefined :S
function selectEmotion(emotion) {
    // do something.. store it in a shared object, etc.
}

$('img.emotion').click(() => {
    let emotion = $(this).attr('id');
    selectEmotion(emotion);
});
that was psuedo code. you already know how to register a click event, so I didn't type it out fully
oh right ok lol sorry :)
see i did try that, an empty variable outside, it didnt seem to do much, i thought i may have typed it wrong :S
show the DOM some appreciation with let emotion = this.id;
17:50
Show me. I think you are still having trouble with the future/present tense in your code.
@Ryan I agree, but I didn't want to confuse thing with anti-jquery talk.
we're having enough trouble as it is. :)
haha, sorry guys. I know, hard work for me, or me in general lol. Maybe im just crap at explaining :S
(and yet the ES6! fair)
yea.. I know..
I'm inconsistent. I often try to match the JS version of the asker, but I slip up some
@KirstyMarks What do you want to do with x?
User clicks -> x gets a value -> ???
I'm 90% sure she's just trying to access it before the click event.
and that it's all about timing, not variable scope
17:52
Ok, heres the scenario. A user has 4 images. Lets say Sad, Happy, Excellent, Confused
They click Sad image
I want then to use say the Sad image id (lets say "sad") to say in a .html ("I am sad today").... that make sense?
Yes. You need to start that process from inside the click event. not just set an outside variable.
@Luggage im wanting it after the user clicks so i know what image they have clicked on.
Your code that USES that id must be triggered AFTER the click.
@Luggage yes
Okay, so this is a good time to pick a FRP framework
17:54
bought frozen salmon, let it sit in the fridge for a day
opened a moderation issue on GH, if anyone looks at that anymore lol, somewhat relevant.
I don't see it in culture.
@Loktar Link?
ok, i get that @Luggage. So lets say ive got the id in the on click function. Then how do i use that Id outside that function? I thought about putting it in a variable, but then when i tried to use that variable it says undefined :S
I looked at two random repos and couldn’t find it
17:55
nevermind, found it
@Ryan only ROs have access
it's private
It's about you @Ryan
sick of your crap!!! :P joking ofc
nah I have access too
oh do you?
moderators can edit any post on the site
on github? :)
17:56
it was only a matter of time before github devs copied and pasted one of our backdoors in
^ what luggage said
haha
ew, event listeners
oh! Thats what i wanted lol
Note how his example initiates the change from inside the click handler. This is the only way. You don't just set a value on an external variable and expect it to cause changes.
17:59
@Ryan what's wrong with even listeners lol
Hi guys ,

I was wondering,
why
var date = new Date();
var date1 = new Date();

date1===date //false

date1.getTime()===date.getTime() //true
@LogicalForhad 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.

« first day (2307 days earlier)      last day (2864 days later) »