« first day (3638 days earlier)      last day (1532 days later) » 

00:31
posted on October 01, 2020 by Krishna Govind

   Hi everyone! We've just released Chrome Beta 86 (86.0.4240.68) 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 G

 
8 hours later…
08:26
kek google sheets
new line within a cell is Alt+Enter but I keep forgetting that. bah
08:41
Hey all. I have a project that I inherited from a previous developer. I am trying to get it building in a workflow in GitHub. I know very little about Node.js and NPM (I am an ASP.NET Core developer primarily). The previous dev has a long build script in the package.json that uses copyfiles to copy node_module javascript files to the dist folder. This looks hackish and GitHub complains about it.
How should this be done? It does not appear to be using the server.js or index.js script files. They are barebones. The package.json has a run script that uses http-server as a dev server.
I note that the index.js file has a line `var angular= require("angular")`. Is that meant to copy module files to a predetermined location in the project?

I apologize for kind of jumping straight to the meat on this. I am under the gun and don't have the time available to learn node.js and NPM from the beginning.
Here is a paste of the scripts in package.json: pastebin.com/w0YfUxrM
Note that build calls the copy scripts which in turn call copyfiles for a number of javascript files.
I presume that the right way to do this would be to have node build/pack(?) the files based on the value of "main" in the node modules package.js. I just don't know how to do that.
09:07
well, that is quite not usual as you say. What you're looking for is "bundling"
Ahh. OK. Terrific. Ill look at that then. Thanks!
but bundling is more for seasoned NPM users because it require some understanding how npm works, how npm dependencies works and how it bundles the files together. And I did not even mention introducing other build tasks / transpiling (to provide cross browser support) / framework compilation / pre-build tests (if any) / ...
Hmm. The current build process (if that is what you want to call it) does not do any of those things. For the moment, they are of less concern, I think.
what your build does is just copy over files to a folder that is publicly accessible (if webapp/dist is that folder) or that you have another build script that uses webapp/dist
in the latter case, check your other build script to see if it is not packing those files. That's my setup: Node for front end files, then I stitch it together with backend builds to be deployed as multiple docker images.
That is all it currently does is copy files from .\node_modules\ to the .\webapp\dist folder. Those files are all currently referenced in the index.html. This is a fairly simple AnuglarJS web app.
09:15
be cautious though, it is likely that you will burn your fingers :D
Oh, I have a Costco sized box of bandaids around here somewhere.
09:34
@CodeWarrior if you have a deadline and not much knowledge of npm/nodejs it's probably also overkill and risky to integrate a bundler now.. the build script doesn't look "wrong" either, it just copies js files into a dist folder, the old way.. so I don't see why your CI/CD process would complain about it.. in the end you need to call npm install && npm run build somewhere and deploy that build, that doesn't change with a bundler
 
1 hour later…
10:53
hi'
11:14
Am I the only one who thinks getter / setter syntax is boring?
	get autoUpgs() {
		return this.autos;
	}

	set autoUpgs(amt) {
		this.autos = amt;
		this.updateUpgrades();
	}
It would be cool if they had some kind of special Getter / Setter block
get {

} set(args) {

}
Maybe its cynical and dumb, but its just my two cents
what are you going to retrieve/set?
there are classes with multiple fields
but you might have misunderstood the purpose of get and set syntax
you do not call these as functions
I guess so, Im just complaining about syntax
feel free to ignore me
I don´t understand that notation, fetchHEAD is a function, right? Can some one explain or provide me some resource to understand it?
//Works
    const fetchHEAD = () => (
        got.head(url, Object.assign({ }, opts, {
          retry: { retries: 0 }
        }))
          .then((res) => ({
            status: 'alive',
            statusCode: res.statusCode
          }))
      )

      return fetchHEAD();

      //Does not work
    const fetchHEAD = () => (

        try {
            const result = got.head(url, opts, {
                retry: { retries: 0 }
              });

        } catch (error) {

        }
      )

      return fetchHEAD();
@elsololobo Its an Arrow Expression
its another kind of function syntax
I believe the only difference between the two is the this context
ah ok, i was missing that word. But why does a try-catch break the code then if it is a function
11:23
with functions, every function statement has its own this context.

But with arrow functions
arrow functions inherit this context from parent function
@elsololobo What do you mean it breaks the code? what error are you getting?
expression expected
Hello everyone
@ADEOYEADEFEMIOPEOLUWA 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.
@MisterSirCode jsfiddle.net/fdnxrwk9/1
of course it´s pseudo code
Look at your parenthesis
() is not the same as {}
arrow expressions also require closed curly bracket blocks
so change your () to {}
11:28
not really
I changed em, and the error isnt showing up
it needs an execution context which is either a one line statement or a block scoped statement (wrapped with {})
oh I see
better: read the whole page 🙂
11:29
:D ok thanks!
ah ok, i think i understood it now. Thanks for the help
the working example was just an expression (could be a oneline without formatting), but when using a try-catch plus a functionCall it required a functional scope and is no longer an expression
11:45
anyone know how to grep the output of grep -t fn
i tried |, >. But didn't work
Hello everyone, I have a function that accept 2 arguments, the first is an array of numbers the second is a number.
@ADEOYEADEFEMIOPEOLUWA Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
12:33
@ADEOYEADEFEMIOPEOLUWA So whats your issue?
 
1 hour later…
13:49
@aeXuser264 | aka piping should work, like grep 'abcd' /some/file | grep 'cdef'
14:08
Angular Question: Our project uses material forms and something that I noticed is that the fields do not upon initial focus have real time validation. If the user selects out of the field and then selects back in then they have real time validation occurring.

Q: How do we enable real time validation on the initial focus of the field? I'm new so I am not sure what to even Google as I have had no luck so far in my searching.
 
1 hour later…
15:09
@makadev well, i tried gzip -tv ./* | grep "unexpected end of file" to mark this kinda err but the output isn't colored or filtered
I had a typo, grep the output of *gzip* -t fn
sorry
@aeXuser264 the output is probably on stderr, which would make sense because you can push compressed output to stdout with -c
try redirecting stderr to stdout and grepping that
@aeXuser264 that error is most likely put on stderr instead of stdout so in your case it's probably better to just grep on stderror like f.e.: stackoverflow.com/a/2342841/3828957
@AndrasDeak ^ beat me to it
@makadev @AndrasDeak You guys are awesome, worked :)
15:53
this is a regex question.. i am looking for help in matching both lion tiger only using this.. regexr.com/5d5ol
i don't want the and in between..
basically i want a regex that matches any string that is between square brackets [and]
nevermind, i got it
thanks
I assume you removed the ^ and &
16:28
Am I being incredibly dense - I've set this as a property on a Typescript class but it always return "undefined"?
public get unreservedCash(): number {
    return 6.66;
}
Other properties on the model are returning fine but they're not getters - just standard variables
17:28
i want a regex to match something like @hello world
notice the space between hello world
any help please
when should the match stop?
HAMMERTIME!
i see
^(?:(?!HAMMERTIME!).)*
after the second word
what have you tried?
17:34
so if i have text like the following:
@hello world and @hello coders and @hello my friends

it should match
@hello word
@hello coders
@hello my
here my several attempts regexr.com/5d5u0
can't seem to stop it, it drags to multiple spaces after the match..
how are you so sure it does?
cause i see the it matching the next word even when i want it to stop after the second word
can you give an example?
posted on October 01, 2020 by Lakshmana Pamarthy

The Dev channel has been updated to 87.0.4278.0 for Windows, Mac and Linux platforms. 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.Lakshmana PamarthyGoogle Chrome 

18:16
how can i make sure that i am matching one or two words only after the @
regex
 
2 hours later…
20:32
So we can import JS and CSS
Can we also expect to be able to import HTML in the future?
Seems like a somewhat logical next step
Yes. It is currently being worked on.
Yay!
Thanks
It's been tried, but a better idea needs to be proposed before it will happen. Although with the prevalence of front end frameworks it may not ever come.
@JBis Yeah, I find the entire existence of Web Components kind of weird.
It doesn't seem likely they will ever get really popular.
 
1 hour later…
21:43
Is there a way to display a non form related error using react-jsonschema-form ? For ex: Form input is valid, but the save operation failed because of a backend issue. showErrorList is generally used for individual form elements errors being displayed I think react-jsonschema-form.readthedocs.io/en/v1.8.1/validation

« first day (3638 days earlier)      last day (1532 days later) »