Caching in Node.js with Redis: A Beginner’s Guide
Caching is a technique to store frequently used data in a temporary storage so that future requests for that data are faster. In Node.js applications, caching can help improve performance and reduce the load on your database. One popular tool
Java | Benefits of declaring SerialVersionUID in your code
SerialVersionUID is a class invariant that is used to validate that the classes on both sides of the wire are the same. During Serialization it marshals an object and sends it over the stream. During marshalling process, the SerialVersionUID is
AWS Amazon CloudFront – How to enable cache for whole site
AWS Amazon CloudFront is a web service that speeds up serving static and dynamic web content like, .html, .css, .php, and image files and videos. It also integrates with other Amazon Web Services like S3, EC2, Elastic Load Balancer and
Java | ‘default’ method implementation for methods in Java interfaces
Default method, a new concept used for interfaces has been added to Java 8. Purpose: In Java 7 or older, classes implementing an interface were forced to implement each method of the interface. Consider a long running project in which an
Does Java support call by reference?
Java does not support call by reference because in call by reference we need to pass the address and address are stored in pointers. Java does not support pointers and it is because pointers break the security. Java does manipulate
Selenium | how to upload a csv file with Selenium script
In this post I will give an example of how to upload a csv file with Selenium script to a webpage. Below is the screenshot of webpage: Code to automatically select a csv file and then click Submit button is
How to show slanted text and images using CSS?
Slanted text and Images in CSS for different browser is given by transform property in CSS. We need to specify the angle by which to slant the image or text. Angle can be negative or positive. Positive angle inclines the
Salesforce | Trap incoming email and extract email content with attachments in salesforce
Problem: Trap incoming email and extract email content with attachments in Salesforce Solution: Salesforce provides us a mechanism to trap incoming emails on a specific email id and extra email contents including attachments out of it. To achieve this we
PHP | Load Data Infile to insert csv data into Mysql with PHP
Problem: How to insert csv data into mysql table with mysql query in php. What problems usually you face with this and how to resolve them. Description: I have csv file with thousands of records. I want to insert these
Moodle/Totara | Creating a new Activity Plugin
Introduction: In Moodle/Totara we can add a different type of activities to a course by selecting from the list of standard activities available. As shown in the the list below: But there might be some cases in which we need
