Caching in Node.js with Redis: A Beginner’s Guide
Caching is a technique to store frequently used data in a temporary storage so that future requests for that data are faster. In Node.js applications, caching can help improve performance and reduce the load on your database. One popular tool
Salesforce | Send daily emails using workflows till the status changes
We have a custom object Survey and it has a status field with the values: New, Pending and Purchase. When Survey is in Pending status we want to send email to the user on every second day till the status
Salesforce | Formatting date and numbers on VF page
Problem: How to format output text field value on VF page and also number formatting? Description: In a situation I have date field on the vf page which is binded to date field having value in format “Thu Dec 1
Javascript | Adding days to date string and displaying in specific format
Suppose we want to add a number of days to given date string. For this, it can be done as follows: var givenDateString = “2016-10-10”; var dateObj = new Date(givenDateString); // Converting date string to date Object to perform any
Java Struts | How to remove the action extension in Struts 2 framework
In struts.xml file of your web project, replace value for constant named “struts.action.extension” to as shown below : <struts> <constant name = “struts.action.extension” value=”,”> </constant> <!– we have set value for this constant to comma that means no extension as
Salesforce | Editing a task assigned to another user by task owner
Problem: Task owner was not able to edit the task which is assigned to other user. I have a situation where a system admin assigns a standard user as an owner of the lead. Like in my case Abc is
Salesforce | Fetch all the tasks related to an sfobject
Description: I have a situation where I want to fetch all the tasks related to the account object. Solution: You get all the task records which belong to any of SF object using single SQL query. For Single object: For
PHP | Only first word showing in textbox from assigned sentence
Problem: After the first space in the string no data appears in the input field. There is an issue when a string contains words with spaces and we want to display the whole string in an input field but after
Adding custom merge tags to the Gravity forms
Merge Tags in gravity forms are the tags that are used to dynamically populate the field values in the form content in gravity forms like IP address, browser name, logged in user name etc . There are many merge tags
WordPress | How to retrieve query variables in plugins
Suppose the URL contains query string for example www.mywebsite.com/sme_page?q=12 then the value of query variable can be retrieved in PHP using the get method such as: <?php echo $_GET[‘q’]; ?> While creating a plugin for WordPress, to retrieve a
