detection

Detecting if an Oracle Database is Installed

Hi all, I was wondering if there was a way to tell if an instance of Oracle on a system has a database installed or not? This is for an installation script, and I need to verify that there is an actual database in place before proceeding with the loading of my own tablespace onto that database. Has anyone tackled this problem before? ...

Detecting and accessing a usb device from within a webbrowser -i.e using a plugin.

Is it possible through a plugin - activeX, Java or Flex to write a brower plugin that is able to detect an read a data stream from a USB device channel. I have done some research but have not found an answer. http://support.microsoft.com/kb/832678 http://www.vsj.co.uk/articles/display.asp?id=600 Detect USB drive and his name http://by...

Problem with cocos2D for iPhone and touch detection

I just don't get it. I use cocos2d for development of a small game on the iPhone/Pod. The framework is just great, but I fail at touch detection. I read that you just need to overwrite the proper functions (e.g. "touchesBegan" ) in the implementation of a class wich subclasses CocosNode. But it doesn't work. What could I do wrong? the f...

How to detect mantissa precision overflow in GMP, before or after it happens?

The question I meant to ask concerned the mantissa, not the exponent, and has lots to do with the question I asked earlier in the week regarding "missing" digits on the sum of two negative floats. Given that the mantissa has a variable precision, how does one tell if one has overflowed the mantissa's current precision setting? Or, from ...

Detecting programming language from a snippet

What would be the best way to detect what programming language is used in a snippet of code? ...

Method to detect a parked page?

Anyone know of a way to programatically detect a parked web page? That is, those pages that you accidentally type in (or intentionally sometimes) and they are hosted by a domain parking service with nothing but ads on them. I am working on a linking network and want to make sure that sites that expire don't end up getting snatched by s...

Detecting IE6 using jQuery.support

Anyone have any ideas on how to test for something specific for IE6 (and not IE7) using jquery.support? My problem is that IE6 supports :hover psuedo-class only for anchor elements and IE7 does support it for all elements (as FF, Chrome, etc). So I want to do something special in case the browser does not support :hover for all elements...

Detecting MIME type in PHP

I'm looking for the best (possible on most PHP 5.2 installs and still actively developed) way to detect a files MIME type in PHP. I'm aware of the mime_content_type() method and the Fileinfo extension, however mime_content_type() is unreliable and deprecated, and Fileinfo doesn't come in a "standard" PHP (5.2) install. Do I have any o...

how to detect plugin usb in compact framwork

I want to attach a tracking box that has a serial port, with a serial to usb lead to a windows mobile. Is there anyway to detect usb plugin when i connect windows mobile device with tracking box through USB? ...

Detecting hosts connected to a lan

In order to create a lan messenger in c# I need to detect the host computers online obviously using the same lan messenger software. I tried searching for a starting point to do so, but in vain. I need to know how to start the work. ...

How to check if a visitor is using the latest version of his/her browser?

Is there a simple and automatic way of checking if a visitor to my website (written in asp.net) is using the latest version of his browser? This would allow me to display a message to inform them that they're running an old version and that they might want to upgrade. My website is tested on most broswers but I don't test old versions (s...

audio or video detection library

I am capturing audio and/or video streams. I have a set of audio/video clips and I would like to know if any of these clips appear in the streams. Any recommendation for a library that can do that? OS: Windows. Language: Don't really care - we will interface if needed. Thanks! ...

Automated Clicking Problem

I am coding up a program for automated testing which randomly clicks an open application window using various User32.dll library calls. My current problem is this, if a click would open a dialog, using Process.WaitForInputIdle() does not wait long enough for that dialog to be detected the next trip around the loop, which means several cl...

How to detect the physical connected state of a network cable/connector?

In a Linux environment, I need to detect the physical connected or disconnected state of an RJ45 connector to its socket. Preferably using BASH scripting only. The following solutions which have been proposed on other sites do NOT work for this purpose: Using 'ifconfig' - since a network cable may be connected but the network not pro...

Detect FFMPEG?

I'm writing a PHP script that converts uploaded video files to FLV on the fly, but I only want it to run that part of the script if the user has FFMPEG installed on the server. Would there be a way to detect this ahead of time? Could I perhaps run an FFMPEG command and test whether it comes back "command not found?" ...

Way to automatically see which functions can potentially return exception in c#

Hi, nothing more frustrating than to see your code crash in the debugger on a method which exceptionned and you didn't try/catch it. Is there an easy way to scan through your sources and tag all functions which can potentially throw exceptions? Does the build in visual assist have some hidden option to colour these functions in a spec...

Is there a way to detect if another process in vista is running in 32bit or 64bit mode?

I'm writing an application that interacts with other processes on a x64 Vista machine. In order to do this it will need to know if the other process is running in 32bit or 64bit mode. How can I detect this? ...

Detect presence of a specific charset

Hi, I need a way to detect whether a file contains characters from a certain charset. Specifically, I want to detect the presence of UTF8-encoded cyrillic characters in a series of files. Is there a tool to do this? Thanks ...

JavaScript Detection / Browser Statistics

This has been asked few times but I think it's still worth checking with you guys for some more input. All my websites use Google Analytics for stats. Since it relies on JavaScript I thought it was important for me to check how many people actually have JS enabled in their browsers enabled/disabled. I remember I usually checked w3schoo...

How to detect if the mouse is inside the whole form and child controls in C#?

I need to detect when the user moves the mouse over the Form and all it's child controls and also when it leaves the Form. I tried the MouseEnter and MouseLeave events of the Form, I tried the WM_MOUSEMOVE/WM_MOUSELAVE and WM_NCMOUSEMOVE/WM_NCMOUSELEAVE windows messages but none seem to work as I want... Most of my Form is occupied by c...