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

Indexed full text search in PHP-MySQL (PART - 2)

We already discussed Natural full text search in Indexed full text search in PHP-MySQL (PART - 1). Lets look into Boolean Full Text Search. In this we can use various operators to change the behavior of search. To specify a search to be b...

How to set the PayPal In OpenERP-8 (Odoo)?

Step-1 Install Payment_Paypal Module. Step-2 Settings-->Accounting-->Configuration -->Paypal account -->Show payment Step-3 Settings-->Payments-->Payments Acquiers-->Select Paypal Step-4 Pa...

Parcelable vs Serializable

If we want to send some data over the network or from one place to another place then we have to serialize it first using Serialization in java. Serialization is a process of Marshalling and Unmarshalling of data. Basically the conversion of Obje...

Encoding issues while parsing CSV file using Roo gem in rails

This is the most common and frustrating issue while parsing a csv file in rails i.e. the encoding issue. So in ruby on rails i found a library which basically detects the Character encoding using ICU (dependency package) and the name of the libra...

How to set session time out for fix time period in PHP

Hello Reader's, If you want to set session time out for fix time period in PHP use the below code. $page = $_SERVER['PHP_SELF']; $sec = "1"; header("Refresh: $sec; url=$page"); session_start(); $now = time(); if(!isset($_SESS...

Optimize memory with MAT

We know that Garbage Collectoris a program that automatically removes unwanted data held temporarily in memory during processing. Android also have its own garbage collector but this is not always guarantee all the times so we can't ignore heap ...

Creating a Generic function to clone an object using extension method

This is an extension method that operates on different types of objects and creates its own copy. This method is generic so it can clone different types of objects public static T Clone<T>(this T source) { var dcs = new Da...

CSS Pseudo-elements and Pseudo-classes

Hello Friends, As we already knows that, CSS reach to next level (CSS3.0). There are lots of elements in css which help us to build different style and UI behavior. Today, I am going to talk about Pseudo-elements and Pseudo-class...

Sorting the elements of array

In this tutorial we will learn how to sort the elements of an array on the basis of the keys or values as per the requirement.We will discuss the following sorting functions with example: sort() rsort() asort() ksort() arsort() krsort...

How to create an osv_memory wizard systems in openerp-7 and openerp-8(Odoo)

To create an osv_memory wizard systems in openerp-7 and openerp-8(Odoo), follow the below steps. In the action that opens the object, you can put </br> <field name="target"/> It means the object will open in a new...

Difference between Priority and Severity

Difference between Priority and Severity Both Priority and severity are the attributes of a bug which are provided in the bug report. These attributes defines how fast a bug should be fixed. Priority:-Priority means how fast a bug should be fi...

How to define States of object in openERP-7 & OpenERP-8(Odoo)?

First we have to define the States So to define states follow the below code. columns = { state: fields.selection([ (new,New), (assigned,Assigned...

Using Extension methods

Extension methods are used for adding methods to existing classes and types. These are special kind of Static methods but they are called as if they were instance methods. Extension methods are defined in static class and methods are also stat...

What is Web API and how it is independent of System.Web

What is WebApi ? The term API stands for Application Programming Interface. ASP.NET Web API is a framework which uses HTTP services and that is consumed by various clients. In web Api we can return data on the client requests. As, if we...

How to Modifying a report in OpenERP-6.1 ?

Step-1 First we have to Modify existing reports which will then replace the originals in our OpenERP database, Step-2 create new reports for the selected object. select Report > Modify Existing Report . Choose the report Request for Quo...

How to enable CORS (Cross-Origin Requests) in ASP.NET Web API

There are certain steps that need to be followed for enabling CORS in ASP.NET Web API : Step 1: We Have to install the CORS Package, and to install it , open Nuget Package Manager console and type and run command Install-Package Microsoft...

How to Add the Bar codes in RML files in Openerp-7 and openerp-8(Odoo)?

Barcodes can be generated using the tag in RML files. The following formats are supported codabar code11 code128 (default if no code specified) standard39 standard93 i2of5 extended39 extended93 msi fim postnet You can ch...

How to read or parse JSON in Android

There are some times during android application development when we need to interact with our server make a prominent exhibition of data inside our application. And server return the data in particular format. It is really important to know how ...

How to run java applet on ubuntu

There might be some problem to run java applet in ubuntu while the jdk is already installed in the system. so this problem is occurs when the java plugin is not installed in your browser. The solution of this problem is to installed ORACLE JDK ma...

What is web API and how it is independent of System.Web ?

What is web API:-         Microsoft released the ASP.NET MVC 4.0 in Feb 2012 and along with it, the ASP.NET Web API also released. Web API is an addition to the ASP.NET that provides a new, robust HTTP framework for creatin...

What is Authentication Technologies & types of Authentication Technologies?

Authentication is the technique by which a system check the identification of a end User who wants to access it. Since entrance or access control is normally based on the identification of the User who demand access to a resource, Authentication ...

Helpers

Helpers in rails framework are live example of modules of ruby. The methods which are defined in helpers are available to the templates(view) by default. These helpers are called template helpers. Some examples are 1)date_helper.rb has methods li...

SQL injection & It's Preventions

Generally all companies using some type of data base behind there applications. SQL (Structured Query Language) Injection can be used to penetrated the database. Now a days SQL injection is a most popular way to attack the web site. SQL is a comm...

Spring JAXB Integration

Spring JAXB Integration JAXB stands for Java Architechture for XML Binding. JAXB is a popular api for the Java object mapping with the xml. With JAXB we can map a Java object to it's corresponding XML document. It is also called an OXM (Objec...

Spring OXM Castor Example

Spring OXM Castor Example Spring OXM using Castor : Spring has the feature of xml/object binding. To bind the Object/XML spring use different api. Castor XML mapping is a way to binding the Java object to XML document. It allows to transform ...

RecyclerView with Event Listener

RecyclerView is the more refine and flexible version of ListView. It is available in v7 supporting package. For using RecyclerView you need to import "android.support.v7.widget.RecyclerView" package. In order to add RecyclerView into your appl...

Artificial Intelligence in web applications

Artificial intelligence is an area of computer science which deal with creation of machines or software , which have the mind like human , which can understand and can react on different situation and which can develop it self . Artificial int...

Frequently used commands in Postgres database with psql command line tool

Connect to local server using psql command line tool with postgres user. sudo -u postgres psql postgres To set/change password of postgres user \password To check/list all databases \list or \l To see/list all tables in current...

How to activate the developer mode in OpenERP (Odoo) ?

Step-1 Go to browser Step-2 Click on Administrator: Step-3 Click on about OpenERP Step-4 Click on activate the developer mode. You can activate the developer mode in the About Box located under your username in the top right cor...

How to reset or clear all asp.net controls/fields on web page/form ?

Tweaking overall user experience in C#.net project, a very effective trick you use to clear or reset all the controls placed on the web form or control. While building a form intensive site, page or control comprises number of text boxes, drop do...

Sample Applicaiton Using OWIN/Katana

Sample Application using OWIN/Katana OWIN stands for Open Web Interface for .Net. It is a interface between web application and web server. It is used to decouple server and application. Steps to create simple application-: 1)Open Visu...

ASP.Net membership provider Implementation:

ASP.Net membership provider Implementation: Before we start with, let us have a brief introduction about Asp.Net Membership: Introduction: ASP.NET membership provides an implicit way to validate and store user credentials and helps t...

How to create recurring invoice in OpenERP-8(Odoo)?

Installation of Subscription Module in Open ERP Step 1:- Install -> Subscription Module. Step 2:- Go to Settings -Technical - Automation - Recurring Types -create record must be Invoice. Step 3:- Go to Settings - Technical -Au...

Ajax Upload Files With the HTML5 FormData

If you are making a Ajax request to submit a form that include files then HTML5 FormData is the solution for that. You can also used jQuery form for upload files using Ajax request. First, we need to add jQuery code to submit function which is...

Social Media Marketing- Ways to Promote your Business or Product

In my previous blog I had told you about the Benefits of Social Media Marketing, but is it enough to start Social Media Marketing. Developing a game or launching it to the market will never benefit you. Reach towards client is important and this ...

How to get network information using different commands

This tutorial will help user to learn how to trace hop by hop destination of end host , use commands nslookup,netstat,pathping command with different switches to get more information over network. The tracert command is a Command Prompt com...

Accessing JNDI DataSource with JSTL from JSP

JSTL Sql tags with JNDI datasource : In this article we will show you how to create the JNDI datasource and access it using the JSTL tag library. We will use the tomcat DBCP Connection Pool defined in context.xml, to execute an SQL query and outp...

Creating PG Backup On Heroku

As we all know that creating a backup of your project is very crucial for any application , not just to recover your application in case of any unseen conditions but also for testing , creating a new server , migration etc. Until recently her...

JSTL Sql <sql:setDataSource> Tag

JSTL Sql setDataSource Tag : Jstl provides the facility to deal with database. JSTL has the separate sql tag library which provides the tags to do database operations. JSTL provides the <sql:setDataSource> tag which is used to create the ...

How to install Laravel5 using composer

This tutorial will help a user to install Laravel5 a framework in php with the help of a composer. The basic requirements to install Laravel5 are as mentioned below: PHP >= 5.4 Mcrypt PHP Extension OpenSSL PHP Extension Mbstring P...

How to check if the email is valid in iOS sdk

Hi readers, Many apps require email validation in iOS. Here the function that can be used to check if email string is valid or not. It can be achieved by NSPredicate like following: -(BOOL)isValidEmail:(NSString *)checkString { long n...

Liferay Adding actions to search container

Liferay Search Container is Liferay UI component which display data in Grid format and its also containing pagination. Search Container is just simple JSTL tag and its allow to use in JSP pages. According our requirement we need to display res...

Stored Procedures and Functions in MySQL- Part 6

Loops A lot many times, situation arises that a set of commands have to be repeatedly executed. This is achievable by using looping constructs. MySQL provides us three types of looping constructs : Simple Loops Repeat Loops While L...

Issue while parsing string into DateTime:

Issue while parsing string into DateTime: Before starting lets have a look on the following code block. Example: string temp = DateTime.Now.Date.ToString("dd/MM/yyyy"); //( let the value be "20/05/2015") DateTime dt = Convert.ToDateT...

10 time saving tips every Linux user should know

If you are using bash, here are some time saving tips that can come handy in day to day tasks of every Linux user. This list is not exhaustive in any manner and is compiled from various Q&A sites and forums. Use CTRL+R to search through...

Difference between Boundary Value Analysis and Equivalence Partitioning

Both Boundary Value Analysis and Equivalence Partitioning are test case design strategies used in Black box testing 1) Boundary Value Analysis:- It is a technique for Test Date selection. This technique is used to find errors at extreme points ...

ASP.NET Web API

Introduction Today the web based application alone is not enough to reach the customers and real world as era of mobile devices has started.Customers have become very smart and they are using smartphones , tablets etc. devices in its daily lif...

Spring File Upload

Spring File Upload Spring is a framework which provides almost all types of functionality. Spring has feature to stream based file upload. Spring file upload is very easy and maintainable. Spring provides the api to upload file streams. Like j...

Mongodb Error Could not connect to a primary node for replica

Could not connect to a primary node for replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">] If you found above error then first check sudo service mongodb status If yes, then run following co...

Change default editor for linux terminal

The default editor generally with linux terminal is vi editor and if you edit crontab etc. it by default opens up using vi editor. To change this default behavior and set the editor to nano you can use command export EDITOR=nano after ...
1 233 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: