Questions tagged [restrictions]

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

232 questions
1
vote
1 answer

Doxygen command paragraph (hanging) indentation limitations?

Are there any limits for how much indentation can be used on multi-line (paragraph) commands? Consider a typical use-case of @details in the context of a function: /** * @brief Do foo. * @details Lorem ipsum dolor sit amet, mentitum rationibus nec…
Charles L Wilcox
  • 1,126
  • 8
  • 18
1
vote
2 answers

GWT restore visibility restrictions from uiBinder

Let's say I have some components with visible="false" property in my ui.xml file, and in my java code I showed some of those components. Is there any simple way/method to restore visibility restrictions stored in uiBinder, so I get the basic…
Piotr Sołtysiak
  • 998
  • 5
  • 13
1
vote
3 answers

Java Date Issue,Keeps Reverting To 1935 Form 2035

Having an issue with an application I'm testing that takes in several Date parameters from a user, while testing I've noticed if i enter a date that's in or before 2034 everything works fine but once i go from lets say 21/08/34 to 21/08/35 the year…
RoRo88
  • 306
  • 1
  • 4
  • 14
1
vote
1 answer

Country restriction while using google place API nearby search

I'm creating a web application to search business organisations in an area. User will provide keyword and zip code for the search. For searching, Place API Nearbysearch functionality is used. Latitude, longitude, radius and keyword are given for the…
DAN
  • 3,140
  • 5
  • 20
  • 22
1
vote
1 answer

Restricting direct access to files using .htaccess

I have video files in a folder. And I want to restrict the users from directly accessing them. I have my .htaccess like this RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost [NC] RewriteCond %{HTTP_REFERER}…
anilCSE
  • 2,461
  • 3
  • 23
  • 29
1
vote
1 answer

Google maps geocoder for OpenStreetMap

I use almost exclusively OpenstreetMap, but not for geocoding, because I think Nominatim is not very flexible. Can I use google geocoder free and unrestricted? Do I need to write on my website that I use google geocoder? Are there any restrictions,…
1
vote
1 answer

restricting file uploads by size or filetype not working

I have a PHP script which uploads an image file, and it works fine. But I want to restrict it by size and type, and I can't get the restrictions to work: if ($_FILES["file"]["size"] > 10240) { die("Invalid file"); } I thought should trap for…
1
vote
1 answer

Multiple OR in hibernate restrictions using disjunction or in for the same field

I'm trying to come up with a criteria that would check whether or not a certain string is one of a number of possible patterns. e.g. myField should not conform to any of the following patterns: pattern1%, pattern2%, pattern3% If I were to do this…
callie16
  • 570
  • 1
  • 11
  • 26
1
vote
1 answer

overriding minOccurs from a group

I have a situation where there is a base type that I don't "own" and it allows all child elements to be optional. From a general business perspective this makes sense. For example, say it was:
Tad
  • 517
  • 8
  • 30
1
vote
1 answer

Is there any way to find out what's blocking my app's internet access?

I have several users reporting that the app can't get an internet connection, but they swear that they didn't enable any data restrictions for the app. This is only happening on Android 4.2.2, and I've had the users verify that they do have internet…
user496854
  • 6,461
  • 10
  • 47
  • 84
1
vote
3 answers

How can you limit the access of unregistered users while giving registered users full access?

I'm trying to create a webpage with users and information that can only be accessed by registered users. Is it possible to limit the files an unregistered user can see? If so, how? I already have a MySQL database with a connection in index.php.…
Max
  • 175
  • 1
  • 6
  • 24
1
vote
1 answer

Access permissions for selective files in a directory one level up

I have a website which has a lot of confidential data and code which I have custom made. I have hired a developer to do the designing and some simple PHP integration for me. To prevent him from seeing all files, I made a test environment in one of…
1
vote
0 answers

Is exclusive disjunction possible in Hibernate?

I would like to get from database some rows and I would like Hibernate to stop checking second part of OR condition when the first part returns some data. This is something similar to exclusive disjunction. My code is below: Calendar c =…
woyaru
  • 5,544
  • 13
  • 54
  • 92
1
vote
0 answers

Java: Getting properties from Set<>

I am using org.hibernate.criterion Class Restrictions to add restrictions on what is returned from a search. Just a bit of information, I have a object Person which has a property Set. LevelPassed is an object with the property level…
Hip Hip Array
  • 4,665
  • 11
  • 49
  • 80
1
vote
1 answer

Adding restrictions to xsd generated from wcf

So I'm doing some research on how to format the WSDL and XSD generated from WCF, specifically adding annotations/documentation to the WSDL and XSDs along with adding restrictions to various parameters. So far I've been able to add the documentation…
Austin Johnson
  • 135
  • 1
  • 11