Archives: Development

Cross Cutting Concerns

February 27, 2020 | By kiranbadi1991 | No Comments | Filed in: Development.

We spend quite a bit of time writing code for functionality, code for real required functionality(Core features or requirement of application), however we spend almost 2x amount of time writing code to meet the cross cutting demands of the application functionality (Think logging, security ,audit etc. ) which is not so much used directly. Technically • Read More »

Tags:

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 »