task

Task Manager Like App using Java Swing

I want to how know how to set about writing a monitoring app such as Windows task manager using Java Swing. The main feature I am concerned with is the grid with a graph which get drawn with time. What are the features that I need to accomplish this? (e.g.: Java2D etc). ...

What to use to wait on a indeterminate number of tasks?

I am still fairly new to parallel computing so I am not too sure which tool to use for the job. I have a System.Threading.Tasks.Task that needs to wait for n number number of tasks to finish before starting. The tricky part is some of its dependencies may start after this task starts (You are guaranteed to never hit 0 dependent tasks un...

How to execute task for a specific period in Java.?

In fact I would execute a specific task( a set of instructions) for a determined period. For example : I want my program to execute the task for 5 minutes, if it gets the right result it stops , else it will continue executing normal task for the 5 minutes and in the end it tells me. How can I implement this in Java. ...

Calling consecutive java tasks in a shell script

Hi all, This may be a rudimentary question but the answer was not readily available. I'd like to create a shell script that calls 3 tasks consecutively, but wait till the previous task is complete. Like so: a. call first Java program via ant b. call third party Java application c. call third Java program via ant I'm wondering if t...

bat file using winrar taking too long to run

hi guys, i have this scripts which extracts all my folder's and files from my c:\projects locations and put its in winrar and transfers them to c:\backup\project for /f "delims==" %%D in ('DIR C:\projects /A /B /S') do ( "C:\Program Files\WinRAR\WinRAR.EXE" m -r "c:\backup\projects.rar" "%%D" ) i have also tried the below script whic...

Using SalesForce's Web Service to create and set the type of a Task

I am successfully creating a Task using the SalesForce API SOAP API through Java. However, my problem is that I can't seem to set the Type of it. They all default to "Call" but I really want them to be "Email". Can someone point me in the direction of where I can do this? I think it is to do with RecordTypeMapping, but i am somewhat...

How do I manipulate the Android activity stack?

Here's my two scenarios. 1 - User opens app for the first time ever from android home screen User is presented with "first time" screen (backed by first time activity, lets call it A) User hits back button user is returned to android home screen 2 - User opens app for second time User is presented with the main list screen of the app...

Windows Form App as Scheduled Task

I have run into a case where a Windows Form application is being run regularly via a scheduled task on a Windows Server 2003 box. The GUI is, obviously, not being used to take in any user input, so it is at best pointless. But is it also dangerous? Could it cause anything to go pop on the box? ...

Task Parallel Library; TaskCreationOptions.LongRunning option and ThreadPool

Background: "The Task Parallel Library (TPL) is a set of public types and APIs in the System.Threading and System.Threading.Tasks namespaces in the .NET Framework version 4. The purpose of the TPL is to make developers more productive by simplifying the process of adding parallelism and concurrency to applications." TPL uses Task Schedu...

Scala equivalent of CSharp's Task.Factory.StartNew ?

In C# you can write: var alphaTask = Task.Factory.StartNew(() => {      return someWork(n); }); // ... do some other work, and later get the result from the task var res = alphaTask.Result; How would this simple construction look like in Scala? Thank you. ...

SQL problem with 12 subquery

Exists such db schema: I need to write query. For every doctor i need average cost of visit by month for 2009 year. The result is (name_of_doctor, january, febriary, ..., december) I know how to do this with 12 subquery. Exists another more convinient way? ...

Home programming task for job applicant

I'm looking for a programming task for job applicants to do at home. The task should give an idea of the applicant's coding style and more specifically if the applicant: - knows how to separate GUI and logic. - understands threading. - understands efficient memory management. - practices good error handling. - uses patterns correctly. - ...

Library for task distribution in MPI (or other)?

I'm looking to implement 'branch and bound' over a cluster (like Amazon's say), as I want it to be horizontally scalable, not limited to a single CPU. There's a paper "Task Pool Teams: A Hybrid Programming Environment for Irregular Algorithms on SMP Clusters" by Judith Hippold and Gudula Runger. It's basically a bottom-up, task-stealing ...

ui task not acting as expected

In the code below, I would like to display a status message while fetching some data before and not display a dialog populated with that data until the data fetch is complete. But the dialog is instead being displayed before the data gets there. What am I doing wrong? Cheers, Berryl ProjectSelectionViewModel vm = null; SetStatus("Fetc...

Task Management Options

I have a need in an application for task management and was looking for open source or third party customizable software that has a robust API that I can plug in. Platform is .Net but willing to look outside of that platform if needed. Any suggestions because I rather not reinvent the wheel and build it. ...

Sharepoint 2007: granting edit permissions to "Assigned To" user in a task list

Hi, I've recently begun developing for sharepoint. I've just written an event receiver for a task list in order to grant edit permissions for the item to the user who is entered in the assigned to field. Unfortunately my code doesn't work, and I think, I've also found the reason. The list grants by default contribute rights to all use...

DTS SSIS- Task Script and Threading?

Dear All, I have written a task script using vb.net that have thread used in the code, the problem is how i can know when will be finished all the threads so i can return the success result. Thanks alot. ...

C# Parallel Task methods that return value using Func<>

I want to use TASK for running parallel activities.This task returns a value.How do i use a FUNC inside the task for returning a value?.I get an error at Func. Task<Row> source = new Task<Row>(Func<Row> Check = () => { var sFields = ( from c in XFactory.Slot("IdentifierA") where c["SlotID"] == "A100" select n...

Using iocp in a job pool

When using iocp in a job/task pool to provide fast worker wake ups what is the best way to minimise the overhead of signalling the port - ie not having to do it every queue operation? void Worker() { while(1) { for(int spin = 0; spin < 5000; ++spin) while(queue.Count > 0) queue.PopFront()(); ...

Task launched from a Threading.Timer

Edit: Another note: This bug locks up my entire system and kills all open connections (web browser, database connections). Basically a system wide lock up until I do "end program" on the console app. Edit: Yet another note. I am currently running the code on 3 other machines. 1 is a compiled application, the other two are running from...