I see that if we change the HOME(linux) or USERPROFILE(windows) environmental variable and run a python script, it returns the new value as the user home when I tried,
os.environ['HOME']
os.exp
Is there any way to find the real user home directory without relying on the environmental variable?. Thanx.
I have a WPF user control ...which is in MVVM. The user control(which contains a listview) need data from the page (where it is included). I have to set a property in View's code behind to get this data input. Will this comply with MVVM(But MVVM pattern do not support adding code in code behind file of view as far as i know).if not, what is the way for the same?
what is the current state of user authentication? is it good to go with openid or another alternative, or we still have to write our own user/password?
I am looking out for a better logic to save the form values entered by user, as the user accidently traverse to nextpage by clicking submit button.when he clicks on back button , the values should exist.please let me know your thoughts.
I have created a user control that contains a button.
I am using this control on my winform which will be loaded at run time after fetching data from database.
Now I need to remove a row from a datatable on the Click event of that button.
The problem is that how do I capture that event in my form. Currently it goes in that user control's btn click event defination.
Java Servlets - How do I detect if a user is from a mobile device?
I'm using the TinyMCE javascript editor, and it doesn't work on the iphone. How can I detect if the user is coming from a mobile device?
I know how to show an alert when the user exits the browser and I know how to implement a neat modal dialog using the jQuery UI library. My problem is, I'd like to implement that dialog when the user attempts to close the browser rather than display the ugly little popup box. Is this do-able?
I'm looking for a way of mapping a uid (unique number representing a system user) to a user name using Perl.
Please don't suggest greping /etc/passwd :)
Edit
As a clarification, I wasn't looking for a solution that involved reading /etc/passwd explicitly. I realize that under the hood any solution would end up doing this, but I was searching for a library function to do it for me.
I want a page has to appear to user after logged in. But if we use that link we can see the page and its content only thing is that it wont be having user data. what to do to prevent this. what can be done in this scenario ?
what is the difference between a shallow copy and deep copy with respect to user defined types and why do we need to perform a deep copy during copy construction for user defined types??
I would like to know how a kernel programmer thinks about memory vs user mode programmer. I would also like to know a few more differences between kernel programming and user mode programming.
I am opening links on a page into an IFrame. But if the user right clicks and selects open in new window that will ruin the look I want since it will not have the parent page holding it. So is there a way to open the page as i have it working now when the user clicks on the link but if they choose to open in new tab to have it load the current page all over again in the new window with the link they selected loaded into the IFrame.
Thankyou
Is there a way to authenticate a user to LDAP with email (mail) and not cn or DN? We are using ruby ldap, and possibly active-ldap (we have been having problem with it, though). All we need to do is authenticate a user and then create a membership in our system based on the authentication success.
How do I change who is logged in (allow for another user to login) to an application that is using Windows Authentication without having the PC user log off?
I have database acces(.mdb) for my application desktop(c#) like billing application, i want that database shared to open database by multiple user. Realy now i'm use that database in computer one that fine connection succesfully but when i'm try to open database in computer two i have error message like "database has open exclusive by other user or you not have permision" what i'm to do... Please anyone help me.. tanks.
Regards,
Yusan Susandi
Is it possible to have a pdf file that asks a user a set of questions and then writes their answers to a file, then next time it is viewed loads those answers as default values? I know pdfs can include javascript and have figured out how to add javascript to a pdf with iText (http://itextpdf.com/) but don't know how to prompt for user input or write to a file from inside the pdf.
Any help would be appreciated.
I'm creating a Windows Phone 7 app and learning Silverlight in the process. I have a youtube video url and I'd like the user to be able to click a video thumbnail in my list and go to a youtube app to view the video (similar to iPhone). Is this possible? If so, can you share some code to send the user to the video? I already have a MouseLeftButtonUp event handler.
Hi,
In default acegi setting, person and authority have many to many relations. Thus, in addtion to people and authorities, there is a table authotiries-people.
To delete a person (a user) I have to delete the related record in authotiries-people first....then come back to delete the record...
the problem is: other people are still using this authority (ROLE)
could some one enlighten me how to delete the user without deleting the authority?
thanks.
$ time foo
real 0m0.003s
user 0m0.000s
sys 0m0.004s
$
What do 'real', 'user' and 'sys' mean in the output of time?
Which one is meaningful when benchmarking my app?
I have a user control with a form, and I am trying to embed it in sharepoint 2007... I am getting an error about having two server-side forms on one page. This is crazy! Surely I can write a user control with a form and embed it in sharepoint??
Thanks.
I have some details of user in database but i want to display details for particular user.i want to know which controller is better for that can u give me some advice.Thanks in advance.
Maybe not literally but the query below gets an error near user. If i change it to userZ it works. WHY can i not use that name? Is there a way to specific its a field instead of a keyword? (or whatever it is)
create table Post2 (
id INTEGER PRIMARY KEY NOT NULL,
title nvarchar(max)
NOT NULL,
body nvarchar(max)
NOT NULL,
user integer REFERENCES Post1(id));
I'd like to be able to create a special user account that would exist on an android device. Since it is based on the Linux kernel, I was hoping there was a way to create a group account and then create a user account. Is it possible ?