task

How do I manage Java timer tasks?

I'm looking for some guidance on how to manage multiple timer tasks. I'd like to be able to dynamically create timers and then when each timer is finished, it'll reset itself. Example: Timer 1 - perform action x - reset to perform action x again in 30 minutes Timer 2 - perform action y - reset to perfom action y again in 10 minut...

MS CRM 4.0 CrmService - Close a Task

Hey guys, I'm trying to work out how to use the CrmService to close a Task in MS CRM 4.0 I've tried to use the SetStateTaskRequest to set a Task's state and status to TaskState.Completed and 5. I also tried TaskState.Completed and -1, but no dice there either. Either way, I only receive the ever-helpful "Server was unable to process r...

nant task to create queue with c# code

<project name="aa" default="createqueue" xmlns="http://nant.sf.net/release/0.85/nant.xsd"&gt; <target name="createqueue"> <echo message="started" /> <script language="C#" > <references> <lib> <include name="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Messaging.dll" /> </lib> </references> ...

Long script in admin, task in Symfony?

In the admin panel, when the admin selects an action it will load data from an API and save it to the DB. It could take from 2 seconds to 3 minutes, depending on what he is importing. How can I do in Symfony to create like a thread, so the admin is not waiting to finish. And when it's finished tell him to check the result? Are the task...

Give me an assignment in C

I am teaching myself C, with several books as well as online tutorials. I am in the middle of Greg Perry's book Absolute Beginner's Guide to C. I know I learn best by doing, so I need to start writing my own code. My problem is that I am a little stymied by not being able to come up with ideas for programs that will exercise my skills a...

How to run a Windows 2008 task from the scheduler with "interact with desktop"

I have a small .NET app that I'm running under Windows 2008 Server via the Task Scheduler. This application needs to open an excel file and then save it as csv. The task fails when I try to open the workbook. If I run it manually without the task scheduler running it, the app works fine. I have it set to "Run with highest privileges" a...

Does anyone have any ideas for an assignment in game programming?

Much like the author of Give me an assignment in C, I'm looking to learn game programming and I learn best by doing, but I don't have any good ideas for games to program which will teach me the skills and for whom the graphics are freely available. I have written a basic pacman game but apart from that I haven't done any other games. ...

Trac task context sharing with mylyn

I've got trac working with mylyn (in eclipse obviously) through xmlrpc. Yay for six hours of my life. I can attach and retrieve context to tasks in trac. Question setup: I have a project checked out into two workspaces. In workspace 1, I activate a task, open some files, edit some stuff, commit the changes to svn, and attach the cont...

How to over-write the property in ant ?

Hi , Is there a way to re-assign the value for the ant property task? Or is there anyother task available for the same? Regards, Priya.R ...

File diff in MSBuild?

How do I diff two files in MSBuild? I cannot find any specific task to do it. If possible, is it also possible to exclude certain rows, or patterns in the files eg. 2009-12-09T10:03:07.6888125+02:00 ...

FTP files from Google App Engine

I was wondering if it was possible to FTP/SFTP a file from a Google App Engine application's servlet to a remote FTP/SFTP server. Or maybe by creating a Task on the TaskQueue... Has anyone got this? The GAE's documentation says that "bytecode that attempts to open a socket or write to a file will throw a runtime exception" Thank you fo...

How can I kill child process using taskkill in a batch script?

I'm capturing the PID in a variable which I kill later IF NOT "%SERVICE_PID%" == 0 taskkill /pid %SERVICE_PID% /t /f though everytime I do this in a batch file it makes my computer restart because it kills some system process the service pid should be a user defined service launched from cmd I dont understand why it keeps making ...

Cruise Control .NET force a task to run

How do I ensure that a given task always runs even if others fail? Say I have a task that installs an msi, another that builds a solution file, and then another that uninstalls an msi. If the middle task fails, I still want to uninstall the msi. ...

Sharepoint edit task from outlook on windows7

I have sharepoint approval workflow on Moss2007. Windows XP users are able to approve the task from their outlook. But in windows 7, outlook would not open the task edit form at all and no error message either. is there anything need to be turned off/on in windows 7 outlook in order to approve an item from their inbox? ...

Using SSIS Web Service Task with WCF

Hello, I am using SQL Server 2008 SSIS for importing data to the DB and .Net 3.5 SP1 for Creating the WCF service. In the import task I am trying to use the Web Service Task to report to a WCF service. At first I encountered a problem with the WCF WSDL, the Web Service task couldn't get their code generated from the metadata exposed by...

How to Zip/Unzip Files in SSIS - Need Compression Task

Hi anyone can suggest best Zip/Unzip Task for SSIS. We want to zip several GB files. I just found a product called TaskFactory looks very promising but wondering if anyone used it http://www.pragmaticworks.com/Products/Business-Intelligence/Taskfactory Thanks ...

How can I lock a file from a program started as a cron job on Linux?

I use fcntl in my codes to lock file and unlock to practice like mutex in windows... I start my app in linux manually, i got right result, with the app runs smoothly... but i was asked to make a bash script to start the app daily.... my script is cd myapppaht ./myapp however, i got [Bad file descriptor] when it try to lock a file pos...

How to arrange long (time consuming) actions on Android?

For instance, we are in SomeActivity and the activity has a button that invokes moving files from one dir to another (let's call it job). On BlackBerry I would: push a non-cancellable popup (Dialog screen) saying "Please wait..." start a thread that fulfills the job on thread completion close the popup This approach 99.99% can guara...

How to time-bound a computation in Java and be able to get all the results computed so far, even when the time budget ends (time-out)?

In a framework I'm developing the user can choose to run a certain time consuming task in background while doing something else. That task computes a series of results. In some point, when he/she needs the results from the background task, it's acceptable to wait some more time until: a) a time-out occurs (in this case the user would ...

Executing SQL from Script Component + SSIS

Am trying to execute sql from script component, but getting error when trying to establish SQL connection. My Code below in Script Component under PreExecute() base.PreExecute(); variables = null; VariableDispenser.LockForWrite("User::TableName"); VariableDispenser.LockForWrite("User::SqlConnectionString"); VariableDisp...