Johnny Joseph

Ranch Hand
+ Follow
since Feb 27, 2020
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
3
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Johnny Joseph

Hi,

I have a DB column of decimal type decimal(5,2) in mysql database

Now i want to display the sum of the values...i'm using JOOQ

i tried the following

# select sum(col) ---> returns integer value - no decimal
# select round(sum(col), 2) --> returns the value. however it rounded off the value

Links referred for reference
https://stackoverflow.com/questions/7682502/mysql-query-to-sum-decimal-numbers
https://stackoverflow.com/questions/15972257/how-to-get-simple-sum-with-jooq
https://www.jooq.org/doc/3.3/manual-single-page/#round-function

I'm not sure how to fix this. Can someone help me on this?

Thanks
Hi,

I want to expose 2 things on my pc

#1 - Expose my entire system
#2 - Expose my application server

I want to access my system or application from anywhere in the world when i am out of the home or city....

When i searched for it...I come across several remote PC software to be installed in the PC...

Some suggested to go for installing ngrok and get the remote access from outside

I never read or know about ngrok earlier...Can someone explain me which would be the best option to go???

Also comments about ngrok

Thanks
3 months ago
Hi,

There is a web application server - which executes a API and crashes

When the API gets executed - 4 methods are being executed. The 4th method is optional however it is not possible to skip or bypass since there is no code for now and downtime of the server is expensive

Is there a way to change the code dynamically and write the code to skip that 4th method alone?

Is it possible to reload a class when dynamic reloading in app server is not enabled

How to do this in a running production server?

Please advise

Thanks
3 months ago
so does all the ORM and recent frameworks supports both java.util.Date and java.time.LocalDate

Will there be any issue if we change the class ? or migrate the class?
3 months ago
Hi,

I saw in many project people are using java.util.Date

Similarly i come across in few projects people are using java.time.LocalDate

# what are the differences between the two dates?
# when to use java.util.Date and when to use java.time.LocalDate
# is there is any specific reason or use case where we need to use java.time.LocalDate instead of java.util.Date

Thanks
3 months ago
I also come across Pentaho from someone else. I went through - https://community.hitachivantara.com/s/article/pentaho-reporting

#1 Looks Open Source
#2 Looks better than Jasper/Itext

Please let me know your feedback ...
3 months ago
Yes, it is iReport. But looks for more advanced reporting than iReport. Any commercial which works greater than iReport?
3 months ago
Hi,

Years argo, we have used Crystal Reports for Visual Basic.

Now, the Jasper Reports and IText designer doesn't seems to be that classic like Crystal Reports

Can someone suggest a classical reporting tool i.e far easy for the user with huge features to quickly develop and use it in web application developed using java?

If nothing is available, is this is because due to Java language?

Thanks,
3 months ago
Option #1 - Application will be hosted in Cloud.
Option #2 - Application will be hosted in VMWare.
Option #3 - Application will be hosted in a server.
3 months ago
Hi,

We can have log folder for a web-application in

# custom folder
# user home folder
# application server folder
# application installed folder

Which one is the best practice and Why?

Thanks.
3 months ago
Can you share an example of Runnable with Callable, which executes multiple and combine the results..
3 months ago
Thank you, Stephan.
3 months ago
Paul, thanks for your clear explanation. I agree future is for threads...

Do we have a similar kind of interface in Java which we can use it for computation of results???

Why we always need to create an interface for the same..Why don't java provide one so that it would be helpful to standardize.
3 months ago
Which Tim explained is the best example too....

We need to discuss on how to avoid these kinds of insertions from back-end.

#1, What are the alternate approaches to overcome this problem?
#2, One more case is one would have a generic report, however in one of the use case certain values needs to be bolded. In that case, front-end will not know about this. It would be complex in the front-end side to deal with it. Forwarding several variables from back-end for special treatment would be messy.

Please advise.
3 months ago