Home »
Recent posts
All posts from January 2018
Java program to write and read a JSON File.
31 JAN 2018 by Jyoti Singh
Create, write and read in/from JSON file using java: Here, we are going to create two java programs 1) program that will write content in JSON file and 2) program that will read content from the JSON file.
Tags:
Java programs
Java program to read a CSV File.
31 JAN 2018 by Jyoti Singh
The files which contain values spirited by commas are known as CSV files and here, we are going to learn how to read a CSV file using java program?
Tags:
Java programs
PHP Invoice Example.
31 JAN 2018 by Jyoti Singh
In this article, we will create a simple form to allow a user to choose a product and enter the quantity he/she wants to purchase and will generate an Invoice.
Tags:
PHP
PHP Code to Insert Data in MySql.
31 JAN 2018 by Jyoti Singh
In this article, we will create a table in a databse and then we will add data to it. We will also use a PHP function to upload files.
Tags:
PHP
PHP - MySql Connection Example.
31 JAN 2018 by Jyoti Singh
In this article, we will learn to connect to MySql using PHP. We will insert a record in MySql datatbase using PHP.
Tags:
PHP
Compare array and ArrayList in Java.
31 JAN 2018 by Preeti Jain
Learn: Compare array and ArrayList in java? How differentiate array and ArrayList in java? Array v/s ArrayList in java ? Difference between array and ArrayList in java? How array differ from ArrayList in java?
Tags:
Java
Java - Difference between throw and throws.
31 JAN 2018 by Preeti Jain
Here, we will learn about throw and throws and what are the core concepts of throw and throws and what are the differences between throw and throws, Compare throw and throws.
Tags:
Java
How to use ClipboardManager to ClipData in Android?
30 JAN 2018 by Manu Jemini
The example, we are going to use, we will learn about the method to use ClipboardManager and copy and paste from one ‘EditText’ to another ‘EditText’ with the help of two buttons. In the example below we are going to use the Content.ClipboardManager class to have all the functionality required for ClipboardManager. This getSystemService(CLIPBOARD_SERVICE) method will create an object which can be used to process the current clipboard.
Tags:
Android
BatteryManager and its properties in Android?
30 JAN 2018 by Manu Jemini
First of all we need to learn the method to use BatteryManager and check the current status of battery. In the example below we are going to use the os.BatteryManager class to have all the functionality required for BatteryManager.
In this article, we are going to learn about BatteryManager and how we can use it to know battery status and other battery properties?
Tags:
Android
Showing list of all paired devices in Android.
30 JAN 2018 by Manu Jemini
First, we learn the method to use BluetoothAdapter, BluetoothDevice and check the all connected devices to our device. In the example below, we are going to use the Bluetooth.BluetoothAdapter and Bluetooth.BluetoothDevice classes to have all the functionality required for BluetoothAdapter. This BluetoothAdapter.getDefaultAdapter() will create an object which can be used to process the current Blutooth.
In this article, we are going to show the list of all the paired devices while your Bluetooth is turn on in Android.
Tags:
Android
How to know Charging mode in Android?
30 JAN 2018 by Manu Jemini
Here, first we learn the method to use BatteryManager and check the current charging status of battery. In the example below we are going to use the os.BatteryManager class to have all the functionality required for BatteryManager.
In this article, we are going to learn about charging modes in Android and then find the current charging mode of device.
Tags:
Android
How to zoom the image in Android (animation).
30 JAN 2018 by Manu Jemini
In the example below, we are going to use the Animation.Animation class to create animation. This AnimationUtils.loadAnimation will create an object which can be used to create the animation for the image.
In this article, we are going to set animation on an image view by zooming the given image.
Tags:
Android
Toast the result of dialog in Android.
30 JAN 2018 by Manu Jemini
In the example below, we are going to use the AlertDialog.Builder class to build an alert box. This AlertBox.Builder will ask for a question and provide two buttons for yes and no.
In this article, we are going to set two different options in a dialog box and toast the closable option as result.
Tags:
Android
Explain JDK and JRE.
29 JAN 2018 by Preeti Jain
Learn: Here we will learn about JDK and JRE and what are the core concepts of JDK and JRE and what the difference between JDK and JRE is?
Tags:
Java
A simple MVC PHP CodeIgniter Example.
27 JAN 2018 by Jyoti Singh
In our last article, we learnt about PHP CodeIgniter. Now in this article we will create a simple view page using html and will open that view by using controller. So, let’s start.
In this article, we are going to create a simple example based on PHP CodeIgniter MVC based example.
Tags:
PHP
What is PHP CODEIGNITER?
27 JAN 2018 by Jyoti Singh
CodeIgniter is a PHP framework which is used to build a dynamic website using PHP (which is a server-site scripting language). CodeIgniter serves you a simple way to build your website.
In this article, we will learn about “CodeIgniter”, what is it ? How it works? How to install it?
Tags:
PHP
PyQt- Layout management - 1 (Drag and Drop with QtDesigner).
26 JAN 2018 by Atul Anand
PyQt- Layout management (Drag and Drop with QtDesigner): In this article, we are going to read about the different kind of layouts available for GUI designing and how to implement them in QT. Since, we are using PyQt; we can either do the drag n drop method by using Qt Designer or coding in python using PyQt module. In this article, we are going to learn through drag n drop way. Few remaining layouts will be covered in the next article. Feel free to ask for doubts in the comment section.
Tags:
Python and PyQT
Introduction to C++ STL (Standard Template Library).
24 JAN 2018 by Amit Shukla
In this article we study about the introduction of standard template library. We understand why we create standard template library? What are the uses of standard template library and History of Standard template library?
Tags:
C++ - STL
How to protect Server from CSRF Attacks?
24 JAN 2018 by Manu Jemini
It is an abbreviation of Cross-Site Request Forgery, which means that an attacker can make you do some unwanted actions to exploit the user and the server itself.
In this example, we are going to learn about how to protect your server from CSRF attacks?
Tags:
Articles, Node.js
Cross-Site Request Forgery (CSRF) Attacks.
24 JAN 2018 by Manu Jemini
Almost every back-end developer needs to know about this attack and how to deal with it. So here’s, what is CSRF?
In this article, we are going to learn about Cross-Site Request Forgery (CSRF) Attacks.
Tags:
Articles, Node.js
Android - StartActivityForResult Method.
23 JAN 2018 by Shamikh Faraz
The startActivityForResult method creates a result on one activity and gets it from the second activity. With the help of startActivityForResult() method, we can also pass information from home activity to other activity and vice-versa.
In this article, we are going to learn about startActivityForResult method in Android with the code file. How it functions?
Tags:
Android
Pre-defined Login activity in Android Studio.
23 JAN 2018 by Manu Jemini
Login Activity is one of the most common things which most of the application have is Login Activity. To have a Login Activity in your android studio project is very simple.
In this article, we are going to learn how to create and use a pre-defined login activity in Android Studio?
Tags:
Android
An example of Simple Toast in Android.
21 JAN 2018 by Shamikh Faraz
Toast is simply a notification that pops up. It is shown for a certain amount of time, and automatically fades in and out. You just set its display timer either ‘short’ or ‘long’. But you can’t set time duration in ‘short’ and ‘long’.
In this article, we will learn about simple toast in Android. How to set toast on click and to set its length to display?
Tags:
Android
Python - cmp() function with Example.
21 JAN 2018 by IncludeHelp
Python - cmp() function with example: In this article, we are going to learn about cmp() function in python, which is an in-built function in python and used to compare two object.
Tags:
Python
Android Activity Lifecycle.
20 JAN 2018 by Shamikh Faraz
In this article, we will learn about Android Activity Life Cycle. How the activity behaves in different states?
Activity Lifecycle contains 7 methods of ‘Activity’ class. These 7 methods will define how an activity functions on different states. The activity is the subclass of ‘ContextThemeWrapper’ class. Activity is also used to place UI components/widgets on a single window. In general, an activity is a screen/window in android.
Tags:
Android
How to use bundle class for passing data of any type in Android?
20 JAN 2018 by Manu Jemini
Bundle is used to move data from one activity to another. This is very helpful when you need some data in an activity which will come from another activity.
In this article we are going learn how to use bundle class to pass data between activities and initializes key for the values we pass?
Tags:
Android
How to use full screen activity in android studio?
20 JAN 2018 by Manu Jemini
Lots of apps are using Full screen Activity to have an attractive screen to show slides etc. There is a simple way to create this type of activity in android studio.
In this article we are going to learn about full screen activity and the process to create and use it.
Tags:
Android
Android Code for Explicit Intent.
19 JAN 2018 by Shamikh Faraz
In this article, we will learn how to use explicit intent and to move from one activity to another and vice-versa?
Using Explicit Intent, we move from one activity to another activity. Through this intent, information can also be passed from one activity to another.
Tags:
Android
What is heap sort and how it works?
18 JAN 2018 by Manu Jemini
Well, heaps are of two type max heap and min heap. The Basic and important rule to follow is that in a max heap the parent node should be greater than that of its child.
In this article, we will look up on Heap sort, how it works and will try to understand its sorting process through an example.
Tags:
Data Structure
Java program to check whether the number is IMEI Number or not.
18 JAN 2018 by Chandra Shekhar
An IMEI number is a 15 digit number and it is said to be IMEI number if and only if the sum of the number is exactly divisible by 10. But the condition is that when we entered the number the digit next to the previous one is taken as its double.
In this java program, we will read a number, which will be an IMEI number of a mobile and check whether it is a valid IMEI number or not.
Tags:
Java programs, Java basic programs
Android code for Implicit Intent.
16 JAN 2018 by Shamikh Faraz
In this article, we will learn how to use implicit intent? There two types of code (XML and Java) implicit intent coding is done in Java code, XML code is used for the design of layout.
Tags:
Android
Installation of Android Virtual Device.
15 JAN 2018 by Shamikh Faraz
In this article, we are going to learn how to install Android Virtual Device on your system? This article contains step by step process with the screenshots.
Tags:
Android
Sorting using Address Calculation Sort.
15 JAN 2018 by Manu Jemini
In this article, we will look up on what is sorting and one of its types which is address calculation sort?
When we say sorting it means serializing a collection of data inside any the collections like arrays, linked list etc. There is one good reason for implementing sorting on any collection is that it makes the searching very fast as compared to the collection which is unsorted. Now, this is not true for every test case but on an average, it is so...
Tags:
Data Structure
Complete algorithm of Quick Sort in Data Structure.
15 JAN 2018 by Manu Jemini
In this article, we are going to learn about quick sort, how it works and its algorithm?
Quick sort is one the very popular sorting algorithm or technique to sort a collection of data. Quick sort is better because of few decent reasons...
Tags:
Data Structure
Collections in Kotlin.
14 JAN 2018 by Aman Gautam
In this article, we will discuss about collections in kotlin. In this we will learn how to define list, set, map, hash, map etc. in Kotlin?
Tags:
Kotlin
Installation of Android Studio.
13 JAN 2018 by Shamikh Faraz
This tutoial contains step by step process with pictures to downloand and install of Android Studio, learn how to install it on your system?
Tags:
Android
Topological sorting.
12 JAN 2018 by Manu Jemini
In this article, we will learn about the graph, node or vertex, edges and topological sorting.
A graph is a set of nodes or known number of vertices. When these vertices are paired together, we call it edges. An Edge is a line from one node to other. Every edge can have its cost or weight...
Tags:
Data Structure
Android Tabbed Activity - 2.
12 JAN 2018 by Manu Jemini
In this article, we will learn about how to make use of Fragment under Android Tabbed Activity?
You have learnt about how to create and set the activity in the last part. A Fragment is like a component which has a JAVA File and a Layout file just like an Activity. Creating a fragment is rather simple, the concept is very simple. It does not have anything very different than activity.
Tags:
Android
Android Tabbed Activity - 1.
11 JAN 2018 by Manu Jemini
In this article, we are going to learn how to make use of tabbed activity in Android?
In the android studio, we have been given a variety of different activities to make use of any one of them is Tabbed activity. This activity can easily be included in your android studio project...
Tags:
Android
Java Applet program to print a welcome message.
11 JAN 2018 by Chandra Shekhar
Here, we are implementing a java program in applet that will print a welcome message on the screen.
In this example, we are using a function named ‘g.drawString()’ which is a method of Graphics class, here ‘g’ is an object of Graphics class. drawString() is taking three parameters string to display and x,y co-ordinates.
Tags:
Java programs, Java applet programs
rand() function in PHP.
08 JAN 2018 by IncludeHelp
PHP - rand() function: In this article, we are going to learn about rand() function, how to generate random numbers between min and max?
Tags:
PHP
Check Even and ODD in PHP.
05 JAN 2018 by IncludeHelp
In this PHP program, we are going to check whether a given number is an EVEN number of an ODD number.
Tags:
PHP
Dictionary Methods in Python.
04 JAN 2018 by Abhishek Jain
Learn: In this article, we’ll going to discuss about various functions and methods associated with dictionaries in python . To append ,update , delete values to the dictionary and toperform other functions and methods to accommodate dictionary values and their keys (with examples).
Tags:
Python
Data classes in Kotlin.
04 JAN 2018 by Aman Gautam
In this article, we are going to learn about Data classes in Kotlin programming language. Its declaration, example etc.
Tags:
Kotlin
ImageView in Android.
04 JAN 2018 by Manu Jemini
In this article, we will learn how to use Image View with user defined images?
Tags:
Android
Android Relative Layout.
04 JAN 2018 by Manu Jemini
In this article, we will learn about the Relative-layout and its uses by working with two edit texts respectively.
Tags:
Android
array_sum() function in PHP.
03 JAN 2018 by IncludeHelp
In this article, we are going to learn how to find sum of all array elements using array_sum() function in PHP?
Tags:
PHP
Machine Learning/ Artificial Intelligence/ Deep Learning/ Data Science.
01 JAN 2018 by Atul Anand
Machine Learning/ Artificial Intelligence/ Deep Learning/ Data Science: Well, this is the very first article on Machine Learning and its brother subjects. Before we proceed into studying further, it must be noted that all of these are often considered to be same; especially ML, AI, and Deep Learning. One is the subset of another. You will get better insight going through the article. I have also included some interesting facts in this article. Go through each and every article, and this will become a heavenly place for ML/AI enthusiast. The best thing about this article series is that this is the simplest demonstration of this huge subject through my Learning Experience.
Tags:
Machine Learning/Artificial Intelligence
Run code in comments in Java.
01 JAN 2018 by Aman Gautam
In this article, we will discuss about a simple trick in java to run code written in comments.
We have studied that comments never executes, but there is a trick by which we can mock the friends by showing them a code runs i.e. written in comments. This can be done using a Unicode character because java parse character escape sequence in the source code.
Tags:
Java