I have come across a strange issue: I have a web application that runs on a Tomcat and makes a web service call using Axis for some tasks. As part of the configuration, a JKS file is provided for the trustStore parameter. After an upgrade to Axis, it can no longer find the certificate and refuses to work. However, running the same code in a standalone Java app has no issues. Any guesses what could be the issue here?
Is there any way to have webpack resolve /root/img/a.png as ./src/img/a.png? The web server uses a context root called “/root” and the paths are automatically resolved at runtime, but webpack keeps throwing a “can’t resolve file” error when trying to compile
I have an AngularJS application where on the click of a button, I open a modal and show some data. That data is loaded through the modal’s controller and if there is too much data, then the entire modal freezes until it’s done processing that data. Is there any way for me to force Angular to show the modal with a spinner and then populate the data table at a later time?
Yup, but there must be a way to run them asynchronously or concurrently, right? Essentially, every one else shouldn’t get queued up if one handler takes a long time. I was thinking of calling Promise.all([list of functions]), but I don’t understand if that will be concurrent as such, especially if the functions themselves have not been marked as async
I have a single mutation observer and a wrapper on top of it. The idea is that everyone “registers” their handler with the wrapper and those handlers get called when the mutation observer runs. I’m trying to make these handler functions run in a non-blocking parallel way, so a poorly-designed handler does bring down the application
Is there any way to speed up queryselector? Server sends a list of selectors that need an HTML attribute, so I simply do queryselectorall and pass the server provided selectors in a comma separated string. All matches get the attribute added on them. But as the list of selectors is going up, queryselector is becoming slower. The query selector may also be executed multiple times inside a mutation observer. Is there anything I can do to make the selector be quicker?
Is there any event that runs when the first script is evaluated on the page? In Chrome, you can set a breakpoint on "Script First Statement" but is there any such event that you can catch and do something?
If I just insert my script after the iframe has loaded, then it misses all the events that were registered when the page loaded but before the script was inserted
Is it possible to run a script in a same-origin iframe before its content loads? I have a custom implementation of addEventListener that allows me to keep track of events that are being registered. I would like this implementation to take effect in all iframes on the page as well. They are all same origin, but I can’t go into the files and change the code. Anyway to automatically insert my JS into those frames?
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
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.
If I have a three line value stored where each line is terminated by a new line character, is there anyway for me to conditionally replace just the second line?
This might not be the best place for it, but since it’s somewhat connected to Python, has anyone here worked on NLP in the context of application testing?
Is there anyway, once I insert some content into a sql database, to get a list of what changes were performed (i.e. columns that were updated and what values were they set to)?
I Understand that when you do a git commit, it stores a tree along with the commit author and message. But is this tree a copy of the entire folder structure?