Questions tagged [proximity]

A proximity (sensor) is a sensor able to detect the presence of nearby objects without any physical contact.

Proximity sensing is the ability of a device to tell when it is near an object, or when something is near it. This sense keeps a device from running into things. It can also be used to measure the distance from a device to some object.

456 questions
10
votes
1 answer

Android proximity sensor issue only in Samsung devices

Specific scenario to avoid problems: Behaviour for Activity in Samsung devices was different in the manner that every time there was a change detected, for proximity, it resulted in a call to onPause()/onResume() ONLY on SAMSUNG devices. I was…
Pararth
  • 8,114
  • 4
  • 34
  • 51
10
votes
3 answers

Proximity Matrix - Random Forest , R

I am using the randomForest package in R, which allows to calculate the proximity matrix (P). In the description of the package it describes the parameter as: "if proximity=TRUE when randomForest is called, a matrix of proximity measures among the…
banbar
  • 299
  • 2
  • 4
  • 13
10
votes
1 answer

How to control Android proximity sensor?

Can someone provide an example as to how to use the proximity sensor? Please describe some event and how to use them.
Maysam
  • 523
  • 4
  • 16
10
votes
0 answers

Can I combine fuzzy and proximity searches in Apache Lucene's standard syntax?

I am searching a codebase indexed by OpenGrok, the -a option has been enabled to allow the first character of a search term to be a wildcard. I would like to find all occurrences of method foo that take some string parameter (foo("") with one or…
MilesHampson
  • 2,069
  • 24
  • 43
9
votes
1 answer

Can a broadcastReceiver catch multiple broadcasts?

I am trying to create multiple proximity alerts but I cant get it to work... I think that the broadcast receiver gets overwritten and thus is handling only the last broadcast. So if I had two points close by only the one whose intent was created…
mixkat
  • 3,883
  • 10
  • 40
  • 58
9
votes
5 answers

Proximity sensor in Swift (from Objective-C)

I'm a relatively new user to swift and now, I need to take advantage of the proximity sensor of an iPhone. I don't matter the distance, but I want to know when something is near the iPhone. So I found this code in Objective-C that worked, but I need…
Dani G.
  • 577
  • 8
  • 21
9
votes
1 answer

Lucene Proximity Search for phrase with more than two words

Lucene's manual has explained the meaning of proximity search for a phrase with two words clearly, such as the "jakarta apache"~10 example in http://lucene.apache.org/core/2_9_4/queryparsersyntax.html#Proximity Searches However, I am wondering what…
dwdwdw
  • 93
  • 1
  • 3
8
votes
7 answers

Determine nearest mirror PHP

I maintain a site with a bunch of downloadable files. It is currently hosted on a server in the U.S., but I have recently acquired a new server in Germany. I would like to mirror the downloads to the server in Germany, and have a PHP script on the…
Ashley Strout
  • 6,107
  • 5
  • 25
  • 45
8
votes
7 answers

Help with PROXIMITY_SCREEN_OFF_WAKE_LOCK in Android

I've enabled the proximity wakelock in my app, and it turns off the screen when the proximity sensor detects something. But there is a problem when the screen wakes back up -- it goes to the lockscreen, not my app. This happens regardless of the…
user496854
  • 6,461
  • 10
  • 47
  • 84
8
votes
3 answers

sort numpy array elements by the value of a condition on the elements

I need to sort a numpy array of points by increasing distance from another point. import numpy as np def dist(i,j,ip,jp): return np.sqrt((i-ip)**2+(j-jp)**2) arr = np.array([[0,0],[1,2],[4,1]]) What I would like to do is use function…
kevinkayaks
  • 2,636
  • 1
  • 14
  • 30
7
votes
5 answers

Missing results due to geo proximity formula (store locator)

OK - I've been wrestling with this for about 3 months on and off and since I've exhausted every geo proximity formula out there that I've come across and I'm no closer to getting the right results I figured it time to ask for some help. THE AIM I'm…
FourStacks
  • 586
  • 3
  • 12
7
votes
1 answer

Proximity Beacon API vs Android Beacon Library?

I'm new with the beacon technology and I have some doubts. What is the difference (who is better) between the Proximity Beacon API vs Android Beacon Library? Proximity Beacon API is completely free? I was searching and I saw in the Google Developer…
Luis E. Vega
  • 399
  • 2
  • 14
7
votes
1 answer

Elasticsearch complex proximity query

Given that I have a query like below: council* W/5 (tip OR tips) The above query can be translated as: Find anything that has council* and (tip OR tips) no more than 5 words apart. So following text will match: Shellharbour City Council…
Van Thoai Nguyen
  • 986
  • 9
  • 22
7
votes
1 answer

Is it possible to perform multiple transactions with an NFC tag or device? (i.e. read more than once)

According to this Nokia developer's page, you can read an NFC tag with the SubscribeForMessage method: http://www.developer.nokia.com/Community/Wiki/Use_NFC_tags_with_Windows_Phone_8 There is a 'tip' below the read tag code: Warning: To receive a…
Sam
  • 3,453
  • 1
  • 33
  • 57
7
votes
2 answers

How to test proximity of lines (Hough transform) in OpenCV

(This is a follow-up from this previous question). I was able to successfully use OpenCV / Hough transforms to detect lines in pictures (scanned text); at first it would detect many many lines (at least one line per line of text), but by adjusting…
Bambax
  • 2,920
  • 6
  • 34
  • 43
1
2
3
30 31