start

How to start/stop a monitoring Delphi thread on demand?

I've been looking for a way to monitor for specific registry changes in Delphi. Found a solution at about.com: procedure TRegMonitorThread.Execute; begin InitThread; // method omitted here while not Terminated do begin if WaitForSingleObject(FEvent, INFINITE) = WAIT_OBJECT_0 then begin fChangeData.RootKey := RootKey;...

Conversion of a Java Web Start app to an Applet

I'm trying to figure out how difficult it would be to convert a Java Web Start app to an applet. Theoretically, if the application didn't do anything such as write to the file system...basically if all of it's actions should be safe within the Applet sandbox, how tricky would it be? Is it a matter of wrapping the main app inside of an ...

dragStart on draggables repeatedly called in jquery?

Ok. So I'm going to go out on a limb and presume that a draggables "start" event gets fired again after the movement has stopped and user starts moving again, even if hasn't been dropped yet? The main issue is I want my draggable to create my droppables depending on having an odd or even class. But I'm afraid the user may start draggi...

droppables not being created on drag start

trying to create my droppables based on the object being dragged. the drag works fine, but the droppables are not being created. there also aren't any errors in the error console. any help? JS: $("#theSchedule, #theExtras").live('mouseover', function () { $(".curSelected").draggable({ helper: 'clone', opacity: 0.50,...

Exist a sample or template database for BI about sales/inventory?

I will start a reporting tool for some local ERPs about sales, invoices, orders, customers, inventory, etc. I wonder if exist a sample schema appropriated for this case (in star or snowflake form) so I can have a solid foundation. I have understanding about basic BI desing, but taking in account this is a common problem, I wonder if ex...

[Win32 API] Can I Get Notified When Some Process Starts?

I need to know (preferably with the least latency) when foo.exe is launched. Right now, I have a thread that sits in a light loop (~10 Hz) and walks the process tree looking foo.exe. This is less than elegant and I was wondering whether I could register with some part of the Windows API to get a callback when any process starts. If n...

Ant exec - cannot run program 'start' CreateProcess error=2

Hi I can't run the windows 'start' using ant exec. Ant version 1.7.1. Here is sample build.xml to recreate the problem <project name="test" basedir="." default="test-target"> <target name="test-target"> <exec executable="start"> <arg line="cmd /c notepad" /> </exec> </target> </project> getting t...

Cocos2d on application start gives random fps drop?

Hello, I am developing an iphone game using cocos2d and have it set to to show the FPS. Now most of the time the application will start and run at 60 fps, However apparently randomly sometimes the application will start and top at only 40 fps. This does not happen often and seems to happen only when you quit the application and restar...

How to enforce activity if app is running?

I start an Activity from my Widget, which should start a special view. But if the app is already running (not left with back button), Android instead activates the activity that was last shown. Is there any flag or other way to avoid this behaviour? Closing the previous activity wouldn't be a problem in my app, there's no user input that...

Setting up the start up form in visual studio team system 2008

hi, I am working on a windows forms application using C# in visual studio 2008 team system. I would want to display a different form at start up of application. Please help (In project properties , under application tab there is no display of different forms name in the combo box) ...

How to start using WCF/WPF?

I've been using .net for quite some time, and everywhere I interview these days, I keep getting asked about my knowledge with .NET 3.0/3.5 technologies (WF, WPF, WCF etc.) How do you start learning those? Any good links available out there? Should I change my current code to start working like that? ...

How to change a sound playing start time in objective-c?

I would like to play a sound in Objective-C with a millisecond start time. I know it is possible this way but "currentTime" only takes seconds: currentPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:fileURL error:nil]; currentPlayer.currentTime = 100; Is there a way to set the start time with milliseconds? ...

drupal teaser starting position

Is there any way to control and manual specification for start of teaser?. for example: This is my test paragraph to find the solution.i need to know how to control the starting position of the teaser............<--!break--> i want to stat my teaser from 'i need' . is it possible ? ...

Start a thread in a different process in Java

Hi there, is it possible to start a new thread in a different process in Java? I mean, I'm running a specific process and main thread, issuing ProcessBuilder for creating a new process. Before start() method is invoked, one must provide the command to be run in another process. Is it possible to start a new thread in newly created proce...

WPF How to stop animation from a thread in background worker

Hi! I have a task that takes a long time. I do it with a background worker thread and before start it, since Do_Work I begin an animation over a label and when task finishes, I stop it in RunWorkerCompleted but I received an error because I try to begin/stop animation in the background thread that is not the owner. How can I do this, I ...

Exe to service possible?

Is it possible to have a .exe run as a windows service? ...

How to start a process from within a windows service

I want to pop a browser with a given url from within a windows service. Like so: System.Diagnostics.Process.Start("http://www.venganza.org/"); Works fine when running in a console but not from within the service. No error messages, no exceptions, the Process.Start() command just seem to do nothing. It smells of some security issue, ma...

Start Activity with an animation

I am trying to start an activity with a custom transition animation. The only way I have found out so far to do this (without using onPendingTransition() in the previous activity) is to use a custom theme on the activity and define either activityOpenEnterAnimation, taskOpenEnterAnimation, windowEnterAnimation or windowAnimationStyle to ...

Why is run() not immediately called when start() called on a thread object in java

Or is it? I have a thread object from: Thread myThread = new Thread(pObject); Where pObject is an object of a class implementing the Runnable interface and then I have the start method called on the thread object like so: myThread.start(); Now, my understanding is that when start() is called, the JVM implicitly (and immediately)...

How to start a programm with Python?

How to start a programm with Python? I thougt this would be very easy like: open(r"C:\Program Files\Mozilla Firefox\Firefox.exe") But nothing happen. How to do this? Thanks in advance. ...