location

GPS Location takes a few seconds to be retrieved

Hi all, I have written an iPhone app that uses the iPhone's relative GPS location. I have a button in the user interface that does reverse geolocation (pulls the street name bases on the lat and long). The only problem is that the location object as retrieved by CLLocation *location = [[self locationManager] location]; is nil if th...

WPF Application moves offscreen during remote access session

Hi, i have a problem in which i am hoping to find the best and easiest to implement solution. I have written a WPF application which can be dragged around the desktop but i usually put it in the top right hand corner of the screen. My problem is that when i remote dial in from another location - where the resolution is always lower - ...

Webapplication - location selection from geo database

Hello, I'm currently modelling the user profile of my current project (in Rails btw). The user should be able to set the country, state and city he lives in. Instead of doing this through simple input fields I'd like to have some - kind of - nested selection boxes. I think of it like this: first select your continent. Then a list with ...

location based application

Hi all. I am building an application that that will allow people to post information in different areas of a city (for about 10 cities). Do you guys know of any existing (normalized) databases/datasets that have this kind of information? Or would I need to create one from scratch? Any pointers suggestions very much appreciated! ...

How to get OS X to set initial location of NSWindow

How do I get OS X to place NSWindows in a reasonable default tiled-like location? Like when I open TextEdit and create 10 documents, I see all the windows as having the same size, but somebody is smart enough to place them offset from each other a bit. I'm sure that the app isn't doing this itself in code. (I need a code-based, not NI...

What is the best way of displaying items close to someone on a page using php

Basically, I want to display local events to people on a page. So if you were from California you would have different things than someone from Florida. I am going to be using php for the rest of the project so php is a must. I would prefer to get the data without having to ask the user for additional information. IF I have to ask fo...

Find current geographic coordinates from Python script

Hi, I'm tying to get a certain Python script (although I guess it isn't really the language that's going to matter here) to find out the current geographic location of the machine running it. As you might have guessed, it's a little script that reports my laptop's location when it boots and stuff :) Is there any free web service or API t...

How to find the position or location of string in given document.

How to find the position or location of string in given document.I have one word document and i want to store all its words and word positions in database so thats why i need to find the position of the words. so please tell me how can i find position or location of word or string in given document. Thanks in Advance. Dhiraj ...

my layout breaks in IE7 and javascript page reloads make the screen blink

My layout breaks if I change the window size in IE7/AOL, so I added a simple javascript function that fires on window.onresize, but no matter how I change the location I get problems. It was suggested I post a link and here it is: link text I already use PHP to detect browser and include an IE7-only inline stylesheet (and for mobile b...

Using the CloudMade API or some other geosearching API to get tourism spots?

I've been looking for an online geosearch API such that I can get location data for tourism spots, e.g. historic landmarks, tourism information locations, castles, etc. I'm not looking for a map image, but rather a list of location tagged data. I've played with CloudMade, but none of the object types seems to returning anything like the ...

.NET form - setting location changes size

I'm working on an app that shows its forms as a series of modal windows stacked on eachother. All forms are placed to the center of the screen. When the user moves the form around the screen, only the topmost one moves, others remain at the center and cannot be moved as they are blocked by the topmost dialog. I'm trying to code a form-m...

JSP: where system.out.println prints ?

Where does tomcat puts the System.out.println output ? i'm not interested in OUT.println, i'm using a system that use system.out to log issues, like login sucess/fail, and i need to look to that generated "log". tnx!! ...

Create new C++ object at specific memory address?

Is it possible in C++ to create a new object at a specific memory location? I have a block of shared memory in which I would like to create an object. Is this possible? ...

Where can i find cities neighborhoods database?

Hey Folks, Where can i find (free/not-free) database of cities neighborhoods for MySQL ? Interested in US only areas. Any recommendations? The database would help to identify location by zipcode. I`ve already got database showing city and state. But i need to find neighborhoods around. I saw good example on site called http://www.ood...

how to get Route directions between two points on a map to draw driving directions?

is there a way to use core location or google or some other api to provide two points on the map and get the resulting set of latitude/longitude pairs for the route? i have seen in this tutorial Drawing polyines or routes on a MKMapView that how to draw driving direction using core graphics...but in the sample code it has route.csv whic...

Using the showUserLocation property of MKMapView

I have an app at the moment which shows various pins on a map. I've tried setting mapView.showsUserLocation = YES; to show the user's current pos, however this crashed my app ("Program received signal: SIGABRT") with the following error message: Mon Oct 19 12:31:27 unknown Hull Ads[3111] <Error>: *** -[MKUserLocation counter]: unrecogni...

How to force a page to reload if all what was changed in url is hash?

I am trying to reload current page with different url hash, but it doesn't work as expected. (Clarification how I want it to work: Reload the page and then scroll to the new hash.) Approach #1: window.location.hash = "#" + newhash; Only scrolls to this anchor without reloading the page. Approach #2: window.location.hash = "#" + ne...

How to determine if a file is in a removable drive or in the local drive

How do you determine if a file is on a removable drive or in the local drive in vc++? ...

Jquery Update Browser Location, Don't Redirect

I'm building a series of basic accordions for a project. We want them to have static, linkable pages. So we've created invidividual pages for each of the open states as well. For example, /whoweare is the main slider. But we have a sub slider located at /whoweare/whatwedo What I'm looking to have done is, when a user clicks a heade...

How to calculate distance between two places? Is there any service available by Google Map for iphone?

I want to put facility to display distance between two places selected by user. Is there any sample source code / service available to do so? Thanks in advance. ...