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

How to get device token in iOS

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...

How to change Mailing templates in Liferay

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 ...

Liferay Translating messages to multiple languages

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...

Mailing templates in Liferay

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 Browser (Get) Commands:-

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...

How to get iOS device type and version

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...

Facebook Login in Parse

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...

Simple way to change status bar

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...

Trigger in MySQL

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...

html() and text() functions in Jquery

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 ...

Invoking functions in Javascript

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...

Define Service Entities in liferay 6.2

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...

How to change default theme of profile page in Liferay

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...

Extract value from JSONArray in Javascript

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", ...

Create Json Array in Liferay

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, ...

How to change thumbnail size of file in Liferay

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...

Android Version Names

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...

Communication between Fragments

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...

Add Dynamic Layout in Android

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...

HashSet in Java

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 Interface in Java

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 ...

Iterator in Java

In collection, there would be many situations where we need to retrieve the collection elements. Example, we need to show each element. For these situations Iterator is the best solution. How it implements :- First iterator comes to start p...

How to add a column after a particular column in MySQL?

Sometimes we need to add a column after a particular column. We can do this easily by using ALTER command with AFTER attribute. Example: in the below command I'm adding "latitude" column after "address" column where "address" column already ex...

How to add comment to a column in MySQL?

Sometimes wee need to add a comment to a column for understanding purpose means to easily identify what is the use of that particular column. We can add comment to a column by two ways- at the time of table creation or by ALTER command after ...

How o handle navigation drawer with fragments

Step 1: create an xml file for main activity <android.support.v4.widget.drawerlayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layou_height="match_...

How to make a column as first column in MySQL?

Sometimes we need to make existing column as first column. For example you created a table and added column "id" after creating the column. Now you want to make "id" column as first column, then you can do this easily by using ALTER command as be...

How To Draw Your Project Success With Time Tracking Tool

Time is Money, so why waste it. An ample amount of money can be earned in hours through various projects. Entrepreneurs invests a huge amount to get a project whose success depends when  client will get it on time that too wi...

How to remove old PostgreSQL database server in OpenERP ( Windows 7 ) ?

If you want to remove old PostgreSQL database server in OpenERP from your system follow the below mentioned steps: Step-1 Go to start menu and click it. Step-2 Click on programs button. Step-3 Click Uninstall a program. Step-4 after that S...

Android Problem

Hello everyone I would like to start making a E-commerce android application. So how to start plz suggest me.

How to remove old OpenERP instance from your system (In Windows 7 ) ?

If you want to remove old OpenERP instance from your system follow the below mentioned steps: Step-1 Go to start menu and click it. Step-2 Click on programs button. Step-3 Click Uninstall a program. Step-4 after that Searching Programs and...

Simple mailing example in liferay portlets

This Blog will explore you how you can send the email using liferay portlets. The below code will helps you to send email using liferay portlet. Firstly you need to configure Liferay Mail Configuration:- Login using Liferay Admin account an...

strchr and strrchr in PHP

Hello Readers, 1> Both strchr and strrchr are the string functions. 2> strchr is an alias of strstr. 3> strchr returns the part of haystack string starting from and including the first occurrence of needle to the end of haystack...

How to select video from gallery in Android

How to select video from gallery through intent? Step 1: Declare the variables on the activity from where you want to hit the intent int SELECT_VIDEO_REQUEST=100; String selectedVideoPath; Step 2: Selecting Video from gallery by int...

How to download file from server in android

How to download the file from server to android phone It is recommended that whenever one wants to download any file from server whether it is song or any image , it must perform in the background either by using asynctask or using a thread. ...

Efficient Ways for User Testing During Web and Mobile Apps Programming

Thanks To The Internet, there is no barrier or boundary for any web/mobile app. End user of the application can be anybody from anywhere regardless of their religion, social culture, geographical position, time zone, physical or m...

3-D effect by box-shadow property in css

The shadow behind a box gives an amazing 3-D effect. We can apply this 3-D effect by box shadow property. The Syntax is : box-shadow : [horizontal-positioning-value] [vertical-positioning-value] [blur-radius] [optional disperse-radius ] [c...

How to resolve Registry issue in Postgres

If on installing OpenERP 6.1 using all-in-one setup, pgAdmin is note getting installed or you are not able to select pgadmin while installation then you might be having a registy issue with postgres application. To solve this king of problem....

How does OpenERP-8(Odoo) is more Beneficial than OpenERP-7 ?

The transition from OpenERP 7 to Odoo (OpenERP 8) visibly highlights power of the web. Odoo comes with more than 4,000 apps for sundry business needs and requisites. There has been a worldwide acceptance for version 8.0 among its partners and...

Select an item in dropdownlist by text programmatically

To understand this, consider the following code: //Dummy DataTable DataTable dt = new DataTable(); dt.Columns.Add("EmployeeName"); dt.Columns.Add("EmployeeId"); for (int i = 1; i <= 10; i++) ...

Check Live Traffic on your Website

Hello everyone, today we discuss about "Check Live traffic on your live website". When you have a Website, and you are thinking about learning the things like, exactly who visited your Website, you want to recognize the number of visitors, and...

Set interface in java

Set Interface in java, It is the type of Collection and Its the subclass of Collection interface so that all methods Collection interface can also present in Set interface. The important feature of Set interface is that it doesnt allow dup...

How to add foreign key contraint to a column in MySql?

In many cases we need to create foreign key in a table. We can do this at the time of table creation and after the table creation by ALTER command. 1- At the time of table creation: CREATE TABLE user_device ( id int(11) NOT NULL AUTO...

How to add a column with comment in MySql?

Sometimes we need to add a column with comment. We can do this easily by using COMMENT attribute in alter command. Ex- Find the below alter command which will add "address" column to "user" table after "country" column. ALTER TABLE `user` A...

Using bind function in javascript

This tutorial will help to learn how to make use of bind function in javascript. We use bind function, that helps us to use the properties and methods of any other object.bind function creates it's new method that has it's own this object which...

How to add comment on a table in MySQL?

Sometimes wee need to add a comment on a table for more readability means to define what is the use of that table. We can do this at the time of table creation or by ALTER command after creating the table. At the time of table creation: ...

How to parse/format dates with LocalDateTime in Java 8?

LocalDateTime is an immutable date-time object that represents a date-time, with default format as yyyy-MM-dd-HH-mm-ss.zzz. It provides a factory method that takes LocalDate and LocalTime input arguments to create LocalDateTime instance. Lets loo...

An high level over view of Security in OpenERP

OpenERP/Odoo is as secure as any other enterprise standard business application, and the architecture gives you many advantages to deploy applications over the Cloud infrastructure. We have been getting many queries about "How secure is OpenERP/...

Returning a Collection instead of Stream in Java 8?

In Java 8, the Streams is the new addition in the Java Collections API. It is the new method to process collections of objects. That is a different concept than the IO streams in the Java . Streams can be designed to work with Java lambda express...

How to solve error on re-installation of OpenERP or pgAdmin

If you face error on re-installation of OpenERP or pgAdmin, then you need to add the port 5432 for Postgres in Inbound and Outbound Rules. Follow these step given below:- Step1- Go to Control panel/System and Security/Windows Firewall and se...

Open FlashLight of Android Phone Programmatically

How to open flashLight of android phone programmatically declare these variables in the activity private boolean isLighOn = false; // to check tht flash is on or off boolean flashAvailable=false; int cameraID=0 /*cameraId with 0 repr...
1 205 269
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: