Questions tagged [policy]

Best practice and style are at the core of every program; there is always a better way to do something. Policy helps programmers determine how something should be written.

Policy is a more or less ambiguous way of describing the best way to do something in programming. This can often be described as "best practice" when writing a program. This can pertain to the way a method returns a value, the way inheritance is structured, and the way to exit a loop, among other things, and it can vary from language to language.

Many companies often have their own sets of internal documentation referred to as Coding Standards that enforce policies which they determine to be valuable for maintenance and readability purposes of their code base.

You can learn more about policy and programming paradigm here.

1311 questions
8
votes
3 answers

Update Java security policy at runtime?

Is there a legal way to add/remove permissions to Java security policy at runtime?
consumer
7
votes
1 answer

Azure API Management Policy - Dynamic named value select

I have stored a named value based on the user id, so I can identify the payload submitter, with a reference of my choosing. When I use the policy below, I get the value as a string, rather than actually looking up the named value. If I simply write…
madsnb
  • 123
  • 1
  • 8
7
votes
3 answers

Android Device Policy sync does not work until done manually

We have some android devices attached to Android Management API as fully managed work devices. Now when we push out some changes to the device policy such as Factory Reset Disabled, Adjust Volume Button Disabled or any other such controls, the…
7
votes
1 answer

Seting a Default Authorization Policy on multiple policies scenario

I'm setting 2 possible Policies for my application services.AddAuthorization(auth => { auth.AddPolicy("Bearer", new AuthorizationPolicyBuilder() …
LuccasMF
  • 413
  • 5
  • 15
7
votes
1 answer

Link to another apps from my android app

The idea is to make a sponsored area on my app every link on this area will point to the app link on google playstore. My question: is this method is forbidden by Google Guidelines or will not cause my app suspension ? Thanks
abdello
  • 158
  • 3
  • 13
7
votes
0 answers

CMake ExternalProject_Add ignore dependency's cmake warnings

One of the libraries I'm using is giving a cmake warning for the developers of it. I'm trying to suppress that warning in my ExternalProject_Add with -Wno-dev I tried setting it at: CMAKE_ARGS CMAKE_CACHE_ARGS CMAKE_CACHE_DEFAULT_ARGS This is…
ZeroPhase
  • 649
  • 4
  • 21
7
votes
13 answers

How can I convince IT that F/OSS software isn't evil?

When trying to link some well established tools to my company's active directory, I hit a roadblock. I was told that: "Sorry, I cannot trust our domain admin password to [F/OSS] software...". This question deals specifically with how to convince…
Michael Haren
  • 105,752
  • 40
  • 168
  • 205
7
votes
3 answers

Violating the Device and Network Abuse policy

One of my android apps is using YouTube API to download videos. And this has been removed from play store due to below issue. "This app has been removed from Google Play for violating the Device and Network Abuse policy. Before submitting your app…
Suri P
  • 89
  • 1
  • 6
7
votes
1 answer

Amazon S3 bucket policy for uploading and viewing pictures

I have an app that users log in with facebook and then can upload images to s3 bucket and view them. I used Cognito service to allow every logged in user to upload and view all files. I have no idea how to set the correct permissions on the s3…
ilyo
  • 35,851
  • 46
  • 106
  • 159
7
votes
2 answers

Google Chrome - where to get all the regedit policy flags?

In some Banks, Government Google Chrome is hammered with there local policy as a result often when we go on-site our stable applications does not work anymore. Because of there is no well documentation available about this local regedit changes,…
user285594
7
votes
2 answers

Amazon AWS S3 IAM Policy based on namespace or tag

I have a number of buckets that start with the same namespace as in assets-, so I was wondering what would be the best option to give rights to IAM group with minimal need to maintain it. Is it possible to use any sort of regex in ARN? Or…
JackLeo
  • 4,579
  • 9
  • 40
  • 66
7
votes
1 answer

Facebook iOS App Policy: Where is the back to Facebook banner in the sdk?

In the new facebook app policy i found this paragraph If people come to your app from the Facebook app on iOS, give them an option to go back to the Facebook app by using the Back to Facebook banner provided in our…
hackfrag
  • 223
  • 3
  • 8
7
votes
3 answers

Policy-based template design: How to access certain policies of the class?

I have a class that uses several policies that are templated. It is called Dish in the following example. I store many of these Dishes in a vector (using a pointer to simple base class), but then I'd like to extract and use them. But I don't know…
Frank
  • 64,140
  • 93
  • 237
  • 324
7
votes
1 answer

Does facebook allow login on any unknown domain policywise?

I am thinking of distributing a Flash game that can inject Facebook JS into any webpage that will host it (many free Flash game portals). I can window.open Facebook login dialog when the host page sets allowScriptAccess. One of my ideas how to…
mizi_sk
  • 1,007
  • 7
  • 33
7
votes
1 answer

Amazon S3 Bucket and Folder Policy for IAM access?

Do you have a problem understanding S3 IAM Policies and Directives ? Can't quite wrap your head around their documentation ? I did. I had a situation where I had to lock out several IAM users from a particular folder, and several buckets, except…
Miles Works
  • 627
  • 2
  • 12
  • 24