Hello,
I use backgroundworker objects to preform some async and threading where needed. Every once in awhile when I run the backgroundworker it stalls in the middle of running and doesn't finish. It usually does this when I am running more then 1 backgroundworker at the same time.
What I want to do when it stalls is cancel the operatio...
How can I use javascript/jQuery/etc to detect if Flash is installed and if it isn't, display a div that contains information informing the user that they need to install flash?
...
I have a java application where I want to check to see if an application is running. If it is not running, I want to start it. If it is running, I want to kill it and then restart it.
Can someone tell me how to do this? I can start/stop the program easily enough, with the ProcessBuilder. But I cannot detect a process that is already...
I have written a program that is sort of an unofficial, standalone plugin for an application. It allows customers to get a service that is a lower priced alternative then the vendor-owned one. My program is not illegal, against any kind of TOS, and is certainly not a virus, adware, or anything like that. That being said, the vendor of c...
I have a function that is recursively calling itself, and i want to detect and terminate if goes into an infinite loop, i.e - getting called for the same problem again. What is the easiest way to do that?
EDIT: This is the function, and it will get called recursively with different values of x and y. i want to terminate if in a recursi...
I have a winform app that needs to be aware of when a SQL server is available so as to allow the Merge Syncing functionality. I have tried variations of the below, which work on a one time basis, but I would like to come up with something a little more dynamic.
The below funcion(Thank you Alex_L) is checking for the 1433 port that SQ...
One way I found is to check if the Perl Debugger is "loaded" by checking for defined($DB::single) and assuming Komodo is active, if $DB::single is defined..
But this might also mean the script is legitimately running as perl -d under the "standalone" debugger.
#!/usr/local/ActivePerl-5.10/bin/perl
use strict;
use warnings;
use feature...
I use an IFrame to view a Pdf document when a link within that IFrame is clicked. However, on machines without the reader, the link will prompt for download. Is there a way, that the same link can prompt the user to download a reader when it detects no reader instead? I thought I have seen this somewhere. Thanks!
...
A few months ago I had to write a small tool to program the eeprom of a rtl8139-card. It's basically the rtl8139-diag tool stripped down to read/write the eeprom.
This tool has to be extend to be able to program the eeprom of rtl8101-cards now. This was not a problem, as the interface to the eeprom is similar to the one of the rtl8139. ...
I have a video feed. This video feed contains several lights blinking at different rates. All lights are the same color (they are all infrared LEDs). How can I detect the position and frequency of these blinking lights?
Disclaimer: I am extremely new to OpenCV. I do have a copy of Learning OpenCV, but I am finding it a bit overwhelming....
I'm trying to figure out a way to programatically determine if a copy of windows is running inside a copy of Parallels. I have found this post with very good instructions for determining if Windows is running within VMWare, VirtualPC, or WINE, but I haven't been able to find anything similar for Parallels. How does one go about detecti...
I've searched for this and everything I find is way more than I need. I've done this in JavaScript before, but I would really prefer using PHP. How would I go about displaying a message to my visitors, depending on which browser they're using?
Example:
IE User would see: "You're using Internet Explorer"
Firefox User would see: "...
I'm working on a project that requires that I can reliably detect the presence of a wireless capability on both a PC and a Mac.
Ideally I would want to achieve this through an existing command line tool I could package with my application or that perhaps already exists on the OS.
By wireless capability I mean the presence of a wireles...
Hello all,
I have a Silverlight3 application that is meant to run on both Windows and Mac OS environments. I would like to know in runtime if my application is running on a Windows or Mac so I can tweak a few things to the way users are accustomed to in their operating system of choice.
For example, in Windows it is the norm to use "O...
in PHP, Is there a way to detect if a string is English or non-English string. suppose the string is in utf-8 format?
...
I'm not interested in getting version information. All I want to do is to make sure my application will only run on a legal version of Windows and not on a pirated version. Windows uses some trick to determine this but still allows pirated versions to continue to run, although with some limits.
So, is there a way to check if the applica...
Have a project with a TRIANGLE shaped graphic in a sprite. I am arranging these sprites in a grid so that their rectangles are all overlapping. As sprites get touched their z-order is being changed (by me) to put them on the top of zOrder.
I am using Cocos 0.8.1 and the touch dispatcher method. I have touches working but obviously the "...
I am using WMI to detect a number of items about a network adapter's state. Among the things I need to find out are (a) speed and (b) duplex.
I have been able to detect the speed of a network adapter by using WMI and the following Python code:
from pycom.client import wmi
dev_name = r"\\DEVICE\\{287EB4BB-5C2A-4108-B377-15E1D0B0E760}"...
Look
Wow!
How can the webpage know I'm using firebug?
BTW I couldn't find out how to show the translucent add banner.
...
Is it possible to detect eye in the video mode in MATLAB? I am trying to detect the eye and make some predictions based on the movement of the eye. But am not sure on how to do that. Can someone help me in how to start about that? Thanks in advance.
...