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 | Wrapper classes, autoboxing and unboxing
Wrapper classes are the classes to convert the primitive types to objects of their respective class. We have many primitive types in Java like int, float, char etc. These primitive types can not be used in Collections as Collections only
Salesforce | Why to use @TestVisible annotation
Problem: Why we use @TestVisible annotation for a private method and private variable of a Class in Salesforce? Description: I have a situation where I want to call a private method of a class in the test class, whenever I
PHP | Short introduction to traits in PHP
In PHP, the trait is a method of code re-usability. Php is single inheritance programming language. So there is a limitation of code reusability due to single inheritance. Traits in PHP is basically a method of code reusability. Traits have
Salesforce | How to track email sent by workflows or process builder in email history section of record?
1.Create an email template. For example, we created a template called “Leads: Welcome email” Somewhere in the template, add “ref:{Object Id of the record}” which you want to track the activity For example, in our template, we added ref: {!Lead.Id}.
Moodle | Uploading Scorm Package and some internal function calls
1.Uploading a scorm package (.zip) in moodle: a. Log-in to moodle, navigate to your course and “turn editing on”: b. Click “Add an activity or resource” link: c. Select Scorm package from list and click Add button: d.Add basic information
Java Servlets | Converting relative path to absolute for file upload
In the program of uploading files to a server location, instead of using absolute location for saving file to that path, relative path needs to be used. Program was working correctly for absolute path. In the maven project with the
Apache Tomcat | No change reflected on re-deploying war file into tomcat’s webapps folder
Issue: I had deployed latest war file of my Java project into tomcat’s webapps folder but I could not see any changes reflected while running my project. What I tried? It looked like war file must not have been uploaded properly.
PHP | Password hashing
Password hashing is the new recommended way to store the password using hashing method (PHP 5 >= PHP 5.5, PHP7). Password hashing is used to encrypt the password similar to the way md5, sha1, sha256 etc do. But this method
Spring Framework | How to define interceptor for a spring web project
Interceptors are components that intercept requests before passing to controller and responses before rendering the view. Interceptors can intercept request and response in our web application. With the help of interceptor we can check whether a user has the authority
