Vote count: 0 I've been using the Environment Dashboard plug-in for quite a while now... I believe someone updated other plug-ins or changed the configuration, or even accidentally deleted the h2 DB. Ever since then I can't get the environment dashboard to work. When I try creating a new dashboard, I get: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.jenkinsci.plugins.environmentdashboard.EnvDashboardView I tried removing and re-adding the plug-in...
ادامه مطلبVote count: 0 I am trying to import someone else's project Java 1.8 Spring 4 Maven 3.3 Spring Data MongoDB 1.2.1.RELEASE MongoDB 2.4.5 while trying to run i get the following message. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load ...
ادامه مطلبVote count: 0 I have followed the user guide from the django-guardian docs to set up django-guardian. This has given me the possibility to control whether a group can view a specific class or not. This is the example from the django-guardian docs with an added field (customer): class Task(models.Model): summary = models.CharField(max_length=32) content = models.TextField() customer = models.CharField(max_length=80) reported_by = models.ForeignKey(User) created_at = models.DateTimeField(auto_now_...
ادامه مطلبVote count: 0 I'm trying to classify some data using SVM in R. The data set: D1 | D2 | D3 | word1 | word2 |... 1 | 2 | 3 | 0 | 1 | 3 | 2 | 1 | 1 | 0 | D1, D2, D3 take values from 0 to 9 and each word takes a 0/1 value. First I want to build a classificator that predicts D1 based on word1, word2, etc. Then I want to build a classificator that predicts D2 based on what it predicted in D1 and the words (D1, D2 and D3 used to be a single number of 3 digits). So far I have: trainD1...
ادامه مطلبVote count: -1 I have the most basic problem. Try to get the system date. My code is this; import java.util.Date; Date sysdate = new Date(); System.out.println(sysdate); It gives me the error: Syntax error on token "import", assert expected And also I have found this on web; import java.util.Date; public class DateDemo { public static void main(String args[]) { // Instantiate a Date object Date date = new Date(); // display time and date using toString() System.out.println(date.toString()); } } ...
ادامه مطلبVote count: 0 I'm developing a Head Detectioning System using Emgu CV. What i want is to detect heads within a frame using a classifier. As an example i want to count the number of heads within like this type of situation. I tried some methods to train classifiers but all of them didn't worked. I wasted 3 days on this. Please if anyone know is there any easy way to do this let me know.. I have to implement a program and this function is only small part of it.. If i got to work a classifier its g...
ادامه مطلبVote count: 0 I want to put a file into the recycle bin in Windows using Java. So that the user is able to restore it. Therefore I use the library JNA from Github (jna-platform-4.2.2.jar) which accesses native Windows functions. My Code: public static boolean moveToTrashBin(File file){ FileUtils fileUtils = FileUtils.getInstance(); if(fileUtils.hasTrash()){ // retus true try{ fileUtils.moveToTrash(new File[]{file}); // throws ClassNotFoundException retu true; } catch (IOException e) { e.printSta...
ادامه مطلبVote count: 0 I am trying to add $ sign using bootstrap class 'input-group-addon' with mvc Razro TextboxFor but its not working. Below is my code. @Html.LabelFor(x => x.PaymentAmount, new { @class ="control-label col-sm-2" }) $ @Html.TextBoxFor(m => m.PaymentAmount, new { @class = "form-control col-sm-10" }) @Html.ValidationMessageFor(m => m.PaymentAmount, "", new { @class = "help-block" }) asked 1 min agomaxspan Let's block ads!...
ادامه مطلبVote count: 0 I am ruing Eclipse neon IDE for Java Developers, however, this problem has been occurring on mars as well. Every time I open eclipse I am faced with the following two errors: - The project caot be built until build path errors are resolved - Unbound classpath variable: I don't believe the name really matters The issue I am faced with is that every time I open eclipse I have to go to eclipse -> preferences -> java -> build path -> classpath variables where I can then add the necessa...
ادامه مطلبVote count: 0 I have a form in controller Authentication.scala: package controllers import javax.inject._ import play.api._ import play.api.mvc._ import play.api.data._ import play.api.data.Forms._ import play.api.i18n.Messages.Implicits._ import play.api.libs.concurrent.Execution.Implicits.defaultContext import models.User import models.UserProfile /** * This controller creates an `Action` to handle HTTP requests to the * application's home page. */ @Singleton class Authentication @Inject() ext...
ادامه مطلبVote count: 0 I am trying to translate some aspx pages into jsp, by doing so, I have encountered a very common problem, yet I can't find the way to solve it. Any class I add to my src folder will not be loaded at runtime, when I compile the project everything works fine, all the .class files are generated and I have no issue, but when trying to show on browser I get the following error: java.lang.NoClassDefFoundError: java/Circle at org.apache.jsp.WizManager.manager_jsp._jspService(manager_jsp.j...
ادامه مطلبVote count: 0 I have a problem. Im using Bounce.js to create nice menu animations (with some cool effects). Bounce.js using css keyframes animations which can be problematic to restart. I got menu and when I click a button and when .show class is added it should fire show animation. But when I press that button again hide class should be added with hide animation (which is just reverse version of previous animation). Js is working (classes are adding and removing properly) but animation is fired...
ادامه مطلبVote count: 0 I am trying to use HTMLUnitDriver in my selenium test to understand how HTMLUnitDriver works. Kindly help me with resolving the issue. I have added the below jars to the build path in eclipse selenium-java-2.53.0 jars TestNG jar Added the below jars as these were mentioned in other posts as a solution to the error I encountered. However, the issue remains. selenium-htmlunit-driver-2.52.0 jar selenium-server-standalone-2.53.0 Hi, I am trying to use HTMLUnitDriver in my selenium test...
ادامه مطلبVote count: 0 i am trying to add a map using GMSMapView but i am getting errors when i create an outlet for the view. The following is the code snippet: import UIKit class MapViewController: UIViewController { @IBOutlet weak var mapVIew: GMSMapView! @IBOutlet weak var mapCenterPinImage: UIImageView! @IBOutlet weak var pinImageVerticalConstraint: NSLayoutConstraint! var searchedTypes = ["bakery", "bar", "cafe", "grocery_or_supermarket", "restaurant"] override func viewDidLoad() { super.viewDidLoa...
ادامه مطلبVote count: 1 I want to keep a toggle function for ul li a. In magento I used the below coding to fetch level 1 and level 2 subcategories in layered navigation:...
ادامه مطلبVote count: 0 So I have searched for this problem but what I found is people are facing this problem with their training dataset size and I understand that results may vary because of the size of dataset at the time of training a model. But my problem is different. I am classifying data using a trained model and the results vary with size. e.g. Suppose I have n rows initially and classify them and get set of results X. Now if I add m rows to previous dataset and have n+m rows and classify it the...
ادامه مطلبVote count: 0 I want to exclude all 'createdDate' fields from being deserialized on all of my mapped fields: Similar to this:...
ادامه مطلبVote count: 0 Google has a class that provides the "Sign in with Google" button called GIDSignInButton. To customize the button you have to modify the included properties. How do you do this properly in Swift? The button variable: @IBOutlet weak var googleSignInButton: GIDSignInButton! The properties are listed here: developers.google.com asked 21 secs agoAbout7Deaths Let's block ads!...
ادامه مطلبVote count: 0 I have a case class like this: case class Test(i: Int, t: Option[Test]) I would now like to reduce this case class and add all the i's. So for example., if I have an input like this val x = Test(1, Some(Test(2, Some(Test(3,None))))) I expect the result to be 6 and here is what I have tried so far: def all(acc: Int, test: Test): Int = { if (test.t.isDefined) all(acc, test.t.get) else test.i } This gives me 3 and I see that I'm missing a minor detail somewhere in the recursion and I'...
ادامه مطلبVote count: 0 This is my PHP-Code: I want to show the Value of $ergebnis but it says that it could not be converted to sting. Iam a totaly begier in PHP so please help me... asked 11 secs agoMrAmok Let's block ads!...
ادامه مطلب