location

Redirect to a web server depending on location with nginx

Im working on a web site that has to be reachable from many countries under the same domain. Id like to know how can I receive a request with nginx (or any other static file server), and send it to different web servers depending on IP's location. I mean, what is the point on having multiple db machines on country A and B, if the serve...

VB.net nearest control

Is there an easy way to get the nearest control to a control of choice? I have a picture box and some other moving controls. I want to delete the nearest control to my picture box. So I have to get the position of all controls and delete that with the Location nearest to the Location of my picture box. I'm not sure about how to do that...

How to convert Iphone:37.615319,-122.388293 In Twitter to real life location? Is there an API available?

HI, Does anyone know that how to convert IPHONE:37.615319,-122.388293 ( I am guessing that is the longitude and latitude of the location) in Twitter to real life location? Is there an API available ? Thanks very much, Ling ...

Is this application possible with the twitter api?

I have to make an application where a "sender" can send a message to a group of people and to a location. So when a member of the group reach this place (using location position with the cell phone), he receives all the messages for this location. I have thought to make the application using the twitter API, but I'm not really sure if th...

Is there an API convert long/lat to city,country rather than Google API

Hi All, Is there an API convert long/lat to city,country rather than Google API? I found that geonames does not give the city. Thanks, Ling ...

where to find Ubercart translation files

I am trying to update language specific text files ("po files") for Ubercart, but it is unclear who/where these files are maintained. There are several places sited but I am not sure which is maintained? http://ftp.drupal.org/files/translations/6.x/ubercart/ http://l10n.privnet.biz/translation_group/ Also a description of how to do t...

Does iPhone SDK have a trip duration API?

Does iPhone have a trip duration API or is the only option to use google's getDuration()? Thanks. ...

How to check location of 32bit Program FIles folder in windows .bat script

I want to write .bat script which works under all flavours of Windows, no matter if 32 or 64 bit. In this script I want to run some file.exe. That file is located in C:\Program Files\ under 32-bit systems or C:\Program FIles (x86)\ under x64 systems. I can write: "%ProgramFiles(x86)%\file.exe" under 64bit systems or "%ProgramFiles%\fil...

I Cannot retrieve ARPINSTALLLOCATION so we know where to install a new version

I am trying to retrieve the ARPINSTALLLOCATION during the installation of a Major Upgrade version of the software. Following this info I managed to set the ARPINSTALLLOCATION to the custom path. However, retrieving it again isn't working. I've tried many things over the past days but it keeps defaulting back to the default installation...

How can I figure out a users postal code if I have their latitude / longitude location? Need help writing a query.

I'm using HTML5 geolocation to collect the users lat / long and I need to figure out what their postal code is as well. I have a database of all the lat / long for each postal code in the US & Canada. How can I write a query to find out what their postal code is? Below, is an example of how the data is structured in the 'zips' table. ...

Is there an API for listing all the twitters of one specific location?

Dear all, Does any one know if there is an API for listing all the twitters within a location. Cause in Twitter Search API, it functions to list all the twits of specific locations, but not the twitters. Thanks, Lingchen ...

Test if links are external with jQuery / javascript?

How do I test to see if links are external or internal? Please note: I cannot hard code the local domain. I cannot test for "http". I could just as easily be linking to my own site with an http absolute link. I want to use jQuery / javascript, not css. I suspect the answer lies somewhere in location.href, but the solution evades me. ...

android get location from best provider available

Hi, I have this code to get the best available provider lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); locationListener = new MyLocationListener(); Criteria criteria = new Criteria(); criteria.setAccuracy(Criteria.ACCURACY_FINE); String provider = lm.getBestProvider(criteria, true); Location mostRecentLocati...

how to get geographical location from co-ordinates using jde 4.5

Hi, How can I get the geographical location (Address) from the co-ordinates in Blackberry jde 4.5. Thanks and regards, Vivek Birdi. ...

Can you restrict the location of input type=file?

Is there a way to restrict the user to a folder on the server when they choose to browse for a file using the input type=file button? for example: If you have images you want the user to choose from that only exist in the server's image folder to prevent them from search for and uploading their own images. ...

php redirect and querystring

i have script <?php $to = $_GET["to"]; header("Location: $to"); ?> if i call script such out.php?to=http://site.ru/page.php?param1=1&amp;param2=2 in param $to be only http://site.ru/page.php?param1=1&amp; how to fix? i want that $to = http://site.ru/page.php?param1=1&amp;param2=2 ...

Rewrite document.location without loading

I am developing a system which is 100% ajax, except of course, the first request. I am interested in changing the address in document.location, using javascript. But I don't want the browser to load the page on that "new" location. Does anyone know how I can do this? miro ...

How to implement geo-based data store and computation?

Well, let me explain this briefly: 1.I want to build a website that provides location based services, like http://fireeagle.yahoo.net/ . 2.I guess most of these services have something do with longitude and latitude. 3.Is there any particular database/datastore/data structures fit well for such apps? I mean easy to store longitude, la...

Button click does not start Service in Android App Widget

I'm having trouble starting a Service to update an AppWidget that I'm creating as an exercise. I'm trying to get the latitude and longitude of spoofed location data from DDMS to display in the widget. The widget uses a service to update the TextView, which may be slightly overkill, but I wanted to follow the template that seems to be co...

How to associate Wi-Fi beacon info with a virtual "location"?

We have a piece of embedded hardware that will sense 802.11 beacons, and we're using this to make a map of currently visible bssid -> signalStrength. Given this map, we would like to make a determination: Is this likely to be a location I have been to before? If so, what is its ID? If not, I should remember this location: generate a ...