Run command prompt commands from PHP page

In this video I have shown how you can run command prompt commands from PHP page. shell_exec(‘ ‘) can be used for executing cmd commands from php page. The below image shows the ipconfig/all command executed from my pc. We can run the same command from PHP page. The code is as below. <?php $out=shell_exec(‘ipconfig/all’); …

Continue reading

JAVA – Send SOAP XML Request and Read Response

In the video I have shown how you can create an XML request and send to an endpoint URL, Then receive the response from the server. You can send both get request and post request with below examples. Send_XML_Post_Request_1.java and Send_XML_Post_Request_2.java are 2 different example codes. Send_XML_Post_Request_1.java package com.chillyfacts.com; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.InputStreamReader; …

Continue reading

Java program to Convert JSON to XML

In the video I have shown you step by step, How you can code a simple java program that can convert JSON to XML. You need to import jar file to classpath in eclipse. You can download the jar file here java-json.jar Source JSON example. { “glossary”: { “title”: “example glossary”, “GlossDiv”: { “title”: “S”, …

Continue reading

Simple JAVA program to download Youtube vidoes

Using the below simple java program you can download Youtube videos. We have to download an executable exe file from below link or their website. Download youtube-dl here. youtube-dl.rar Download this exe file and keep in the folder where you need to have your downloaded videos. 1. Project Structure in Eclipse IDE. 2. my_main.java package …

Continue reading

Read Outlook .msg file using JAVA

In this video I have shown how you can read .msg file using java. This example is shown in Eclipse IDE. 1. Project Structure. 2. 3 Jar files are required for this project. These jar files should be added to class path of the project. poi-scratchpad-3.9.jar msgparser-1.1.15.jar poi-3.9.jar 3. Read_MSG.java package com.chillyfacts.com; import java.util.Iterator; import …

Continue reading

Java JSP Javascript – Submit form without reloading page

In this video I have shown how to submit a form from a JSP page without refreshing the page. This is purely on Javascript and will work on any HTML supported platforms like PHP, .Net etc. This project is demonstrated in Eclipse IDE with Tomcat server. 1. Project Structure in Eclipse IDE. 2. index.jsp holds …

Continue reading

Simple java program code to convert Image to Text

You can convert any image file to text by Optical Character Recognition using the below java program. The API we are using here is the Tesseract OCR which is free licensed. Before running the below program you have to download and install Tesseract in your PC. Visit the below link to get the installation file, …

Continue reading

How to add Responsive google Map in Webpage

In the video I have shown how you can integrate a responsive google map in web page. Source code. <style> .google-maps { position: relative; padding-bottom: 75%; // This is the aspect ratio height: 0; overflow: hidden; } .google-maps iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; } </style> <div …

Continue reading

How to generate QR code with Image using JAVA

In this video I have shown how you can create a QR Code with logo in side the QR. We are using 2 jar files which should be added in ClassPath to create the QR file. The jars are, 1 . javase-2.2.jar 2 . zxing-core-2.0.jar QR_Generate.java package com.chillyfacts.com; import java.awt.AlphaComposite; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import …

Continue reading