Questions tagged [country]
448 questions
3
votes
3 answers
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…

kinopyo
- 1,667
- 3
- 19
- 26
3
votes
0 answers
Android In-App Billing Tax
I've implemented in-app billing in our app. All is working well. However, we're asked if we could determine the exact tax on each purchase to be sent later to a server for real-time tracking purposes, and the sales report from Android Developer…

hadez30
- 503
- 5
- 18
3
votes
1 answer
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…

Bartosz Wójcik
- 1,079
- 2
- 13
- 31
3
votes
1 answer
List of common Date (and Time) formats by country/culture
Is there some kind of list of all common Date (and Time) formats?
One of our customers had a problem inputting a date, because he was using something like this:
2003. 11. 9.
I already found this very good wiki…

Marc
- 1,531
- 1
- 11
- 14
3
votes
2 answers
Is it possible to restrict an application distribution on Amazon appstore based on the country?
I want to publish an Android application on the Amazon Appstore, but I need to restrict availability and distribution of this application to Canada only.
Is it possible?

shuot
- 67
- 9
3
votes
1 answer
Unable to sort an array in Ruby code
The following code found that it was not be able to sort an array.
For some reasons, the last item "Aland Islands" was located in the last for this array, but it should be located in between "Afghanistan" and "Albania".
And this occurs just in case…

diveintohacking
- 4,783
- 6
- 29
- 43
3
votes
3 answers
Convert .txt to .sql - Contains a list of country, state, city, .. names
I've been googling a lot for a SQL database with all (or the many as posible) the cities of the world,
But the best I've found is a .txt file with a format such as:
-1049671 Kassel agglomeration 323216
-1049670 …

Toni Michel Caubet
- 19,333
- 56
- 202
- 378
3
votes
2 answers
Which would be the best scalable way to redirect users by country?
I have a website that in a few months is going to have traffic from different countries,
but it would depend on the country which website I should show.
At the moment I am redirecting the traffic using the free maxmind GeoIp,
with php.
But I…

Saikios
- 3,623
- 7
- 37
- 51
2
votes
1 answer
Mark country boundaries - iPad (With or Without MapKit)
I would like to color (fill and/or stroke) a country boundaries (boarders), say you have a world map and the user picked Italy, the boarders of italy will be stroked and the area of Italy will be filled with a color.
It would be very nice if the…

chewy
- 8,207
- 6
- 42
- 70
2
votes
4 answers
asp.net mvc 3 - MVC 3 Razor: Country selection drop down list
My controller action code:
ViewBag.country = from p in CultureInfo.GetCultures(CultureTypes.AllCultures & ~CultureTypes.NeutralCultures)
select new SelectListItem
{
…

Jesi
- 205
- 1
- 5
- 9
2
votes
1 answer
Is there a package/function in R that will identify country/continent?
Is there a function or package in R that extracts the relevant country and it's corresponding continent from a string variable?
Each observation in the variable is coded like this:
df<- c("random,thing,thing, United States", "site, level, state,…

Mr. Biggums
- 197
- 8
2
votes
1 answer
Correcting country names to make them match a different naming convention
I want to make a world map with ggplot as follows:
library(ggplot2)
library(countrycodes)
library(dplyr)
library(tidyverse)
worldmap_AMIS_Market <- map_data("world")
# Set colors
vec_AMIS_Market <- c("Canada", "China","United States of America",…

Tom
- 2,173
- 1
- 17
- 44
2
votes
1 answer
How to find the states/cities of any country in WooCommerce
I know that according to the method below I can get the country in woocommerce:
global $woocommerce;
$woocommerce->customer->get_shipping_country()
or
WC()->customer->get_shipping_country()
But I want to know that how to find the states/cities of…

Md. Mehedi Hassan
- 93
- 1
- 7
2
votes
2 answers
Can I Set the Country in Bogus (C#)
I've just started working with Bogus in C# .net 5.0.
I am managing to return very usable data in a sandbox app but I want to restrict the the data to be USA based. Is there a way to do this? (here's part of my sandbox app)
using Bogus;
namespace…

john rains
- 321
- 3
- 8
2
votes
2 answers
Display a text after cart and checkout totals for specific countries in Woocommerce
I need to display a message in the Woocommerce order-total cell after the price, but only if the customer's country is US or Canada. I have this
add_filter( 'woocommerce_cart_totals_order_total_html', 'custom_total_message_html', 10, 1 );
function…

hara55
- 67
- 5