detection

Tracking Right click menu events?

Is there a way to track the right click menu when clicked over a textarea. I would like to know if the user selected cut,copy,paste,select all. Also, I can know when the menu is visible by detecting a right mouse click... But how can I know when it's closed? Thank you. ...

Regular expression to detect the search engine and search words

Hi all, I need to detect search engines that refers to my website. Since every search engine has different query strings for searching(e.g. google uses 'q=', yahoo uses 'p=') I created a database for search engines with their url regex patterns. As an example: http://www.google.com/search?q=blabla&ie=utf-8&oe=utf-8&aq=t&amp...

How do I detect squares/rectangle or an other shape with EMGU CV?

I want to make an apps detect an square/rectangle in my webcam using EMGU CV (an OPENCV wrapper). The square/rectangle will have a solid color. if it's posible I would like to obtain the width and heigth of the square/rectangle In this video you can see what I would like to do. http://www.youtube.com/watch?v=ytvO2dijZ7A&NR=1 I'm w...

Detect GPS Hardware in iphone

hi I want to know how to detect GPS HardWare in present in Iphone or not ...

Chipmunk collision detection

Hello, I am completely new to chipmunk and I have just been using it for a few days, so I'm guessing this is something pretty obvious, however I cannot find any documentation for this. Is there any callback or method in chipmunk that tells you that 2 given shapes have collided?. If not is the best way to simply use cgrectcontains on th...

How can I detect if the user is on localhost in PHP?

In other words, how can I tell if the person using my web application is on the server it resides on? If I remember correctly, PHPMyAdmin does something like this for security reasons. ...

Harris corner detecion problem

Hi, I have problem with Harris corner detection algorithm in ImageJ. Some info about it: http://www.cim.mcgill.ca/~dparks/CornerDetector/harris.htm I use Sobel filter for each block 3x3 to get differentials. I get only negative R[][] (C(x,y) from the link) factors. I can't find mistake, plz help. Part of the code: int w = ip.getW...

Notification of or detecting screenshot being taken?

Is there a notification or other mechanism of being informed that the user is taking a screenshot with the home/power buttons? I've seen threads about wanting to disable the taking of screenshots, but that's not what I'm looking to do. I have a photographer client who's concerned that his works will be copied by means of users taking s...

How to detect if user is using Mac or Windows on website

What's the standard, most reliable way of doing this? I need to redirect a user to download the Mac version or the Windows version of my software when they click "Download" on my website. ...

How do I detect that Image is outside of (browser)screen and then move it?

I am using this technique to have a popup image of my thumbnails. The only problem is that if the thumbnail is close to one edge of the screen, and the original image is really big, then it gets cut off by the edge of the screen. I know it requires Javascript, but I'm not entirely sure how to detect that the image is outside of the view...

Detecting exploits in web applications and how to proceed

What ways are there for detecting exploits in PHP/MySQL web applications (checking for certain characters or pieces of codes in the GET, POST, COOKIE arrays / using a library with a database that has all the patterns for common exploits, if any exist?) and how should I proceed when one is detected? For example, if someone tried to find ...

programatically detect bluetooth from iphone

hi expert, is it any possibilities programatically to detect bluetooth device from iphone, i done for wifi detection using WifiManager.bundle thanks ...

reliable user browser detection with php

Trying to detect a user's browser with PHP only, is $_SERVER['HTTP_USER_AGENT'] a reliable way? Should I instead opt for the get_browser function? which one do you find brings more precise results? If this method is pragmatic, is it ill advised to use it for outputting pertinent CSS links, for example: if(stripos($_SERVER['HTTP_USER_AG...

How do I detect the difference between Adobe Acrobat versions higher than 8 in non-IE browsers with JavaScript

I know that starting with version 8, the name of the Adobe Reader plugin was changed to "Adobe PDF Plug-In for Firefox and Netscape", and does not include any version information. However, the version information does appear in the "Plugins" tab when viewing Firefox Add-ons. Does anyone know where that information comes from, and if it...

touchesBegan question in iphone sdk?

How do I code this so that that it detects which image was tapped first? In other words if one of them is tapped, but the other one was already hidden, i want it to play a different sound?? any ideas? - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; NSLog(@"tag %@",touc...

how can i detect if a page on safari was opened from the springboard?

i saw it once and i cant find it again: how to detect via JavaScript if an iphone webapp was opened from a url typing or from an icon in the springboard? thanks! ...

Detect Caps Lock on/off using jquery

How can i detect caps lock key on/off using jquery.... I have a password textbox and i allow only small letters so i dont want caps lock key to be on.... Is it possible to detect the state of Caps Lock Key using jquery? ...

EmguCV - how to detect and track a color

hey everybody :-) i want to make application using EmguCv (C# language) to detect a color range from user input and keep tracking it is moves and position, so can some body help me? or if there is demo application doing thins that is will be good. thank u and waiting the answer ...

Help with flash collision detection. Rotating and hiting at the same time

What I want to do is rotate the object and have its collision box rotate with it. I want the rectangle to rotate so it looks like a diamond and have one of its sides hit the object in a per pixel fashion. From my reading of some books and websites it seems that normal rectangular collision and hitTestObject collision won't do for this pr...

How does Windows associate icons to files in explorer shell?

I have both InDesign CS2 and CS3 installed. Both use files with .indd extension. How does Windows know which icon to use? It uses correct icons i.e. CS2 files have cs2 icon and CS3 files have CS3 icon. How does Windows know how to do this? And how can I extract or use this version-detection system in my programs? Edit: Thank you for ...