Skip to content

Tag: java

MuTect install: GATK-protected: maven: Java-compile-error

I’m trying to install mutect, and as directed in the README.md, I’ve git cloned gatk-protected and tried to do ‘mvn -Ddisable.queue install’. But I get the following issue. I’ve java 1.7 and maven 3.3.3. I followed the readme file present here. Could anyone please help in resolvi…

Cannot find symbol in same package and directory

I have two classes, Offering and Course. They are both in the same package and the same directory. Offering.java: Course.java: When I try to compile Offering, I get the errors: and I know that the error means the compiler is unable to do anything with ‘Course,’ but I don’t really know why. I…

Windows scaling

Windows 8/10 has started to include a slider for how much GUI elements should scale, right click on desktop -> display. For a colleague with a laptop 4k-screen it’s 250% while another colleague using the same resolution on a 4k 28″ screen it’s 150%. How do I read that value programmatical…

Gray line inside cardview :)?

How do I remove the gray line (you can see on the screen) at the bottom of CardView? Archive with source-code I reviewed everything. I don’t understand what the problem is. Its my item CardView. when all is good, but when I write another value and line appears! Answer Just use “com.google.android.materi…

Eclipse web.xml Referenced File Error

I imported a project in eclipse as maven project – I upgraded the web-app versions from 2.5 to 3.1 because it got imported as Dynamic web Module 3.1. Now I am getting the following error : The errors below were detected when validating the file “web-app_3_1.xsd” via the file “web.xml&#…

Embedded Redis for Spring Boot

I run my Integration Test cases with Spring Boot with the help of my local Redis server on my machine. But I want an embedded Redis server which is not dependent on any server and can run on any environment, like the H2 in-memory database. How can I do it? Answer You can use an embedded Redis like https://git…

Spring Data Rest – Soft Delete

I’ve been using spring data rest without any problem but now I have a requirement that when a user performs a DELETE operation on a given entity i.e. DELETE /accounts/<id> I need to set a flag on the database marking that entity as deleted but i do want to keep the record. Basically this means tha…

Logging with Retrofit 2

I’m trying to get the exact JSON that is being sent in the request. Here is my code: But I only see this in the logs: How am I supposed to do proper logging, given the removal of setLog() and setLogLevel() which we used to use with Retrofit 1? Answer In Retrofit 2 you should use HttpLoggingInterceptor. …