« first day (3702 days earlier)      last day (1229 days later) » 

1:36 AM
posted on December 04, 2020 by Krishna Govind

Hi everyone! We've just released Chrome Beta 88 (88.0.4324.29) for Android: it's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Krishna Govind Google Chrome

 
 
2 hours later…
3:46 AM
Did the material-ui site only die for me? - does anyone still have control over the interface there (ie does searching at material-ui.com/components/material-icons work, for me I can type but it won't filter, nor can I say select a language).
 
4:17 AM
@paul23 working for me
 
 
1 hour later…
5:20 AM
@KevinB I didn't think constructors could be async?
 
5:36 AM
eh, you can tell it to return whatever you want
just another one of the great features of javascript
 
6:06 AM
hello
gud morning
i need to access cpanel from ionic app
has anyone worked ?
 
6:48 AM
noidea
!!afk ||
 
@KevinB bye Kevin B
 
@KevinB
 
@User KevinB is afk: ||
 
okk
@JamesBot
 
7:08 AM
hello
 
@Sarvesh Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
please any one answer the question
0
Q: display dynamic component in angular v10 using dynamic id selector

SarveshI am working with ElementRef, ViewConatinerRef and Renderer2 for modifying DOM. but now I am trying to add component to DOM with dynamic id selector. How to do this without viewchild app.component.html <div [attr.id]= 'dynamicID'></div> app.component.ts export class AppComponent implements OnIni...

 
 
2 hours later…
9:19 AM
hello i have one little query about why following line gets printed twice on each server request :
const http = require("http");
const fs = require("fs");
const _ = require("lodash");

let i = 0;
const server = http.createServer((req, res) => {

	// lodash
	i += 1;
	const num = _.random(0, 20);
	console.log(i, num);

	let path = "./views/";
	let status;

	switch(req.url) {
		case "/":
			path += "index.html";
			status = 200;
			break;

		case "/about":
			path += "about.html"
			status = 200;
			break;
the console.log(i, num) line
it gets printed twice on each request
 
 
6 hours later…
user12582392
2:56 PM
Any standard approach to remove trash users can write in a post request?
 
user12582392
@jeea that means there are 2 get requests going on. If you look at the network tab, find the favicon.ico request
 
3:31 PM
Anyone know how can I add a query string parameter to a url? im working with angularjs. the issue is that i have a dropdown that the use selects a job to monitor,, but once the page refreshes it gets unselected.
 
3:46 PM
history api
 
will that help with adding a query string parameter once and option is selected?
 
4:10 PM
...
 
..?
 
you asked a qeustion, i gave an answer, then you asked if my answer would answer your question
 
sorry im a jr developer and have never worked with history api.
thats why I was asking the second question
 
Don't sell yourself short, the learning never stops. check the documentation for the history api
 
Okay thanks a lot Kevin.
 
user14596741
4:23 PM
What if c++ replace javascript?
 
@edward Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
then c++ would replace javascript
 
user14596741
:)
 
That was probably the easiest question you ever answered
 
4:52 PM
I was tried to capture all words which are starting from the upper case using the following regex
([A-Z][a-z]*)+
String is HewawasamAththanayakeDeewani
but it only grouping the last word
this is regex fiddle
what's wrong with the regex ?
 
 
2 hours later…
6:51 PM
@underscore is this what you want? regex101.com/r/GIx3nu/2
 
@JBis well
the real string is
t("US.TL.PACKAGES:installmentDetail.discount")
i just need to convert this to
US.TL.PACKAGES:FREEZ_SETUP.NO_OF_FREEZED_DAYS
i can convert
freez_Setup.no_Of_Freezed_Days
into
 FREEZ_SETUP.NO_OF_FREEZED_DAYS
without an issue
but when prefix US.TL.PACKAGES: comes
it doesnt work
 
||> "US.TL.PACKAGES:installmentDetail.discount".replace(/([A-Z][a-z])/g, '_$1').toUpperCase()
 
@JBis "US.TL.PACKAGES:INSTALLMENT_DETAIL.DISCOUNT" Logged: `` Took: 0ms
 
@underscore that?
 
i'm trying this in VsCode find and replace
that's is js t function comes from i18 next
translations
how do i ignore that prefix
i'm only consern is that
it need to be done in pure regex
 
7:13 PM
hi, I need to download files in bulk from a website. So I stored all <a> tags in a var found = [] . Now all that what seemingly needs to be done was to click each link. So I did found.map(x=> x.click()) but only the last file got downloaded. Can someone tell why is this happening?
 
7:35 PM
clicking a link redirects you to a page, where the download occurs
each click cancels the previous
 
Hi all
 
o/
 
Anyone here uses Visual Studio Pro for coding? Trying to get the linter updated to recognize such niceties as ?. and it's not working. Tried this: stackoverflow.com/questions/59422834/…
Installed latest ESLinter via npm. Still complains about anything with the null conditionals
 
user14692552
7:52 PM
Yo
 
🪀
 
user14692552
How is everyone's Friday
 
user14692552
8:11 PM
@KevinB I've been working with that particles that I have created that I was asking you about Wednesday I believe. It works perfectly in Fiddle and anywhere other than SharePoint.
 
user14692552
 
user14692552
When in Sharepoint, the buttons are there but the particles in the background aren't noticeable and neither is the green bacakground. Its all white.

With 0 errors appearing in the console
 
@codingdreaming SharePoint is probably stripping out your JS
 
user14692552
Any clue how to fix that or you think I should go to the sharepoint stackexchange
 
user14692552
10
Q: How can I prevent SharePoint 2010 from removing/stripping JavaScript and certain CSS elements?

qJakeIf you use the in-browser HTML editor that comes with SharePoint 2010, when you insert certain CSS selectors (like nth-child) or any JavaScript at all, SharePoint will strip those elements out before saving the page. One could argue that this is for security, but on an intranet site it doesn't ma...

 
user14692552
8:26 PM
Im gonna try this remove the Javascript from the HTML file and create my own .js file and call that in the HTML and see if that works
 
user14692552
Damn thats pretty funny, that article you were on
 
user14692552
After trying that solution^
 
user14692552
Uncaught TypeError: Cannot read property 'getElementsByClassName' of null
    at window.particlesJS (particles.min.js:9)
    at particles.js:1
 
@codingdreaming I think that's the best bet if you are having issues only once you try to put the code into a SP environment
 
user14692552
8:41 PM
3
Q: Cannot read property 'getElementsByClassName' of null

Darren BachanI am not sure why I'm getting this javascript error. Having a hard time figuring this one out. Here's my main.js: jQuery( document ).ready( function( $ ) { /* PARTICLES -------------------*/ particlesJS("particles-js", { "particles": { "number": { "val...

 
user14692552
I followed that aswell, and I am still getting the same console error aswell as the particles aren't showing up at all
 
huh
did you name your file particles.js?
 
user14692552
Yes
 
that error you received is due to the element you specified not existing or matching the selector
effectively, var pJS_tag = document.getElementById(tag_id), returned null
tag_id is the string you passed it as the first param
 
user14692552
So weird
 
user14692552
8:55 PM
Even when I embed the HTML into the Script Editor, you can see it working fine in the preview pane. And as soon as I click insert. Poof
 
user14692552
And now im getting a bunch of violations
 
user14692552
[Violation] Forced reflow while executing JavaScript took 79ms
 
11:47 PM
 

« first day (3702 days earlier)      last day (1229 days later) »