In many cases, creating a new instance is a costly operation. Fortunately, we can copy or clone an instance of an existing one instead of creating from scratch. This approach can be done by using Prototype Pattern, one of Creational Patterns.
In the tutorial, we show how to work with DateTime request param in SpringBoot RestAPI using
In the tutorial, we build a SpringBoot RestAPIs example that post/get data with
java.util.Date time and save it to MySQL/PostgreSQL database using Spring JPA. Working with Java Date Time is an exciting part but also not easy task, fortunately we have the supporting from utilities of Jackson lib, now the job can be done in an easy way.
Let’s do details by steps!
Building user authentication is not easy, in almost case, it’s complicated. Fortunately, Django has a powerful built-in User authentication that helps us create our Authentication system fast. By default, the User model in Django
auth app contains fields: username, password, email, first_name, last_name… However, using our own custom user model allows us deal with user profile more comfortably. For example, what if we want to add more fields: full_name or age?
In this tutorial, we’re gonna look at way to customize authentication in Django (version 2.1) using subclass of
AbstractUser. All User authentication data will be stored in MySQL/PostgreSQL database that we’ll show you how to config the datasource.
It will be very interesting. Let’s go through the steps.
In the tutorial, We discuss how to Sort Java List Objects by Date property with difference Date types:
LocalDateTime. Java provides 2 main approaches for sorting Java List with Comparator:
java.util.Collections.sort(List: sorting the specified list according to the order providing by the specified comparator.
list, Comparator< ? super Customer> c)
java.util.Collection.stream().sorted(Comparator< ? super T> comparator): returning a stream consisting of the elements of this stream, sorted according to the provided Comparator.
Let’s do more details with Java syntax examples (Java 7 and Java 8) by descending and ascending sorting order.
In the tutorial, we will discuss how to Sort an Array with Java in ascending and descending order.
java.util.Arrays class provides a lot of Methods to sort an Array with difference types:
- With Primitives Array, We use the method such as:
static void sort(int a).
- With String or Objects Array that implement
Comparable, We use method:
static void sort(Object a).
- With Custom Object Array that no implement
Comparable, We use method:
sort(T a, Comparator< ? super T> c).
Let’s do more details with Java Array Sorting.
In this tutorial, we’re gonna look at way to upload file in Django using Django
ModelForm and save its information to MySQL Database. We also have UI to view list of uploaded items and function to delete specific file.
Related Post: Simple way to upload file in Django
In the tutorial, Grokonez shows how to download & extract Excel(.xlsx) File/Data from MySQL with Nodejs Express and
– Node.js Extract MySQL Data to Excel(.xlsx) File – using exceljs
In the tutorial, Grokonez shows how to download & extract CSV File/Data from MySQL with Nodejs Express and
– Node.js Extract MySQL Data to CSV File – using Json2Csv
In the tutorial, Grokonez shows how to upload & import Excel File/Data to MongoDB using
In this tutorial, we’re gonna look at a simple way to upload file in Django Application.
In the tutoria, Grokonez shows how to upload & import CSV File/Data to MongoDB using
– Node.js Import CSV File to MongoDB – using CsvToJSON