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
Selenium | Find a particular window and close it via code
If multiple browser windows are opened, then find a particular window and close it by using web driver. We can do so by using the following function: public static void switchControlToSpecifiedWindow(WebDriver driver) { Iterator < String > windows = driver.getWindowHandles().iterator();
Ubuntu | Remove sendmail completely
Problem: I installed sendmail in my ubuntu system with the help of link http://lukepeters.me/blog/getting-the-php-mail-function-to-work-on-ubuntu. I installed it to test php mail functionality on localhost for my project. It was working slow, therefore, after testing, I wanted to uninstall it completely
Microsoft Azure | Deploy ASP.NET Web Project on Microsoft Azure
1.Go to Server Explorer. Right- click on Azure and click on Connect to Microsoft Azure subscription. A login screen will appear. Enter valid credentials with at least one subscription and sign-in. 2. Now expand Azure. Right click on App Service
PDFtk | View PDF field information from command line
Solution: If you have a pdf and you do not know the names of the fields used in the pdf just follow these steps: 1. Install pdftk (search online). 2. Open the command prompt, run the command: pdftk YourPdf.pdf dump_data_fields
Java | Hibernate best practices
1. Always define hashCode() and equals() methods in your Persistent classes. 2. Persistent class method’s equals() and hashCode() must access its fields through getter methods. It is a good practice to use accessor methods instead of direct instance variable access.
A Brief Introduction to SOAP
SOAP stands for Simple Object Access Protocol. This protocol allows to communicate over the web between the programs (or Web service-enabled applications) running on two different systems using Http and language used by this protocol to communicate is XML (Extensible
How to configure DevExtreme with visual studio MVC application
These are the steps : 1. Install Microsoft visual studio on your machine. 2. Then we need Xpress Developer Studio. Which is available on https://js.devexpress.com/. 3. Install Xpress Developer Studio in your machine. 4. Then we need to install DevExtreme
Importing gmail contacts in your website using javascript
Importing gmail contacts in external website is common these day where you can login to gmail from within external website and then access your contacts directly inside external website. For example, the requirement could be to allow user to refer
Moodle | Calling custom function on an event
Event driven architecture is inbuilt into Moodle. There are various kinds of events present in moodle like: 1. Course completion 2. Course creation 3. Course deletion 4. Course Module creation 5. Category Creation etc. On trigger of an event we
