are builds traditionally done on production server, or are they built somewhere and then pushed out to production servers? If the latter, where are they built?
CD means that when you push to e.g. Master, it runs CI and then it deploys it to prod
it's very common
though you rarely see anyone do it 'perfectly'
a perfect CI/CD system requires zero human intervention on the build server, you just push your code to a staging branch and your test environment spins up, and then you merge to master and it's in prod
if you look up ci/cd you'll definitely find a boatload of resources about it
It's a lot easier to make it work that way when you're on a small project, but when you're in more of a corporate structure, people tend to do things more manually
@JBis (when you get back) - the person responsible for CI/CD can be developers or somebody outside the developers team. I find it depends on the size of the company. You might even have cross-team caring for this. At my old place we were a fairly small company - 150 people worldwide and 40 devs that were in one office. We had a "devops" team that was composed of people from the various teams to do with development - QA, web, services,
My current place is a much bigger company overall but the size of the devs I'm with is smaller - 20 in total split between two offices. We are fairly autonomous and we've set up the CI/CD ourselves again.
But there is a bit more reliance on other non-dev teams, mostly IT and some people responsible for licenses and stuff to provision an Azure DevOps instance (Microsoft's attempt at being JIRA+Jenkins) and some machines where we build/deploy stuff. So, software setup is up to devs, but where and what we set up we don't directly control.
Then on the other extreme, I know there are places where the devs just create the software and never really interact with anything else in the pipeline. A completely separate devops team takes care of all build/deployment and a dev might never even need to know what and how it's done.
I literally just comment out the function line and don't change the other two, so same in both cases
iit seems instant on the page but if it's not that might explain it
hmm I just tried with the timeout function on it's own pre the two addclass lines and it still doesnt work, which indicates it's not the delay that makes it work
if I console.log($('#some_id')) before the setTimeout the objects are empty, in side the setTimeout they have values as expected. seems it's the delay that makes it work
and using $(function() {} makes it work. Obviously DOM wasn't ready (new to JS still)
hello, I have a html page and the data come from ajax, I want to set a button when I click the button I want to convert pdf the full html and I have tried jspdf but I feel some issue for example, it's not accept css and not ajax please give me good solution how can use like jspdf library to make html to pdf convert when click the button
@jeea others might be able to give more "scientific" answers. But at my job, we still use ColdFusion. Banks still use COBOL. New tech doesn't make old tech obsolete, plus learning node will help elsewhere
@jeea deno is supposed to be the inheritor of node. I don't know if that would happen but it's the plan. So, I believe that knowledge from one to the other should be transferrable. Again, that's the intention. After all de|no is an anagram of no|de - it's supposed to be the same.
@ilsloaoycd 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.
I have a pretty simple handler: $(“body”).on(“click”, “[ng-controller]”, function(event) { return false; }); when this runs, if I click on a button, it stops the dropdown event handler from running, so the dropdown doesn’t show.
Unless you have a VPS or dedicated server with Bluehost then you will not be able to install it. This requires root access and they will not likely install it on a shared hosting platform.
If you do have a vps/dedi then this like should show you how to set it up, but its not supported by cpanel...
The one I have a code sample for above gets hit again and again because there are nested ng-controllers. If I return false from the handler to stop that, I end up messing with other elements’ events. In this example, if I click on a button, the ng-controller handlers run, which return false, which then prevents the button’s handler from running and showing a dropdown menu
> There are now no remaining issues, so this test has met its goal. Since the existing issue has been resolved, it is removed from the snapshot in the .betterer.results file!
Any way to keep it there? Lets say we hire a new developer and we want to make sure their code doesn't use momentjs, how would i do that?
@phenomnomnominal "That will give you a branch new .betterer.ts config file" -> branch or brand? "The first time we run the test with Betterer runs" runs x2?
Also, looks like there's 3 gifs between "Watch mode" and the end of the article that aren't loading for me, maybe just a preview issue
Access to fetch at 'https://angular.io/ngsw.json?ngsw-cache-bust=0.505385215338763&_sm_byp=iVV4bKb5ZKJR1nGP' (redirected from 'https://angular.io/ngsw.json?ngsw-cache-bust=0.505385215338763') from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
@JahirulIslam 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.
@phenomnomnominal let me see if I understand your project correctly - it's kind of like a repo-wide regression test to try and avoid mistakes from the past.
The idea is that clicked() will be called from View. But between clicked() being called, hello may get changed and I want the latest value in changingValue
I think the way I've organized my Components and Services are not suitable for it.
I'd have to describe the scenario to explain it
Let me give it a try.
I have one Component (Angular 9) that's communicating with the view. I have a DataService which makes API calls. I store the API call results in Component variables on NgOnInit. There is also a GridService which simply provides me with DataGrid (agGrid) configurations on NgOnInit. Now, in the Grid, some rows require dynamic data which I have to fetch using DataService. But the problem is I have to specify this data during grid configuration
So, basically, the grid needs some data during initialization that I have to fetch via API calls
Currently, I am solving this by providing a getter function during grid initilization
Ya I tried to indent that directory but couldn't. The two test files are under the src directory. The hello.txt is under the addon directory and the favicon.ico is under the assets directory.
But the problem is that the glob pattern only matches nested directories that do not match addon.
When it should include everything except the addon directory.
Hi everyone! We've just released Chrome Beta 83 (83.0.4103.56) 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. Ben Mason Google Chrome
If you have an MVC site or some other framework where the HTML pages are generated from a template, and your js files require data that the backend would be inserted into the template (like say, URLs for your fetch calls) is the best way to insert that data into a js object in the page before the script tag for your js file so your javascript can pull it from that object? Or is there a better way?
i've seen people use meta tags for that. They put the data in a meta tag and then js can pull from it. You could also do an ajax script to fill the data you need.
In this project that I've inherited, all the javascript is in written directly into the html page. This makes it extremely difficult to debug. I'm moving it to its own js file, but the ajax calls have @Url.Action() calls written directly into the url property (I'm assuming that's why they had the js in the cshtml file to begin with)
@JBis I've made a tokenizer, not a lexer. Not quite the same I guess but I know a very tiny bit of the theory, at least. Not sure if I can help, but I'll try
Well, you've built your AST already - the trouble with writing an interpreter is reading the input -> tokenizing -> transforming to a consumable structure (AST is one option) -> then using it
The Stable channel is being updated to 81.0.4044.141 (Platform version: 12871.102.0)) for most Chrome OS devices. This build contains a number of bug fixes and security updates. Systems will be receiving updates over the next several days. If you find new issues, please let us know by visiting our forum or filing a bug. Interested in switching channels? Find…
You'd read your tree and transform each thing into operations, so the <+> tag you'll have some handler that's like function plus(a, b) { return a + b } and you feed it those x and y tags
so you can just generalise to op = operatorsMap[currentOperator]; op(left, right)
You might need to also implement operators that take different number of operands. So, it's not AS simple as a single map but it's generally a similar approach.
You'd need to mark which operator takes in how many operands and maybe even differentiate between two versions of the same thing.
Let me dig up an article on this, it was pretty helpful.
here is a good one. That's a full parser, so it goes through tokenization + AST/RPL building but you're interested in the consumption steps later on.
By the way, just to throw this out there - you can use existing lexers. Stuff like lex can read arbitrary input and you can then just directly use what it produces.
think about it this (very simplified) way: the higher level the lexer, the less flexible it's all gonna be, but the easier it's gonna be to write the parser
the lexer shouldn't produce a tree, it should produce a stream
@JBis I'm sorry. The article I gave you last time is the wrong one. this is the one I was thinking of. It has much better details. Also have a look at this - it's for C but I think it should be readable.
Also, if you want to go really deep, there is the classic book Compilers: Principles, Techniques, and Tools nicknamed "the dragon book". I know of it and it's supposed to be the resource on anything for creating programming languages.
@BartekBanachewicz hey, you've been very informative. I want to say thanks, as well. I have very little knowledge on the subject, so you were enlightening :)