Questions tagged [restriction]

A restriction is anything that constrains or limits the code in some fashion.

Restriction is a very broad tag that denotes a requirement to restrict the code in some fashion.

706 questions
0
votes
3 answers

Restricting Java Compiler API

I'm thinking of creating an in-game code IDE that uses a more restricted version of Java, for instance I do not want it to use the I/O stream APIs. Is this even possible? Also, inb4 this. It still doesn't help with restricting ability, only…
-1
votes
1 answer

License plate restriction question about C: some examples are not work properly

Here's my question: Vehicles are restricted for activities held in a place: Enter a line of five characters to represent the license plate number. The number can be 0 to 9 digits or uppercase letters, and at least one digit. Output "illegal input"…
Abel
  • 1
  • 3
-1
votes
1 answer

htaccess rule for restrict not logged in user to access direct pdf link in wordpress

Htaccess rule for restrict not logged in user(cookie based) to access direct pdf link in Wordpress. I have tried the rules to restrict access on local host it worked partially on it but when applied on the live website rules not seems to work. The…
-1
votes
1 answer

Difference between @propertyWrappers, asserts/precondition, init? and error handling in imposing restrictions on Structs

I was wondering how I can enforce the following restrictions on this struct: struct QandA { let questions: [String] // Question to be displayed per page let mcqs: [[String]] // Prompts to be displayed per page let answers: [Int] //…
rayaantaneja
  • 1,182
  • 7
  • 18
-1
votes
1 answer

Algorithm to get all possible combinations with restrictions

I have the numbers 0 to 7. A possible combination has to contain all the numbers. A solution has 8 digits. In addition to that these rules apply: 0 comes before 1 1 comes before 3 2 comes before 3 4 comes before 5 6 comes before 7 Example…
MenNotAtWork
  • 145
  • 2
  • 8
-1
votes
1 answer

Restrictions for input type=text

Could someone help me with restrictions for input text? In this case, it's not working. My restrictions are: The value can't…
-1
votes
2 answers

Truck restrictions not respected - wrong calculated route for truck

After many tests on HERE API examples, I have problem with calculating proper route respecting truck restrictions. The restrictions are not respected and route goes through them. Here provides page where I perform tests (one of many…
Maciej
  • 3
  • 2
-1
votes
1 answer

Use iptables to set online time 1 hour per day

is there any chance to configure iptables in a way that it allow a machine to be online for lets say one hour per day ? The time module can do this only in a way like "from ... until ..." but I need a more flexible solution. The machine could be…
-1
votes
1 answer

How to maintain access restrictions in PostgreSQL?

I need to achieve the below goal in postgresql. There is a database "textdb" with 4 schema's that are public, ds, fin, viz. We need to create a script that can be used to provide access to the role. So, I need to create 3 roles, one for analyst,…
user3222101
  • 1,270
  • 2
  • 24
  • 43
-1
votes
1 answer

Java: Is there some way to make one class (of a library) be only accessible by one specific thread?

It is not to allow one thread at a time, but only one specific thread. It is not a class I have access to (well I actually would like to avoid creating a fork), or I could use this, despite I think what jRat probably does could be used to make…
Aquarius Power
  • 3,729
  • 5
  • 32
  • 67
-1
votes
1 answer

How to restrict user only being able to enter integer in textbox in vb.net

When user wants to calculate their BMI, how do I restrict them so they can only enter integer in the textbox when the program loads? Also if possible how can I turn the BMI answer into 2 or 1 decimal place? CODE: Public Class Form1 Private Sub…
Rushi
  • 5
  • 1
  • 7
-1
votes
1 answer

How to restrict particular products at checkout for particuar location

I want to sell some products for delhi location only, and remaining products will be available for all over india. So how to restrict products at checkout page for other location than delhi ncr, for example, i want sell cakes in delhi only, so if…
Noshad
  • 23
  • 7
-1
votes
1 answer

How to make a folder UAC protected

Can someone tell me how (in Windows 7 PRO) I can create a folder, so when I try to open it, User Account Control will ask for a Administrator's password. I need to restrict a folder on the C: drive, only be opened by administrators, and if a normal…
Steve IT
  • 164
  • 1
  • 8
-1
votes
1 answer

restrict Attribute value based on a list defined in the XML itself

recently i encountered a situation in a configuration file where i need to have an attribute with a value from a list of values specified in my document. e.g
Tomer W
  • 3,395
  • 2
  • 29
  • 44
-1
votes
1 answer

IIS Authorization and Restrictions

I'm trying to restrict anonymous users from browsing directly to a particular filename (image file) in a folder on my website. But when I turn on the "IIS Authentication" feature on the folder, both anonymous users and the website application can't…
swabygw
  • 813
  • 1
  • 10
  • 22
1 2 3
46
47