sort() method of JavaScript Array

JavaScript Array sort() method : The sort() method is used to sort the elements of the array. By default sort() method sorts the elements in alphabetically ascending order. But in case of array contains the numeric values as a string then it will...

How to set database configration in Codelgniter

Hello Guys, If you are looking set database configuration in Codelgniter. Please follow the below step for the same:: 1) Open the file application/config/database.php and complete the below information: $db['default']['hostname'] = 'localh...

Whats a Manager to Do?

There's most likely about it, the harasser's chomp is hard. Other than adding to the anxiety and fear of collaborators and low confidence, working environment spooks can cost their organizations critical measures of cash. The concealed expense of...

How to apply security patches in magento using php file

We need to upgrade our magento setup time to time with release of the editions because of security reasons. Sometime we need to apply the security patches also to resolve security issues. Here I am explaining how to apply securtiy patches without...

What should be the Positive Attitude to Run Business?

What is the arrangement with everybody looking at keeping up a positive mental state of mind? What does keeping up an inspirational state of mind for business need to do with expanding achievement? Companions, family and business relates all say ...

token-input Drop Down Overlapping issue in Popup

"Token-input" plugin has an issue with it. That is the drop down <div> which is added dynamically to the body it do not work properly if the input box on which tokenInput is bind to is in the popup. As the drop down is created some where ou...

How to set conditions in Find function of cakephp2.x

In cakephp we might be familiar with the simple find("all") and findById() functions. But fetching data with some conditions like we write select query with where condition. lets us first look at simple find function $this->User->f...

How to combining two strings together in PHP ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss combining two strings together in PHP. The PHP concatenate(.) is used for combining two string values and create one string. you can see bellow example: <?php /...

Apply A Smart Filter In Photoshop cc 2015

Step 1 : Convert The Image Into A 'Smart Object' First we need to change image in to Smart Object. I have Open image in Photoshop cc. as you can see in the background only one layer, we have to convert this layer to smart...

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...
1 159 292