back soft

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

Google Apps Script - Publish app as me, but still get active user's email

Vote count: 0 I am using a google sheet as a database and all I need is to get the user's identity to display the proper info. I included the following code to retrieve the user's email address:var userEmail = Session.getActiveUser().getEmail(); But all it gives me is a blank string since I published the app to run under my account. One alteative is to publish the app as the user accessing it, but that would mean having to share the google sheet with all the users in order for them to access that data. Is there any work around? asked 1 min agoJeffrey Lease Let's block ads! بخوانید...

ادامه مطلب

Python - Having user sort list smallest to biggest

Vote count: 0 So I'm making a code where it asks the user to to swap two places on the list until the list is from smallest to biggest. So it should look like this: Hello: Your current list is [6, 7, 8, 2 , 9, 10, 12, 15, 16, 17] Please pick your first location -> 4 Please pick your second location -> 2 Your new list is [6, 2, 8, 7 , 9, 10, 12, 15, 16, 17] I've gotten to this part but I am currently unable to figure out how to get the USER to do the sorting and not the code. Your list is not sorted: Please continue Please pick your first location -> 1 Please pick your second location -> 2 Your new list is [2, 6, 8, 7 , 9, 10, 12, 15, 16, 17] Please pick your first location -> 3 Please pick y...

ادامه مطلب

get user properties in result of IQ xmpp stanza

Vote count: 0 I am creating XMPP users using OpenFire create-user RestAPI call. And i am setting some properties for users as indicated in PayLoad Example 2. After creating users, i add them to each others rosters. So, every user has every other user in his/her contact list (roster) Now, on the client side (i use smack library), when i retrieve the roster for any user, i expect the properties to come back as well along with the users' jabber id and such. But i am not seeing the properties xml tag. I don't want to create vCards (as i have heard it's hard to set up LDAP with OpenFire, etc) just to achieve this lightweight metadata setting for the user. Any idea if what i am trying to do is eve...

ادامه مطلب

Generate different totals of an image using a checkboxlist and user input

Vote count: 0 I have a barcode generator that takes information stored in a database and generates a barcode from a databound checkboxlist selection. There are different check boxes, the user checks the boxes of the items they want and enter a universal total. protected void btnGenerate_Click(object sender, EventArgs e) { int n; int i = Int32.Parse(BatchNumText.Text); for (n = 1; n...

ادامه مطلب

How to archive user messages in ejabberd in sql database?

Vote count: 0 Hi we had used ejabberd 16.04 version for chat application, and i can perform user creation and sending message now what i need is i want to archive messages but i couldn't so kindly look into below code and guide me where i went wrong? Some of the my ejabberd code: auth_method: sql default_db: sql Database coection: ## ## MySQL server: ## sql_type: mysql sql_server: "127.0.0.1" sql_database: "ejabberd" sql_useame: "root" sql_password: "1231231213" modules: mod_mam: db_type: sql Error log: 2016-07-18 12:36:49.039 [waing] @ejabberd_config:default_db:884 Module 'mod_carboncopy' doesn't support database 'sql' defined in option 'default_db', using 'mnesia' as fallback asked 55 secs...

ادامه مطلب

How to update notification without annoying user if notification is already shown by GCM/FCM onMessageReceived()?

Vote count: 0 public class NotificationGenie extends FirebaseMessagingService { private static final String TAG = "Firebase_MSG"; @Override public void onMessageReceived(RemoteMessage remoteMessage) { // TODO(developer): Handle FCM messages here. // If the application is in the foreground handle both data and notification messages here. // Also if you intend on generating your own notifications as a result of a received FCM // message, here is where that should be initiated. See sendNotification method below. sendNotification(remoteMessage.getNotification().getBody()); Log.d(TAG, "From: " + remoteMessage.getFrom()); Log.d(TAG, "Notification Message Body: " + remoteMessage.getNotification().g...

ادامه مطلب

Trying to create customer service messaging app, but other users can see and message other users not just me

Vote count: 0 (Leaing Swift as 1st programming language) (1st time using stack) Hi, I am creating a local delivery app where users will be messaging me to place orders for delivery. However users can see every other user registered on the app and message them. How would I make it so that just 1 primary admin can see and message every other users, whereas users can only message me? I'm using Firebase for back-end. The tutorial and pretty much exact code i'm using is available here: http://letsbuildthatapp.com/2016/07/15/swift-firebase-3-create-chat-bubbles-using-constraints-ep-13/ download entire xcode project: http://letsbuildthatapp.com/wp-content/uploads/2016/07/gameofchats_ep13_chat_bubbl...

ادامه مطلب

Saving custom objet in NSUserDefaults returning null

Vote count: 0 I am trying to save a custom object in the NSUserDefaults but it is retuing nill. I made sure that the object had values before it saves. func syncObjects(){ let userDefaults = NSUserDefaults.standardUserDefaults() userDefaults.setValue(NSKeyedArchiver.archivedDataWithRootObject(profile), forKey: "Profile") userDefaults.setValue(NSKeyedArchiver.archivedDataWithRootObject(preference), forKey: "Preference") userDefaults.synchronize() print("objects synced") } func getObjects(){ if let data = NSUserDefaults.standardUserDefaults().objectForKey("Profile") as? NSData { profile = NSKeyedUnarchiver.unarchiveObjectWithData(data) as! UserProfile if profile.firstName == nil { print("Profi...

ادامه مطلب

Why does SignInManager.GetVerifiedUserIdAsync() in ASP.NET identity require a round trip to return a user?

Vote count: 0 In the default Visual Studio web project for MVC5, you'll find the following code: var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, shouldLockout: false); switch (result) { case SignInStatus.Success: retu RedirectToLocal(retuUrl); case SignInStatus.RequiresVerification: var userId = await SignInManager.GetVerifiedUserIdAsync(); // I added this! retu RedirectToAction("SendCode", new { RetuUrl = retuUrl, RememberMe = model.RememberMe }); // other cases } At this point, SignInManager.GetVerifiedUserIdAsync() retus null. On the next controller action in the chain, however: public async Task SendCode(SendCodeViewModel model) { if (!...

ادامه مطلب

how to load all user js files after renderbody complete in MVC single page application

Vote count: 0 When I generate a MVC5 app using AngularJs, the _Layout.cshtml has the @Scripts.Render at the end of the file after the @RenderBody(), @Scripts.Render contains some animation related script, these script should execute after @RenderBody() elements loaded. Now all scripts are included into page before @RenderBody() elements loaded completely, so my script is not applying to my DOM elements. I'm new to MVC & AngularJs Single page application. Please help me to achieve this. What is the correct approach? Thanks in advance! asked 34 secs agokesava kumar This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please...

ادامه مطلب

Double Hop Delegation: Error retrieving for user IIS APPPOOL. The underlying provider failed on Open. Login failed for user 'DomainWebVM$'

Vote count: 0 Double Hop Delegation: Error retrieving for user IIS APPPOOL. The underlying provider failed on Open. Login failed for user 'DomainWebVM$'. I'm setting up a IIS VM server to access a separate SQL Server VM, both machines ruing Windows Server 2016 and ruing on intranet. We're using windows authentication, and attemping to impersonate users through the machine account on IIS VM server machine. We are building / deploying MVC IIS bits using ASP.NET Core. I'm hitting the above (machine account login) error after having configured everything I can think of and referred to several postings. I've configured the following main items: Web Site setup with Windows Authentication, and ASP....

ادامه مطلب

Laravel how to store user visited product

Vote count: 0 I am working a eCommerce application using laravel framework 5.2. my client want to show the wishlist of product . user visited product add in wishlist . i want to do the work in cookie but i cant find the way how it store and destroy in cookie asked 26 secs agotapos ghosh Let's block ads! بخوانید...

ادامه مطلب

After asp.net Identity login, user should able to login using office 365 and get email details?

Vote count: 0 I need to authenticate the user using asp.net identity then need to use the social login to get there profile detail. Owin does't allow two login at the same time. please help me out of this. thanks in advance. asked 1 min agoNitin Singh Let's block ads! بخوانید...

ادامه مطلب

How I can force a website to use the latest version of CKEditor.js with a Userscript?

Vote count: 0 I'm new to CKEditor and relatively new to JavaScript. I'd like to make a script/Userscript to force some sites that already use CKEditor to use the latest version of ckeditors.js to be able to use the new features. A good example is http://www.pageorama.com which use the old 3.6.2 version. You can see the version easily with alert(CKEDITOR.version); I already know how to destroy CKEditor instance with CKEDITOR.instances.editor.destroy() and add things to the toolbar. My main problem now is to have the latest CKEditor version to be used when I reload it with CKEDITOR.replace(editor); , This was I will be able to config it with the latest feature on site that use CKEditor. How I ...

ادامه مطلب

Android - Send SMS without user's assent

Vote count: 0 i am making a WEB Java application. I would like to insert a button which can instantly send an SMS without the user's assent skipping the "Send SMS GUI" (the user will use the mobile browser to access the service). Pseudocode Example : If(condition) { sendSMSWithNoAssent(); } asked 26 secs agolbat Let's block ads! بخوانید...

ادامه مطلب

User Interface in SAS

Vote count: 0 I want to build an user interface on SAS for logistic regression in which we provide the data - or upload the data with the variables and the dependent variable and it gives an output which gives us the Regression table and a few other desire metrices. What should be the most efficient way of doing this? Does SAS have such a provision of doing it? asked 28 secs agouser2458552 Let's block ads! بخوانید...

ادامه مطلب

WCSession transferUserInfo only works in Foreground

Vote count: 0 I am using WCSession's tranferUserInfo to send data between the watch and the iOS app for info that needs to be handled when either product is in the background. This works 100% of the time on the simulator but never with actual devices. By using breakpoints I have discovered that func session(session: WCSession, didReceiveUserInfo userInfo: [String : AnyObject]) is never called in the background but is immediately called when the app is brought to the foreground. Clearly session.transferUserInfo(data) is being called but not received in the background state. Again ruing the exact same code but on the simulator works perfectly. I am ruing iOS 9.3.2 and Watch OS 2.2.1. Clearly t...

ادامه مطلب

Write data to Firebase not working - Cannot convert value of type 'user' to expected argument type 'AnyObject?'

Vote count: 0 I am trying to save my registered data to Firebase but get a "Caot convert value of type 'user' to expected argument type 'AnyObject?'" error. I tried many things but I can't seem to figure it out...can someone help me please? how do it save it? import UIKit import Firebase import FirebaseDatabaseUI class EventViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate { //outlets for text & image @IBOutlet weak var photoImageView: UIImageView! @IBOutlet weak var eventName: UITextField! @IBOutlet weak var eventDate: UITextField! @IBOutlet weak var eventDes: UITextView! //Database coection let rootref = FIRDatabase().reference() var imagePic...

ادامه مطلب

How to handle post request when user hits submit on very basic node.js/html login page

Vote count: 0 I have created a login page using some HTML/CSS and I want the user to enter a pre-determined password, if the password is correct, they can enter the site, if not, they can't. I have looked up a lot of tutorials/sites etc. but they either use Mongodb to create unique passwords or else use Passport which is not what I'm looking for. I realise having a pre-determined password is not best practice but it suits for the scope of what I'm doing. I plan to change it once I get a basic set up going. There is a fully functioning site when the user logs in, I just have very little experience with Node.js and not really sure how to handle the post request This is my the form part of my H...

ادامه مطلب

Excel User Defined Function issues with Excel Template

Vote count: 0 I am working with a product based on Excel Document Level Customization. The project type is “Excel 2013 Template” in Visual Studio. Recently I have developed a User Defined Function which will be used to evaluate our own function. I have developed the User Defined Function based on the article https://blogs.msdn.microsoft.com/eric_carter/2004/12/01/writing-user-defined-functions-for-excel-in-net/ The User Defined Function works fine with the Excel Template of our product but it fails for one test case. Open a new Excel template of the product . [ex: Excel template 1] Add the User Defined Function to a cell. [Evaluates the result successfully] Open another Excel Template of the...

ادامه مطلب