Omgili - forum search, search forums  
  

Discussions about second code

Displaying 1 - 10 out of 267,600 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
Hi, I have a need to run a piece of code every 120 seconds. I am looking for an easy way to do this in VBA. I know that it would be possible to get the timer value from the Auto_Open event to prevent having to use a magic number, but I can't quite get...
Started by on , 3 posts by 3 people.  
If you....
Note : you'll want the code (besides StartTimer ) in a module, not a worksheet module.
Sub Form_Load() Me.TimerInterval = 1000 '1000 = 1 second End Sub Sub Form_Timer() 'Do Stuff with ActiveSheet.Cells(1, 1).Value = Time ).
Action.
How can I repeat a function doSomething() every 5 seconds. I also need code that will make it stop doing it. And code to on-the-fly adjust the frequency.
Started by on , 7 posts by 7 people.  
<input type="button" onclick="iFrequency+=1000; startLoop(); return false;" value="Add 1 second more to the interval" /> Try jQuery Timers Use setInterval Calls a function repeatedly.
) } from code...
In visual studio i want to add a second code behind file to a xaml window (my main form). i know i can have another (or as many) files that form partial parts of a class, and if they are in the same project they will be included, but can i make more than...
Started by on , 3 posts by 3 people.  
If you use need to add a <DependentUpon> element to your extra code-behind file : <Compile Include a pattern like MVVM , you ....
As a side note : why would you want a second code-behind file ? I think one is bad enough ;).
Ask your Facebook Friends
This is a followup to my own previous question and I'm kind of embarassed to ask this... But anyway: how would you start a second JVM from a standalone Java program in a system-independent way? And without relying on for instance an env variable like ...
Started by on , 3 posts by 3 people.  
If I was aiming for maximum portability in launching a (second) JVM, I think I would.
For example, in some if it is not a Sun JVM) .
But be aware that even this is only relatively system independent .
code.
Hello, I'd like to write a java while loop that will iterate for 15 seconds. One way I thought to do this would be to store the current system time + 15sec and then compare that to the current time in the while loop signature. Is there a better way? Thanks...
Started by on , 11 posts by 11 people.  
Repeat some code for 15s If you really want to loop for 15s then ....
Just waiting Thread.sleep(15000) This doesn't iterate, but if you want to do nothing for 15s is much more efficient (it wastes less CPU on doing nothing) .
Different code.
I have a library method that occasionally hangs on a network connection, and there's no timeout mechanism. What's the easiest way to add my own? Basically, I'm trying to keep my code from getting indefinitely stuck.
Started by on , 3 posts by 3 people.  
} timeout.rb has some problems where basically....
Answered my own question: http://www.ruby-doc.org/stdlib/libdoc/timeout/rdoc/index.html require 'timeout' status = Timeout::timeout(5) { # Something that should be interrupted if it takes too much time.. .
I would like to check a database for a change using ajax. However, I do not want to overload the server by constantly checking it every second. Is there any other way of updating the clients from the server? Can jquery listen for event server side? Thanks...
Started by on , 3 posts by 3 people.  
For examples of long....
The server will hold the connection until data is available, and it will then return the response containing the data .
Basically you send a request to the server, and it waits to return with a response .
You could use long-polling.
Sorry I couldn't really describe my problem much better in the title. I am trying to learn Python, and came across this strange behavior and was hoping someone could explain this to me. I am running Ubuntu 8.10 and python 2.5.2 First I import xml.dom ...
Started by on , 5 posts by 5 people.  
It tends to make for much ....
On my python as in your other machine I couldn't get your code to work even on the second try (using;xml><item/></xml>") I don't know how you got the second parseString to work it fails.
#include <iostream> #include <string> #include <fstream> using namespace std ; string strWord( int index , string line) { int count = 0; string word; for ( int i = 0 ; i < line.length(); i++) { if ( line[i] == ' ' ) { if ( line [i...
Started by on , 6 posts by 6 people.  
I did not read very carefully, but it looks like it prints out the second word of the line? For example, if you load this code into Microsoft Visual C++, you can step through the program one statement piece of code does at the detail....
I'm planning to design a class to limit the execution of a function to given amount within the specified time, for example: Process max. 5 files in 1 second It should be thread-safe and performance hit should be minimal. How would you design such a class...
Started by on , 4 posts by 4 people.  
T.Change(1000, Timeout.Infinite); } } EDIT One thing to keep in mind is that the above code will only....
Counter.Release(); // We the semaphore in one second.
Timer t = null; t = new Timer(o=>{ // Increment the semaphore .
second.
Page: 1   2   3   4   5   6   7   8   9   10  
Related Searches
html code to redirect to sites after a few seconds   
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost