Questions tagged [restrictions]

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

232 questions
2
votes
1 answer

How to have a generic out-parameter without any type restrictions

The problem is this: I want a generic function that has an out-parameter of the generic type. Restrict the generic type to ref-type and there is no problem ofcourse. But I wanted a totally unrestricted generic type! No new() or…
AnorZaken
  • 1,916
  • 1
  • 22
  • 34
2
votes
2 answers

A function which is a 'friend of a Class' that is allowed to have 'read access' to its 'private members' but NOT 'write access'?

Hello to all that read I am self learning C++ from a text book: A Question in the textbook asks me to make a function a friend of a class and therefore the friend function can have access to all of the classes members; which is fine I can do this. …
Mr_leighman
  • 313
  • 1
  • 6
  • 22
2
votes
1 answer

NHibernate QueryOver Restrinctions on a variable

I've a little problem: I would insert a condition into my QueryOver that checks also the variable value. Something like this: var qOver = QueryOver.Of(() => myMod) .JoinAlias(() => myMod.SubMod, () => subMod,…
Faber
  • 2,194
  • 2
  • 27
  • 36
2
votes
1 answer

How to block special characters in androids editText? no ANDROID:DIGITS

How to block special characters in androids editText? by not using android:digits!! is there any other way around, even programmatically?
MarkJ
  • 57
  • 2
  • 8
2
votes
1 answer

portable database column names

I am designing a relational database schema that may be ported to multiple database platforms--SQLite3, PostgreSQL and MySQL and possibly others. I would like to create table names that would be portable across all the database platforms. What are…
momeara
  • 1,341
  • 2
  • 17
  • 29
2
votes
1 answer

Create an XSD that can be imported to EXCEL with restrictions based on element values

I have been searching the web for a while and from what I can tell what I want is not possible using XSD 1.0. My requirement is: We have an .xml that create the following table when imported to excel: The requirement is only one, that the values…
Spyros
  • 261
  • 2
  • 14
2
votes
2 answers

TFS and Git - Making users be limited to push code

We are using TFS as project management interface and we are using Git for managing the repository. We want users be limited to push a file and push to branch in the repository. For example: In branch A, user1 can not make changes to file1, user2…
Görkem Özer
  • 504
  • 5
  • 13
2
votes
2 answers

User level restrictions on ethereum

I have two queries related to ethereum. I am trying to do a proof of concept that required multiple users to have access to a blockchain node. (1). Can I have like a million user accounts on Ethereum's Node. Or does ethereum has restriction in the…
Saurabh
  • 1,249
  • 2
  • 13
  • 14
2
votes
1 answer

Temporary allowing certain users role to watch some restricted content

In WordPress/WooCommerce, I have a web shop that uses User Roles and based on those roles, you can see different Pages/Products. What I'm looking to do is add a way that allow some User role to temporary see, the same stuff than other User…
Mac
  • 334
  • 1
  • 3
  • 13
2
votes
1 answer

Confluence: best way to add public restrictions of a page

Currently we have a user guide sitting in Confluence. We want to give access to this page to all users of the product. What is the best way to do this? Do I put the user guide into its one space and make it public. Then would I need to make a group…
Ricky Wang
  • 21
  • 2
2
votes
1 answer

WebRTC TURN server ip range access restrictions

We have a STUN/TURN Server (coturn) running. It will relay (over TURN) a video feed from a device on the internet to a device in a fixed IP range. (There is currently no stream in the other direction, but this might change in the future) I know…
Traspler
  • 865
  • 7
  • 16
2
votes
2 answers

Restrict users from viewing Lambda function

Is there a way in AWS to restrict other users from viewing a specific Lambda function? It seems like currently, if anyone creates a function it will allow everyone else to view them. Is there a way to essentially make them private?
Myelin
  • 21
  • 1
2
votes
3 answers

Does the C# Language Specification explicitly state that comparison must be of the same type?

In searching various terms of the "C# Language Specification, Version 5.0" there appears to be no explicit statement that the LHS and RHS of a comparison must be either of the same type, or be able to be explicitly convertible, or via a cast be…
gerryLowry
  • 2,626
  • 5
  • 35
  • 44
2
votes
2 answers

How to avoid : " The expression of type List needs unchecked conversion to conform to.."

I have this code : List bookList = session.createCriteria(Book.class) .add(Restrictions.like("name", "%i%")).list(); But, i have a notice which say : "Type safety: The expression of type List needs unchecked conversion to…
Dwhitz
  • 1,250
  • 7
  • 26
  • 38
2
votes
0 answers

How to restrict access to your content on cdn for some websites?

We are SaaS platform and using amazon cdn for our static files. We have placed our code snippet on cdn and any our client can insert link on this code snippet into their website(like We need to block some old websites that are using our code…
Roman M.
  • 21
  • 1