Questions tagged [restriction]
A restriction is anything that constrains or limits the code in some fashion.
restriction
727
questions
0
votes
1
answer
32
views
XSD - extend base restriction type
I've the following type definitions:
<xsd:simpleType name="T_YES_NO">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="y" />
<...
0
votes
2
answers
44
views
PHP: Restrict class method to related classes
Sorry if this has been asked before but Googling didn't give it to me.
How do you protect methods (or properties) from only unrelated classes, but have it available for specific, related classes?
...
0
votes
2
answers
57
views
Limit access to just one API endpoint of backend application from a consumer application and restricting other endpoints access
I have two consumer apps for my backend application developed in springboot 3.x and java 17. My frontend (FE) consumer application has access to all API endpoints while for other, i want to give ...
0
votes
1
answer
69
views
cant to restrict quasar input value type number
and why button click works but in script nothing
would appreciate your support
im also used watch and @update model:value in condole log lakeSurface value slices and all warks fine but in template ...
0
votes
1
answer
149
views
Chrome third-party cookie restrictions - reCAPTCHA Enterprise
Will reCAPTCHA Enterprise be affected by Chrome third-party cookie restrictions on Q3 of 2024?
REF : https://developers.google.com/privacy-sandbox/3pcd
We did a test for breakage by enabling chrome://...
0
votes
0
answers
12
views
ACL Permissions Related
Can anyone explain what is the usecase of all these
CREATOR OWNER
BUILTIN\Users
APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES
NT AUTHORITY\Authenticated Users
APPLICATION PACKAGE AUTHORITY\...
0
votes
1
answer
70
views
android Start an activity from foreground service
public class LockScreenService extends Service {
public static final int LOCK_SCREEN_SERVICE_NOTIFICATION_ID = 1;
public static final int SERVICE_NOTIFICATION_PENDING_INTENT_REQUEST_CODE = -...
0
votes
1
answer
59
views
Is it possible to restrict a method to a specific namespace?
I've got a class named NetworkDevice within the namespace Classes.Device and a method:
private void DisplayDeviceDetails<T>(T device)
{
throw new NotImplementedException();
}
If I got that ...
0
votes
0
answers
18
views
How to restrict third party app (Internet Download Manager) in ReactJs
I have an api enpoint like "example.com/book/1". which is response like:
{
name: "Title",
audio_file: "example.mp3"
}
Now i want, when i display in reactjs with audio tag....
0
votes
0
answers
29
views
Cannot restrict Google API key with YouTube API
I have a Google Maps API key that works just fine with domain restrictions. The project has the YouTube API enabled.
I tried it for importing YouTube videos into a WordPress plugin but it wouldn't ...
0
votes
0
answers
65
views
PYPDF how to set restriction during pdf encryption
When i use pymupdf, i can set restriction based on the criteria i needs by using command. refer below example :
Using PYMUPDF :
perm = (fitz.PDF_PERM_PRINT # permit printing
)
but when i use pypdf, i ...
-1
votes
2
answers
62
views
Is there an efficient way to find a subsequence of length 3 where the first is the lowest, the second the largest and the last inside that range?
For instance, given the list [5, 9, 1, 2, 7, 8], the algorithm should find subsequences such as [5, 9, 7] or [5, 9, 8].
I need the algorithm to be efficient. One approach could involve tracking the ...
0
votes
1
answer
59
views
SEPA XSD - Empty Enumeration with Minimum Length
<xs:simpleType name="ExternalPurpose1Code">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="4&...
1
vote
2
answers
83
views
How can I create woocommerce coupon with an expiration date using the rest api?
I'm trying to create a coupon via the woocommerce rest api:
https://woocommerce.github.io/woocommerce-rest-api-docs/#create-a-coupon
I can create coupons fine, but it seems the expiration date is ...
0
votes
0
answers
32
views
How to compare the last row with the new row?
In SQLITE and a banking transactions table with columns cargo, abono, saldo. How do I make sure that the next INSERT at the end of the table has the NEW.balance = balance + NEW. debit - NEW.credit
I ...