Quantcast
Channel: The Code of a Ninja
Browsing all 100 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Loading Data Related To Selected Drop-Down Item Using PHP And jQuery

I used this code when I have a small list of records (e.g. authors or categories) that can be picked using a drop-down list and then, I want to load the related information instantly without refreshing...

View Article


Image may be NSFW.
Clik here to view.

A Quick Way To Create A Vertical Accordion With jQuery

Today we are going to create a vertical accordion from scratch, using jQuery of course! We will have few lines of code that would be easy to understand. I used this code when I was asked to create an...

View Article


Image may be NSFW.
Clik here to view.

How To Create A Basic PHP Login Script With PHP Sessions

Hi there! Today we are going to code one of the very basic requirement of a PHP web app - a PHP login script. This post also covers the log-out script. We are going to manage these tasks with the help...

View Article

Image may be NSFW.
Clik here to view.

Android Bluetooth Code to Print Text on a Bluetooth Printer

Recently, I was asked to make a program for printing some data to a small or handheld Bluetooth printer device. This can be used for printing receipts, simple tickets, or customer notes. I like how it...

View Article

Image may be NSFW.
Clik here to view.

Two Example Usage of jQuery On() Method

How are you guys? Many friends asks me what is the use of jQuery on() method, where and when can we use it and why is it important. So in this tutorial, I'm going to give you two example situations...

View Article


Image may be NSFW.
Clik here to view.

Salt, Hash and Store Passwords Securely with Phpass

What is password hashing?It turns a string (of any length) to a fixed length "fingerprint" that cannot be reversed. For example, my password is "i1love2coding3", when hashed, it can be converted to a...

View Article

Image may be NSFW.
Clik here to view.

How to Build a Shopping Cart in PHP and MySQL

If you want to build your own online shopping cart from scratch, this post can help you get it done because today, we are building a simple website with shopping cart using PHP and MySQL. I also assume...

View Article

Copy or Move File From One Directory to Another on Android

Today we are going to take a look at how to programmatically "copy" or "move" a file from one directory to another on Android. In case you want to be clarified about the difference, copying a file...

View Article


.htaccess Rewrite Rule Examples to Achieve Clean URLs

Our code for today will make your website URLs clean and attractive. Clean URLs are user and SEO friendly, it does not contain any query string (e.g. param1=something&id=1111) thus giving your...

View Article


Show ListView as Drop-down, an Android Spinner Alternative

Our code for today will give us an alternative to using the Android spinner. This ListView drop-down functions like a spinner but: I love how it looks and response to user touch, it feels smoother and...

View Article

Android HTTP Example to Post File and Text Data

Hi guys! Today we are going to code an example app that can post a file and text data to a web server with PHP file as a receiver. Having the ability to (do HTTP Requests) post data from android app...

View Article

Who are the Developers of Android?

Android powered devices like mobile phones, tablet computers and home appliances are everywhere nowadays. It is a delight for us to experience a high technology which is less expensive, more powerful...

View Article

How to Install Android Development Environment

A lot has been changed since I wrote this post: Getting Started with Google Android Development. I'm not going to remove that page but I rather keep it as an archive about how Android development...

View Article


CRUD with jQuery and PHP for a Better User Experience

We already have a PHP CRUD tutorial in this blog and now we are going to add some AJAX functions to it with the help of jQuery. This will enable smoother user experience and faster loading of page...

View Article

ADB Command Basics and Setup Tutorial

Contents: 1.0 What is ADB? 2.0 Where can I get ADB? 3.0 How to run the ADB?      3.1 Open Command Prompt       3.2 Find adb.exe 4.0 ADB Commands      4.1 adb      4.2 adb devices           4.2.1 adb...

View Article


Android AlertDialog with ListView

Android AlertDialog with ListView is part of our awesome list post here. I usually do this when I have to give users more than three choices of action. /* * Show AlertDialog with a simple list view. *...

View Article

Android AlertDialog with ScrollView

Android AlertDialog with ScrollView is part of our fantastic post here. If you want to show long text to the user like your terms of use or privacy policy, you can use a ScrollView with a TextView...

View Article


Android AlertDialog with EditText and Other Form Elements

Android AlertDialog with EditText and other form elements is part of our fancy post here. Here you can also save a lot of space and make your app more simple to use by reducing the number of...

View Article

Android AlertDialog with WebView

Android AlertDialog with WebView is part of our very useful list of AlertDialog examples here. Some app that I see put their privacy policy, terms of use and other information to an online page. You...

View Article

PhpMyAdmin Export Columns

Sometimes you would want to export your MySQL data, but on a specific number of columns only. For example, you have a users table that has has more than two columns (firstname, lastname, username,...

View Article
Browsing all 100 articles
Browse latest View live