detection

Detecting .com / .co.uk etc etc

Hey all! I currently have a preg_match to detect http:// and www. etc..... but I want to detect domain.com or domain.co.uk from a string example string: "Hey hows it going, check out domain.com" And I want to detect domain.com What I want is to detect any major domains form this string i.e. .com .co.uk .eu etc... from the fo...

COM port cannot be opened in asp.net

I following this article for sending SMS it is a winform application.. I have referenced all the Dll's to my asp.net application..... I use an aspx page to detect a mobile device connected to a PC..... But it alwys shows COM 'n' Port could not be opened..... using SMS; using GsmComm.GsmCommunication; using GsmComm.PduConverter; publi...

Detection screen disconnection in linux

Hey Guys We have a nasty little problem. In short we can detect if a screen is connect when x11 boots (we do this by looking at the log - Xorg.0.log), but we are having trouble detect when are screen is disconnected while the machine is running (ie post x11 boot) Any one have any ideas? Cheers ...

Detecting operating system or computer name through a Java servlet

I have a Java web app that I develop on a Windows machine and will deploy on a Unix machine. There are some file path settings and permissions details that differ on the two (and there is nothing I can do to change this). Is there some way of detecting which machine the app is sitting on (it's only one of two), either by detecting the o...

RockBand-like voice app for PC/OSX / Real time pitch display software

I played Rock Band 2 for the first time a little while ago (at Notacon). One thing I enjoyed about it was getting real-time feedback about my singing. I think it'd be neat to have something like that to run alongside my usual music, so that I can sing to random stuff in my music collection and know when I'm hitting the notes. Is there ...

How to determine edges in an image optimally?

I recently was put in front of the problem of cropping and resizing images. I needed to crop the 'main content' of an image for example if i had an image similar to this: the result should be an image with the msn content without the white margins(left& right). I search on the X axis for the first and last color change and on the Y ax...

How to find which serial port is currently used?

I ve connected my mobile phone to my PC and used this, string[] lPorts = System.IO.Ports.SerialPort.GetPortNames(); and the result was an array of port names "COM4" "COM3" "COM1" "COM7" "COM6" Now,How to find which serial port is currently used/to which port my mobile phone is connected in c#? ...

How do I detect what software is using the webcam on a Windows box (XP,Vista,7)

The idea is that I want to build a small app that detects if the webcam is being used and by what. I have thought about seeing who has use of the Twain.dll somehow (like the way process explorer knows) It's for a security style app that picks out weird webcam behaviour. Ideally I would use C# as it's my strong point, but I'm guessing...

How to detect if a user had javascript disabled?

I was talking with a friend about users who do not have javascript enabled in their browser and what could be done to show them a "no-javascript" version of your website. Is it possible and how can it be done? Thoughts? ...

VB.Net: Detect Webcam

How can I programmatically detect whether a webcam device is plugged in to the PC or not, return 'True' or 'False. ...

How to detect changing directory size in Perl

Hello, I am trying to find a way of monitoring directories in Perl, in particular the size of a directory, and upon detecting a change in directory size, perform a particular action. The issue I have is with large files that require a noticeable amount of time to copy into this directory, i.e. > 100MB. What happens (in Windows, not Uni...

How to detect the MAC address of the user viewing our website using PHP?

I know how to track down an IP address, but I need to track down the MAC address of the users viewing my page. How to accomplish this? ...

CRC error detection problem

Hi guys, I need to implement the CRC error detection in my system. I wonder how to determine the maximal number of detectable error (and undetectable as well) having the generation polynomial? Assume that I have got, say, the following g(x) = x^4 + x^3 + 1. There are 2^15 possible transmissions - the 11-bit words might be protected by...

hints of impending failure

I'm looking for indicators that I can programatically check that would hint at an impending failure of my application. I'm looking for general things like "the number of free IO threads is dangerously low", "memory available to the app pool is low", and "processor usage is high". This is for C#/asp.net and IIS. Examples of checking the...

The best and most efficient methods of detecting web crawlers

There are many ways to pretend to be a human being. So what are the best methods to see past it? ...

Thick horizontal line detection

Please suggest me some methods on thick horizontal line detection in images. Any papers, libraries etc please. ...

How to detect language

Hi guys, Are there any good, open source engines out there for detecting what language a text is in, perhaps with a probability metric? One that I can run locally and doesn't query Google or Bing? I'd like to detect language for each page in about 15 million pages of OCR'ed text Cheers Nik ...

NLTK and language detection

How do I detect what language a text is written in using NLTK? The examples I've seen use nltk.detect, but when I've installed it on my mac, I cannot find this package. Cheers Nik ...

Detecting a circle of a specific color (or gray level) with openCV

Hi, Is there a way to detect a circle with a specific grey level using openCV? I want to detect a circle that marks out from the others. Currently, I'm using cvHoughCircles to detect my circles. I know the method returns an array of cvSeq containing the info on each circle (point and radius), but it does not provide any color informati...

How do I recognize squares in this image?

Hey everyone, So I'm using openCV to do square recognition on this image. I compiled the squares.c file on an image that I took and here are the results: http://www.learntobe.org/urs/index1.php The image on the left is the original and on the right is the image that is a result of running the square detection. The results aren't...