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
HTML | Print preview a specific div only
How to view the print preview of a specific div of the page and take a printout of that specific div only? 1.First, create a full-screen modal on the page: <div class=”modal fade” id=”myModal”> <div class=”modal-content”> <div class=”modal-header text-center”> <button
Using concatenate, cases, substring in CakePHP 2
How to use concatenate, cases, substring in CakePHP 2.* find query. Suppose given records are: Problem: Display user details in one column and the first character of user role in front of the user full name. Also suppose in case
How to Convert XML to a dynamic object in C#
First of all how to parse a predefined XML structure to a class object in C# Sample XML: <User> <Name>Joseph Lawrence</Name> <Class>Second</Class> <Section>B</Section> <Roll_number>2735</Roll_number> <Joining_Dt>20160323</Joining_Dt> </User> Above sample can be parsed by creating a class and setting each variable
Uploading files on Amazon AWS S3 server using PHP
Before uploading any document to Amazon AWS S3 server, make sure that user has to write access on the bucket where files will be saved else it will throw ‘Access denied’ error. Apart from the write permissions, access keys are
Steps to Create and Delete Windows TaskScheduler instance in C#
Steps to Create and Delete Windows TaskScheduler instance in C# code: Dependencies: Add reference of the taskschd.dll file. On click of start button following steps need to be executed to create an instance of Scheduler: 1. Create the instance of
Salesforce | Apply Workflow on existing records as well
I have created a new workflow with criteria “Evaluate the rule when a record is created, and any time it’s edited to subsequently meet criteria”. It includes all the newly created records which fulfil the criteria. But I want to
QuickBooks Integration | Important Quickbooks Webconnector Facts
Question: Can we add custom functions in quickbook? Answer: Yes, In quickbook.php file we need to add Constants to make custom function and we can add as many as we want. After defining these constant we can map these in
Linux | Warning (Y/N) on shutdown command
Sometime unknowingly we execute shutdown or reboot command on production live server. So in order to be on the safe side we can configure the shutdown command to ask us for Y/N like explained below: Switch to root user and
How to Disable CSRF token in Laravel Application
CSRF stands for cross-site request forgery. CSRF token is basically used for security purpose in Laravel forms. To understand how it works read here: https://laravel.com/docs/5.4/csrf How to disable it if required? CSRF protection is enabled by default in all routes
