back soft

مطالب مرتبط با «user» در back soft | نویسنده: استخدام کار

Populating an array using user input(JAVA)

Vote count: 0 So I have made a 'Student' class which has some data members,and methods....What I want to do is get input from the user using a form and then initialize a student object using the values entered by the user. I used the following code but somehow every Student object has the same values as the last entered user input. Srry for bad English //Declared in main class Student1 stu = new Student1(); Student1[] Student1Array = new Student1[200]; int Mcounter =0; //elsewhere in the program private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { int Admno = Integer.parseInt(admTF.getText()); String Name = name.getText(); int Standard = Integer.parseInt((String)(ClassCB.ge...

ادامه مطلب

php shell_exec() change user or navigate to user folder

Vote count: 0 I would like to know if it was possible to use shell_exec as an other user. The point is to access directly to the user folder (in home/user/) Or, is it possible to navigate from var/www/ to home/user/ folder using shell_exec? Thank you for your help! asked 1 min agoorugari Let's block ads! بخوانید...

ادامه مطلب

Messenger Bot: how to get id, name and user's profile picture url?

Vote count: 0 I have Messenger Bot and want to do this action. User click Button Template(URL) . Messenger opens new tab On Web app header display header with fullname, display Picture All these data are public data ex: user fullname, picture url to display. I know can use Graph API with USER_ID, BUT In Messenger Bot can get only SCOPE_ID, so it caot be used in graph api. Any way to achieve like thisand No login required. asked 52 secs agoriseres Let's block ads! بخوانید...

ادامه مطلب

How to make java rest call on base curl -u USER:PASSWORD

Vote count: 0 I need access a third party url using such details curl -u USER:PASSWORD "URL OF THIRD PARTY" Can i call it using as rest api call or not if possible then help me how i call it using java .what i set in header parameter to call it . asked 33 secs agoAnuj Dhiman Let's block ads! بخوانید...

ادامه مطلب

User can't access user databases in SQL Server

Vote count: 0 I have created new user in SQL Server 2012 on one of my cloud machines. But when I try to access any database other than the system ones, they are not accessible. Showing dialog "The Database XXX is not accessible". How can I access all the tables which are created by other users? OR how can I make user who has all the database object access? edited 9 secs agomarc_s asked 1 min agoRajaram Shelar Let's block ads! بخوانید...

ادامه مطلب

Each User need to be able to create their own photo gallery ?LOGIC?

Vote count: 0 Each user needs to be able to create their own photo gallery. I need help with the LOGIC... asked 12 secs agoWindow 1000 Let's block ads! بخوانید...

ادامه مطلب

Listing Chrome users from outside Chrome

Vote count: 0 Chrom(ium) supports the creation of multiple users. These users end up having Profile folders created. For example, /User Data/Default, /User Data/Profile 1. How do I programmatically obtain the list of Chrome users as well as their respective profile directories. At first I thought it was just parsing through the App Data/Local/Google/Chrome/User Data folder but it seems to be storing the information somewhere else, as deleting a Profile, e.g., Profile 1, causes it just to be created and the user is still listed. asked 20 secs agotofutim Let's block ads! بخوانید...

ادامه مطلب

define keystone_user from openstack/puppet-keystone via hiera?

Vote count: 0 I am using https://github.com/openstack/puppet-keystone to set up an OpenStack management/controller node. I need to add the 'glance' user to keystone. I want to try and do as much as I can in my hiera data so my manifest will be simple. Here is my manifest: class kilo2_keystone { include controller_ceph include keystone include keystone::config include keystone::user # keystone_user { 'glance': # ensure => present, # } } The commented out section works, but I want to be able to do include keystone::user and supply the parameters in my hiera data like so: keystone::user: "%{hiera('glance_admin_user')}": ensure: present But when I run puppet agent -t on my node I get this error:...

ادامه مطلب

Facebook: Can't publish on user feed in test mode

Vote count: 0 I have developed a Facebook app in test mod and I want to publish on the test user's wall. this is the link where the user register and accept the permissions: https://www.facebook.com/dialog/oauth?type=user_agent&client_id=MY_APP_ID&display=popup&redirect_uri=THE_URL&scope=email%2Cpublish_actions After that I am getting an some sort of a token, using this token I am doing the following request to the graph: /oauth/access_token?client_id=MY_APP_ID&client_secret=MY_APP_SECRET&grant_type=fb_exchange_token&fb_exchange_token=".$token the token coming back is now being used by me to get the user's details from the graph: /me/?$user_access_token&fields=name,age_range,id,email,gender,...

ادامه مطلب

Python map with user-defined function

Vote count: 0 I have a file text with data in a following format: rubbish & 3.97& 3.83& 3.95& 3.83& 3.82 rubbish & 4.92& 4.81& 4.88& 4.81& 4.81 rubbish & 5.90& 5.66& 5.88& 5.66& 5.66 rubbish &--- & 6.05& 6.14& 6.05& 6.05 rubbish & 6.42& 6.26& 6.46& 6.26& 6.26 rubbish &--- & 6.56& 6.63& 6.56& 6.56 And I want to read them into numpy.array object so that numbers are transformed into floating point number object while the --- stay as the string objects. However, the following piece of code creates an expected numpy.array object but everything in there is a string. import numpy as np wejscie = open('data.dat', 'r').readlines() def fun1(x): print x if x.strip() == '---': retu str(x) else: retu flo...

ادامه مطلب

How I insert birthday in user plone?

Vote count: 0 Dears, I use Plone 4.3.9, and I'm doing a intranet, all users come from Samba4. But, I created a new dexterity content types (with this fields Name, Photo, and birthday [Day and Year]) and a view to show in index page show up and I handler users and birthday to appear in index I want put this way mode that I do (described up) in garbage, and to expand my knowledge in Plone, I want override users Plone or do something like to put one or two more fields to set month and year of birthday in default users plone. How I do it? Thank you very much... I will appreciate so much your valued time to help me... asked 12 secs agoJuliano Araújo Let's block ads! بخوانید...

ادامه مطلب

AWS Cognito IntitiateAuth: Missing required parameter UserName

Vote count: 0 When initializing an authentication to AWS Cognito, the API is rejecting my request: InvalidParameterException: Missing required parameter UserName status code: 400, Here is the content of the request (yes, I tried putting it everywhere, no success). params := &cognitoidentityprovider.InitiateAuthInput{ AuthFlow: aws.String("USER_SRP_AUTH"), // Required ClientId: aws.String("1i72nb4kksllrkm9s37rtyl713"), // Required AuthParameters: map[string]*string{ "useame": aws.String("myUser"), // Required "UserName": aws.String("myUser"), // Required }, ClientMetadata: map[string]*string{ "useame": aws.String("myUser"), // Required "UserName": aws.String("myUser"), // Required }, } Any id...

ادامه مطلب

What is the highest value that can b input for an integer variable in c++ by a user?

Vote count: 0 So, I made a c++ program to calculate the volume of a pool. It is a console application. All the user has to do is input the dimensions of the pool and the program will retu the volume, amount of water and the area of the pool. The problem is that I tested out the program with really high numbers and for some reason it does not work anymore (it retus wrong negative values). So, I was wondering, are there any limitations for how big the inputted value can be for a variable in int? Also, if I run the program in release mode once it makes the calculations it displays the answer for a split second and, than closes immediately. Is there a way to keep it open, so that the user has ti...

ادامه مطلب

Accounts setUsername fail with user alaready exists

Vote count: 0 This Meteor 1.4 server code usesaccounts-base@1.2.9accounts-password@1.2.12 is giving the following error: Exception in callback of async function: Error: Useame already exists. [403] console.log(oldUseame); //=> abc121111 console.log(newUseame); //=> abc123333 Accounts.setUseame(userId, newUseame); Surly the console.log shows they are different. why is it failing and how to fix it? Thanks asked 47 secs agoFred J. Let's block ads! بخوانید...

ادامه مطلب

How can I translate Facebook user data into records on my database?

Vote count: 0 I'm using the omniauth-facebook gem with devise to set up Facebook login on my website. I'm at the point of importing Facebook user data into my database, but I'm having some weird issues. Here's my method used to import the data: #User.rb def self.from_omniauth(auth) where(provider: auth.provider, uid: auth.uid).first_or_create do |member| user.email = auth.info.email.to_s user.password = Devise.friendly_token[0,20] user.useame = auth.info.name end end The record I get back has a useame equal to the Facebook email, and the email itself is nil. The "name" (which is actually the email address) is the only piece of Facebook user data I'm actually able to recover. Has anyone else ...

ادامه مطلب

Why is request.getRemoteUser() returning the tomcat windows service account sometimes

Vote count: 0 I'm trying to get windows authentification to work with a 3rd party application developped with GWT. I'm hosting the app with tomcat, on a windows server. I access the site through an IIS proxy (installed following the tomcat's documentation). If i modify a .jsp of the webapp to display "" , I get the useame i'm hopping for, my windows account. But the webapp authenticate me with the account I installed the Tomcat windows service with on the server. In the (decompiled) source code of the webapp, i see a call to the exact same "request.getRemoteUser()" , so I wonder where can be the difference. Here are the decompiled classes : import javax.servlet.http.HttpServletRequest; publi...

ادامه مطلب

How can I install a Microsoft Edge extension without user interaction?

Vote count: 0 I'm currently working on a Microsoft Edge extension which will be deployed in an enterprise environment. The Edge extension has been currently installed manually (and reloaded at each browser restart since it's from an unknown source). For Inteet Explorer extensions, the DLL can be registered on the system with RegAsm and a Registry tweak allows loading all add-ons (the IgnoreFrameApprovalCheck key, see this link) without any user prompt. Is there a similar way of adding Edge extensions automatically to the browser with no user interaction? Thank you! asked 36 secs agoadrianmp Let's block ads! بخوانید...

ادامه مطلب

How to prevent scrollbars from hiding on OS X without impacting Windows users?

Vote count: 0 I have a scrollable div. In OS X, the scrollbars auto-hide themselves, which is a bit prettier than always-visible scrollbars but sometimes confuses my users. The general response to this issue is to use ::-webkit-scrollbar: How can I prevent scroll bars from being hidden for OS X trackpad users in WebKit/Blink? CSS - Overflow: Scroll; - Always show vertical scroll bar? http://blog.0100.tv/2012/11/webkit-scrollbars-on-os-x/ The trouble with these solutions is that they also impact Chrome users on Windows, and I'd like to keep Chrome users on Windows having the same scrolling experience they're used to. Is there a way to either prevent the scrollbar from hiding on OS X without c...

ادامه مطلب

Get all twitter mentions using tweepy for users with Millions of followers

Vote count: 0 I had a project in mind where I would download all the tweets sent to many celebrities for the last one year and do a sentiment analysis on them and evaluate who had the most positive fans. Then I discovered that you can at max retrieve twitter mentions for the last 7 days using tweepy/twitter API. I scavenged the net but couldn't find any ways to download tweets for the last one year. Anyways, I decided to do the project on last 7 days data only and wrote the following code: try: while 1: for results in tweepy.Cursor(twitter_api.search, q="@celebrity_handle").items(9999999): item = (results.text).encode('utf-8').strip() wr.writerow([item,results.created_at]) # write to a csv (...

ادامه مطلب

Give Permission to Users in Alfresco

Vote count: 0 I want to give different type of permission(eg- read, write) of specific folder or documents to different different users in alfresco. For example there is a folder called A, I want to give read permission for user1, write permission for user2 like that. Please some one suggest me how to do this using apache chemistry. asked 11 secs agorish Let's block ads! بخوانید...

ادامه مطلب