Skip to content

Using coroutines in a right way

I am implementing the coroutine for first time. I am following MVP pattern for a simple login app. Here is my code flow – The login button clicked will follow this direction – LoginFragment -> LoginPresenter -> Repository -> APIRepository -> RetrofitInterface The login response will fo…

Struts & Jersey Servlets with JSP & Webpack Front End

we currently have a struts 1.2 web application with casual JSP web pages. We want to migrate our application to Rest service web application with a webpack project front end. As this will be a migration process where old pages will be served under oracle weblogic server and new ones will be served under a dif…

jps command for Hadoop processes

there. I have hadoop 2.4.1 running on ubuntu. Executing jps command, I am getting this output: is it normal to get “3794 org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar” along with the output of jps? I am asking because didn’t get it before. Suddenly, it started to give this result wit…

Why event loop uses more than one thread?

I always thought that asynchronous execution is about efficient resource utilization and thread safety, but today I ran into Netty’s strange behavior. public class Example { public static void …

handle duplicate key in Collectors.toMap() function

I am creating a map which its (key,value) will be (name, address) in my Person object: In the duplicate key situation, I would like to skip to add the second address to the map and would like to log the name also. Skipping the duplicate address I can do already using mergeFunction, but in oder to log the name…