back soft

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

Firebase-Android retrieve username

Vote count: 0 How to retrieve useames from Firebase? I'm new to firebase. I tried implementing solutions from various posts here as well as from firebase guide but could not figure out how to populate a (android) list with "useame"s. Here is the firebase snapshot.(I have typed though) App users - -comments - title:"wow" -useame - title:"Abc" -email - title:"abc@abc.com" - -comments - title: "great" -useame - title:"XYZ" -email - title:"xyz@abc.com" I need to populate a list in an android app with Abc XYZ asked 2 mins agoPinkblossoms Let's block ads! بخوانید...

ادامه مطلب

Ansible password setup in user module. It didn't set properly

Vote count: 0 I'm new in ansible, I'm setting up my new instance in digitalocean for configuring new user. Basically, I have the playbook for setting up it and everythings okay when I run the playbook but when I tried to check if my password is working it didn't work. I did the sudo apt-get update to if the password is working. It didn't. --- - name: Configure Server hosts: sample_server gather_facts: no remote_user: root vars: useame: sample_user password: sample_password tasks: - name: Update apt cache apt: update_cache=yes - name: Safe aptitude upgrade apt: upgrade=safe async: 600 poll: 5 - name: Add my user user: name: "{{ useame }}" password: "{{ password }}" update_password: always she...

ادامه مطلب

Not able to redirect users using javascript

Vote count: 0 I have a page where user will click on it to send invites to his friend on gmail here is the button Import your Gmail Contacts here is the javascript part function TwkInvite() { alert('function is called'); window.location.href = "https://accounts.google.com/o/oauth2/auth?client_id=*********-*************.apps.googleusercontent.com&redirect_uri=https://www.example.com/app/invite-send&scope=https://www.google.com/m8/feeds/&response_type=code"; } I have tried window.location.href, window.location, location.href everything This function is being executed perfectly as alert is also executed but i don't know why it doesn't redirect to google website, whenever i click on button the p...

ادامه مطلب

Apache in mode proxy redirect user to specific url

Vote count: 0 I have a problem with my apache in reverse proxy mode I want to achieve something and I really don't know how to do it. I have a web application ruing on the port 8443 and a apache server in reverse proxy mode ruing on the port 443. The application use the same login form in order to authenticate the users and the administrators. The url of this page is https://url/ and the user is automatically redirected to https://url/login But with this application I configured a SAML authentication for the users with Shibboloeth. Now on the default login page I have the default form (login and password) and a link to reach the SAML authentication URL. So in fact I have two urls: https://ur...

ادامه مطلب

How to insert more data when registering a user in Laravel Spark

Vote count: 0 I'm using Laravel Spark for my latest app and need to insert a random code to a column in the table upon registration. After A LOT of digging through the code I've found this block of code: /** * Handle a registration request for the application. * * @param RegisterRequest $request * @retu Response */ public function register(RegisterRequest $request) { Auth::login($user = Spark::interact( Register::class, [$request] )); event(new UserRegistered($user)); retu response()->json([ 'redirect' => $this->redirectPath() ]); } Which is found in LaravelSparkHttpControllersAuthRegisterController; Which I assume is where the code for inserting a user into the database is happening. But I ...

ادامه مطلب

Check if user ID exist in SQL database

Vote count: 0 im a begier programmer and im writing a C# application that make query to a database.However I am wondering how could I check that a ID exist(ID is entered by user in the console application) and if it doesnt,display a message.Heres my code: Console.WriteLine("enter ID"); try { var userid = Convert.ToInt32(Console.ReadLine()); var aquery2 = from test in context.BusinessEntityAddress where test.Address.StateProvinceID == userid group test.BusinessEntity.Person.LastName by new { test.BusinessEntityID, test.BusinessEntity.Person.LastName, test.BusinessEntity.Person.FirstName } into balk select new{ ... didnt paste the whole code but this is the part my question is about.At the lin...

ادامه مطلب

User Unable to open application after update

Vote count: 0 I have one quotes application with local database from assets. I am not developer of android,but I know basic modification only. My some of user have told me that they are unable to install application after update....Many user have not any issue. I have also checked on my 3 device but never faced any issue. But some user have reported that they can not use application because whenever they try to open application they get crashed. I think there some wrong in my database helper class. I have attached it here....Please look and let me know if you find any bug in it. public class DataBaseHandler extends SQLiteOpenHelper { private static String DB_PATH; private static String DB_NA...

ادامه مطلب

Python user defined modules where to import system modules

Vote count: 0 I have created a module: test.py. Inside it looks like: import matplotlib.pyplot as plt N = 5 def test_img(data_loc): #F = load images from data_loc def plot_img(im): # a bunch of other codes plt.imshow(im) for i in range(N): plot_img(F(i)) (1) To use it somewhere as import test or from test import test_img, where do I import matplotlib.pyplot as plt? Is it inside test.py like it is now? (2) Does it matter plot_img is nested inside test_img in this case, if it is only going to be used inside test_img? (3) Does it matter where do I declare constant N (This is an example, I have a lot of constants)? What if it is used inside plot_img, where do I declare it? asked 53 secs agoEcho ...

ادامه مطلب

Invalid Null Pointer in user-defined Class?

Vote count: 0 everyone. This is my first time using classes in C++. The instructions in the assignment I'm working on seemed a little ambiguous to me, so I'm including them in case someone more experienced thinks I'm not following them properly in my code. Anyway, I wrote my program, and it works and creates the output I want based on my perception of the assignment. However, when I run it, an error also pops up that says "Invalid Null Pointer." I've done some research but I can't seem to figure out why this is. Can someone help me fix my code and help a student understand what they did wrong? Thanks! :) Assignment Write a Person class that contains the following fields and methods: • First ...

ادامه مطلب

how to save votes with user id in this tutorial

Vote count: 0 I want to add this simple voting system to my wordpres theme. But it's saving votes by user IPs . I would like to save with user id . and only logged users will vote the posts. This is the post like function function post_like() { // Check for nonce security $nonce = $_POST['nonce']; if ( ! wp_verify_nonce( $nonce, 'ajax-nonce' ) ) die ( 'Busted!'); if(isset($_POST['post_like'])) { // Retrieve user IP address $ip = $_SERVER['REMOTE_ADDR']; $post_id = $_POST['post_id']; // Get voters'IPs for the current post $meta_IP = get_post_meta($post_id, "voted_IP"); $voted_IP = $meta_IP[0]; if(!is_array($voted_IP)) $voted_IP = array(); // Get votes count for the current post $meta_count = ...

ادامه مطلب

Fetching user data using Facebook Android SDK

Vote count: 0 I want to fetch user data from Facebook using my app. I've written the code and it logs in the user but fails to fetch user data. Here's the code: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); AccessToken accessToken = AccessToken.getCurrentAccessToken(); callbackManager = CallbackManager.Factory.create(); if (PrefUtils.getCurrentUser(getActivity()) != null) { //dont ask for login Intent homeIntent = new Intent(getActivity(), MainActivity.class); startActivity(homeIntent); Toast.makeText(getActivity(), "Intent", Toast.LENGTH_SHORT).show(); //getActivity().finish(); } mCallBack = new FacebookCallback() { @Override public void onSuccess(Log...

ادامه مطلب

MFP 7.1 Push notification - User Id gets overwritten by some Code on application restart

Vote count: 0 Users gets unsubscribed atomically when app is restarted. User ID automatically gets overwritten by some code in PUSH_SUBSCRIPTION table. I still see the device is subscribed but we are unable to send push notification because user id does not exists any more. This happens for both the type of subscription PUSH.ALL and PushEventSource.myEventSource As our subscription is done on login success, the user will be enrolled again until they restart the app. if (wlPushNotificationsFactory.isPushSupported()){ if (!wlPushNotificationsFactory.isPushSubscribed()){ wlPushNotificationsFactory.initReadyToSubscribe(); wlPushNotificationsFactory.doSubscribe(); } } My Iphone Logs https://www.d...

ادامه مطلب

iOS get user's frequent locations or figure out user's home location

Vote count: 0 Is it possible to get access to the frequent locations recorded on iOS devices, I'm trying to figure out where the user's home is without using backgrounding services in my own app itself. asked 2 mins agoSami Let's block ads! بخوانید...

ادامه مطلب

Efficient & elegant way to track which records a user has already seen in MYSQL PHP

Vote count: 0 Say I have a table of 1000 GIF's and I query and randomly show 1 GIF to a user. But when I go to get the next random GIF I don't want to show one I've already shown to a user. What is the best way to store and retrieve this type of scenario? asked 41 secs agoJeff Solomon Let's block ads! بخوانید...

ادامه مطلب

google-api Cannot Update or Patch Organization Info for specific user

Vote count: 0 I am trying to patch my organization info with Directory Api but when i am try to update the department for my user, is not updated, the request is fine with status code 200 but i caot see my changes in my user profile, i can change my FamilyName field without any problem but others fields doesn't work: Example: UserOrganization org = new UserOrganization(); User entry = new User(); org.setDepartment("my Department"); UserName name = new UserName(); name.setFamilyName("dobles"); System.out.println(name); System.out.println(org); entry.setName(name); entry.setOrganizations(org); System.out.println(entry); service = getDirectoryService(); //Directory.Users.Update update = service...

ادامه مطلب

How to change route to username once after logged in?

Vote count: 3 My route normally like this: 1. localhost:60612/Thread 2. localhost:60612/Thread/Create 3. localhost:60612/Thread/Edit/getting-started-with-Django-Python 4. localhost:60612/Thread/Delete/getting-started-with-Django-Python 5. localhost:60612/Thread/getting-started-with-Django-Python I want to change my route for some security reason. The controller name Thread should be changed with useame (i.e. hendyharf) once after user logged in. It will be something like this: 1. localhost:60612/hendyharf 2. localhost:60612/hendyharf/Create 3. localhost:60612/hendyharf/Edit/getting-started-with-Django-Python 4. localhost:60612/hendyharf/Delete/getting-started-with-Django-Python 5. localhost:...

ادامه مطلب

.htpasswd create user without username

Vote count: 0 I am using .htpasswd to password protect certain directory on my server. I would like to ask how to create a user without useame i.e. user has to enter only password when he see prompt in a browser. I tried something like: :$apr1$Gk/aaIhD$IZsklkWZCEL0u5Zhu8UGZ1 but no luck. However useame without password works perfectly. nopass:$apr1$Djg1Kmb3$eP0nAiQom/eb00W0058px1 Thank you. asked 3 mins agoAndrey Andreevsky Let's block ads! بخوانید...

ادامه مطلب

UserService.IsActive Impersonation Redirect Loop

Vote count: 0 I have implemented IsActive inside my custom user service and one of the steps that I do in that method is: check if the user has any roles for the requested client. If user has no roles IsActive will retu false. This works well for regular scenarios. However once I implemented impersonation workflow, I started to get infinite redirects between login page and authorize endpoint. I can implement the same IsActive check in my impersonate logic, but is there something else that I'm missing? It seems to me that I need to add something to IndentityServer so that it shows an error/not_authorized page, but I can't figure out where. Implementation Details: Impersonation is impelemented...

ادامه مطلب

Mail all users in my database

Vote count: 0 So im trying to make a script so i can mail all users in my database mailing them about updates etc the problem i have i can send a email to one user but not muti would this work? $sql = 'SELECT email FROM users ORDER BY id'; foreach ($db->query($sql) as $row) { $to = $_row['email']; $subject = $_POST['subject']; $txt = $_POST['comment']; $headers = "From: admin@myemail.com" . "" . "CC: admin@myemail.com"; mail($to,$subject,$txt,$headers); } I off course set the posts in a form before this is posted but would this be fine ? asked 4 mins agouser967149 Let's block ads! بخوانید...

ادامه مطلب

Rails + MongoDB + Set scope for only_name in User Model

Vote count: 0 In Rails Project, I am trying to set few columns of table in select statement for mongodb but I am not able to find those values. Model - User Columns :- _id, name, age, address, city, ... scope :only_name, select("id, name") But giving error for User.only_name wrong argument type String (expected Array) Please suggest something. asked 3 mins agoRubyist Let's block ads! بخوانید...

ادامه مطلب