Spring security - IllegalArgumentException - Please give me a solution
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
8:25
Vote count: 0 I'm doing with spring security. When i browser http://localhost:8080/rest/user/json/quypham then occur following error: [WARNING] /rest/user/json/quypham java.lang.IllegalArgumentException: Failed to evaluate expression 'ROLE_ADMIN' at org.springframework.security.access.expression.Exp...
What is the difference between two scopes in the same controller (one from a service) to a directive?
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
8:25
Vote count: 0 I've got the below controller with two scope variables and only one passes through to my directive? .controller('newsController', ['$scope', 'gasPrices', function($scope, gasPrices) { gasPrices.success(function(data) { $scope.gasFeed = data.series[0]; }); $scope.myData02 = [2.095,2.079...
randomizer only generating up to 99 c++
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
7:25
Vote count: 0 So I am trying to generate 10,000 random numbers from 1-100, but it is only generating up to 99 numbers because when I display it I can only see from 1-99, unless it is my code for finding it. Here is my code: vector<int> vint; for (int i = 0; i < 10000; i++) { int x = (rand() % 100) +...
Unable to unzip a file using java but able to unzip it using 7zip
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
7:25
Vote count: 0 I am trying to unzip a file using java but the following code doesnt enter the while loop as 'ze' is null. However the same file I am able to unzip using 7zip application. Can someone let me know why is this happpening? try{ //get the zip file content ZipInputStream zis = new ZipInputS...
Ruby on Rails & Bootstrap: Trying to resize an image in my view file
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
7:25
Vote count: 0 This image is appearing when on my local server but I am looking for it to fill the page. I'm working on a ruby on rails project and I've installed bootstrap-sass to it. Can you please tell me how I can make this image fill the webpage? The image is appearing on half of the page. What ...
How to fix a messed up Git project using SourceTree
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
6:21
Vote count: 0 Somewhere I made a bunch of changes and I need to go back to an earlier version. I copied my current projects out of my local directory that contains the project. The project contains about 5 directories. I copied out two of them and then deleted those two folders. I now need to reset ...
How can I get a value from an URL?
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
6:21
Vote count: 0 Asuming I have something like var url = 'http://stackoverflow.com/questions/24a34b83c72/js-regex-get-values-between-two-characters' How could I get the 24a34b83c72 ID using pure javascript? I know that it's always after the questions/ part and that regardless if it contains a number or...
NetworkX find root_node for a particular node in a directed graph
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
6:21
Vote count: 0 Suppose I have a directed graph G in Network X such that: G has multiple trees in it Every node N in G has exactly 1 or 0 parent's. For a particular node N1, I want to find the root node of the tree it resides in (its ancestor that has a degree of 0). Is there an easy way to do this in...
How implments in a web app a role and user module
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
5:11
Vote count: -1 I need to know how I can do a module of roles and users, I read about asp.net identity but I don't understand anything, I want to create a web app with my own data base and implements a role module. I try saving a user's rol in a session variable and in the controller I ask using an i...
Change loaded div from another page with another one on the same page
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
5:11
Vote count: 0 I have an index.php page that holds and loads all the content so it wont be neccessary to load to other pages and everything happens dynamically. So lets say i have a div in the index.php: <div id="content"></div> and i have a full content.php file that holds most of the divs/pages: <d...
How to compress JPEG with good quality on Android?
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
5:11
Vote count: 0 This is not a straightforward problem, please read through! I want to manipulate a JPEG file and save it again as JPEG. The problem is that even without manipulation there's significant (visible) quality loss. Question: what option or API am I missing to be able to re-compress JPEG wit...
write similar which function in R, Any help would be appreciated
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
3:47
Vote count: 0 can function argument be logical argument? very simple example, something like myfunction <- function(x ==y) {x + y} why do i get this error? Error: unexpected '==' in "myfunction <- function(x==" to perfome similar function which ( vector == 10), myfunction argument should take the sa...
PowerShell - Delete a Range of Rows from Excel After Locating Starting Row
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
3:47
Vote count: 0 I have a PowerShell script that searches an Excel file for a specific value ("#N/A", from a failed VLOOKUP) that needs to have all of the rows AFTER and including that row deleted quickly. What I have done so far: $sheetRange = $sheetData.UsedRange $colRange = $sheetData.Range("F1") [v...
Fading images web design
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
3:47
Vote count: 0 <!DOCTYPE html> <html lang="en-US"> <head> <style> body { background-image: url("bg.jpg"); } <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <...
Bayesian belief network calculations
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
2:47
Vote count: 0 I am using MSBNX (microsoft's bbn software) and I ca ot figure out how it makes its calculations. This is what my network looks like. The probabilities for rain are: Yes-> 0.2 , no -> 0.8 JakesLawn wet and rain -> 0.9, not wet and rain -> 0.1, no rain and wet -> 0.2, no rain and not we...
How to change the array display order in IOS?
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
2:47
Vote count: 0 I have a code writing like this in Objective-C: Feets = @[@"0ft", @"1ft", @"2ft", @"3ft", @"4ft", @"5ft", @"6ft", @"7ft", @"8ft", @"9ft"]; Inchs = @[@"0in", @"1in", @"2in", @"3in", @"4in", @"5in", @"6in", @"7in", @"8in", @"9in", @"10in", @"11in"]; This is the pickerView component. but ...
Getting "ScreenCaptureError" in Chrome Kurento
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
2:47
Vote count: 0 I'm trying to share my screen with Kurento WebRtc server. But getting this error: NavigatorUserMediaError {name: "ScreenCaptureError", message: "", constraintName: ""} There is no errors in Firefox with same code. Constraints using for webrtc: var constraints = { audio: true, video: { ...
Upload an image using html/javascript/Mongodb/WebServices
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
1:39
Vote count: 0 I want to upload an image from the user's disk to my MongoDB. When I have the all path, it works. But with <input id ='image_upload' type='file' name='image_upload' />, it doesn't works (not the complete path, and it's normal, for the security ...) So I want to know if there is an othe...
getting rid of grids in histogram in mtlab
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
1:39
Vote count: 0 I used the following lines and used the help from Is it possible to make hist3 plots smoother? but I can not get rid of that line. Would you please help me what should I do? enter image description here asked 1 min agofarzaneh Let's block ads! (Why?)
Print Biórn instead of Biórn from js object
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
1:39
Vote count: 1 I think I am lacking in the correct vocabulary to be able to state this question correctly. But I have searched everything I can think of, including "javascript object ascii", "javascript object to unicode", but the answer I'm looking for just won't show. My problem is that I have a Ja...