Vote count: 0 I'm currently working on a Angular (Front End) - Laravel (API) application. I need to know whether I can make a hybrid log in. Currently I'm using a stored procedure for the log in. But then if the login was succesful I want to send a JWT token to the client side. Is this possible without calling the JWT attempt method? Does JWT has something like a JWT::getToken($mail); method? If I can't do this, are any other work arounds? $mail = $request['email']; $password = $request['password']; $query = new Query("CALL SP_USER_LOG_IN(?,?, @outputMessage)"); $query->addParameter(1, $mail); $query->addParameter(2, $password); $outputMessage = DB::executeQuery($query); if($outputMessage ==...
ادامه مطلبVote count: 0 .MODEL SMALL .STACK 100H .DATAMSG1 DB 0ah, 0dh, "Please enter the value of A $" MSGG DB 0ah, 0dh, "The result of A^2= $" A DB ? .CODE MAIN PROC ;can someone help me the mul result wont print in numbers. MOV AX, @DATAMOV DS, AX ;print message one mov ah, 9 lea dx, MSG1 int 21h ;take input from user mov ah, 1 mov A,al int 21h sub A,30h ;print message two mov ah, 9 lea dx, MSGG int 21h ;A*A mov al,A mul A mov bl,al add bl,30h mov ah,2 mov dl,bl int 21h mov ah, 4ch int 21h MAIN ENDP END MAIN asked 36 secs agohind akeel Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I need to create a program in Java that: -Asks for 10 different numbers. -Tells the highest number. What I did: import java.util.Scaer; public class BiggerValue { public static void main (String [] args) { Scaer sc = new Scaer(System.in); int bigger; int[] n = new int[10]; System.out.print("Please enter " + n.length + " values:"); for(int i = 0; i < n.length; i++) { n[i] = sc.nextInt(); System.out.println(n[i]); if(n < n[i]) { bigger = num[i]; } } System.out.println("The highest number is " + bigger); } } I don't know if I am doing it right. I get an error in compilation < n[i]) Bad operand types for binary operator '...
ادامه مطلبVote count: 0 I'm trying to share the computer's audio via webRTC and GetUserMedia, but I don't know if it is possible to obtain this stream. On Linux and Firefox, when I request the GetUserMedia with the following constrains navigator.mediaDevices.getUserMedia({video: false, audio:true}) In the popup I can choose alsa_output.pci and share the computer's audio. But when I tried on Chrome/Chromium or I changed to Windows neither Firefox nor Chrome show me any option to capture the inteal audio, only my headset microphone. Are there any option for the getUserMedia or any workaround to get this audio? I tried all the examples of WebRTC samples and Muaz's examples but no one displayed me this op...
ادامه مطلبVote count: 0 I blocked on an issue since 1 hours about Setter/Getter on objective-c I implement the code below to do some action depending on user choose. In my view controller interface : @property NSString* view_test; In my implementation @synthesize view_test; The user acces to an other view after a click on a button with this method - (IBAction)PPBarButtonClick:(id)sender { [self setView_test:@"test"]; NSLog(@"view_test %@", [self view_test]); // Print test } And after my viewDidLoad method: - (void)viewDidLoad { [super viewDidLoad]; NSLog(@"view_test %@", [self view_test]); // print always null if ([[self view_test] isEqualToString:(@"test")]) { //some action } else { // other action }...
ادامه مطلبVote count: 0 This is related to my question about how to set a GUC variable in general. Specifically, what I am looking for is a way to allow a non-superuser to be able to set a GUC variable using ALTER DATABASE. I tried to issue the follow command ALTER DATABASE my_db SET postgis.gdal_enabled_drivers TO 'ENABLE_ALL'; and got: ERROR: permission denied to set parameter "postgis.gdal_enabled_drivers" I was wondering if it is possible for the superuser to GRANT me some privileges (PostgreSQL 9.5.1) so that I can executed the ALTER DATABASE command above. If so, what is the minimum privilege that I need to ask for? asked 2 mins agotinlyx Let's block ads! بخوانید...
ادامه مطلبVote count: 0 i'm using Drive API, and i need to create permissions for a large amount of users, somthing around 50. after i'm sending the request to google, i'm getting a response json: "error creating permission: User Rate Limit Exceeded". as i saw at Google: https://developers.google.com/drive/v3/web/handle-errors#403_daily_limit_exceeded they suggested: "Raise the per-user quota in the Developer Console project." but how can i do this? maybe in here? asked 2 mins agoAmit Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm coding an application in visual basic in which I have a riddle that the user is supposed to answer in a textbox, then press a button to proceed. Depending on whether or not the answer is correct, different events are supposed to active. Below is what I've tried, but it's not working. Any ideas? attempted code (can you tell I'm a complete begier haha) asked 1 min agojayden michael Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am trying to log into server to receive a json file back. But the server needs a useame and pass word. I don't know how to add that into my build. I looked at a lot of sources but I caot figure it out what to add to my builder. Thank you very much for any help Here is my OkhttpHandeler code public class OkHttpHandler extends AsyncTask { OkHttpClient client = new OkHttpClient(); Response response; Request request; private final String apUrl = "http://xxxxxxxx.xxxxxx.com/api/1.0/promotions"; String output; String picture; //JSon Data String jsonData; JSONObject jsonObject; JSONArray jsonArray; @Override protected String doInBackground(String... params) { RequestBody formbody = ...
ادامه مطلبVote count: 0 I have read all the tutorial about AJAX in this site but I still can't figure this out. I need to get the userid variable from a PHP page. Here is what I am doing: code HERE is what I am getting Result How can I only get the variable and not the whole page? thanks, asked 1 min agouser3352263 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I've created a key-pair and have access to a linux instance via FTP and SSH using ec2-user. I have also added the desired user to all groups that ec2-user is in. All of this was tested using the .ppk key, generated my puttygen, which allowed ec2-user to the instance. I even changed the key type from SSH-2 to SSH-1 via puttygen. I've followed countless guides, but without any luck. Is there anything else I can do? From what I've read I'll have to create a key-pair (dont know where) for each user, and add one of the keys to a .ssh directory. asked 1 min agouser3284399 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Hi I just created my first MVC Website. To avoid having to program the controller myself, I am using the Individual User Accounts template from Microsoft. I know, that this template uses the Entity Framework to create an express database to persist the user/account data. Since I already have a database, which I want to use, I want to change the template so it uses the DbContext for said database. I was able to change the coectionstring, so that the tables of the template got created in my database. But I dont want it to create it's own tables but use my already created tables. Is there any easy way to achieve this? Or should I just write the whole account/user controller from s...
ادامه مطلبVote count: 0 I follwed this great ASP.NET 5 / Core sample on Github (auth0/auth0-aspnet5) and got the WebApp-OpenIdCoect-Sample working correctly. Now I want to save my user data like name, picture, user_id etc. to my local database to be used in my application. I uncommented the section on tokens and am adding the access, id & refresh token to the users identity claims BUT here's where I'm getting a little FUZZY ... In order to get the user profile data --> I need to use their access token to make a call to Auth0 Api so is that done via the the ManagementApiClient? anyone know the right method? I think I may be going down the wrong path though, still researching. asked 33 secs agoRico Let'...
ادامه مطلبVote count: 0 I've been having trouble with capturing the data related to the current_user, and then graphing it. I will post the code that I've written and error that I've been experiencing below. I'm receiving the error below, even though the view itself loads Error Loading Chart: Inteal Server Error Index.html.erb Analytics_Controller.rb class AnalyticsController < ApplicationController before_filter :authenticate_user! def index posts_created end def posts_created render jsons: current_user.posts.group_by_month(:created_at).count end private def set_user @user = User.friendly.find(params[:id]) end end routes.rb resources :analytics, only: [:index] do get '/posts_created' => 'analytics#po...
ادامه مطلبVote count: 0 This is my first question on stack overflow. So, excuse the mistakes I make. I have a situation where I have a dataset which consists of 3 fields:Database useame, Source program and count(of the number times the source program has been accessed). I need an automated method of tracking down database user names accessing a certain source program more than a threshold. I don't have access to timestamps. I had hit upon this [link] :http://www.slideshare.net/erikbe/collaborative-filtering-at-spotify-16182818 Spotify's collaborative filtering system uses a dataset with the fields (user,track,count). I was hoping I could use something similar (user-item implicit feedback)in my case. I...
ادامه مطلبVote count: 0 Hi OnClick I am getting the total count from the database using jquery If I am on Same Page(TeamPage).Now I am on Home Page and I am clicking on Link to reach on Teampage.after reaching on teampage it's not showing count but Now Again I am Clicking on team link now it's showing Fav Count. My problems1.Now Anchor Tag is not working.2.Update Count when User opens a link and change page also with updated count. Jquery $('a.team_name').on('click',function (e){ var link = $(this).attr('id'); // alert(link); $.ajax({ type:'GET', url :"views/inc/teampage_count.php", dataType: 'json', data: {id: link}, success: function(data) { console.log('success',data); $('#getRequestdata').html(dat...
ادامه مطلبVote count: 0 Hi i am struggling with a problem the past days on the verification part of the user input password at log in. First to mentioned that i used an exteal library for codeigniter for the hashing of the password. The problem is when i get the hashed password from the database and use a library function that compares the raw password input of the user with the one from the database it retus false. I think i have tried and checked every possibility of error but i couldn't find an answer. I even checked if the lenght of the string was the problem, i tried also to change the lenght, the type(varchar,char) or even the collation of the password field in phpmyadmin but still no results. I...
ادامه مطلبVote count: 0 I create new project in Android Studio. Did login Page. Did php file to check if useame and password is Correct....
ادامه مطلبVote count: 0 I have seen many other questions which mostly ask how to prevent spaces from being entered in the whole textarea, but I am wondering how I can check if the textarea just contains spaces? For example, here is my textarea: I can easily check if the above is empty by doing: $post_msg = htmlentities(strip_tags(@$_POST['msg'])); $post_msg=mysqli_real_escape_string($coect,$post_msg); if ($post_msg != "") { // do this } But, if a user enters just space characters in, then the field is obviously not empty no more, invalidating the above check. How can I check if the user has entered space characters? A message can start off with space characters, but it caot only be space chars. asked ...
ادامه مطلبVote count: 0 I m looking for a way to get all the tweets liked by a given user on Twitter. For example I used Tweepy to get all the tweets but tweepy doesnt provide methods to get all the tweets liked by a user asked 37 secs agoAkil Adeshwar Let's block ads! بخوانید...
ادامه مطلب