How to use mpdf plugin in cakePHP to convert HTML documents to pdf?
mPDF is a PHP library which is used to generate PDF files from HTML Documents. It converts utf-8 encoded documents and also supports almost all languages including Arabic and Hebrew. It includes Read more…
We can simply use apex:inputfield and bind the field with date type field and it will automatically use the Salesforce Calander:
</apex:page> Read more…
How to create and customize Bootstrap tooltips (with examples)
A tooltip is a small pop up that appears when user places mouse pointer over an element such as link, button, icon or any other element to provide information about the element being hovered.
How to Read more…
Salesforce custom tabs, which are a part of the Managed Package
Problem : I had added 3 custom tabs to a managed package and deployed the package in production org. I am able to see them in the developer org but unfortunately they are not visible in Read more…
A callback is a function that can be called on the completion of a given task to prevent blocking. As a result of it other code will run without waiting for a task to complete. This feature makes node.js highly scalable as it Read more…
How to use a Formula Field as a Custom LookUp field in a Salesforce object
In Salesforce we have 40 lookup field limit per object. Sometimes we need a field which behaves like a Lookup field. We can create a custom Lookup field with the help Read more…
Understanding the purpose and usage of Inflector in Cakephp
The Inflector class in cakephp is used to modify single/multi word strings into different formats using its build-in methods. We don’t need to use core php methods such as str_replace if you want to Read more…
Purpose of Big Objects and how to create Big Objects in Salesforce
What is Big Object in Salesforce?
As business grows data of customers/clients/users increases enormously which is hard to handle and query. In this case we need something big Read more…
How to Use AWS Lambda function in Java to communicate with AWS S3?
Reading, writing and uploading a text file to S3 using AWS Lambda function in Java
Following are the steps to write a sample Lambda function in Java to work with the files that Read more…
There is a lot of discussion on internet about whether to have DAOs or not with JPA and service layer or with session beans (which is the service layer).
My personal opinion is more favored towards DAO layer and some reasons for this are following:
1. In most of the Read more…
Change landing page of community instead of showing default home page
We can change default landing page in CommunitiesLandingController. CommunitiesLandingPage is the Active Site Home Page for your community, meaning that it is shown when someone enters a direct URL to your community.
Steps to update Read more…
Purpose of Varnish for WordPress, Drupal etc
Varnish is a well known open source web cache application for reverse http which helps to accelerate the delivery time for clients. It itself works at 80 so that apache works behind it on a different port.
Below Read more…
How to create PDF In Salesforce using Visualforce?
We can create Pdf using Visualforce page, here is sample code to create Pdf. The renderAs Method is used to download/view the Page as Pdf, Excel, Doc etc.
<apex:page sidebar="false" showHeader=" Read more…
Eclipse Tricks and shortcuts for developers
1. All shortcut keys
To get the list of all shortcuts for Eclipse Press Ctrl + Shift + L. It will open a list of all short key
2. Check where a class or method Read more…
What is Laravel Database Migration?
Laravel Migration provides a mechanism to propagate database changes from one machine to another (like development to production). It is a kind of version control of the database.
Create an application after installing laravel by using composer (like in the example Read more…
Bootstrap Modals and Examples
Bootstrap Modal is referred to as the pop up window that appears when a certain area on a web-page is clicked.
Preparing a dual boot system is quite easy when we install ubuntu after windows OS, but it became challenging when installing windows after Ubuntu OS.
For this below are some steps you need to follow:
1. Boot your machine with ubuntu live CD or USB.
2. Open gparted application from Read more…
Send additional Post parameters without ajax.data in Jquery Datatable in server side processing
As we know, when we perform any actions on datatable (like sort the datatable, search data from the datatable) then server receives the ajax request for each action. The table is redrawn to display Read more…
The following process shows the step-by-step procedure to convert an XML file to CSV.
Sample XML file:- PaymentMode.xml
<?xml version=”1.0″ encoding=”ISO-8859-15″?>
<mode>Cash Read more…
Account Linking In Alexa Custom Skill (in Laravel)
Account linking in alexa custom skill is a process when you link your web service user account with alexa user account. In this process, web service system generates an access token which is used to identify the user Read more…