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
15
votes
2 answers

detecting infinite array recursion in PHP?

i've just reworked my recursion detection algorithm in my pet project dump_r() https://github.com/leeoniya/dump_r.php detecting object recursion is not too difficult - you use spl_object_hash() to get the unique internal id of the object instance,…
leeoniya
  • 1,071
  • 1
  • 9
  • 25
14
votes
2 answers

Detect if input was touched (tablet) or clicked (mouse)

We are developing a Web-App, which launches on Desktop and on tablets (iPad, Android or a surface). Now we are building our own keyboard for number inputs. When you set the focus on an input field with a mousclick, the costum keyboard opens correct.…
webta.st.ic
  • 4,781
  • 6
  • 48
  • 98
14
votes
4 answers

Android - Detect doubletap AND tripletap on view

I've been trying to build a tap detector that can detect both double and tripe tap. After my efforts failed I searched a long time on the net to find something ready to use but no luck! It's strange that libraries for something like this are so…
user2484359
14
votes
3 answers

How can i detect if (float)0 == 0 or null in PHP

If variable value is 0 (float) it will pass all these tests: $test = round(0, 2); //$test=(float)0 if($test == null) echo "var is null"; if($test == 0) echo "var is 0"; if($test == false) echo "var is…
mrfazolka
  • 780
  • 1
  • 7
  • 24
14
votes
2 answers

How to programmatically detect if the iCloud is enabled on user's device when only use NSUbiquitousKeyValueStore?

I am using NSUbiquitousKeyValueStore to sync some preference data to iCloud. I found that if the user disable "Document & Data" item of iCloud in "Setting App", NSUbiquitousKeyValueStore can not synchronize its data to iCloud. So, I want to first…
Jagie
  • 2,190
  • 3
  • 27
  • 25
13
votes
1 answer

How to "correctly" detect DPI of display with Java?

I have the following app that draws a rule : public class Rule extends JComponent { public static final long serialVersionUID=26362862L; // public static final int INCH=Toolkit.getDefaultToolkit().getScreenResolution(); public static final int…
Frank
  • 30,590
  • 58
  • 161
  • 244
13
votes
9 answers

Detect if a user has typed an emoji character in UITextView

I have a UITextView and I need to detect if a user enters an emoji character. I would think that just checking the unicode value of the newest character would suffice but with the new emoji 2s, some characters are scattered all throughout the…
Albert Renshaw
  • 17,282
  • 18
  • 107
  • 195
13
votes
2 answers

Detect when application is closed

I want to know when the app is closed, because I need to erase a Database when the user shutdown the app, just in the moment when the user close the app is the right moment to erase the SQLite Database, how can I detect this?
JLouis
  • 284
  • 1
  • 5
  • 18
12
votes
3 answers

detect if font download in IE is enabled

Is there a way to detect whether the font download property in internet explorer is disabled or enabled? Currently if I were to implement an @font-face solution (font-squirrel or typekit or other) for font-rendering, all browsers will play nice…
Scorpius
  • 999
  • 1
  • 10
  • 22
12
votes
4 answers

Detect IE8 64bit in Javascript

Hey there, I just wondered if there is a method to detect if the 64bit or 32bit Version of IE8 is running? Because there are some major Bugs in the Facebook Javascript SDK which only occure in IE8x64...
Christian Engel
  • 3,738
  • 5
  • 28
  • 44
12
votes
1 answer

RANSAC Algorithm

Can anybody please show me how to use RANSAC algorithm to select common feature points in two images which have a certain portion of overlap? The problem came out from feature based image stitching.
view
  • 555
  • 2
  • 11
  • 16
12
votes
6 answers

Batch file: Check if OS is Windows 10

I want to make a batch file which will do the following operation: checks if the running OS is windows. If it is than it should print Hello. Im win 10 else should print other message. How can i do this if condition? Pseudocode: if OS == Win10 then …
Martin Rezyne
  • 445
  • 3
  • 9
  • 24
12
votes
3 answers

Detect and record a sound with python

I'm using this program to record a sound in python: Detect & Record Audio in Python I want to change the program to start recording when sound is detected by the sound card input. Probably should compare the input sound level in chunk, but how do…
Jean-Pierre
  • 225
  • 2
  • 4
  • 7
12
votes
3 answers

How to find, with Java, if a certain font is installed correctly on a machine

I have a PC notebook running Win Vista, when I first bought it, certain Chinese fonts won't show up, I could only see rectangles, but I played with the control setting for a while, changed some properties, and now it shows Chinese fonts correctly,…
Frank
  • 30,590
  • 58
  • 161
  • 244
12
votes
2 answers

Detecting HTML5 video play/pause state with jQuery

I'm building a jQuery slideshow which will feature an HTML5 video player on one of the slides. Is there any way to get the jQuery slideshow to pause from its otherwise automatically running state, when it detects that the video is playing, besides a…
Jules
  • 14,200
  • 13
  • 56
  • 101
1 2
3
69 70