Rectangles – Intersection Study

Have you ever walk into a job interview, and were asked to design a program to find if 2 rectangles intersect with each other or not? This apparently is a common “technical” question in a job interview. I do agree that it is an interesting question to evaluate your...

Bubble Sort

Sorting algorithm is probably one of the first thing we learn when we study computer science.  My goal is to try to provide the simplest tutorial for you that hopefully will inspire you to think in simple way, and learn the underlying data structure and algorithm. What is bubble...

Java Modifiers

With the variety of programming languages out there, and each one of them may have a slightly different implementation on their syntax and behavior. It is kind of hard to remember them all, so it will be very helpful to have some quick cheat sheet that will provide guideline...

Commonly Used SQL in 1 page

SQL

SQL (Structured Query Language) has been around for many years and is a very useful tool to access data in small or large scale.  If you are like me, that may not be using SQL everyday, but need to use it once in a while.  What I like to...

A Simple HTML Page

The internet, also known as the World Wide Web, started to really take shapes in the 1980s, and basically has exploded into all aspects in our society. We can find all kind of information in the internet,  we can also interact with it, we shop online, we pay our...

API Service Blueprint Overview – POC Implemented in AWS

AWS

Inter-connectivity is the magic word nowadays as we need to leverage each other services to orchestra a seamless and cohesive UI experience for our users.  API services are now very popular as they are the “contract” or “entry points” which empower orderly collaboration of services.  API services encapsulate the...

Data Types in R

R

Data Types in R take on an interesting twist in contrast to other traditional programming languages like Java and C. In R, the variables are not “declared” with any data type, the variables are assigned some values and the values itself will determine the data type of the variable....

Easy web access log processing with R

R

I recently had a need to diagnose a problem in my web site, so I wanted to do some analysis of the raw access log file.  There are many out-of-the-box analytical utility available but none of them allows me to drill down to the access pattern in more details....

R in the web – with Shiny App

R

How do you host R application on the internet?  One of the available service is from shinyapps.io.  This is a hosting service that allows you to deploy your R application to the server, and shared them on your web pages. It was really easy to setup.  I used RStudio to develop...

Graphing with R 101

R

What is R? R is programming language and execution platform for statistical computing and graphics.  It is known to be the successor for the S language, which was developed at Bell Laboratory.  It focuses on a wide variety of statistical and graphical techniques, including linear and nonlinear modelling, time...