Author : Arfan Youshuf

How to Get Started with Machine Learning

Machine learning is a rapidly growing field that has the potential to revolutionize industries and change the way we live our lives. If you’re interested in getting started with machine learning, but don’t know where to begin, this article will provide you with a step-by-step guide to help you on your journey. Step 1: Learn […]

Serialization and Deserialization in java with Example

Serialization and deserialization are two important concepts in Java that allow objects to be converted into a stream of bytes and then retrieved back into objects again. In this article, we will discuss what serialization and deserialization are, why they are important, and how to implement them in Java. What is Serialization? Serialization is the […]

How to iterate any Map in Java

There are three main ways that you can iterate through a java map Use entrySet() function public void iterateByEntrySet(Map map) { for (Map.Entry entry : map.entrySet()) { System.out.println(entry.getKey() + “:” + entry.getValue()); } } 2. Use ketSet() function public void iterateByKeySetAndForeach(Map map) { for (String key : map.keySet()) { System.out.println(key + “:” + map.get(key)); } […]

What is NestJs

NestJS is a server-side framework for building scalable, efficient, and maintainable Node.js applications. It is built on top of Express.js and provides a modular and intuitive structure for developing complex web applications. Some key features of NestJS include: Dependency Injection: NestJS provides a powerful dependency injection system, which makes it easy to manage dependencies and […]

Sharepoint API – Nodejs

SharePoint API is a set of RESTful web services in Microsoft SharePoint that provides programmatic access to content, metadata, and functionality stored in a SharePoint site. The API enables developers to interact with SharePoint sites and data in a variety of ways, such as reading, creating, and updating data, managing permissions and access to content, […]

How to Copy a Directory from One Server to Another in Ubuntu/Linux

You can use the below scp command to copy an entire directory or a specific file from one linux based server to another: scp -i {keyfile} -r {origin} {destination} Example:1 scp -i yourpem.pem -r username@ip_address_of_remote_server:/remote_directory_path destination_direction_path Example:2 scp -i yourpem.pem -r root@111.111.111.111:/home/abc /home/efg

Java Enum to List

EnumType.values() Method public class YourEnumClass { public enum YourEnums{ CREATE, EVERY_UPDATE, FIRST_UPDATE, DELETE } } List yourEnumList=Arrays.asList(YourEnumClass.YourEnums.values()); EnumSet.allOf() Method public class YourEnumClass { public enum YourEnums{ CREATE, EVERY_UPDATE, FIRST_UPDATE, DELETE } } List yourEnumList=EnumSet.allOf(YourEnumClass.YourEnums.class);

Scroll to top