기본 콘텐츠로 건너뛰기

6월, 2015의 게시물 표시

MERS in Korea

   Recently in Korea, there is  a epidemic, MERS. The outbreak of MERS hits Korea severely. One doctor who is positioned in a high level, said more people dies by Pneumonia than MERS, worrying about the people's exaggerated fear. Moreover, one politician says Koreans who doesn't worry about Nuclear Bomb worry about MERS.   Both missed that the reason and cause of outbreak of MERS in Korea is very different than Pneumonia or Nuclear Bomb, and that is the root of people's fear.   One doesn't suffer from Pneumonia just because he or she have been to a hospital. And the policy of preventing Pneumonia has been well made along with the long history of the disease, but the policy of MERS and the action of government of Korea are mess-up. They should know these are the fundamental source of People's fear.  The outbreak of MERS should finished in less damage.  But the wound of this disease would be last to enlighten some like the doctor and the politician.

Java Scanner & PrintWriter & InputStream & OutputStream

When using both PrintWriter & Scanner, and InputStream & OutputStream on the same socket, odd thing happens. When call InputStream.read() after call Scanner.nextLong(), InputStream.read() can't receive data exactly. It seems Scanner caches the input. The solution is send and receive something before call InputStream.read(). Sequence is important like send/receive/send/receive, not like send/send/receive/receive for client:     Scanner.nextLong()     PrintWirter.println()     InputStream.read() for server   PrintWriter.println()   Scanner.nextLine()   OutputStream.write()