country

IP to Country?

Does anyone know of a simple way to retrieve the country for a given IP Address? Preferably in ISO_3166-1 format?...

free country, city database for sql server

have anyone used this before, i need free country, city, IP database for sqlserver ...

Website language: use browser locale or IP address

Hello! For a website we're about to implement automatic country/language selection, but still giving the user the choice to change it. First of all, if the user enters the website using a domain with a country-level TLD they will be presented the correct language by default. But the question is what should the logic be if they come fro...

Source of data for "official" country/region list

Hi everyone, Lately we've started getting issues with outdated countries / regions list being presented to users of our web-application. We currently have a few DB tables to store localized country names along with their regions (states). However as the planet goes, that list is in constant evolution and it's proving to be a pain to...

how to pick a country dropdown selection form item without using database?

I have this PHP code that I use to make a dropdown form selection of country's I would like to eliminate this extra mysql query though and just store the output like in code to on the page However I am lost on how I would have the users country SELECTED If I do not use the query to get the data Please advice <select name="country" styl...

Metasyntactic variables: do you use something else than "foo", "bar" according to your mother tongue

Hello In english, the variables foo and bar are very often used for simple examples, or for anonymous variables (see these three posts for more on these metasyntactic variables (1), (2), (3)) Usually, I often use titi, toto and huhu and it seems that I am not the only french guy to use them. So, they should be different in german, spa...

jquery not working correctly, no errors reported

I am working on a jquery code that has a form country dropdown list USA state dropdown list non-usa state text input box The goal is to have a country dropdown, If a user selects USA then it will show the USA state list and hide the other state text input. If a user selects a country other then the USA then it should HIDE the U...

Is there a way to get a timeZone with (only) a country code (valid ISO-3166 code) ?

Hi everybody, I'm trying to get a TimeZone for a user. For this I have a country code which is a valid ISO Country Code. These codes are the upper-case, two-letter codes as defined by ISO-3166. You can find a full list of these codes at a number of sites, such as: http://www.chemie.fu-berlin.de/diverse/doc/ISO%5F3166.html I think th...

How to create Country-->State/Province--->Zip Code drop down using geonames webservice + asp.net

Hello guys, I'm planning to create a cascading dropdown list of Country--> State/Province--->Zip code using geonames. Do you have any good web service or examples? Your reply is greatly appreciated, Best ...

Where to find reference about IP range of China?

Is there any document that's accurate about this? ...

how can I filter on the second element in a tuple of tuples?

In my model I have a field: country = models.CharField(_('Country'), max_length=2, choices=COUNTRIES) Where COUNTRIES is a tuple of tuples like this: COUNTRIES = ( ('AF', _('Afghanistan')), ... and so on Now I want to filter an instance of that model, by the country name. This: i = MyModel.objects.filter(country__iexac...

How to set language of web page determined by visitor language

Hi everyone, Can someone tell me how to set language of a web page on the knowledge of IP address of visitor so that he automatically gets page in his country's language. Of course if that language is implemented by web developer. Even better I sow some examples of automatic Google translation of the text. So how to achieve that visit...

How to get current country name on Windows 95, NT 3.51

I want to get current country code for oldest Windows systems. I was using GetLocaleInfo() with LOCALE_ICOUNTRY flag, but then I've realized it returns wrong results (the same values for different countries), so I've tried LOCALE_SISO3166CTRYNAME which returns country code in ISO3166 standard 2 letters code (eg. 'US') http://www.iso.or...

Country Codes to Country Names conversion

Hi, I'm building the registration part of a mobile site and I need to retrieve the country name from the country code of a mobile phone number (eg. +1 corresponds to United States). Is there any publicly available code/database that will have this info. Ive tried searching but all I come up with is the conversion of country prefixes ...

How do you detect a website visitor's country (Specifically, US or not)?

I need to show different links for US and non-US visitors to my site. This is for convenience only, so I am not looking for a super-high degree of accuracy, and security or spoofing are not a concern. I know there are geotargeting services and lists, but this seems like overkill since I only need to determine (roughly) if the person is...

How to get user region/country information in web-applicaiton?

My main purpose is to show different page to different country(language) people. I think it should be based on the user region/country, which I guess can fetch out from ip address? example: *For EN country people, they would see this. www.example.com *For Japanese, they would dispatch to this. www.example.com/jp Also I saw some people...

Where can I get up to date country list?

I need to get list of valid countries for web application, is there any list that could be downloaded as XML or similar format, so that I could atomatically update country list? ...

How to fill countries in a world map using ASP.NET?

Hi, My client has customers in 100 countries in which a customer can have access to more than a country. So, to show visual appearance to the customer, our client want to show world map and fill each country with a different color where the customer has access to. Is there anyway to do this in ASP.NET? If not ASP.NET, Is their any thi...

Track user's country in PHP & MySQL

Hi, I'm creating a URL Shortening website. I want to allow users to view the stats for the links. I planned to do Country stats. I think I should use a library similar to GeoIP for PHP to get the country, but, how can be the MySQL. My weakness is the design of the MySQL tables. Can you recommend me a table format, please? ...

need to include one file or another based on visitor country

Visitors from either of 3 countries - New Zealand, Fiji or India - need a different content page respectively. The site is written in PHP, the content is in HTML files ready to be included.... I'm a newb; please be patient!! ...