location

check if a user allows the app to use their location

The first time the app tries to get the users location they are prompted with "Would like to use your current location" and they can hit Don't allow or ok. Is there any way to find out if the user has hit ok or don't allow? I'm trying to have the MKMapView show the users current location but I would like to take different actions based...

Overriding OnControlAdded

I'm trying to replace a control as soon as it's added to my panel derived class in the gui editor. But this simple code doesn't seem to work and the control is not replaced. Any ideas? protected override void OnControlAdded(System.Windows.Forms.ControlEventArgs e) { base.OnControlAdded(e); e.Control.Location = new Sy...

how to setup mkmapview to display pois at 100 meters range from my current location?

i have 200 pois in my app. i want to display the nearest pois to the user within 100 meters range in a mapview. How is this possible? ...

Google Gears Geolocation in Java/C

Hi (first question) I'm trying to find the physical location of a computer using a language like Java/C. The only good accurate solution seems to be Google Gears (http://code.google.com/apis/gears/api%5Fgeolocation.html). MaxMind have an API but it only uses IP addresses and seems very inaccurate (I want the exact address whenever possi...

WPF - automatically relocating children when parent resizes

I have a container whose size can change. I will by dynamically creating instances of a user control and adding them to that container. the size of the user control is fixed. what I want to do is, fit the most number of user controls in the container. I think a good approach is to add the children horizontally until there is no more sp...

How to get exact position of a Canvas (Java)

In my code, I use mouse coordinates to interact with the program. From there, something must be drawn at the mouse's location. However, the getX()/getY() methods for the Canvas return the values of the window holding the Canvas, but when I go to draw, (0,0) is located slightly to the right and below (past the bars) the top left of the wi...

Is there any service returning ZIP Codes on given city/satate ?

Hi, is there any server available that i can use for getting zip codes on the basis on city/state ? Thanks ...

Programming a Location Grid Map in C#

I would like to know if there are any inbuilt controls in C# with which I can program location grid maps on a X/Y Plane. ...

Jqgrid Modal Popup Problem

Hello all, I've placed two jqgrid fully customizable tables with add, delete, ...etc buttons. Everything works perfect for the first table. But I've problems with the second table. When i click for instance to delete button, the modal confirmation popup doesn't appear at the right location. It appears outside the visible area and i can ...

Geo Location based iPhone Applcation

Hi, Anyone having sample application links which could help me to find locations near by me? Thanks in advance. ...

Replace link location (jQuery)

<a href="http://www.google.com"&gt;link&lt;/a&gt; How do I replace link location from google.com to say "#"? $('a').attr( 'href', '#' ); isn't working. ...

java - get mouse events outside of a component

i'm having the same issue as the person here, in that i need to track a frame location while it is being dragged on OS X. The question had not been resolved there, so: how do i tell a frame that a mouse down event happened on its (OS-native) title bar or, more generally, that a mouse down event happened somewhere on the screen? ...

Where does git config --global get written to?

Using the git config --global command to set things up, where is the file? eg : git config --global core.editor "blah" Its not at these places :- C:\Program Files\Git\etc\gitconfig C:\myapp.git\config I have not env set? git version 1.6.5.1.1367.gcd48 on Windows7 ...

How does the iPhone learn new WiFi locations in terms of using them for location estimates

I know the iPhone can and does use WiFi proximity to get approximate location. This obviously only can occur when some database in the sky knows the approximate location of that WiFi hotspot. My question is how do hotspots get into that db? Is it automatically added whenever the iPhone has a reasonably accurate GPS position and detects t...

Where can I find the source code of the "build" classes in Java?

In the beginning of my Java code I have: import java.awt.BorderLayout; import java.awt.Container; import java.awt.Dimension; import java.awt.event.*; import javax.swing.*; And then I have the following: public class KeyEventDemo extends JFrame implements KeyListener, ActionListener I am trying to understand what the...

Why does my LocationListener become null?

I am having issues regarding a LocationListener in my Service called myService. Here is my code: ///onStart method .. onStart() { locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE) . . provider = locationManager.getBestProvider(criteria, true); locationListener = (LocationListener) new M...

web proxy handling window.location redirecting

Hello, I'm working on a web proxy and I have problem when a sites is using javascript redirect by doing a window.location = "http://newurl.com"; Is there some way to intercept this and rewrite the url to this format "proxt?url=http://newurl.com" In Firefox its easy, function locationWatcher(id, oldURL, newURL) { return parseUR...

JavaME: ProximityListener destroyed/unregisterd after one use?

Hello, I got the following problem: We registered different ProximityListeners in JavaME to a LocationProvider. Everything works fine with the external events emulation, and the proximityEvent method is triggered correctly. Problem: After "one usage", the method is not triggered anymore. The LocationProvider still works good, because th...

where to store .properties file for use in c++ dll

Hi, I created a .properties file that contains a few simple key = value pairs. I tried it out from a sample c++ console application, using imported java classes, and I was able to access it, no problem. Now, I am trying to use it in the same way, from a C++ dll, which is being called by another (unmanaged) c++ project. For some reason...

How do I cache at both client & server when VaryByParam != "none"?

I'm looking for a way to cache a page at both the client and the server while varying the server's output cache by a querystring parameter "Version". With this tag: <%@ OutputCache Duration="10" Location="Any" VaryByParam="none" %> I get these headers: HTTP/1.1 200 OK Cache-Control: public Content-Type: text/html; charset=utf-8 Expi...