A deep dive into Protobufs

Image for post
Image for post

In the previous article, we went through various concepts related to the gRPC framework. There I had briefly mentioned protocol buffers, which is the default method of serializing structured data in gRPC. In this article, we’ll be taking a deeper look into the concept of protocol buffers.

What Are Protocol Buffers?

Protocol buffers are a method of serializing data that can be transmitted over wire or be stored in files. The other formats like JSON and XML are also used for serializing data. …

And the differences between REST vs. RPC architectures

Image for post
Image for post

The objective of this article is to have a high-level idea of gRPC. It will also explain the similarities and differences between gRPC and existing protocols and architectures followed for the communication of web applications.

What Is gRPC?

gRPC is an open-source Remote Procedure Call framework that is used for high-performance communication between services. It is an efficient way to connect services written in different languages with pluggable support for load balancing, tracing, health checking, and authentication. By default, gRPC uses protocol buffers for serializing structured data. Generally, gRPC is considered as a better alternative to the REST protocol for microservice architecture. …

Building an app that lets you mark and save annotations on a given image

Image for post
Image for post
courtesy : quora

Image annotation is the process of labeling various objects in an image. The main application of image annotation is the generation of data, which can be used to train machine-learning algorithms. Image annotation is a task mainly done manually. Image annotation work is now an inevitable part of machine learning and AI and is mainly outsourced to countries like India and the Philippines. In this piece, we will be building an image annotation app that lets you mark and save annotations on a given image.

There are lots of libraries and tools that let us do image annotations, including many priced options like Labelbox, but for this app, we’ll be using a free library called Annotorious. …

Insolar Network and how it solves Blockchain limitations

Image for post
Image for post
courtesy: https://insolar.io/

Insolar is a blockchain platform that enables distributed business networks. It allows users to build enterprise applications on top of its blockchain and the platform has a multilayered architecture. One of the most important layers in this architecture is the network layer. Before taking a look at the Network layer, it is important to understand how a transaction is created and validated in the platform. Also, it is to be noted that Insolar Blockchain allows for interoperability between public and private networks.

Insolar follows an “executed by one validated by many” convention. That means the execution of the transaction will be done by a single node and this transaction will be validated by many nodes. An executor node is selected, which can receive calls, collects the results of outgoing calls and provide the updates that need to be validated by other nodes. …

Bringing rich text content and editing to Rails

Rails 6.0 is here! The stable version was released on April 30. The Rails 6.0 beta1 was released on January 15. The Rails 6.0 release was action-packed, as Rails releases always are. There are two major frameworks newly introduced: Action Mailbox and Action Text. In this post, let's take a quick look at Action Text by using it in a small app.

Image for post
Image for post

Action Text

Action Text lets us bring rich text content and editing to Rails. This means we can perform operations like formatting text, embedding images, formatting links, and adding lists and other editor-like features to a text field.

This is done by including the Trix editor in the framework. The RichText content generated by the Trix editor is saved in its own RichText model that’s associated with any existing Active Record model in the application. All embedded images or other attachments are automatically stored using Active Storage.

Each version of Ruby includes a set of new features and methods. This documentation list out the new changes that were introduced from Ruby version 2.5 onwards.

Image for post
Image for post

New Features and Functions added to Ruby 2.5


#1 Reverse Stack Trace:

One of the major feature that was introduced in Ruby 2.5.0 is Reverse Stack Trace.

Before Ruby 2.5, the printed backtrace contained the exception class and the error message at the top. Next lines will contain the location of the various cascaded method calls. This made it difficult to read the error message as it is difficult to display the whole backtrace in the visible viewport of the terminal.

So from Ruby 2.5 onwards, the backtrace was printed in reverse order. That is an error message and exception class is printed last at the backtrace. Also, a frame number was also added with each line. …

Image for post
Image for post

Apla is a blockchain platform that allows small and medium enterprises to automate various processes through DApps. In the previous post, we learned how to set up to 5 Apla nodes and build our first DApp. In this article, we will be creating our own ecosystem using the Apla testnet.

Before creating our ecosystem, let’s have a quick look at the architecture of the platform.

Apla’s architecture can be divided into three parts:

  1. Network
  2. Database
  3. Ecosystem

Network: Apla is based on a peer-to-peer network and each node of the network saves an up-to-date version of the blockchain and database in which the global state of blockchain is present. These transactions are verified and then the global state is updated; the global state can only be updated through transaction execution. …

In this blog post, we will be creating a movie recommender system in python, that suggest new movies to the user based on their viewing history. Before we start let's have a quick look at what a recommender system is.

Image for post
Image for post
courtesy: https://ghanatalksbusiness.com/use-ratings-carefully-performance-reviews/

Recommender Systems

You may not know the definition of a Recommender system yet, but you have definitely encountered one before. This is because recommender systems are present everywhere on the internet. The purpose of a recommender system is to suggest users something based on their interest or usage history. …

Image for post
Image for post

The Platform

The Apla blockchain platform allows small and medium enterprises to reduce operational costs, can be used to fundraise projects and automate various processes by providing a ledger based ecosystem. Apla offers a growing number of DApps to automate various business activities.

Apla is a tech company that uses blockchain technology to help organizations work faster, safer and with greater impact. Recently I came to read about the Apla blockchain platform and its white paper. This article will be a short summary of the white paper and focuses on the highlights of the platform.

Image for post
Image for post

What is Apla Blockchain Platform?

According to the white paper

Apla blockchain is a secure, simple and compliant blockchain infrastructure for a fast-growing global collaborative economy segment. …


Arun Mathew Kurian

Devoted reader | Ruby on Rails Developer| Movie Buff

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store