
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 use Event binding on dynamically created elements in JQuery
Hello Guys
In JQuery, Events trigger a JQuery function to an event handler for the selected elements in the Html page.
Currently we are using jQuery 1.7, So you should use jQuery.function.on() as below :
$(staticAncestors).on(eventName,...
How to use array_slice() function in php ?
Hi Reader's,
Welcome to FindNerd, today we are going to discuss array_slice() in php ?
The array_slice() function is used to for returning selected parts of an array.
syntax of array_slice()
array_slice(array,start,length,preserve...
What is jquery hasClass() method ?
Hello Readers,
hasClass() is the jquery method which is used to check the any classname of the selected elements. If we find the name of the class of the selected element it return true else return false.
Syntax :
$(selector).hasClass(cl...
Display a random entry from a MySQL database in PHP
To display a random entry from a MySQL database we need to use a MySQL function rand(). To display the entry from MySQL database in PHP following script is used:
<?php
//connect to server with username and password,
$connection = mysql_co...
How to write custom mysql query in Wordpress
Hello Guys,
Some time we need to custom mysql query. If you are looking to write custom mysql query in Wordpress. Please follow the code for the same::
global $wpdb;
$sender_name = $wpdb->get_results("SELECT first_name,last_name FROM se...
What is jquery has() method ?
Hello Readers,
has() is the jquery method which is used to return the new jquery elements or objects that have one or more elements inside of a subset of the matched elements or matches the given selector in jquery.
Syntax :
$(selector)....
sizeof() Function in PHP
In php the sizeof() Function returns the number of elements in an array.
Syntax
sizeof(array,mode);
The argument array specifies the array and the mode specifies whether to count multidimensional array or not
the value 0 specifies do...
Tips to remember while Crowdsource testing your applications with the group?
The fundamental differences between crowdsource testing and Software testing outsourcing is that, in crowdsource testing, testers/analyzers might fit in with diverse work environments. In outsource testing, the testers are from the same organizat...
How to get last key in an array in PHP ?
Hi Reader's,
Welcome to FindNerd, today we are going to discuss how to get last key in an array in PHP ?
we need in some cases the last key or last element of an array in PHP.
So We are using array_slice() function for getting only the ...
What are the Advantages/Disadvantages of Crowdsource Testing?
What are the Advantages of crowdsource testing?
There are a few advantages/interest to crowdsource testing:-
- The center testing team might not have every one of the assets to test the softwaret in different environmentss and in diverse ...
Ckeditor in Android and Iphone
Hi All,
Recently I faced a problem with the Ckeditor not working on the Android and iPhone. After a great R&D I came to know there is an issue with the Ckeeditor and due to some security issue it has disabled its functionality from working...
How to generate the barcode for product in Odoo9 ?
Barcode is the most important part of point dale module its indicate the unique number of any product in stocks. So you will need the following kind of python code declaration in your .py file:
from openerp.osv import fields, orm
from opener...
How to use key() finction in php ?
Hi Reader's,
Welcome to FindNerd, today we are going to discuss about key() function in php.
The key() function returns the index element of the current array position.
Or we can say that returns the element key from the current internal ...
Resolve Generic Engine spellcheck reindexing causes java.lang.NullPointerException
Hello Guys
Many times we are getting NullPointerException in our liferay server log during upload, upadte and delete files.
Error look like as below in our server log :
20:22:50,828 INFO [liferay/search_writer/SYSTEM_ENGINE-3][Ba...
How to use end() finction in php ?
Hi Reader's,
Welcome to FindNerd, today we are going to discuss about end() function.
The end() function is used for printing last element of an array.
It is advances array s internal pointer to the last element.
syntax of end() functio...
SQL Tutorial -> Sql Injection
<-- Chapter 20: SQL DELETE
Chapter 21
SQL INJECTION
SQL Injection is an injection attack wherein attacker is able to submit a database SQL command which is executed by a web application exposing back-end database. Attacker can add SQL ...
What is Crowdsource testing - CrowdTesting?
Crowdsource testing, otherwise called crowdtesting, is the act of conveying model software and products to broad groups of people for testing as opposed to having testing performed inside.
Crowdsourced testing is a developing pattern in softw...
How to to get date and time in diffrent formats in android?
If you want to display date and time in multiple formats from your android device then here below given the methods to achieve it.
// Type of format you want,
String format="yyyy/MM/dd hh:mm:ss";
String format2="yyyyMMdd hhmmss";
String for...
How to use redirect in Wordpress
Hello Friends,
While developing a website we need to redirect from one page to another. We use different type of redirection in different-different development languages and framework and CMS. If you are looking to use redirection in wordpress...
SQL Tutorial -> Sql Delete
<-- Chapter 19: SQL UPDATE
Chapter 20
SQL DELETE
DELETE statement is used to delete a particular data Rows from Database Table with the help of WHERE clause. Without WHERE clause all rows will be deleted.
Lets see an example from th...
Decimal to Binary, Hexadecimal and Octal conversion
Decimal to Binary conversion
To convert decimal to binary conversion a function decbin() is used. Syntax:
decbin(number);
Example:
<?php
echo decbin("43") ;//specify the decimal that is need to convert
?>
Decimal to He...
How to update record in Wordpress
Hello Guys,
If you are looking to update data in wordpress database, please follow the below example::
global $wpdb;
$address_data['state'] = $_REQUEST['state'][$i];
$address_data['country'] = $_REQUEST['country'][$i];
$address_data['zip...
SQL Tutorial -> Sql Update
<-- Chapter 18: SQL INSERT
Chapter 19
SQL UPDATE
UPDATE statement is used to update existing table data in database table with the help of WHERE clause.WHERE clause tells which record is to be updated.
Lets see an example from the b...
Multiple Highcharts on a single webpage
Hi All,
In my latest project I needed to implement multiple Highcharts on a single webpage and to accomplish that I used the following approach.
The main objective of this blog is to cover three things:-
Multiple Highcharts on a single ...
How to make Progress Dialog with spinning wheel in android
In the below example I have created Progress Dialog with spinning wheel code function. Here I have used ProgressDialog function and I have used onClick method in the MainActivity class. And In Activity_main.xml I have added a button. See the belo...
What is Auto-increment keyword in MySQL?
Auto-increment is used to allow a unique number when a new record inserted into a table. Generally we use Auto-increment to create value for primary key field automatically when a new record is inserted into a table.
Syntax:
The below stat...
Degrees / Radians conversions in PHP
To convert degree to radians and radians to degree following function are used:
<?php
//degrees to radians function
function DegToRad($degrees)
{
return $degrees * 3.14 / 180;
}
//radians to degrees conversion
function RadToDe...
Display MySQL server information in PHP
To display MySQL server information in PHP a function mysql_get_server_info() is used. It returns version of MySQL server on success else false.
For example:
<php
//enter your hostname,username and password of mysql
mysql_connect("loca...
SQL Tutorial -> Sql Insert
<-- Chapter 17: SQL ORDER BY
Chapter 18
SQL INSERT
INSERT INTO is the SQL Statement used to insert data in database table in the form of rows and columns.
Lets see an example from the below table "employees" :-
employee_id
...
What is Agile Testing?
Agile is a Software development technique . In this sort of development model individuals comprise of a cross-useful agile group . Very specialized analyzers with excellent domain knowledge comprises the team. Little parts or modules of software ...
How to traverse a Multidimensional array in PHP?
Multidimensinal array is the array of arrays. You can store multidimensional array as follows:
$arr=array(
array(1,"demo1","demo2"),
array(1,"demo3","demo4"),
array(1,"demo5","demo6"),
array(1,"demo7","demo8")
);
To traverse a multid...
Razor in .NET
Razor is a syntax which add server-based code to web pages. Razor engine in .NET is used in place of ASP engine for running applications.
The page contains ordinary HTML markup, with one addition the @marked Razor code.
See the ex...
Computes the difference of two or more arrays with additional index check
If you want to compute the difference of two or more than 2 array with index means to compare 2 array with the index of arrays for this you can use the predefined PHP function "array_diff_assoc()".
array_diff_assoc() compares array1 against arra...
Laravel MySql RAW Update, Delete or Select
Hi All,
Recently I needed to update, delete and select using RAW query in Laravel 5.0. When I searched the internet the only query I was able to find out is the select query but I need to accomplish both update and delete also.So after little ...
How to interchange values and keys of an array in PHP
Hello Readers ,
The array_flip() function exchanges all keys with their associated values in an array.
Say we have array array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow"); and we want to interchange key and values of an a...
array_fill_keys() in PHP
Hello Readers ,
The array_fill_keys() function fills an array with values, specifying keys.
For Example we have an array array("a","b","c","d"); and we want to put "blue" in all values of a key. See the below example.
<!DOCTYPE html&g...
How to locate user postion using HTML5 Geolocation
You can easily locate user position using Geolocation API. It is used to get the geographical position of user. However it is much more accurate for devices like iphone with GPS. We can find the user position by using etCurrentPosition() method...
Count the frequency of values in an array
Hello friends,
If you want to count all the values in an array means you want that how much time a value is exist in an array then you can use a predefined PHP function which is "array_count_values()". array_count_values() returns an array usi...
array_diff_assoc() in PHP
Hello Readers ,
Suppose we have two three array it will search with all three arrays and return an array that contains the values from array 1 that are not present in rest of the array
Example :
<?php
$a1=array("a"=>"red","b"=&g...
How to count the value of an array in PHP
Their is function called "array_count_values()" which will count all the values of an array.
Lets suppose we have an array **array("A","Cat","Dog","A","Dog");** and we want to count the values of an array.
Example :
<!DOCTYPE html>...
Compare strings in php
You will always get a situation where you want to compare the values with each other whether with the integers or with the string comparison.
We can easily compare two strings with the help of comparison operator.If the two strings are equal to...
How to Combine two arrays - one for key and another for value
Hello friends,
If you want to combine 2 arrays in which 1 is used as a key and another as value then you can use a predefined PHP function which is "array_combine". array_combine function creates an array by using one array for keys and anothe...
Slug in PHP
Hi All,
Slug :- It is a part of the URL to makes the URL more user-friendly. There are also many other advantages of the Slug. Firstly, search engines such as Google will rank your page higher for the keywords contained in the URL Secondly, us...
What is Cookies and its types?
Cookies are the records which are stores in users PC, cookies are intended to store an unobtrusive measure of data/information and the information can be gotten to by customer or web server.
There are taking after kind of cookies:-
1. Ses...
get a array of a column from a multidimensional array
Hello friends,
Here I am explaining that if you want to get all the values from a specific column from a multidimensional array then you can use a php predefined function which is "array_column()".
array_column returns the values from a sing...
How to use array_combine() in PHP.
Hello Readers ,
Suppose we have two array's .
$fname=array("Peter","Ben","Joe");
$age=array("35","37","43");
The array_combine() function creates an array by using the elements from one "keys" array and one "values" array.
Example ...
How to find the number of days until a particular date?
To find the number of days until a particular date you need to write the following PHP script:
<?php
$date1="December 31,2015";
$date2=strtotime($date1);
$date3=ceil(($date2-time())/60/60/24);
echo "There are " . $date3 ." days until $d...
How to splits an array into chunks of new arrays
Hello Readers ,
If we want to split one array into bunches of new arrays then their is a PHP function named "array_chunk()" that we can use.
The array_chunk() function splits an array into chunks of new arrays.
<!DOCTYPE html>
<...
how to change all keys in an array to lowercase.
Hello Readers ,
If we want to change the array key lower case to uppercase and vice versa then their is PHP function array_change_key_case() .
Example.
<!DOCTYPE html>
<html>
<body>
<?php
$age=array("Peter"=...
Split an array into given length of array
Hello friends,
Here I am explaining, if you want to split an array into given size element(length) of arrays then you can use array_chink() predefined function of php. array_chunk function chunks an array into arrays with size elements and may...