cancel

Hudson cancel do not cancel all processes

I'm working with hudson v 1.323 installed as a Windows service on Windows XP. I'm building with a shell script that looks like this: #!c:/cygwin/bin/sh export PATH=/cygdrive/c/cygwin/bin:$PATH make -j 4 $MAKE_TARGET When I cancel this build using the red X everything seems to have stopped on Hudson, but when I look in the Windows pr...

jquery event help

I have a setup like this: <div id="container"> <div id="close">Close</div> </div> Then in my jquery I have this: $("#container").live("click",function(){ changeTabs(); }); $("#close").live("click", function(){ closeTabs(); }); The problem with that is that when you click the close div it fires both events. I a...

Cancel a timed loop in JavaScript?

I'm trying to setup a function in JavaScript to fade in or fade out some elements on my page. The fade themselves work fine, but my problem occurs when one of them tries to cancel the actions of the other one. //I know this is ugly, I'm just learning JavaScript again and plan to recode it after I learn some more... var fadeOut = false ...

Cancellable Sort in .NET ?

Hi I'm using ListView in VirtualMode to show extremely big number of rows, millions of rows. The data of the rows stored in a Generic List. Now i want implement a sort feature, that will sort the List by some Comparer. The problem is that for now, an average single sort takes around 30 seconds, and during this time the user cannot do ...

How to skip Validating after clicking on a Form's Cancel button.

I use C#. I have a Windows Form with an edit box and a Cancel button. The edit box has code in validating event. The code is executed every time the edit box loses focus. When I click on the Cancel button I just want to close the form. I don't want any validation for the edit box to be executed. How can this be accomplished? Here is an ...

cancel hibernate query

If user press the "search" button and then they desided to do "something else", we have to cancel already running query. We use Hibernate (and Oracle) as persistence solution. Hibernates Session interface provides cancelQuery() method. After some trys, it seams that cancelQuery() has no effect. Does somebody have some experience this t...

Cancel global css inheritance

So I have a global reset rule: * { margin:0px; padding:0px; } I also have a LOT of tables with pre-defined cellpadding values. However, the global reset rule is killing all the cellpadding values. What would be the best way to get the cellpadding back without having to create a specific css rule for each table? (There are a lot of tab...

AS3: cancel event

Hi all, Let's say I want a Sprite to act as a button and I want this Sprite to be able to be disabled. Like so: public class Button extends Sprite { private var _disabled:Boolean = false; public function get disabled():Boolean { return _disabled; } public function set disabled( disable:Boolean ):void {...

Kill JQuery AJAX overlapping requests

Hi All, Is it possible to kill a previous ajax request? We have tabular data very adjacent to each other. On mouseover event of each data we are making a request to our server using JQuery Ajax object and showing in popup. But as frequently we move mouse to other tabular contents previous Ajax responses are being displayed inside popu...

Python sched alternative to cancel all events

I'm looking for an alternative to the sched module which would allow me to cancel all events at any time. sched only allows to cancel single events by id (which is returned from the scheduler when an event is scheduled). Any pointers to Python alternatives to sched would be appreciated. Thanks Toni p ...

Cancelling a BackgroundWorker, how to prevent race when it has already finished...

I'm using a BackgroundWorker to perform a long computation (only one such computation at a time). The user has the possibility of cancelling the worker (calling worker.CancelAsync). In the worker.DoWork method I periodically check for the cancel pending flag and then return from the method. Then the Completed event is raised from the ...

stopping dll loop

I have a multi-thread C# application that uses some recursive functions in a dll. The problem that I have is how to cleanly stop the recursive functions. The recursive functions are used to traverse our SCADA system's hierarchical 'SCADA Object' data. Traversing the data takes a long time (10s of minutes) depending on the size of our ...

How to cancel a rpm installation

Hi everyone! We are developing an application in python, and we are using RPM to install it. But sometimes, an error can happen during installation, and I can detect it. The question is, is there any way to cancel an installation if something is wrong? I tried to execute a "rpm -e package_name" command, but it's imposible because the sy...

iphone sdk: pausing NSURLConnection?

Hi guys, In my app I give the user the ability to download files from a server. For that I use NSURLConnection. I would like to give the user the ability to pause and resume the download by tapping a button. I couldn't find any way to do this besides calling the cancel method and then creating a new NSURLConnection. So is there an elega...

Flex: Cancel HTTPService.send() ??

OK I have an HTTPService that executes the dataLoaded(e:ResultEvent):void function whenever it gets a result from a send() call. OK so If I call HTTPService.send() and then call HTTPService.send() again before the previous one receives a result, I end up repeatedly running dataLoaded() which is undesirable What I want is if HTTPService...

Android - Controlling a task with Timer and TimerTask?

Hi all, I am currently tryinging to set up a Wifi Scan in my Android application that scans for Wifi access points every 30 seconds. I have used Timer and TimerTask to get the scan running correctly at the intervals I require. However I want to be able to stop and start the scanning when the user presses a button and I am currently ha...

Cancel loading in WebView on Android

How can I cancel a loading operation in WebView started by loadData() method? ...

WCF file transfer with cancellation support

Hi all! There are a lot of questions regarding file transfer with WCF. I've got everything working, including larges files in "chunked" mode. I have the option to cancel the file upload from the sending party (the one that starts the upload) and a callback interface to notify when the transfer is accepted, and canceled. My problem is ...

Would it be ok to make an X in the upper right hand corner of a UIView to cancel out of the view?

I have a UIView that I don't want to have a navigation bar. It is a modal view. Would it be ok for me to make an custom UIButton shaped like an X to get out of it? Would Apple care? Is there a better way? ...

php private mysql connection

I have 2 functions, the function get_user_info() which connects to a db called 'users', and another, called print_info() which connects to a db called 'blah'. I call get_user_info() inside print_info(), so it can retrieve the information. They connect to 2 different databases and make 2 different connections, i use another function to co...