Download webpage using java server socket.

Download webpage using java server socket.  import*; import*; class readWebPage { public static void main(String arg[]) { try{ Socket s = new Socket(“″,8090); String line=””; BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream())); PrintWriter out = new PrintWriter(s.getOutputStream()); out.print(“GET /httpclient.htmlnn”); out.flush(); System.out.println(“Reading File”); while((line = in.readLine())!=null) { System.out.println(line); } } catch(Exception e) { System.out.println(e.toString()); }

How to reset password for CentOS of root?

Boot the Operating system and “Press any key to enter the menu” press any key. Figure 1 Press e in order to edit commands before booting. Search in the list item having Keyword vmlinuz in it by using the arrow keys. Figure 2 Press e again to Edit. Figure 3 type single or init 1 at the end of

Java HTTP Server and Client

Create chat application using either TCP protocol Making simple chat application using “Socket” Programming. Here is the code for TCP/IP Server and Client.  GTU; Practical 1: Advance  Java : Create chat application using either TCP  protocol   Code of Server /* * To change this license header, choose License Headers in Project Properties. * To change

Turn your Mobile to Wireless Video Cam

Here I am introducing tool which turn your “android mobile device to wireless cam”. Using live streaming technology this tool Named “DroidCam” capture Audio/Video and Broadcast over Wife/USB*. Here Server application capture the stream and convert to the Audio-Video in Laptop Screen. Look at the Simple steps. Step 1: Download Desktop client from [1]. Install


Matlab_httpServer is Javabased http server implementation to run Matlab (.M file) code over http request. Here are developing intermediate application (http Server) which communicate with different IoT Device (like Rpi) and get Executed on server. Result submitted to Rpi device over internet (by HTTP Protocol). Visit Project Page: Citation [1]

Demo of I18N (Internationalization) with JAVA

I18N is called Internationalization, which supports Multiparty language in your software. again its not convert one language to other language but Display selected language from “Properties” file. Crate file Copy the following code.    import java.util.*; public class I18nDemo { private static Locale aLocale; private static Locale frLocale; private static ResourceBundle Message; public static

Make your own Java webServer

import*; import*; class myserver { public static void main(String str[]) { String myIp=null; int port=786; try{ //Get Systems current ip address myIp= Inet4Address.getLocalHost().getHostAddress(); System.out.println(“Server is Running with “+ myIp +”:”+ port); //Create Server Socket ServerSocket welcome = new ServerSocket(port); //Accept incomming connection Socket Socket sskt = welcome.accept(); PrintWriter out = new PrintWriter(sskt.getOutputStream()); //Create

The Best Online Bibliography and Citation Site.

The 10 first tools are Free. The remaining 4 are paid.  [1] [ad name=”OpenX-for all post”] Bibme – Free Citation Machine – Free Citefast – Free Citelighter – Free Illinois Mathematics and Science Academy Citation Wizard – Free Oregon Public Education Citation Maker for MLA – Free Recipes4Success – Free RefDot – Chrome Extension –