Asynchronous Apex

|
| By Rushali kashyap

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

PHP | Sorting Complex Multidimensional Array

| By Webner

Suppose we have a complex array like below: $products = array( array( ‘product’ => array(‘id’ => 1, ‘name’ => ‘Jquery tutorial book’), ‘product_details’ => array(‘cost’ => 10, ‘edition’ => ‘first’) ), array( ‘product’ => array(‘id’ => 2, ‘name’ => ‘javascript

iOS | How to get installed app package names

| By Webner

Here is the code to get names of app package installed on iOS devices: include objc/ runtime.h in your viewController.m include <objc/runtime.h> – (void)GetInstalledApps { Class LSApplicationWorkspace_class = objc_getClass(“LSApplicationWorkspace”); NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)]; NSArray *array = [workspace performSelector:@selector(allApplications)]; NSMutableString

Toggling a checkbox on/off through Selenium webdriver

| By Webner

Below is the script for on/off the checkbox using webdriver: package mypackage; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; public class myclass { public static void main(String[] args) { WebDriver driver = new FirefoxDriver(); String baseUrl = “http://www.facebook.com”; driver.get(baseUrl);