« first day (3567 days earlier)      last day (1603 days later) » 
00:00 - 18:0018:00 - 00:00

00:40
posted on July 22, 2020 by Srinivas Sista

The Dev channel has been updated to 85.0.4183.38 for Windows & Mac. Linux push coming soon. A partial list of changes is available in the log. Interested in switching release channels? Find out how. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Google Chrome Srinivas Sista

01:15
Anyone still here?
Im wondering if theres a way to use image loading in a ForEach loop...

but load them in order
Because my images download at different speeds, the elements are created in the wrong order
(After its cached, refreshing once fixes it, but still)
anyone new who comes to the site has to deal with the images and data being completely wrong
Current loop"
		itemData.forEach((e) => {
			var newElement = document.createElement("div");
			newElement.setAttribute("class", "sectionData");
			var tempCss;
			let img = new Image();
			img.onload = function () {
				tempCss = "width:50px !important;height:auto !important;";
				img.setAttribute("class", "sectionDataSprite");
				img.setAttribute("style", tempCss);
				newElement.innerHTML = `<span class="sectionDataName">${e.ui}</span><br><br><a href="./itemData?itemId=${e.id}" class="sectionDataLink">${e.ui}</a><br>`;
wtf
There we go... I think
Ctrl+k wasnt working
anyways
Can anyone think of anything that Im missing?
PS.. Ignore tempCss, thats old logic, not being used anymore
01:52
Nevermind, after a bit of harsher digging
I found that promises solved it
loadImage = async img => {
    return new Promise((resolve, reject) => {
        img.onload = async () => {
            resolve(true);
        };
    });
};
Seems to work now
Goodnight then... if anyone is actually even reading this
 
4 hours later…
05:58
Hello! I am fetching from News Api in my react project and setting the setNews hook in useEffect. But console shows that news is still an empty string. Why setNews is no working? Code iks here (pastie.org/p/4OTO4zndMTShZBDHdx0S0D).
@Lapys I don't think it's obfuscated in the browsers because I don't think it intention is to hide it. I guess Node.js simply implements that particular function in JS code, hence it can display it. Or it has native implementation but overrides the toString. Neither way is the correct one when it comes to builtin functions - saying [native code] just means it's implementation dependent and perhaps the browser doesn't even have access to the source.
06:14
Hm, alright. Understandable
06:32
Apparently
When editing the prototype of a function (class) in IE5, the function's prototype is changed. All well and good
But instantiating a new object based on that function i.e.: new ... undefines (= undefined) the prototype of the function
Or wait... nevermind..
 
3 hours later…
C4d
C4d
09:58
Hello everyone. Is there anyone experienced with rxjs? I have 3 nested observables here. As you can see, I'm manipulating objects in the last one. Goal: returning Observable<any[]> from the surrounding function. Any idea how to archieve this in rxjs?
get1().subscribe(data1 => {
    get2(data1).subscribe(data2 => {
        get3(data2).subscribe(data3 => {
            data3.forEach(item => {
                item.prop1 = 'got touched'; // <-- return Observable<item[]>
            })
        })
    })
});

return Observable<item[]>; // ?
@C4d flatMap
C4d
C4d
@BenFortune from the docs it looks handy. Just hoping to understand it. Rxjs is still a bit confusing to me. Thank you!
Nice example at rxjs-dev.firebaseapp.com/api/operators/flatMap. Topic says flatMap, example is using mergeMap.....
Never mind... its the same.
10:31
What's the best way to take an array like ["a", "b", "c", "d"] and convert it to an object like {a: {b: {c: {d: ""}}}}?
C4d
C4d
10:48
Im just to dumb for rxjs. Check.
11:06
@RichieBendall You definitely don't need an entire package for that
 
1 hour later…
12:20
@BenFortune How would I do it then?
C4d
C4d
12:31
@BenFortune @RichieBendall For-loop and Object.assign them?
12:56
There a way to use Chrome Devtools without opening it from a web page?
C4d
C4d
13:26
@Lapys Devtools always run in the context of a website. What do you mean by opening without having a website?
@Lapys you could navigate to about:blank and press F12.
13:39
Yea, but was just wondering if it could be opened without it having to share the screen space with a webpage
you could undock it from the window, if that's what you mean by screen space
14:12
||> arr = ["a", "b", "c", "d"]; result = {}; next = result; for(let key of arr) next = next[key] = {}; result
@VLAZ {"a":{"b":{"c":{"d":{}}}}} Logged: `` Took: 0ms
||> arr = ["a", "b", "c", "d"]; result = {}; arr.reduce((acc, key) => acc[key] = {}, result); result
@VLAZ {"a":{"b":{"c":{"d":{}}}}} Logged: `` Took: 0ms
@RichieBendall ^ These are the easiest ways I can think of.
 
1 hour later…
15:15
Why anyone would still want to be a mod in this forsaken cesspool is beyond me
it is tempting to flag it so a lot of mods would see it :D
Rob
Rob
ಠ_ಠ
15:37
@ndugger long time no see, hows it going
 
1 hour later…
16:40
@ndugger Lol, @JBis is trying at least
What does @JBis even mean (lol)?
I have used stackoverflow, even as a reference, maybe like 3 or 4 times in the past 3-4 months. Has it been useful? Absolutely, but I no longer consider it the best resource for knowledge anymore.
wats a better resource
Official documentation, gittr chats, discord, sometimes I'll even trust an article on medium rather than dig through the mountains of trash here
discord sucks
16:44
Maybe you're using it wrong, or just in crappy servers
Docs are always good. Medium articles are hit and miss.
Which server do you use?
I've used IRC for help before.
I have a server I am in with like a dozen other people who are very talented engineers in security, systems, web, game dev
I am in a big react one, but it's horrible
im in the big react one too
Reactiflux
Too much noise and really bad content
ndugger#1234 if anyone wants to stay in touch
If not np, but could you dm me an invite link. Always nice to have another place to help and ask for help.
16:47
What kind of dev are you up to these days?
I've gotten much better imo.
It's a server mostly meant for game dev, but like I said, people have day jobs too
Oh, I'm not worried about your skill level, I'm not a jerk
Ah, I don't do gaming stuff. Still mostly web. But I am starting to get into native stuff (C++, etc.)
I don't do gamedev either, I just day dream about it
I can see if I can generate an invite, I'll DM it if I can
Ok thanks!
17:08
@ndugger True, the more one develops in their coding journey, the less rose-tinted StackOverflow seems to be
@ndugger I'd love to join too, see what's up 👋
Well no, it's more like after they stopped caring about the quality of the content and instead insisted that downvoting hurts peoples' feelings that the overall technical value of SO has gone down hill
I don't know you
So excuse me if I'll withhold. It's a pretty small tight knit group of people
posted on July 22, 2020 by Shelley Vohr

Notable Changes deps: upgrade npm to 6.14.6 (claudiahdz) #34246 update node-inspect to v2.0.0 (Jan Krems) #33447 uvwasi: cherry-pick 9e75217 (Colin Ihrig) #33521 Commits [0d79c533ef] - async_hooks: callback trampoline for MakeCallback (Stephen Belanger) #33801 [bfffb977ad] - benchmark: fix async-resource benchmark (Anna Henningsen) #33642 [09277fa5e4] - benchmark: fixing http_server_for_ch

@ndugger StackOverflow has that issue. Other stackexchange sites seem to be good still.
@ndugger Aww, that's okay :)
Programming has the difficulty of being a science and an art. Anyone can do it for free, so you get a lot of hobbyists or the type of people who can only do rote memorization and can't actually engineer. With other exchange sites, it's either for hobbies (fiction, ufos, game dev), or it's hard facts (software engineering, mathematics, earth science).
So stackoverflow requires an unusually heavy hand for moderation so that you can clean up all of the noise introduced by the non engineering crowd, but instead they insist on going in the other direction of opening it up to anyone and everyone which dilutes the value of the content overall
They want to have their cake and eat it too
17:17
meh
I think there two separate issues. Bad questions and bad answers.
Same issue
Bad answers stem mostly from reputation hunt. You've got people who don't want to take the time to provide a good answer and would rather just get an upvote or two for some rep.
Bad questions stem from lazy newbies.
A lot of the people asking bad questions also give bad answers. We want the site to be accessible by everyone without the burden of being correct. It's kind of like the US education system incarnate, where there's no such thing as a wrong answer, and everyone gets a shiny blue ribbon because, well, they tried
Well the US education system is a different shit show
But the question is? How do the bad questions and bad answers hurt the technical quality of the platform? Aren't the higher quality questions & answers higher ranked on the site for people to see
17:20
Same culture, from my perspective
The culture here isn't everyone is right.
By introducing noise, and false information, you make it more difficult to find the correct information, and make it easier to spread misinformation
Go look at everything under the jquery tag
That's the biggest offender
@ndugger Did you ever see the design i was trying to make at one point, socratic answers
@ndugger Not so sure, maybe you're right. Need more info to conclude for myself.
A lot of these ideas were inspired by my various convos with @KevinB but they speak to the various issues i see with SO
and here
17:24
To be fair though, I like chat rooms like this.
At least when there's active participation and it's not as if everyone is silent
chat is pretty much the only thing i participate in with SO/SE now
Q&A is just nothing but duplicates nowdays
stackoverflow can fix all of their problems by removing the link between downvotes and negative reputation. It will fix the whiners who cry when people downvote their content, and it will allow people to moderate shitty content without people losing their reputation. I wrote this up in a meta post recently, but people gave me -3, even though there were plenty of upvotes on it too. If they want their cake and to eat it too, they can.
if it was that easily solved, it would already have been done
@KevinB I feel that sentiment
but whiners will find a way to whine
17:27
I still think going from dup questions to dup answers are the better approach
and moderation will still be majorily frowned upon when receiving critique (especially by new people)
@KevinB yeah i like chat a lot, but this chat has been nearly dead for a while
It's been dead for over a year
that's why i joined the meta.se tavern
I've joined Android chat
17:28
and they have bigger problems than downvotes...
although, downvotes certainly plays a role
i'm anonymized there, but everyone there knows who i am
Lol
are you kevin bacon there?
generic user22374691325
nice
17:30
I KNEW IT! @KevinB you are using your bank account id as user name
I also don't understand why people feel there is discrimination on this platform. Maybe I just haven't seen it, but people seem to care about what you are saying not who you are.
But apparently its a big issue
that's just people pushing agendas
people should care about what you are saying, not who you are
noone cared till it became a political issue
It's the very definition of virtue signaling
17:31
you can be a junior grad that helps jon skeet
@Wietlol yes, thats my point
then I misinterpreted :D
kinda funny how this chat helped so many more people on a daily basis when it was supposedly "not inclusive"
I had heard that even trans people were annoyed with SE, because they were just there as anonymous faces asking questions, and then SE decided that they all need to come into the light and put on a pedestal that none of them wanted
chat is much easier for newcomers... and ancient ones
forums are better for searching
17:33
i still believe certain questions do better in chat
I haven't used a forum since like 2010
what is SO called?
if not a forum
If someone isn't understanding a concept Q&A ain't gonna help
a Q&A site
hmm...
17:34
I suppose you could look at it like a forum, but people do tend to distinguish between a bulletin board anf a QA platform
like quoaraourea, ee, etc
the problem usually is that people have a great idea and then build it and share it with everyone and it becomes a great community of doing stuff, and then some random investor sees money and buys it all off... and then it blows up to bits
reddit has far worse subs than racism, which is hard to be worse than lol
I've never had a reddit account, nor have I intentionally used it. Way too much going on there, I never figured it out
Some people are trying to get codidact (so alternative) off the ground
i think its gonna be a failure
so is becoming exactly what the people who are most likely to use it want it to be
17:38
Yeah, I think it will be too. I was in their discord for a while, didn't like the tech decisions they were making
@KevinB Nah. They aren't gonna get answers to their shitty questions.
sure they will
they are now
the answers are borderline useless
someone new comes along, sees an opportunity to earn rep, and they do it
next thing you know they've answered 2k+ questions
and they don't know jack shit
17:39
just use jquery
some of those 2k people will do the same
No matter how many times someone answers "You need to add a return", there will be more questions that receive said answer which actually does solve the question asked
regardless of how demonstratably useless such questions are
ok but conceptually "you need to add a return" helps no one
it helps the person who asked
it earns the answerer rep
Yeah, I agree with Kevin here. The mass want it to be a vending machine of garbage content, and that's what it's becoming. Put in crappy question, get out crappy answer, but it does the job, and they move on.
everyone involved wins, the fact that the question will help noone else doesn't matter to anyone involved in asking/answering it. it was a successful transaction
17:41
Well the duplicate answer idea would solve that
So why would anyone want to stand in the way of that working process?
you do
because... it only helps one person?
i do
it was only meant to help one person
17:42
There are always going to be shortsided people
Why not get rid of open source?
We should only use the library for our selves.
the fact is, there is no way we can have such a general question for that scenario such that most people who have that problem can find it
the problem is caused by a lack of understanding
if you don't understand the problem, you can't possibly describe it
hello, is someone here?
You need a detailed answer about the concept of return values. Then you link that to every question.
yep, we're here. feel free to interrupt with a relevant question
There should be a dark mode for this chat
17:44
We would prefer it to be more like wikipedia of globally curated and moderated content, where there is one source of truth for any one item, but instead they have decided to go the vending machine route. That's what the masses want, because the masses are lazy, and so that's what it's becoming, and what SE apparently wants to become, so we just leave
@AlexHunter No. The past 5 messages have been from no ones.
ok, there i go...
i need some help with regex stackoverflow.com/questions/62733767/…
@Lapys there is, and me and forrest are building a discord like interface for it
jajaja im sorry @JBis
@Lapys I use chrome.google.com/webstore/detail/so-dark-chat-%20/… there's also a firefox version of it by someone else from this room
17:45
guys please check my question and iluminate me =)
Seems like you got an accurate answer already
/@\w+/g
Thanks 👍
@ character and then a word boundary, though maybe I would remove the +
yes but now i need to change to router-link and it doesnt work
@ndugger thats why i reopen the question
What exactly is the problem? What isn't working specifically? Do you get an error?
17:46
this is a perfect example
@AlexHunter what have you tried so far?
It is a good example of a bad question though. There's not enough information
no, it just doesnt convert to router-link. I was using the answer but now i need to change it, i though to just change a to router-link but doesnt work @JBis
Still not enough information
I don't know how we can possibly be expected to give a solution with so little detail
i dont why it doesnt work just change a to router-link
0
Q: how do I check for an empty object in javascript?

Muhamad Rahmat Setiawanso I have a response from an API like this, How do I check the empty object from the API inverse? I have tried using lodash to check it but this did not work well in react native, I have not studied it further this is my state const [product, setProduct] = useState([]) if Data is not empty { "...

17:49
it suppose to work great
im just changing elements
We don't know why it doesn't work either, because you have provided no code, no error messages, no explanation on what you have tried, literally nothing
because like you said, the syntax work
another issue is language barriers
That's why spanish gets its own site, yeah?
> I tried thing, think doesn't work
is not enough information to help anyone, ever
guys, theres no need to take that attitude
17:51
There is no attitude here
But we cannot help you if you do not give us any details
what detail do you need
@KevinB lol
what do you need to know @JBis
there's code in the question, there's no mention of an error existing so i wouldn't expect an error message, what was tried is in the question,
im telling that im using the answer voted
17:53
admittedly i don't understand what problem you are having
Lets make this very simple. We need 1. What are you expecting to occur? 2. What is actually occuring? 3. An MCVE
|| mcve
If you would like assistance, please create a Minimal, Complete, and Verifiable Example
ok, ill try to explain it, im taking the exact code in the answer, it work perfect changing text to a tag, but now, i want to take that text and change it to router-link tag, the code dont do anything, no errors, nothing, the text remains the same
ok, ill answer that @JBis
what did you change in order to make it work?
1. where the @user internally change it to <router-link> tag 2. nothing, just show @user
im changing where the a appers, to router-link codepen.io/cincarnato/pen/wvMyzEx
17:57
Did you copy/paste the code from the answer without modifying it and are now asking why it doesn't work? Is that the case?
return this.body.replace(
        /@\w+/g,
        (user) => `<router-link :to='/profile/${user}'>@${user}</router-link>`
      )
is that what you want?
jesus christ
user image
4
yes, but that doesnt change anything in the body @JBis
literally this
no, of course i change it...
as you can see in the codepen, if you change it, nothing happens @JBis
17:59
It does happen, I just changed it and it worked
00:00 - 18:0018:00 - 00:00

« first day (3567 days earlier)      last day (1603 days later) »