Posts

Showing posts from December, 2015

How To Do A Cleanup

Image
Why We Clean Image Source: from Google According to my experience, our world is polluted more than our mother nature could handle. But I believe that if we could change ourself then we can change the thoughts of a whole society. And by doing those Cleanups I believe more and more people will be joined hands together and most importantly people will be get educated about the importance of being environmental friendly. Let's Start At first, I must say if anybody wants to do a cleanup even by himself I hope reading my words will help you to do it in a better way!. What I have described in this BLOG is for the people who are organizing the CLEANUP as a group work to involve many people as much as possible. And considering the current trend for the CLEANUPS, I hope this post will come in handy. And also every factor I mentioned here is the experience I gained from the taking part in a set of Volunteering events and I do believe that this BLOG  will greatly he

Why using Threads is better in Socket Programming

Image
Socket programming is a topic which has a wide area of knowledge to discuss,But I'm going to demonstrate only about the advantage of using Threads in the socket programming I'm going to use the Java as my programming language in this demonstration,To ease the work I'm going to run a Port scanning program with and with out using Threads.But keep in mind if you using a public place like a Computer Laboratory, port scanning may not be allowed.But if you guys use a private place and work through a localhost then things will be easy. A Thread and a process have some slight differences,if I go through quickly, a thread is a sub category of a process and which needs a low amount of resources to run and let the computer to create more easily because they are lightweight. Java Socket Scanning program which search available(open) ports in the server. public class MainPrograme {       private static String host;       public static void main(String[] args )     {