restriction

Restrict application usage

Hello, I would like to restrict people using my application to one Computer, so I was thinking about IP's.. but people in some countries get new IP's after they reboot their Internet.. so I need something better to identify the users, like some value that doesn't change until the user performs a format. Thanks ...

Eclipse 3.5.1 Compiler Error :The type OutputFormat is not accessible due to restriction on required library ../rt.jar

This error is weird and i cannot make much sense of it. I've installed EclipseRCP 3.5.1, Java SE 1.6 update 16 and switched to SWT 3.5. I've created a new project, set up the dependencies and tried to compile. When trying to import, use the following: import com.sun.org.apache.xml.internal.serialize.OutputFormat; import com.sun.org.apac...

Restricting an IP if it is between an IP Range.

Ok, it's friday afternoon, and i've had a long week so would appreciate some help! Currently, i have a list of IP ranges, as follows: List<IPRange> ipRanges = new List<IPRange>(); ipRanges.Add(new IPRange { From = "145.36.0.0", To = "145.36.255.255" }); ipRanges.Add(new IPRange { From = "194.183.227.184", To = "194.183.227.191" }); ipR...

Hibernate entity with restriction

Hi, We have a DB table that is mapped into a hibernate entity. So far everything goes well... However what we want is to only map enentitys that satisty a specific criteria, like ' distinct(fieldA,fieldB) '... Is it possible to map with hibernate and hibernate annotations? How can we do it? With @Filter? ...

how to restrict an input in c

I want to prevent my program from any other types of input instead of int. How to check the type of an input without assigning it to a variable? in C ...

XML Schema: What does a restriction with only a base attribute mean?

What would it mean to create something like the following? <xsd:simpleType name="myField"> <xsd:restriction base="xsd:boolean"/> </xsd:simpleType> Notice there are no actual elements within the restriction (no min or max length, no enumerations, etc). I feel like this is basically setting the type of myField to xsd:boolean. Howe...

Windows 7 Ribbon licensing vs Office 2007 Ribbon licensing

If I recall correctly one of the limitations of the Office 2007 Ribbon UI was that you cannot use it to compete with other MS Office products like Word or Excel. Does this same restriction apply for the Windows 7 Ribbon UI? Thanx. ...

Webservices to IP restriction

Hi, I have built a webservices, but it can accessed by all poeple. I want to it only used by the IP which I assigned. it's possible can do it on the webservices code. I was using vb ...

Restrictions on PHP include()

Hey guys, I am separating some XHTML from PHP by putting the XHTML into a separate file and then using PHP's include() function within the PHP script. This works perfectly fine, however, users are still able to access the .html file directly if they know the address. They can't really do much with it, but I would rather it not show. ...

NHibernate Join and Restriction Criteria

Hi, Im trying to write an NHibernate criteria that effectively joins and restricts at the same time. My DB looks like this... Cases ---> CustomerProducts <--- Customers Cases ---> CaseStatuses Each case is associated with a customer product (Many cases to one product). Each customer has a number of customer products (One customer has...

Why I can't extend bool in Python?

>>> class BOOL(bool): ... print "why?" ... why? Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Error when calling the metaclass bases type 'bool' is not an acceptable base type I thought Python trusted the programmer. ...

XSD: How to restrict enumeration values of a derived complex type?

Given the following example: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt; <xs:complexType name="Book" abstract="true"> <xs:sequence> <xs:element name="titel" type="xs:string"> </xs:element> <xs:element name="bookCode" type="BookEnum"/> </xs:sequence> </xs:complexT...

add expiry date to pdf using asp.net

is it possible to add an expiry date to a PDF with asp.net when someone downloads a file? the idea is that when the user downloads a file it will be usable until a set date when it will become useless and they will have to download a fresh version. ...

Java Applet CPU restrictions?

Is there some type of cap as to how much CPU an applet can use? Or will my code run just as fast as a standard java program? ...

How to safeguard my code

I had posted my question in the below link on how to protect my code using Hg http://stackoverflow.com/questions/173875/how-do-you-protect-code-from-leaking-outside The question is: In a DVCS scenario how can we restrict the code leakages? Is there any way technically to restrict this like when I move our of my work automatically hist...

Using mysqlimport where the filename is different from the table name

Hi all, I've been playing with mysqlimport and I've run into the restriction where the filename has to be the same as the table name. Is there any way to work round this? I can't rename the file as it is used by other processes and I don't want to copy the file as there will be many of them, some being very large. I want to use mysql...

How do I set IP access / password restrictions in Apache?

I'd like to restrict access to my Rails app (running on Apache/Passenger) to just two IPs, but if the visitor doesn't fall into those two IPs, I would like for him/her to be prompted to enter a password that would allow any user with the proper credentials to access the site from anywhere. I am new to configuring Apache and would apprec...

How can I restrict reflection for certain assemblies?

In my .net application I want to restrict reflection to certain assemblies. I mean I want that my a particular assembly can be reflected by only some predefined assemblies not by any other than that. How can i do that? Edit: This tool completely shuts down .NET disassembly and decompilation of an assembly. I want to allow some predefin...

Restrictons of Python compared to Ruby: lambda's

Hi, I was going over some pages from WikiVS, that I quote from: because lambdas in Python are restricted to expressions and cannot contain statements I would like to know what would be a good example (or more) where this restriction would be, preferably compared to the Ruby language. Thank you for your answers, comments and fe...

Is there a way to jail in Javascript, so that the DOM isn't visible

I would really like to provide the user some scripting capabilities, while not giving it access to the more powerful features, like altering the DOM. That is, all input/output is tunneled thru a given interface. Like a kind of restricted javacsript. Example: If the interface is checkanswer(func) this are allowed: checkanswer( function ...