
Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
Comparator Interface in java
Hi,
Here I am writing a simple way to use Comparator interface.
We use Comparator interface to order the objects.
First of all we need to import java.util package.
It have two methods :
Compare(Object o1, Object o2)
equals(Ob...
Static in Java
One of the most important topic that we encounter in java.
We can use static with class name, methods name, variables name and block.
Static keyword mainly used for memory management.
Static variable
Static variable takes memory o...
Setup Aeroo reports on Odoo by Script
Hello Guys,
To install Aeroo Reports and all related dependencies please do the following at a terminal in Ubuntu 14.04:
0. cd/tmp
0. sudo wget https://raw.githubusercontent.com/OdooCommunityWidgets/install-scripts/8.0/aeroo_re...
Spring MVC @RequestParam Usses
For Get request we need to pass parameters as request param along with the url to get the data. In Spring MVC framework, we can customize the URL in order to get data. To read the parameters passed with the URl we use @RequestParam in Spring fram...
Spring MVC @RequestParam vs @PathVariable
@PathVariable:
Sometimes we need to pass parameters along with the url to get the data. In Spring MVC framework, we can customize the URL in order to get data. For this purpose @PathVariable annotation is used in Spring framework. @PathVariabl...
Installing PHP module on Apache2
One can install PHP with apache2 in two ways, either by compiling from source code or from repositories by using a package manager. Both ways are discussed below.
Installing from repositories : This is very simple and straight forward method ...
How to write velocity templete in liferay
Hello guys
I am writing a blog about Velocity, Which is an open source templating technology. Velocity is java technology based template engine.
Here, We will take reference of objects/variable which is defined in Java code with the Veloc...
Installing SSL certificate on apache2
SSL or Secure Socket Layer ascertains that all data passed between the web server and the web browser remain private and secure. It is the standard security technology for engendering an encrypted connection between a web server and a web browser...
Best SEO Strategy and Checklist for a Website
Every website aims at getting higher rank on search result page, but one needs to be well acquainted with SEO tricks and marketing strategies for the same. Missing out on anything or a even a small mistake can drag your website do...
Tutorial to build a website in Odoo
If you want to build a website in Odoo follow the below mentioned steps:-
Step-1 Go to Settings->Modules->install Website Builder Module.
Step-2 Go to website Menu -> Click on Content button.
Step-3 After that edit the Menu a...
How to check BOOL value of Parse Object in iOS
If you are a beginner in Parse SDK and integrating it for the first time then you may face this little hurdle. While fetching Boolean data from Parse DB we get BOOL value in NSNumber format and we can not check or compare it directly with iOS bo...
Odoo Consulting - Reducing Dependency of Vendors
Larger companies are often seen to opt for Open Source Enterprise Resource Planning commonly referred to as (ERP) because of its customization options and economic viability. To meet the core business needs, a new interface is needs to be created...
Custom message for Location permission alert in iOS
If you are using Location Manager to get user's current location then you have ask Location Permission first. iOS provides you access to user's location if user accepts it. Here is the code :-
Below code will return you location manager object...
How to Create Basic Form View In Odoo
You can create form view in odoo by using below code in .xml file
There are two ways to create a Form View in Odoo.
1. Existing Form
2. Simple Form View.
1- Existing form Here you have to inherit form view and change this form view in...
Animation to DialogFragment in android
Hi,
Here I am adding sliding animation to DialogFragment
First I am adding animation xml in res/anim folder.
Then creating custom style that add to the particular fragmentdialogs's onStart() method.
slidestart.xml
<set xmlns:a...
How to Add Action and Menus in Odoo
To add action and menu in Odoo
Action- There are different types of actions in Odoo:
1- Window: Opening of a new window
2- Report: The printing of a report
3- Custom Report: The personalized reports or RML Report: The XSL:RML reports
...
Composer install vs Composer update
Composer update is used when we want to update all our dependencies. By using Composer update command that will convert all our old version to latest version.
So never use composer update command on production for our existing project because th...
How to match a word in Java?
Sometimes we need to match some words in a particular String. We can do this easily by matches() method of String class.
Example:
package com.demo;
public class TestApps {
/*
*@param args
*/
public static void mai...
Twilio integration with laravel 4.x
We have to follow few steps to integrate twilio with laravel 4.x.
Step 1:
First we have to install package. For this we will add below code on composer.json.
"require": {
"dtisgodsson/twilio": "dev-master"
}
Step 2:
Then ...
How to replace whole word with Word Boundaries in Java?
Sometimes we need to replace whole word with the word boundaries in a string. For this we use "\b" regular expression token which is called a word boundary. It usually matches at the start or the end of a word.
Example: You just need to place ...
Computer Graphics: Different Spaces
To get a 3d model visible on a screen, all of its vertices needs to be transformed through 4-graphic spaces, these are as follows.
Objects space
Objects are created in its own co-ordinate system and position of object vertices are defined...
How to replace Case-Insensitive chars in a String in Java?
Sometimes we need to replace some characters with some other set of characters. To replace a Case-Insensitive chars from string you can use the below example:
package com.demo;
public class TestApps {
/*
*@param args
*/
...
Configuring Web-Client For Tryton-Server
As we know Tryton is a three-tier high-level general purpose computer application platform on top of which is built an Enterprise resource planning (ERP) business solution through a set of Tryton modules.
We will guide you how you can easi...
Play a video from a URL in iPhone SDK
To play a video from a url in iPhone sdk just write down following line of code:
Step 1: Create a MPMoviePlayerViewController object as *moviePlayerController.
Step 2: Create a Url and initialize your movieController with Url.
Step 3: and No...
Authentication token in liferay
Liferay design a mechanism to more secure the web URLs using the authentication token.
Authentication tokens type:
Their are two types of Authentication tokens in the liferay. one is p_auth "Portal Authentication token" and ...
Automatically move to next edittext in android
Hi,
In android, we have TextWatcher interface to keep track of input that we are typing.
Usually it is very useful when we need verification on the basic of text length and content also.
It has method onTextChanged(CharSequence s, int star...
How to create and modify the attributes of property in JavaScript
This tutorial will help a user to learn how to create a property with specified attribute values or modify the attributes of a property that already exists in JavaScript
1. Creating a property:
// using Object.defineProperty() for cre...
compact() and extract() functions in PHP
PHP provides two functions, extract( ) and compact( ), that convert between arrays and variables.
Both compact() and extract() are Array functions of PHP
compact():
The compact() function is used to create an array from variables and the...
Prevent Adding/Deleting/Modifying properties of an object in JavaScript
This tutorial will help us about the internal property [[Extensible]].This internal property [[Extensible]] of an object in javascript, is used to specify whether properties can be add to an object or not.Before using the internal property [[Exte...
Do we really need of tester for small projects ?
Often client demand to not hire tester for small projects generally because of limited time and project cost and say to development team to perform testing themselves to save time and budget. This decision may deliver project on time but could no...
Keyboard Shortcuts for MS Word and MS Excel
Below are some general keyboard shortcuts which you can use while working on a MS Word and MS Excel.
S.No
...
How to make HTTP Basic Authorization Header
For making API's call more secure we need to implement HTTP Basic Authorization Header.
In order to set the authorization, first we need to encode the secret key or API key like this:-
public static String getB64Auth(String key) {
St...
Use of JPA(Java Persistence API) to implement ORM
JPA:- Java Persistence API is a collection of classes and methods to persist or store data into the database Using the JAVA API.
The Below code will show you how you can work with JPA.
First we make the POJO.
Employee.java
package...
Round or Circular ImageView in iOS
You may have seen several mobile applications with round or circular image view. It is mostly used while displaying User's profile pic or in a tabular representation of images. You can do it very easily without using third party classes or Librar...
Odoo PayUmoney integration
Serpent Consulting Services Pvt Ltd. proudly presents the module which integrates PayUmoney with Odoo. PayUmoney is a popular Indian payment gateway. PayUMoney offers electronic payment service to your website through its various partnerships wit...
How to Optimize Image for Website
HiIn my previous blog: How to Do a Perfect On-Page SEO of Your Website: Part 1, I have explained How to do perfect On-page optimization. In continuation my previous blog, Now I am explaining image optimization in SEO, which is a very important fa...
Spelling Checker in Android
Android provides a special feature for checking spelling and it is easy to implement in your App.
Android provides SpellCheckerSessionListener listener that handles spelling checker.
For spelling checker, we have to implement SpellChe...
Custom Fonts in Android
Android gives us the facility to customize our strings font.
For this we need to keep .ttf files of the specific font in assets/fonts folder.
We can easily download ttf from internet that we want to apply.
Then we use Typeface class t...
Compression in Apache and improving page speed
Apache provides mod_deflate module to compress the response prior to sending it to client by attaching the DEFLATE output filter in filter chain.
Following is a simple sample configuration for compressing selected text-based content types :
...
How to resolve Severe Assertion Error in openerp
To resolve Severe Assertion Error in openerp follow these step given below
After getting sever assertion error then first :
Step1- In pgAdmin run the following query:
update ir_module_module set state = 'installed' where state = 'to install'...
Type of "properties of object" in JavaScript
In this tutorial we will learn about the properties of an object in JavaScript, classification of the properties, attributes of properties.There are 3 kinds of properties an object in JavaScript have:
1: Data Property: In this property of ...
How to debug javascript
JavaScript Debugging
Debugging is very complex for users to writing a JavaScript code without a debugger in web page.
Javascript code might contain syntax errors, or logical errors, which are difficult to find out.
Note : Javascript e...
Object in JavaScript
This tutorial will help a user to learn what is an object in JavaScript. How null is not an object though it show that null is an object.How function is an object.
An object in JavaScript is a set of key:value pairs. Every pair is called a pro...
Checkbox checked an unchecked in jquery and javascript
Hello guys,
If you want to check and unchecked the checkbox in javascript and jquery use the below code.
For example :
Checkbox: <input type="checkbox" id="checkboxid" class ='checkboxclass'>
Checked and unchecked to checkbo...
Check a string with special characters in ios
If you want to check any NSString containing special characters then check this out.
-(BOOL)specialCharacter:(NSString*)username{
NSCharacterSet *invalidCharSet = [[NSCharacterSet characterSetWithCharactersInString:@"ABCDEFGHIJKLMNOPQRSTU...
Email Validation in iOS
While creating any Login or Registration UI in iOS we ask user to enter their email id. To avoid wrong data entry we can validate entered data by using a simple validation method. Below method will return you a BOOL value. Here it is:-
-(BOOL...
How to use predicate in ios
In iOS we can use Predicates in order to get fast response. Mostly iOS developers use Predicates in search functionality to filter it as user types in search bar textfield.
Let suppose you have an array named as youDataArray which contains s...
How to take a screenshot of an iPhone screen in iOS
Some times we don't get a correct screenshot of an iOS device. Specially when we apply some transform or animation. If you are applying affine transform or 3dTransform to an object and hoping for a perfect screenshot with same transform value the...
How to save image in to gallery in iOS
If you want to save any UIImage to iPhone or iPad gallery, just use below code to achieve it. These lines of code will write image file to your gallery. You just have to pass UIImage as param to it.
UIImageWriteToSavedPhotosAlbum(yourUIImage,...
Reset any transform in iOS
In iOS when we apply transform methods to any UIView element like UIIMageView, UIView and all those UI Elements which inherits UIView properties. After applying transform to these views they get change and holds new transform values. In that case...