detection

Detecting multiple simultaneous keypresses in C#

I am looking to emulate hyperterminal functionality for my Serial Communication in C# by detecting the keypresses of certain key combinations (escape sequences) which cannot be typed out such as Ctrl+C, Ctrl+Z, etc. I understand that these keys have their ASCII equivalents and can be transmitted as such. But I am facing problems with the...

Shake Detection iPhone 3.0 not working

I have a ViewController that works perfectly with a button that trigger an action. I would like to replace the button with a shake event so I've googled it around and created a ShakeDetector class that ineherits from UIView and my implementation is as follow: @implementation ShakeDetector - (void)motionBegan:(UIEventSubtype)motion...

adding "audible ticks" to a waveform for onset detection debugging

Hi all, I'm playing around with some onset/beat detection algorithms on my own. My input is a .wav file and my output is a .wav file; I have access to the entire waveform in chunks of float[] arrays. I'm having trouble coming up with a good way to debug and evaluate my algorithms. Since my input and output are both auditory, I thought ...

How to check for a duplicate email address in PHP, considering Gmail ([email protected])

How can I check for duplicate email addresses in PHP, with the possibility of Gmail's automated labeler and punctuation in mind? For example, I want these addressed to be detected as duplicates: [email protected] [email protected] [email protected] [email protected] Despite what Daniel A. White...

How can I identify unfilled ovals in a PDF document using CAM::PDF?

I need to identify unfilled ovals in a PDF file. After that, I should fill them with color and I need coordinates of ovals with page numbers. Can anybody help me how to solve this using CAM::PDF? ...

Sql Compact Installation

Is there any way by which we can find programmatically whether SQL Compact is installed or not... Actually I need to know whether the compact edition is installed or not in PC and so that I can include or exclude the SQL Compact dll... Because in my application there are different process that access the same .sdf file which will cause A...

Fundamental Frequency + Voice Detection in c#

I'm trying to detect voice throught input from the microphone in real-time. I allready receive the input, execute FFT algorithm and have the result in dB. I have a frequency domain, a time domain and a spectogram. How can I get the fundamental frequency? If I get the fundamental frequency can I specify that if the frequency is between ...

How do Mel Frequency Cepstrum Coefficients work?

I allready have FFT and pitch + absolute frequency calculated in real-time from input of microphone. Now I want to calculate the timbre. I saw Mel Frequency Cepstrum Coefficients - MFCCs but I didn't understand it very well. Can someone give me some tips on this.. ...

How to make MFCC algorithm?

I wanna make the Mel-Frequency Cepstrum Algorithm but there are some things that I don't understand. After FTT is done we need to "Map the powers of the spectrum obtained above onto the mel scale, using triangular overlapping windows." I know how to calculate the triangles and I also know how to pass to mel scale. I simply don't know w...

how to detect that localhost web site is closed and then shout apache web server

Hello all i need to find away to stop/terminate apache web server that is running on my local pc when i close the site that is running in my local pc (for example http://localhost:8080) or when i close the browser that display/load the localhost site that the local apache web server is running . what is the preferred way ? ...

how do you detect a weak wireless signal from a windows mobile 6 app?

I am using a Windows Mobile 6 based hand held device. I there a way to detect low or no wireless signal activity? Since I cannot detect this, my application is getting exceptions and ultimately runs out of threads. ...

How to detect page zoom level in all modern browsers?

How can I detect page zoom level in all modern browsers? While this thread tells how to do it in IE7 and IE8, I can't find good solution for FF, Safari and Chrome. For FF one of the suggested solution FF stores page zoom level for future. So on first page load would I be able to get zoom level? Somewhere I read it works if you're changi...

Detecting login credentials abuse.

Greetings. I am the webmaster for a small, growing industrial association. Soon, I will have to implement a restricted, members-only section for the website. The problem is that our organization membership both includes big companies as well as amateur “clubs” (it's a relatively new industry…). It is clear that those clubs will share ...

Recovering from stack overflow on Mac OS X

Hi all, I am implementing a cross platform scripting language for our product. There is a requirement to detect and properly handle stack overflow condition in language VM. Before you jump in and say make sure there is no stack overflow in the first place, re-read my first sentence - this is a scripting language and end users may write ...

Detecting horizontal div overflow with JavaScript?

I have a DIV that has plenty of child DIVs inside of it. What I want is similar to Firefox's tabs, when you have too many tabs open or the main DIV width is too small, the interface will detect overflow and show a button on the right side to list all hidden tabs. The problem is that I have no idea where to even start looking for help. ...

detect us military email address

Does anybody know which domains to search for (other than ".mil") to look for military addresses posting to a web form? Clarification: we're offering a discount to our customers, and we really only have time to cough up an email address regex which can fit into our existing system. This is on LAMP. ...

ANT: Force error on missing resource?

I've inherited an Ant build system that contains many resource set definitions like this: <files id="app1.lib.jars"> <include name="${java}/jre/lib/jsse.jar"/> <include name="${work.lib}/jtidy.jar"/> ... </files> <files id="app2.lib.jars"> <include name="${work.lib}/itext.jar"/> <include name="${work.lib}/commons-httpclient.j...

How to detact the encoding using mb_detect_encoding correct?

I want to detect encoding correct, but i found mb_detect_encoding always get error result, And I added lots of encoding_list UTF8 ISO-8859-* .... ...

How do you detect the CPU architecture type during run-time with GCC and inline asm?

Hello, I need to find the architecture type of a CPU. I do not have access to /proc/cpuinfo, as the machine is running syslinux. I know there is a way to do it with inline ASM, however I believe my syntax is incorrect as my variable iedx is not being set properly. I'm drudging along with ASM, and by no means an expert. If anyone has an...

How to: Programmatically detect if MSXML parser (version 3+) is installed or not

Hi All, Can anyone help me out, how to detect if MSXML parser is installed on a machine or not. I looked for a registry entry,but unable to get one. I am writing a VB.NET application. Thanks in advance :) ...