user

WPF: Validation with IDataErrorInfo and low reuseability with similar validation rules

Hello, I have a pupil entity implementing IDataErrorInfo: Now the exact same rules I want to validate against the Lastname, Gender, Street, City, Postal and Phone. Do I really have to repeat all that ? Using ValidationRule class would be better but then I can not handle disabling/enabling buttons via ICommand. ... #region Valida...

Solr/Lucene user click based ranking

I am facing the problem of sort Lucene results based on user click log. I would like that more accessed results comes first. Does anyone knows how to configure or implement such property in Lucene or Solr? Thank you very much. ...

Very simply, how can check if a user exists against my MySQL database?

Here's what I have but nothing is output to the screen. :\ <html> <head> </head> <body> <? mysql_connect(localhost, "sergio", "123"); @mysql_select_db("multas") or die( "Unable to select database"); $query="SELECT * FROM usuario"; $result=mysql_query($query); $num=mysql_numrows($result); $i=0; $username=GET["u"]; $password=GET["p"];...

Best method in PHP to make a user logs in from one machine at a time.

Can you please suggest me a best method in PHP to make a user logs-in from only one machine at a time. ...

Reason for .Net UI Element Thread-restriction

We know that it is not possible to execute code that manipulates the properties of any UI element from any thread other than the thread the element was instantiated on... My question is why? I remember that when we used COM user interface elements, (in COM/VB6 days), that all UI elements were created using COM classes and co-classes...

WPF application with many user controls

Hi, I'm writing an application that is supposed to show and hide the content of the main window stack panel based on the user choice. For example, the user clicks on the button that displays the list of the customers, then click on the button that displays the ordering form. The customers content should be hidden and the ordering form sh...

Is there any Example of PHP user to user chat on sockets?

Is there any Example of PHP user to user chat on sockets? ...

Cakephp Auth with multiple "Users" tables

Hi, I would like to know how to deal with only ONE authentification process and "users" in multiple tables. I have 4 Users table: users, admins, artists, teamadmins which all have specific fields, but I would like all of these users to be able to connect via only one form on the homepage, and being redirected after that to their specific...

Proper way to define "remaining time off" for a Django User

I've implemented a UserProfile model (as the Django 1.2 docs say is the proper way to save additional data about a User) which has a 'remaining_vacation_hours' field. In our current system, when a user fills out a Time Off Request, the remaining hours available should be checked to see that they have enough vacation to use, or otherwis...

User settings mechanism for Yii

Hi guys! I need some help with user settings mechanism for my Yii-based application. I've created the following db structure to store user settings: table user with the following fields id | username | email | etc. table settingslist (to store a list of all possible settings with descriptions) with the following fields id | code ...

how to get all 'username' from my model 'MyUser' on google-app-engine ..

my model is : class MyUser(db.Model): username = db.StringProperty() password = db.StringProperty(default=UNUSABLE_PASSWORD) email = db.StringProperty() nickname = db.StringProperty(indexed=False) and my method which want to get all username is : s=[] a=MyUser.all() for i in a: s.append(i.username) and i wa...

Should services include logged in user as a parameter?

Hi, When using the Service design pattern, do you usually place the logged in user, or user scope, as a parameter to the methods of the service interface, or do you call AutheticationService.getLoggedInUser() in the service implementation. What advantages/disadvantages do you find for each option? ...

How to create an alias for a mercurial user ?

I am looking for a way to create an alias for a user that has commited to a mercurial repository. For example, if there is a user named user1 I'd like every commit done by him to be under the name user2. ...

Django URL user id versus userprofile id problem

I have a mini comunity where each user can search and find another user's profile. Userprofile is a class model, indexed differently compared to user model class (user id is not equal to userprofile id). But I cannot see a user profile by typing in the URL the corresponding id. I only see the profile of the currently logged in user. Wh...

Wordpress: Create a customized role / user

Hi, I’m farely new to Wordpress but are working on putting a page together which has a very simple purpose. I’m creating it for a customer with little or none IT experience so I want to create a user he can use to login and edit his pages – and nothing more. No settings, no comments, no posts, no links, no nothing, just create, delete a...

Drupal hook_user stop execution

Hello, I need to use Drupal 6's "hook_user" to update a 3rd party API whenever a user updates their profile. Therefore I use the 'update' operation. The problem I am facing is that I just cannot see how I can stop execution if the 3rd party API update fails. I.e. the user updates their username, but if the API fails, prevent Drupal ...

Users in database server or database tables

Hi all, I came across an interesting issue about client server application design. We have this browser based management application where it has many users using the system. So obvisously within that application we have an user management module within it. I have always thought having an user table in the database to keep all the log...

SQL Server user best practice

Hi, I have a login with Windows Authentication which is called domain\username. Now I want to map this login to my DB and the SSMS is proposing a user called domain\username as well. I don't know if I have to map the domain login to the database user as domain\username or simply as username. What is the best practice? THANKS ...

drupal user login redirect

hi i wrote a module for user page generation. After login the path goes to users/[user-name] and i want to customize it using my module. how to handle it? ...

current_user.user_type_id = @employer ID

I am building a system with a User model (authenticated using AuthLogic) and three user types in three models: one of these models is Employer. Each of these three models has_many :users, :as => :authenticable. I start by having a new visitor to the site create their own 'User' record with username, password, which user type they are, e...