7,852 questions
0
votes
0
answers
15
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 ...
0
votes
0
answers
60
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 ...
2
votes
1
answer
48
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....
1
vote
0
answers
45
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
127
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 ...
1
vote
0
answers
118
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 ...
1
vote
1
answer
173
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
0
answers
14
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 ...
0
votes
1
answer
107
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
101
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
133
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
1
answer
95
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....
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
79
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 ...
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 ...
0
votes
0
answers
26
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) {
/...
3
votes
2
answers
99
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 ...
9
votes
2
answers
581
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 ...
-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
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 ...
1
vote
0
answers
99
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
38
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 ...
1
vote
1
answer
98
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 ...
-1
votes
1
answer
160
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....
0
votes
2
answers
190
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 ...