sandeepk84
sandeepk84
Untitled
14 posts
Don't wanna be here? Send us removal request.
sandeepk84 · 4 years ago
Text
How to take MySQL database backup in Linux? Automate Daily, Weekly and Monthly backups of MySQL databases in Linux with AutoMySQLBackup.
AutoMySQLBackup is a shell script that helps to automate incremental daily, weekly and monthly backups of MySQL databases in Linux. It’s an easy to configure utility which brings you the flexibility to customize the database backups to meet your specific needs, that too without having the trouble of creating complex backup scripts. Let’s get into the steps: 1) Download and install…
View On WordPress
0 notes
sandeepk84 · 4 years ago
Text
How to install a free SSL certificate in Linux using Cloudflare. Enabling HTTPS/end to end encryption.
How to install a free SSL certificate in Linux using Cloudflare. Enabling HTTPS/end to end encryption.
Companies or platforms like Cloudflare work as your security partners by ensuring the communication between users’ browser and your web server is secured. I assume that you have a clear idea about the need for SSL in an application or a web site. Let’s see the steps to set up SSL using Cloudflare: 1. Login to your server and make sure Apache mod_ssl module is installed. In other words, make sure…
Tumblr media
View On WordPress
0 notes
sandeepk84 · 5 years ago
Text
Which are the best SSL Certificate Providers? A list of top SSL Certificate Authorities with their Plans and Pricing.
Which are the best SSL Certificate Providers? A list of top SSL Certificate Authorities with their Plans and Pricing.
Tumblr media
It is the responsibility of website owners to make sure that their customers’ information is secure. Specially when it comes to an e-commerce website. SSL Certificatesmake sure that the security is in place and help site owners to focus on their business rather than worrying too much about securing the site traffic and customers’ data. Here is the list of some of the best SSL Certificate…
View On WordPress
0 notes
sandeepk84 · 5 years ago
Text
How to install Apache mod_ssl in CentOS / RHEL? What to do if ssl.conf file is missing in the server?
How to install Apache mod_ssl in CentOS / RHEL? What to do if ssl.conf file is missing in the server?
mod_ssl is an Apache module that provides SSL v2/v3 and TLS v1 support for the Apache HTTP Server. ssl.conf is the Apache server configuration file that helps to enable SSL support. Following is the location of the ssl.conf file:
/etc/httpd/conf.d/ssl.conf
Absence of ssl.conf file means you need to install mod_ssl to enable HTTPS or SSL in your Apache server. Execute the following command…
View On WordPress
0 notes
sandeepk84 · 5 years ago
Text
How to use the @Scheduled Annotation in Spring? Different ways to schedule tasks in a Spring Application.
How to use the @Scheduled Annotation in Spring? Different ways to schedule tasks in a Spring Application.
In this post we’ll discuss some simple steps to use Spring’s @Scheduled annotation to schedule tasks which are to be invoked automatically and executed at a specific interval of time.
1) Enable Spring’s task scheduling capability
@SpringBootApplication @EnableScheduling public class SpringTaskScheduler { public static void main(String[] args)…
View On WordPress
0 notes
sandeepk84 · 5 years ago
Text
How to return a custom object from Spring Data JPA? Using JPQL Constructor Expressions in Spring Boot JPA Repository.
How to return a custom object from Spring Data JPA? Using JPQL Constructor Expressions in Spring Boot JPA Repository.
Spring Boot’s @Repository annotated interfaces reduce the amount of effort required to implement data access layer when compared to the old DAO implementation classes. However, the default behavior of the JPA repository returning a database entity object or a list of entity objects may not serve the purpose if you are using a customized query. Using Aggregate functions like COUNT()in the query is…
View On WordPress
0 notes
sandeepk84 · 5 years ago
Text
Difference between @Controller and @RestController annotations in Spring Framework. @Controller vs @RestController in RESTful web services
Difference between @Controller and @RestController annotations in Spring Framework. @Controller vs @RestController in RESTful web services
Both @controller and @RestController annotations indicate that the annotated class is a “Controller” in the MVC. @Controller has been part of the Spring framework for a very long time. It is typically used in combination with @RequestMapping and @GetMapping annotations on request handler methods in a controller class. Also, to make it a RESTful web service, you need to use the @ResponseBodyannota…
View On WordPress
0 notes
sandeepk84 · 5 years ago
Text
How to use JASYPT in a Spring Boot application? A detailed guide to encrypting application properties using JASYPT.
How to use JASYPT in a Spring Boot application? A detailed guide to encrypting application properties using JASYPT.
What is Jasypt? Why is it important?
JASYPT stands for Java Simplified Encryption. Jasypt is a Java library which helps you to add encryption capabilities to your projects without much effort and knowledge of cryptography. We secure our applications’ data, connections, requests and responses, etc. using various ways but tend to leave the data or values in configuration files like application.p…
View On WordPress
0 notes
sandeepk84 · 5 years ago
Text
How to use setenv.sh or setenv.bat script in Apache Tomcat? Exporting environment variables using Tomcat's setenv script
How to use setenv.sh or setenv.bat script in Apache Tomcat? Exporting environment variables using Tomcat’s setenv script
The setenv.sh in UNIX or setenv.bat in Windows is a script file used to set or modify custom environment variables for the Tomcat application server. The deployed application(s) can use those variables as needed. Using a setenv script is the preferred way to keep our application specific customization separate from the server’s default configuration. If you check the catalina.sh or catalina.batsc…
View On WordPress
0 notes
sandeepk84 · 5 years ago
Text
What is the difference between Apache Tomcat catalina.sh and startup.sh scripts?
What is the difference between Apache Tomcat catalina.sh and startup.sh scripts?
The Apache Tomcat is an open source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies. It was started as an open source project by the Apache Software Foundation(ASF) in 1999. From the starting time, Tomcat has proven to be a popular application server for web developers around the globe.
Catalina is the core component of Tomcat. It…
View On WordPress
0 notes
sandeepk84 · 5 years ago
Text
How to customize Spring Security's AuthenticationFailureHandler in a Spring Boot application?
How to customize Spring Security’s AuthenticationFailureHandler in a Spring Boot application?
We handle successful authentications by implementing the onAuthenticationSuccess() method of Spring Security’s AuthenticationSuccessHandler Interface. We write our own code to handle the activities and flow for successfully logged in users. Similarly we can handle the authentication failures using Spring Security’s AuthenticationFailureHandler Interface.
Spring handles authentication failures…
View On WordPress
0 notes
sandeepk84 · 5 years ago
Text
How to use Hibernate's @ColumnTransformer annotaion? How to format or modify a database column value using @ColumnTransformer?
How to use Hibernate’s @ColumnTransformer annotaion? How to format or modify a database column value using @ColumnTransformer?
Let me give you an introduction. If you want to skip and jump quickly to the implementation part then go to the Examples section. First of all, what is an SQL Expression? It’s a combination of one or more values, operators and SQL functions that evaluates to a value. We usually use queries combined with some expressions to fetch data. Some commonly used expressions types are Boolean, Numeric,…
View On WordPress
0 notes
sandeepk84 · 5 years ago
Text
Which are the best online client-side code editors?
Which are the best online client-side code editors?
We all have noticed the introduction of a number of online code editors over the years. They provide an online learning environment. The biggest advantage of all these is that you can save much of your time in testing some code parts. Also within minutes, do any experimental work online without wasting your system’s memory by creating new files, taking a proper IDE, etc. Also some of these…
View On WordPress
0 notes
sandeepk84 · 7 years ago
Text
Socket.IO using Node.JS and Express web framework
Socket.IO using Node.JS and Express web framework
Hey,
Many of techies might have already tried Socket.IO to enable real-time communication. Still thought of sharing some info on the same.
In this post I will not go in deeper to explain the implementation as it’s clearly mentioned on the Socket.IO site. I will publish another post in detail on integrating Socket.IO with a Spring web app which might be a little more complex than the current…
View On WordPress
0 notes