Questions tagged [restrict]

Do not use! This tag has multiple meanings depending context. If you are looking for the restrict keyword in C-like languages use [restrict-qualifier] instead.

Filter by
Sorted by
Tagged with
28 votes
2 answers
2k views

Linux memcpy restrict keyword syntax

I know that the restrict qualifier in C specifies that the memory region pointed by two pointers should not overlap. It was my understanding that the Linux (not SUS) prototype for memcpy looks like - ...
tinkerbeast's user avatar
  • 1,999
0 votes
0 answers
17 views

how can I exclude ddl excution in liquibase

I have a problem, I need exclude ddl execution in liquibase but I do not how I can do. I did to laboratory in maven with java but it dones't work in this case with is liquibase normal therefore I ...
Maikol Cucunuba's user avatar
-1 votes
1 answer
64 views

Hiding/restricting parts of the source code in a git repository for team members and freelancers

I have looked at many related/similar questions, but could not find any sufficient answer to my question. I have a Gatsby/React project, for which I have one private git repository which is hosted on ...
Ruben Lemiengre's user avatar
0 votes
0 answers
8 views

How to restrict cell input field of a looped row , which accept alphanumeric and special character except . or decimal point?

function test(element) { var evt =element.value; alert(evt); var keycode = evt.charCode || evt.keyCode; alert(keycode); if (keycode == 46) { return false; } } ...
Ratnesh K's user avatar
0 votes
0 answers
17 views

Restrict system call

I have tried to restrict fork system call and allow thread system by using Setrlimit, nproc, but fork and thread both are not allowed by using Setrlimit. So I have come to know using seccomp but still ...
Sudarshan 's user avatar
0 votes
1 answer
258 views

Woocommerce: Restrict payment gateway redirection for custom payment method and create popup modal at checkout to process payment

I just started my career as a web developer and started learning wordpress and woocommerce development. I have created different payment methods with payment gateway configuration. Whenever customer ...
VIKEE R's user avatar
0 votes
0 answers
9 views

Limiting Hibernate Queries

Ok. Hopefully this isn't too broad. I have an application that I inherited which uses hibernate to run queries. There is a query getting passed to the database server that doesn't have a where clause ...
Ebarreto's user avatar
0 votes
0 answers
16 views

How to restrict user printscreen and copy text, refresh the browser when attending online coding test using javascript?

I tired toobar = o and addressbar = 0 function. Page open in new window without toolbar and addressbar but the page will refresh and time also refresh I want to restrict page refresh when timer is on ...
ParthiGMR's user avatar
0 votes
1 answer
224 views

.htaccess: Why I can't restrict access to certain file extensions?

I've tried a couple of solutions and for some reason, I can't restrict access to files with specific extensions. I use Wordpress and I want to restrict access to all OTF/TTF/WOFF/WOFF2 files that are ...
etrafart's user avatar
-2 votes
1 answer
2k views

Download Vimeo blocked video [closed]

Maybe I will get downvoted for this, but I need to know. I want to download an educational video from VIMEO for personal use, but it says "download blocked by VIMEO". Is there any workaround,...
pap's user avatar
  • 123
2 votes
1 answer
472 views

Entity Framework Core DeleteBehavior for not to take action

I am using EF Core 6.0. When I delete the parent row, I would like to not take action(remove or setnull foreign key column) child row and remanining child row and foreign key column's value. I tried ...
Hamza Meniz's user avatar
0 votes
0 answers
69 views

Stop My Program and Another Program From Receiving REAL User Input

I want to find a way to prevent my program (and a third party program being controlled by my program) from receiving any REAL user input. We have purchased a third party program (a CAM program) to ...
Jay C's user avatar
  • 141
1 vote
0 answers
197 views

Detect and stop Airplay on WKWebView that plays a video

What I have tried? UIScreen.screens.count > 1 Ans : Always getting one even though my app is currently Airplay(ing) on my Macbook Setting configuration of WKWebView mediaPlaybackAllowsAirPlay = ...
Ankit Kumar Gupta's user avatar
0 votes
1 answer
111 views

VSCode - Restrict editing in certain sections

In "Visual Studio" there is a way to make sections of code editable, while other areas can't be typed in. (ASP.net generated lots of code like this) Is there a way in VSCode to make it where ...
Happy_Coder's user avatar
0 votes
1 answer
28 views

Use typescript to type function argument and return full argument type

I have the following function and object as its input: const myResult = myFunc({ someInnerFunction: (innerArgument) => { return innerArgument.myProperty } }) And a given type: type MyType =...
johann1301s's user avatar
5 votes
1 answer
571 views

Clang's __restrict is inconsistent?

I was working on highly "vectorizable" code and noted that regarding the C++ __restrict keyword/extension ~, Clang's behavior is different and impractical compared to GCC even in a simple ...
Etienne M's user avatar
  • 604
0 votes
1 answer
102 views

I am a AWS IAM user and I have created a bucket, and I want no other IAM users to access my bucket. How can I achieve it

I am a AWS IAM user having "S3FullPermissions". I have created a bucket, and I want no other IAM users to access my buckets. How can I achieve it. Please help me with bucket policy..
ansar basha's user avatar
0 votes
0 answers
360 views

Restrict product sale by one per customer for always

I have a product in my WooCommerce shop where I have limited that it can only be sold once. That is a standard setting in WooCommerce. But customers now simply order the product a few times in ...
MediaCreandum's user avatar
0 votes
1 answer
85 views

Restrict the scope of functions in JavaScript ( Slider Use Case )?

In the following script, the code works when there is a slider, but when the number of sliders on a page is more than one, the next sliders do not work. How can this script be changed when we have ...
Qualima's user avatar
  • 153
0 votes
0 answers
103 views

Restrict systemd service accessing files

I am using Ubuntu 18.04. I am creating systemd service to start python code. But, the problem is that, I don't want my python code to have access to other directories except where it is running. It ...
user avatar
2 votes
4 answers
446 views

How can you restrict user to only input alphabets in Python?

I am a beginner trying to learn Python. First question. Trying to find a way to ask users to input alphabets only. Wrote this but it doesn't work! It returns True and then skips the rest before ...
Zane's user avatar
  • 23
2 votes
1 answer
113 views

C99: compiler optimizations when accessing global variables and aliased memory pointers

I'm writing C code for an embedded system. In this system, there are memory mapped registers at some fixed address in the memory map, and of course some RAM where my data segment / heap is. I'm ...
Giovanni Bajo's user avatar
0 votes
2 answers
183 views

How do I restrict one random prefab to be used only once but placed randomly with a whole bunch of prefabs of arrays on top of other object?

How do I restrict one random prefab to be used only once but placed randomly with a bunch of prefabs of arrays on top of other object? using System.Collections.Generic; using UnityEngine; public ...
Thefinders's user avatar
3 votes
1 answer
174 views

How to detect the bluetooth really close (or bluetooth switch button close) in control center

I need detect the bluetooth really closed in control center in iOS. But I try to find the APIs. In the delegate method can't detect the bluetooth really close in the control center. -(void) ...
dickfala's user avatar
  • 3,246
1 vote
0 answers
157 views

how to restrict users switching from su command

How can I restrict users switching by su command..? suppose there are 3 users (root,user1 and user2) only root and user1 can switch by using su command. root or user1 should not be able to switch to ...
Prabath Lasantha's user avatar
-1 votes
1 answer
392 views

Creating an Integer range for input into int variable

So i have a project where i need to store 8 integers, between 1-10, and recall them into a histogram The histogram is made up of the character * only. (forgive bad formatting, this is my first post) ...
ChristAHFER's user avatar
2 votes
1 answer
1k views

Block everyone, except visitors from specific referrer with htaccess

In htaccess, how can i block every visitor except those who come from a specific domain i tried this but without any success : # serve everyone from specific-domain or specific-user-agent RewriteCond ...
ronan savy's user avatar
0 votes
1 answer
1k views

force require login to show cart & store pages in whmcs 8.1

i want restrict two page for if user want to see this page, redirect to login page. I create hook file (includes/hooks/disao.php) with this code <?php if (!defined("WHMCS")) die("...
masoud nkh's user avatar
3 votes
1 answer
1k views

Restrict or extend an enum in dart

I'm working with dart and let's say I have an enumeration (potentially really long) that I cannot modify: enum Animal { cat, dog, lion, tigger, } Is it possible to restrict this enum, I would ...
Valentin Vignal's user avatar
0 votes
1 answer
208 views

how to restrict float number to 1 digit after decimal point

I have a float number 242.1356783 and -87.10234512, I need to restrict it it to 242.1 I tried below on cortex m4 microcontroller 1.data[i] = (int)(data[i] *10); data[i] = data[i]/10; 2.data[i]= ceilf(...
Kian's user avatar
  • 11
0 votes
0 answers
200 views

How to restricts public uploads files in Laravel

How to restrict the direct access to files in Laravel (http://localhost/laravel-blog/public/uploads/sample.jpg) The problem is: If it shows the folder it will try to access other files, directly ...
Mdr Kuchhadiya's user avatar
1 vote
0 answers
85 views

Wordpress error when trying to log onto /admin. TypeError thrown Return value of SISANU_Restrict_Country_IP_Login

When I am trying to login onto to my wordpress admin page I am getting the below error: TypeError thrown Return value of SISANU_Restrict_Country_IP_Login::maybe_fetch_url() must be of the type string, ...
Thomas Winterberg's user avatar
1 vote
1 answer
183 views

How to restrict fscanf properly on a string from a txt file? (need to read strings and integers seperated with whitespace AND "-")

I really hope someone is up for the task of helping, or pointing me to ressources that can, because I've been struggling with this for hours now. I do not have a lot of experience in C yet, or coding ...
MMAndersen's user avatar
1 vote
0 answers
607 views

Restrict users from accessing websites from a AWS EC2 instance

I have an application hosted on AWS EC2 instance. Few developers access the instance via shell to do maintenance on the application. How can I limit them from accessing/downloading content from other ...
GvG's user avatar
  • 11
0 votes
2 answers
50 views

Restricting download buttons so only logged-in users can view the buttons

I am building a website (using Wordpress, Neve theme and Elementor Pro) with teaching resources for teachers, under the picture of each resource I want to place a download button with the URL link to ...
Claudia Wollmann's user avatar
0 votes
1 answer
606 views

Possibilities to handle rate limit in Scala

What are the possibilities of handling rate limit in Scala. I'm playing with http4s and scala to perform basic requests to a REST API. knowing that the request returns information about rate limit (...
Mar Es's user avatar
  • 33
1 vote
0 answers
15 views

Is there any opnions that can execute scripts provided by user and have not safety impact on existing systems

I'm developing a data analysis sofware running on Linux, writing by Python; One of the requirements is that when data match some conditions, the software will generate an alert log, and user can ...
Datamos's user avatar
  • 11
1 vote
1 answer
276 views

How do I restrict apache permissions to prevent users accessing code directly?

I have a Laravel project that I have implemented into my organization and I'm having some problems with permissions. The user regardless of whether logged in or not is able to view directory listings ...
masterg174's user avatar
0 votes
1 answer
145 views

how to restrict pdf, doc and ppt download in wordpress

I am building a website in Wordress, I am uploading Doc, PPT and Pdf files on wordpres page for viewing purpose for the user but I want to restrict them from getting downloaded. any help is ...
Hitesh Pawaskar's user avatar
1 vote
2 answers
2k views

Ensure that input value is string of alphabets in reactjs

I'm developing a reactjs application and I want that my user must enter only alphabets in an input field. Here is my code. <input value= {this.state.val} onChange = {this.handleVal}/> handleVal ...
MoeezShahid's user avatar
1 vote
0 answers
50 views

SAS: Constrain parameter of one level of a multi-level variable

I’m generating a propensity score using logistic regression in SAS. The model predicts compliance with a quality measure. I will match patients into groups who actually complied and not complied with ...
Sean T's user avatar
  • 11
2 votes
4 answers
417 views

C/C++: emulating restrict keyword by copying arguments to local variables

I encountered the following question when using vector intrinsics (AVX), but the question probably also applies to sequential programming. It concerns the use of the restrict keyword. The keyword is ...
Ralf's user avatar
  • 1,203
3 votes
1 answer
983 views

In Django, restrict users to particular urls

I have the following urls in my Django application: path('rooms/<room_id>',views.home,name='home'), models: class ChatRoom(models.Model): eid = models.CharField(max_length=64, unique=True) ...
SAI SANTOSH CHIRAG's user avatar
0 votes
2 answers
817 views

Excel VBA Outlook - Subject Contains Is Not Finding Reply Emails

How do I get the following Excel VBA code to return all emails with subjects containing 'Timesheet 06/19/20'? The below code does return "Timesheet 06/19/20 - Name (EmpId) ". However, IT ...
Mike's user avatar
  • 136
-2 votes
1 answer
758 views

restricting users on nodejs telegram bot

I currently have a telegram bot giving my organisation users answers to FAQ questions but I need to restrict it so only certain people that have paid for the mentorship are able to use the product ...
AlShan's user avatar
  • 1
0 votes
0 answers
41 views

Restrict user access to intranet for asp.net application

I'm using an asp.net application, where I have a requirement to restrict users to download reports available in our application if he/she is trying to download report outside intranet. How to find ...
User_2301's user avatar
1 vote
0 answers
124 views

Restrict access on webpage using .htaccess

Hey I am currently running into the problem, that I want to restrict access on some websites in my html root folder, so I can access them only from my local Network. The Problem is, that neither the ...
Popeye's user avatar
  • 11
0 votes
1 answer
876 views

SQL SERVER - Trigger to restrict over 3 records

I am a beginner on SQL and need help setting a Trigger I need to set a trigger so that if 1 tutor has over 3 different schedule ID's this is not allowed!! Table TutorID/ScheduleID/Student 1 ...
user avatar
0 votes
2 answers
81 views

Setting different constrains per truck in ORTools

We are in development of route optimization software which uses HERE Maps and we need to make the following: Some trucks can pass through all countries (they have all the licences required to pass ...
Sonnyx's user avatar
  • 1
-1 votes
2 answers
558 views

Restrict page if Auth::user()->id != user_id using middleware

i use middleware to restrict the admin page from non-admins, and i can restrict pages with a list of "patients" from other users by using a policy, but if i use a policy. I have to repeat the code can(...
Jeffrey van der Kruit's user avatar

1
2 3 4 5
8