Questions tagged [region]

Can refer to many different things depending on the use of other tags with it.

768 questions
4
votes
1 answer

How to calculate an area of a Windows region (HRGN) in pixels?

What is the fastest way of getting the area of any arbitrary Windows region? I know I can enumerate all points of bounding rectangle and call the PtInRegion() function but it seems not very fast. Maybe you know some faster way?
Andrew
  • 3,696
  • 3
  • 40
  • 71
4
votes
1 answer

Centering Map around multiple points (annotations) on the map - Titanium mobile

I have multiple annotations on the map - although the user may need to scroll to see them. I want the user to be able to select a button to fit them all on the map - eliminating the need to scroll/manually resize. I have determined the min. and max.…
nigel
  • 43
  • 3
3
votes
2 answers

CLLocationManager's region monitoring vs significant location change

In the documentation, it's not clear how region monitoring is implemented. Is it purely based on significant location change, or is it a mixture of significant location change and standard location service?
lichen19853
  • 1,410
  • 2
  • 14
  • 21
3
votes
2 answers

Find "regional" relationships in SQL data using a query, or SSIS

Edit for clarification: I am compiling data weekly, based on Zip_Code, but some Zip_Codes are redundant. I know I should be able to compile a small amount of data, and derive the redundant zip_codes if I can establish relationships. I want to…
Mr. Tim
  • 886
  • 8
  • 18
3
votes
1 answer

How to get the view from a region in PRISM?

I'm using PRISM and I'm trying to get the view, but returns null the function GetView(). What am I doing wrong? public void Initialize() { _regionManager.RegisterViewWithRegion("TopLeftRegion", () => _container.Resolve()); …
Darf Zon
  • 6,268
  • 20
  • 90
  • 149
3
votes
1 answer

Android Region Monitoring?

Is there something similar in Android to the iOS version of region monitoring? I've only come across the Region class in Android, and I think to achieve something similar would require quite a bit of coding.
Maurice
  • 6,413
  • 13
  • 51
  • 76
3
votes
2 answers

Need to find a way to extract coordinates of shaded region from an image file

I have an image file that has pizza shaped shaded regions in it: I need a way to extract the coordinates of the shaded region so i can use them in html code to make the area clickable. This needs to be done dynamically as i have thousands of…
3
votes
1 answer

"ERROR: (gcloud.functions.call) ResponseError: status=[404], code=[Ok], message=[Function XYZ in region us-central1 in project ABC does not exist]"

I am testing a cloud function. When I run it from the "Testing" tab, online, and I paste the json dictionary as the argument to be passed as the request variable of the cloud function in the "Triggering event" editor…
3
votes
3 answers

How to trigger a video when a user reaches a certain location?

This is my CoreLocationController.h objective c class #import #import #import extern const CLLocationAccuracy kCLLocationAccuracyBest; @protocol…
hara
  • 27
  • 3
3
votes
1 answer

How to set iPhone app language and region in main.h overriding Settings value

In a case when you want a App in a language/region/format other than selected iPhone settings value. Example a App with it's own internal language settings. I know how to change the language, but what about the region/format? To easily override the…
David Allansson
  • 384
  • 1
  • 8
3
votes
4 answers

Incomplete list of timezones generated by PHP

I've tried generating the complete set of timezones as specified in http://php.net/manual/en/timezones.php (except UTC) by using the following code: $zones = timezone_identifiers_list(); print_r($zones); But this list seems to skip ~ 50 regions,…
siliconpi
  • 8,105
  • 18
  • 69
  • 107
3
votes
2 answers

Google Cloud Function Deploy Error when using europe-west1

I am using cloud function to deploy a python function (version=3.7, memory=1go and timeout=1s). So far, it perfectly works. However, I've noticed that, by default, the cloud function has its region set to us-central1. I need my function to be in…
azertyuiop
  • 43
  • 1
  • 5
3
votes
1 answer

Algorithm to evaluate pixels based on the minimum amount of line segments required to reach a certain point, while only crossing valid areas?

Given a 2D pixel array where any pixel can be either 0 or 1, what algorithm would output a new 2D pixel array, where each pixel with a value of 1 would get a new value based on the minimum amount of line segments required to reach a specific "light…
3
votes
1 answer

I am unable to make a ContentControl a region using Prism

I'm building a prism application and I've setup the shell with a hamburgermenu from MahApps. Within the content of that Hamburgermenu I would like to have a region. But when I try to make a region out of a ContentControl within…
Tjulu
  • 79
  • 1
  • 9
3
votes
1 answer

Octave fminunc "trust region become excessively small"

I am trying to run a linear regression using fminunc to optimize my parameters. However, while the code never fails, the fminunc function seems to only be running once and not converging. The exit flag that the fminunc funtion returns is -3, which -…
feargmac
  • 41
  • 4