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
IE11 – How to view webpage in different IE versions
Follow these steps to view the webpage in different versions of IE: 1. Open IE11. 2. Press F12 key. 3. Click on “Edge” that is displayed to the right side of the console bar. See screenshot below: 4. On clicking
Moodle | Fetch Site-Administrator user records from Moodle/Totara database
Steps : 1. Open mdl_config table in Moodle/Totara database. 2. Look for the record with name field set to “siteadmins”. 3. The value field will contain comma separated list of user-ids that have administrative access to site. Screen Shot below
Salesforce | Uploading and using images in Visualforce page
When there is requirement of displaying images in a Visualforce page, following methods can be adopted: Method 1: If the image is present on another website/server. Use this code: <apex:image url=”Paste URL of the image” styleClass=”imageStyle”/> Method 2: Uploading image in “Static
Salesforce | How to show different apex message at different places on clicking a single button?
In a Visualforce page we have multiple UI blocks (for simplicity we have considered only 2 blocks below). In each block we have a form with some html elements and few action buttons to submit form of only that block.
Moodle/Totara | How to give Grade to user in enrolled course
To give grade to user enrolled in course follow the below steps: 1. Open the course in which user is enrolled: 2. To the left, click on link labelled “Grades” as shown below: 3. Click on the button “Turn editing
Eclipse Luna | Dark theme and window split
1. You can select a dark theme for Eclipse Lune now: To use the dark theme, go to Window -> Preferences -> General -> Appearance and choose ‘Dark’. 2. Editors can be split horizontally ( CTRL+_ ) or vertically (
FileZilla | How to switch from current editor to other editor
To get Eclipse or any other editor to open the file by default every time you download a file from fileZilla follow these steps: Open terminal and find path from which your editor executes using which command. $ which eclipse
Integrate Axis2 and Rampart
Follow these steps to integrate Axis2 and Rampart: 1. Download axis2 from the below link: Click 2. Download Rampart. 3. Set AXIS2_HOME using below commands on terminal: $ vi /home/user/.bashrc Add below line to the end of the file: export AXIS2_HOME=/home/user/Downloads/axis2-1.6.4/ “
Ubuntu | Google Authenticator not working with SSH keys
Purpose is to get MFA/ 2-step verification working i.e. google-authenticator + ssh Keys First of all, install google authenticator on your server with following steps: 1. Yum install google-authenticator.x86_64 (Redhat/Centos) sudo apt-get install libpam-google-authenticator (ubuntu OS) 2. Now vi /etc/pam.d/sshd (add following