Validation states
We can denote the state of a form through visual,color-based indications.This can be done through using classes as .control-label, .form-control, and .help-block.These are the validation styles for warning, error and success ...
While making changes in jsp pages in eclipse IDE, i was continously getiing error:
java.io.FileNotFoundException:/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/work/Catalina/localhost/_/SESSIONS.ser
SEVERE: Exception unloading sessions ...
Previous Git Blogs
Intialize git repostiory
First Commit
Two tree architecture and Three tree architecture
Best basic practices for writing commit messages
Viewing the commit logs
To keep things simple I am using only one file...
A view that moves from one activity to another in a smooth motion is possible with the help of Shared Element Transition. Its a type of animation when user clicks on certain view in one activity the view smoothly expands to the next activity. Whe...
Laravel 5 is the latest version of Laravel. If we want to install Laravel 5 in our system then we have to write simple command to run the project.
composer create-project laravel/laravel test-laravel-5-project --prefer-dist
Here test-lar...
To achieve the oldest cache time first you have to install point of sale module and inherit the pos_config class in your own module and fetch cache ids in pos_config class and then use this function in your own module.
@api.depends('cach...
The global object is a JavaScript's regular object that serves as a very important purpose: the properties of this object are the globally defined symbols that are available to a JavaScript program.
When the JavaScript execution starts, it creat...
Two-tree architecture
Is used by lot of other version control systems . In this we have a
repository and a working copy, our working copy begins with the top of our project directory and
below of that might be one or thousands of fil...
TextSwitcher is useful to animate a label on screen. TextSwitcher animates the current text out and animates the new text. In below example Frist I have created a main layout, In main layout I have added TextSwitcher attributes. See the below exa...
When you are working as a social media marketer for Google Plus and have just created a brand page on Google plus account for promoting your product or service then you may have encounte...
Hello Guys
Liferay is an EMS portal to develop java based web appliction and having portlets to write business logics. We can set cookies in liferay portlet without heavily modifying the Liferay portal itself, The best way to set the portlet...
Hello Readers,
Using below jQuery methods, you can make ajax calls.
load(): It's a jquery method and simple method in jquery and the most powerful AJAX method.Load method load the data from the server and returned the data and this return...
If you want to display twitter user feeds then use the below code of flow.
First of all for user timeline json you have to visit below twitter link.
http://dev.twitter.com/doc/get/statuses/user_timeline
For detail parameter please visit....
If you are looking to use AJAX in WP. Please follow the below example.
var stateName = $('#state').val();
$.ajax({
type: "POST",
url: "<!--?php echo admin_url( 'admin-ajax.php' ); ?-->",
data: { 'action':'custom_d...
Activities in risk management are as follows:-
1.) Risk identification,
2.) Risk prioritization and
3.) Risk treatment
1.) Risk identification:- Risk identification is majorly dependent on the project scope.
It is often carried forward...
HTML5 Local Storage(Web Storage) mechanisms provides you the facility to store data much more easy way than cookies. Local storage save the data more secure then cookies, where cookie only can store data up to 5mb, local storage capacity is far l...
If we do not have access to shell and we want to extract a zip file then just put the below php piece of code and run.
$zipObj = new ZipArchive;
$file = $zipObj->open(zip_file_name.zip);
if ($file == TRUE) {
$zipObj->extractTo('ex...
A module is light weight extension which pulls information from database or from joomla components.It can be placed in any predefined module position within joomla template.
For Creating any custom module we need to create four basic files w...
Previous Blogs
Intialize git repostiory
First Commit
Now viewing our past commit logs we do with git log, and this will show us the log of commits that have taken place till now.
naveen@naveen:/var/www/html/RND/symfony_sites/s...
Risk management is the recognition, analysis, and prioritization/arrangement of risks (defined in ISO 31000 as the effect of uncertainty on objectives) . It is trailed by coordinated/synchronize and low-budget application of resources to reduce, ...
Liferay have several ways to modify the functionality of a native Liferay portlet and you can extend the functionality.
Liferay provide most hooked functionality is described by using the liferay-hook.xml file located in /docroot/WEB-INF directo...
view stands for component view in joomla any component have multiple views for e.g default component. like- com_users have multiple views(register,profile) inside user component. so we can call any view using below url.
index.php?option=co...
Sometime you need to upload the image without refreshing the page , in that case you can upload the image with the help of ajx using FormData Objects .
To achieve this lets create a form in HTML to upload the file.
<div class="control...
For write error in a file we use error log. In cakephp we can create error by using keyword CakeLog. For example
try {
//code here
} catch(Exception $e) {
CakeLog::write('error1', $e->getMessage());
...
We can easily send email in joomla using $mailer = JFactory::getMailer(); which invoke jMail class. It returns a reference to the JMail object.Below is the code which define how to send an email in joomla.
-Invoke JMail Class
$mailer = JFa...
in this program of C language we are not using the any king of loop,we are printing the numbers without loop.
#include
int main(){
int num = 1;
print(num); //it is a function which is calling the value of pri...
When we deploy project in tomcat, by default its run as
http://<ip>:8080/warname/index.jsp
But when we use domain name and wants that on running tomcat automatically the projects main page is opened, we simply need to add following...
Welcome to FindNerd,
Today we are going to discuss on Callback Function in jQuery.
Firstly let know what is the use of Callback Function ?
This function is executed after the current effect is finished.
In simple way we can say that cal...
Liferay provide default workflow for inbuild portlets but we can use our custom portlets also.
So, I here for you to implement workflow in our custom portlets and make assist of the activity.
Add entity in portlet service.xml regarding your w...
here we are converting string values to the integer without using library functions.
#include
int stringToInt(char[] );
int main(){
char str[10];
int intValue;
printf("Enter any integer as a string:...
If you want to create Zoom-In and Zoom-out of an image using Touch events function check my below example. In below example First I have created a main layout named xml.layout then in xml.layout I have added 2 attributes, first is FrameLayout att...
Ajax Calls in ASP.NET
For removing postback in web page you use
1 Update Panels
Update Panels are used when there is partial postback of page can happen.
2 Ajax Calls
If you want to minimize postbacks to the extent Ajax c...
What Is Business Requirement ?
In the software development lifecycle, business requirements is a stage in which simplifies the requirements or demands of the ultimate consumer. This is very helpful for the designer to design the software or ...
JavaScript String lastIndexOf() method : The lastIndexOf() method returns the index of specified value where it last occurred. If no value is matched then this method returns the -1. As it is string the index starts from 0.
Syntax of lastInde...
Hi Friends,
I know there are several applications which are using Slide Menu option. You can find several libraries or classes in Objc to build an app like that.
Here is the most easy and customizable class to get it. Its name is SKSlideVie...
JavaScript String indexOf() method : The indexOf() method is used to return the index value of specified string. It will give the index of string comes first from the start. We can also start searching by skipping the number of characters. If val...
Hello Guys
We can add nested portlets through code in liferay. Liferay provide this funcationlity, for complete example I will assume that you want to add nested portlet to current page using another portlets action handler.
Add these meth...
This method is really useful when any user want to add module inside component.There must be situation where user need to display specific module for component below is the code which will works:
$position = 'typemoduleposition';
$modu...
Welcome to findnerd, today we are going to discuss on stop() method in jQuery.
Firstly let know what is the use of stop() method ?
So basicaly stop() method is used for stoping animations or effects before it is finished.
syntex of stop(...
Welcome to findnerd, today we are going to discuss fetch data from database in php .
In this blog you can fetch data from database .
Firstly establish a database connection
Use the mysqli( ) function to established connection to the MySQ...
Below I have written the code for how to send data using Intent in Android from one Activity to another.
Intent i = new Intent(getActivity(), UploadWeldService.class);
i.putExtra("mCapturedImagePath", mCapturedImagePath);
...
Ext.Define function is a part of EXTJs. ExtJS is a advance javascript framework, It used to create java class and their method by using javascript.
I write the Ext.define method below :
Ext.define ( String className, Object data, Func...
1. Web Server
A web server is basically used to give the response to the request specified by the browser (user). It basically uses HTTP protocol for the transmission of data. eg. A user can request for some page by entering the web addres...
Validation basically meant for test or check the input values which are submitted by the any user while processing any form or process.
PHP allow us two kind of validation there.
Client-Side Validation These Validation we performed on ...
In .NET Framework we have two types of controls:
1 Client Side
2 Server Side
Client side controls are HTML controls usually used for client end.
Ex : <input type="button" />
Server Side controls ...
Welcome to findnerd, today we are going to discuss on slideToggle() method in jQuery.
Firstly let know what use of slideToggle() method ?
The jQuery slideToggle() method toggles between the slideDown() and slideUp() methods.
syntex of sl...
File handling in php allow us to make operation to write in a file .So we can write a new file or we can append text to an already existing file.For this we have fwrite() function in PHP.
Syntax is : -
fwrite(file,string,length);
pa...
Welcome to findnerd, today we are going to discuss on prepend() method in jQuery.
Firstly let know what use of prepend() method ?
prepend() method is used for inserting at the beginning of the selected elements in jQuery
you can see b...
Welcome to FindNerd. Today we are going to discuss the function natsort. There are many sorting function available for different types of sorting like usort,asort etc.
natsort uses natural order algorithm. It is nothing but to sequence element a...