Questions tagged [restrictions]

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

232 questions
5
votes
2 answers

Error variable 'x' of type 'myClass' referenced from scope '', but it is not defined

This code works fine: ICriteria criteria = GetSession().CreateCriteria(); criteria.Add(Restrictions.Where(x => x.Field1 >= myVariable)); But the following code does not work: criteria.Add(Restrictions …
sara
  • 124
  • 2
  • 11
4
votes
1 answer

Does Apple allow to download OpenGL shaders in iOS game at runtime?

I am planning to implement iOS game where certains assets - textures, shaders, etc. are downloaded at runtime when user buys specific in-app purchases . Its well known fact about Apple prohibiting downloading & emitting iOS app code at…
Oleg
  • 121
  • 1
  • 1
  • 4
4
votes
3 answers

Hibernate Criteria Projection

Well as the question title says, I am trying to make a projection criteria querying only couple of the table attributes. So I have a Person Table/class and it has about 40 attributes. I want my criteria to get dynamical number of attributes, lets…
Darwly
  • 344
  • 1
  • 6
  • 22
4
votes
1 answer

NHibernate Criteria Where any element of list property is true

I have an already created NHibernate Criteria query that I need to modified so I can add a new condition. The query is based on the Order object, which has a list of OrderItems and then, every OrderItem has a bool property named…
user1261580
  • 73
  • 2
  • 6
4
votes
2 answers

Emails not sending when requesting signatures for DocuSign API

I have written the following two methods for sending requests for signatures. From template: https://github.com/wadewegner/docusign-sample/blob/master/src/DocuSign/DocuSignClient.cs#L215 From binary:…
Wade
  • 741
  • 1
  • 5
  • 18
4
votes
2 answers

Is there an iOS method/function to test if Settings Restrictions have been enabled?

With Apple's new kids' app policy, one has to make a parental gate before Apple will accept the app. Unfortunately Apple haven't provided a mechanism one can use for such a gate, and so developers are struggling with how to solve this. In iOS…
4
votes
3 answers

Permutation method in Python with some fixed elements

Having spent a considerable amount of time now trying to come up with a way to (what I think) should be a relatively simple procedure, I have managed to write the code which will generate the results (thanks to suggestions on this wonderful forum!),…
les_paulde
  • 43
  • 3
3
votes
1 answer

equivalent to restrict, action execute and navigation rule in page.xml (Java EE + JSF 2.0 - coming from Seam)

I learned building a web-app with Java and Seam (and JSF 1.2) But now i'm working at the moment with pure Java EE 6 and JSF (Mojara 2.0.9) - without any extra Framework around. In Seam i used for the index.xhtml the index.page.xmlfor restriction:…
Joergi
  • 1,527
  • 3
  • 39
  • 82
3
votes
3 answers

What does 'struct' restriction mean?

The is a 'struct' restriction in generic classes or methods in C#. I want to know It means structs only or any type derived from value type like int, double, enum, ant so on. Is the next code let me to use simple types? class SomeGenericClass
Tadeusz
  • 6,453
  • 9
  • 40
  • 58
3
votes
3 answers

Starting an Application from Windows Service

I am building a Windows service that will watch for specific occurrences of events and disk activity. When such an event occurs my plan is to alert the user to the event via a client app, and provide remediation if necessary. I have (mostly)…
Kristofer
  • 361
  • 5
  • 14
3
votes
1 answer

Detect anonymous allocations in GNAT predefined libraries

So I'm developing an Ada 2012 library that should not perform allocations from default pools; all of those should use a user-specified storage pool. I'm using some predefined packages and some of them obviously do not honor the rule: indefinite…
Álex
  • 1,587
  • 11
  • 17
3
votes
1 answer

Hibernate criteria: search by content on a property list in an entity

I want to search by content on a property in an entity I have a simple class to define a User: @Entity public class User { @Id @Column(name = "pers_id") private int persId; @Column(name = "full_name") private String fullName; …
BasicCoder
  • 1,661
  • 10
  • 27
  • 42
3
votes
2 answers

Nhibernate: restriction with sum of 2 columns

Can I create this sql query using HNibernate Criteria: Select * from Table1 where Column1 > (Column2 + Column3) All 3 columns are int32. Thanks
Lullaby
  • 427
  • 9
  • 23
3
votes
1 answer

How to implement subscription plan restrictions? (php)

Let's say we have a simple SAAS that offers two types of plans. For example, in the cheapest plan you can create 20 lists at maximum and in the next plan you can create up to 50 lists. This is just one feature of the pricing model. Assuming the…
nteath
  • 250
  • 1
  • 13
3
votes
1 answer

WSO2 API Manager - Token restrictions 20KPerToken

Can I limit token to make 20K per token validity requests. My use case is: give to user token with year validity and 20K per token limitations. Thank you in advance for any help! EDIT: When I'm adding application limit 20PerYear and generate token…
Taras Melon
  • 377
  • 4
  • 16
1
2
3
15 16