Portlet is application of the liferay portal, In which we write the business logic of the application.
Follow below steps to create and deploy the liferay portal :
Step 1: Create liferay portlet in eclipse.
Step 2: Right click on portlet...
ncr means : combination in terms of mathematics.We have to find out the perfect combination of given values.
In the mathematics nCr has defined as nCr = n! /((n-r)! * r!)
#include
int main(){
int n,r,ncr;
printf("Ente...
What Is Anomaly ?
In the software testing field, anomaly is a kind of output or result which is distinct from the prospective output. By using a report or document we can make the result of this performance. Sometime an anomaly can also apply...
Welcome to FindNerd. Today we are going to discuss the function array_pad which is used to build another array by specifing the size of the array and value to be added.
You can take an example for the same. Please have a look.
<?php
$base...
1. CREATE DATABASE
Create database is a type of command used to create new SQL database.
Here is the syntax of CREATE DATABASE statement:-
CREATE DATABASE DatabaseName;
2.DROP DATABASE
Drop database is a type of command used to...
Hi,
While working on Google spreadsheet, I need to delete the blank rows from my sheet, as shown in screenshot below.
In the above screenshot in column B, I have Names and after each Name there is an empty row, I want no empty r...
PHP File handling concept allow us to do operation with any file in php.
For reading a file we have to open it using fopen() function.Now for reading this file we have a function named as fread().
fread function accept two arguments....
generic root means:
in this we do addition of a given number until reached a single digit after addition . For example:
Generic root of 784: 7 + 8 + 4 = 19 since 19 is a two digit numbers so 1 + 9 = 10.then again add 1 +0=1
So, ge...
Linear search is simple search algorithm in which a sequential searching is done over all the items in a list. Every items are checked and if any match is found then that item is returned otherwise search will be continuued till the end of the...
How to customize a table to your requirement.
We can also apply specific characterstics for a table.To define special style for a table we can add id attribute to the table.
<table id="t01">
<tr>
<th>Firstname</...
How to add a caption to a table.
We can also give heading to a table making it more attractive.This can be done by adding caption attribute to the table.
<table style="width:100%">
<caption>Monthly savings</caption>
...
How to create cell span of more than one column in a table.
To create a cell span of more than one row in a column we add the attribute rowspan to that column and designate its value.The value of rowspan determine the number of rows a cell spa...
How to create cell span of more than one column in a table.
To create a cell span of more than one column in a row we add the attribute colspan to that column and designate its value.The value of colspan determine the number of columns a cell ...
How to create heading in a table.
It is very easy to create heading in a table.We can do it by adding <th> tag for the content of row to be shown as heading.
<table style="width:100%">
<tr>
<th>Firstname<...
What is Data Integrity Testing ?
Data integrity acknowledges to the characteristics of information or record in the database and also directly to the users, by which users inspect quality of the data,integrity and stability. Data integrity tes...
How to Solve Magento installation error ?
Magento install error - Exception printing is disabled
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 213...
There are several tools available in the market which can aid in testing of a mobile application:-
1. QTP a.k.a. Quick Test Professional.
2. Infostrech automation framework integrated with TestNG , Selenium.
3. Calabash - Functional testing to...
Following are different Challenges in Mobile testing:-
1.There are many different Mobile platforms - IOS, Android, Windows, BB
2.Further different versions of these operating systems
3.Many different screen resolutions
4.Different CPU config...
Hello reader's today we discuss about "How to write a simple Plugin in wordpress".
If you want a to write own Plugin in WordPress there are some steps you must follow and these steps are mention below:
Plugin name should be unique(the nam...
If you are looking to change the image or color of the widget when it is clicked or focused, Here is the code snippet that explains it:-
Step 1:- set the widget in an XML file for which you want to applying selector:-
<ImageView
...
The <progress> Element is use to show the completeness of the task. We can use script to manipulate the value of progress bar.
This tag is new in HTML5 and progress element have start tag (<progress>) and end tag (</progress>...
An ActionResult is a return type of a controller method in MVC. We can return various types of results as ActionResult.
Here, we will discuss about some of the ActionResults available as part of ASP.NET MVC.
1) ViewResult
It renders a sp...
Hello Guys
I here to set title of the view page in liferay. We can also set the title of the portlets.
We have many ways to set page title of the liferay page because liferay provide dynamic functionality.
You can add page title by using...
The process involved in penetration testing are following:-
Discovering a combination of legal/official functioning that will let the tester carry out an unofficial function.
SQL commands
Unchanged salts in source-visible projects
Human c...
SetTimeout function is used when you want to execute the code after specific number of milliseconds,
Syntax: -
setTimeout(function() {
$(".thememessage").html('Code Executed after three second');
...
To set process in subscription module, first you need to install subscription module and set interval number and interval type fields in subscription module is used to set the process. You can use this function as given below
def process(self...
Hello Readers,
.attr() and .prop() in jquery:
Both .attr() and .prop() are jquery methods.
jquery.attr() is used to get the value of an attribute for the set of matched elements while jquery .prop() is used to get the value of a property...
The AllowAnonymous attribute was introduced in ASP.NET MVC 4.This attribute is used for specifying those controller actions that can be accessed by anonymous users. For using this attribute we
use a global authentication filter for the appl...
Sometime we need to create zip of the folder which contains several subfolders, but all folders are not necessary to include in zip. For such cases we will run following command -
zip -r archiveName.zip folderName -x folderName/subfolder/**\*...
Asp.net framework is a part of .net platform for building web applications. Now, with arrival of MVC framework developers have the option of using Asp.Net Web Form or Asp.Net MVC. In this article, we will see the main difference between Asp.Net W...
ASP.NET MVC provides a simple way to inject the pre-processing and post-processing logic for an action. This is achieved by adorning the controllers/
actions with ASP.NET MVC attributes.
For example in the below piece of code we have adorned ...
In one of my current project, I had to develop and integrate the Android Push notification functionality in my server side C# code.For this purpose, i used the Google Cloud Messaging service.
Here is code for the same.
public void Se...
Prompt dialog Box is used to have an input from the users or to get confirmation on any input.
This dialog box is displayed using a method called prompt() which takes two parameters:-
(i) A label which you want to display in the text box. ...
Images shapes.
In bootstrap,we can modify shape of image just by adding pre-defined classes as img-rounded,img-circle,img-thumbnail.It saves a lot of time of developer as prevents them from long and confusing coding for creating different shap...
To create Unit Of Measure(UOM) in openerp first install sale module and go to sale module menus in openerp and following these step given below
Step-1 go to Sales Configuration menu and click it.
Step-2 then go to Configuration Settings->...
Static Control.
When we need to insert an plane text in front of form label we can do this by adding a class .form-control static class.Thus bootstrap provides an predefined class for inserting an plane text thus making it more effecient for ...
Checkboxes and radios.
In bootstrap we can add features of multiple selection from group of choices with the help of checkboxes while for selecting one option out of many we use radios.It also provides an option of disabled checkboxes and radi...
Hi all,
Below is an example, how to make star rating using pure css.
CSS -
.rate {
float: left;
}
.rate:not(:checked) > input {
position:absolute;
top:-9999px;
}
.rate:not(:checked) > label {
float:right;
...
Horizontal form.
Bootstrap provide us the feature to align labels and groups of form controls,we can do so by adding .form-horizonal class to the form.Required customization can be done by little effort making it more user friendly and time sa...
What is namespaces
PHP introduce NAMESPACES in 5.3 version. Namespaces are virtual container/directory to organize code structure. In php we can not share same name for two classes. For example if you are using user management plugin for your...
Hello Readers,
If we create clone() of any object using jquery, then jquery provides the clone() method which performs the copy of the matched element (means it copies all the matched elements as well as of their descendant elements and nodes ...
Hello All,
In this blog we will discuss about the different states of the Activity of your application running on any device or the emulator.So the first one of the highest priority one is going to be the Active state or the running state whic...
Contextual classes
In bootstrap we can create color table rows and cells with the help of contextual classes such as active,success,info,warning,danger.
<!-- On rows -->
<tr class="active">...</tr>
<tr class="success...
Hello Readers,
.bind() vs .live() vs .delegate() vs .on() all these 4 are jquery methods and all are used for attaching events to selectors (elements).
.bind(): bind() method is the jquery method and it is one of the easiest and quick met...
When we add protlet on the page it by default set visible.
Now, hide the portlet or set visible false using javascript.
For this you can combine your javascript approach with the parameter approach as follows:
<%
String paramFromReque...
In order to use the auth component. You have to add the component to the AppController. (/app/Controller/AppController.php)
var $components = array('Auth');
Define $components array in your controller.
public $components = array(
'...
While sending a photograph/audio/video/contact through WhatsApp in Android, we have to use a attach button at the top right corner, clicking on that button makes a circular reveal effect. To show or hide a group of UI elements we called it a Reve...
In this tutorial we will see the visibility of the properties/methods of Objects of the same class, wherein same type of objects can access each other's protected/private members and also both the instances are not same.
Let us create a file tes...