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
7
votes
3 answers

Is a scripting application allowed in the Windows Store?

So I have this bit of a project planned for Windows Store and Android. Basically, a networking multi-tool coupled with a scripting engine to implement protocols and behavior. Ideal uses being things like "my embedded device uses this simplistic…
Earlz
  • 62,085
  • 98
  • 303
  • 499
7
votes
2 answers

Intel CPU Cache Policy

I have a laptop with an Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz processor. I'm on Ubuntu 12.04 (x86_64) and I'm trying to find some info about my processor. I was able to find most of the information I was looking for using cat…
feugatos
  • 663
  • 6
  • 15
6
votes
1 answer

Trouble with Google Play console notification: We have detected that your manifest file contains the permission REQUEST_INSTALL_PACKAGES

Hello i have an app in play console and receive the next notification: We have detected that your manifest file contains the permission REQUEST_INSTALL_PACKAGES. Google explain the steps for legalize it, but i don't have this permission in my…
6
votes
2 answers

Restrict lambda permissions to access VPCs

When deploying a lambda function to a VPC you're required to grant a bunch of network interface related permissions to lambda's execution role. AWS manuals advice to use AWSLambdaVPCAccessExecutionRole managed policy for this, which looks like…
demosito
  • 223
  • 1
  • 7
6
votes
1 answer

Axis2+Rampart WebService Signing and Encryption

i have a problem with the security between one webservice and his client. I use Axis2 and Rampart to build bottom up my webservice and than create the client from the generated wsdl. I show you my code and the concrete problem. Client.java package…
Happo
  • 71
  • 1
  • 3
6
votes
1 answer

Does GitHub delete repositories with no activity after some length of time?

What is the GitHub policy on inactive repositories and are they deleted or archived after some amount of time of no activity or not? By no activity I mean that no updates to the repository have been made nor any pulls from the repository been made…
Richard Chambers
  • 16,643
  • 4
  • 81
  • 106
6
votes
2 answers

[Azure Policy]Apply tag and add the account info

When creating a resource group with Azure Policy, I would like to force account information such as user ID and email address as tags. Sample-Apply tag and its default value As a result of referring to, it was possible to tag a fixed word, but I do…
6
votes
3 answers

Can't create Policy: 'no matches for kind "Policy"'

I am following the instructions here on how to create a policy to audit actions in Kubernetes. When I run the following YAML file: kubectl apply -f - <
E235
  • 11,560
  • 24
  • 91
  • 141
6
votes
1 answer

How to modify the .te file generated by audit2allow and recompile it into .pp file

I used below command to generate a policy file: ausearch -ts today |audit2allow -M sample it will generate two files: sample.te and sample.pp the sampel.te contains lines such as: allow container_t unlabeled_t:dir { add_name create remove_name…
Michael.Sun
  • 387
  • 5
  • 13
6
votes
2 answers

Polly Retry policy with Function is not waiting for result

I am trying to convert my existing function to Polly Retry policy public static T Execute(Func getTask) where T : Task { var retryCount = 3; while (retryCount-- > 0) { try { getTask().Wait(); …
RaceBase
  • 18,428
  • 47
  • 141
  • 202
6
votes
7 answers

Do you have any commit policies?

My boss announced yesterday a new commit policies for checkins into the repository. This policies are valid for commits into head/trunk and branches. A commit message must have the following items: Reason (Bug ID,Project ID, or non functional…
Ludwig Wensauer
  • 1,885
  • 3
  • 32
  • 43
6
votes
4 answers

Is it true that big embedded companies are "forced" to use old programming standards/compilers?

Our lecturer told us that in completing our assignments, we are only allowed to use C++98 / C99 standards, by specifying the correct flags to the compiler we can ensure we don't break this rule. I understand that this is so people can learn "real"…
Gizmo
  • 1,990
  • 1
  • 24
  • 50
6
votes
4 answers

Facebook privacy policy URL: Bad Response Code: URL returned a bad HTTP response code

I want to publish my first Facebook application and a Privacy Policy URL is required. I have the page privacypolicy.html published in my website but I get the next message when I configure it in "App Details": You must submit a valid Privacy Policy…
jimbo82
  • 71
  • 1
  • 1
  • 4
6
votes
1 answer

INSTALL_FAILED_EAS_POLICY_REJECTED_PERMISSION?

Everytime i try to launch my APP Im getting this error in the Console [2014-03-09 10:26:47 - GeocachePlacer] ------------------------------ [2014-03-09 10:26:47 - GeocachePlacer] Android Launch! [2014-03-09 10:26:47 - GeocachePlacer] adb is running…
6
votes
2 answers

c++ templates policy with arguments

I am new to this. I am creating a class with policies say: template , typename P2 = Policy2 > { ... } The problem I have is that some of the policies have arguments, and when they are…
gsf
  • 6,612
  • 7
  • 35
  • 64