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

How to know the call state in Android

Android provide us the facility to know the call state. Android gives this feature by providing Telephonymanager class. We need to implement PhoneStateListener interface that has one method onCallStateChanged(). Below is the example. publ...

Sliding animation when switch to other activity

We can add animation on activity switching. First thing that we need to do is to create xml for animation. Here I am using two xml for in and out. animation_in.xml set xmlns:android="http://schemas.android.com/apk/res/android" android:sh...

SortedSet in Java

I am writing a way to implement SortedSet in java. SortedSet have the properties of Set interface plus feature of sorting in ascending order. It is by default provides elements in ascending order. It is very useful in such situation when we do...

LinkedList implementation in Java

Hi friends, Here I am writing a way to implement basic LinkedList. First of all LinkedList has the properties of List interface and AbstractSequentialList class because it implements List interface and extends AbstractSequentialList. ...

Magento: Hello World Module

To start with module development in magento it is necessary to understand the file structure needed to create module. To understand the structure we are going to develop one hello world module to display content in front end. 1) app/etc/module...

How to define class and attributes in OpenERP/Odoo ?

If you want to define class and attributes in OpenERP use below code - from osv import osv, fields class travel_hostel(osv.osv): _name = travel.hostel _inherit = res.partner _columns = { rooms_id: fields.one2many(travel.room, hostel_id, ...

Read the Specific JSON Property

The below Example will show you how to read the specific property from the file in JSON format or to read the Specific property from the JSON data. emp.txt { "id": 123, "name": "Manish", "phone": [ 123456, 987654 ], ...

How to capture a video for particular time interval in Android

If you are looking to capture a video for particular time interval using default camera, then follow the below code to achieve the same. Record video from camera for 60 seconds private void captureVideoFromCamera(){ Intent intent = ne...

How to check Push Notification enabled in iOS

For your iOS application if you want to check Push Notification status then you can check it by using the below code:- in iOS 7 UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]; if (types ...

Benefits of an Online Invoicing Program for a Freelancer

Technology advancement has made it possible for many talented people across the globe to work as freelancers sitting at any corner of the world. Being a freelancer is often thought of pursuing a more relaxed lifestyle, but there are harsh, stark ...

Custom EditText - Clear all text in Editext

It is very common that the Android's Edit text needs to clear all filled data in one hit, rather than clearing every single text using keyboard's 'X' button. It is a good practice that enable user to clear all the text using Edit Text drawable...

How to make loops and special fields in OpenERP/Odoo ?

If you want to make loops and special fields in OpenERP use below code - def get_totals(self, cr, uid, ids): countries = {} for sale in self.browse(cr, uid, ids): country = sale.partner_invoice_id.country countries.setdefault(country, 0...

How to export Schema without data in MySQL?

Sometimes we need to export Schema without data means table structure only. We can do this easily by providing "--no-data" option in mysqldump command. Command: mysqldump -u root -p --no-data database_name > database.sql Exa...

Add a thin line to UITextField in iOS

For textfield we use attributes to give outlines to it or some times we place image view behind every textfield for its outline. We can instead use CALayer for it. I am setting an upper outline to a textfield, here is the code:- CALayer *upper...

How to copy text to ClipBoard

If you are looking to copy the text from android widgets to clipboard, you can use the below code TextView contentTextBox=(TextView) findViewById(R.id.tv_content); //get textview from which you want to copy the content String textToCopy = c...

Get country name of first contact of a partner related to ID sale order in OpenERP/Odoo

If you want to get the country name of the first contact of a partner related to the ID sale order in OpenERP use below code - country_name = sale.partner_id.address[0].country_id.name

Implement Producer Consumer Problem Using Threading in Java

ProducerConsumer problem is also known as the bounded-buffer problem.It is multi-process synchronization problem.There are two processes one is producer and another is consumer that can share a common and fixed-size buffer. The producer insert th...

Installing mod_jk on Apache on Ubuntu

This tutorial will help a user to learn how to install mod_jk module and what is mod_jk.mod_jk is basically Apache module which is used to connect the Servlet Container [also known as Web Container] with the Web Servers (i.e. Apache, iPlanet, Sun...

Error and Exception Handling in PHP - Session 10

This tutorial explains about error and exception handling in PHP.

How does KeepAlive setting in Apache 2.4 help

Keep-Alive is a Directive in Apache that is used to maintain a persistent connection between client and server, which prevents a connection from breaking. It is also known as HTTP keep-alive, When we put KeepAlive Directive "on" it the allows sam...

New Location Dialog from Android Settings API

Enable a system location dialog ,asking user that app needs to find the current location This dialog is from Android Settings API public class LocationData implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedL...

Introduction to Cookies and Sessions in PHP

What is a Cookie? A cookie can contain different data that is stored on the client browser with server specific information like user id and or user preferences. What are Sessions? Sessions are used to store information in the form of va...

CAPA

CAPA means corrective action and preventive action . CAPA is a part of software Quality management System . CAPA is key requirement for any software development company which need FDA and ISO certification . An active CAPA program is a esse...

How to Clear Cache in Magento

We can delete magento cache in either way - A- Usign magento admin panel - 1) Go to magento admin 2) Go to system > cache management . 3) There you will find the list of caches available in magento 4) To clear the cache...

How to create a custom UITableViewCell separator in iOS

In UITableView every UITableViewCell contains a separator line by default. If you need to create your own custom separator line then use below code inside cellForRowAtIndexPath method. UIView* separatorLineView = [[UIView alloc] initWithFrame:...

How to create a custom back button in iOS

Some times we need to create a custom back button for Navigation Bar in iOS. If you want to create an easy navigational back button instead of creating a view and add that view in navigation bar then use below code to achieve it. UIButton *bac...

Review Effectiveness

Review Effectiveness is a software metric to calculate the number of defect uncovered during review ( SRS review + Design review + Testing review ) versus total number of defect uncovered . The value of Review Effectiveness is very important...

Adding and Deleting items in dropdown using javascript.

Hi Readers! In this blog we will learn How we can Add and Delete items in dropdown in JavaScript. .In the bellow example we are going to add items in dropdown and delete selected item from the dropdown list on specific button click . <...

Delivery schedule adherence

It is the metrics used to calculate the number of delivery done in time against the planned delivery .Delivery schedule adherence is usually calculated by project manager or QA manager so that he can evaluate the performance of his team . The o...

Top tips to follow to make a good website home page design with advanced CSS

Making a good website design is very important. First impressions are important after all. In the multitudes of website available at the disposal of the millions of customers who come looking for such websites it is very important to make an impr...

Cakephp Callback functions

Hello Reader, We have three cakephp callback function which generally used into the cakephp projects. 1> beforeFilter(): beforeFilter() is the cakephp callback function which can be used in AppController or in Controller and this functio...

Top Social Bookmarking Sites

In my previous blog I have explained you about Social Bookmarking and it's Importance. So if you are looking for social bookmarking sites below are some of the Top Bookmarking sites which I preferred. Reddit ...

Why Social Bookmarking

In today's online marketing world every marketer opts for different strategy for the identical goal - Get higher SERP. One of the most common and important strategies is doing Social Bookmarking (SB). Posting content on social med...

Read System environment variable in Spring

Hello Friends, The below code will show you how you can read System Environments Variables and System Properties by Using Spring applicationContext. We have to create SystemVariables Class and create the property systemVariables SystemVaria...

Implement Generic Method in Java

Generic Methods:- The Below code will helps you to implement Generic Method using the Generic Programming in Java. The generic methods enable us to specify, with a single method declaration and use with different data types. we can write a single...

How to Construct your own ArrayList Using Generics

Here the Below Example will show you how you can construct your own Collection(ArrayList) in Java. The below example will show you that our Class Generics will behave like the ArrayList. I have use the Generic Programming to Implement the concept...

Prototypical Inheritance

Javascript is a prototype-based language. It works on objects. Each object has an internal property called  prototype,from which other objects inherit properties. It extends the functionalities of class. The prototype object has a prototype...

DNN Outsourcing - A Cost Effective Option for Enterprise Application Development

One of the oldest and the worlds largest open-source web application framework, DotNetNuke (DNN) has been helping its clients manage information on their respective websites, intranets, and extranets since long utilizing Microsofts ASP.NET quite ...

How to Create Basic Search View In Odooo

In Odoo Search View is easy to use that is provided on every list view. With a module, you can add additional filter options that make it easier for users to find the information they are looking for and user can select the filter in Odoo. To ...

How to load javascript files asynchronously

Hello all, Working with HTML and JavaScript we usually keep our JavaScript code in separate files to keep our code organized and manageable. If we are using various plugins in our website which has lots of JavaScript files with it, in that ...

Form validation in AngularJS

Hello guys, I am writing a blog to validate the HTML form by angularJS. We can validate the many thing by angularJs on real time basis for example- required field, maximum length, minimum lenght and text pattern etc.. Now, create a form...

Set color in ul or ol list

change the color of a bullets in a list Hello friends, Some times we need to provide color in <ul> or <ol> List for that you can simply use the below code. <ul> <li style="color: red;"><span style="color: gr...

Hide Status bar in iOS

In iOS apps when we need to hide control center appears in iPhone device on swipe up gesture or forced to hide UIStatusBar then use below code. Write below lines in your viewDidLoad method. if ([self respondsToSelector:@selector(setNeedsSta...

Selenium WebDriver Browser (Navigation) Commands:-

Navigation commands are used to navigate from one web page to another web page that we deal with. Below are some basic Navigation commands which are commonly used while writing the test scripts in Selenium. 1) Navigate To Command - "naviga...

Generating Basic View In Odoo

If you want to generating basic view in Odoo follow this below step- Step-1 Go to .xml file and generating basic view like below code. <!--?xml version="1.0" encoding="utf-8"?--> <openerp> <data> <record id="ac...

How to read request parameters from velocity template in liferay

Hello guys, To Read request parameters in which parameters send with liferay page URL (i.e http://192.168.3.10:8080/group/dentalnotebook/patientprofile?patientId=140701) and to read from velocity template in the liferay 6.2. Below example...

DVM in Android

DVM i.e., Dalvik Virtual Machine is basically a virtual machine for android and specially made for mobile devices. DVM was written by Dan Bornstein. Now a days JVM has improved so much that it provides amazing memory management and better p...

How to read a page request parameter from portlet in liferay

Hello guys, Page request parameter in which a parameter send with liferay page URLwill be like i.e http://192.168.3.10:8080/group/dentalnotebook/patientprofile?patientId=140701 we can read a page request parameter in portlet controll...

ATTACH SQLite Database

Hi, Sometimes, we have many database and we need to use any one of them. In this situation we use SQLite ATTACH DATASE statement to choose a specific database. Syntax of the command: ATTACH Database YOUR_DATASE_NAME As Alias-Name; ...

How to initialize blank final variable

Blank final variables are those variables that are final but havent initialized at the time of declaration. So its not possible to initialize it anywhere. Here is the solution. We can initialize blank final variable only in the constructo...
1 203 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: