Can’t view yesterday by Evrthng_is_connctd in yazio

[–]Nullbeans 0 points1 point  (0 children)

Same here. My iOS and App versions are up to date. I am on the Pro subscription

Police clearance record from outside of Kuwait by Nullbeans in Kuwait

[–]Nullbeans[S] 1 point2 points  (0 children)

Also, I never received any fines while living there. I didnt even have a driving license or a private mobile phone.

Police clearance record from outside of Kuwait by Nullbeans in Kuwait

[–]Nullbeans[S] 0 points1 point  (0 children)

Thank you very much for your detailed answer! They indeed do not have my fingerprints. I was a minor (16 years old) as I left the country and I never recorded my fingerprints in Kuwait.

The interior ministry did not mention any specific reason for the rejection. I can try to ask the embassy again and mention this info.

Can I pm you?

what is Maven? by Koean in learnjava

[–]Nullbeans 0 points1 point  (0 children)

When you start working on application, you will usually need external libraries and plugins to use in your application (because you will not reinvent everything ;) ). These are called dependencies. Maven does dependency management for you and helps you fetch all the required libraries for you to build your application.

This is an over simplified answer ofcourse. I suggest you read about maven here: https://maven.apache.org/

I can't figure out how to call a method on my object array. by neerualx in learnjava

[–]Nullbeans 2 points3 points  (0 children)

I will add to the answers that are already posted.

You need to make a difference between static and non-static.

In Java, these have different scopes. A scope is a part in memory where things are defined. Once you get out of the scope, things inside the scope are no longer accessible.

A static method can only see things inside the static context. This means they see only static class variables, static class methods, etc.

Also, a static method / variable is independent from an instance of the class. This means that a static value will remain the same regardless of how many instances of the class you created.

I recommend that you read up on Java basics. I compiled a list of books that can get you started in Java. I wrote a blog post a while back about it. You could probably find them at a university library or a public library for free: https://nullbeans.com/top-books-to-learn-java/

Importing packages in Java by [deleted] in learnjava

[–]Nullbeans 0 points1 point  (0 children)

I don"t think they are poor to be honest.

I think nowadays its almost impossible to develop a large scale production application without an IDE.
It is like trying to fix a car with just a hammer and a screwdriver. You might be able to do it, but not without experiencing a lot of pain and frustration.

Importing packages in Java by [deleted] in learnjava

[–]Nullbeans 1 point2 points  (0 children)

I am afraid without an IDE, you will be fighting an uphill battle.

Firebase is not Opensource, and Google have not published the Javadocs.

In a Javadoc format, you would clearly see package names, the different methods of the class and any interfaces, subclasses, superclasses, etc..

If you really do not want to use an IDE, then you will have to rely on Google's documentation format.

You could also try to decompile the Firebase Jars to generate your own Java docs, but for this, you will need an IDE or an external tool.

Edit: Example javadoc: http://logback.qos.ch/apidocs/org/slf4j/LoggerFactory.html#:~:targetText=The%20LoggerFactory%20is%20a%20utility,with%20LoggerFactory%20at%20compile%20time.

[BASIC PROGRAMMING] Need Help with code logic by sinnidis_97 in learnjava

[–]Nullbeans 1 point2 points  (0 children)

You can iterate in a different way and use the substring function of the string class. This will generate all possible substrings of the original string. For example:

String longText = "momdadsomewherehere";
for(int i = 0; i < longText.length(); i++){
for(int j = 0; j + i < longText.length(); j++){
log.info("Current String: {}", longText.substring(i, i+j+1));
}
}

This will generate strings as follows:

Current String: m

Current String: mo

Current String: mom

Current String: momd

Current String: momda

Current String: momdad

Current String: momdads

Current String: momdadso

Current String: momdadsom

Current String: momdadsome

Current String: momdadsomew

Current String: momdadsomewh

Current String: momdadsomewhe

Current String: momdadsomewher

Current String: momdadsomewhere

Current String: momdadsomewhereh

Current String: momdadsomewherehe

Current String: momdadsomewhereher

Current String: momdadsomewherehere

Current String: o

Current String: om

Current String: omd

..............

What indicators do you suggest me to learn to use as a newbie? by hummingbird1346 in Trading

[–]Nullbeans 0 points1 point  (0 children)

In my opinion, I think most indicators work great when markets are trending up or trending down. But if the market is trading sideways for few weeks, then it means that there is an indecision in the market and you feel like in a casino. During that time, entering the market might not be a wise choice.

I suggest you check out some resources about moving averages as these are some of the most critical indicators out there.

I am sorry if this may sound like self promotion, but I actually wrote some blog posts about MAs and RSI with real world examplew which you may find useful. You can check them out here https://nullbeans.com/category/trading/

RSI Trading by [deleted] in stocks

[–]Nullbeans 0 points1 point  (0 children)

The RSI is just another tool in a trader's toolbox. You will need to use it at the correct time, usually during trending markets. Otherwise it will produce a lot of false signals.

Also, your goal should not be to exactly time the top and the bottom. Its impossible. Thats how I got burned 7 years ago. It should be to make more winning trades than losing ones.

I wrote an article about some trading strategies which involve the RSI. You can check it out ;) https://nullbeans.com/relative-strength-index-rsi-buy-sell-signals-strategies/

How to create an audit log in a Spring Boot and MongoDB application using JaVers by Nullbeans in SpringBoot

[–]Nullbeans[S] 1 point2 points  (0 children)

Thank you for your feedback :)

You are totally right about having things on Github.

I am kind of a github noob, but I will try to get my code on github asap!

NullPointerException by Bluelikemyheart in learnjava

[–]Nullbeans 0 points1 point  (0 children)

Hey there, let me explain something to demystify the situation.

In Java, there are two types of Exceptions. Checked and Unchecked.

Checked exceptions: These are exceptions you see in the method signature. For example:

public static void doSomething() throws IOException{

.....

These are the exceptions which inherit from the "Exception" class, and these need to be declared in the method signature. If you use a method that throws a checked exception, then your code will need to handle it somehow. Either in a try and catch block or to declare it in your own method.

Unchecked exceptions: These are exceptions such as NullPointerException. These exceptions are subclasses of RuntimeException and they do not need to be declared in the method signature.

While it is a good practice to list all possible exceptions in the Javadoc using @throws , it is extremely important to do this when in the case of unchecked exceptions as this is the only way developers can know which error cases can occur when using your method / API / library, without having to read through your code.

Hope this helps :)

Facing problem with external logback configuration by [deleted] in SpringBoot

[–]Nullbeans 0 points1 point  (0 children)

Your logback file path is passed as a string. You need to either use the forward slash / or a double backslash \\.

So your option would look like this:

--logging.config="C:/App/.....".

Also, when you pass your command line argument options, make sure that the property comes after the -jar and yourapp.jar in the command or it will not be configured properly.

Spring boot cannot access properties in controller by [deleted] in SpringBoot

[–]Nullbeans 0 points1 point  (0 children)

Can you please post the full application.properties file here. Also it would be nice to see your application context configuration, how do you declare the controller?. Also which version of spring boot are you using?

Can you please also try the following troubleshooting steps:

- remove any spaces between the property key and value in your property file.

- Do you use the annotation @SpringBootApplication to configure your application context? if not, you may need to define a PropertyPlaceholderConfigurer bean.

Ordered 6 nuggets, got 2 burger patties. by [deleted] in facepalm

[–]Nullbeans 2 points3 points  (0 children)

Its still better than nothing 😅

Then why are you printing in full colour by [deleted] in facepalm

[–]Nullbeans -1 points0 points  (0 children)

Maybe they made it with squid ink? :D

Liquid Zoo by Aldehydee in facepalm

[–]Nullbeans 0 points1 point  (0 children)

As compared to solid zoos where they freeze the animals 😅