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
Java | Configure Tomcat as a service on linux
Configure Tomcat service in Linux: These instructions are related to installing and running Tomcat 7 as a service, which means that it will be launched at system boot and will be closed properly on system shutdown. Running tomcat as a
How to use SimpleSAMLPhp as a Service Provider for authenticating users?
How to use SimpleSAMLPhp as a Service Provider for authenticating users? Some Basic steps to start using simplesamlphp. 1. Download stable version of SimpleSAMLphp from this link: Click here 2. Go to the directory or your workspace where you want
New & Custom workspace in Illustrator
New & Custom workspace in Illustrator: 1. Go to the file or press Ctrl + N in Windows system / command + N on Mac: 2. This will open New window panel on your screen. You can change the title
How to move complete site from one location to another using gdrive for heavy files via terminal
Problem: How to move complete site from one location to another using gdrive for heavy files via terminal. Solution: 1. Log on to server where site is hosted via SSH. 2. Make a tar.gz of folder/directory of your site located. 3. Download
CakePHP | Using Elements for common code
Problem: How to separate redundant piece of code from your view using cakephp 3.0. Description: Let’s take an example. You have a list of products to display. We show products at many places such as 1. Show all products. 2.
PHP | Rename all the files in zip and then extract zip in PHP
Description: In one of our PHP projects, we wanted to rename all the files in zip folder and then extract the zip. The code for this is written below : $zip = new ZipArchive; $res = $zip->open($sourceFolder.’\’.$file); for ($i =
Moodle | New lang strings not accessible
In Moodle we had declared some new strings in lang file of a plugin like this: $string[‘LIBRARY_NAME’] = ‘E-Lab’; $string[‘BOOK_READ_SUCCESS’]=’Congratulations on reading the book’; We wanted to use it in view.php file of the plugin like this: $result=Get_String(‘BOOK_READ_SUCCESS’, ‘plugin name’);
PHP | How to merge multiple PDFs into single file using pdftk
Using PDFtk we can merge multiple files into a single file using a command like this: Example : pdftk file1 file2 output file3. Sample code to accomplish the same using PHP is given below: $arrayOfPDFFiles; $outputPDFName = “mergeResult.pdf”; $dir =”Files/GeneratedPDFs/”;
Moodle/Totara | Upgrade Moodle database after making changes to a plugin
In one of our Moodle projects, we modified a plugin’s code to add extra functionality to plugin. The modification in plugin’s code was not reflected and Moodle showed the older version of plugin. To solve this problem, we upgraded the