Archives: Development

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:

Native Script Angular adding Images Resources – Error in downloadBitmap – java.net.MalformedURLException: no protocol:

September 4, 2019 | By kiranbadi1991 | Comments Off on Native Script Angular adding Images Resources – Error in downloadBitmap – java.net.MalformedURLException: no protocol: | Filed in: Browser, Development.

Just in case if you are ever getting this error with Native script Angular Framework while trying to add images from local file system and trying to preview it via playground app. Error in downloadBitmap – java.net.MalformedURLException: no protocol: ./app/images/home.jpg Try doing it this way <Image src=”~/app/images/home.jpg” stretch=”none”></Image> Trick here in debugging this is to • Read More »

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 »