Questions tagged [restrictions]

A set of limiting conditions or measures to delimit the behavior of software.

232 questions
0
votes
2 answers

Restrict php code to logged in users - Wordpress

I've got a gallery on a listing page that I want to only display to logged in users. I'm trying to use the function is_user_logged_in() but I'm failing to work out exactly how to implement it. I'm a beginner trying to work more in the PHP files…
Andre
  • 1
0
votes
1 answer

Set Multiple Restrictions for Rows Called to Print in Pandas

import pandas as pd import numpy as np #load data #data file and py file must be in same file path df = pd.read_csv('cbp15st.txt', delimiter = ',', encoding = 'utf-8- sig') #define load data DataFrame columns state = df['FIPSTATE'] industry =…
rcoffey96
  • 3
  • 1
0
votes
1 answer

Generate all the possible combinations of n bits with different prefix of a given word in Python3

I got the following problem. Given a word (a binary one) I want to generate all the combinations with length n, and the given word can not be a prefix of any of the combinations. For instance, with n = 3 and the word is 00 I would like to…
Norhther
  • 545
  • 3
  • 15
  • 35
0
votes
1 answer

DetachedCriteria isNotEmpty for Oracle

I discovered following problem today. As I am using detached criteria, like detachedCriteria.add(Restrictions.ne(field, value)); to check if a String is empty. I found out that this is not working for oracle. As a "IS NOT NULL"-Check is not enough…
Pwnstar
  • 2,333
  • 2
  • 29
  • 52
0
votes
1 answer

Seam - Entity Query - dynamic restrictions

I have an EntityQuery - addressList generated by Seam-gen for Entity Address. Lets say that address has following fields : streetName and city, so Seam-gen generate restrictions for them. I would like to extend my EntityQuery with a following…
androdevo
  • 752
  • 1
  • 8
  • 17
0
votes
1 answer

Retrieve OWL class restrictions using OWL API

I'm working on research regarding ontology population.I want to extract restrictions for each and every class in ontology such as somevaluefrom, alvaluefrom, cardinality restrictions on data properties and object properties.I'm Using the OWL API.now…
Dil
  • 307
  • 1
  • 3
  • 15
0
votes
1 answer

Restraining mobile number input

I have a form where I am accepting mobile number from users. Condition is that, I have to accept only the numbers starting from either 7, 8, or 9 and max length should be ten. I am using the following code for the same :
0
votes
2 answers

How to validate XML elements with XSD schema?

I would like to use conditions in my XSD schema for my XML document. I used restrictions but it's not quite powerful. Here is an example of what I did so far:
Stoufiler
  • 175
  • 1
  • 2
  • 13
0
votes
1 answer

Deny all filetypes but 1 and allow autoindexing

I've searched all over stackoverflow and seen various posts but no luck thus far. Let me paint the picture: Im hosting a game server for me and some buddies and im symlinking the directory with maps and mod to apache2. I only want the outside world…
vitali
  • 1
  • 3
0
votes
0 answers

IIS IP Restrictions and Start/End Ranges

Preface: I have only a basic understanding of IP address; not a network guy. I have a list of IP start and end ranges in the format of XXX.XXX.XXX.0 to XXX.XXX.XXX.251. I need to manually enter these ranges into the IP restrictions feature of IIS…
CrazyTmack
  • 66
  • 8
0
votes
2 answers

Restrict woocommerce product to certain customer to buy

I am setting up an eCommerce website selling household's stuff. I'd like some products to be purchased by regular visitors but some products (with lots of discounts) are retricted to certain Memberships only (namely wholesalers) and these products…
0
votes
1 answer

Hibernate Criteria Restrictions.eq is case insensitive

I am using criteria to check if username and password from json are correct. I am sure that input username and password are in correct case but it always returns me object even if the letter case are different. public Admin…
0
votes
3 answers

php restrict user content

So I'm trying to make a dummy website where only members who are marked as premium can see certain content. Since it's a dummy website the way this is distinguished is by selecting yes or no on a checkbox while creating an account. But, what I'm…
yukimoda
  • 181
  • 10
0
votes
2 answers

How to achieve using sequence inside CASE statement MSSQL

In my sql query I want to use sequence inside CASE statement. The problem is, that I can't use NEXT VALUE FOR inside CASE. I was trying to define user function, but restrictions about using exec and modifying data in UDF made my solution…
Julian Kowalczuk
  • 145
  • 1
  • 2
  • 10
0
votes
1 answer

Qt 5.7 How to restrict mouse movement inside a widget

I want the mouse to be "stuck" inside the QScrollArea while I'm dragging custom widget. I made the QScrollArea a subclass called MyScrollArea so I could reimplement the event mouseMoveEvent. This is MyScrollArea subclass: myscrollarea.h #ifndef…
andseg
  • 658
  • 1
  • 9
  • 26