Questions tagged [on-the-fly]

activities that happens or occur dynamically on the program runtime.

186 questions
35
votes
2 answers

Separating vuex stores for dynamically created components

This was the question got me stuck for a little bit. Unfortunately, I coudn't find answer here (asking also didn't help). So after doing some research and asking here and there, it seems that I got the solution to this issue. If you have a…
ogostos
  • 1,245
  • 2
  • 14
  • 28
34
votes
5 answers

Operator as and generic classes

I'm writing .NET On-the-Fly compiler for CLR scripting and want execution method make generic acceptable: object Execute() { return type.InvokeMember(..); } T Execute() { return Execute() as T; /* doesn't work: The type parameter 'T'…
abatishchev
  • 92,232
  • 78
  • 284
  • 421
17
votes
11 answers

Defining a class while a Java application is running

In Java, is it possible to create a class definition on the fly while an application is running, and then create an object of that class? For example, a running application would read in a text file that contains a list of class members to include…
Lehane
  • 42,680
  • 14
  • 46
  • 53
10
votes
2 answers

modify a running python program

I launched a python program with many nested loops, and the program will take days. I just realized that one of the loops values is wrong and makes a infinite loop. I don't want to restart the program from zero, is there a way to interrupt the…
user1479498
  • 113
  • 8
9
votes
2 answers

Creating subdomains on the fly

When one signs up for Blogger or WordPress, one gets their very own sub-domain that works instantly. How can I achieve the same, given that I have my own VPS/VDS/Dedicated server?
Viet
  • 16,604
  • 31
  • 94
  • 134
8
votes
3 answers

Zip on-the-fly compression library in C for streaming

Is there a library for creating zip files (the zip file format not gzip or any other compression format) on-the-fly (so I can start sending the file while it is compressing) for very large files (4 Gb and above). The compression ratio does not…
Daniel O
  • 4,503
  • 5
  • 41
  • 51
8
votes
3 answers

Reduce list on the fly in Haskell

Assume I have a function f which accepts some input and produce a number. Within the function f, a list is created according the input, which is then reduced (e.g. using foldl' g) to produce the final output number. Because the intermediate list is…
Causality
  • 1,043
  • 1
  • 16
  • 27
7
votes
5 answers

How do I transparently compress/decompress a file as a program writes to/reads from it?

I have a program that reads and writes very large text files. However, because of the format of these files (they are ASCII representations of what should have been binary data), these files are actually very easily compressed. For example, some…
A. Rex
  • 30,789
  • 21
  • 85
  • 95
6
votes
1 answer

Online logistic regression model

I have seen wolfram and other few websites which claim that every time we use object detection application and label it with the correct object the image represents, their algorithm uses the data to update their object detection model. I am working…
6
votes
2 answers

C function and struct on the fly

I would to know if t's possible in to initialise struct on the fly for function call like in c++ : struct point { int x; int y; }; some_function(new point(x,y)); Thx :)
Corrosif
  • 87
  • 6
6
votes
1 answer

Carrierwave on the fly resize

I'm using carrierwave and I have this problem: Suppose once the project has been delivered you need to add a section where the images in the system need to be displayed with a different size. I don' t want to regenerate the new dimension for each…
5
votes
2 answers

Java - let user write own code, then compile it, then use it within same runtime

I need to perform following steps: Let user write own code - no problem, it's just one interface to implement and I save a file Compile it - no problem, I used ToolProvider.getSystemJavaCompiler() and created .class file Let user use this new code…
Xorty
  • 16,617
  • 21
  • 99
  • 150
5
votes
1 answer

How to build Twisted servers which are able to do hot code swap in Python?

I've developed a set of audio streaming server, all of them are using Twisted, and they are in Python, of course. They work, but a problem keeps troubling me, when I found some bugs there in the running server, or I want add something into the…
Fang-Pen Lin
  • 10,892
  • 13
  • 59
  • 90
5
votes
0 answers

How can I generate training data on the fly in TensorFlow?

I want to create the Moving MNIST training set in TensorFlow. I've been thinking about creating a subclass of tf.ReaderBase and emitting tf.Example training sequences in tf.ReaderBase.read or using tf.QueueBase, but I am not sure whether this is the…
Lili
  • 71
  • 2
5
votes
1 answer

php create file and send as attachment without actually creating the file

I know how to read a file on the server and attach it to an email in PHP, but I wanted to know if I could attach a file that is created by my script but not created on the server (kinda like a temp file). So create file in memory and attach it to…
Phill Pafford
  • 77,927
  • 86
  • 256
  • 378
1
2 3
12 13