7,851 questions
-1
votes
1
answer
95
views
How to give root access to Java Runtime Process? [closed]
I am trying to run a bash command through Java.Runtime.exec(), specifically coredumpctl.
I am only able to run the command on a bash terminal when I login as a root user, and this doesn't seem to be ...
0
votes
0
answers
27
views
Large variation in spark runtimes
Long story short, my team was hired to take on some legacy code and it was running around 5ish hours. We began making some minor changes that shouldn't have affected the runtimes in any significant ...
1
vote
2
answers
154
views
Different handling of signed value between MSVC and GCC
Take the below piece of code, that simply Trims a string, removing whitespace characters from either end:
const std::string TrimString(const std::string& s)
{
const auto iter = std::find_if(s....
0
votes
0
answers
65
views
Rider program arguments does not include \r and \n
I moved development of a project from Visual Studio to Rider. When I was working in Visual Studio, when pasting my input within the launch arguments, these would retain formatting. This was important ...
0
votes
2
answers
49
views
With g++, how can I have class member symbols evaluated at runtime instead of link time?
I have a library from a vendor, for non-technical reasons this library needs to be treated as immutable. This library is used as a relatively small portion of a very large software project, but the ...
2
votes
1
answer
49
views
How to get a runtime list into a PropertyGrid?
Assembly A:
public class Data
{
public string Text {get; set;}
}
Inside Assembly B ( references A):
List<string> stringList = GetSomeStringsAtRunTime();
Data obj = new Data();
propertyGrid....
3
votes
1
answer
99
views
What does "single run-time representation" mean in Bjarne Stroustrup's description of type erasure in "The C++ Programming Language"?
In The C++ Programming Language - 4th edition, in §25.3 at page 731-732 Bjarne Stroustrup shows a possible implementation of a Vector template class that's been specialized for all T* template ...
1
vote
0
answers
46
views
Sorting sync and non-sync at runtime
I'm working on an ECS system that automatically multithreads systems (similar to bevvy). However sometimes third party libraries don't play nice with multithreading. Bevvy's answer is resources, but ...
0
votes
1
answer
1k
views
asyncio.run() cannot be called from a running event loop
I have looked at previous answers and none of them seem to solve my issue. I am running the below code
from pyracing.client import Client
import asyncio
username = 'My Email Address'
password = 'My ...
0
votes
1
answer
137
views
User Control with binding showing in Designer but not in runtime
I have a main Window that opens a second Window. In this second Window I have many custom UserControls generated in runtime that work just fine. But a group of custom UserControls are declared in the ...
0
votes
0
answers
62
views
Trying to add new Type to Dotnet Runtime from github
Hi I'm trying to modify the .NET runtime from github.com/dotnet/runtime.
I downloaded the release from that github repository website.
Then, you extract the files to C:\rt. Then run .\build.cmd -s clr+...
1
vote
0
answers
121
views
SQL Server Python Runtime Issue
I've successfully installed Python on SQL Server and was able to run simple Python scripts through SSMS without any issues. However, after importing additional libraries (such as matplotlib, etc.), I ...
0
votes
1
answer
74
views
Problems to parallel or thread an Actix_web Server
I wish to resolve the following code, but Rust panics because the actix future server() does not implement the trait Send. I didn't find a way to paralelize the actix server whithout error.
use tokio::...
1
vote
1
answer
185
views
In Angular, is there a way to switch environments while using runtime configuration and developing locally
This question is just about developing with Angular in my local development.
Currently, we're using build-time configuration. When developing locally on my laptop, if I need to point to any other ...
1
vote
1
answer
212
views
Antibot solver blackbox testing fails after 200 runs
My team has designed an antibot for a project and now I am testing its vulnerabilities. I have created a antibot solver bypass using some python and javascript. I am running into a super weird run ...
1
vote
0
answers
17
views
VARMA runtime issues: fixed window rolling forecasting
I'm currently exploring a couple of statistical forecasting methods. My problem rose when using VARMA(2,1) fixed window rolling forecast. The example code that I'm using is the following:
Here I only ...
2
votes
1
answer
150
views
When are the dynamic/static libraries linked on compile, link, load or run time?
I found this question about the difference between .a and .so files
First Linking the dynamic libraries:
One answer says:
The advantage of .so (shared object) over .a library is that they are linked ...
0
votes
1
answer
109
views
How do I check to see if names from one file exist in another file?
Here is my code to see if names from modified_sn exist in modified_assigned_to_path (when I hit run, nothing happens, and I don't get any errors either. What am I doing wrong? Thanks in advance):
...
0
votes
1
answer
189
views
Java Process.waitFor() does not wait
I am following a book on Java 'Java: The Complete Reference, 11th Edition" which has the following code
class ExecDemoFini {
public static void main(String args[]) {
Runtime r = ...
0
votes
1
answer
109
views
How to speed up code for Leetcode 2290 "minimum obstacle removal to reach corner"
i am solving some leet code solutions.
But with this hard question, i am not sure how to speed up my algorithm more.
https://leetcode.com/problems/minimum-obstacle-removal-to-reach-corner/submissions/...
0
votes
1
answer
146
views
Jetpack Compose: Build UI dynamically based on runtime data
I'm working on an Android app using Jetpack Compose where users can customize their own screen layouts to create a native-feeling UI. The layout structure is completely dynamic — at runtime, based on ...
0
votes
1
answer
142
views
How do I resolve possible runtime error/loop that doesn't respond to input after being booted up?
I've developed a C program on Turbo C++; however, it glitches out once the program begins. I think it's most likely a runtime error, but I'm not entirely sure nor do I know how to resolve the issue.
...
0
votes
0
answers
46
views
Run Time of 2 for loops with Gradient calculation
I am trying to run the following code:
for ie in range(100):
energy = torch.tensor([.1 + .1 * ie], dtype = torch.float32, requires_grad = True)
xe = .5 + 20 * (torch.log(energy) - log_01) / (...
0
votes
1
answer
105
views
Runtime/getprop vs getProperty()
I have a weird issue with reading a property on Android R. While it works when I use the Runtime() exec call, it fails with a simple getProperty() method. Any ideas what could be wrong?
Runtime....
0
votes
0
answers
46
views
Access Runtime 2013: Security Warning on One PC Despite Identical Trusted Location Registry Settings
I am using Microsoft Access Runtime 2013 on two PCs, and I’ve set up trusted locations via the registry on both. On one PC, Access works as expected without any security warnings, but on the other PC, ...
1
vote
0
answers
72
views
How to overcome slow down seen in numpy.dot of larger input sizes during convolution?
I noticed a strange phenomenon while benchmarking the performances of my conv2d functions that were created with NumPy. As the input size increases, there could be a input size threshold that would ...
0
votes
0
answers
66
views
Stack Overflow Exception in .NET System.Private.CoreLib.DLL
I have an ASP.NET Core 9 application running as a service. After the latest upgrades of nuget packages, the application crashes periodically with a StackOverflow exception:
I tried to reproduce it, ...
0
votes
0
answers
83
views
How can we save data on runtime in Adapter Class?
I am facing some issues in saving data on my runtime(temporary saving) in my adapter class of my bottomsheet for an invoice acknowledgement.
Here is one photo explaining all the flow :
Also I have ...
0
votes
0
answers
168
views
Access VBA Runtime Error 3052 File Sharing Lock Count Exceeded Revisited
Question revised.
Goal: Import data contained in a tab delimited flat-file database .txt file
Process: Open a .txt data file, retrieve the data into a collection, then close the file. If the table ...
2
votes
1
answer
68
views
Mathf.Clamp() does not adequately restrict mouselook Y-axis camera rotation at high sensitivities/input values. How can I account for this context?
I am trying to write a method, MouseLookFirstPerson(), to control camera orientation with mouse axis input. From what I can gather, the most common basic way of preventing the camera from inverting ...
-2
votes
1
answer
114
views
Replace function with another one at runtime C++
I'm working in a card game. where I want the cards to have generic upgrades that could be applied to any card.
My cards have a Play() function, and I would want upgrades like
Whenever you play it ...
0
votes
0
answers
30
views
How can I replace VC2010 default runtime calloc with my own implementation of calloc?
I am trying to replace VC2010 default runtime calloc with my own implementation of calloc
I tried this code but my program still uses the default VC2010 calloc
void* calloc(size_t num, size_t size) {
/...
0
votes
0
answers
59
views
Visual Studio (Developer) and Crystal Reports Runtime v.4 not generating report class file C#
I am experiencing an issue with VS2019 and Crystal Reports 2020 while running Runtime Version:4.0.30319.42000.
We currently have to open VS2015 to add the newly created Crystal Report in order for the ...
3
votes
2
answers
103
views
Is there an algorithm for shuffling objects in an array randomly WITHOUT utilizing Lists and Collections
I want to shuffle an array of Objects in a card game simulation.
I scrolled through many posts on here and almost all of them mention transforming the array into a list, then shuffling it using an ...
0
votes
1
answer
65
views
Can you know the stack size of a program during compile time?
I have a statement in mind that I cant seem to verify that its a true statement or not. That statement is:
If there is a standalone program written in a compiled language, say C, which does no memory ...
9
votes
2
answers
587
views
Are there any differences between Checked and Unchecked Exceptions at Runtime?
Checked Exceptions are powerful because they allow you to force the use-site to deal with an exceptional case. If the use-site does not handle an exceptional case (or publically announce that they are ...
1
vote
0
answers
169
views
Could you please explain prometheus go runtime memory metric go_memstats_buck_hash_sys_bytes?
We track go runtime memory consumption using prometheus and grafana. Recently we found that go_memstats_buck_hash_sys_bytes metric constantly increases. It is a gauge so we expected it would increase ...
-2
votes
4
answers
96
views
How to downcast back a non-generic base-class object to a generic derived-class object at runtime (generic type unknown at compile time) [closed]
I have two classes: a non-generic base class Node and a generic derived class Node<T>. The nodes build a chained list, each node containing eventually a different data type.
public class ...
0
votes
0
answers
54
views
How can I create multiple webview2 browsers with different proxies in one app?
I'm trying to create a c# windows form that has a simple task which is to display two separate browsers each one has its own server proxy, but no matter what I do I get this error:
"System....
0
votes
0
answers
38
views
Profile selected functions in Python
I can profile and visualize my entire application with:
python -m cProfile -o program.prof my_program.py
snakeviz program.prof
Is it possible to write a decorator that will profile only some ...
0
votes
1
answer
525
views
Loading external Native Libraries to the JVM at Runtime in Java 21
I want to load an external library (eg:\Lic\64bit) which contains some DLL files inside it to JVM at runtime. Can't use Reflection and FFM (Java Foreign Function Memory API) as well.
I tried with some ...
1
vote
0
answers
106
views
Fast(est) method to iterate through pairs of indices in Python, using numpy
I'm constructing a graph with ~10000 nodes, each node having metadata that determine which other nodes it will be connected to, using an edge.
Since the number of edge possibilities (~50M) is far ...
0
votes
0
answers
28
views
Why ios::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); causing Runtime error(SIGSEGV)
I was solving the Substring problem using KMP Algorithm (Problem link).
After getting runtime error (SIG_SEGV) several times, I just removed the following part:
ios::sync_with_stdio(false);
cin.tie(...
0
votes
0
answers
42
views
How to apply visualization for each node in OMNet++? Is Visualization in INET applied at Network Level?
I have created a network of nodes in OMNet++. I have defined in Network.ned:
visualizer: <default(firstAvailableOrEmpty("IntegratedCanvasVisualizer"))> like IIntegratedVisualizer if ...
0
votes
0
answers
18
views
np.exp Overflow for small negative arguments
I am solving the following problem: solving an advection-diffusion equation through the analytical solution. The standard problems work well, however when I compute the time integral for big ...
1
vote
1
answer
106
views
Unable to import module 'index': No module named 'pydantic_core._pydantic_core
I'm using amplify to push my lambda. When I run it locally via amplify mock function {functionName} it runs and behaves as expected. When I deploy using amplify push it successfully deploys. However ...
2
votes
1
answer
133
views
Interop with nethost.dll fails, not sure why
I am trying to interop with nethost.dll but it keeps returning a non-zero integer which indicates failure. I am not very familiar with native interop in C# so I am having a hard time diagnosing the ...
-1
votes
1
answer
177
views
Executing of compiled cs file with csc command fails with error "Could not load file or assembly System.Runtime or one of its dependencies"
I have to make a WPF apllication which adding a task to Task scheduler. So I decided to write a program which compiling cs file and add its exe to Task scheduler (I tried Microsoft.CodeAnalysis.CSharp....
1
vote
1
answer
166
views
Is it possible to run programs without any non-executable segment protection in modern Linux Kernels?
I'm dabbling in Cyber Security, particularly the topic of buffer overflows. To this end, I'm considering an example in which a buffer overflow allows an attacker to execute arbitrary code from within ...
0
votes
2
answers
202
views
When is virtual dispatch faster than function templates in C++ runtime?
Most knows that template meta programming is in general faster than virtual dispatch in C++ due to types of templates were decided in compile time while virtual functions required runtime lookup on ...