Java | Static and Non-Static Inner classes

Author - Komal
|
0 Comments
|

Static and Non-Static Inner classes:

Static Nested Classes:

Static Nested Classes are the static classes in Java which are created inside another outer class. As these are declared inside another class with keyword ‘static’, therefore they are treated like the static member of its outer Read more…

Slider Revolution Plugin : Stop slider on hover

Author - Webner
|
0 Comments
|

Sometimes Slider Revolution slider does not stop moving the slides even if the user is typing the data in the input box on the slides .

Solution : We can stop the Slider on hover or after some time in slider revolution plugin by following these steps:

1. Click on the Slider Read more…

Taking Database Backup And Moving that backup from one server to another using PHP

Author - Deepika
|
0 Comments
|

While working on two servers, we can take the backup of database on one server using mysqldump command in php.

Example :
exec(‘mysqldump –host ‘.$dbhost.’ –user ‘.$dbuser.’ –password=’.$dbpass.” “. $dbname.’ > ‘.$dbname.’.sql’);

After creating dump of database, user can move the dump database file from one server to another Read more…

Web crawlers, Robots.txt and Googlebot

Author - Navneet Kashyap
|
0 Comments
|

What are web crawlers?

Web crawlers are programs or scripts which search engines use to gather certain types of data from the websites and check links and update the indexes, so that search engines can show up-to-date results. Most of the search engines like Google and Yahoo, use Read more…

Scaffolding in CakePHP

Author - Ishpreet Kaur

Scaffolding in CakePHP

Application scaffolding in CakePHP is a technique that allows the developer to define and create a basic application that can create, retrieve, update and delete objects. Basically CRUD (create, Read, Update, Delete) data operations are common in most of the applications.

Scaffolding basically provides temporary structure or Read more…

Jquery | Check if image exists for the url created at runtime

Author - Harleen Kaur
|
0 Comments
|

Suppose a website page displays the list of subjects along with information and corresponding image. Html “div” with classname “.subjects” are generated dynamically in accordance with database records of subjects with custom attribute assigned as “data-subjectid” to each div which represents the unique id of each subject.

Suppose we Read more…

Add virtual field in cakephp 2.* in find methods

Author - Kailash
|
0 Comments
|

How to specify an extra field (not existing in the table) while fetching data from database using find method? Solution is explained below.

Assign value to virtual field before find function call:

$this->virtualFields[‘virtual_field_name’] = ‘any value’;

Use virtual field in find function:

$result = $this – > find(‘all’,
array(
‘fields’ => array Read more…

Selenium IDE: Locate and verify GUI and CSS Elements

Author - Webner
|
0 Comments
|

While using Selenium Ide, It is very hard to verify the GUI and CSS elements using record and run method. In record and run method you will not be able to use all of the commands due to lack of commands in the web page context menu (Use Right click Read more…

RESTFul architecture best practices

Author - Rita
|
0 Comments
|

1. Restful web service has its specific set of standard methods like: GET, POST, DELETE, PUT, OPTIONS. We should use HTTP methods as per standard. For example: use “Delete” method to delete the resource not for any other task.
2. We should return valid HTTP response code for each and Read more…

Ubuntu | Unable to login, failed to start session

Author - Webner
|
0 Comments
|

Description:  I am trying to login in my Ubuntu machine. I entered my correct password and it didn’t login me. It showed me “failed to start session” message in red color. I am also not able to login with guest user.

Solution:  This problem occurs Read more…

Some important terms of US Insurance Industry

Author - Ashish
|
0 Comments
|

Insurance industry of United Stated is very much different from any other country and also it is the largest market in terms of premium amount according to federal Insurance Office (2014) Report. Insurance industry of US is regulated by each state individually means it is a state based insurance regulatory Read more…

Quickbook Webconnector queue concept with Job priorities

Author - Webner
|
0 Comments
|

Queue plays very important role in Quickbook integration via Web connector. Each new job is created in the queue with priority level according to which it is executed. For example when we add a new user or new product than these events are stored in a queue as a job Read more…

Allowing PHP cURL to access self-signed websites without verifying the SSL certificate

Author - Richa
|
0 Comments
|

By default, each cURL request can access only SSL certified websites. However, at times it is required to access those sites which are self-signed. To verify that your cURL request is able to access self-signed websites or not, use below command:
curl <URL of the domain to Read more…

Salesforce | How to access CLIENT_ID, CLIENT_SECRET in salesforce

Author - Webner
|
0 Comments
|

Problem: How to access CLIENT_ID, CLIENT_SECRET in salesforce.

We can access the ClientID and ClientSecret by creating Connected app in Salesforce.

Solution: Follow these Steps to create a new app in salesforce.

1. Click on setup then under Build click on Create under create click on the App.

2. The Read more…

WordPress | Developing Custom scheduler in WordPress

Author - Harleen Kaur
|
0 Comments
|

Suppose you want to design a custom scheduler in wordpress plugin instead of using wordpress scheduler which has fixed values of recurrence which are ‘hourly’, ‘twicedaily’,’daily’. And if you want to make the scheduler dynamic instead of making it static i.e. instead of setting the fixed scheduler value Read more…

Salesforce | How to add new line character to formula field

Author - Kiran Preet
|
0 Comments
|

Solution: You can add a newline character to formula field by using BR() function.

For Example:  Formula Field value:

“Manager Schedule: Name, DOB, CDL #, Yrs Management Experience, Hire Date” & BR() & “Vehicle Schedule: Year, Make, Model, VIN, and radius for each vehicle” & BR() &amp Read more…

Salesforce | Send daily emails using workflows till the status changes

Author - Shalini
|
0 Comments
|

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 changes.

Steps to do this task:

1. Create Read more…

Salesforce | Formatting date and numbers on VF page

Author - Webner
|
0 Comments
|

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 07:00:11 GMT 2016”. But Read more…

Javascript | Adding days to date string and displaying in specific format

Author - Ishpreet Kaur
|
0 Comments
|

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 date operations

var numberOfDaysToAdd = 2;
dateObj.setDate(dateObj.getDate()+ numberOfDaysToAdd Read more…

Java Struts | How to remove the action extension in Struts 2 framework

Author - Neha Mishra
|
0 Comments
|

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 suffix Read more…

‹ Prev page1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 Next page ›
Send your message