When we need to sort an HTML table on click of any of its column headers then we can use sortable.js:
Download library file sorttable.js.
Add this js file to the current page.
Add sortable class to the table for which sorting is required.
If you Read more…
In wordpress, a child theme is a theme that inherits the functionality and styling of its parent theme.
Child themes are the recommended way of modifying an existing theme (like inheritance in object oriented programming). If we have any theme and we want to modify its header or any other Read more…
Fatal Error on website whenever we were pushing any code change to our website hosted on heroku.
We were suddenly facing a fatal error (error 500) on our website. After making debugger on, it displayed the following error :
After exploring about it, we found that it was due to the Read more…
How to send email using google api (gmail) in cakephp 2.x?
Answer: When you send email using google api, you’ll need:
1. Cakephp 2.x
2. A Google account with Gmail enabled.
3. PHPMailer Library.
Download PHPMailer library from below link:
After downloading Read more…
In one of our projects we have multiple groups of checkboxes and corresponding divs with id as checkbox label. Now we want our checkboxes to perform AND and OR logic .
<div id=”_Java_less than 1500_Basic_Dennis Ritchie” class=”6″ style=”display:none;”> Read more…
MySQL access Denied for user while Username and password is correct.
I got this error when I named one of my table columns as “order” which is also a mysql keyword. When tried to rename it, I got the following error on execution.
ERROR 1045 (28000): Access denied Read more…
Steps to create the communities in Salesforce:
1. Click on Setup:
2. Under customize click on communities. Click on all communities:
3. Click on New community button:
4. Choose your template according to your requirements. There are 5 templates provided by salesforce. In this example, I have chosen Read more…
1. Create apex class that you want to call (it should be declared global):
Global class Test
Webservice static void testMethod()
Note: Webservice method must be static:
Global class Test
Webservice static void testMethod(String IDD)
2. Goto–>Setup–> Read more…
While designing RESTful web services in a Spring-based web application, we may have a requirement that some web services should be allowed to run only from specific IP addresses. Spring framework provides a simple procedure to verify if the incoming IP address in available in the whiteList Address list Read more…
You may face this exception sometimes in Salesforce:
System.LimitException: Too many SOQL queries: 101
There can be multiple reasons for this exception:
Check if SOQL queries are not written in loops
Check if DML are not called inside a loop.
Check if large number of workflows for field update Read more…
Performance testing is used to determine that the web application under test will satisfy high load. Apache Jmeter can be used to analyze overall server machine performance under heavy load.
Apache Jmeter Performance test includes:
* Load Test
* Stress Test
Creating a Performance Test Plan in Jmeter
We are going to Read more…
What is Ajax? How to send the request using different Jquery methods?
Problem: I was facing an issue from the last couple of weeks that the images, content, scrolling and some functions were not working in my browser while testing applications but if I try it with going incognito everything looks great. This issue was mainly with Google Chrome. I tried to Read more…
Cakephp and Laravel are MVC frameworks for php. Both frameworks have totally different application structure. In the following document I have described all the important folders and their respective locations in Cakephp and Laravel (project_name is the root folder of your project)
Some other Important Points Read more…
There are multiple ways to enable/disable maintenance mode in Moodle.
Enable Maintenance Mode:
* Go to the Site Administration.
* Click on Server.
* Click on Maintenance Mode option:
* On the next screen: Maintenance mode ->Select “Enable” from drop-down. And write the message which Read more…
‘System.Data.entity.Internal.appConfig’ exception generally arises from your configuration file like web.config file due to some conflicting statements. I faced this error during login process:
During debugging I found that this error was thrown to me at the step of entity framework connection context initialization. I tried Read more…
Columns that are used for filtering or joining should have indexes on them. An index is a specific data structure that organizes data in such a way that it is much faster for database management system to look up the records at query time. Indexes are great for accessing your Read more…
In wordpress, we can also change the appearance of wp-login page. There are so many plugins available for this purpose like Alter – White Label WordPress plugin. We can change the appearance of wp-login page through this plugin like I have changed the background image and color in this Read more…
Purpose is to automate most of recurring processes like creating user, installing application (apache, apache-tomcat, mysql-server …etc), and modifying security file to hardening Linux machines in AWS environment.
1. Click AWS OpsWorks option from AWS console panel:
2. Now click on Add Stack to create a new Stack Read more…
1. Open config/app.php file inside your project and then modify the default email configuration and setup your SMTP account there:
‘EmailTransport’ => [
‘default’ => [
‘className’ => ‘SMTP’,
// The following keys are used in SMTP transports
‘host’ => ‘ssl://smtp.gmail.com’,
‘port’ => 465,
‘timeout’ => Read more…