Java

Dedicated to the discussion of the Java programming language a...
Jan 25, 2023 18:32
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?
Dec 8, 2019 02:27
Anyone here use Spring Boot?
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Dec 13, 2022 17:24
Anyone know why the transition effect doesn’t run when you press the right two buttons? jsfiddle.net/wz3rg982 Press Show then Checkmark
Jul 28, 2022 15:05
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
Aug 8, 2021 21:29
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?
Apr 8, 2021 22:29
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
Apr 8, 2021 22:22
Any ideas?
Apr 8, 2021 22:20
I was going to loop over all handlers and call each one using a setTimeout, but I don’t think that would improve anything
Apr 8, 2021 22:19
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
Apr 8, 2021 22:08
Is it a good idea to execute a bunch of functions asynchronously using Promise.all?
Apr 6, 2021 21:13
Is there any workaround for autocomplete=“off” now that Chrome doesn’t respect the “off” value?
Jan 21, 2021 18:36
Requirement to tag specific elements in the application centrally...
Jan 21, 2021 18:32
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?
Dec 25, 2020 23:27
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?
Dec 23, 2020 17:58
@JBis not my code, but I do need to figure out how I can insert this script into that frame so it loads before anything else
Dec 23, 2020 17:32
Does anyone have an idea if this can be achieved?
Dec 23, 2020 17:05
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
Dec 23, 2020 17:03
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?
Dec 22, 2020 03:24
Is there any way to catch all variable assignments in JS? I’m trying to see if I can make every setter go through an interceptor
Jun 22, 2020 00:03
Are there any good libraries out there that allow you to draw a sql ER diagram? I couldn’t find a single good in D3, Canvas or anything else
May 14, 2020 16:11
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
May 14, 2020 16:07
I’m trying to get this handler to run only once, but without breaking other event handlers
May 14, 2020 16:06
If I don’t return false, then every single no-controller gets hit, which causes other issues
May 14, 2020 16:05
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.
May 14, 2020 15:56
If I return false from inside the handler, then it cancels all events after it
May 14, 2020 15:55
How can I prevent a jQuery “on” handler from bubbling up without disrupting other handlers?
Dec 9, 2019 23:29
What’s wrong with AngularJS?
Dec 9, 2019 22:45
Anyone here experienced with $LocationChangeStart in AngularJS?
Dec 9, 2019 04:54
In AngularJS, does "locationChangeStart" trigger when window.location is used to change the URL?
Dec 7, 2019 00:31
Anyone tried integrating npm package management with a java web app?
 

SQL

Got a SQL question? Any SQL flavor here, just ask. Indicate yo...
Feb 11, 2022 16:52
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?
 

Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
Mar 12, 2021 18:17
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?
Mar 16, 2020 03:52
Does the Python driver offer anything like this?
Mar 16, 2020 03:51
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)?
 

C++ Questions and Answers

Solve problems and approach solutions. Just ask and lurkers wi...
Jun 5, 2020 19:25
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?
Feb 14, 2020 19:34
How can I get the actual reference in order to do the above?
Feb 14, 2020 19:34
However, if I change a struct member using saved->name = ..., it changes the value for that variable only, not info->values[i].code.name
Feb 14, 2020 19:33
Instead of typing out info->values[i].code a hundred times, I’d just like to type saved->...
Feb 14, 2020 19:32
I did Code *saved = &info->values[i].code;
Feb 14, 2020 19:31
I have a struct called “Code” and I’m trying to store a reference to it so I don’t have to spell out its full path, but can’t seem to do so.
Nov 24, 2019 17:19
Is this supposed to be a class implementation where when you call "default_descriptor" and pass it i, it will assign it to item?
Nov 24, 2019 17:18
What does the part after the colon do?
Nov 24, 2019 17:18
typedef struct a {
    default_t item;
    default_descriptor(default_t i) :
        item(i)
    {}
} a_t;
Nov 23, 2019 17:55
Is .cc just .cpp with a different extension? Can't find a single SO thread that actually tells me if .cc is different than .cpp in terms of the code
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
May 9, 2020 03:36
Is there any way to update a table and return the old values in mysql?
Mar 17, 2020 02:46
If I have a conditional SQL query with an if condition, is it possible to log which query actually ran?
Mar 16, 2020 19:24
prepared statement on an insert query
Mar 16, 2020 19:22
Is a SQL query parsed on the client (PHP) side or the server?
Mar 12, 2020 14:00
@Sjon Anything like this in mysql?
Mar 12, 2020 13:58
Is there a way to return a list of rows and columns that were affected after executing an insert/update query?