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
Postgres | Function to remove HTML tags from text
Problem: How to create a function in Postgres that will remove HTML tags from a piece of text? Solution: Create function in Postgres : CREATE OR REPLACE FUNCTION strip_tags(TEXT) RETURNS TEXT AS $$ SELECT regexp_replace($1, ‘]*>’, ”, ‘g’) $$ LANGUAGE
Dynamic CSS | How to start your project in SCSS
Before understanding how to maintain or start a project in SCSS we should understand what is SCSS and why it is used? SCSS is a special type of file for SASS, a program written in Ruby that assembles CSS style
Migrate AWS EC2 machine using Snapshot Sharing
How to migrate an EC2-machine from one AWS account to another aws account? Solution: To migrate EC2 machine, there are following main steps: Create Snapshot of the existing machine drives. Migrate the EC2 machine. Upgrade/downgrade migrated machine configuration. Step 1: Create
Salesforce | Change Visibility of several fields of an object
Problem: Change Visibility of several fields of an object. Need: One example is when a package is deployed to another org then the visibility of the fields can be different than expected which affects the functionality. Solution: Since editing each
Tips about time management when you have a lot to do at work
“A stitch in time saves nine “ This famous proverb holds absolutely true when it comes to software developers for we waste a lot of time in correcting things which show up because of lack of time as we have
Eclipse | Enable Php Support for extra features
In Eclipse (Luna Service Release 2 (4.4.2), jump to method definition is available for Java and other languages. But sometimes, it gets disabled for PHP. For example ,if eclipse crashes. So to enable this, first you have to select the
JQuery | Draggable conflict with Contenteditable
JQuery Draggable function conflict with Contenteditable Dom attribute I am creating HTML editor in which I have the requirement to add an editable and draggable div. I have applied both the properties to the div: draggable and Contenteditable, but only
Create custom scheduled task in Totara
How to create custom scheduled task in Totara using code in the custom plugin Scheduled tasks are very useful if we want to perform anything in the background. Here I am going to explain the steps to create a custom
Wordprerss | Upload SVG or other files in Media Library
In WordPress, by default svg type of files are not permitted to upload. So in order to upload the SVG files to WordPress media library, we will need to add following code to child theme’s functions.php file: //To allow svg