restriction

Incorporating shareware restrictions in C++ software.

I wish to implement my software on a shareware basis, so that the user is given a maximum trial period of (say) 30 days with which to try out the software. On purchase I intend the user to be given a randomly-generated key, which when entered enables the software again. I've never been down this route before, so any advice or feedback o...

Is there a good way to bypass restrictions on running EXE files?

I have to compute at libraries quite often these days, and have been having some issues with my U3 smart drive. Despite working on some computers, public libraries here restrict the execution of EXE files and disable AutoPlay, rendering my U3 apps useless. Is there a good way of getting around the restriction and getting something - anyt...

Reporting Services Rendering format restriction

Hi, Is there any way i can restrict my rendering format to PDF for one of my report in Report Manager. Thanks, brijit ...

One blog for each Django user with the "blog role"

Hi, What approach is the best way to make content-types restricted to a user in Django, lets say that i want all users with the user-role "blogger" to have its own blog. Ive createt a weblog app, but how do i restrict it so that the user logged inn can only post in his "own" blog, and how do I make views that shows only a users blog? ...

How do I limit the result set being pulled back by NHibernate's GetByCriteria?

I have an NHibernate Dao..lets call it MyClassDao for want of a better name. I am writing the following code. MyClassDao myDao = new MyClassDao(); var values = myDao.GetByCriteria(Restrictions.Eq("Status", someStatusValue)); I am using this in a Unit Test to pull back values from the database. However, it is taking over 30 seconds t...

What does the 'static' keyword do in Java?

To be specific, I was trying this code: package hello; public class Hello { Clock clock = new Clock(); public static void main(String args[]) { clock.sayTime(); } } But it gave an error like 'Cannot access non-static field in static method main'. So I changed the declaration of clock to this: static Clock clock ...

How do I restrict my AIR distribution?

Is there any way through which i can restrict my AIR app to be further distribution? Say I have make one AIR application and I give this app to my friend. Is there any way so that he can not re distribute this app to any new person? ...

IP restriction with htaccess

Hi guys! I want to restrict an entire site in such a way that just two IPs could enter the site. I have the following in my .htaccess (at the root of site): ErrorDocument 403 http://www.example.com/views/error403.html Order Deny,Allow Deny from all Allow from 311.311.311 322.322.322.322 ErrorDocument 404 /views/error404.html ErrorDoc...

How can we restrict the user from saving a web page?

How can we restrict a user from saving the page? Please provide some tips to disable File->Save and View Source options EDIT: Obviously it can't be done, and probably shouldn't be attempted. But possibly a more interesting variant on this question is how can we make is sufficiently hard for a user to save a page in a usable format suc...

Add attributes to a simpletype or restrictrion to a complextype in Xml Schema

The problem is as follows: I have to following XML snippet: <time format="minutes">11:60</time> The problem is that I can't add both the attribute and the restriction at the same time. The attribute format can only have the values minutes, hours and seconds. The time has the restrictionpattern \d{2}:\d{2} <xs:element name="time" typ...

What is the most hostile corporate environment to deploy a .NET WinForms app on?

Suppose you were writing a network-based WinForms application which is supposed to run in a "paranoid" environment due to restrictive company policies at the customer site. What kind of restrictions did such hostile environment have, and what did you do to design around them? Some examples to begin with: Problem: There is a very restr...

Safe Python Environment in Linux

Is it possible to create an environment to safely run arbitrary Python scripts under Linux? Those scripts are supposed to be received from untrusted people and may be too large to check them manually. A very brute-force solution is to create a virtual machine and restore its initial state after every launch of an untrusted script. (Too ...

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 system. In a desktop/server application environment what kind of things are restricted? ...

Google Crawler Time Restriction

does anyone know that it is possible to setup any property in order to inform googlebot to just come and crawl the site during specific day or time period (eg. during the weekend only)? thanks, ...

How to create a page that is restricted only for a group of people?

any suggestions? ...

How to achieve "not in" by using Restrictions and criteria in Hibernate?

I have list of category. I need a list of category by excluding 2,3 row. Can we achieve through hibernate by using Criteria and Restriction? ...

XSD restrictions

Is it possible using XSD to restrinct node names to enumeration, and then based on this enumeration add another restrictions? In example, I have this xml: <a> <b name="string" value="hello"> <b name="integer" value="123"> </a> I want "b" nodes have name attribute from enumeration { "string", "integer" }. Then if it's "string"...

crawler gets stuck on the mandatory agecheck page in Drupal

Hi, we have a big community website build in drupal, where the site has a mandatory agecheck before you can access the content of the website it checks for a cookie to be present, if not, you get redirected to the agecheck page. now we believe crawlers get stuck on this part, they get redirected to the agecheck and never get to crawl ...

Video streaming API

Current situation: Users are downloading the whole video clip (>70mb or >140mb). This is not as effective as we would like. [I am a non programmer looking for a solution]... I want to be able to stream video for a professional development package from our servers to the user. The user logs in and access the video from the dashboard. ...

How to get the digits of a number without converting it to a string/ char array?

How do I get what the digits of a number are in C++ without converting it to strings or character arrays? ...