« first day (3282 days earlier)      last day (1672 days later) » 

5:04 AM
@KarelG, that email issue got resolve, i did it using personalization,
there is something called personalization in sendGrid, where in we can add multiple receipients like below
personalization.addTo(Email1);
personalization.addTo(Email2);
personalization.addTo(Email3);
 
 
2 hours later…
6:48 AM
hi guys
 
 
4 hours later…
11:09 AM
Im just curious, I know sites like microsoft 365 and microsoft teams have this... "HTML Loaded" Thing that they do, and basically, when you click a link, it opens the link, but most of the site HTML doesnt change, it doesnt unload and reload like most sites
it stays there, and only the main content updates
is this something with Javascript?
or just something im missing
i would love to add this "smooth transition" to my site, as it has a headerbar thats universal in all my pages
and, if anyone does know how this works, could you show me how to do it
 
11:30 AM
ajax
 
I've heard of Ajax a million times, but Ive never actually used it
does it require PHP
 
no
learn it
 
so I can use it on a static site?
Hmm, I guess its progress
 
if by static you mean no backend, yes "technically"
but it must talk to something
even if it isn't your backend
and to talk to another server that isn't your own, it requires CORS headers
it helps to think of AJAX as asking the server for something
so you could save a record, you could ask for data and update the page.. whatever
you can do all of it without navigating to a new page
 
Well I hate hosters (Slow, Expensive, and relatively un-user friendly)
Hmm
Ill figure it out one day
I always do... after a while...
anyways, next periods coming, cya, gotta go to Math
 
11:47 AM
\o
 
doing math test on inequalities, arithmetic sequence, geometric sequence, etc.
wish me luck
this school really ruins fridays for me lol
 
12:09 PM
Does someone have experience with jasmine / karma?
Bit lost with even getting my component to create
imported my mockstore and stuff but keeps complaining about injection errors due to my actions dspatched in the component
on an event trigger
 
12:38 PM
ew
38
Q: Stack Overflow made the BBC news - Copycat coders create 'vulnerable' apps

Jon GoodwinIs this an attack on Stack Overflow? On GitHub, or the Internet in all its generalities? The Internet (portmanteau of interconnected network) is the global system of interconnected computer networks that use the Internet protocol suite (TCP/IP) to link devices worldwide. What are we do...

Don't you love it when news sources report on things they have no clue about
 
12:56 PM
I remember when the news actually reported things worthwhile. Celebrity gossip and the latest fashion has way too much priority these days
you'll see a 10 minute segment now on global events out of a one hour news show when it used to be most of the show
I doubt most Americans know Turkey is attacking the Kurds
 
 
1 hour later…
2:23 PM
I have a table generated from a JSON tree object that's been flattened (deeper branches are indented). I want to add buttons at the top of every branch to be able to expand and collapse the rows under it. How can I keep track of which rows are expanded or collapsed by which ancestor?
For instance, if you hide a row by collapsing its direct parent, then you collapse the grandparent, then expand the grandparent again, how can you make sure the rows under the parent stay hidden?
This is in vue, btw
My first thought is to give each row object an array of all the ids of the objects above it, and see if any of them are collapsed when determining if it should be visible or not.
Is there an easier way?
 
Hey is it possible to detect the parent iframes location from inside an iframe
I want to make a moving tunnel effect using multiple interconnected iframes
its something for a friend
 
3:21 PM
sometimes
 
3:36 PM
-1
Q: JavaScript - Why access-control-allow-origin test case fails?

overexchangeDjango backend setting has explicitly added: # CORS Settings CORS_ORIGIN_ALLOW_ALL = True mocha is running acceptance tests for Django backend, where one of the test case is: describe('Cross Origin Requests', function(){ var result; before(function() { result = request('OP...

expect(result).to.eventually.have.deep.property(prop) fails
 
 
5 hours later…
8:24 PM
🚽
 
how do I find a @foo/bar repo on npm?
 
9:16 PM
thx
 
9:29 PM
How to remove bower dependency(deprecated)?
-1
Q: How to migrate bower dependencies to npm?

overexchangeBelow task(from here) is the grunt task for todobackendclient using bower tool(deprecated): var JS_VENDOR_PATH = 'public/js/vendor', CSS_VENDOR_PATH = 'public/css/vendor'; module.exports = function(grunt) { grunt.loadNpmTasks('grunt-bowercopy'); grunt.loadNpmTasks('grunt-contrib-clea...

 
do you ever have that feeling like there's a broad community issue that needs discussing, but you can't quite figure out what it is?
I think it's something about the question and answer format itself
it seems to foreground immediate answers over long-term sustainable solutions
does anyone else feel that's the case?
I know I kind of panic a lot when I see a question in case my answer doesn't fully fit what the person asking and the people googling the question after might need
 
no
Reputation and Pride is what drives immediate, often low-quality answers. not the format
 
you never feel like that?
maybe I just worry too much about broader questions I can't know?
 
well, there's a whole subset of broad questions that are wholly off topic here due to the QA format not being suitable for them.
 
but is SO really helping the community
 
9:34 PM
?
of course it is
 
or is it getting people addicted to copy and pasting what real coders do?
 
for the things it's built for.
there will always be people who copy paste, SO isn't enabling that any moreso than anything else than came before it.
 
have you ever used Angular Materials?
 
yes
 
that feels a lot like it was made for copy pasta
since it fights you when you customise in many scenarios
 
9:35 PM
yes
most frameworks work that way.
many libraries even
 
but maybe... the market wants copy pasta but the market doesn't understand itself
so SO evolved to fit what seemed to be the need
but people really want to learn
 
lol
no
 
boolean = false there
Sololearn is a very, very popular app
close to the market share of SO
 
SO evolved to become what many new developers seek: a place to ask a question and get an answer. that's it. it's great for that. that's all it does.
 
and by contrast users report very very high satisfaction
but it encourages a single question, single answer dynamic
 
9:38 PM
The answers are often garbage
and rarely are useful for more than just the OP
 
and in my professional experience coding isn't like that
 
and?
 
so what's SO's function?
 
having a source to look up something is incredibly useful
 
that's partly rhetorical
I still use it
 
9:39 PM
regardless of whether you're a copypasta dev or a real dev
 
but never for copy pasta
I just think, and maybe I'm biased
that the people who ask questions and just demand an answer
and I get that a lot
 
They're just avg people.
 
have been influenced partly by Stack Overflow to think that's how things work
 
heh, no
SO isn't what influences that
 
but really, they should be taken step by step through the learning
 
9:40 PM
the whole social environment of today is what influences that
 
it's a huge coding site
 
you can go online and find anything
 
the format is bound to have influence
 
why shouldn't programming be the same
 
because SO is the largest coding site of this type
 
9:41 PM
Copy and pasting code from SO will bandaid your issue, it will almost never fix the underlying problem.
 
it has huge influence
partly because Google auto-ranks it so highly
 
that's hardly auto
 
Hello all!
 
it's ranked highly because people click it
 
yes @JBis we all agree copy pasta is bad
:)
 
9:42 PM
i don't
 
@PeterDavidCarter Ok but you are blaming SO for it.
 
ok, let me moderate...
 
Quick question: what will execute faster/more efficient: to run a loop somewhere OR search within a constructor function using IF...
 
we all agree blind copy pasta without understanding is bad, right?
 
no
 
9:42 PM
I mean, it's better you're capable of understanding and writing your own code
 
@AlexH please explain more
 
copy pasta withotu understanding it is precisely what you do any time you use a framework or library
 
yeah @AlexH your question is interesting but there are questions about the question
 
@PeterDavidCarter Generally I would agree
@KevinB Or because you don't want to reinvent the wheel...
 
it's all the same thing
 
9:44 PM
it's not really
 
it is
 
i have a constructor function, various Planes,say, OR helicopters. I need to loop through them to identify one thing or the other... I can do it within some update function in a constructor OR i can just run a loop somewhere searching for what i need to identify in my array (all planes and helicopters are within an array)
 
bad devs think they can use the same code in different contexts and it will work the same
I know them well
 
right
 
they create bugs and problems
 
9:45 PM
and SO certainly helps them do what they do, but without SO they'd still be doing it.
the Q/A format simply allows them to do it more effectively than your standard forum format does.
 
@AlexH This doesn't make sense. What do you need to identify? If you are searching for many instances of a class, than store them in an array and use some array method.
@PeterDavidCarter You can in many cases.
 
I assume you're trying to determine whether something in the array is A or B?
typeof
 
@JBis it's rare unless all your apps behave the same
 
@PeterDavidCarter What is your argument here?
That SO is bad cause people can copy and paste without thinking or understanding the code?
 
OK @JBis I have an array of items.... I need to find an item that has a TRUE in one of its properties. I can fun an IF function within an UPDATE function which is part of my CONSTRUCTOR or i can run an IF loop somewhere else in the code. WHich one is more efficient. p
 
9:47 PM
@JBis Critiquing something can be a sign you appreciate it as well
 
he's not going to present his argument until he fools us unto agreeing with it.
@AlexH i don't quite understand the overall goal here
if you simply want to be able to determine if a given thing is A or B, if A and B are instances of different classes, you can already determine that.
 
@PeterDavidCarter Good answers (in my experience most of the ones that most people click on from Google) will include an explanation of the actual issue and then usually some code to explain how to fix it. The idea is not that you copy and paste the code without reading the answer. More often than not it wont work exactly how it should, by reading the answers (and maybe some more research) you can figure out the issue and solve it yourself. SO is a guide to help you find the answer for your...
...particular problem
@AlexH Array of instances, array.filter(a => a.property)
@KevinB Maybe I don't know enough to see issues, but most of the questions on SO I find off google (NOT FROM THE HOMEPAGE) have very good answers and explanations that are accurate and up to date. If one is out of date the next one will say "THE ABOVE ANSWER IS OUT OF DATE....DO THIS INSTEAD". Is this not your experience?
 
For things off of google, yes, a lot of those are well written
if you troll the home page to find new question and new answers.... they're nearly categorically garbage
copy paste answers, wrong answers, wild guesses at unclear questions,
just a cash grab for rep
 
@JBis Very helpful. I think i should try formulate my question better. Both my loop of an IF statement will run through a requestAnimationFrame function, and i guess, execution time will be the same. Me silly old squirrel :-)
 
I noticed recently that a 40k+ user I was able to google and he's produced one app which had 2.0 on the Play Store with users universally saying it was too buggy to use
that's not a smoking gun on anything
but I found it interesting and unexpected
 
9:55 PM
@KevinB I also have a $15K budget for a JS based game. And i need someone to help me. Where can i find someone? probably 1 month job
 
not here
 
@KevinB is $15 a lot in javascript/json world?
15K
 
@AlexH You can click on peoples profiles and contact them directly, don't discuss in chat (although not strictly prohibited it is frowned upon)
 
no idea
i don't do any freelancing
 
depends on project
 
9:56 PM
@JBis some simple game. I can code myself but i need it done to production level.
 
@PeterDavidCarter Maybe he's really good at backend but not frontend.
 
raised eyebrow
 
maybe it's a hobby
 
@AlexH Depends the type of game. If you are making Call of Duty, no. If you are making pac man, it is way too much.
 
no no , some animated sprites on screen shooting eachother. multiplayer. 2d totallyu
 
9:58 PM
Maybe his name is Mark and he is stealing your data
 
nothing i produced for free on my free time was production level.
 
there you are :-)
you code to impress investors, they give cash, you pay someone to do the job :-)
 
@KevinB most coders I've worked with could say the same, only they'd be omitting their professional work is the same
 
Then again, Kevin doesnt answer questions on SO (anymore or recently)
 
I do answer novel, well written questions
 
9:59 PM
@KevinB not that I'm saying it's the same for you
 
but they're very few and far between
1
A: Ajax: Undefined value for ajax success

Kevin BWhen you search by search term, you get anywhere from 1 to n results, however, when you search for a video by video id, you will always get either 1 or 0 results. Your for loop in the success callback loops 15 times, so if there are ever less than 15 results, it will fail once it processes the nu...

 
those coding unicorns who can code the details and understand the big picture too
where oh where could I find one?
 
happily employed
 
weeeeeelllllllll
I mean, happilyish
but more money and two or three titles higher would be nice
 
Too many of the questions today are, 1. Just plane shtity questions (not remotely on topic, "my website don't work", "give me teh codz". etc.) 2. A question but a wall of code or text that nobody wants to read (often have a low score. 0 most fo the time) 3. A good question that is well asked and only has relevant code but is too specific to be helpful to anyone else or few on SO that can actually help (also 0 most of the time).
 
10:03 PM
also: questions about obscure js libraries about 3 people have downloaded
 
that is number 3 ^
> too specific to be helpful to anyone else or few on SO that can actually help
 
also:
questions by people who didn't bother to fully read the documention
but just parsed some text based on an incomplete picture
ROFL
 
@KevinB I like your way of doing that I would have done a new variable with an if statement. Although you should probably cache the Math.min. Although thats a bit of a microoptimisation.
@PeterDavidCarter thats #1
 
@JBis ROFLCOPTER
 
also note that i was one of the close voters, heh
i cast a close vote because it was unclear, the author clarified it, and i answered it. then it was closed via review.
Just a show of how ineffective our current close system is
 
10:08 PM
I noticed a question on meta recently that was basically saying: is technically correct better or is it better to be nice
 
Here's an example (one of mine) that is a copy and paste question. The questions would usually be closed because it is asking people to write code, but since its a popular enough question people deemed it a fine question:
3
Q: CSS Animation to expand div from center outwards

JBisI am trying to make the following expand outwards from the center (almost like curtains opening). It should kind of look like this, but instead of - it's empty space. ------------- ------t------ -----sti----- ----estin---- ---Testing--- .animation{ width: 100%; text-align: center; ...

 
seemed a false dichotomy
 
But most people going to that page would just copy and paste the code in the answers
 
technically incorrect systems can have massive real world impact
 
Fortunately that isn't my problem
:)
 
10:09 PM
and all the people saying 'hey, it's about the community', well, that's very nice in hippie land
 
@KevinB it should ask you to reevaluate close votes once somethings edited so you can rescind it
 
but in the real world technical decisions can make or ruin lives
 
yeah, i dunno what needs to be done about it (the close system)
it almost seems pointless other than for duplicates
and too broad
 
but at the same time
there's bikeshedding
 
by the time closure actually happens the op has an answer via comments or an actual answer and is gone
 
10:10 PM
there is: people getting caught up in meaningless technical conversations
because they don't really understand what's going on big picture
 
This is more of a conceptual question. You learn a bit more about how JS works:
1
Q: Why can't I assign `push` function to a variable?

JBisHere's my first example which works as expected: const testObj = { func: (str)=> { console.log(str) } } const testVar = testObj.func; testVar("Working"); //logs "Working" However if I try the same thing with a push function, it is undefined. const array = []; const t...

 
posted on October 11, 2019 by Ruben Bridgewater

Notable changes build: Add --force-context-aware flag to prevent usage of native node addons that aren't context aware #29631 deprecations: Add documentation-only deprecation for process._tickCallback() #29781 esm: Using JSON modules is experimental again #29754 fs: Introduce opendir() and fs.Dir to iterate through directories #29349 process: Add source-map support to stack traces

 
heh
i could link my 3k answer for learning a bit more about how js works
:)
 
so it's like: oh, I can do x with y new JavaScript function in ES56564X2
great, what will you actually use that for to help people?
 
programming constructs aren't for helping people
 
10:12 PM
Heres an example of a decent valid question, but is too niche and a wall of text
2
Q: How to save variables after quitting and reopening in AppleScript?

JBisI am writing a very complicated AppleScript application that requires variables to be saved after quitting. So if I set the variable while it is running, close it, reopen it the variable will still be the same. This script is intended to bring up a setup menu on first run. Then save the prefere...

 
omg they so are Kevin
if you don't think your profession is there to help people there is a problem
 
"very complicated"
it's there to make money
like everything else in the world
 
of course
 
And here's the example of an absolutely shitty question of someone who doesnt know basic js and should read mdn before trying advanced js api's
-1
Q: Assign the latitude and longitude from Geolocation's getCurrentPosition to variables

JBisI am trying to set the longitude and latitude of this function found on W3Schools to a variable (let's just say y and z), then I need to display y: <script> var x = document.getElementById("demo"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.ge...

 
but you know... I mean maybe I'm a naive capitalist
who read too much Ayan Rand
 
10:13 PM
Noone is answering questions with the purpose of helping others
 
but I actually think that capitalism is there to ensure when you help people you get rewarded
 
it's always about bettering yourself
either by learning more, gaining rep, or getting that "feel good" feeling.
working/programming is no different
 
yeah and personally
I think that good feeling is a clue
that you did something good, you know
 
it's too easily influenced
and can often be wrong
 
> Not sure who down voted or why but please at least explain yourself as I am unable to post another question for 48 hours. This questions was on topic and worded properly. I don't see a reason why this was down voted. – JBis Nov 12 '17 at 22:41
2
:)
 
10:15 PM
oo, where, free flag
 
i half expected teh downvote to be mine
 
hhhhmmm @JBis the format for the question is a little bit different than what I'm used to
as someone afraid of change I might downvote
 
go for it, its a shitty question
 
is it, I didn't read
just parsed the format and a few more clues then made a decision
 
10:18 PM
i think it's a pretty silly question
 
in an IRL codebase that starts to be a good way to do things...
 
heh
 
the question looks quite basic but it's Friday and I've had a few glasses of wine
doesn't seem bad tho
 
a bit of a back story, I was trying to make a "virus" that I would send me the location of anyone anytime I wanted
(I was gonna use it on the telephone scammers)
 
err
the answer is wrong..
well, wrong ish
it's right that window.location is an object, however, that object's toString is window.location.href
so by using loose equal (==) you were already properly comparing a string to a string
 
10:21 PM
I did find a sorta vulnerability in safari that allow you to bypass the confirm "share my location" message dialog
 
I'm sure you know but
you know Snowplough is vulnerable to arbitrary data injections?
 
idk what that is
 
it's a big data gatherer
there's a course on it on PluralSight
used for many, many websites to get user iteraction data
you can literally send it almost anything
and it just accepts that's right
even if you send it 100,000 randomised interactions it has no protection
according to the Snowplough team I raised it with, that's a flaw with all big data gatherers
 
i would call that a design flaw
 
yeah
 
10:25 PM
not a vulnerability
 
not really a vuln
 
because they can't afford the overhead of validation
 
and it's a relatively common one among analytics providers
 
it's kind of astonishing
that you can send big data all kinds of fake numbers
 
is it though?
 
10:26 PM
meh, I mean whats the impact
 
and they accept those as genuine
 
it's code running on the client
the client can undo any validations you place on it
 
yeah so your backend analytics program should do its own valdiation
 
but what can it do?
 
what ever it needs to
 
10:27 PM
very little
I've been told they are trying to use machine learning to solve this
 
they claim they are trying to use machine learning to solve everything
 
yep but the consequences
 
it's just a cheaper alternative
well
in theory
 
you can lie to big data and it acts on that
 
in practice you pay more in dev time
 
10:28 PM
I mean, surely that's pretty crazy
 
"There a pot hole in the roa--" "At SmartRoads we are using the power of AI and Machine Learning to make your ride smoother"
just fix the damn pot hole
All those ML devs think they're so cool
 
you'd perhaps be astonished to know how trivial it is to inject lies into big data gatherers
 
alright I gtg
o/
 
11:19 PM
 

« first day (3282 days earlier)      last day (1672 days later) »