We have a VF page containing apex:inputField which contains date value so it shows calendar whenever we focus on the inputField. The problem is it is the first inputField on the page so whenever we open the page by default, the focus goes on this particular field, therefore, it Read more…
Problem: When we fire a Synced ajax call it blocks all the other functionality of that tab of the browser and fires/executes other event or code only after the synced ajax gets back with its response. Also the code fires the ajax call very quickly that’s Read more…
Following are the steps to install RabbitMQ in Heroku App:
1. Install RabbitMQ (bigwig) on Heroku using find more add-ons like shown in the following screenshot:
2. Search for rabbitmq using search bar as shown in the screenshot below:
3. Click on RabbitMQ Bigwig from the search Read more…
Whenever we need to execute a block of code which may take long time to run then instead of executing them in real time we can put this code in the background process as it may timeout if we wait for its completion in real time.
What is RabbitMQ?
RabbitMQ Read more…
How to set up a CloudFront for S3 bucket containing images for the website, using the same domain name that is already placed behind CloudFront.
1. Open CloudFront from a menu:
2. Click Create Origin:
3. Now, click in box and select the s3 bucket URL from this list. Click Read more…
We can insert or update Zoho CRM product in shopify by creating a custom function in zoho. Below is the custom function which can create a product in shopify. We can invoke it when we create or update a product in Zoho:
void getProductData (int Product_id )
requestHeader=map Read more…
First of all, we should know what features are provided by jquery-ui plugin. To know about details, please see link,
Jquery UI plugin can be downloaded from the link
Now, today, we will discuss about Autocomplete feature of jquery-ui plugin Read more…
How to view the print preview of a specific div of the page and take a printout of that specific div only?
1.First, create a full-screen modal on the page:
<div class=”modal fade” id=”myModal”>
<div Read more…
How to use concatenate, cases, substring in CakePHP 2.* find query.
Suppose given records are:
Problem: Display user details in one column and the first character of user role in front of the user full name. Also suppose in case of superadmin role as well we want to display (a Read more…
First of all how to parse a predefined XML structure to a class object in C#
<Roll_number> Read more…
Before uploading any document to Amazon AWS S3 server, make sure that user has to write access on the bucket where files will be saved else it will throw ‘Access denied’ error. Apart from the write permissions, access keys are also required in the code which we get while creating Read more…
Steps to Create and Delete Windows TaskScheduler instance in C# code:
Dependencies: Add reference of the taskschd.dll file. On click of start button following steps need to be executed to create an instance of Scheduler:
1. Create the instance of TaskScheduler:
TaskScheduler.TaskScheduler objScheduler = new Read more…
I have created a new workflow with criteria “Evaluate the rule when a record is created, and any time it’s edited to subsequently meet criteria”. It includes all the newly created records which fulfil the criteria. But I want to include all the old records which are already existing Read more…
Question: Can we add custom functions in quickbook?
Answer: Yes, In quickbook.php file we need to add Constants to make custom function and we can add as many as we want. After defining these constant we can map these in our web service.
Suppose we Read more…
Sometime unknowingly we execute shutdown or reboot command on production live server. So in order to be on the safe side we can configure the shutdown command to ask us for Y/N like explained below:
Switch to root user and then proceed
1. Add Alias in ~/.bash_profile Read more…
CSRF stands for cross-site request forgery. CSRF token is basically used for security purpose in Laravel forms. To understand how it works read here: https://laravel.com/docs/5.4/csrf
How to disable it if required?
CSRF protection is enabled by default in all routes of Laravel 5 Read more…
Create and Download CSV of table Records using OUTFILE Sql command and PHP
1. Create temporary CSV file using OUTFILE SQL command: OUTFILE command is used to write your sql command output to the specified location. You can write the output to some files using OUTFILE when required Read more…
Description: When we use auto debit system to charge our customers using their credit cards, it is possible some transactions get declined. This can happen due to different reasons like user’s credit card has expired or due to authentication failure by bank etc. So, if we face such a Read more…
Suppose we have live websites and we are using bitbucket to save the code of plugins, themes etc of those websites. Then we can manage the deployment to live sites easily through the WP pusher plugin.
WP Pusher plugin is used for the deployment of code to the live websites Read more…
In one of our projects, requirement was to compare two password values using HTML5 form validation (display the message in the same format as regular HTML5 messages are displayed).
Let us assume that we have a HTML5 form for change password screen:
<div Read more…