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
WordPress | How To Add Custom Color Picker in WordPress Custom Options Panel
While building options panel in functions.php of your child-theme, we can create our custom color picker without using any plugins. We have to follow these steps and for this color picker : 1. Add Canvas <canvas id=”image_canvas” width=”246px” height=”210px”></canvas> 2 .
Salesforce | Roll back changes or delete unused classes/triggers from Production
There are two most common ways to revert your changes back to Salesforce sandbox from production: 1.) Force.com IDE 2.) Salesforce Migration tool (ANT) Using Force.com IDE : If you are already using force.com IDE then you can go for
Some Useful Features from jquery and Html5
1. Data attribute : This is the new attribute in html5. Using data attribute we can store custom data in any of the html elements. Data attribute consists of a prefix “data-” and a unique name appended to the prefix.
CakePHP | Date format translation using internationalization
In Cakephp, To translate the application language into another, we use internationalization and localization. To display the correct translated date string on change of locale, we need to use right classes. use Cake\I18n\I18n; use Cake\I18n\Time; I18n::Locale(‘es’’); // es locale is
Moodle | Totara | Create bulk enrollments from command line
1. Go Home ► Site administration ► Development ► Debugging and set Debug messages with “DEVELOPER: extra debug messages for developers”. 2. Create a testcourse.bash file in root directory with : for i in {1..100} do var=”Course_from_script_$i” echo $var php
MySql Multi-table Join Query using Cakephp 3
Below is a mysql query joining three tables. SELECT c.course_path, t.sf_name FROM courses c JOIN modules m ON c.id = m.course_id JOIN topics t ON m.id = t.module_id WHERE t.topic_name = ‘test_topic’. This Query will return Course_path and Sf_name from
How to create Subscriptions in cybersource Payment Gateway
Basically subscription in Cybersource is the customer profile that holds its details like customer details, billing and shipping details, customer payment information like card type, expiration date, account number etc. We have to pass all these details to Cybersource with
How to change wordpress multisite Subdomain to subdirectory
In a project I was working on WordPress multisites run on subdomains and we wanted to change multisite subdomains to subdirectory path like this: www.test.domain.com to www.domain.com/test. Following steps are needed to follow for converting the subdomain to subdirectory URL
SSL certificate problem: unable to get local issuer certificate
Problem : Error comes when trying to use https with url on xampp server, error “SSL certificate problem: unable to get local issuer certificate”. Solutions: you need to follow below mentioned steps: 1. Stop apache service from xampp control panel.
