I have been looking around a bit for info on how to do this. Essentially I have a Model:
class SharableUserAsset(db.Model):
name = StringProperty()
users = ListProperty(users.User)
My questions are:
What is the best way to associate users to this value where they are not authenticated, visa vi invite from contacts list etc.?
Is ...
The site I'm working on involves teachers creating student objects. The teacher can choose to make it possible for a student to log into the site (to check calendars, etc) OR the teacher can choose to use the student object only for record keeping and not allow the student to log in. In the student creation form, if the teacher supplies ...
I have a problem that I have been trying to figure out and haven't been able to get past it because Chrome/FireFox/IE do not publicly publish their "rules" for pop up blocking when it comes to JavaScript, Flash, etc. I am trying to trigger a window.open() when a user clicks anywhere on page. I've tried this:
document.onclick = window.op...
I would like to know the number of users logged into my ASP.NET 2.0 application.
Points to be considered:
1) Simplest way would be to use Application or Cache object to have the counts on Session start or end. However this would fail if there is a worker process recycle. Wouldn't it?
2) Should't make a difference whether the session is...
I need to limit users to a single node of a given content type. So a user can only create one node of TypeX. I've come up with two approaches. Which would be better to use...
1) Edit the node/add/typex menu item to check the database to see if the user has already created a node of TypeX, as well as if they have permissions to create it...
Is it possible to search for multiple user names with a single PrincipalSearcher call. Maybe by providing an 'OR' of the requested user names as the filter criteris ?
...
Hello all,
While nerding my way through the day again. I came across a problem concerning adding children to an already add child control.
I can add the controls, but when trying to use the controls in the added control, they all return null.
This is the method:
protected override CreateChildControls(EventArgs e)
{
UserControl uC...
hi.
dealing with php/html/javascript.
i'm trying to figure out a good/best approach to allowing a user to download a file. i can have the traditional href link, that interfaces with the back end php app to download the file.
however, i want to have the app display some sort of dialog/alert if the user isn't able (basedon acl/permissio...
Context
Context first - issues I'm trying to resolve are below.
[EDIT] The application in questions is built against .NET 3.5 SP1.
One of our clients has asked as to quote how long it would take for us to improve one of our applications. This application currently provides basic user authentication in the form of username/password com...
Hi !
I would like to know how to log the login and logout of a user : it would be a mean to measure how much time someone has been connected in a month so far.
I know it's possible to use the command "last". But this command is based on a file that has a r/w permission for the user, hence the possibility to change these data.
I would l...
This is a rather tricky question as I have found no information online. Basically, I wish to know how to check if a computer is idle in Java. I wish a program to only work if the computer is in active use but if it is idle then to not.
The only way i can think of doing this is hooking into the mouse/keyboard and having a timer.
MSN Me...
I'm looking for the most elegant and secure method to do the following.
I have a calendar, and groups of users.
Users can add events to specific days on the calendar, and specify how long each event lasts for.
I've had a few requests from users to add the ability for them to define that events of a specific length include a break, of...
Hi,
I would like to know how to get system information such as OS name and version, system manufactor...
I can get this information by WMI qureies, but WMI queries are not working for guest account.
Any idea?
Thanks.
...
What is the max time do you think is acceptable for a web script (PHP for example) to execute before it starts to become an annoyance for the user (on average)? I always thought that if the user has to wait more than 1 second for the page to load (this of course after images and css have been cached..this rule really only applies for sub...
Here's my index action in the books controller: http://pastebin.com/XdtGRQKV
Here's the view for the action i just mentioned: http://pastebin.com/nQFy400m
Here's the result without being logged in: http://i.imgur.com/rQoiw.jpg
Here's the result when i'm logged in with the user 'admin': http://i.imgur.com/E1CUr.jpg
So the problem is t...
I'm trying to weigh the pros and cons of a database design, and would like to get some feedback as to the best approach. Here is the situation:
I have users of my system that have only a few required items (username, password). They can then supply a lot of optional information. This optional information continues to grow as the syst...
I have logic on a CheckBox's OnCheckedChanged event that fires on form load as well as when user changes check state. I want the logic to only execute upon user action.
Is there a slick way of detecting user vs programmatic change that doesn't rely on setting/checking user variables?
...
Hi,
I'm using version 2.7.0 of this WordPress plugin to display which users are currently online (the latest version doesn't work): http://wordpress.org/extend/plugins/wp-useronline/
It's working great but I would love to be able to alter it quickly to display the users' avatars instead of their names. Hoping someone with pretty good k...
I want to make my User objects all have the same base behaviour and to do so I need to add a couple of methods / properties to Anonymous User.
I've already subclassed User to make richer user objects but I was wondering if anyone has done the same for Anonymous User? And if there are any preferred ways of doing it!
...
Given a username and password how do i impersonate that user and run some code as that user.
And by managed i mean without pinvokes or dllimports
...