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 define keybinding inside a marked region

I have a idea to mark regions in emacs easier. I press C-SPC to start. I use a vi style key to extend selection. such as "j" : line down "k": line up instead of using arrow key or C-n, C-p, a singe char is easier to press When finish…
textpattern
  • 397
  • 3
  • 14
4
votes
1 answer

Why is the zone "asia-northeast1-a" showing up as in California instead of Japan

According to https://cloud.google.com/compute/docs/regions-zones/, the region/zone "asia-northeast1-a/b/c/" should suppose to be in Tokyo, Japan. But once I came up with the virtual machine with that zone/region, an IP trace/lookup website such as…
Clark Kent
  • 41
  • 2
4
votes
6 answers

How to track users location / region in PHP

I'm trying to get the country from which the user is browsing the website so I can work out what currency to show on the website. I have tried using the GET scripts available from: http://api.hostip.info but they just return XX when I test it. If…
diggersworld
  • 12,770
  • 24
  • 84
  • 119
4
votes
1 answer

Switching main view with PRISM

Does anyone know of good tutorial how to switch what module is viewed in main region if i would have a win client that consist of 5 regions, Toolbar, Sidebar (with menu), footer and main regions. I would want to have menu and when i pressed…
aghaux
  • 729
  • 4
  • 14
  • 38
4
votes
1 answer

How to group enums, structures and subclasses in classes?

I've heard bad things about overusing regions but when adding enums to my classes I put them into a #region "Enums" at the end of the class, and do the same with structures and even subclasses. Is there a better/standard way to go about grouping…
Camilo Martin
  • 37,236
  • 20
  • 111
  • 154
4
votes
2 answers

With Prism, how can I inject a scoped RegionManager into a service?

I am developing a Prism application and it contains a TabControl which contains several child regions. Therefore I implemented a custom RegionBehavior, according to the pattern described by Brian Lagunas in his PluralSight course found at…
David
  • 625
  • 6
  • 14
4
votes
2 answers

Hibernate Cache Annotation region attribute doesn't work

I have a spring/springwebflow (app A) application that uses Hibernate second level cache and also query cache. The application only reads from a database, not add/update/delete statements are possible. The queries are being cached to one region…
user3320292
  • 71
  • 1
  • 5
4
votes
1 answer

MKMapView region becomes broken after orientation change in iOS7

We've been having trouble with the MKMapView's region in iOS7. After our app has started and the device has changed UI orientation a couple of times, the values returned by map.region become very strange. They tend to have a sensible longitude span…
Richard Sewell
  • 101
  • 1
  • 5
4
votes
1 answer

Change Azure Standard Website location

Is it possible to change Azure Standard Website location from East US to West US? Is it possible to have different region website in same Standard website plan?
hgirish
  • 173
  • 2
  • 7
4
votes
1 answer

SPARQL string RANGE

I am trying to extract a part of a string by using index numbers. When having "OEIUFHWOIEFWNFOPQWJFHQWOIHFEB..." and I need string from 5:10 (FHWOIE) I found out that it is not possible via REGEX as that returns only boolean and not groups.…
Jasper
  • 628
  • 1
  • 9
  • 19
4
votes
2 answers

How to check if address in within region on Google Maps API

I have an address string E.g. "12 Swiss Ave, Gonville, Wanganui, New Zealand" Given this address I need to work out if the address is within the North or South island of New Zealand. If I pass the address to the google maps api the data I get back…
Hailwood
  • 89,623
  • 107
  • 270
  • 423
4
votes
2 answers

Resharper 7: Sort Method by name, within a #Region

I am trying to sort the methods by name that are in a class in a #region, is there a way? #Region ABCD public void XYZ(){} public void ABC(){} #EndRegion Becomes: #Region ABCD public void ABC(){} public void XYZ(){} #EndRegion Only…
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
4
votes
3 answers

MKMapView : setRegion doesn't work !

Aaaarg... ok, let's calm myself. Did someone have any problem with setting the region of a MKMapView ? It never worked with me. This code : -(void)setUserCenteredSpan:(MKCoordinateSpan)span{ // for this example, span = {0.5, 0.5} // Current…
Martin
  • 11,881
  • 6
  • 64
  • 110
4
votes
2 answers

drupal 7 not rendering custom region

My issue is that I added a new region to my .info file for a second sidebar. After, I attached blocks to it in the structure > blocks area. Lastly in the page.tpl I had it render it via It worked…
4
votes
1 answer

Create S3 bucket for a specific region

If I create an S3 bucket as follows: AmazonS3Config amazonS3Config = new AmazonS3Config { ServiceURL = "s3-eu-west-1.amazonaws.com" }; AmazonS3Client amazonS3Client = new AmazonS3Client(myAccessKeyId, …
user1552869
  • 305
  • 1
  • 7
  • 18