« first day (2499 days earlier)      last day (2464 days later) » 

3:00 PM
Does anyone know if you need to use a polyfill for .includes() method when using it in VueJS?
Or does VueJs already included that ?
 
I would think it's out of scope of vue to provide that.
Though it may be present in a vue 'boilerplate' in the form of a babel plugin or similar.
 
@Luggage Good point, I think it is in babel plugin
 
which, in turn, gets it from core-js
just fyi
 
ok
 
@redshift try and check
 
3:06 PM
guys i got it up and running like champ
 
This is my question:
What I have: main.html (local file), containing an iframe that displays sub.html (also local file)
What I want: call a JS function in sub from main
What I use: `.contentWindow.postMessage("msg", "*");`
What I know already: I need to use target origin "*" in order to make `postMessage` work for local receipient files
My question: Can I at least test if the message origin was a local file?
The problem: `e.origin === null` and `e.origin == null` do not work, although `alert(e.origin)` says `null`
 
with npm install react-iframe
@towc thanks a lot
 
huh, I thought backticks work in here for inline code
 
Only on single lines
 
Ah, so no inlining; okay sorry, I do not use the chat a lot, just the page
Btw I'm also up for a whole different technique, f. e. if there's any way to propagate a callback function from the sub document to the main document
 
3:11 PM
@LWChris you can use your own event listener system through messages
 
@Zirak any idea why I'd get
> (node:17) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Failed to launch chrome! [0819/150914.486426:ERROR:nacl_helper_linux.cc(310)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly
I'm running with args: ['--no-sandbox', '--disable-setuid-sandbox']
Oh, and this happens inside Docker, so there's that
 
@towc I do use messages via postMessage, or is what you talk about something different?
 
Wait, am idiot, was not running headless :D
 
Just had my first real ride. Hearts going nuts, so much fun!
 
@LWChris when a specific message arrives on main, call the function then
@SterlingArcher body count?
 
3:17 PM
7
 
meh
 
I know, rookie numbers.
 
it's only the first ride, I'll give you that
where'd you go? :)
 
@towc There is no message posted to main. I click a button on main, and need to tell sub that the button was clicked. :)
 
@LWChris where does the callback come in?
 
3:19 PM
Got some gas and just rode around town, through the town center and back home. Heading to the mall to do some shopping soon
 
'd you split lanes?
 
@towc I don't use callbacks atm, I don't even know if there's a way to give the main document a direkt callback to a function in the sub document
 
@LWChris there's no good clean way
 
@towc Okay so I stick with postMessage and target origin *
 
or implement an event listener
 
3:23 PM
@towc My favourite part is the part after black holes evaporate
 
I love the concept of the boltzmann brain
 
I don't
it's creepy
 
@towc Ah. So I can do what postMessage + addEventListener("message") do on my own, like postMyEvent + addEventListener("myOwnEventKey")?
 
something like that
 
Seems like what I need. Thanks a lot, will search a bit (unless you already have a link)
 
3:28 PM
@towc oh boy oh boy oh boy
 
I think I found it on MDN. Looks like you nailed it, so far it looks like that's the technique which provides exactly what I was looking for. Thanks a lot!
 
@littlepootis did you really just read all the way back to that?
 
I don't really know how I came across that message.
So, is she into you?
 
not in terms of a relationship
 
It caught my attention because I've said something similar yesterday to this girl and she lectured me for 30 minutes telling me why that's stupid.
 
3:37 PM
did you learn anything? @littlepootis
 
Yeah, she's a keeper.
 
can you share her point of view?
well, the point of view is that it's stupid. But why?
do you consider utility monsters to be bad things?
 
It's creepy. Apparently, sane girls don't like when you're doing something for yourself and then telling them it's for them.
I've never heard of utility monsters.
 
even if I don't tell them it's for them?
does that make it a good heartfelt thing, or even creepier?
 
It's not creepier.
 
3:41 PM
@littlepootis do I get to wiki you?
 
"Hey, I'm going to start working out" is okay
"Hey, I'm going to start working out for you" is not
 
how about I say "" and I start working out?
 
That's better.
 
well, then what I'm doing is better, right?
 
> I'm going to start taking a shower for you
 
3:42 PM
@Luggage <3 thanks honey
 
@towc I already did.
That's interesting.
 
I hate docker
 
@littlepootis thoughts about it?
it seems like they're immediately seen as a problem by a lot of people
but I genuinely feel like it's not, as long as you consider things long term
 
@towc In your case, it seems maybe like it's not a utility monster so much as a monster that removes the possibility of anyone else's utility, i.e. "nothing else matters".
In reality, there's a ton of stuff that matters
 
which would be true and may be a problem. But what she seems to manage to do better than anyone I've met is distribute resources and energies in a way that makes everyone as happy as possible
so in a way, because I want to rightly assign utility points to everyone, I assign all of mine to her, so she can better distribute them
 
3:51 PM
So she is actively trying to make everyone else happy?
 
I'd think so
 
Can't draw parallel between that thought experiment and your relationship.
 
that's why I'm so fascinated by her
 
Wouldn't it then make more sense to do the same, since that's what she apparently wants?
utility isn't something you can distribute
 
it would, if I was as good as her at doing it
but I'm a lot better at focusing on fewer deeper tasks
 
3:52 PM
Nothing matters, the best thing to do is not to think about it.
 
She's already pointed out to me I overthink.
 
@littlepootis bang her and move on, be like Siddhartha.
 
I want to full Buddha though.
 
@littlepootis that's not something I can google, is it?
 
It is sfw.
 
3:56 PM
well, buddhahood is a word
@littlepootis as in, I can't find what it means
 
something something kama sutra
 
It's unlikely there's going to be any banging in this relationship. I told her I find it disgusting and she said she shares the same opinion.
 
do you?
 
I don't think I'd like to bang someone I respect a lot tbf
but I wouldn't find it disgusting
I know who/what buddha is, kinda :P
by going full buddha you meant taking his way of life?
 
3:57 PM
Buddha was Siddhartha before he was Buddha.
 
did he bang a lot?
 
Not sure, but Buddha didn't.
 
only once a week?
 
Siddhartha is the protagonist in the Hermann Hesse Novel by the same name. It's about enlightenment. Get cultured you know nothings.
 
I'm fat, that means I have buddahood, right?
 
4:01 PM
btw @littlepootis, did you consider you might not sexually be into girls?
 
Oh, I actually am. I just find that act disgusting.
 
but uhm... is making out a sexual act?
I wouldn't say so
 
It is disgusting, just like eating and farting is disgusting. get over it
 
sex is kinda gross
 
I don't have to sexually be into someone to enjoy making out with them
 
4:02 PM
but it feels good
 
@towc I guess so.
 
@BenjaminGruenbaum k
 
@littlepootis @Luggage will take a shower on your behalf. just do it and get over it.
use birth control
 
but I want to see little littlepootis running around towcing the place up :/
 
This is an LDR. I'm meeting her this November. I think I'll settle for a hug.
 
4:06 PM
@littlepootis did you ever meet?
does she know you're in a relationship?
are you in a relationship?
are you into her?
 
I don't really know if I'm in a relationship, but I think I am.
I am into her, and she's into me.
 
oh, that's a common case of the couple. It's dangerous
 
I need to find a way to limit/throttle networking in a docker container
 
@towc Nope.
@towc Unlikely I'll towc while sober.
 
@littlepootis was talking about your son you monster
@littlepootis did you send nudes yet?
 
4:09 PM
Oh, shit.
@towc Hell, no.
 
send nudes.
 
That's probably never happening.
 
it's proven to get rid of 99% of the cases of the couple
she knows you're a monobrow, right?
 
She's the one who told me I was.
 
so she knows what your face looks like?
or did you send her a pic of your forehead and that was that?
 
4:12 PM
Yes. She's okay with it.
 
older or younger?
is she married?
pets? kids?
 
She's 3 days older.
 
C# or JavaScript?
 
And 3 inches taller.
 
tabs vs spaces?
 
4:13 PM
She doesn't code, luckily.
 
you already told me that, but she must have an opinion
even just from the names
 
She's definitely a spaces person.
 
JavaScript's name is clearly superior to C#'s, anyone in the right mind should be able to see that
vim or sublime?
 
@towc She likes her pet more than she likes me.
 
is it a lizard?
a basil plant?
3 dragons?
 
4:16 PM
A dog, of course.
 
(spoiler alert) 2 dragons?
why of course?
could have been a cat person
 
Because cats are evil.
 
4:31 PM
maybe she's into that
 
5:06 PM
@littlepootis newton vs leibniz?
 
5:17 PM
o/
 
5:40 PM
SaTuRdAY!!
 
6:06 PM
Can I get someone to see if they find any ways to improve the following code? gist.github.com/ndugger/d240f668436a6ba5edbb4612114d9f05
It's a basic parser for simple arithmetic expressions
follows pemdas perfectly, afaik
 
7:04 PM
@ndugger you're calling terms.match twice without any change
seems a little inconsistent to use regex, which are kind of infamiliar, with Number(x) to define a number, instead of +x, but this is purely opinion-based
I also think it's always a good idea to add a short comment next to regexes to say what they do
although your variable names already kind of do that fine
maybe change const numbers to const numberRegex?
or numberMatch
 
+x is a garbage hack
your first criticism is valid, though. There's a lot of redundant processing happening
 
7:26 PM
@ndugger The regex = ... hack doesn't feel right
 
const regex = new RegExp(numbers.source + op.source + numbers.source); ??
 
Also, naming variables x and y. They could use the "known" names like lhs and rhs
@ndugger yeah, doesn't feel right
 
I didn't know lhs/rhs was a thing
 
left-hand side and right-hand side
 
yeah
 
7:31 PM
I got so many thumbs up from bikers but I feel like a dick because I'm too scared to take my hands off the handles lol
 
@SterlingArcher What was that? You feel like a dick for not endangering the lives of everyone around you by doing something you're not comfortable at high speeds? What a jerk you are.
 
Respectfully nod?
 
Toss a goldfish of gratitude
 
@MadaraUchiha I know how dare I
I did nod lol
The deadpool jacket is a hit. I was worried lol
 
Now you'll be invited to cool biker parties where you can discuss bike parts and neckbeard scrunchies
 
7:33 PM
You will be having literal piles of sex now
 
I need a keychain for my key though. Any suggestions?
 
"I'm with stupid"
 
a goldfish
 
But you won't be with me
 
oh wait you want to keep your keys
 
7:34 PM
 
Must you rub it in!?
 
guy fieri key chain
 
@KendallFrey if you find one, I will buy it
 
What if I print one?
 
@ndugger I'm not worthy of flavortown
Also text me back man :( I've sent like 8 dank af memes
 
7:36 PM
If you print one I'll buy it
 
Purchasing
 
You better get one that floats. Just in case.
 
> all that was left of the killed rider is a blood stained goldfish. Witnesses said he dropped it as he hit the wall
That's my final trip to flavortown
@Luggage I'll tell you what though so much wind against the body is rather unnerving at first
 
7:41 PM
yup. and it gets loud.
 
Pretend it's semen and you'll be in familiar territory
 
Is it a bad idea to wear headphones and ride?
@Zirak Jesus man
 
do you have attention to spare, yet?
or do you mean earplugs?
 
@Luggage good point. Maybe in a few weeks
As earplugs yes would be good at first
I need a phone mount so I can gps, I got lost today lol
 
some people use earplugs for hearing protection and claim it's safe, you can hear just as well.
others are against
I never used any.
 
7:44 PM
@Mosho uses them to hear death metal and ignore my screams for mercy
 
I didn't feel like it was too loud, my helmet blocks a lot of noise. It might be because I destroyed my ears with heavy metal though
 
at high speed the wind noise is loud enough you can't hear vehicles around you
(highway speed, not insane speeds)
anyway.. i wouldn't hurry into jamming anything in your ears or anywhere.
 
That's to be expected -- as long as I can hear horns lol
I agree there
 
@SterlingArcher He's my favourite superhero
 
8:05 PM
How do java jobs rank up against javascript jobs, in terms of numbers
 
@KurtG Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
@KurtG JavaScript is the most popular language at the moment, but that's not really an indication of anything.
A good Java programmer can make a good living, and a bad JS developer can be stuck writing jQuery all dat in sphaghetti ecommerce bullshit.
 
Is front-end pay better than something like a java job
Which has the higher bang for your manual labour
 
I know Frontend developers that make more than $250K a year and I know Frontend developers that make $30K a year.
Same for Java developers.
 
The java room is empty, which isn't convincing me
250k? is that at google or something?
 
8:11 PM
A language not having an active StackOverflow chat room is hardly an indication of a language's popularity.
@KurtG no, but it's in the ballpark of how much one could make at Google doing that.
 
senior deev?
startup founder**?
 
The point is - good programmers are well paid or are super selective about their jobs.
@KurtG CEOs typically make the least at startups, founders love that.
When I worked for my brother I was paid way below my market rate and he was still paid half than me.
(He was the CEO)
 
Keeping it in the family
admirable
Interesting stuff, just trying to find a well-paying field
 
I left, but it was actually a pretty great experience.
If you're a good developer every field is well paying.
Not "consulting for $500 an hour" paying, but very well paying.
 
That's alright
 
8:14 PM
But you should also consider what interests you - you'll be spending 7-12 hours a day at your job.
Do something you love.
3
@MadaraUchiha can you check the stars?
 
8:48 PM
@BenjaminGruenbaum Your mom
 
I second Benji's mom
@BenjaminGruenbaum I just read your little torscapade. Gosh, that was a wild ride
 
What's torscapade
 
your escapade with tor
it's a pun
<3
 
Oh, I'm glad you enjoyed it :)
2.9
 
I love that twitter keeps deleted tweets until a refresh
 
9:00 PM
Facebook is better for international speech, than twitter
 
I have no idea what you mean
 
It's a well built website, probably why it has 20 billion active users
 
What does that have to do with "international speech"?
Whatever that is
 
2 billion monthly* sorry
 
facebook is cancerous for free speech
people post their opinions like it's a law
 
9:02 PM
I disagree, you can broadcast instantly with facebook live
 
@SterlingArcher We like to call it "oniongate"
 
wasn't fb live used to murder an old man
@Zirak perfect term
 
FB live is not a weapon, its a streaming service that is gaining traction
 
@SterlingArcher That's a very liberal usage of the word "used".
 
9:04 PM
That is like saying a camera was used to shoot something
 
you know what i mean
i dontuse words gud
 
@phenomnomnominal Also, I'm shopping for an amp. Fell in love with the Fender Bassbreaker, then played the Vox AC10 and loved it, then played on the Bassbreaker and loved it more.
Help me die
 
@Zirak can't go wrong with a halfstack marshall :D
 
If you go on to facebook, there are many tv shows being illegaly streamed
 
@SterlingArcher You know things about amps?
 
9:05 PM
Not intimately, I used to play the bass guitar
 
And Marshalls are good, but I dunno, I don't like their "colour"
 
I know that they amplify things.
 
Amperage is a measure of rate of flow of current.
 
I want good cleans, I want to play a regular E with everything at 12 o'clock and be able to hear everything
 
good cleans calls for a tube amp
 
9:06 PM
@SterlingArcher I'm somewhat disappointed that you aren't "intimately" familiar with amps.
 
@SterlingArcher Some might say that good overdrive also calls for a tube amp
@KendallFrey tbh I wouldn't judge
 
I might not judge, but I'd enjoy talking about it.
 
Some amps accept dual input if you know what I mean
 
@KurtG If you reread that enough times you'll figure out why it's wrong.
 
@Zirak tube amps natural overdrive goes perfectly with any external one
 
9:09 PM
Testing you, of course it's rate of flow of charge, or simply measure of current.
 
One of the things I loved about the bassbreaker was that if you pump up the gain and lower the volume you get a "natural" crunch
@KamilSolecki Depends on the amp, some have a colour which conflict with pedals
Which makes sense. Marshals have a colour, Mesas have a colour, they're made and bought because they have their own sound
The bassbreaker definitely had the Fender sound. The Vox AC10 was great because it didn't colour. So it's a question of what you want to hear
@KamilSolecki What do you play?
 
The only musical instrument I play is second fiddle :weeps:
 
Your penis isn't a fiddle
 
Wow @Zirak
 
Unless it is. In which case...pics please
 
9:14 PM
That doesn't stop me from fiddling
 
Gives "Devil Went Down to Georgia" a whole new meaning
You want a golden fiddle?
 
9:27 PM
@Zirak I don't understand that ratio
it was fun to watch
but yeah like I said they went full retard
but maybe sometimes it's ok to go full retard after all
 
9:45 PM
@Zirak I have a homemade Marshall DSL 100H
And an ibanez s series
 

« first day (2499 days earlier)      last day (2464 days later) »