task

SSIS Custom Task - How to Debug?

I'm writing a custom SSIS task. At the moment, each time I make a code change, I'm having to recompile and re-gac the containing assembly, restart my test SSIS package, delete and re-add the task from the tool box, then re-add the task and run the package. Does anyone know if there's a way of stepping through my custom ssis task code at...

download xml files from 3 different directory of a ftp server to a local system by using ssis.

Hi, I am new to ssis and my question There are 3 different locations of a ftp server(c:\temp1\,c:\temp2\,c:\temp3) and I have to check all the three locations and if any xml files exist then I have to download to my local working directory(c:\workingxml) in a specific time let's say within 4 A.M. to 8 A.M. and after 8A.M.the 3 differe...

Searching for subsets (interesting complex task)

I've just been doing Greplin programming challenge and went to the final level, where the task sounds like this: For the final task, you must find all subsets of an array where the largest number is the sum of the remaining numbers. For example, for an input of: (1, 2, 3, 4, 6) the subsets would be 1 + 2 = 3 1 + 3 = 4 2 + 4 = 6 1 + 2...

Cooperative multitasking using TPL

Hi, We are porting modeling application, which uses IronPython scripts for custom actions in modeling process. The existing application executes each Python script in separate thread and uses cooperative model for this. Now we want to port it to TPL, but first we want to measure context switching . Basically, what we have right now: ...

Can i add a run time transition to a task node in jbpm v3.2 ?

Hi all, For every task node in a process definition, i want to dynamically (programtically) add a self transition (from and to transition to the same node) to each task node. Can you tell me can this be done as part of JBPM v3.2 and if there are any issues that can crop up if i choose this approach ? ...

Using Cancellation with Async Tasks

Is there a way to cancel an Async System.Threading.Tasks.Task? i.e. Task.Factory.FromAsync( client.BeginCallWebService, client.EndCallWebService, "param1", null); I would like to register a shared CancellationToken with this task so that if the token is cancelled before this Async task is invoked, it won't be invoke...

Applications list disappear from task manager when launch MFC applcation

Hello! I write MFC application, but when i launch it, in task manager on applications tab all applications list are disapear. if i do active some applications then she appears in applicion list, and when i close my MFC app all aplications are appears in app list on application tab. Why this happening? ...

Using Parallelization for relatively large loops

I have an 8-core CPU machine with 8 GB memory. Logically the following code can be done in parrallel, but since the loop exposes more than enough opportunities for parallelism since I have far fewer cores available than the size of the loop. Second, every delegate expression allocates some memory to hold the free variables. Is it recomme...

.NET 4 Task Class Tutorial

Hello there, .NET 4 have an Class - Task. It's pretty interesting and I would like to start using it. For example I would like to create very simple Task based files downloader, with cancel possibility on every download. Can anyone introduce me with sample code of doing that ? I would like to have an list of running tasks and would li...

How to use Java to register a task with the Windows task scheduler ?

I have a Java app runs on Win7, it does something at start and goes to sleep for an hour, then wakes up to do more things after the hour, but Win7 goes into sleep mode after 15 minutes of inactivity, so I wonder if I can register a task with the Windows task scheduler in my Java app before it goes into thread sleep, so that Win7 will wak...

How to use Java to register a task with the Windows task scheduler ?

I have a Java app runs on Win7, it does something at start and goes to sleep for an hour, then wakes up to do more things after the hour, but Win7 goes into sleep mode after 15 minutes of inactivity, so I wonder if I can register a task with the Windows task scheduler in my Java app before it goes into thread sleep, so that Win7 will wak...

android: view cpu usage of processes

Hello! Is there a process manager or task viewer for android that shows how much CPU percentage each process or even each thread in a process takes up? Thanks! ...

Getting the Tasks in a Google App Engine TaskQueue

I know you can view the currently queued and running tasks in the Dashboard or development server console. However, is there any way to get that list programmatically? The docs only describe how to add tasks to the queue, but not how to list and/or cancel them. In python please. ...

How to prevent saving browser pages in activity stack history

User click one button on Activity#1 to start Activity#2. One button on Activity#2 start system default browser(Intent.ACTION_VIEW) to get Twitter authorized. After user allow, Twitter redirect user to Activity#2(Custom intent-filter+data) and it save the tokens. Now, if I press back key, the app back to browser, how to prevent this a...

Does Task.Wait(int) stop the task if the timeout elapses without the task finishing?

I have a task and I expect it to take under a second to run but if it takes longer than a few seconds I want to cancel the task. For example: Task t = new Task(() => { while (true) { Thread.Sleep(500); } }); t.Start(); t.Wait(3000); Notice that after 3000 milliseco...

C# Task.ContinueWith issues

I would like to use the Task framework in .NET to schedule something to run on a different thread then when it's done continue with an operation to update the UI on the UI thread. (I haven't played with it much yet, so it's not very familiar to me.) Here is the code: Task<List<NewsItem>> fetchTask = new Task<List<NewsItem>>(() => ...

Task is ignoring Thread.Sleep

Hi there, trying to grasp the TPL. Just for fun I tried to create some Tasks with a random sleep to see how it was processed. I was targeting a fire and forget pattern.. static void Main(string[] args) { Console.WriteLine("Demonstrating a successful transaction"); Random d = new Random(); for (int i = 0; i...

Enforcing Task Order using the .NET 4.0 Task Parallel Libraries

I have a program that has a ton of sensors producing data at a fairly high rate, and consumers that need to consume it. The consumers consume at very different rates. Since I am using IObserver/IObservable, the trivial solution was to simply create a Task for each event and wrap the OnNext() call and the data in a lamda. This worked v...

How can I convince powershell (run through task scheduler) to find my network drive?

I have a simple powershell script on windows 7 that doesn't work properly. (this is not an issue on XP) get-psdrive When I run it directly, I get Name Used (GB) Free (GB) Provider Root ---- --------- --------- -------- ---- A FileSystem A:\ Alias ...