Questions tagged [on-the-fly]

activities that happens or occur dynamically on the program runtime.

186 questions
2
votes
2 answers

ActionScript 3 - compose function dynamically

I'm looking the AS3 equivalent of the following JavaScript code: var funcName = "foo();" var fHandler = new Function("a",funcName + "return a + 1"); fHandler // now equals a function like function(a){ foo(); return a + 1 } Ok, it's a very…
Radagast the Brown
  • 3,156
  • 3
  • 27
  • 40
2
votes
1 answer

how can I generate a lexer and parser on the fly (at runtime)?

I did find an answer to my question: Barts answer is exactly why I need, but it does not function (see below). Please can some one either give me a working example or show me the where I am going wrong to implement Barts answer? This is what I get…
xchiltonx
  • 1,946
  • 3
  • 20
  • 18
1
vote
2 answers

how should I handle an event for an element that has not yet been loaded when the page is loaded

I'm kind of a noob in jquery, so i'm sorry if the question is a little obvious. I wondered how should I handle an element which is created using the .html() jquery method, so there is no way to handle it after $(document).ready. Is there anyway to…
1
vote
2 answers

PHP on the fly ZIP downloads as blank

It seems I successfully create an on-the-fly zip archive (filesize and file_exists both return the expected values) but when I attempt to actually download it, I receive an empty ZIP file. Curiously enough this error occurs with both readfile and…
1
vote
1 answer

How to stamp a file before download with IIS

My IIS ASP.NET-based website allows users to download a file. I'm trying to figure out a good way to stamp an ID into the file before/as the user downloads it so each user could potentially have a uniquely stamped file. Finding the offset and…
DougN
  • 4,407
  • 11
  • 56
  • 81
1
vote
1 answer

Dojo vs JQuery programmatic widget creation

I recently experimented with Dojo and figured that given a single dom node in the markup, I can construct the whole UI tree in an object oriented manner i.e., programmatically and not having to worry about escaping ids and making code like data. My…
foobarometer
  • 751
  • 1
  • 9
  • 20
1
vote
0 answers

creation of dynamic/on the fly expression in MATLAB

I want to create a mathematical expression like this in MATLAB. It has a certain pattern as given below and number of terms in the expression depends on my input 'i' given input i=2, matrix T and constant 'c' then some matrix variable T_dot is given…
1
vote
2 answers

How can I extend the IntelliJ IDEA CE code evaluation feature?

I'm using IntelliJ IDEA Community Edition 10 to develop a Java SE project. My app takes a long time to start, so my preferred way of debugging the code is Launch -> Stop at a breakpoint -> Open the code evaluation window -> type in some code and see…
vadipp
  • 877
  • 1
  • 12
  • 22
1
vote
1 answer

Python get file from an app on-the-fly (without saving it in file system)

I want to let user submit a MS Word file to my app, process it with python-docx library and return it back. Since a file size might be big, I do not want to save it into the file system after processing but rather return it for download. Get file…
Igor Savinkin
  • 5,669
  • 8
  • 37
  • 69
1
vote
2 answers

adding filtering functionality on-the-fly in c++

I have the following (simplified) architecture: client(s) --> bouncer --> server The clients send commands to the server. The 'bouncer' performs sanity and other checks on the commands issued by the client, and prevents faulty commands from reaching…
bavaza
  • 10,319
  • 10
  • 64
  • 103
1
vote
2 answers

Compile a Java program on the server right before a User downloads the program

I did a quick search and could not find anything on this topic. I am not even sure if this is possible, but I am curious. Is it possible to compile a Java program on a server right before a user downloads the program. The application that I can…
Ryan Sullivan
  • 447
  • 2
  • 6
  • 15
1
vote
4 answers

JQuery - making code execute for each new DOM object instantiated

I'm wondering if this is possible in JQuery. I have some Javascript code that creates DOM objects on the fly, in response to user actions. Some of those DOM objects are in a specific structure - the container always has the same "class"…
Jonathan
  • 32,202
  • 38
  • 137
  • 208
1
vote
2 answers

Read XML file while it is being written (in Python)

I have to monitor an XML file being written by a tool running all the day. But the XML file is properly completed and closed only at the end of the day. Same constraints as XML stream processing: Parse an incomplete XML file on-the-fly and trigger…
oHo
  • 51,447
  • 27
  • 165
  • 200
1
vote
2 answers

How to sum ifelse statements on the fly with [R]

I have a r conundrum and would be very grateful of any assistance please. I need to write a piece of code that requires to be written one line to fit with a larger automated process. I have supplied some dummy data to help illustrate. I have three…
CallumH
  • 751
  • 1
  • 7
  • 22
1
vote
0 answers

Plot on-the-fly in a heat map Python [edited]

I am trying to produce a density plot from a loop. In each round of the loop my script reads a pair of x and y coordinates corresponding to 1 point; I would like to plot this point on-the-fly because then I need overwrite its values with the next…