Problem: Cloudfront caches most of the objects and it becomes a problem when content updates to a new version of the origin server. CloudFront doesn’t retrieve the latest version of objects instantly from the origin server, it generally takes 24 – 48 hrs to recache the same object Read more…
When we write data in local storage it is not kept between dataTable pages. It will overwrite the old data with a new one on each page, means your previous data will be lost on a new dataTable page.
The reason is, on each page new values will be Read more…
Jquery data table callbacks are used when you want to perform some action on a certain event in the data table. For eg. when you want to modify a particular row or cell every time the table is redrawn.
List of Datatable Callbacks
element is created then this Read more…
Steps to make VisualForce Page externally accessible by non-salesforce Users/External Users:
1. Create a VisualForce page that you want to make externally accessible by non-salesforce Users/External Users.
Here, I’ve created a VisualForce Page named as ‘Multi-Select List’. I’ve also created an Read more…
How to add a custom widget in wordpress wp-admin dashboard? In following screenshot those boxes in red need to show custom widgets. How to accomplish it:
For adding the custom widget in wordpress admin you have to add this code in your plugin’s main file:
add_action(‘wp_dashboard_setup’, custom_wordpress_widget Read more…
Cross-domain request: Cross-domain request is requesting the content from another host. When we request to a third party site to get content that is called cross-domain request. By default XMLHttpRequest (XHR) request allows transferring data only if both parties have the same Origin value (protocol Read more…
MySql Communication link failure while connecting MySql server remotely
I’m getting the following error when I tried to connect MySql server remotely:
Cannot connect to database server
Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not Read more…
Zoho reports have the feature to import data into a table from cloud storage like Google Drive. We can also schedule the import at a specific interval.
Here in the example below, we are importing the data from Google Drive. To achieve this, we need to follow these simple steps Read more…
I am working on a client project which is using Codeigniter running on version 2.0.3 and PHP 5.3. I got a requirement from client to upgrade the PHP version from 5.3 to 5.6 or higher. While I tried to upgrade the PHP version I have Read more…
Laravel provides us a facility to send email with custom html template. In order to achieve it, kindly follow the steps below:
1. Open your mail.php file from config folder and add these details:
2. After that open your gmail account and go to My Account -> Read more…
Workflows enable us to set up rules that are evaluated and the corresponding action is executed based on the type of change in record. Few common cases in which workflows are used are:
1. Create a new task on an event
2. Update a field
3. For email Read more…
In GrapesJS, there is an ‘image’ block which we can drag and drop on the canvas but it only allows us to specify URL of the image to add to Asset Manager. Then we can embed that image in the document from Asset Manager by double-clicking. What if we Read more…
Problem:Let us assume you have many records in Jquery data table with multiple pages. You have rows with checkboxes. Now, If you want to select checkboxes from different pages of the data table and submit the page it will only provide us selected checkboxes of the currently displayed Read more…
How to skip any page in moodle without altering core code of moodle?
In Moodle we were having a requirement where we want to skip some default moodle pages.
It is very easy if we make changes in core code. But as it is not advised to make Read more…
Salesforce Sandbox is intended for coding and testing by a single developer. This is an environment in which currently ongoing changes can be done until they’re ready to be deployed in live.
There are several different types of sandboxes available:
1. Developer Sandbox:
Developer sandbox Read more…
How to alter permissions of all files or files with a specific extension via s3 command line client tool (Linux)?
S3 command line tool (S3 cmd) allows us to alter permissions of files and files with specific extensions inside S3 bucket recursively. Below are the steps Read more…
Problem: When we add draggable elements dynamically or even statically elements created subsequently will have higher z-index than the elements created before these elements which cause the problem of overlapping on dragging the image. When we drag element with lower z-index it will be behind the Read more…
In Salesforce, how to open standard ‘send email page’ by clicking a custom button located on Detail Page of a custom/standard Object?
Steps to open an Email Page from Custom Button:
1. Add a custom button first. Go to Custom Object settings, Then Click New button and link.
2 Read more…
Read Word document using Apache POI (Java) :
To read any document (.doc or .docx) or excel document in java, there are several libraries but Apache POI is pretty good. Using this library we can read word documents line by line.
Required Jar files:
Poi Read more…
We can add animated hover effect using css and html also. See example below:
Create simple html code like this:
<div class=”co-sm-12 blog-categories”>
<li><a href=”#”> Read more…