13 June 2017 15 minutes

How to Create an LSTM Recurrent Neural Network Using DL4J

Written by Ashraff Hathibelagal
  Programming

Long short-term memory recurrent neural networks, or LSTM RNNs for short, are neural networks that can memorize and regurgitate sequential data. They've become very popular these days, primarly because they can be used to create bots that can generate articles, stories, music, poems, screenplays - you name it! How? Well, its because a lot of things humans do involve sequences...

Read more »
27 March 2017 15 minutes

How to Create a Reddit Client Using Angular 4.0

Written by Ashraff Hathibelagal
  Programming

This weekend, I decided to give Angular 4.0 a try, and was very happy when I managed to create a rudimentary Reddit client with it in less than 15 minutes. Yes, I was able to effortlessly create a new component, a new service that can asynchronously fetch and process Reddit's JSON data, and use both together in my app. In this tutorial, I show you how I did that...

Read more »
23 March 2017 15 minutes

How to Create Animated Shaders With ShaderToy

Written by Ashraff Hathibelagal
  Programming

ShaderToy is a very handy tool that lets you create shaders inside your browser. It offers an easy-to-use interface where you can type in your GLSL code and watch it run immediately. You can also record your runs as WebM movies and share them on YouTube and other such websites. Creating beautiful graphics with GLSL, however, is not an easy task. In fact, creating even simple geometric shapes involves a good amount of math, and requires a slightly different way of thinking. In this tutorial, I'll show you how to use ShaderToy to create two circles and also animate them...

Read more »
10 March 2017 15 minutes

How to Create Convolutional Neural Networks Using Java and DL4J

Written by Ashraff Hathibelagal
  Programming

Using Deeplearning4j, you can create convolutional neural networks, also referred to as CNNs or ConvNets, in just a few lines of code. If you don't know what a CNN is, for now, just think of it as a feed-forward neural network that is optimized for tasks such as image classification and natural language processing. In this short tutorial, I'm going to show you how to create a simple CNN and train it using the CIFAR-10 dataset, a very popular dataset that has thousands of labeled images...

Read more »
16 February 2017 10 minutes

How to Create Vue Components Using TypeScript and Vueify

Written by Ashraff Hathibelagal
  Programming

TypeScript has become very popular these days, and I'm sure there are some of you who'd prefer using it while creating Vue components. In this tutorial, I'll show you how to use TypeScript—along with vue-class-component, Browserify, and Vueify—to create a simple Vue 2.x component. Note that we won't be using any starter templates in this tutorial. In fact, we won't be using Vue CLI at all. Instead, we'll install everything we need manually, and also build our project manually. Why? Well, to gain a better understanding of how things work...

Read more »
15 February 2017 5 minutes

How to Create a Component in Vue 2.1

Written by Ashraff Hathibelagal
  Programming

I've been using Vue.js for a while now, and recently thought it's time I learned Vue 2.x. So, I decided to create a simple Reddit component—one that can display recent posts from any subreddit—using Vue 2.1. Why? Well, what better way to learn a framework than to create something interesting with it. In this tutorial, I've documented the steps that I took to create it...

Read more »
01 February 2017 10 minutes

How to Generate Mandelbrot Set Fractals in JavaScript

Written by Ashraff Hathibelagal
  Programming

After reading about the Mandelbrot set, I've found myself a brand new hobby--generating fractal images. If you don't know what the Mandelbrot set is, you can think of it as just a bunch of complex numbers. Those numbers, however, can be used to generate colorful, alien patterns that can truly leave you spellbound. In fact, images of the Mandelbrot set can be so detailed that you can stare at them for hours and still keep finding interesting and unique patterns. In this tutorial, I'll show you how to generate the Mandelbrot set using just JavaScript, and plot it on a canvas...

Read more »
23 January 2017 15 minutes

How to Create a Custom Browser for Android Using Crosswalk

Written by Ashraff Hathibelagal
  Programming

The Crosswalk project lets you embed the latest version of Chromium in your Android apps, and use it as an alternative to the usual webview component. In this tutorial, I'll show you how to use it to create your very own custom browser...

Read more »
14 January 2017 15 minutes

How to Use Deeplearning4J in Android Apps

Written by Ashraff Hathibelagal
  Programming

Usually, training a neural network is a task meant for powerful computers having multiple GPUs. But what if you want to do it on your humble Android phone or tablet? Well, it's definitely possible. Considering an average Android device's specifications, however, it will most likely be quite slow. In this quick tutorial, I'll show you how to use Deeplearning4J, a popular Java-based machine learning library, to create and train a neural network on an Android device...

Read more »
03 January 2017 5 minutes

Getting Started With Firebase JobDispatcher for Android

Written by Ashraff Hathibelagal
  Programming

On devices that run Android 5.0 or higher, developers can easily schedule jobs using the JobScheduler system service. To support the same functionality on older versions of Android, Google's recently released a library called Firebase JobDispatcher. In this tutorial, I'll be showing you how to use the library to schedule simple recurring jobs.

Read more »