
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
Cron job process in wordress
Welcome to FindNerd. Today we are going to discuss the concept of cron in wordpress, how we can set up the cron in wordpress. We use the cron_schedules filter to set
the time intervak to schedule, ewp_send_email_cron_hook function to check the n...
Different position values used in xpath
In Odoo/OpenERP many times we need to inherit views in order to add/remove/replace few elements of the original view. Simple use of `` can make that easier. With this tag we have to provide an attribute called "position". This attribute contains ...
What is chaining in jQuery?
Hello Readers,
In jquery chaining is the technique and most poweful feature. It means we chain the one or more methods or events to one selectors or elemnts.
Because of this it short the code level as well as its performance (means it gives...
What Are Meta Refresh or Re-direct Tags?
About Meta Refresh or Re-direct Tags
Meta Refresh is a process which gives instructions to a web browser to refresh the current web p...
serialize and unserialize function in php
Serialize is a function which is used to convert a storable representation of a value. It converts an array into string containing a byte stream representation of a value.
<?php
$serializeddata = serialize(array('apple', 'mango', ...
How to get the base url in cakephp ?
Hi Reader's,
Welcome to FindNerd, today we are going to discuss how to get the base url in cakephp ?
If you want current base or Get current url.
You can take reference of bellow example
suppose your project URL is http://localhost/pro...
What is proccess to get the file extension in PHP ?
Hi Reader's,
Welcome to FindNerd, today we are going to discuss What is process to get file extension in PHP ?
There are many ways for getting the file format or extension of any file.
In bellow example you can see how to get the file forma...
Endpoints in SQL Server
Endpoints in SQL
For providing TCP/IP communication between your SQL and other applications you need to create end point for that .
Creating end points is a series of steps
Message
Contract
Queue
Service
Route...
Ajax request in YUI
Here is the simple example of YUI ajax with Post and Get method:
POST request:
var callback = {
success: function(o){
alert(o.responseText);
},
fa...
How to make Sensor in android
If you want to create Sensor function you can use my below example code. The android platform supports three categories of sensors. 1st Motion Sensors, 2nd Environmental sensors and 3rd is Position sensors. In the below code I have used SensorEve...
Using Git Flow on a Drupal Project
Git is very useful in these days to manage your code repository. It is very useful when there are multiple repositories and multiple developers working concurrently. I found below content very useful. It is also assume that you are familiar with ...
How to delete cache in magento
We can remove the cache from the root folder of the magento in the root path by deleting the files in cache folder of the path /opt/lampp/htdocs/magento/var/cache
The another way is to delete magento cache by usign magento admin panel as :
...
Joomla session
Sessions provide a very easy way to make data persistent without the need to constantly pass it through URL's or hidden form fields.It is used to store user data over certain period.It is stored on web server.
create session object.
Session ...
How to prevent model box to close box by screen click ?
If your model box getting close by some where click on screen outside of your popup box. You need add following attribute in your model box:
data-backdrop="static"
data-keyboard="false"
your model box will appear like this
<div class...
Convert string into lowercase and uppercase in PHP
Hello everyone, this article demonstrate some useful PHP functions which can be used to change string case into lowercase and uppercase. The article also demonstrate some other functions which can be used to convert first character of each word i...
Do We Need to Use Doorway Pages Strategy in SEO?
As an internet marketing expert we follow several SEO strategies in order to increase the number of visitors and to increase the ranking of keywords in the search results for certain set...
Dynamic Memory Allocation using malloc() in C
The malloc is an acronym of "memory allocation". This function allocates the requested size of bytes to a variable and return a pointer of type void.
Syntax:
p=(type cast *)malloc(size)
Here p is a pointer.
Example:
Calculate the s...
How to use Net Beans with Ruby on Rails
Net Beans is an IDE which can be used with many programming languages. We can use it for coding in Ruby on Rails as well.
You can follow the following steps to get started :
1) Download the sh file for the latest version of net-beans.
...
Secure file download in php
Welcome to FindNerd. Today we are going to discuss the concept to download a file securely in php. We all knows, we can not share a adjust file location to end user.
We can set the header for file name, type and size. Please check the below code...
Sin Method in Javascript
The sin method of javascript defines a sin of a number. Where the number is a numeric expression, representing the size of an angle in radians. See the syntax below -
Syntax:
Math.sin(number)
The sin method returns a numeric value betw...
How to create joomla plugins
Plugin is an extension which provides a function that is associated with any trigger events. Following are the files required for creating a simple custom plugin in Joomla.
1 myfirsttest.xml
2 myfirsttest.php
3 index.html
First for creati...
event.PreventDefault, event.stopPropagation and return false in jquery
Hello Readers,
event.PreventDefault() : In jquery event.preventdefault is used to prevent the current action or the default action event from occuring or happening or triggering. It does not stop the propagation to parent DOM elements.
For...
How to remove parent theme Action and Filter in wordpress child theme
Hello readers, today we discussed about How to remove parent theme Action and Filter in wordpress child theme.
Some theme have its own hook function that change theme behavior and functionality.
Some example are below, Right now I am not goin...
jQuery add() Method
Hello Readers,
We use add() method to add elements with a existing group of elements or selectors.
Syntax: selector.add(selector)
Parameters
Please find the following description of all the parameters used by this add met...
IndexedDB
The indexeddb is used to store the data in the browser. It is not a relational database and stores values in the form of key-pair.
There are different methods used for performing different actions for a database like add(), get(), remove().
...
How to remove parent(or default) javascripts and css in WordPress child theme?
Hello readers, today I will guide you about How to remove parent(or default) JavaScript and css in wordpress child theme.
There are 2 ways to add css and js in your wordpress project.
header.php
functions.php
The below code defines ...
CTE in SQL
CTE Common Type Expression
For providing pivoting in tables say you want to view your data in such a form such that rows comes in form of columns and columns in form of rows. For doing that SQL provide facility to use CTE in SQL
Ex :
Suppo...
How to run an application in background in appium ?
On some action there might a possibility that the application may take some extra time to execute. So, we may execute that application in the background. Appium provides a method through which we can run any application in background.
runAppInBa...
How to check indexes for a database or table in mysql ?
There are chances that you want to check for the indexes that you created on the tables in past because there can be a large number of indexes on numerous of tables depending on the size of the database
If you want to see the indexes for a par...
How to remove parent metabox in wordpress child theme
Hello Everyone, today I guide you to remove parent metabox in WordPress child theme.
You can use remove_meta_box() function for removing parent theme metabox in WordPress child theme.
Put the below code into your child theme functions.php...
Multiplication of integer values using shift operator (Binary multiplication)
There is an interesting way to multiply two positive integer values without using " * " operator and using binary shift operator. The complexity of the program will depends on the number of bits in the binary representation of the multiplier val...
How to read data from CSV file
In PHP it is very easy to read data from CSV file using fgetcsv(), which is used to read data from a CSV file. This function reads each line of a CSV file and assign values into an array. The function returns the array of CSV fields. It returns F...
How to validate an ORS in MDM Hub?
Below are the steps to validate an ORS:
Step 1: Launch the jnlp file.
Step 2: Enter you credential, select the ORS.
Step 3: Under Workbench, select Repository Manager.
Step 4: Connect to Master Database.
Step 5: Select the repository to va...
How to change the background color on a input checkbox with css
Pseudo elements are useful for changing the background colour of the checkbox and radio buttons. We can use :before and :after to change the colour or appearance of the checkboxes. It can all work with css styling.
Example:
<div class="c...
How to print a List is Java?
There are different ways to print a List, below are some example to print a list using:
1. For loop
2. While loop, and
3. Iterator
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
public class printmyList {
...
What is diffrence between echo and print in PHP ?
Hello all,
Welcome to FindNerd, today we are going to discuss the difference between echo and print statement in PHP ?
echo and print both are used to printing a statement.
So here are few important point given below to differentiate bet...
Handling Duplicates using INSERT IGNORE
INSERT IGNORE:
INSERT IGNORE is used for handling duplicacy in a table as it ignores the query if the data is already present in the table and if the data does not exist then new row will be inserted.
Syntax:
INSERT IGNORE INTO tablename...
How to restrict the file type to be upload using PHP
Hello Reader's If you are uploading the attachments with only selected file types then you have to use inarray function.
Let's see the example as below:-
Put the allowed types in an array and use in_array().
$file_type = $_FILES['foreign_...
How to list the visitor to your website using PHP
Hello Reader's if you want to know the users which are accessing your website then you can get them by their IP. Lets see the example as below:-
Try this simple PHP function.
<?php
function ip_info($ip = NULL, $purpose = "location", $...
How to make PHP page as an image in return
Hello Reader's If you have to return a image from PHP page. then you can use the code as written below:-
<?php
// open the file in a binary mode
$name = './img/ok.png';
$fp = fopen($name, 'rb');
// send the right headers
header("Cont...
How to create coma separated string from an array
Hello Reader's if you have an array and you want it to converted into string with separated by coma then by using PHP you can do this as follow:-
You have to use Implode function
$arr = array(1,2,3,4,5,6,7,8,9);
$string = rtrim(implode(...
How to get the name and details of function being called by PHP
Hello Reader's! if you want to get the name of function and method being called, Then by using PHP you can do this as explain below:-
Lets's see the example as below:-
We use the info provided by a php exception, it's an elegant solution:
fu...
How to send email using Wamp server in PHP
Hello Reader's If you are working on your local host and not able to send the email then by configuring your WAMP server you can send email.
Let's see how it is done:-
First just install Fake Sendmail (download sendmail.zip). Then configure ...
How to pass a variable in jQuery from PHP
Hello Reader's! If you want to send variables from PHP to jQuery then you have to use the selectors:-
Lets's see the example below:-
This you have to put in the bottom of php page with the selector is "input[type=checkbox]"
$("input[typ...
How to select images from database and show on page
Hello Reader's! If you have stored the image in database as blob. Then you need a php code to retrieve them and a html page to show them. Lets see an example below how to show them
First create a php page getImage.php and code as written below...
What to you mean by variable $this mean in PHP?
Hello Reader's!
If you have any doubt with the $this in PHP then you can see the example as below:-
<?php
class Person {
public $name;
function __construct( $name ) {
$this->name = $name;
}
};
$t...
How to remove extra white spaces from string using PHP
Hello Reader's! if you are dealing with excess whitespace on the beginning or end of the string then you can use trim(), ltrim() or rtrim() to remove them. Also If have to delete extra spaces within a string consider a preg_replace() of multiple ...
How to dynamic generate password in PHP
Hello Reader's If you want to genrate password in PHP then you can use the code as below:-
you just have to try this, use strlen instead of count, because count on a string is always 1:-
function randomPassword() {
$alphabet = 'abcdefg...
How to unlink a directory by using PHP
Hello Reader's If you want to delete a folder and all the files in it then by using PHP recursive function you can do it.
Let's see on example as follows:-
Before deleting the folder, delete all it's files and folders (and this means recurs...
How to get dates between two given dates in PHP
Hello Readers's if you want to get a recursive set of dates between two given dates, For example
10-12-2105 to 19-12-2015 there are 9 days all will have different dates. By using PHP you can get this as using the code below:-
$startTime = st...