Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How To Create a Modal in Bootstrap

With the help of Bootstrap we can create a Modal plugin. In the example given below , I am using attributes data-toggle=model ( which is used to open the model window ) and data- target=#Model (which points to the id of the target model ). ...

How to get session attribute in velocity template in liferay

Hello Guys, Here, I am writing code for get session attribute in velocity. First of all set session attribute in view.jsp or class of the portlet then get session attribute in velocity template. Follow below steps to implement. step : 1 ...

How to use Attribute Routing in ASP.NET MVC

"Attribute Routing in ASP.NET MVC"     Routing is a major concern in a MVC application, I have already discussed about the Routing Basics and Customization of routing. Please find below the links for reference: Basic...

jQuery Ajax POST with PHP

In jquery we have function named ajax() which have two arguments such as url and settings. Settings are a set of key/value pairs that configure the ajax request. This argument is optional. We are going to take an small example to understand the...

How to create Product Categories in openerp-7

To create Product Categories in openerp-7 follow these below mentioned step:- Step1- Install product module Step2- Go to Warehouse-> Configuration -> Products->Product Categories and create new Category. See the below screen-sh...

How to create Events managment in OpenERP(Odoo)?

If you want to create Events management in OpenERP (Odoo) follow the below mentioned steps:- Step-1 Install marketing_campaign module Step-2 Go to marketing Menu ->Events ->Events As shown in below screen-shot Step-3 Fill in the...

How To Create a Scrollspy in Bootstrap

With the help of Bootstrap we can create a Scrollspy function.The Scrollspy plugin is used to automatically update links in a navigation list based on scroll position. According to the below example, i am using data-spy=scroll it is used to scol...

Fuzzing with ZAP

Fuzzing is the process through which we enter invalid or unexpected data to our target Application . We use Fuzzing in our application when we want to break our application or crash it using unexpected inputs . Fuzzing can be done manually o...

Image splitting in Android

Image split can be required by different android puzzle application where there is a need to divide the one complete picture into different pieces. Here is the function that takes three argument one is the imageview that holds your complet...

Some useful modules related to views in Drupal

I was searching for a module which can provide me a grid view page with lot of flexibility and found a very usefull module related to views which is Views Fluid Grid I also found a list of modules which related to views module which enhance vi...

Friend Function in C++

Friend Function:- Friend Function is Friendly to all the classes which can be declared as a friend of that class. "Friendship is given not taken" this statement means to say the friend is always declared by the class it self. when any class can u...

How to Create a Popover in Bootstrap.

With the help of Bootstrap we can create a popover function. In below example I am using title attribute which will specify popover header text and the data-content attribute will specify the text which will be displayed inside the popover's body...

Java Mail API : Sending Simple Mail

Java MAil API composed of classes and some Interfaces which is used to send(compose) , read(fetch) and delete e-mail messages Sending Simple Text Mail: To send a simple Text Mail you can follow the following steps: 1. Get a Session obje...

Implement Bubble Sort Using C

Bubble Sort:- Bubble Sort is the one of most popular Sorting Algorithm that is used to sort the array of n size. The Worst case and Average Case Complexity of Bubble Sort is O(n)^2. The Below Code will show you how to implement the bubble sort to...

JQuery find() vs children()

These methods are used to select the child node of the matched elements. find()- A find() function searches the whole DOM (document object model) below the current node,i.e., search through the matched elements child, grandchild, great-gran...

Limit the Character Count in Textarea in Jquery

Hello Readers, Here, I will tell you about the character limit on textarea using Jquery. For Example, If the character limit to write on textarea is 100 character ,then we write only 100 character on the textarea not more than 100. There...

How to customize routes in Asp.Net MVC

"Customizing Routes in ASP.NET MVC"     In my earlier blog on "Basics of Route Config in Asp.Net MVC", I have discussed how the Routing is performed in Asp.Net MVC. Please go to following link for reference: Basics of R...

Find all controls in WPF Window by type

Hi Friends! Often we need to loop through the controls (collection of TextBlocks in) to and find them by their types. We can find them in this way:- object control= LayoutRoot.FindName(txtname.Text); if (item is TextBox) { ...

How to speed up the mysql Query

Hello Readers, If you want to speed up the mysql query or optimize the query: Below are some points to follow while writing the mysql query: Always every table must have a Primary Key. Primary key is very essential for mysql operation...

How to make currency Filter in AngularJS .

With the help of AngularJS Filters method we create a currency filter function. In below example, We will first input two text box then we will declare first price of an article, after then will input quantity of article and finally get total pri...

How to Search product name with different patterns in OpenERP(Odoo)?

Step-1 Install multi_search module. Step-2 inherit = 'product.product' class in .py(Python file) in multi_search module. In below example, I have custmozied .py file. You can directly copy the below python code in multi_search module - cl...

HTML5 Datalist Element

Hi all, Datalist is a new element in HTML5 and very useful. Basically it works with input box and when we write text in it, it will show a related item in list like option box. Example :- <label>Select your preferred code editor:&...

How to install Cordova in Ubuntu

Hello friends, If you would like to install Cordova in Ubuntu please follow the below commands: First we install Node Package Manager sudo apt-get install npm Now we need to install Node.JS sudo apt-get install python-software-properties ...

What is CSS attribute selectors ?

HI all, CSS attribute selectors is a great way to manipulate your style may be you have used this before but it really awesome and I am sure using it you can make more easy your style. Lets understand this with below example - I have a s...

How to install node.js in Ubuntu

Please open the terminal and use below commands to install node.js sudo apt-get install python-software-properties sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs

Dependency injection using Factory in Angularjs

HI All, Today we are discussing about Dependency injection using factory in Angular js. What is Factory ? Factory is a function which is used to return value. Where we creates value whenever a service or controller requires. In which w...

EAGER LOADING IN RAILS

In each & every real life scenario our utmost focus is on saving the time. In terms of DB we can save this time by reducing the number of SQL queries fired. This is what Eager Loading is used for. Rails provide us 3 methods to perform Eager...

Important checkpoints before uploading the iOS App for Approval

Getting the approval from the Apple store for iOS App sometimes become a very difficult and long task. The reason for that is threefold: ...

How to make Appraisal Plan in OpenERP(Odoo)?

If you want to make an Appraisal Plan in OpenERP (Odoo) follow the below mentioned steps:- Step-1 Install Human Resources(HR) and Employee Appraisals Module. Step-2 Go to Human Resources menu->Configuration->Appraisal Plan->Create ...

Jquery stop() method

It stops the currently running animation for the specified element. Syntax: $(selector).stop() Example: <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> &...

Load Html file from assets folder to WebView in android

Load Html file from assets folder to WebView Here I write code to load html file from our local folder assets to our WebView. First we get String Url from file and then load it to webview. private WebView webTerms; webTerms = (WebView)fin...

How to get mouse current position

According to my below code, when we will move the mouse to anywhere like left or right up and down we get the current status of the swipe. Here i have used mousemove() method . $(function() { //Enable swiping... $("#test"...

JQuery aminate() Method

Jquery animate() method performs a custom animation of a set of CSS properties to change the state of an element from one to another. It is to note that only numeric values can be animated (e.g. height: "100px"). String values (e.g. "background-...

How to create ANE file for In app purchase for iOS

Hi Readers, This is the video blog where you can find how you can create ANE file for In-App purchase for iOS framework. I have used MAC machine to create it. Requirements: Download ANE-In-App-purchase from GitHub. Download Air SDK C...

Progress bar

A Progress bar indicates the current percentage for completeness of an operation or process. jQueryUI provides an easy-to-use progress bar widget that we can use to let users know the percent of completeness of an operation. jQueryUI provides...

How to get the Select Dropdown Option Value after Click on Button

Hello Readers, If I want to Select Drop down Option Value after Click on Button (not submit) then we use the below code: <select name="option"> <option value="http://findnerd.com">Findnerd</option> <option value="htt...

Difference between overloading and overriding in JAVA

Hi, Difference between overloading and overriding in java is a repeatedly asked and very important interview question. So, you can find the details over here. Method overloading in JAVA is used to increase readability of program while met...

How to Convert HTML file into PDF in PHP

Helo Readers, If you want to convert the HTML to PDF read the below code: When we do this first of all we require the fpdf library file which can be downloaded from the official site of FPDF. After download it, Just copy the folder into yo...

How to create new project and Attach Documents in project module in openerp

To create new project and attach documents in project module in openerp7 follow the step mentioned below- Step1 - install project module in openerp Step2 - Then Go to Project -> Projects ->Create Projects Step3- Then Go to Project -&...

How to Load a HTML Page Inside Another HTML Page in AngularJS

In this tutorial, we will learn to load a html page inside another html page, to do that we usually go for HTML iframe tag in which we can either set HTML file path or any URL from different domain in src attribute. like: <iframe src=&...

JQuery on() method

The on() method is used to attach one or more event handlers for the selected elements. It is designed to replace both the .bind() and .delegate() event handlers. Syntax: $(selector).on(event,childSelector,data,function,map) where ...

An element could not be located on the page using the given search parameters

I tried to run the below code public class TestSelendroidApp { public static AndroidDriver driver; public static void main(String[] args) throws MalformedURLException, InterruptedException { File app = new File("E:\software\sel...

How to get facebook profile picture by Facebook App

If you would like to get your profile picture in facebook app. Please user the below code, you can download facebook.js from facebook SDK. <script src="//code.jquery.com/jquery-latest.min.js"></script> <script src="//co...

Validations in Angular JS

Hello all, We usually validate our HTML form before submitting it as it's a good practice to do that and to validate the HTML form we can use JavaScript Validation in client side, or we can also use custom JQuery code where we can apply differ...

How to change Facebook profile picture

If you would like to change your facebook profile picture with php or jquery. You can use below code for the same. Please download facebook.js from Facebook SDK. <script src="//code.jquery.com/jquery-latest.min.js"></script> &l...

How to Create Salary Structure in openerp-7

To create salary structure in openerp-7, follow these below mentioned steps- Step1- Install Human Resources(HR) and hr_payroll Module. Step2- Map to Salary Rules in Human Resources(HR) Step3- Then Go to Human Resources -> Payr...

How to merge two images in PHP

If you want to overlay one image over another image. You can use the below example. function mergeImage(){ $src = imagecreatefromjpeg('usaflag.jpg'); $dst = imagecreatefromjpeg('vivek.jpg'); imagecopymerge($dst, $src...

Blink Animation in android

Blink Animation in android Here I write code for blinking any components like TextView, ImageView etc. Here I just use AlphaAnimation class of Animation . TextView textMessageCenter; textMessageCenter = (TextView)rootView.findViewById(R...

Audio Capture In android

Audio Capture In android To record audio there are so many ways. But Here I write audio recording method using MediaRecorder class. To use MediaRecorder class ,we must create an instance of MediaRecorder class. Syntax : MediaRecord...

Image Blurring Effect Android

Image Blurring Effect Android Here I share my image blurring code. We have to pass the bitmap of the ImageView that we have to blur out and radius should be in integer value 2,4,8.... It returns the Bitmap of blurred image. Now a days w...
1 238 292
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: