
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
import assemblies in SQL
In SQL Server there are situations when you need to import assemblies to perform a specific task
For doing that you need to write the path where assembly is present and provide the permissions to the assembly and associating with the particu...
Features of Android 5.0 version
New major features added in 5.0:
Introduced Material design ,new widgets, custom shadows, vector drawables and custom animations.
ListView is now replaced by RecyclerView and use of CardView, with better optimization.
You can now add more ...
Get n number of highest and lowest records in MySQL
In my previous blog How to use Limit clause in MySQL Query, there is explanation of LIMIT clause and its use with SELECT statement. This article explains the use of LIMIT with ORDER BY clause to get 'n' number of Highest and Lowest records in MyS...
Create a dynamic view on Odoo-9
If you want to create dynamic view in Odoo-9 me have to move on .xml file and In dynamic view we can manage view from xml.file in Odoo module, for example you can see below code .
<record model="ir.ui.view" id="session_tree">
...
Trick to change text color inside setError method of EditText?
If you want to customized the error message of EditText than you can simply use the code given below.
Using below code you can declare your edit text
// Declare your edit-text.
EditText editText=(EditText)view.findViewById(R.id.editText);
...
Copying Data from one table into another
INSERT INTO SELECT statement:
INSERT INTO SELECT statement is used to copy data from existing table into another table.
Syntax-1:
INSERT INTO tablename2 SELECT * FROM tablename1;
Syntax-2
INSERT INTO tablename2 (columnname(s)) ...
Arrays in JavaScript
JavaScript Arrays : Array is a like a container which contains the same type of objects or elements. Arrays has fixed length. We can access the array elements using the index value.The index of the array starts from 0.
Example of creating ...
How to load page from the browser history ?
History go() method : The history object has the go() method which is used to load page from the browser history. You can choose specific url or index of the previous or next browsed page.
Syntax of the go() method :
history.go(number|...
Transaction on braintree
Welcome to FindNerd. Today we are going to discuss the creation of transaction. We use the sale function for transaction creation. You need to pass the amount,customer id,
and nonce from client side. Please have a look.
$result = Braintree_Tr...
SQL Tutorial -> Sql Syntax
<-- Chapter 1 Introduction to SQL
Chapter 2
SQL Syntax
SQL Syntax : SQL syntax is basically followed by sql commands which modifies the database tables such as "users" , "students" etc. All the SQL statements always starts with the key...
How to block all incoming calls in android
To block all incomming calls in your android device we have to use a class Broadcast Receiver. Broadcast Receivers simply respond to broadcast events from other applications or from system itself. All the events are notified once the event occure...
How to capture screenshot in Appium ?
There are many times when we run our testcases there might be the possibility that testcases may fail and when the testcase may fail then the screenshot of the screen should be captured. We should use the following code to capture the screenshot:...
How to use json_encode() function in php ?
Hi Reader's,
Welcome to FindNerd, today we are going to discuss how to use json_encode() function in php ?
So, Firstly let us know what is the use of json_encode() function ?
JSON stands for JavaScript Object Notation. json_encode() is ...
Converting Themeable functoin to templates, Drupal 7
The final option is the creation of individual template files that are dedicated to overriding specific themable functions. This could be very helpful for the designer as PHP developer have done his work and designer now can do this XHTML and...
Token generation in braintree
Welcome to FindNerd. Today we are going to discuss the client token generation on braintree. You can create a unique client tokens for different process. Please
have a look.
public function getBraintreeClientToken($customer_id = null)
{
...
Overriding Theme functions, Drupal 7
Overriding functions
Themable functions can be overridden by copying the functions and placing them in the active theme's template.php file though the template file is optional but this is the only file you can use override the function defied...
How to make a download link ?
Hi Reader's,
Welcome to FindNerd, today we are going to discuss how to make a download link ?
So we will use HTML anchor download attribute for making a download link.Because The download attribute is used to specifies that the target will...
Overriding the Default Styling, Drupal 7
Overriding the Default Styling
Three approaches we can adopt to override templates in Drupal 7 Themes
Overriding templates
Overriding functions
Converting themable functions into new template
Theme Registry Plays a vit...
Customer creation on Braintree
Welcome to FindNerd. Today we are going to discuss the customer on braintree. Braintree is a company of paypal which provides different payment tools. You need to
integrate the library of braintree with your project. It is available in differen...
What is the use of fgets() in PHP ?
Hi Reader's,
Welcome to FindNerd, today we are going to discuss what is the use of fgets in PHP ?
Firstly let us know what is fgets()
The fgets() function is used to return a line from an open file.
syntax of fgets()
fgets(file...
How does caching helps and how to use caching in jQuery?
Hello Readers,
In jquery when we use the two or more than two same id's as a selector or elements and operate over jquery event than sometimes effect on its performance due to caching.
For Example :
$("#mydemo").css("color", "red");
//...
To find duplicate records in SQL
In SQL if we dont have used primary keys then our id gets repeated accidentally or unintentionally.
In this case we need to find out how many records are same. We need to find out the same tuples or rows from a table.
For doing that...
jquery function after() and before()
Hello Readers,
We can use .after() and .before() methods for different tasks.
If we want to add any other HTML tag or content after or before define HTML tag, then we can use these jquery methods for the same tasks.
Example: meth...
How to set different menu for different page in wordpress
We can set different menu links for every page in wordpress. Sometimes we get the requirements from the client to have different menu links for every pages. It can be done, Its quite coding part. For each pages we have to set different menus from...
How to clear field in Appium ?
There are many times that we have some fields that were prefilled and we have to pass some value in the field. So, we first have to clear the textbox and then click the pass the desired text in the field.
Suppose we have to check the login funct...
How to use Limit clause in MySQL Query
This tutorial explains how to use limit clause within MySQL query to fetch records. The MySQL LIMIT clause is used to limit the number of records returned from MySQL query by using value passed with LIMIT clause. Limit clause is used with the SEL...
How to redirect 404 error page to custom 404 page
When a visitor visits any wrong URL in the site , they see 404 not found error comes from server side by default. We can redirect the visitor from any invalid URL to any of the custom page or any page we want. For the most of the sites , we see t...
Bound Services - Xamarin
Hello all,
In this blog we will discuss about Bound service in Xamarin.Android.
A Bound service at its core is just a service like a started service and a Bound service allows you to get a reference to that service which is within your acti...
How to disable Updates in WordPress ?
The simplest way to disable word-press updates by installing and activating Disable Updates Manager plugin from the given below link.
[https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/][1]
WordPress updates disable by Manua...
Making different colored type alert box with less
For example Lets create an alert box, so for this we define the base styles; some padding , a border and background.
To start with it, we have to set out the list of colors and name variations of the alert box. Then count the number of variati...
Relationship between Activity lifecycle and asynctask
An Asynctask doesn't depend on Activity life-cycle that contains it. Like if we start an AsyncTask inside an Activity and then we rotates the device, the Activity will be destroyed at that point but the AsyncTask will remain same or not die until...
What is Cookie ?
What is Cookie ?
Normally cookie is known as a little fragment of the information which is dispatched by the web server to save on a web browser, after that it can be interpreted by the browser. Therefore browser reminds few particular indivi...
Check for target activity available or not
We know that implicit intents are used to perform an action that your application can't but others can do.
Like to send some sms we uses this intent :
Intent intent = new Intent();
intent.setAction(Intent.ACTION_SEND);
intent.putExtra(In...
Change time zone in CodeIgniter
Some time developer wants to change the timezone in codeigniter application. There is may way to change the timezone in codeigniter. Here I am explaining you the best way to change the timezone in codeigniter, which is-
First open the index.ph...
Add CSS in html tag using jQuery
Hello Readers,
Probably, we need to add css property in HTML tag using jQuery.
Here I am describing different kinds of syntax to adding style property using jQuery
1.) If you want to add single css property using jquery, then you...
What is phpScaffold
phpScaffold
Scaffold is a powerful standalone PHP class that dynamically creates CRUD functionality for a database table. It is designed to dramatically decrease the time it takes to get your database-driven application up and running.
phpSc...
Difference between =, == and === in PHP
In PHP programming, Many times we have seen and used different operators of PHP. This article demonstrate the difference between the operators which looks identical but used for different operations. In PHP we have three types of equal sign (=) o...
How to create log file in PHP
If you want to debug a large amount of data. You need to create a Log file with the following piece of code.
$file = fopen ( "testfile.txt" , "a+" );
fwrite ( $file , serialize ( print_r ( $_POST , true ) ) );
fopen(): It is inbuilt func...
Time Zone Function in PHP
If your server is on a different location and you need a synchronization with it to get in the proper time. Then you need to get the correct time according to that specific location.
To do so the timezone to the specific location.
This can be...
Date and Time in PHP
The date function in PHP is the one which formats the timstamp to a readable form.
The Syntax of it is as :
date(format,timestamp)
The required format function is to specify the format of the date and the timestamp Specifies default curr...
how to read single line and character from a file?
Read Single Line: fgets()
To read a single line from a file fgets() function is used.
For example: Suppose we have a file 'demo.txt'. The script given below results the first line of the file:
<?php
$filename = fopen("demo.txt", "r") ...
How to use javascript function in Odoo-9
In javacsript function first we have to move on src file and open the .js file and go one step further by creating a javascript file, name it tutorial_editor.js and place it into the static folder.
For example you can see be...
Dropping snippet onto the page in odoo-9
For drooping the snippet onto the page first we have to open the src file, add some class and css feature in css file and jas file after that clicks on an option, the system will add the class specified in the data-select_class attribute.
By rep...
Default option methods in odoo-9
In odoo-9 Options apply standard CSS classes to the snippet. Depending on the method that you choose, the UI will behave differently.
For example you can see below.
<template id="snippet_testimonial_opt" name="Snippet Testimonial Options" ...
theme folder in odoo-9
In odoo-9 first we have to install odoo theme module then after We just created a template specifying our less file. As in below code you can see that, the template has a special attribute named inherit_id. This attribute tells Odoo that our...
How to Add Styles in odoo-9
In odoo-9 first we have to install odoo website builder module after this, lets first create an empty file and named it style.less and place it in a folder called less in static folder. The following rules will style our ...
How to create a specific page layout in odoo-9
To create a specific page layout in odoo-9 you have to first install odoo website builder module and after then at the top you need to ass a whole list of services and provide the possibility of settings to the user interface for the rest of the ...
Styles in odoo-9
In odoo-9 use Style and Css to make for dynamic website. Styles are defined using standard CSS files. You can define a style as default or optional. The default styles are always active in your theme, the optional styles can be ena...
Odoo default theme structure
Odoo default theme structure have many feature to given below.
1- Website builder
2- make odoo structure
3- build website within hour
4- Basic layouts for pages, blog and eCommerce
5- Website Builder integration
6- Basic Snippets
7- Autom...
CMS in Odoo
CMS is the most important part of the Odoo/OpenERP. Its help to use in Odoo dynamic website.
CMS helps to make structure acts as a design foundation that you have to update over time to ensure compatibility within your CMS. For example see ...