Archive

Blog Archives

Javascript – Detect Inactivity in Browser Tab

Simple Javascript code that detects when user becomes inactive in a browser tab.

PhotoSwipe – Loading slider to a container

An example code for dsiplaying PhotoSwipe slider inside a container rather than full screen.

Installing MongoDB in Laragon Windows

Installing MongoDB in Windows can be very confusing when you’re a beginner. Your first thought was probably to just google and find a article that will summarize it for you, well you came to the right place. Let’s dive into the installation right away Download and install the latest version of the following if you […]

Javascript – Check if an array contains one or more items from another array.

Function for checking whether items of an array exists in another array without using arrow functions.

Print Content Of Bootstrap Modal Window

Example of printing a Page inside a modal window

React Native Wizard Stepper

React Native UI snippets

React Native Cart System

React Native UI snippets

React Native List with Grid consisting of Icons and Text

React Native UI snippets

React Native Tabs in Single File and Split Files

React Native UI snippets

Horizontal Live Event Cards with Image and Gradient – React Native

React Native UI snippets

How to install and use Neor Profiler SQL

Track all queries in your web application – find bottlenecks and performance issues.

How to install Xdebug in Laragon

Setup Xdebug PHP profiling tool in your laragon server in less than 3 minutes.

CRUD Query using JSON Column

Code snippets for performing CRUD operations usng JSON data type.

Consuming WCF in ASP.NET MVC 5 with Entity Framework 6 using Visual Studio 2017

Create WCF service with Entity Framework then consume it on a ASP.NET MVC application

Performing CRUD Operations with Sessions in Python – Django

Performing Create, Read, Update and Delete in Python Django

Creating a AJAX Helper Function in ReactJS

Wrapping fetch method into a helper function in ReactJS

Creating Helper Functions in ReactJS

Creating helper functions for your react components.

Add Plugins to CKEditor CDN

Easily add plugins into your CKEditor hosted on a CDN.

CKEditor – Detect when typing stopped

Useful for saving the data state whenever the user stops or pauses from typing.

Responsive Table Using Pure CSS

Create a responsive table without using any Javascript plugins.

Connecting an ASP.NET MVC Application to MySQL

Learn how to connect an ASP.NET MVC application to MySQL

Zip and Unzip Files with PHP

Easily zip and unzip specific files or folders using these methods

Simple PHP Pagination with AJAX

Create a simple and light weight AJAX pagination using PHP

PHP File Upload for CKEditor

Simple file uploader for CKEditor 4

Get a Perfect Score of 100 on Google PageSpeed Insights

Obtain a perfect score of 100 in Google Page Speed insights the right way.

Python – Django AJAX Pagination with Search and Sort

A simple AJAX pagination that includes a search filter and sorting functionality

Creating a Registration Page in Django

A simple bootstrap registration page using Django v.1.10.

Create a Facebook Preloader Style using Bootstrap

Simple preloader similar to Facebook using Bootstrap. Easy to implement and easy to learn.

Setting-up AWS CodeDeploy

Deploy your first app to AWS using CodeDeploy

Organize Diretory Files into Year-Month-Day Heirarchy using PHP

Do you have large amount of files sitting in just one directory? Have you ever thought about organizing them in Year-Month-Day path programatically? Let’s get started.

Ajax Multi File Upload in ASP.NET MVC 5

In this tutorial we will work with uploading files asynchronously via Ajax

AJAX Pagination with Search and Sort in ASP.NET MVC 5

A simple tutorial which demonstrates how you can paginate your data using AJAX and apply search and sort features using Entity Framework in ASP.NET MVC 5.

Using Angular Material with Meteor

How to integrate Angular Material to your Meteor Application

Deploying Meteor App to Heroku

How to get your meteor app up and running on Heroku testing environment.

Uploading Rails App with MongoDB to Heroku

How to properly upload your Rails application to Heroku that has MongoDB as database.

Setting up Bcrypt for Rails on Windows

Demonstrates how to properly setup bcrypt on Windows and to solve the error bcrypt_ext.so (LoadError) message in your terminal

Ruby on Rails Pagination

Creating a simple paginated list of posts on Ruby on Rails

Node.js Authentication

A simple user authentication example using Express and Passport.js which includes pages for Login, Register, and Account.

Node.js AJAX Pagination with MongoDB + Search + Sort + Filter

Create a simple pagination that loads the content dynamically from NodeJs server.

MongoDB Authentication Using PHP

Recently, a client of mine wanted to have an authentication system for their existing Web Application. They are currently using MongoDB as their Database and just wanted to implement a simple Login, Register and Account page for their customers. I did not have much experience working with MongoDB before I accepted the project  so I […]

MongoDB AJAX Pagination with Search and Sort using PHP

A simple tutorial which demonstrates how you can paginate your documents using AJAX and apply search and sort features.

Installing MongoDB in XAMPP Windows

Install and configure MongoDB in XAMPP with Windows environment.

How to do ajax in Laravel 5.2

Best practices in implementing ajax in your laravel app.

Adding Helper Files in Laravel 5

Demonstrates how to properly add helper files to your laravel app

Moving Laravel 5.6 from local machine to live server

Shows how to properly transfer your laravel app on a live server

Handling active menu item in Laravel 5

Best practice for handling “active” menu item in Laravel 5

How to make your Tables Responsive

Make your long table columns adapt to smaller screens using Stackable.js.

Using History.js with AJAX

Simple example on how to make History.JS work with dynamically loaded pages.

Build your own Custom File Manager for CKEditor using PHP

Upload files with CKEditor to a custom directory using a simple File Manager PHP Script.

Clear Cache of Modified Files using PHP

Clear the cache of modified files only using PHP

Android Development – Parsing JSON Data from a URL

How to parse JSON data using HTTPClient and display the results on a ListView

Java – Parsing JSON Data from a URL

Simple code snippet for parsing JSON data from a URL in Java

AngularJS – Show route only after all Ajax requests are resolved

Show route page only after Ajax request is complete for single or dynamic routes

AngularJS – Show a loading image on HTTP Requests

Append a loading gif image to your screen while AJAX is fetching data

AJAX Multi File Upload in WordPress Front-End

Uploading Files Asynchronously in WordPress Front-End using AJAX

Clear Browser Cache Every Nth Day(s) in PHP

A simple PHP Script that allows you to clear you cache every nth day(s)

WordPress Front-end AJAX Pagination with Search and Sort

A simple AJAX pagination that includes a search filter and sorting functionality

Loading wp_editor via AJAX

Fix problem with wp_editor showing but missing buttons on Text and Visual tab

Customizing WP Editor in WordPress

Customizing Wordpress’s default wp_editor buttons and settings.

Parsing a CSV File using PHP

Describes how you can access the columns of a CSV file and insert the items into the database

Create Posts from WordPress Front-End

Allow visitor to create a post from the front-end of your WordPress blog

Using REPLACE in an UPDATE statement

This tutorials demonstrate the use of REPLACE with UPDATE function to selectively replace text inside a string in SQL Server

Simple Posts Pagination in WordPress

Paginating posts in WordPress

Polymorphism – OOP PHP Tutorial

Understanding Polymorphism and its usage and advantages.

GET Request using cURL

Demonstrates how to pull out data from a Web Service using cURL GET Method

Fastest way to Convert Associative Arrays to Objects

No need to create a class or Function to accomplish it.

Generate CSV file and send as Email attachment PHP

Querying reports from SQL database then generate a CSV File containing all the queried data then send the CSV File to the admin email.

Simple Database Connection using MySQLi OOP and Procedural

This tutorial demonstrates the use of MySQLi in OOP and Procedural Approach

Building a Real-Time Chat Application Using Pusher

A simple chat application that uses a self-hosted API called Pusher

Overriding WooCommerce archive-product.php

Best way to customize your Products page in Woocommerce

AJAX Multi-File Upload With Image Preview and Sort [Under Development]

Simple File upload with Preview and Sort Functionality before upload

Disable Update Notifications in WordPress Admin

Stop annoying updates and notifications in your WordPress Admin

Flat Surface Shader Tutorial

The Flat Surface Shader is a simple plugin developed by Matthew Wagerfield which is based on the Lambertian Reflectance model, where the color of a triangle is calculated by a variety of different light sources within a particular scene.

Simple File Upload with PHP

Create a very simple file upload with File Size validation.

Creating a Facebook Thumbnail Field in your WordPress Post or Page

In this tutorial, I am going to show you how to create a field where you can enter a custom image that you wish to use as your cover image when sharing your posts/pages on Social Sites such as Facebook

Build Your Own Ajax Contact Form in WordPress

A very simple AJAX Contact Form for your WordPress blog.

Featured Image Shortcode [Plugin]

Creates a shortcode for your featured image to easily embed it within your WP Editor.

Accessing HTML DOM Elements with PHP

Get contents of a website by parsing the DOM Elements

Character Count with Live Progress Bar using jQuery

Count remaining characters from an input field or textarea and displays a progress bar.

Overriding Woocommerce CSS

Loading a custom style sheet before Woocommerce style sheet

AJAX Multi File upload in CodeIgniter

A simple AJAX multi-file upload tutorial that follows CodeIgniter best practices.

Implementing AJAX Pagination with Search in CodeIgnier

Advanced jQuery Pagination using AJAX and PHP

How to do Ajax in Codeigniter

A very basic but powerful implementation of Ajax that complements Codeigniter.

Post Class for Resume Database

Functions from my most recent Resume Database project

Optimize WordPress Database by Disabling and Removing Revisions

Disable the saving of revisions in your WordPress blog to optimize your Wordpress database.

How to use Pace.Js

Add a simple Progress Indicator into your website

How to use niceScroll.Js

Easy-to-use solution to have a custom scroll bars compatible with desktop, tablet and phone devices.

How to use LazyLoad.Js

Lazy Load is delays loading of images in long web pages. Images outside of viewport are not loaded until user scrolls to them.

AJAX using XMLHttpRequest Object

Learn the basics of AJAX using XMLHttpRequest with Javascript.