Java Lambda Expressions

Introduction When implementation of anonymous class is very simple, for example, an interface contains only one method, then the syntax of anonymous classes may seem unclear. In this situation the functionality is passed as an argument to another method to perform an action, for example, when someone clicks on a button. Lambda expressions enable to treat functionality as a method…

PHP asort() example

This tutorial shows an example how to sort an array using asort() function available in PHP. The asort() function sorts an array by maintaining the index association. This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order…

PHP natsort() example

This tutorial shows an example how to sort an array using natsort() function available in PHP. The natsort() function sorts an array using natural order sorting algorithm. This function implements a sorting algorithm that orders alphanumeric strings in the way a human being would read while maintaining key/value associations.

Java Anonymous Class

A class that has no name is known as anonymous class. Java Anonymous class can be created in two ways: Class Interface For more information please read https://docs.oracle.com/javase/tutorial/java/javaOO/anonymousclasses.html#accessing Anonymous classes enable you to make your code more concise. They enable you to declare and instantiate a class at the same time. They are like local classes except that they do…

Upload file using REST webservice

In this tutorial I am going to show you how we can upload file using REST or RESTful web service. The most important concept in REST is resources, which are identified by global IDs — typically using URIs. Client applications use HTTP methods (GET/ POST/ PUT/ DELETE) to manipulate the resource or collection of resources. A RESTful Web service is…

Download File Using REST Web Service

REST Service In this tutorial I am going to show you how you can download file using REST or RESTful web service. The most important concept in REST is resources, which are identified by global IDs — typically using URIs. Client applications use HTTP methods (GET/ POST/ PUT/ DELETE) to manipulate the resource or collection of resources. A RESTful Web…

Create WordPress like add tags using Codeigniter and jQuery

I will show you how to create WordPress like add tags using Codeigniter and jQuery. This add tags tutorial example is very helpful to implement the multiple tags adding functionality for a blog. In this example, tags are added to the textarea just by “type and press the Enter key”. Codeigniter controller stores tags into the database table and returns…

AJAX Multiple Files Upload using Codeigniter, jQuery

Introduction I will show you how to upload multiple files using Codeigniter, AJAX and jQuery without page refresh. This multiple files upload tutorial example is very helpful to implement the upload functionality. In this example the files are selected using the browse button and files are uploaded to the uploads directory. Codeigniter controller stores files into the defined location and…

AJAX Multiple Files Upload using PHP, jQuery

Introduction The example, AJAX multiple files upload using PHP jQuery, will show you how to upload multiple files using PHP, AJAX and jQuery without page refresh. This multiple files upload tutorial example is very useful where you need to upload multiple files in a web application. In this example multiple files are selected using the browse button by holding keyboard’s…

AJAX File Upload using Codeigniter, jQuery

Introduction I will show you an example on Ajax file upload using Codeigniter jQuery without page refresh. This file upload tutorial example is very helpful to implement the upload functionality. In this example the file is selected using the browse button and file is uploaded to the uploads directory. Codeigniter controller stores the file into the specified location and returns response…