Archives: Others

Java Utility – Rename Files in Folder

November 1, 2019 | By kiranbadi1991 | Comments Off on Java Utility – Rename Files in Folder | Filed in: Development, Others.

import java.io.File; import java.io.IOException; public class FileRename { public static void main(String args[]) throws IOException { String DIR_PATH = "MyDirectoryPath"; String stringToReplace = "MyStringtoReplaceInFileName"; getFileNames(DIR_PATH, stringToReplace); } public static void getFileNames(String Path, String stringToReplace) throws IOException { File folder = new File(Path); File[] listOfFiles = folder.listFiles(); System.out.println("Total Files :" + listOfFiles.length); for (int i = • Read More »

Tags:

Special HTTP Verb to request and view Documents online

May 28, 2019 | By kiranbadi1991 | Comments Off on Special HTTP Verb to request and view Documents online | Filed in: Development, Others, Process, Project Management, Security.

First American Financial Corp’s recently exposed good amount of data(885 million files related to real estate data) to the external folks.Probably this leak impacted close 885 million folks assuming each file relates to one property and one person or family. The leak mainly happened by modifying the URL parameter of the request. I have written • Read More »

Façade Pattern

May 1, 2018 | By kiranbadi1991 | Comments Off on Façade Pattern | Filed in: Others.

Façade pattern is used to hide the complexity of the sub system and provide users with the simple and easy to use interface to consume. Commonly used use cases for Façade are Provide simple and easy to use interface to backend legacy system. Sometimes used to build the public interface for users to consume. To • Read More »