user-profile

How to load ~/.bash_profile when entering bash from within zsh?

≡放荡痞女 提交于 2019-12-03 01:39:48
问题 I've used bash for two years, and just tried to switch to zsh shell on my OS X via homebrew. And I set my default (login) shell to zsh, and I confirmed it's set properly by seeing that when I launch my Terminal, it's zsh shell that is used in default. However, when I try to enter bash shell from within zsh, it looks like not loading ~/.bash_profile , since I cannot run my command using aliases, which is defined in my ~/.bash_profile like alias julia="~/juila/julia" , etc.. Also, the prompt is

Facebook Connect: capturing user data with django-profiles and django-socialregistration

柔情痞子 提交于 2019-12-02 16:26:18
Either my google searching has completely left me or there's hardly any documentation/tutorials for django-socialregistration . Too bad, because it seems like a nice enough app. Through some trial-and-error, I have managed to get it mostly running on my site. My question, using django-socialregistration how do I request permission for the facebook user's full name, current city and date of birth and store it in my UserProfile table (which is my AUTH_PROFILE_MODULE for django-profiles) in Django upon registration? Also, how do I post to the user's wall from Django once the connection is made?

How to load ~/.bash_profile when entering bash from within zsh?

浪尽此生 提交于 2019-12-02 15:10:04
I've used bash for two years, and just tried to switch to zsh shell on my OS X via homebrew. And I set my default (login) shell to zsh, and I confirmed it's set properly by seeing that when I launch my Terminal, it's zsh shell that is used in default. However, when I try to enter bash shell from within zsh, it looks like not loading ~/.bash_profile , since I cannot run my command using aliases, which is defined in my ~/.bash_profile like alias julia="~/juila/julia" , etc.. Also, the prompt is not what I set in the file and instead return bash-3.2$ . For some reasons, when I set my login shell

SonarQube how to create Profile and import new rules to it

廉价感情. 提交于 2019-12-02 07:38:39
问题 I'm developing a plugin to SonarQube in order to import rules from a .xml file. So far this is done and they really are imported into the SonarQube instance and shown under "Rules". Although the Quality Profile is being created, all the imported rules aren't being added to it and I can't understand why. I don't want to add them one by one by hand; I'm looking for a way to add them directly to the created profile once they are imported from the .xml file. The profile is simply created with:

How can I display a list of all LOGGED IN users with Meteor.js

徘徊边缘 提交于 2019-12-02 06:02:25
问题 I have been trying for days to get a list of logged in users in a Meteor chat app. I tried many different things. I managed to add a login flag on the user profile object. Server side: Accounts.onCreateUser(function(options, user) { if(!options.profile){ options.profile = {} } options.profile.login = false; if (options.profile) user.profile = options.profile; return user; }); In the browser console I get this: Meteor.user().profile Object {login: false} So that seems to work. Now I want to

How can I display a list of all LOGGED IN users with Meteor.js

╄→гoц情女王★ 提交于 2019-12-01 23:01:23
I have been trying for days to get a list of logged in users in a Meteor chat app. I tried many different things. I managed to add a login flag on the user profile object. Server side: Accounts.onCreateUser(function(options, user) { if(!options.profile){ options.profile = {} } options.profile.login = false; if (options.profile) user.profile = options.profile; return user; }); In the browser console I get this: Meteor.user().profile Object {login: false} So that seems to work. Now I want to list if users are logged in: Client side Deps.autorun(function(){ if(Meteor.userId()){ Meteor.user()

How to create a new (persistent) Firefox profile with Selenium in Python?

情到浓时终转凉″ 提交于 2019-12-01 18:17:46
Trynig to add a new, persistent, Firefox profile with Selenium. AFAIK, when executing FirefoxProfile() , a new profile is generated using a temporary file. Ideally, this profile should be able to remain available to subsequent processes - even after the creator is closed. Problem : Create a new Firefox profile from within Python code. This should return a FirefoxProfile object that is usable with the Firefox webdriver Selenium uses. The profile created should persist after the process ends - i.e. it should be a full-fledged profile, not just a temporary profile. Some pointers : The profiles

How to create a new (persistent) Firefox profile with Selenium in Python?

亡梦爱人 提交于 2019-12-01 17:39:22
问题 Trynig to add a new, persistent, Firefox profile with Selenium. AFAIK, when executing FirefoxProfile() , a new profile is generated using a temporary file. Ideally, this profile should be able to remain available to subsequent processes - even after the creator is closed. Problem : Create a new Firefox profile from within Python code. This should return a FirefoxProfile object that is usable with the Firefox webdriver Selenium uses. The profile created should persist after the process ends -

Profile issues with google chrome

我的未来我决定 提交于 2019-12-01 15:29:00
I am facing an issue with my automation script.I am logging into a URL in my script.When I do that manually it login normally but when I use automation script it asks for verification code which is available on my mail. I thought if I will use the chrome default profile for login then this issue should not arise.But it didn't helped me out. Can anyone suggest any solution ? As known, Webdriver always starts with fresh, default profile. That is the reason its asking for verification but not same when do manually. To avoid it, you can specify the chrome profile which is used manually to

Profile issues with google chrome

橙三吉。 提交于 2019-12-01 13:32:02
问题 I am facing an issue with my automation script.I am logging into a URL in my script.When I do that manually it login normally but when I use automation script it asks for verification code which is available on my mail. I thought if I will use the chrome default profile for login then this issue should not arise.But it didn't helped me out. Can anyone suggest any solution ? 回答1: As known, Webdriver always starts with fresh, default profile. That is the reason its asking for verification but