27 September 2016 10 minutes

How to Create a Programming Language Using ANTLR4

Written by Ashraff Hathibelagal
  Programming

There are thousands of programming languages available today, and new ones show up every year. If you are a programmer, at some point in your life, you must have wondered if you too could ever create your very own language, one that conforms to your ideals. Well, thanks to ANTLR v4, doing so has become easier than ever. In this tutorial, I'll show you how to create a very simple programming language using ANTLR4 and Java...

Read more »
12 September 2016 3 minutes

How to Hide the Status Bar and the Navigation Bar in Android

Written by Ashraff Hathibelagal
  Programming

Sometimes, you might want to use every single pixel that's available on your user's screen. Removing paddings and margins won't get you very far because the Android OS, by default, displays a navigation bar at the bottom, and a status bar at the top. Both of them consume a lot of pixels and stop you from providing a truly immersive, full-screen experience. Fortunately, hiding those bars isn't very difficult. In this tutorial, I'll show you how to hide both the status bar and the navigation bar of your Android activity...

Read more »
07 September 2016 10 minutes

How to Create Deep Neural Networks in JavaScript

Written by Ashraff Hathibelagal
  Programming

In my previous post, I showed you how to create a simple neural network that has only an input layer, and an output layer. By adding a few hidden layers between the input and output layers, you can create a deep neural network. Deep neural networks are usually far more powerful, and are capable of both supervised and unsupervised learning. In this tutorial, I'll show you how to create a deep neural network with two hidden layers, and use it to perform yet another rather trivial task(decide what I should wear based on the temperature)...

Read more »
05 September 2016 10 minutes

How to Create Simple Neural Networks in JavaScript

Written by Ashraff Hathibelagal
  Programming

Let's face it, if you are an ordinary web or mobile application developer, learning how to use machine learning libraries such as TensorFlow or Caffe is no walk in the park. Their APIs are probably intuitive for people who are already quite familiar with neural networks, matrix operations, and advanced mathematics. For the layman, however, they simply don't make much sense. Fortunately, last week, I found a JavaScript library called Synaptic. I must say, I had a lot of fun using it. In this tutorial, I'm going to show you how to use it create simple neural networks...

Read more »
02 September 2016 10 minutes

How to Install and Use Facebook's Zstandard

Written by Ashraff Hathibelagal
  Programming

Recently, Facebook released version 1.0 of Zstandard, popularly known as just Zstd. It is an implementation of a new data compression algorithm developed by Yann Collet, the same guy who developed LZ4 and xxHash. I believe that Zstandard might very well become the new de facto compression library of the future because it overcomes most of the limitations present in zlib, and offers markedly better compression ratios. In this tutorial, I'll be showing you how to install Zstd and use it both as a command line tool, and as a C library...

Read more »
30 August 2016 10 minutes

How to Create a Material Design Jekyll Theme

Written by Ashraff Hathibelagal
  Programming

In my opinion, Jekyll has the potential to become as popular as WordPress. The only thing holding it back is the fact that there aren't enough themes for it. Indeed, you can count the good ones on your finger tips. Thankfully, creating themes for Jekyll is extremely easy. If you are comfortable with HTML, and are familiar with a good CSS framework, it won't take you very long either. In this tutorial, I'm going to show you how to create a responsive, material design Jekyll theme from scratch. We'll be using Materialize as the CSS framework. This will be a theme you can immediately start using for a simple blog. And, with a little more polish and customizations, you can even sell it...

Read more »
29 August 2016 5 minutes

Jekyll vs WordPress, And Why I Chose Jekyll!

Written by Ashraff Hathibelagal
  Opinion

I assure you, when you decide to have a blog of your own, you're going to spend days, if not weeks, choosing the "perfect" blogging platform. Usually, most people end up choosing WordPress, mostly because they've heard of it, or know someone who's using it. Of course, those who've been on the Internet for long enough, would also choose it because it's open-source and has a very lively community. And then there are PHP programmers, who choose it because they think they'll be able to make all the customizations they want...

Read more »