How to get the swipe direction in LibGDX?

This is my own coding and it will have some bugs or error but until now its still running well on my apps. Firstly, create a class for handling device input and name it as inputhandler. public class InputHandler implements

Share Button
Posted in Android Application, LibGDX

Jigsaw Puzzle Classic – My second android game application

Jigsaw Puzzle Classic   This is my second android game application. A simple challenging puzzle game. https://play.google.com/store/apps/details?id=com.sheerapps.JigSaw

Share Button
Posted in Android Application

How to connect with database using mysqli and php?

This is a function to connect with database using mysqli. public function dbConnect() { $link = mysqli_connect(‘localhost’, ‘root’, ‘your_password’,’database_name’); if (mysqli_connect_errno($link)) { //echo “Failed to connect to MySQL: ” . mysqli_connect_error(); } else { //echo ‘Database Connected successfully ‘; }

Share Button
Posted in mysqli, PHP

Encryption and decryption using DES algorithm in PHP

This is my simple function to encrypt and decrypt data. The algorithm i used based on the DES algorithm illustrated by J.Orlin Grabbe. http://page.math.tu-berlin.de/~kant/teaching/hess/krypto-ws2006/des.htm This function can be used to encrypt and decrypt URL data. The encryption and decryption in

Share Button
Posted in PHP

How to get xml data from MySQL database using JQuery, Javascript, Html and PHP

How to get xml data from MySQL database using JQuery, Ajax and PHP Let say we have this data in MySql database: Id Name Age 0 Tom 12 1 Jerry 13 2 Donald 14 We want to call this data

Share Button
Posted in Ajax, Html, JavaScript, JQuery, PHP

Get current date using JavaScript

Function to return the current date function getCurrentDate() { var d = new Date(); var currentTime = d.toLocaleTimeString(); var currentMin = d.getMinutes(); var currentHour = d.getHours(); var today = d.getDay(); var todayDate = d.getDate(); var currentMonth = d.getMonth(); var currentYear

Share Button
Posted in JavaScript

Get browser type and version using javascript

This function will return the browser type or version or both using javascript navigator.sayswho= (function(){ var ua= navigator.userAgent, tem, M= ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*([\d\.]+)/i) || []; if(/trident/i.test(M[1])){ tem= /\brv[ :]+(\d+(\.\d+)?)/g.exec(ua) || []; return ‘IE ‘+(tem[1] || ”); } M= M[2]? [M[1], M[2]]:[navigator.appName, navigator.appVersion,

Share Button
Posted in JavaScript

How to integrate Admob and StartApp in LibGDX?

Im gonna show you how to integrate Admob and StartApp in LibGDX using eclipse. I found this solution from google search and have modified some of the coding as shown below: First of all you must have GooglePlayServices, BaseGameUtils and

Share Button
Posted in LibGDX

How to install WordPress on 000WebHost with free web hosting?

1. Download latest WordPress here 2. Login to your 000WebHost account or register here if you not yet registered 3. Go to your control panel and choose FTP File Manager then login 4. For free webhosting, the maximum allowed to upload

Share Button
Posted in WordPress

My first android game application

Push Ball This is my first ever android game. A simple game controlling and balancing ball to get score and compete with other player on google online leaderboard. Its free and anyone can try it here: https://play.google.com/store/apps/details?id=com.sheerapps.PushBall      

Share Button
Posted in Android Application