Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to sort the array of objects by date in ascending and descending order using Javascript?

To sort the array of objects by date in ascending and descending order, we are using JavaScript sort() method , as discussed earlier. Below is the code to provide the same functionality. <!DOCTYPE html> <html> <body> <...

Diffrence between print_r and echo in PHP

Although the syntax echo and print in php is almost do same function. On the performance based work there are some difference between then:- Echo is much faster in performance than Print, Since it will not return any value. On the basis of...

General Test Scenarios

General Test Scenarios:- Hello Readers When any software or an application is ready for the testing, on that time testers need some general or basic test scenarios to test the application. By this blog i am sharing few general test scenarios wh...

Text Alignment in CSS

the horizontal alignment of a text can be set by using this property we can aligned the Text to center or to the left or right, or justified. Example h1 { text-align: center; } p.date { text-align: right; } p.main { ...

How to detect mobile device in website using PHP

If you want to know any mobile device is accessing your website, Then the easy way to detect device is to run a php code. Lets see the code below :- <?php $useragent=$_SERVER['HTTP_USER_AGENT']; if(preg_match('/(android|bb\d+|meego)...

How to find current version and database in MYSQL using select statement?

To find the version and the current database you need to execute the following query: Select VERSION(), DATABASE()

Crowdfunding Basics: Everything You Need to Know to Crowdfund Your Next Project

In digital era, crowdfunding has emerged as a great medium for startups and early stage companies to raise funds by reaching out to masses. Crowdfunding means receiving donations from people who you believe will like, support the ...

sort() method in JavaScript

sort() sort() method is used to sort the elements of an array in ascending or descending order. The elements of array sort as strings (in alphabetic and ascending order), by default. Example: var names=[garry, john, anny, harry]; names...

How to extract a number from given string using PHP

Using the PHP will give you several benefit to use code what you want. And taking the number from any given string can be by diffrent - diffrent methods lets se the example below:- $myString = "I have 8 apples"; preg_match("|\d+|", $s, $myS...

onsubmit javascript Event

After submitting the information,user clicks the submit button. <!DOCTYPE html> <html> <head> <script> function confirmInput() { fname = document.forms[0].fname.value; alert("Hiii " + fname + "! You will n...

SQL First ( ) function

If you want to select first coulmn from a table in database then you can do with first ( ) function . It return the first column from a table . Syntax -> select first ( col_name ) from table_name ; // This is valid for Ms Access Database o...

How to make CSV File form array in PHP

Hello reader! If you have an array with the records and you want it to be download as CSV format. PHP has built in functions for making the format of CSV. Lets take the example below:- header("Content-Type: text/csv"); header("Content-Disposi...

How to modify a Joomla Template?

To modify a Joomla Template you need to follow the steps given below: Login to back-end of Joomla Site. Click Extensions -> Template Manager. It will open the Template Manager : Styles You can edit the template by clicking on the name o...

SQL Top Statement

Using this SQL Top statement we can select the topmost( first element from top ) element from the table in database . We can also select one or more element from the top in a table . This clause tell how many rows is returned . Syntax -> ...

How to send SMS using PHP

Php offers you to make the integration of sms. We will discuss how to use php to send sms to any mobile number:- Before we starts you need to have some any sms pack from mobile data companies but if you don't have you can make one you from twi...

Data formatter in YII

For make data more readable YII provide a application component name as 'formatter' by using this we can format our date,numbers,email. How to use $dataFormatter = \Yii::$app->formatter; echo $dataFormatter->asDate('2016-01-01', '...

CSS Background Property

CSS background property defines the background effects and changes on an element. There are 3 CSS background properties that affects the HTML elements: 1)background-color 2)background-image 3)background-repeat 1) CSS background-color Th...

Phone number Regex Java

Regex for mobile number validation with prefix of '+' ^[+][0-9]{12,13}$ Regex for mobile number validation with optional '+' ^[+]?[0-9]{10,13}$ Use in Code:- Pattern.matches("^[+][0-9]{12,13}$",mobilenumber); Ha...

How to compare two variable floats using PHP

While making the calculation with float variable one should really careful since there can be three cases, It can < or > or =. So lets see the example below and learn how to get the comparative. $varOne = round(0.250, 3); varTwo = roun...

How to use file_get_contents in PHP

Php offers you to send data in various ways like get, post. Using php you can also use file_get_contents to send data using url. Lets see an example below:- $information = array('http' => array( 'method' => 'POST', 'content' ...

What are Site Backup Types in Joomla?

There are three commonly backup types. 1 Full Backup It is also known as reference backup.whenever you do the backup type setting to full all the files and folder in the drive are backed up every time.So its a complete backup of all associ...

How to install Joomla using an Auto Installer

Using Auto installer in Joomla there is no requirement to create a database,upload files or configuration programs required. Using this it will reduce steps while installation and its fast to install and update. All will be done using auto instal...

Why there is a need of change in the name of default admin user after a new install?

While during Joomla installation default administrator account is created called "admin" as this name is well known due to which security is already exposed so anybody guess the password are able to access the admin account. As admin account is ...

Saving Object parse.com Android

Hi, Here I am writing way to save object to the parse cloud. Parse provides ParseObject to handle to saving object. ParseObject has saveInBackground() method that need to invoke to save. Let's consider you have to save EmployeeInfo. ...

Important HTML meta tags for SEO

Hi Guys, In todays blog post , we are discussing the HTML meta tags as SEO propective. What is this meta Tags ? Meta tags are a great way for webmasters to provide search engines with information about their sites. (They) can be used to...

Media Manager in Joomla

Media Manager manages the Joomla images. It uploads and deletes the files from [joomla root]/images/ directory. You can upload files, create directories and sub directories using this tool. To access media manager click on Content -> Media ...

difference between die and exit in php

Hello Readers, 1. In php both die() and exit() are equivalent functions. 2. Basically die is used to throw an exception while exit is not, it is only used to exit the process. 3. The die() function is used to print the message and exit t...

Upload multiple files in Drupal 7

There are lots of modules available for uploading multiple files and images in Drupal 7. Each of them have their own feature and might be suits on your specific requirement. Here is a list of all available modules for multiple file upload opti...

super and this Keyword

Super Keyword The super keyword in java is the one which is used to refer to the immediate base class members in the sub class. Super Keyword can be used to invoke the constructor of the base class. Whenever you create the object of th...

How to make readable text from a pdf file in PHP

If you want to show a pdf file with the readable text from it on the page you can achieve it by seeing the code below We will use a php library (pdfparser). This function will get the exact text as what you need http://www.pdfparser.org/ ...

Recovering Drupal Admin Password from From database

If we forget administrator password in Drupal then it is very easy to recover it using Email or Drush. But situation get tougher when we don't have Drush and email notification enabled. In this way only database update query is the best way but ...

SQL Select Coun statement

Count ( ) In SQL Database this is a function which return no of rows from a table in Database . Generally this is used in SQL select statement and count the no. of records in a table . Syntax -> select count ( expression_name ) from table...

SQL Unique/DIstinct Statement

Basically Unique and Distinct both are same means both do the same work , Unique statement was used earlier by the oracle database but Now a days Distinct statement is using by the oracle ( Now it is the official keyword ) , Though Unique stateme...

PHP mail() function

To send email in PHP, we use mail() function. You can send text message, html message and attachment with message by the use of PHP mail() function. Syntax bool mail ( string $to , string $subject , string $message [, string $additional_hea...

Drupal 7 views filter by dynamic taxonomy term

If we want to create a list of contents which can be filtered by a taxonomy term the we can use Views 3 contextual filter. This will enable views to get filter from url or also from current node which is being viewed in content area. Get comp...

Android Parse.com Simple SignIn

Hi, Here I am writing simple way to login after creating user in parse. Tutorial for Sign Up ParseUser handles all sign in and sign up functionality. We login through logInInBackground() method of ParseUser. We need to pass username and...

How to Save Data in Android

In below example I have created a save data app code in android. In this save data we can save our data and then load the back-up. In this I have also described how to make save data. public class MainActivity extends Activity { EditTex...

How to add category in Joomla?

Categories in Joomla manages the articles. Articles have exactly one category. To create a category you need to follow the steps given below: Login to the back-end of Joomla Site. Click Content -> Category Manager ->Add New Category. ...

Find Application Version in Ioinic Framework App.

Hi All, Today we are going to discuss, how we can find application version in Ionic Framework App. Let's start by creating new Ionic Framework project with Android and iOS platform. To create a new Project follow below command: ionic star...

Why we perform Penetration Testing?

Why we perform Penetration Testing ? Hello Readers.. As we know that, What is Penetration Testing? But do we know why we perform this penetration testing. By this blog we are able to understand that why we do this testing. Below are mentione...

How to show alternate or default image in web page

Here, We are working on web application then facing issue in image loading and error, so we need to set alternate or default image in the web application. Many ways to set default image in the web page : Set default image using CSS img ...

SQL Select Statement

SQL query is used to retrieve selected row or column from the database based on the given condition . It is also used to retrieve data from a table in database . Syntax -> Select expression from table_Name where clause ; // Expression in...

difference between echo and print in php

Hello Readers, The below is the certain points which show the difference between echo and print in php: Echo and print both are the statements in PHP. Both are used to output data to the screen. 3. In php echo is faster than print b...

How to make download a file strictly in PHP

On the execution of exe file you must need the property of header like Description, Type and Disposition For making the strict/force download of a file in PHP you have to use the code below:- <?php $FileName = "http://abc.com/exa...

HTML onload Event Attribute

when an object is loaded The onload attribute fires. whenever a page is loaded, it executes a javascript. The onload attribute can also be used with cookies Example <!DOCTYPE html> <html> <head> <script> functi...

JAVA Garbage Collection and finalize() method

Whenever an object is created using the new keyword in the memory, then a constructor is called to initialize the the object. Afterwards when the scope of the object comes to end the memory allocated required to be reclaimed at the runtime, then ...

How to implement Search Engine Friendly URLs (SEF)?

To implement Search Engine Friendly URLs (SEF) follow the steps given below: Login to the back-end of the Joomla site. Click System -> Global Configuration Now click in the Site tab you will see SEO settings inside it. Set Yes to "Use ...

Best method for running all HTML pages act as PHP files

If you need something like all of your's html pages to be run like php files you can do the steps below:- Step 1 Create a .htaccess file on your root. Step 2 And add the line below AddType application/x-httpd-php .html .htm Or if...

What is Penetration Testing ?

What is Penetration Testing ? Penetration Testing is a method to distinguish security vulnerabilities in a software or a product or an application by appraising the network or system with different approaches or techniques. The main intention of...

How to use htaccess to restrict directory access by IP address?

To restrict directory access by IP address you need to follow the steps given below: Create a file or open a file .htaccess(started with a dot) inside the directory that you want to protect. Add the code given below to the file: Orde...
1 193 269
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: