Questions tagged [restriction]

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

Restriction is a very broad tag that denotes a requirement to restrict the code in some fashion.

706 questions
4
votes
4 answers

Limitations of Java desktop applications?

I come from a C/C++ background and now do a lot of C# stuff. Lately I have become interested in doing some projects in Java since playing around with the Android SDK. I know that Java apps run in a sandbox that can limit their access to the…
TWA
  • 12,756
  • 13
  • 56
  • 92
4
votes
1 answer

Enforcing Restritions On DataContracts

Is there any way one can enforce restrictions on values passed in the form of data contracts as parameters to a given WCF Service? For instance, please consider the contrived and certainly non-compilable example of this Vehicle…
DotNetStudent
  • 889
  • 9
  • 24
4
votes
0 answers

is there a xsd.exe alternative with restriction support?

I have generated some classes using the VS 2010 version of XSD.exe. This works well for the class relationships, but it does not support restrictions other than choices. I need support for maxLength and pattern. Is there an alternative tool that…
Craig
  • 1,277
  • 2
  • 16
  • 29
4
votes
1 answer

Is there a list of restricted words for the Google Cloud project ID?

I create new Google Cloud projects using the Resource Manager API. As far as I now, passing the project ID is required. At least it's not marked "optional" in the REST API and also it fails if I try to create a new project with just the…
4
votes
3 answers

How can I set material-ui TextField to accept only Hexidecimal characters

I want my TextField to accept only the values from 0-9 and letters A-F. Thanks.
Zotov
  • 265
  • 1
  • 8
  • 20
4
votes
0 answers

How to restrict access by IP to specific dynamic URLs (only 1-2 pages) in tomcat or url-pattern format

Please do not close this question as answered, because all links I found like this and they are about how to block single static URL, but not a dynamic. I have a Tomcat 7 and I have an application something like http://server/myapp/. I need to…
Zlelik
  • 559
  • 1
  • 7
  • 17
4
votes
2 answers

Amazon AWS EC2 - How to restrict traffic to be received only from Elastic Load Balancer?

Right now, when I manually enter my EC2 ipv4 address in the browser, I get the webpage back. How can I restrict the EC2 instance to only receive and send data to the Elastic Load Balancer (ELB) that's attached to it? Thank you.
4
votes
1 answer

Defining and reusing restriction in XSD

In my XSD, I have a restriction that I use frequently. The same restriction is used in several places and it could be missed when updating it. I understand that there are tools (find/replace) but I think it is nicer to have these restrictions…
Dragonix
  • 199
  • 1
  • 1
  • 14
4
votes
1 answer

Install PIL without pypi

I need to install Pillow using easy_install or from source. Due to the restrictions on the computer I'm using at school, I can't access python.org or pip. I decompressed the file from effbot.org, and put the PIL folder from that into site-packages.…
Luke Taylor
  • 8,631
  • 8
  • 54
  • 92
4
votes
2 answers

How could I prevent from using some specific classes?

I want to automate some test to check the ability of a programmer to write efficient algorithm. In this sample, the algorithm is to perform a simple binary search in an array of int. public class ComplexityPractice { public bool…
Perfect28
  • 11,089
  • 3
  • 25
  • 45
4
votes
2 answers

Check if background restriction data is enabled or not?

I have a service which is running on the main thread not in the background. In the service I'm checking net connection via broadcastreciver. When I enable restriction data enabled in Settings, broadcastreciver is catching intent well, but internet…
nAkhmedov
  • 3,522
  • 4
  • 37
  • 72
4
votes
3 answers

How can i restrict the image Folder using .htaccess in codeigniter

i had codeigniter project that contain the image folder and i want to make it unreachable from direct url access suppose some one enter url http://localhost/project/images/Pricelistupdated.pdf then it will be directly open in browser tab without…
Kashyap Patel
  • 1,139
  • 1
  • 13
  • 29
4
votes
2 answers

WCF: limit number of calls per hour - per user

I've got a WCF service (basicHttpBinding, basic authentication, IIS 6.0) on which I want to restrict the number of calls per hour - on user basis. For example, max 1000 calls per user, per hour (a la Google Maps, etc). I also want to implement some…
Eric Eijkelenboom
  • 6,943
  • 2
  • 25
  • 29
4
votes
1 answer

Restricting iOS access to a website

I have a bit of a conundrum. I am currently in the initial design phase of creating a mobile app, what I would like to do is have it so that a user goes through a login page while connected to the internet. After being verified the app is basically…
John Smith
  • 75
  • 9
4
votes
2 answers

Programmatically toggle "Restrict Background Data"

If I go to "Settings - Data Usage" and press the "Properties" I can activate "Restrict Background Data", using a Samsung Galaxy S2 (i9105P) with Android 4.1.2. Is there any way I can do this programmatically, both on and off? I only want to…
Paul
  • 20,883
  • 7
  • 57
  • 74