Game Development with SDL2 Part 4: Animating using Sprite Sheets

In this post, we are going to learn about how to animate using sprite sheets.....

Game Development with SDL2 Part 3: Drawing our first image

In this post, we are going to draw our first image and show it on to the screen!....

Game Development with SDL2 Part 2: Event Handling

In this post, we are going to discuss all about event handling in SDL.....

Game Development with SDL2 Part 1: Creating a Window

In this post, we are going to discuss all about game development in C++ along with a very popular multimedia library called Simple DirectMedia Layer....

Java - String Manipulation, Palindrome Reverse Order

Java has many built in functions when it comes to manipulating strings. One of the most common problems that you will encounter if you are learning Java in school is that your instructor will have a p....

Java Search Algorithms - Linear Search

When it comes to Data Structures, it is important to know some searching algorithms. In this tutorial we are going to learn on the many types of searching algorithms. The first one in our list is one ....

JAVA I/O - Creating a Directory

Java can create wonders when it comes to file handling and in this segment we are going to learn on how you can create directories using Java. These directories are useful if you have an application t....

Java Collections - Giving Keys and Values using the Map Interface

For those of you who have been programming in PHP, you might have been lucky enough to enjoy the many methods and functions it has to offer most especially when it comes to dealing with arrays. One su....

Introduction to PHP - Session Variables Part 2

From the previous tutorial we have taught you how to store variables in session. This time around you are going to learn on how you can modify a session and use it on trapping specific pages that requ....

Introduction to PHP - Session Variables Part 1

Have you ever been amazed how the web works and how it handles accounts? For example everytime you log-in through Facebook, you will be asked for your username and password. After a successful log-in ....

Introduction to PHP – Object Oriented Programming Part 6

By this time you are now capable of creating classes, inheritance and just about the basics of Object Oriented Programming. This time around, we are going to deal with the visibility of methods and pr....

Getting Started with PHP – Part 6 (Superglobals)

PHP Global Variables are also called superglobals and they are accessible everywhere on your code regardless of the scope. You can access them in any part of the file without adding additional code or....

Getting Started with PHP – Part 5 (PHP DataTypes)

In our last tutorial we discussed about PHP variables, in this tutorial we are going to learn data types and how you can manipulate them in your code.There are seven data-types in PHP namely: String....

Getting Started with PHP – Part 3 (Displaying Values)

The best thing about PHP is that it is not case-sensitive compared to other programming languages. PHP is a loose language and some functions and methods that you would normally write in other languag....

Introduction to PHP - Understanding Interface Part 2

To continue to what we have left regarding interface, let us first examine the code. <?php interface Automobile{ public function buildChasis(); public function buildBodyCover(); pu....

Introduction to PHP - Understanding Interface Part 1

In our previous tutorial we discussed about how Abstract classes work, in this tutorial we are going further on how interfaces work and their difference between abstract classes. Object Oriented Progr....

Introduction to PHP – Array Functions Part 4

In the previous tutorial we talked about how we managed to get all the keys and values of an array using the array_keys and array_values method. This time around we are going to learn how to remove du....

Introduction to PHP – Array Functions Part 2

Another function that PHP have is removing and adding elements of an array.  es, you heard it right, Arrays in PHP can quickly eliminate the first element of an array with ease and also add an element....

Introduction to PHP - Abstract Methods Part 2

In the last article we talk about the how abstract class work and how they can be beneficial when you are going to structure your code. Lets go back again with the example. <?phpabstract class Stat....

Introduction to PHP - Abstract Methods Part 1

OOP can be quite frustrating most especially if you have little or know knowledge about it. Well in this tutorial we are going to learn abstract classes and how you can implement it to your program. M....

How to Return a Value using Javascript Functions

One of the most common problems that people tend to forget when dealing with functions in JavaScript is returning two values. In one of our previous articles we manage to call a function and process s....

Getting Started with PHP – Part 4 (PHP Variables)

PHP is a loose language and you can clearly see it through their declaration of variables and methods. In this tutorial we are going to examine how variables are declared and how you can use them on y....

Getting Started with PHP – Part 2

Why PHP? PHP can run on different platforms such as  (Windows, Linux, Unix, Mac OS X, etc.) and is compatible in almost all types of servers APACHE, IIS and the like. Getting Started Before you can s....

Getting Started with PHP - Part 1

Starting with PHP as your choice for your backend web-applications is a great way to get you polishing with your skills with programming. The first thing you need to know in PHP is to need to know the....

Returng Two or More Values from a Javascript Function

In our previous tutorial, we have manage to return functions with a value, in this segment, you are going to learn on how you can return two variables inside a function. This is the most common proble....

PHP Tips and Tricks - Method Chaining

Another tip and trick that we are going to share with you is dealing with functions in PHP most especially when you are creating a class. Supposed you have a Person class. Example: <?php class Per....

PHP Tips and Tricks - Iterating Through Multidimensional Arrays

Dealing with arrays in PHP is a great thing since you can do wonders for your program. Considering the fact that arrays in PHP are powerful enough to hold temporary data and it is easy for you to trav....

Introduction to PHP - User Defined Functions Part 1

Just like any other programming language, PHP can also create functions, in which the language already has 1000 built-in functions. Aside from PHP user defined functions, you can also create your own.....

Introduction to PHP – Static Variables

What are static variables? You might have encountered them when you are doing object oriented programming. But have you asked yourself what are they used for?Static variables from the name itself 'sta....

Introduction to PHP - Object Oriented Programming Part 2

In our previous tutorial we discuss about how to create classes this time around we are going to continue with class properties. Add a name, age and gender to the properties that you have created. <....

Introduction to PHP – Array Functions Part 4

Having arrays that have many elements can be a daunting task, most especially if you are going to loop through many elements. However, PHP makes it easier thanks to PHP's multitude of Array functions ....

Introduction to PHP – Array Functions Part 3

Have you ever found yourself being hassled with the fact of looping through an array and just getting their keys or values? We'll thankfully, you can easily get all the elements of an array values or ....

Introduction to PHP – Array Functions Part 1

Arrays can be great in manipulating data and PHP has different implementations that you can take advantage. In this series we are going to explore the different types of array functions that will be h....

Creating JavaScript Functions the Easy Way - Part 2

Functions are great for shortening your code, and in our previous tutorials we have managed to discuss how functions work. However, in this tutorial you are going to learn how to call a function by de....

Using JSlider

Learn how to create desktop Java Swing applications with our complete video course;  click here for a 25 discount . Covers Swing programming from the ground up, including almost all major widgets, dat....

Using JMenu

Learn how to create desktop Java Swing applications with our complete video course;  click here for a 25 discount . Covers Swing programming from the ground up, including almost all major widgets, da....

Using JComboBox

Learn how to create desktop Java Swing applications with our complete video course;  click here for a 25 discount . Covers Swing programming from the ground up, including almost all major widgets, dat....

Introduction to PHP - Include and Require Statements

In PHP, letting you include files can be done thanks to the include and require statements. This is one useful statement as this is useful if you have a template header, footer or sidebar that you wis....

Introduction to PHP - Session Variables

In this tutorial we are going to learn how SESSIONS work. In web development, sessions are important as this will store session variable about an information or change a setting of a single user. PHP ....

Introduction to PHP - Object Oriented Programming Part 5

In our previous tutorial we managed to create a new Employee class. We are going to continue with the Employee class and learn how you can create a new Employee object and how to use all of the method....

Introduction to PHP - Object Oriented Programming Part 4

Another advantage of using OOP is the fact that you can inherent classes. This means that whatever methods and properties that another class posses you can easily inherit all of it without you having ....

Introduction to PHP - Object Oriented Programming Part 3

In the last tutorial we discussed on how to create methods and how effective OOP can be when dealing with programming tutorials. In this tutorial, we are going to discuss Magic Methods in OOP.To even ....

Introduction to PHP - Object Oriented Programming Part 1

Every good programmer knows that OOP (Object Oriented Programming) is the best approach to any programming problems that you may encounter and in this tutorial, we are going to apply OOP and follow th....

Introduction to PHP – Getting to Know Arrays Part 1

You might be dealing with simple algebra like adding two numbers or subtracting 5 numbers using 2 or 5 variables respectively. However, if you are dealing with 500 numbers or variables, declaring them....

Introduction to PHP – Getting to Know Arrays Part 4

The last part of our tutorial with arrays will tackle on Multidimensional Arrays. Although pretty much the same as associative arrays in which it involves with keys, however  this time around it will ....

Introduction to PHP – Getting to Know Arrays Part 3

In part 2 of our tutorial with arrays we talked about how to loop through an array and its indexes with for and foreach loops. This time around you'll be learning with PHP Associative Arrays. In which....

Introduction to PHP – Getting to Know Arrays Part 2

In our last example we showed you how to create an array in PHP and displaying each content of the array by calling their index. This time around you are going to learn how to loop through the content....

Introduction to PHP – User Defined Functions Part 4

In our last part when dealing with PHP functions is that we are going to learn how to return values. This is especially useful for those who are practicing the DRY approach (Don't Repeat Yourself) in ....

Introduction to PHP – User Defined Functions Part 3

In our previous tutorial we tackled about how functions work with arguments and how you can pass them variable within them. This time around you are going to learn about how functions work with a defa....

Introduction to PHP – User Defined Functions Part 2

In the last tutorial we managed to create user define PHP functions. This time around, you will be learning on how to pass variables to PHP functions by creating an argument.Arguments are specified af....

Introduction to PHP -Manipulating Strings

In the last article we talked about PHP variables, in this tutorial we are going to learn how to manipulate PHP functions using the strlen() and strpos(). First things first, the strlen() function is ....

Introduction to PHP - Displaying Using the print and echo Statements

In the previous tutorial, we discussed about PHP variables, in this tutorial we are going to talk about printing values using the echo and print functions. This is the most common way in printing outp....

Introduction to PHP - Getting to Know PHP Variables

Just like any programming languages, PHP has variables in which serves as containers for storing information. You can do this by declaring a $. Variables in PHP starts with a $ and variables work the ....

Introduction to PHP - What is PHP and Why Do I Need it?

For those of you who are starting to learn web programming it is essential that you also know how to manipulate data using PHP. You might ask what is PHP? For starters it is an acronym for Hypertext P....

Getting to Learn Window Objects in JavaScript – Resizing Windows with resizeTo() and resizeBy()

Another common practice by many developers is re-sizing windows. If you want to set a specific size of the window during events, then you can do so by using the resizeBy() and resizeTo() methods.The f....

Getting to Learn Window Objects in JavaScript – Opening New Window with open() method

There are some instances that you want to create a new window. This is one of the most common thing that many bank websites usually do when users want to transact items. They create a new window in wh....

Getting to Learn Window Objects in JavaScript - alert() and prompt() Methods

JavaScript boasts a lot of methods. In this tutorial we are going to deal with window object methods from JavaScript. Most of the time you might be curious how does pop-up open up on your browser. We'....

Joining Arrays and String with the join() and concat() Method

Here's another common array and string manipulation that is commonly used and often neglected since many programmers forget that there is a method that already exists and does this function. The metho....

Manipulating Arrays with the shift() and unshift() Methods

If you have been following our previous articles you might notice that we have discuss about the push() and pop() methods with arrays. In which new items will be added or remove at the end of the arra....

Manipulating Arrays with the Push() and Pop() Methods

Arrays are great for handling many numbers. Most especially if you are dealing with numerous numbers in handling out process. In this example, we are going to learn some pre-define methods in JavaScri....

Creating JavaScript Functions the Easy Way - Part 1

Passing data in functions is important in many applications as it reduces redundancy in code. This is the most common reason why creating a function is important as it will reduce your code and you do....

Returning an Array from a JavaScript Function Made Easy

In the previous tutorial, we have manged to return two or more variables inside a function with the help of objects. This time around you are going to learn how to pass arrays from one function to ano....

How Important it is to Format Date in JavaScript

Formatting date's have been a common problem by many web developers most especially if they want a specific order or format that they wish to have on their forms. Luckily, the Date() object is a datat....

Introduction to JQUERY - Detaching Elements using the detach() method

Sometimes removing HTML elements using the remove() method does not work on some occasions as you might as well keep some elements on screen. Thanks to the detach() method in JQUERY, you can now selec....

Getting to Learn JavaScript Objects - Part 2

In our last tutorial we talked about JavaScript objects, this is our second part of the series in which we will be dealing with objects adding methods, properties and more.In the previous tutorial we ....

Getting to Learn JavaScript Objects - Part 1

Basically, the best way to practice programming is making your code object-oriented. JavaScript caters to object-oriented programming and here are some of the things that you should  know.First of all....

Introduction to JQUERY – Why the mouseover() method is Important in Selection Process

There are sometimes you want your website to be  super dynamic that will entertain users. That is why JQUERY has different types of event handlers and the one that we will tackle in this tutorial is t....

Introduction to JQUERY – Populating / Creating Dynamic Dropdowns

There are times that you will have to populate dropdowns depending on the user's choice. More so, if you are planning to have a dynamic dropdown. Luckily, JQUERY can manipulate it easily depending on ....

Introduction to JQUERY – Playing with the blur() method and its Applications

In our last tutorial, we discuss about the focus() method and how it works when you input something on an input box. In this tutorial we are going to tackle about on how the blur() method works when y....

Introduction to JQUERY - How to Attach a Function to a focus() method

You might notice that every time you enter something on an input box there is this some sort of highlight that indicates you are writing on that specific box. We'll, JQUERY in fact has this method cal....

Introduction to JQUERY - Slicing Elements with the slice() method

Another interesting method that we are going to tackle is the slice() method. From the name itself, you already get a clear perception on how the slice() method work and that is to slice. The slice() ....

Introduction to JQUERY - Traversing with the add() method

Traversing HTML elements is as easy as pie, it may sound cliche but JQUERY makes it easy for you to traverse elements with a wide variety of methods that you can use. One of which is the add() method.....

Introduction to JQUERY - Changing Content with the replaceAll() and replaceWith() methods

Sometimes during programming, changing elements are sometimes used to manipulate HTML data. This is practice by many in handling error messages or changing any elements to processed data. JQUERY has t....

Introduction to JQUERY - Listening to Change Events using the change() method.

There are times that we want listen for events that changes most especially those found on the input fields. In this tutorial we are going to tackle about the change() method and how it is very useful....

Introduction to JQUERY - Trapping Errors Using the error() method

For those of you who already have programmed in JAVA before, or tried any type of programming language that involves error handling, then you might already know some tricks on your sleeve on dealing w....

Introduction to JQUERY - Getting to Know How the submit() method works

In the previous tutorial we talked about binding handlers to any HTML element using the bind() method. This time around, we are going to tackle with the submit() method that is part of the events that....

Introduction to JQUERY - Binding Events on any HTML Elements with bind() and on() Methods

Most of the time we associate <buttons> and links / anchor tags <a> as the elements that needs to be clicked. However, JQUERY has made it easy for us to bind event for any HTML elements. I....

Using JOptionPane (InputDialog)

Learn how to create desktop Java Swing applications with our complete video course;  click here for a 25 discount . Covers Swing programming from the ground up, including almost all major widgets, dat....

Introduction to JQUERY - Introduction with JQUERY – Tinkering CSS Elements with CSS() Method Part 2

JQUERY can do a lot of things most especially when it comes to handling CSS elements. Have you you ever wondered how beautiful and attractive those websites are everytime you click on a button or hove....

Introduction to JQUERY - Intro to AJAX Part - 2

In the previous post, we talked about how we can send data via AJAX using the ajax() method. In this section we are going to deal with the JQUERY.get() and JQUERY.post() method. These two methods have....

Introduction to JQUERY - Checking Check and Radio boxes using the :checked Selector

In our previous tutorial we talked about on how to deal with drop-downs and determine if they are selected or not using the :selected selector. In this tutorial we are going to deal with checkboxes, r....

Introduction to JQUERY - Intro to AJAX Part - 1

AJAX has gain popularity when it comes to querying data from a database due to being asynchronous thus eliminating the need of separate file in getting data. For those of you who don't know it yet, AJ....

Introduction to JQUERY - Checking Selected Dropdowns with the :selected Selector

Sometimes in developing websites we deal with checking forms. This ranges from input boxes, checkboxes, dropdown, and radio boxes just to name a few. Getting the value's of input boxes are easy with J....

Introduction to JQUERY - Adding and Retrieving with the JQUERY data() Method

With the introduction with HTML 5 there are many new features being added and one of which is the custom attribute that you can attach to an element. In this tutorial you are going to learn on how you....

Introduction to JQUERY - Loading Data from an External Source with load()

JQUERY can do stuff that you normally would want to do with your program. In this tutorial we are going to learn how JQUERY can load .txt file from a given source. The load() method loads data from th....

Introduction to JQUERY – Iterating Elements with the Each() Method

JQUERY has a lot of methods that you can explore. And most of the time first timers who are practicing the JQUERY library are not familiar with it. In this tutorial we are going to deal with the each ....

Responding to button clicks (Part 2)

In the first part we learned how to make your program respond when you click a button, but the way we did it is made for one button at a time. In this article I'm going to show you how to do it when h....

Introduction with JQUERY - Manipulating Dropdowns using JQUERY

One of the most common problems I often find in many programming forums is getting the value of a selected option in a drop down. Well, in JQUERY you can select it easily with just a couple of lines. ....

Introduction with JQUERY – Removing Attributes from HTML DOM Objects

In the previous articles, we have tackled how the remove() method works, in this section, we are going to deal with manipulating CSS classes without actually removing them but rather modifying them.  ....

Introduction to Javascript - Getting to know Arrays

Arrays are important most especially if you are dealing with lots of numbers. In this tutorial you are going to deal with arrays in Javascript and how you can manipulate it with your program. So What....

Responding to button clicks (Part 1)

Learn how to create desktop Java Swing applications with our complete video course;  click here for a 25 discount . Covers Swing programming from the ground up, including almost all major widgets, dat....

Javascript Introduction - Splitting a String

Splitting a string is used by many programmers in manipulating data. This is important for data that needs to be filtered out and that of those being returned by a specific function. In this tutorial,....

Using JOptionPane (MessageDialog)

I'm going to write about the MessageDialog and the InputDialog, those are very useful and they're used in lots of things. First we're going to learn how to use the MessageDialog, to use you need to w....

Introduction with JQUERY - Playing with slideDown() and slideUp Methods

JQUERY hosts a lot of functions, and one of which is the JQUERY Sliding Methods that you can have on your elements. Gone are the days where marquee was a cool way of giving effects to your HTML page. ....

Introduction with JQUERY - Tinkering CSS Elements with CSS() Method

JQUERY also has a lot new feature that you can use, and that is returning CSS properties or that you can change them using the css() method. The css() method is used to set or return one or more style....

Android Application Development: TextView

This article explains displaying text on the Android screen using TextView.Android:Learn how to create Android applications with our complete video course; click here for a 25 discount . Covers Andro....

Introduction with JQUERY - Remove and Empty Methods

In our previous tutorial we tackle about adding elements, we'll in this tutorial we are going to find out how to remove them using the remove( ) and empty ( ) methods in JQUERY.remove () - Removes the....

Write your own Android applications: Getting Started

This article will show you how to install and run your first Android application preparing for next steps.Learn how to create Android applications with our complete video course; click here for a 25 ....

Introduction with JQUERY - Adding Elements

With the introduction of JQUERY, adding new elements/ content is as easy using the built in methods. This is useful if you are trying to insert some content to your HTML document. One of the most com....

Introduction with JQUERY - Setting Content

In the last article, we talk about on how to access HTML DOM elements, this time around, you'll get to learn on how you can set them using the same methods, html(), text() and val() method. This is ve....

Introduction with JQUERY – Handling Events

JQUERY is tailor made to response on many events on an HTML page. Such as click events, done with a mouse, form, keyboard and documents just to name a few. What are Events? When a visitor visits a pag....

Simple listView using ArrayAdapter

In this tutorial I am creating simple list view for Android.The display of elements in a lists is a very common pattern in mobile applications. The user sees a list of items and can scroll through the....

Custom GridView with ImageView and TextView In Android

In this tutorial we are implement the customGridView using BaseAdapter. In customGridView show the ImageView with TextView for each list item.Create Project: GridViewBy Default Main Layout for our pro....

Introduction with JQUERY - Using Selectors

For those of you who have been programming with Javscript, then you might not have heard about JQUERY. JQUERY can be summarize into one basic sentence, and that is JQUERY, is a JavaScript Library that....

Android Linear Layout

In Android, basic and very simple layout is linear layout. Using linear layout we can create complex layout structure. In Linear Layout every component is its children and layout aligns all its childr....

Introduction to Servlets

INTRODUCTION TO SERVLETS A Servlet is basically a Java Program that executes within a Web server or an Application Server, acting as a middle layer between requests sent from a web client and a d....

Get All the Values of All Input Boxes in JQUERY with the Serialize Function

In the last article I showed you on how you can get the data inputted on input fields using JQUERY. However, if you are dealing with lots of fields like say a form that has 10 inputs, like first name,....

Javascript String Manipulation using Using toUpperCase and toLowerCase

Javascript has plenty of functions that can make your lives easier and in this topic, we will talk about on how you can easily convert any string of characters into lower and uppercase letters. The fu....

Getting the Value of the Inputted Field using JQUERY and Display the Results

With the power of JQUERY, getting the value of input boxes are as easy as doing it on Javascript or HTML form submit function using a button. This is very important if you are want to get the value of....

Introduction to Java Swing

Learn how to create desktop Java Swing applications with our complete video course;  click here for a 25 discount . Covers Swing programming from the ground up, including almost all major widgets, ....

Android Date Picker

Today we are going to use android widget date picker , Using this widget android popups dialog to select date using systems own date picker. In this tutorial we are going to see how the user can chang....

Android AutoComplete TextBox

AutoCompleteTextView is an editable text view that shows suggestions automatically while the user is entering characters. The list of suggestions is displayed from which the user can choose an item.Th....

Swing Tutorial 4: JPanel and JScrollBar

In this tutorial we are going to add a JPanel to our window and add a JScrollBar to our text area. A JPanel helps a JFrame by managing itself and everything on it better and separate from the JFrame. ....

Swing Tutorial 3: Reacting to Button Clicks

In this third Swing tutorial we're going to add some text to our JTextArea when we click the button. Learn how to create desktop Java Swing applications with our complete video course; click here for....

EditText and Buttons in Android Java

In this tutorial, we will try to enrich the default project. Normally it contains just a textview and it says “Hello World!”.Let’s define an objective here. The objective must be an easy one for the s....

Custom ListView with ImageView and TextView In Android

In this tutorial we are implement the customListView using BaseAdapter. In CustomListView show the ImageView with TextView for each list item.Create Project: CustomListViewBy Default Main Layout for o....

AlertDialog Boxes in Android

There are 3 type of alert dialog boxes present in Android which are following.1)OK Alert DialogBox.2)Yes/No Alert DialogBox.3)Cancel/Yes/No Dialog BoxCreate a Android New Project By AlertDialogBoxcopy....

Toast Message OR Error Message

In Android, Toast is a notification message that pop up,Display a certain amount of time, and automatically fades in and out,Most people just use it for debugging purpose or show the error message&nbs....

Android TextView and Button

Hello friends in this tutorial we are working with android Textview and Button controls and controlling Android view elements programmatically.Before we start You have Eclipse IDE setup for android ....

Android Hello World

A Hello world program is a computer program that outputs Hello, worl....

Java Android Tutorial

As mobile technology is advancing in popularity, at a rapid rate, Android programming is becoming more and more of an essential skill to acquire. Not only does it look good on your CV for a job interv....

Swing Tutorial 2: Layout, TextAreas and Buttons

In this second swing tutorial we're going to start to add some components to our JFrame window we created in the first tutorial . Learn how to create desktop Java Swing applications with our complete....

Swing Tutorial 1: Creating a Basic Swing Application

In this first swing tutorial we're going to create a very basic Hello World swing application.It is better to have some previous knowledge of Java before using Swing, but not essential.Assuming you ha....

Starting your First Android App

For those of you who are beginning to start on working on Android projects, then this is for you. In this tutorial you'll know the basics on how to create your first working Android application. But a....

Beginning Java Swing: Tutorial

Swing is Java's lightweight GUI (Graphical User Interface) for developing rich desktop applications with ease. Swing offers the customization of the look and feel for every component in an application....

Introduction with JQUERY - Accessing Content

In my previous article we tackled about JQUERY's many effects that you can apply on any HTML document. This time around, we are going to deal with JQUERY DOM Manipulation. JQUERY comes with a lot of D....

Absolute Layout in Swing

Learn how to create desktop Java Swing applications with our complete video course;  click here for a 25 discount . Covers Swing programming from the ground up, including almost all major widgets....

Introduction with JQUERY – Having Fun with hide() and show()

In the previous article we tackled about JQUERY and its event, this time around we are going to be using one of its coolest built in functions. If you have been following on our guide with JQUERY, you....