How to use strtotime() Function in PHP ?

The strtotime() function parses an English textual datetime into a Unix timestamps (the number of seconds since January 1 1970 00:00:00 GMT). Syntax of strtotime() Function strtotime(time,now); you can see belloe example: <?ph...

Multiple Inheritance in C++

C++ supports multiple inheritance unlike java. In multiple inheritance a class in C++ can have more than one class as it's parent class i.e., it can inherit property from more than one class. class Area class Perimeter ...

union in C

A union is a special data type available in C that allows to store different data types in the same memory location just like structures in C. Union uses a single shared memory location which is equal to the size of its largest data member. It...

Inheritance

In c++ inheritance is used in a concept of re-usability of code.In Inheritance there is a super/base class and sub/derived class. The base class act as a parent of the derived class. The derived class can inherit the properties of the base class....

How to send a mail using php ?

In this blog we will see how to send a "Simple Text Email" ? The Php mail( ) function is used to send Emails in PHP. There are three main parameters we have to pass for sending a simple email and one is optional parameter. There 3 param...

Friend Function

Friend Function These are special functions which can access the private members of a class. Private and protected data of class can be accessed from a friend function. Declaration of Friend Function class className { .........

Input Output

The C++ standard libraries furnish a substantial wind up of input/output. C++ I/O occurs in streams, which are lineups of data. If data flow from a device like a keyboard to main memory is called input operation and if data flow back from main m...

Use of none_of function in C++

none_of function is used to test condition on the elements in a range[first,last), it will return true if the test condition is false for all of the element in the range or if the range is empty, else it will return false. To use this function w...

Example of ServletContextListener Interface in Servlet

ServletContextListener Interface : In almost every web application there is a common scenario that application should need some pre-initialized data before starting the application. There are some actions which we need to perform before applicati...

Merge Sort Algorithm

Merge sort is a sorting algorithm that uses "Divide and Conquer" method to sort the array.It divides the array into two halves and then recursively sort the two sub-array and then merge the two sorted sub-arrays into sequence. Time complexity ...

How to upload database dump in Odoo ?

The upload method https://upgrade.odoo.com/database/v1/upload/ use this link to Upload a database dump Parameters key (str) -- (required) your private key request (str) -- (required) your request id Returns request result Return type jso...

Overloading vs Overridding

Overloading : Same function name with different parameters/signatures. It is compile time polymorphism. It occurs in a same class methods. It is a static/compile time binding. For e.g: int sample() { cout<<"no argu...

How to create a database using upgrade request in openerp

To upgrade list of each database given information about one particular error. Each dictionary can contain various keys depending on the type of error but you will always get the reason and the message keys as below: reason: the error type mess...

How to make Radial Gradient in android

Using below Layout code you can create a Radial Gradient, Here I have created a Gradient.xml layout by using shape and gradient property. By using GradientDrawer we can make smooth transition between two or three colors in liner, radial or sweep...

Popup with Bootstrap

Welcome to Findnerd. In web development we need popup for different requirements then we start finding the third party jquery plugins which could meet our requirement. but sometimes we puzzle with these plugins. Here we are describing one other ...

Check for blank spaces in a sentence without using regex.

For this , we can use jQuery function named as split().Using split() function we can check easily that whether a input string have spaces or not. split function accepts first parameter a delimiter , second parameter is a string and split fun...

SQL Joins Introduction

SQL JOIN is used to combine data from two or more different table based on a common field between them in a relational database. There are 5 types of JOIN: INNER JOIN LEFT JOIN RIGHT JOIN FULL JOIN CROSS JOIN INNER JOIN:...

Asking to process your request in Odoo server

This action ask the upgrade platform to process your database dump. The process method is below Use the below link to download the Dump Database https://upgrade.odoo.com/database/v1/process To process a database dump Below are the Para...

Use of any_of function in C++

any_of function is used to test condition on the elements in a range[first,last), it will return true if the test condition is true for any of the element in the range, else it will return false or if the range is empty. To use this function we h...

Progress bar with bootstrap

Welcome to Findnerd. Today we are going to learn the progressbar building with the help of bootstrap. We all knows the bootstrap uses different classes for different purposes so we will use the class named progress-bar, progress. Please have a l...

How can create a countdown timer using javascript?

To create a countdown timer please check the below example :- Example - In this example let's suppose a user fill a form and at that time we want to limit the form filling time to 5 minutes and at the same time we want to show that user h...

Add image over another image

Using few lines of code we can add one image over another image. It is useful when we need to add a watermark image over an image. -(UIImage *)imageWithWaterMarkImage :(UIImage*)topImage originalImage:(UIImage*)image { CGSize size = imag...

How to create request method on odoo server ?

If the create method is successful, the value associated to the request key will be a dictionary containing various information about the created request: 1-id: the request id 2-key: your private key for this request For example code is like b...

Started with Bootstrap

Welcome to Findnerd. Bootstrap is a most popular front-end framework. Frontend framework works in client side such as HTML,CSS and JS development.Bootstrap is an open source client side framework.Bootstrap is also known as Twitter Blurprint. Mar...

How to use date() Function in php ?

The date() function formats a local date and time, and returns the formatted date string. Basically uses of The date() function formats a local date and time. The date() function returns the formatted date string. syntex of date () funct...

How to check image extension before uploading a image ?

There are many way to check image extension before uploading. But "in_array()" function it is very useful way to check image extension when you are uploading a lots of extensions to validate. if the "in_array()" function fails, this mean c...

Different types of SQL Joins

The SQL Joins are mostly used to combine records from two or more tables in a database for getting data. A JOIN defined as combining fields from 2 tables. There are several operators that can be used to join tables. The opertaors that are used...

How to ignore HTML content with tags using PHP

Hello Reader's If you want to make an function which truncate all the html contents and ignore them then you can uset the Sren Lvborg printTruncated function making it UTF-8 (Needs mbstring) function. It's example as below:- /* Truncate HTML, ...

How to send email using AJAX request?

Hello Reader's If you need to make ajax request that send the email in backgournd page then you can use the code below:- $('#submit').click(function() //specify your selector of form { $.ajax({ url: sendemail.php, // your action...

What is shuffle in PHP

Hello Reader's, If you want to know about shuffle function in PHP then this article is helpful for you. Lets say you want to generate 100 numbers on a random basis, a good way would be to generate an array with the numbers in order, then shuffle...

How to give output an image using PHP

Hello Reader's if you want to give output as an image then you can use the code below:- You can use finfo (PHP 5.3+) to get the right MIME type. $filePath = 'yourfile.ext'; $finfo = finfo_open(FILEINFO_MIME_TYPE); $contentType = finfo_fil...

How to use fgets in PHP

Hello Reader's If you need to read a given file line by line then PHP will offer you to use Fgets to do. Lets see it's example as below:- $handle = fopen("yourfile.txt", "r"); if ($handle) { while (($line = fgets($handle)) !== false) ...

Difference between array_key_exits and isset in array

Hello Reader we almost have header about array_key_exits and isset but you need to know the diffrence between them. Lets take an example below:- array_key_exists will only work when your key have an element and doesnt matter it is null, but is...

Show Content in "List View" Only when "Switch" is "On"

Description : I have created a App with single tab and created a switch, List View. I have to show content of "ListView" say RSS Feed only when the switch is turned ON, and Hide the content of "ListView" when Switch is turned OFF. Can you help...

How to send an email using Gmail SMTP with PHP

Hello Reader's! If you want send an email with secure SMTP with you should choose google gmail smpt. And the code liberary is here:- $mail = new PHPMailer(); // create a new object $mail->IsSMTP(); // enable SMTP $mail->SMT...

Truncate a given sting just after a fixed count of chars using PHP

Hello Reader's! if you want to short a given string on fixed number of chars then php offers you many ways. Below is one of them, you can use this code for the same. Lets see the example below:- $sting_given = "1234567890134667896abcdtiABCD...

How you can stop the re submit of form using Unique id of form

Hello Reader's!, If you need a nice method to stop the form from again and again submit via refresh, PHP offers you many ways like header redriect or unset the $_POST but a pretty way is to implement a unique ID into the post and cache it in the...

How to unzip a file uisng PHP

Hello Reader's!, If you have a zip file and you need to execute unzip the file using PHP, Then you can use the PHP liberary code below:- // Lets say you have zip file in the same folder of php file. $file = 'file.zip'; // get the absolute ...

Getting error for using the session variables used in PHP

<?php session_start(); include_once('config.php'); $user=htmlentities(stripslashes($_POST['username'])); $password=htmlentities(stripslashes($_POST['password'])); // Some query processing on database if(($id_user_fetched<=$id_...

How to convert a given XML into PHP array

Hello Reader's!, If you are developing the website that takes input in XML and you want it to convert in PHP, Then you have to use some of the library extensions to do so. Let suppose you have the XML as given below:- <tag1Version="1.0"&...

How to send and email without SMTP using PHP

Hello Reader's! If you are new to php and need to send emails then PHP offers you many ways. But you can use the PHP code below, It's simple and does not use yourSMTP. Create a PHP page sentemail.php <?php if(isset($_POST['s...

How to install Skype in Ubuntu

Skype can be installed in your Ubuntu system in various ways. Here i am going to tell you 2 popular ways to install skype on your Ubuntu system. The GUI Way of installing skype For this we will use cannonical partners repository. We n...

print drupal 7 db_select() query

This how you can can print the query with parameters generated by db_select() . print strtr((string) $query, $query->arguments()); die; //Stop execution here and show me the query make sure you print it befo...

ListView populate from bottom

To populate a listview from the bottom, we just need to add the attribute stackFromBottom on listview from xml file. Then set it to true like this <listview android:stackfrombottom="true"> </listview>

How to implement validation for empty input field with jQuery?

Whenever we create a form, we always have a requirement to put validation for empty fields on some input fields. We usually implement this functionality by putting checks on "blur" and onFocus events of the input field. Example: In the below e...

Add region/state of the country in magento

Sometime we need to have dropdown for states related to countries just as we have for United States by default, for that we need to add states of particular country. To add custom states we need to modify the tables of magento. There are two tabl...

How to Create Group in Twitter

Hi Guys,   Today, we are discussing about trending and hot topic in Digital marketing i.e How to make a Group in twitter. When I search on INTERNET it show me Group when number of person or things are categorized, gather together is c...

Change the background image and color in Ubuntu

Change the background in Ubuntu : Ubuntu is an open source operating system used widely in the market. Ubuntu is powerful and almost very user friendly. It has the GUI features so that user can do his most of the tasks using GUI interface. Here w...

Site Optimization with SEO & SMM Work Plan for Better Results

    Dreaming to be on top results of search engine require superior quality efforts SEO and SMM work. The work should not only be smart but it should have been implemented with extremen planning. If you plan search engine opti...

How to apply validation on checkbox with jQuery?

Sometimes we need to check whether a checkbox is checked or not. We can do this easily by using "checked" attribute of a checkbox. Example: In the below I have created a function validateCheckBox() that checks whether a checkbox is checked or ...
1 186 292