Questions tagged [restriction]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

Can't use toolbin helper/prologue files with Ghostscript 10.xxx

I try to use helper files from ./gs/lib or ./gs/toolbin like pdf_info.ps or extractICCProfiles.ps. The result always contains this response: Current allocation mode is local Last OS error: Permission ...
0 votes
1 answer
22 views

odoo 17 restrict user to see his products

from odoo import api, fields, models class ResUser(models.Model): _inherit = 'res.users' dealer_category_ids = fields.Many2many( string="Dealer Category Tags", comodel_name='rgb....
0 votes
0 answers
26 views

Docker compose container Sftp multiple users access restriction

When I tried it locally on my winSCP to check sftp is working or not it gives connection error. I need an sftp container in which I can mount at least two volumes. I also need to be able to create ...
27 votes
6 answers
43k views

How to restrict a column value in SQLite / MySQL

I would like to restrict a column value in a table. For example, the column values can only be car or bike, or van. My question is how do you achieve this in SQL, and is it a good idea to do this on ...
0 votes
1 answer
40 views

Disallowing Pasting capabilities in Specific columns based on selected Data Validation while still enabling pasting in the same Data validation column

First off let me start by saying I am very new to any form of Coding, VBA is my first attempt at learning it and I am not learning it quickly. My problem is I have a sheet that I have the intention of ...
3 votes
1 answer
48 views

Restrict Contact page allowing only logged in users in WooCommerce

I am building a ecommerce website with WooCommerce (8.1.1) and Divi theme. I found how to restrict access to WooCommerce pages to log in users, but I want to restrict Contact Page, which I created, to ...
0 votes
0 answers
12 views

.eml files not getting uploaded while sending it from email to databse

While sending the eml file attachment from mail to the application. It should show the attachment in supporting documents on application but eml files are not shown and also same can’t see eml file in ...
2 votes
1 answer
270 views

How to ensure cargo picks the correct compatible version of a crate when restricting the project's rust version?

I'm setting up a Rust recipe for bitbake, which is part of the Yocto project. My target Yocto uses Rust 1.63, and because I have 1.72 installed on my own PC, I have used rustup install 1.63.0 to make ...
0 votes
0 answers
14 views

Facebook says my app is restricted, but when I click on appeal it says i don't have any restricted apps. How can i resolve?

On my app page it gives me the message "We've restricted this app for violating the Meta Platform Terms and Developer Policies. Read more or appeal" But when I click on appeal it says "...
0 votes
1 answer
207 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 ...
3 votes
0 answers
51 views

I am not able to block Standby mode on a supervised device on iOS 17 programmatically

I am wondering if there is an easy way either through lockdownservice or through an MDM profile to block standby mode. Something like AllowStandbyMode: false I need this flag to programmatically ...
0 votes
1 answer
39 views

Boolean Array size restriction in C# [duplicate]

I'm trying to use a boolean array with 10000 elements & my program is erroring out as the number of elements coming into my file load are more than 10000. Is there a max limit restriction on ...
0 votes
2 answers
215 views

Allow access to S3 bucket only for authenticated users of application

I'm launching in few weeks my application on Playstore. In this app, registered users will have possibility to see picture of other users (like a social media app) and will have possibility to upload,...
53 votes
3 answers
73k views

How to achieve "not in" by using Restrictions and criteria in Hibernate?

I have list of category. I need a list of category by excluding 2,3 row. Can we achieve through hibernate by using Criteria and Restriction?
0 votes
1 answer
22 views

Problem using .htaccess restriction and AJAX [duplicate]

RewriteEngine On RewriteRule ^(includes|config)/ - [F] I encountered a problem when trying to protect the file that processes the login of my system. Since I am using AJAX to improve the user ...
41 votes
6 answers
10k views

Why I can't extend bool in Python?

>>> class BOOL(bool): ... print "why?" ... why? Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Error when calling the metaclass bases ...
2 votes
1 answer
51 views

Non-linear optimisation in Python using GEKKO: maximum weight constraint

I'd like to be able to fix an error in the Python code below relating to "wmax". I'm trying to find a solution of weights (the w[i]) such that all the weights are less than or equal to 2.5. ...
0 votes
1 answer
67 views

How to create a positive definite matrix with restrictions?

Consider that we want to create a covariance matrix of three random variables, v1, v2, v3. Then, the matrix has to satisfy the positive definiteness as well as other covariance restrictions such as ...
0 votes
0 answers
26 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
216 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 ...
2 votes
0 answers
959 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 ...
1 vote
1 answer
26 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 ...
472 votes
22 answers
843k views

What does the 'static' keyword do in a class?

To be specific, I was trying this code: package hello; public class Hello { Clock clock = new Clock(); public static void main(String args[]) { clock.sayTime(); } } But it ...
1 vote
1 answer
48 views

WordPress, allow certain users to view certain pages

I have a WP site where each page hosts a video course. Whenever a customer buys a course (offline, through my company) I have to make his WP user able to see the page with the video of that course. I ...
0 votes
0 answers
41 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....
0 votes
0 answers
112 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 ...
2 votes
1 answer
163 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 ...
1 vote
0 answers
23 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" -...
25 votes
2 answers
50k views

XSD Restriction on Attribute

I think I have searched a lot about this but still no go. Will appreciate any help. I am trying to restrict an attribute for an element with empty content. color should have a restriction to only hold ...
0 votes
1 answer
96 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 ...
3 votes
2 answers
238 views

Is it possible to restrict an application distribution on Amazon appstore based on the country?

I want to publish an Android application on the Amazon Appstore, but I need to restrict availability and distribution of this application to Canada only. Is it possible?
1 vote
2 answers
1k views

Google Play Store App not compatible Restriction Numbers

Google Playstore checks something in device and then it will give some error if this checking fails. For example if any application is not available in any country it will give restriction = 2 D/...
2 votes
1 answer
43 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
67 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
83 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
389 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
18 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?
8 votes
2 answers
8k views

R: Force regression coefficients to add up to 1

I'm trying to run a simple OLS regression with a restriction that the sum of the coefficients of two variables add up to 1. I want: Y = α + β1 * x1 + β2 * x2 + β3 * x3, where β1 + β2 = 1 I have ...
2 votes
6 answers
8k views

How can I restrict a Telegram bot's use to some users only?

I'm programming a Telegram bot in python with the python-telegram-bot library for python3.x It's a bot for private use only (me and some relatives), so I would like to prevent other users from using ...
0 votes
0 answers
127 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
91 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
1 answer
234 views

How to restrict other shipping methods - Magento

By $result = Mage::getModel('shipping/rate_result'); method I can create a new shipping rate. But How can I restrict other shipping methods in this action?
0 votes
1 answer
322 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 ...
8 votes
5 answers
6k views

shuffling a list with restrictions in Python

I have a problem with randomizing a list with restrictions in Python (3). I have seen a few other questions relating to this, but none of them really seem to solve my problem. I'm a beginner, so any ...
1 vote
1 answer
983 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
47 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
57 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 ...
-2 votes
1 answer
66 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
64 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
94 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
2 3 4 5
19