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

Difference between Include Directive and Include Action tag in JSP

Hello reader's lets know the "Difference between include directive and include action tag in JSP(Java Server Page)". Include directive and include action tag both are widely-used for including a file to the present JSP page. However you will f...

Bar Code Scanner using Zbar library in android

There are so many libraries like Zbar,Zxing Red-Scanner that are used for bar code scanning. I am explaining here Zbar library integration for bar code scanning. Zbar is open source. It is fast,simple as compared to Zxing. First of all you h...

How to install OpenERP (Odoo) in windows server 2012 R2 ?

Step-1 Go to the link-> http://nightly.odoo.com/7.0/nightly/exe/ Step-2 Select->latest exe file like-> openerp_7.0.20150622.exe -> (Latest Date) 03:29->129251691 Step-3 click on Downloaded exe->select the languages->cl...

How to improve your vocabulary without improving your laziness?

Do you find yourself frequently picking up your jaw from the floor when someone comes and unleashes a barrage of awesome English vocabulary at you while you're still fumbling with "errrs..." and...

Form authetication in MVC

Here I will try to explain the form authentication in MVC. Step-1 Let's start with a new MVC project, following steps: File > New > Project, a dialog box appears, select "Web" from the "Template" option, then on right side select "ASP...

Difference between "Java Constructor" and "Php Constructor".

Hello reader's Today we will discuss about "Difference between Java Constructor and Php Constructor". Within Java we are able to override the constructors within one class. Constructor is recognized as function getting same label in particul...

How to access static variables in PHP and How to access static variables in Java

Hello reader's lets continue with static variable, today we will discuss about "how to access static variables in PHP and Java". PHP is usually changing as a Object Oriented language. As being a java coder and PHP coder. Java and PHP poss...

Static variable scope in PHP vs static variable scope in Java

Hello reader's today we will discuss about "static variable scope in PHP vs static variable scope in Java". PHP is actually increasing to become a Object Orient Programing. Being a java coder in addition to PHP coder, php in addition to java w...

Difference between TextBoxFor and EditorFor in MVC

These two are strongly-typed HTML helper methods and uses lambda expressions when referencing models passed to a view template. TextBoxFor will always show the textbox element no matter which kind of property we are binding it with. But Ed...

Datatypes in PHP and String Functions - Tutorial 3

Datatypes supported by PHP String Integer Floating point Boolean Array Object NULL Resource String Functions Strlen() : Returns the length of a string (number of characters). <?php echo strlen("Hello world!"); // output...

Liferay: Disabling the password reminder question after the first login

You can disable the password reminder question when user logs in portal for the first time after Registration. Use the below steps to hide the password reminder question screen: If portal-ext.properties is not available then you can manually...

attr_accessible in Rails 4

Before going into the details of attr_accessible, the best thing would be to understand why it was needed. It was basically needed to avoid the Mass-assignment Attack. For that we need to know about Mass-assignment :- Mass-assignmen...

Spring Security - UserDetailsService vs. AuthenticationProvider

We can use Custome UserDetailsService and custom AuthenticationProvider for user authentication in Spring Security. Here I'm taking example of custom UserDetailsService. UserDetailsService is a Core interface which loads user-specific data. I...

Creating background Tasks with Appshell and CakePHP

Hello Friends, Sometime we need to run some background tasks using cakephp without user interaction or delayed response to user from server. For this we can use CAKEPHP AppShell utility. Syntax: /path/to/cake/console/cake -app /path/...

How to use SharedPreferences in Android to store, fetch and edit values

SharedPreferences are used to store primitive data types in Android such as int, long, float, string. SharedPreferences have an added advantage over storing data in singleton class as Singleton class can store data and available throughout the ap...

How to Fill Dropdown using jquery without using Ajax

Step 1=> Get all the countries data in an array and all states data corresponding to country wise. <?php $countries_Array = array( 'IN' => 'INDIA', 'BG' => 'Belgium', 'AU' => 'Australia', ...

How to fix TCPDF file opening issue on smart devices

Hello Friends, If you are using TCPDF( A Plugin used to generate PDf files) then sometime you may face that this files are not opening in smart devices. You may see some garbage data instead of pdf file. Then do not worry, just put a exit; af...

Difference between running a rails app in development or production mode

In this blog I am going to discuss difference between rails development and production mode. Often Rails app has so many different environments, each environment use different database which is mentioned in config/database.yml file, each environm...

How to invalidate a spring security session?

To invalidate spring security session you need to follow below steps: 1. Add Logout configuration in your applicationContext-security.xml file Set logout-success-url attribute to /login.jsp. After logout user will be redirected to this pag...

UISearchBar with TableView in iOS

How to use UISearchBar with TableView in iOS If we have a huge list of items and want to search a item from the list then we use the UISearchBar with TableView and the item will be displayed in the table which have the matching value with the ...

Convert array to string in php

We can convert array to string using php predefined function named as implode(). Syntax for implode is: implode('separator',array); Example - $split_data [0] = 'This'; $split_data [1] = 'is'; $split_data [2] = 'a'; $split_data...

Convert a string to array in php

We can convert string to array using php predefined function named as explode(). Syntax for explode is: explode('separator',string); Example - $string = "This is a text"; $split_data = explode('',$string); // splitting by space as a...

Getting the current absolute URL in Ruby on Rails

Recently I was working on rails 4 application and there was a need to get current absolute URL. So I noticed that as rails evolved, this is also getting changed and thought to pen down these ways for all the rails versions. For Rails 3.2 or Ra...

How to implement underline textfield in Xcode

Hi, The tutorial will help you to set underline textfield in Xcode. #import <UIKit/UIKit.h> @interface UnderlinedTextField : UITextField @end #import "UnderlinedTextField.h" @implementation UnderlinedTextField ...

Top 5 ruby gems most helpful in application

Devise(https://github.com/plataformatec/devise): It represents authentication mechanism. Very powerful, flexible and also it allows to integrate Outh authentication system with minimal effort. FriendlyId(https://github.com/norman/friendly_id...

How to play video on click of CollectionView Cell

Hi, The tutorial will help you to set an image on collectionView Cell and when you click on any image play the video. // // ViewController.m // YouTubeVideo // // Created by lalit on 4/7/15. // Copyright (c) 2015 lalit. All rights re...

Google Map Integration in PHP- Display Latitude and Longitude On Google Map

This code will point the Latitude and Longitude On Google Map with a marker. For this include a script: Here is the code hope it may help you somewhere <html> <head> <script type="text/javascript"...

How to rename php file

After discussing about open, read and copying PHP files we will be discussing about rename function. rename (): The rename() function is used for renaming a file or directory.It takes two parameters : 1.the original filename 2.the new...

Click animation on view

Hello Android folks, We've been using selectors and xmls whenever we wanted to apply click effect to the views. Here is very simple and short way to achieve the same. We can use Android's AnimationUtils class to load the animation on any vi...

Spring security 3: database authentication with hibernate

For authenticating the user via spring security we need to make our own custom authentication-provider. We can make our custom UserDetailService easily, here is the sample custom code MyUserDetailsService.java package com.users.serv...

read and write permission (0777) to folder/files in linux system

User can give read and write access permission to a folder in linux using below steps:- Press(ALT+CTRL+T) open terminal(console). run this command on console: Sudo chmod -R 0777 Folder name Note: Use absolute path for folder nam...

How to Create a LinearLayout

Hi again, This Video tutorial will guide you to create a Layout with the help of LinearLayout.

How to create custom error pages in Apache

This tutorial will help us in learning how to create error pages in apache. We can customize the error pages based on different error codes that is writen in Apache server's Directive ErrorDocument Follwoing are the Three digit error code: ...

MongoDB : Javascript function

MongoDB - Javascript function $where operator : It uses to either a string containing a JavaScript expression. The full JavaScript function also used in the query system. This feature available after MongoDB version >= 2.4. List of prop...

MongoDB : $exist and $type operator

MongoDB - $exist and $type operator $type operator : It matches values based on their BSON type. e.g. We want to fetch documents from the collection which contains the value of "city" is only null. db.collection.find( { "city" : { $typ...

MongoDB : $in and $or operator

MongoDB - $in and $or operator $in operator : It match a value within the specified values within the given values. e.g. If we want to select record which credit score is (1200 and 2000). db.collection.find({"creditscore" :{$in :[1200,2...

MongoDB : Regex

MongoDB - Regular Expression In MongoDB if we need to find record with certain pattern, then we can use regular expression. It is also "like" query in SQL. e.g. If we want to find user email matching with "findnerd.com" pattern. db.colle...

MongoDB : Sorting

MongoDB - Sorting In any application we need to show list in certain order. Generally we show's user feeds in descending order. This can be achieve in MongoDB through "sort" properties. e.g. We need to sort student name in ascending order....

Spring Security multiple entry points

It is possible to create more than one entry point in spring security by assigning the different roles here the code script configuration of springsecurity-context.xml. springsecurity-context.xml <beans:beans xmlns="http://www.springfra...

MongoDB : Limit and Skip

MongoDB - Limit with Skip Often we need to implement pagination in any application. We can use "limit" with "skip". "skip" will select record from given index. e.g. We need to find 10 record started form 10th index. db.collection.find()....

MongoDB : Skip

MongoDB - Skip Query Sometime we need to find out certain number of record after a certain number of record. e.g. We need to find out 10 record start after 10th index db.collection.find().skip(10).pretty(); It is equivalent in SQl: ...

MongoDB : Limit

MongoDB - Limit Query Sometime we need to find out certain number of record. In MongoDB we can achieve this through "limit" option. e.g. We need to find 10 record from any collection. db.collection.find().limit(10).pretty(); It is e...

Using Any Browser as a Text-Editor/Picture holder

Why waste those precious few milliseconds to type in or to find the "Notepad" or "Paint" icon when you suddenly need to store some text-snippet or an image while browsing. You can simply use your browser as a text-editor by typing (well, type onc...

Shared Preferences in android

Android provides some features to store and retrieve data of an application. SharedPreferences is one of the simple and easy way among them.We save data in key, value pair. We have to call getSharedPreferences(), It returns the SharedPrefr...

"How to validate address of customer in Ava Tax in openerp-7 (Odoo) " ?

It is answer to the questions like     a- how to verify address of partner in openerp     b- how to correct address entered by user We need to verify and valid address in several cases like for - shipping ad...

How to Edit fields label in module in openerp

If you want to change or edit the label in module in OpenERP, follow the below example. EXAMPLE:- change label like that in product form change label of list_price(Sale Price ) to list_price(Max Price) in product.product .xml file- &l...

ASP.Net MVC-The Flow

In my previous article we talked about benefits of using MVC. MVC is a buzzword these days in IT industry. If we talk about a generic MVC pattern,currently it is used in every language available. Some of the examples include: 1-Cake PHP 2-Rub...

"Initial Setup and AvaTax Configuration In OpenERP (Odoo)"

About AvaTax-> Global companies know that outsourcing key business functions like payroll and tax compliance makes good sense. Avalara AvaTax automates Value Added Tax (VAT) calculation directly within your accounting software. Whether yo...

Objective-C Program Structure

In this video blog, you will learn objective c program structure and line by line understanding of program.
1 228 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: