Questions tagged [restrictions]

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

232 questions
0
votes
1 answer

hibernate restrictions on string with hyphen throws assertionfailure exception

I'm trying to pull records in Hibernate using the following Criteria query. Security result = (Security) getSession().createCriteria(Security.class) .add( Restrictions.eq("symbol", symbol) ).uniqueResult(); The symbol attribute is a unique…
0
votes
1 answer

How to convert this indexed LINQ Restriction Operation to the other style of LINQ

just got curious if this LINQ Statement: string[] digits = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" }; var shortDigits = digits.Where((digit, index) => digit.Length < index); is convertible to this style…
Allan Chua
  • 9,305
  • 9
  • 41
  • 61
0
votes
1 answer

Brute force or algorithm

I'm not sure what kind of approach is needed but let me describe the problem: Given an arbitrary number of workers (2 or more) are scheduled to work in any given month (including weekends). Only one worker may work that assigned day. 2a. This…
Steve L
  • 69
  • 5
0
votes
1 answer

XY restrictions for custom mouse cursor in Actionscript3

I have this interactive 5 seconds animated intro for a website. the preloader and one item are animating and i made the second animation follow the mouse cursor but it has to stay within a certain part of the stage to work with the other animation…
0
votes
1 answer

Java criteria restrictions sum of columns lower than value

Hi I've a question about converting a simple SQL statement into a java hibernate restriction. SQL: SELECT a + b FROM col WHERE a + b < 10 When I try to convert this to a criteria I get: Criteria criteria =…
karen_22
  • 1
  • 1
0
votes
1 answer

Using Silverlight authorization to manage access to individual controls

I am making an application using Silverlight. I must restict the access of some controls to some users. Example: user1 can't use the delete button ... Is there a framework or something that can help me ? Would it help if I use sessions ? Thanks.
ihebiheb
  • 3,673
  • 3
  • 46
  • 55
0
votes
3 answers

disable items during specific hours of the day php

I have a site that is based on requests, users can request items, I want to restrict some of the requests during certain hours of the day. For example the user can request item5 only between say 5pm and 8pm. The rest of the time it's…
Guernica
  • 246
  • 5
  • 21
0
votes
4 answers

Restrict User Access in same browser

I am making a php based application. When two users are logged in from same the browser in different tabs then they can access each other page. How to prevent this?
Tushar Sippy
  • 13
  • 1
  • 5
0
votes
1 answer

Limiting access to category pages in Wordpress

I've recently installed Jason Tadlock's Members plugin which allows restriction of pages and posts but I have built a site using category pages for the majority of the pages. Could anyone tell me how to apply these restrictions to categories or to…
mantis
  • 215
  • 1
  • 4
  • 17
0
votes
1 answer

How to add restriction to a restricted attribute in XSD

My requirement is like: I need to validate an xml which has an element "Term" and its attributes as termType, ValueName, Value. I need to add a restriction to termType such that, when I get the termType attribute value as "expression", the ValueName…
-1
votes
1 answer

How to slow down load time for a website

I'm looking for a script/code that slows down the load time of a website. It might sound stupid but it's needed. I've tried with javascript...html codes.. .htaccess file and yeah.. I'm out of ideas. Im using a webshoes who's using "nginx". Anyone…
Kjell
  • 1
  • 3
-1
votes
1 answer

How to get a device handle to pass to WriteFile within UWP C#

I have an UWP C# application that needs to use printers that are connected via USB. Unfortunately the UWP built-in functionality for these sorts of devices (Windows.Devices.Usb namespace) has some major shortcomings. It doesn't recognize the USB…
-1
votes
1 answer

unix - SFTP server, limited user access

The usuall question that still is challanging to implement: having one directory shared through sftp (read-only). Following this wiki: http://en.wikibooks.org/wiki/OpenSSH/Cookbook/SFTP The changes I made on ssh_config are: PasswordAuthentication…
nagy.zsolt.hun
  • 6,292
  • 12
  • 56
  • 95
-1
votes
2 answers

Simple way to add 30 days to a date

I'm new to programming (doing a course on Computer Science) and one of the exercises is to have the program read a date and then print the next 30 days over and over until the end of the year. Problem is, there are restrictions. I cannot use…
-1
votes
1 answer

restricting aro scope in cakephp

Ok, I'll preface this by saying i'm a noob to cake and ACL, and MVC architecture. I'm following a cakephp tutorial from its site, http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/part-two.html. I understand the…
Todd
  • 5,314
  • 3
  • 28
  • 45
1 2 3
15
16