Asynchronous Apex
Asynchronous Apex in Salesforce allows developers to execute operations in a separate thread, enabling tasks to run in the background without impacting the user experience. This approach is particularly beneficial for handling long-running processes, callouts to external systems, and operations
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
Download CSV of table Records using OUTFILE sql command and PHP
Create and Download CSV of table Records using OUTFILE Sql command and PHP 1. Create temporary CSV file using OUTFILE SQL command: OUTFILE command is used to write your sql command output to the specified location. You can write the output
Chargify Retry and Dunning – How to manage failed transactions
Description: When we use auto debit system to charge our customers using their credit cards, it is possible some transactions get declined. This can happen due to different reasons like user’s credit card has expired or due to authentication failure
WordPress | Deployment of code to live website from Github, Bitbucket or Gitlab
Suppose we have live websites and we are using bitbucket to save the code of plugins, themes etc of those websites. Then we can manage the deployment to live sites easily through the WP pusher plugin. WP Pusher plugin is
Compare Passwords in HTML5 form validation using Jquery
In one of our projects, requirement was to compare two password values using HTML5 form validation (display the message in the same format as regular HTML5 messages are displayed). Let us assume that we have a HTML5 form for change
Customize Time Picker from Bootstrap Time Picker Plugin to add additional features
With bootstrap timepicker plugin, one can select time similar to datepicker (we select date, month, year from datepicker). With bootstrap timepicker plugin, we can select hour, minutes and meridian. In the following screenshot, you can understand, what timepicker does: Screenshot
JavaScript and Jquery Best Practices
1. Place Scripts at the Bottom of the Page: If we include script at the top, sometime page elements are not loaded completely and script starts working. So we need to include scripts after loading all the elements. Also if scripts
Moodle | SQL report example in Configurable Reports plugin
SQL Report in ‘Configurable Reports’ plugin provides us an easy UI to write SQL Query and draw results immediately without involving any code complications. Suppose I want to generate my custom grades report based on some specific activities from course