
Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
How to assign current date to a date field in odoo v8
If you want to create date fields to assign current date in .py file in openerp, you can use the below code for this
from datetime import date
from openerp.osv import fields, osv
from openerp.tools.translate import _
class account_invoice...
double colon(::) operator in Java 8
In Java 8 we can also use double colon(::) as the method reference. By using double colon(::) operator we can easily convert normal method into lambda expression.
The below example will show you how you will convert normal method into lambda ...
Checking for undefined in Javascript
Undefined is a variable in global scope. A variable that has not been assigned any value is referred as undefined.
You can check for undefined in various ways.Here are some ways to check :-
Checking via Strict equality(===)
var a;
...
Sending Email in OpenERP /Odoo
If you want to Sending Email in OpenERP (Odoo) follow the below mentioned steps: -
Step-1 Go to sales Menu
Step-2 Go to sales Orders and click on create button.
Step-3 after clicking Create Button, fill in the above Quotation in b...
How to route requests in Node.js
This tutorial will help, learn how to route the requests in Node.js, for correct routing it is
necessary to get the exact pathname and pass correct values via query string. We can
get all these information through the request object. Hence to...
PermGen limit in JDK 8
In Java 8 The concept of Permanent Generation (PermGen) space is removed and it replaced by a new space called Metaspace. The drawback of PermGen removal is that the PermSize and MaxPermSize JVM arguments are ignored and you will never get a java...
JDBC/ODBC alternative in Java 8
The JDBC/ODBC driver is the type 1 driver it is also known as JDBC-ODBC bridge. It is ODBC driver to connect the database that convert the JDBC calls to ODBC function calls. Type 1 driver is fully platform dependent and use the native libraries o...
Difference between final and effectively final
Find the difference between final and effectively final as below:
Final:- Any variable that cannot be modified once it is initialized can be final variable. You cannot modified again that variable.
Ex: final int var=20;
in the above e...
Overriding Login Struts action in liferay
We can override Login Struts action by using Hook.
In the below example we are overriding struts action "/login/login". When a user login in Liferay "com.liferay.portlet.login.action.LoginAction" is the action class that calls.
Follow the b...
Interface with default methods vs Abstract class in Java 8
Interface with default methods in Java 8
In later version of Java Interfaces always contained only method declaration. We are not giving method definition in the interfaces because java did not allow multiple inheritance of classes. But in Jav...
Testing Policy
How can we define a testing policy ?
Testing Policy is the planning activity to test the application software improvement, testing Policy is an important part of any organization or company. Testing policy may be different for many organizatio...
Datetime vs Timestamp in MySQL and PHP
Hello Readers,
This blog tell the difference between the Datetime vs Timestamp in MySQL and PHP.
1> Datetime and Timestamp are used to store datetime and then retrieve the datetime back.
2> Basically, In this we have a 2 factor whi...
Actions Class[Mouse Actions]
Actions Class[Mouse Actions]
In order to perform exact mouse related operations such as moving a mouse on the menu so that sub menus are displayed or dragging and dropping an element etc, we use Actions Class.
Moving A Mouse Pointer
In o...
The Latest Developments in Odoo That You Have To Know
There are many types of latest developments in Odoo,That You Have To Know.
1- Odoo use external authentication providers, sign in with Social Media-like
(i) Twitter Account
(ii) Facebook Account
(iii) LinkedIn Account
(iv) youtube account
...
Delete long running resources at onDestroy() in Android
Our Activity do most of the cleanup function in onPause() and onStop() callbacks.
But Sometimes some resources leaks memory like long-running services, background threads.This usually happens when we dont closed it properly.
So we need ...
The relation between Quality Analyst and Tester
Today I will explain you about QA and Tester, and what is the basic differences between us.
Quality Analyst: Who analyses the quality of the product is known as Quality Analyst. The role of QA is bug prevention. QA must have the knowledge of a...
The Top Five Pros And Cons Of Odoo
Below are the top Five Pros And Cons Of Odoo
Pros in Odoo
1- Odoo is based on python languages, and database is postgreSQL.
2- Search Functionality in Odoo- You can easily search across the screen, you can also create advance search as p...
Custom Check For iPhone , IOS Version , Email And Phone Number in swift
Hello Readers,
These are some of the custom checkers to detect
iPhone
Current IOS Version
Email Validation
Phone Number Validation
For iPhone 4 and 4s :-
func isIPHONE4() -> Bool{
let screenSize: CGRect = UIScree...
Gradient Drawable in Android
To make Button,TextView,Images and other android components looks better and stylish, we create Gradient drawable.
For using Gradient drawable, we can make shading effects and make better GUI.
We need to create drawable folder inside the re...
There is an Application to Receive the Intent or not in Android
Hi friends,
For Implicit intent, we dont need to declare the name of the class but we declare the action that we are doing to perform.
Like here we make a call
Uri callUri = Uri.parse("tel:100");
Intent intent = new Intent(Intent.AC...
How to save data in SQLite in Unity3d
To start up with CURD(Create,Update,Read,Delete) operations in unity3D using SQLite.
You need to follow few steps:
Steps for installing and use sqlite browser:
1.You need to have an SQLite Browser installed in your system:
Which you can ...
Java 8 Iterable.forEach() vs foreach loop
foreach loop
In Jdk 1.5 generics concept can be introduced and do some enhancement in for loop and the enhanced for-loop is introduced. The enhanced for-loop is reduce the overhead to print the values of the arrays and collections because it w...
Rigidbody2D in Unity3D
Unity built in physics engine provide components that handle physical simulation.
Rigidbody2D is one of the main component among the unity physics engine that allow
sprite to be moved in a physically convincing way by applying forces from the ...
How to create a module in Node.js
How to create our own module in Node.js so that we can use the functionality of the module
in our code where we need it, instead of writing the same logic. Here we will use the test.js
file as a module in our index.js file. Suppose on hitting ...
How to create an http server in Node.js
This tutorial will help a user to create an http server in Node.js and run an applications at server side.
Follow the steps as below:
Install Node.js
Lets create a file test.js which we will place in the root directory of our applicati...
Handling Pop-ups in Web Driver
Handling Pop-ups in Web Driver
In the web application there will be different types of pop-ups such as:
Alerts pop-up.
Confirmation pop-up.
Hidden division pop-up.
Page on-load pop-up.
File download pop-up.
Child browser pop-up.
...
Sorting Layers in Unity2d
When building a 2D game in Unity3D. We need to specify which items will be rendered above which item.
We can do it by specifying the distance of the sprite from the camera but Unity provides a better way of doing this through the use of Sorting ...
Collider 2D in Unity 3D
Collider 2D in Unity 3D
Unity has two physics engines, one for 3D and one for 2D. When we use 2D physics engine a collider 2D component must be used. There are four collider 2D component. Each collider 2D component is optimesed for a particula...
How to move the marker to the postion clicked on the google map.
Here is the example where various functionalities like styles (StyledMapType), info window, marker events, etc, have been implemented
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<...
Hinge joint and Fixed joint in Unity3D
Hinge Joint in Unity3D
The hinge joint in unity is basically used to connect two rigid bodies. When there is a need to constraint the movement of an object
then we require to add hinge joint on it.
For eg - Door,Pendulum.
In this we rest...
Java Interview Coding problems for Freshers- Part I
Hi,
For all the final year graduates and freshers, I have got a series of java coding interview questions and answers, which is good to prepare before appearing on any Java interviews. Java coding questions are based on programming, logical an...
Make bullet colors in ul li lists using CSS
Hello Reader's
Here is an example bullet list (unordered list) without using any image, you can use custom bullets in your web page as done below.
Here is the HTML
<div class="demo">
<ul>
<li>Your Listing C...
How to recognize touch events for DOM elements
Hammer.js is a open-source library used for identifying touch gesture, mouse events and pointer Events. It is a standalone library .
link for downloading library
http://hammerjs.github.io/dist/hammer.min.js
Below is the code snippet to use...
Adding attributes to short code in wordpress
Welcome to Findnerd. We all knows the power of shortcodes. It is very simple way to create a new functonality. We are going to discuss the way how we can add attributes in shortcode. We can give any name to shortcode and then manage attributes us...
How to detect browsers in wordpress
Welcome to FindNerd
In some situation we have to detect the browser and perform the different operations on different ones. If we talk about the WordPress then there are many global variables available to detect the browser on which you are pro...
WebDriver Synchronization
WebDriver Synchronization
The process of matching speed of automation with the speed of application is called as Synchronization.
In Web Driver we can Synchronize in different ways, one way of synchronizing the Web Driver is by using sleep...
Selenium WebDriver
Selenium Web Driver
Web Driver is just a JAR file which contains collection of interface and class.
Web Driver is a web based automation testing tool which uses core Java API to drive the test on the browser. Technically Web Driver is an in...
Adding terms to Taxonomy in wordpress
Welcome to Findnerd. We all knows we can build our own custom taxonomies and insert the terms in taxonomies. There is one function available to insert the terms in perticular taxonomy named wp_insert_terms which takes three parameters. First one ...
ISO Standards in Software Testing
ISO/IEC/IEEE 29119 is a guideline documentation (these documents are not compulsory) which is an internationally agreed standards that can be followed in any software development life cycle or organisation. Any company following these standards ...
Listing custom taxonomy terms in WordPress
Most used concept of the WordPress is custom taxonomies as well as custom post. We can build our own custom post as well as taxonomies.
If you want to list terms of your custom taxonomies then you can simply use function named get_terms which ta...
Adding Captcha to Contact form 7 in wordpress
Welcome to Findnerd. One of the most used plugin named custom form7 which is useful to manage the contact us page of the website. We need to show the captcha in contact us form. If you start the customization in contact form 7 then it is very lon...
Wordpress Creating a custom taxonomy
Welcome to Findnerd. We are using wordpress function named register_taxonomy to create a new custom taxonomy. There are many in-bulid taxonomies like categories,tags and Link categories. This functions takes three parameters. First one is name of...
Image Crop Using Java and Jquery Crop (Jcrop)
FrontEnd:
Include jquery.Jcrop.css, jquery.Jcrop.js and jquery.Jcrop.min.js
Open an image in a div with a form. Take 4 hidden input fields:
<input type="hidden" id="x" name="x" /> // x coordinate of the image
<input type="hidde...
How to Set WallPaper in Android
Hello Friends,
Here I am writing code to set wallpaper in android.
Its very applicable in many scenarios like after downloading an image we have to give an option to set it
as wallpaper or make functionality to create App wallpaper to pho...
Disable back button in Android
Hi Friends...
Sometimes we need to disable back button in our application mostly for security purpose.
So here is the solution. We just need to implement onBackPressed() method but returns nothing .And if you want to do some other task on ba...
Password Protect Website Directory Using .htaccess File
Hello Reasders
Here, we protect the directory using .htaccess file
Before doing this, we will first need to create a .htaccess file(.htaccess file is the configuration file for the Apache HTTP server) which can be used to affect the directo...
Strong Parameters in Rails
Strong Parameters in Rails
Strong parameters are used to prevent the action controller parameters that are used in Active Model Mass Assignment. If you want to use them, you need to white-list them. It is basically used as a security for sensiti...
Laravel 4.x Installation And Server Requirements
Step by Step installation of laravel 4.x.
Step 1:
For laravel first we should have composer. So for composer download composer.phar and if you use window then you should use composer window installer.
Step 2:
After uploading compose...
SQL Joins
The process of combining rows of two or more then two tables based on a common field between them are known as SQL joins.
Types of SQL joins :
INNER JOIN: It is returns rows only when at least one row matches from both tables.
LEFT...
Middleware In laravel 4.x
Middleware is one of the important part of any application. The code which we want to stick between request/response life cycle which is not necessary part of our application logic. That is called as middleware.
Let take a example to know more a...