Questions tagged [runtime]

Runtime is the time during which a program is running (executing)

Filter by
Sorted by
Tagged with
0
votes
1answer
25 views

Can i generate “loop” in run time base on user input?

Hi so I am wondering is there any way to create a certain amount of for loops during runtime base on the user input? So lets say if i want to make a program that can prints out all the combinations ...
0
votes
0answers
13 views

Is this sort considered to be linear runtime in this case?

I need to make an ADT which takes N unsorted integers and contains them in sorted order. As I am required to do so in worst case O(N), I am thinking to use radix sort with bucket sort. So I prepare 10 ...
0
votes
1answer
11 views

Netlogo Behaviorspace How to save data not per tick but based on reporter

I have a netlogo model, for which a run takes about 15 minutes, but goes through a lot of ticks. This is because per tick, not much happens. I want to do quite a few runs in an experiment in ...
0
votes
1answer
19 views

why the time complexity is n*n*n! for the below algorithm printing all the permutation of a string?

I understand the n! because line no 7 has to be executed n! times for the program to print all the permutation of the string. where does the n*n comes from is not it less than n! so should be ignored....
0
votes
1answer
32 views

Check if an exception is a checked exception at runtime

Is this the correct way to check if an exception is a checked exception at runtime? public boolean isChecked(final Throwable e) { return !(RuntimeException.class.isAssignableFrom(e.getClass()) ...
-1
votes
1answer
30 views

Package “fmt” runtime issue

I encounter a problem that seems simple but that I cannot reproduce, and therefore that I cannot explain. This problem occurs in production, what is mysterious is that it occurs very rarely (that's ...
0
votes
0answers
42 views

Generic Configurable Condition checker at Runtime

I'm writing a "generic" achievement system for my MMORPG project, it needs to be friendly & efficient for my game designers (without having to write any kind of code to add new achievements). For ...
0
votes
3answers
29 views

How to launch program in psvm?

How to launch a program in psvm with one command? How does the application know which class to launch first? I know that psvm should only have starting command and nothing more. Could you explain ...
0
votes
0answers
16 views

What is the asymptotic running time of the following pseudo code?

In the following piece of code f() is any function taking time of Θ(1). The time complexity should be Θ(n^(4/3)), can someone explain me why? for(inti=1;i≤n;i=2∗i){ for(int j = 1; j∗j∗j ≤ n; j = ...
0
votes
0answers
35 views

MIPS $ra address is not word-aligned?

I'm working on a project for a university exam which consists in encrypting a message with simple algorithms, and I just don't understand why this part of code doesn't work. I call the encryptE ...
0
votes
1answer
31 views

Dynamic create JTable in runtime

I'm trying to create jtable use users pojo class. User create pojo class, I load it in runtime and create jtable. Help me,please, how can I achieve that? String loadedClass = array.getJSONObject( 0 )...
0
votes
2answers
37 views

UWP app in VS2017 with Asset files set to Build Content - Copy Always are not copied to LocalState folder

When using Visual Studio 2017 to build UWP applications any Asset files that I mark with a Build Action of "Content" and set "Copy Always" for the "Copy to Output directory" property are getting ...
-2
votes
1answer
40 views

Timestamp in C++

I want to know the run time of a program using timestamp to test how long does a certain program or block of code to execute. I don't understand the concept of timestamp, as I keep on reading the ...
0
votes
1answer
19 views

“View Controller A unreachable because it has no entry points” error after adding a new View Controller B and changing it to initial view controller

This error seems common, but I can't seem to find a similar root cause as mine so the solutions aren't working. I initially had single View Controller (VC 1) in my app, embedded in a Navigation ...
0
votes
0answers
100 views
+50

Memory Violation Dynamically Appending to Methods at runtime

Disclaimer: I'm doing this for learning purposes. This is not going to be used in code. I'm trying to understand how method table are structure for generics, I want to dynamically appending to ...
0
votes
0answers
43 views

MPI_Sendrecv Freezing

I'm trying to demonstrate the simplest possible use of MPI_Sendrecv that I can think of, that is to exchange integers between two MPI Processes. However when I run the following code it simply hangs ...
0
votes
0answers
15 views

Check mobile connection with Runtime Unit testing

I am trying to build an unit test for this method public static boolean isOnline(){ final String command = "ping -c 1 google.com"; boolean isConnected = false; try { isConnected =...
0
votes
1answer
49 views

Is there any difference between using direct arithmetic expressions and passing values to a method in runtime?

Is there any difference in runtime? if there is, why is that? int pairSumSequence(int n) { int sum = 0; for (int i = 0; i < n; i++){ sum += pairSum(i, i+1); } return sum; ...
0
votes
0answers
8 views

Problems with Runtime.getRuntime().exe() run in tomcat 7.0.93

I`m trying '.hwp' file to '.xhtml' file using pyhwp I want to know why String cmd = "hwp5html --output="+outputPath+FileName+" "+outputPath+FileName+".hwp"; Process p = null; ...
0
votes
1answer
49 views

ambiguous runtime error causing the program to crash immediately

#include <bits/stdc++.h> using namespace std; int freq[101034]; int main() { int n; cin >> n; set<int> st; for (int i = 0; i < n; i++) { int x; cin >> x; ...
3
votes
2answers
45 views

Improve function run-time

I created a function that gets a data structures and and replaces all its tuples to lists. for example: in_data = ({'name': 'Bob', 'age': 50, 'children': ('Alex', 'Justin', 'Daniel')}, {'...
1
vote
1answer
54 views

What is a runtime-constraint?

I've heard of the term "runtime-constraint" many times. I have been looking for the term "runtime-constraint" in the actual standard ISO/IEC 9899:2018 (C18), but all that I have found is: Source: ...
0
votes
0answers
3 views

Embarcadero Rad Studio - Link with runtime packages - Access violation error

Using Embarcadero Rad Studio XE6, when I unckeck the option "Link with runtime packages" I got "Access Violation"errors. By use, I know this occurs often after certain stage of projects (when I ...
0
votes
0answers
22 views

cfscrape is not running or taking an extremely long time to run and scrape a website

import cfscrape scraper = cfscrape.create_scraper() url = "https://botbroker.io/bots" html = scraper.get(url).content print("it worked") Very simple code, however html = scraper.get(url).content ...
0
votes
0answers
17 views

“Run-time error '58': File Already Exists” - Access Database

I keep getting this error message Run-time Error '58': File Already Exists. The code it highlights as error is: fso.movefile SubmittedFile, LoadedFile. Please see below for full code: Set ...
0
votes
0answers
38 views

Can't write to a cell. Always Run-time error '1004'

Always getting Run-time error '1004' when i try to write to a cell. I wanna write a macro that pick filepaths from a folder and trimming it and after that write it to a cell. Besides i want to check ...
1
vote
2answers
50 views

Google Colab wont connect to local runtime after update

I recently updated jupter_over_ws to version 0.0.7 and now Google Colab refuses to connect my local runtime. I have tried multiple iterations of launching the localhost in chrome, running with --no-...
0
votes
1answer
62 views

Develop an algorithm running time O(nlogn)

Can you give me an hint how to develop an algorithm as this task? Everytime if I am reading something like this I don't know how to develop with using the run time. Thanks! Give an algorithm that ...
0
votes
0answers
82 views

RuntimeError: CUDA error: no kernel image is available for execution on the device

CUDA error with pytorch Installed pytorch with conda and CUDA support The error occurs when I am trying to run a tensor on the cuda gpu torch.rand(10).to(torch.device('cuda')) RuntimeError ...
-1
votes
0answers
16 views

I've Been Everywhere Kattis Problem; Works but gets runtime error

I am trying to submit this solution. I thought that this works and it does but apparently I am doing something wrong. https://open.kattis.com/problems/everywhere package com.kattis.sawndur; import ...
1
vote
2answers
219 views

What is the running time of the algorithm? is it O(sqrt(n)) or O(log(n))?

EDIT: Constraints value Range [2,1000000000] and a<=b def sqrtoccurrence(a: Int, b: Int): Int = { val sqrtA = Math.ceil(Math.sqrt(a)).toInt val sqrtB = Math.floor(Math.sqrt(b))....
0
votes
0answers
38 views

Measure Kernel run time in the device code in CUDA [duplicate]

I wonder if there is a way to measure the runtime of a kernel inside the device code. To be a little more specific, I have a kernel that I run on N blocks each with M threads, like this: My_Kernel<...
0
votes
2answers
54 views

How to optimize a recursive tree traversal?

I recently discussed the following (quite basic) problem with a colleague and would like to know how to optimize it and what runtime the optimized version would have. Problem: You have to return an ...
0
votes
0answers
42 views

Compilation of two files from different compiler one is using other

If I will compile something(x.cpp) with clang++ and generate dynamic link library, let's say x.so files and i will use that .so files in other source(y.cpp) which i am compiling using g++, so do I ...
0
votes
0answers
15 views

Is there a ScriptEngine for .NET Core running on Linux as well?

I'm looking for a script engine that allows me to parse and execute scripts at runtime in my program. Following criteria are mandatory: No need for the SDK, it should run only with the .NET Core ...
0
votes
0answers
38 views

How to get the runtime call stack of an external ASP.Net web application?

So basically running an external web application and listen/monitor its method invocations. Is there a way to do that in .Net? ...Get the runtime call stack of that application? TIA!
2
votes
2answers
58 views

Where should I put ASP.NET Core Runtime binaries?

Some example code I'm playing with informs me that I need ASP.NET Core Runtime 2.1.14. I found it here. I'm on macOS and there is no installer, so I downloaded the "binaries" at the link "x64" under ...
0
votes
1answer
43 views

Symfony 4 - How to use assets in javascript?

in my Symfony 4 project I have a view that allows me to select a value from a drop-down list. I want that each time I select one, there is the image associated with the value that is displayed. Each ...
-1
votes
1answer
120 views

DELPHI - Is there a way to free an object created at runtime without getting 'Access Violation?'

this problem is driving me crazy, i have an edit box in which i write something. On event 'change' of edit box, a ListBox is created and filled by SQL query. It works as a hint box while writing. When ...
1
vote
1answer
18 views

How to get line no. after runing script which relassing lots of lines in putty

First of all i m not very much of Unix guy...I have to get the no of lines processed after running one command which releasing 1000+ lines in putty screen. Once the command execution is completed, it ...
0
votes
3answers
27 views

Confused about the definition of node.js

I am new to web development and networks, I was wondering if someone can help me clear some definitions up. According to a definition given by my professor: "Node.js is a runtime which provides ...
0
votes
2answers
108 views

ACE OLEDB Connection to Access Runtime 2016

I have a working code that integrates with Access runtime 2013 (32bit) (reading an Excel file). I removed the 2013 version, and installed the Access runtime 2016 version instead. This is the ...
1
vote
1answer
31 views

Java Runtime.exec escaped arguments in string

Due to working through a framework, I only have control over the command string of Runtime.getRuntime().exec(string), so no array. Problem is, I need to pass some escaped arguments and it just doesn'...
1
vote
2answers
50 views

How to make an interface a compile-only dependency when loading its implementation dynamically

Consider the following interface // src/MyInterface.java interface MyInterface { public void quack(); } which is used in the following application dynamically; i.e. its implementation is loaded ...
0
votes
0answers
26 views

How to use WKExtendedRuntimeSession() for background task in watchkit?

I am following Apple's article https://developer.apple.com/documentation/watchkit/using_extended_runtime_sessions, using "Physical therapy" session, but my task pauses each time the watch face turns ...
0
votes
1answer
114 views

docker: Error response from daemon: OCI runtime create failed: unable to retrieve OCI runtime error

my docker starts giving error after a recent update. Existing containers works but I can not build or run any image. A simple docker run hello-world gives me an error: docker: Error response ...
-1
votes
0answers
23 views

Hi, Im trying to make a Userform with dependent combo boxes on the runtime, but I have not figured it out how to reference the second to the first:

Private Sub UserForm_Initialize() Set ComboA = UserForm1.Controls.Add("Forms.ComboBox.1", ComboA) With ComboA .AddItem "1" .AddItem "2" End With Set ComboB = ...
1
vote
1answer
18 views

How containers run on an AWS EC2 virtualization exactly?

As they say, containers do not run on the Hypervisor layer so what happens when we run Container on an AWS EC2 instance? Since EC2 itself is running on a hypervisor layer managed by AWS. Can someone ...
1
vote
1answer
27 views

Does lua perform “require” during compile time?

When "require" is called in Lua, is the file simply copied into the current file (similar to include "*.h" in C) or is it done by the VM during runtime?
0
votes
0answers
26 views

Lua - Can you run code at runtime independently from the rest of the program?

I'm new to stackoverflow and I'd like to ask a question regarding the use of dofile()/dostring() in lua. Basically, what I'd like to do is run a piece of code using either dofile() or dostring(), ...