So I been trying to get my first Wear Os watch face published But when I submit I keep it keeps getting rejected. I only lightly changed the Sample Android studio provides nothing much changed but the background and the way the hands move. I keep getting this. I really do not know why it keeps getting rejecte…
Tag: java
quarkus and jwt token, application.properties var don’t work
I have a quarkus project I try to secure some of my endpoints with a Jwt token. So far, it don’t work. everything is still accessible. my application.properties: it worth notting that the lines are in gray in my IDE ( Intellij), and my IDE say they are not used nor by my project nor it’s dependenc…
Vaadin 14 – Cannot get a Details/AccordionPanel to use window width
Unlike many other Vaadin “container” components, the com.vaadin.flow.component.details.Details and com.vaadin.flow.component.accordion.AccordionPanel classes do not allow for setSizeFull() (I have tried both). I’m trying to figure out how to have one of these on a form and have it expand hor…
MongoDB Extract document
I have this Json: I would like to filter exclusive for paymentType.type equals “PILOT” and limits equals type equals “COMBAT_HOURS”. This is the result I would like to receive. How to extract the document to reach this result? Answer Query map paymentTypes if paymentType= PILOT, filter…
How to remove more than one match in Java using replaceAll()?
Hi there I am trying to remove two or more words in a String with the replaceAll method in Java but I am not good in regex at all and I have not been able to do it. So, here is the code: But when I run this what I get is the following text menu-eet brton-ontent By the way
How to deserialize json to nested custom map via gson?
I have the following json To deserialize it, I have the following data model class. I am not getting any deserialization error when I am using gson but the profiles variable is coming as null. This is how I am deserializing. var json = gson.fromJson(data,json.class) inside the match object there can be a dyna…
How can I change the width of an image button in a horizontal scroll view?
I’m trying to create a page that looks like the contribution page of GitHub (like each square represents a day, and the transparency of the square represents the number of commits). I want the page to look something like this: So, I made a horizontal scroll view because I want the section of squares can…
Preserve Case sensitive filename in Dropbox API when updating a file
I am using code like this: which results in losing the case of the filename (e.g. MyFile.txt becomes myfile.txt). This seems obvious as getPathLower is returning the lower-case filename. Metadata has another method getDisplayName() returning the cased path: I did not want to use this as it says it’s for…
Header sent from Java changes it name on PHP side
I am sending X-Auth-HMAC header from Java using HttpClient to Nginx + PHP-FPM combo: But on PHP side in $_SERVER variable among all headers i get: How could X-Auth-HMAC become HTTP_X_AUTH_HMAC ? Answer PHP formats HTTP headers in the $_SERVER variable according to RFC 3875 (the CGI 1.1 spec). Specifically sec…
How to write a method which will take item array as input and return item with least price (considering discount as well)?
I am new to Java, and I am trying to declare another method in this class called getItemPrice, which will take item array as input and return item with least price (considering discount as well). So far, I have declared an array of 2 item objects in main method. This is my main method: As you can see above, e…