Questions tagged [restriction]
A restriction is anything that constrains or limits the code in some fashion.
704
questions
0
votes
0
answers
5
views
Install app restriction on some part of work profile
I want to use DISALLOW_INSTALL_APPS in UserManager on my work profile. But I want install and update applications that exits in my app store, but don't let to install other app stores out of my app. ...
0
votes
1
answer
20
views
Restrict Bootstrap to specific React Components only
I'm working on a react app where I need to make use of bootstrap for one of the components. But bootstrap is getting applied to every component and all the previously styled components are getting ...
1
vote
1
answer
15
views
How to rise max rate on socketserver of Python3?
Im working at Python3 DNS server, and i ran into a problem with max queries per second using socketserver module.
There is statistic for classic Bind9 server:
DNS Performance Testing Tool
...
0
votes
0
answers
253
views
Google-served ads on screens with replicated content, how to explain that it is my content?
I have a React Native app with admob. In the app I have many views, which 2 of them are Webview, because I did not find a react native library to add the features I wanted. So I did it with HTML ,CSS ...
0
votes
0
answers
7
views
Can anyone know this in how to code using laravel
Define the roles and permissions:
a. Admin: has full access to all folders
b. User: can view and access only the folders assigned to them by the admin
Define the folder structure:
a. Each user will ...
0
votes
0
answers
20
views
How to apply restrictions like set a timelimit for another apps, block certain URLs from my devlopment app in mobile devices?
I am trying to build a parental control application which can apply restrictions to another apps in android devices. The restrictions can be like :-
The app can restrict the opening of any game app ...
0
votes
0
answers
22
views
How to use SUR with restriction in R?
I ran an SUR model in R using systemfit package, but I need to take the summary result and use it for imposing two restrictions:
the sum of the intercepts of the three equations should be equal to 24....
1
vote
0
answers
15
views
Tableau - restrict access for specific filter
I'm working with Tableau - and I have a workbook that hold Cost values for many departments, I want to give limited access to this workbook for each person.
I have a filter for "Department" -...
0
votes
1
answer
24
views
XML Schema: SimpleType element that must not be empty and has attributes [duplicate]
How do you declare an element
with non-complex content (i.e. "text" and not a child element)
that also has attributes
and whose text node must not be empty
in XML Schema?
An example ...
2
votes
1
answer
34
views
Python: Nonlinear optimisation with Gekko
I am getting the following error with the code below:
TypeError: x must be a python list of GEKKO parameters, variables, or expressions
The error seems to relate to the form of the "m.Equation&...
3
votes
1
answer
58
views
Python: Nonlinear optimisation with restrictions (Gekko?)
I'd like to be able to solve the following problem in Python:
Given observed data x(1)....x(n) and a known fixed target 'B' and tolerance 'E', solve for parameters a0, a1, & a2, which minimise:
...
0
votes
0
answers
42
views
Google add-on : restrict the google picker API
I have made a google add on and web app that uses the Google Picker API, by opening a pop-up to allow the user to select a folder on Drive and use it on the add on.
I now want to restrict my API key ...
1
vote
1
answer
110
views
HTML & JS - input type=date - Trying to configure input type date to restrict the user from selecting days after, or more than 90 before current date
I'm working on a project that requires the user to select a date, which will then return a list of times for that specific date, but I need to restrict the user from selecting any days that haven't ...
0
votes
1
answer
13
views
uploading files in email without restriction
How can I upload a file blocked by email providers?
I want to upload certain programs in my email. but, email provider is blocking it. Any way to workaround this problem?
2
votes
1
answer
115
views
I'm trying to restrict an API key to Google Drive API, but it's behaving like I've set a referrer restriction
In the Google Developers Console, I have restricted my API key to only accept the Google Drive API calls. I don't use any HTTP referrers that might restrict calls to specific websites.
However, I ...
0
votes
0
answers
89
views
How to restrict flutter desktop application on linux to a single instance?
I am working on flutter desktop app. I want to execute only single instance of the app. But currently it allows me to run more than one instance.
There is solution for Windows platform, but how to do ...
0
votes
0
answers
61
views
Wordpress / how to create user-specific private folders?
My website includes forms and php code which create pdf files for logged in users. How can I make sure only the appropriate user, the one which generated the files, can access his own files ? Also, ...
0
votes
1
answer
165
views
Prevent users from pushing all tags to a Bitbucket repository
I have a repository where I routinely remove old tags that are no longer needed or at the heads of branches that have since been rebased. Sometimes a developer in our team will push to git using the ...
1
vote
1
answer
528
views
Keycloak - restrict the access to the admin console
Is there any way to restrict the access to the keycloak admin console at the level of groups or user roles? The way of restriction by ip (and undertow filter to block external access), unfortunately, ...
1
vote
0
answers
44
views
Restrict interface type parameter to class that is implementing the interface
I'd like to create an interface that gives objects of certain classes an id and a dictionary where you can find the reference by Id. So every class should have their own counting id (starting at 1).
...
0
votes
0
answers
17
views
Bypassing skip restrictions
So I've been watching a course on a site(gov site)... and I already know everything about the stuff mentioned in it, I want to skip the video timings and jump to any part, as I have to submit the ...
-1
votes
1
answer
62
views
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, ...
0
votes
1
answer
62
views
Restricted about what the elses who's people can edit with ? On protected of sheet and range by protected sheets option
I was setting that about protected sheets on my sheet is turning it on. With the specific setting those are :
Restricted by just only me (owner) can edit the whole sheets and range.
Anyone doesn't ...
0
votes
1
answer
83
views
Insert data to Firebase and set restriction to UI(username and password) in xamarin form-UPDATE
My first post is here. I already explain my problem here and My output expected. Sir Guangyu Bai - MSFT commented my post, you check my post and scroll his answer. I apply his answer to my codes.
The ...
1
vote
1
answer
319
views
Disable pr merge button when auto build in progress or fail
Enable merge button in the pull request only after auto build success that too specific branch patterns. (branch level) ex: feature/XX_XX -->master PR only need to check the build status. If auto ...
0
votes
1
answer
40
views
How to restrict in PostgreSQL (using SQL and PL/pgSQL) way of changing table data only by means of certain stored procedure?
Need to allow data changes in a table only through specially created for this stored procedures.
I thought about using triggers as one of possible ways to implement such restriction. Anyway want to do ...
0
votes
1
answer
132
views
Insert data to Firebase and set restriction to UI(username and password) in xamarin form
I have create acc page in xamarin form. The fields are basic info for customer like firstname, lastname and I have field "username" and "password". So it goes like this. I want to ...
1
vote
0
answers
36
views
Kotlin restricts certain annotations for some class
I have a class and it must not be serializable. If any developer accidentally annotates the class with Serializable, it should generate some kind of error/warning message during compilation or runtime....
1
vote
1
answer
328
views
how to restrict user to only accessible the flutter app when user connect with organization wi-fi network?
I want to develop a attendance flutter app in which want to restrict the user to access the app ,only when he/she connect with organization wi-fi network the user can access app. And if user try to ...
0
votes
2
answers
90
views
Combinations with restrictions in Python
I have a list
S = ["A", "B", "C", "D", "E", "F"]
and I want all combinations 3-by-3 without repetition but with restrictions: some elements ...
1
vote
0
answers
175
views
WordPress prevent specific posts from query with elementor
I am trying to manipulate an elementor query for all post types. I am using the Profile Builder plugin to restrict content. Their support sent me this function to check wether the post is restricted ...
0
votes
0
answers
14
views
How to restrict people from visiting my Express.js website?
I made an API with Express.js that if you visit it or do a GET request, you will receive sats. I want to restrict it to my Netlify website/game (which is pointed to a custom domain) and so everyone ...
1
vote
1
answer
45
views
How to force Jaxb to use restriction types
for the following mapping
<xs:complexType name="ParentNode">
<xs:sequence>
<xs:element name="child" type="ChildNode"/>
</...
0
votes
1
answer
37
views
Restrict date input for specific intervale of time
I am building a React App, and tho it has no connection with React, I wanna allow the user to pick only one day within the next two weeks with an input[type="date"] tag.
I don't know how to ...
0
votes
1
answer
208
views
Custom Product restrictions are not working on child components
I have created a custom product restriction for a component due to project specific visibility rules. This product restriction can be applied on ExampleListComponent, ExampleComponent and also can be ...
0
votes
0
answers
60
views
ftp_ssl_connect with explicit ftp over tls
//ftp_ssl_connect with Explicit ftp over tls
$ftp_host = 'xxx.xxx.xxx.xxx'; /* host */
$conn_id = ftp_ssl_connect($ftp_host,9906);
ftp_pasv($conn_id, TRUE);
var_dump($conn_id);
Result: bool(false)
...
0
votes
1
answer
52
views
Restrict user to accesss NON route URL's - ASP.NET MVC
I have a webapplication with the following route:
routes.MapRoute(
name: "Mytest",
url: "Admin/Dashboard/Index",
defaults: new { controller = "...
0
votes
0
answers
39
views
Filtering an object property (by domain and/or by range) when creating an ontology with Protégé
I'm using Protégé 5.5.0 for developing a material/properties ontology for testing.
I have created two 'parent' classes with corresponding subclasses:
Entity class with subclasses (Atom, Molecule, ...
0
votes
0
answers
70
views
TSP variant: Traveling salesman problem with city-to-city restriction
I've been working for a few days on solving a travelling salesman type problem, with the following goal. On a plot like the one displayed below (algorithmic identification of the cells, hence the fact ...
-1
votes
1
answer
203
views
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 ...
0
votes
1
answer
294
views
Limit characters user can enter in input in django view OR html?
I had various occasions where I wanted to but couldn’t limit characters user types in html input. For example what would I do if I would only want numbers and letters? No other like £-“<#>{[. ...
-1
votes
1
answer
53
views
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 ...
0
votes
0
answers
82
views
Restrict execution of Python scripts (to certain folder)
Im working in an architecture firm where we are trying to use the Python API for ArchiCAD.
It allows us some much needed automation for certain workflows, but we still haven't used it, because we don'...
0
votes
1
answer
83
views
Is it possible to stop a user from editing a certain part of the Elementor Pro Layout?
Asking what the title says. I made a plugin where the Title, Date and Link is automatically added on a new Elementor Page. I only want one section of the page to be edited by a user with no admin ...
0
votes
0
answers
107
views
How to restrict/block a file to be uploaded if it contains embedded javascript code that may be executed in browser? - wordpress platform
As I mentioned in the title, I want to block a file to be uploaded by upload manager from wordpress if that file has embedded javascript code that could be executed in the browser.
I didn't find any ...
2
votes
0
answers
79
views
react native app - google api key restrictions
I am trying to restrict our google api keys for the iOS bundle identifier and android package + sha-1.
So far I am always getting:
LOG This IP, site or mobile application is not authorised to use ...
0
votes
1
answer
257
views
how can i save the codes in colab and it's permissions
I want to save my codes and i want to restrict it that no one can change it even myself.
I don't know how to do it. is it possible?
I know how to share without edit permission. but how to do it for ...
0
votes
0
answers
134
views
Access restriction to proc/net file in android 10
I am working upon upgrading the android version of the application to SDK 29 and my application is emitting some of the Network Statistics those were fetched from proc/net file (Netstat and snmp ) ...
0
votes
0
answers
190
views
How to restrict downloading angular static files inside dist folder via URL deployed in azure
How to restrict downloading angular static files inside dist folder via URL deployed in azure.
For eg) When I try to access these below files via URL, I can able to see the JSON file content/able to ...
0
votes
1
answer
1k
views
How to use Pytorch for maximum likelihood estimation with restrict optimization
I'm studying Pytorch and I'm trying to construct a code to get the maximum likelihood estimates.
I would like to put some restrictions into optimization process to contemplate the parameters ...