Reset PostgreSQL password on Windows

In this video I have shown how to reset the forgotten password of PostgreSQL on windows 10 PC. 1. First locate the pg_hba.conf file inside the installation directory of PostgreSQL. In this example the file is located in ‘C:\Program Files\PostgreSQL\12\bin’. 2. Open the file in notepad and comment the below lines by putting # at …

Continue reading

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