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...
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...
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...
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...
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...
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...
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...
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...
hello guys,
i m creating an android activity in which i want to scroll a group of images(any number) on the click of a manual button.Kindly suggest me any useful libraries in this regard.
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 :
...
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'...
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 ...
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...
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...
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...
If you want to check any NSString containing special characters then check this out.
-(BOOL)specialCharacter:(NSString*)username{
NSCharacterSet *invalidCharSet = [[NSCharacterSet characterSetWithCharactersInString:@"ABCDEFGHIJKLMNOPQRSTU...
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...
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...
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...
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,...
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...
For iOS push notification services functionality we need a device token (a unique device id generated by device OS for Push Messages communications) on which we can receive push notification messages. To generate the device token we have to add U...
You are independent to write your own template and put it in portal-ext.properties file. The default one can be seen by following the mentioned path. However same variable can be used in custom templates too.
Update below properties as your ...
hello, can somebody help me, how to add arrow left and right to this product view?
do i need to use extension? if so, what extension do i need to use? or do i need to add hard code ?
please help me, thanks in advance
Liferay support many languages as you need. All language specific text and storing are done by pulling out in language.properties files. Whenever a page loads, detect the language by liferay and pull up the corresponding language file then disp...
Hello Friends, The Below code will show How you can send the mail using the mailing template in liferay.
view.jsp
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/aui" pre...
Selenium Webdriver is a automation testing tool which is used for testing the web applications. Opening and closing a browser is the very first test step in Selenium which a tester would like to do. The 'Commands' refers to what Selenium has to d...
If you need login device type, model and version of an iOS device, then use below code.
You'll have to import below file first then:-
// #import `<`sys/utsname.h>
NSString* deviceName()
{
struct utsname systemInfo;
uname...
Parse provides simple Facebook login where it saves Access Token and limited user info. Inside your viewcontroller where you have implemented PFLogInViewControllerDelegate, PFSignUpViewControllerDelegate delegates just call Facebook request as m...
If you need to change the color or appearance of the Status Bar of iOS then follow simple steps.
in your code file where you had created or initialized UINavigationController just write few line of code there.
Find similar line as mentioned...
This has been raised as a security concern blocking the release of my Cordova application on Android 4.4 KitKat
Using a SQLIte browser on a rooted device, the application session id cookie is being written in plain text into a SQLite table nam...
How to increase font sizes of list view items containing more than one textviews. on pinch - zoom gesture android? There is nothing such list view found on internet
Here, I have created a small database for a book store application. In which two tables are required:-
book:- Stores a unique book ID, the title, content, and a deleted flag.
audit_book:- Stores a set of historical changes with a record ID, t...
Hello Readers,
html():
It returns the entire content inside of specific html element inside the div.
As in example given below, how can we use the jquery html() function.
Here, we consider the div tag and inside the div we take text ...
This tutorial will help to understand the different ways of invoking functions in Javascript. The another term we use for invoking function is "calling a function". Functions can be invoked in different ways as below:
Let us create a file Invoke...
Hello guys,
Entities are the heart of a service which are defined in the service.xml in the liferay portlet. It represents the map between the model objects in Java and the fields/column and tables in your database. Once your entities are defi...
Hello guys,
In the liferay portal, some of private and public layouts portal properties are disabled. So we need to define these properties as below.
layout.user.private.layouts.enabled=false
layout.user.private.layouts.auto.create=false...
Hello Guys,
I will explain that how to extract values from JSONArray String in Javascript.
For example we have this jsonarray string below:
var jsonarraystr ='[{
"city": "Jaipur",
"state": "Rajasthan",
...
Hello guys,
JSON is a collection of name/value pairs, and it's in various languages, JSON is like as an object, record, struct, dictionary, hash table, keyed list, or associative array. JSON is an ordered list of values and in many languages, ...
Hello Guys,
We need to resize the thumbnail of file according to our requirements or for maintaining aspect ratio of an image. Now we can resize the thumbnail of file using portal properties which we will define in the portal -ext.properties f...
Each version of Android is having a specific code name since Android version 1.5. These name are English alphabetically and a confectionery theme based (usually , sugary foods). And these names belongs to one or more version names.
Below is the...
Here I will explain how we can communicate between two fragments in an Activity. There are many situations where we have to communicate two fragments like we have to pass data between fragments in some events. Here I will communicate through Inte...
Generally we add layout from xml but sometimes we need to add layout using java. Here I am adding linear layout from java file. I am creating LinearLayout class which is provided by Android and add params on it. We have methods to set orientation...
Here I am writing a way to implement Hashset. HashSet creates hashtable to store the data. As it implements Set interface so it doesnt contains duplicate elements. It also extends AbstractSet class.
We can implement HashSet by using different...
Enumeration is used to retrieve or traverse all the elements of particular collection of objects. Its not considered for collections but we can use it for legacy like Vectors. To use it we need to import - Java.util.Enumeration
Below is the ...