Questions tagged [detect]

"Detect" is overbroad and should not be used. Tag with the specific sort of detection you mean: collision-detection, face-detection, feature-detection, browser-detection, etc, etc.

This tag has an active burnination request. It should be removed from questions, not added.

Detection activity exist in many ways.

For example:

  • Detecting active bluetooth devices;
  • Detecting Internet Connection;
  • Detecting available ports;
  • Detecting incoming voice;
  • Detecting color scheme;
  • Detecting features.
1045 questions
26
votes
3 answers

Angular js - detect when all $http() have finished

Ok i have tons of $http() calls all around the app code, i'm wondering is there any way / best practice to detect when all $http() around the app have finished ( success/error donesn't matter what they return, just need to know if finished )? So…
itsme
  • 48,972
  • 96
  • 224
  • 345
25
votes
4 answers

How to detect android cpu speed?

I would like to detect how fast is the device on which my Android application is running? Is there any API to do it on Android? Or do I have to benchmark it by myself? If the device has slow CPU I would like to turn off some time consuming…
Dariusz Bacinski
  • 8,324
  • 9
  • 38
  • 47
24
votes
6 answers

Detect if a string contains any numbers

This is the test.php file: $string = 'A string with no numbers'; for ($i = 0; $i <= strlen($string)-1; $i++) { $char = $string[$i]; $message_keyword = in_array($char, range(0,9)) ? 'includes' : 'desn\'t include'; } // output echo…
Programmer.zip
  • 703
  • 3
  • 6
  • 14
24
votes
3 answers

Detecting change in a Javascript Object

I found this gist to detect changes on specified fiels of a object : https://gist.github.com/3138469 But it bind an event only on one field. Someone know a function or a tricks to detect change on an entire Javascript Object ?
Unitech
  • 5,781
  • 5
  • 40
  • 47
22
votes
2 answers

Detect if program is running with full administrator rights

I need to determine if my program is running with full administrator rights. By that I mean if uac is turned on (for win vista/7) that I need to determine if the program actually has admin rights (like if the user right clicked and selected "run as…
David Chen
  • 301
  • 1
  • 3
  • 4
22
votes
8 answers

UITableView Detecting Last Cell

How can I detect when a UITableView has been scrolled to the bottom so that the last cell is visible?
Ward
  • 3,318
  • 3
  • 30
  • 50
21
votes
5 answers

node.js: How to detect an empty stdin stream?

I have a node.js script/server that reads some input from stdin when its launched. However, sometimes there's no data to be passed in. This is troublesome because it seems like in this case neither the data nor end events are called. How can I…
Suan
  • 34,563
  • 13
  • 47
  • 61
19
votes
10 answers

Detecting the fundamental frequency

There's this tech-festival in IIT-Bombay, India, where they're having an event called "Artbots" where we're supposed to design artbots with artistic abilities. I had an idea about a musical robot which takes a song as input, detects the notes in the…
ameya warty
19
votes
4 answers

Detect only screenshot with FileObserver Android

I am currently developing an application for Android and wanted to know how to detect a screenshot. I tried with FileObserver but the problem is that all events are detected ( when device goes into sleep, message, etc. ) . How to detect only…
Nachding
  • 465
  • 2
  • 10
  • 20
18
votes
6 answers

How to detect memory leaks in QtCreator on Windows?

How can I detect memory leaks in QtCreator on Windows? On the doc, they recommend Memcheck but it only works on Mac and Linux. Any suggestion for Windows?
laurent
  • 88,262
  • 77
  • 290
  • 428
18
votes
3 answers

Python and OpenCV. How do I detect all (filled)circles/round objects in an image?

I am trying to make a program which opens an image, scans it for circles/round shapes and returns the coordinates so that I can use the cv.Circle function to draw circles over the circle detected. My question is: How do I get the coordinates/radii…
Calin
  • 413
  • 2
  • 7
  • 16
18
votes
1 answer

Detect if a file is an MP3 file?

I'm writing a C++ library for decoding and encoding audio between different formats/codecs. I have a routine for quickly detecting the format before loading the required codec library. For WAV files one can simple look for the ASCII values "RIFF"…
goocreations
  • 2,938
  • 8
  • 37
  • 59
17
votes
3 answers

Detect a screenshot Android

I program in recent years to Android and I wonder something : How to detect when user take a screenshot ? I want that when the user takes a screenshot , we move to the next activity . I tried the method of intercepting an event but there is a…
Nachding
  • 465
  • 2
  • 10
  • 20
17
votes
4 answers

How to AutoDetect/Use IE proxy settings in .net HttpWebRequest

Is it possible to detect/reuse those settings ? How ? The exception i'm getting is This is the exception while connecting to http://www.google.com System.Net.WebException: Unable to connect to the remote server ---> …
Kumar
  • 10,997
  • 13
  • 84
  • 134
16
votes
5 answers

How can I detect 'any' ajax request being completed using jQuery?

I have a page where I can insert some javascript / jquery to manipulate the output. I don't have any other control over the page markup etc. I need to add an extra element via jquery after each present on the page. The issue is that the elements…
Brian Scott
  • 9,221
  • 6
  • 47
  • 68
1
2
3
69 70