A beginner guide to Brute Force Algorithm for substring search

Introduction CONTROL + F or COMMAND + F How often do you use above keyboard shortcut? In fact, for most of us, searching a string or substring in a pile of strings/document is involuntarily action with the above key combination. This post will deal with the subject of the substring search. We will quickly define... Continue Reading →

A complete tutorial on Binary Tree

Introduction   Figure 1 shows a Binary Search Tree. This post will start with the motivation of studying BST and gradually move to the related definitions. We will do some hands on coding for simple BST operations and we will end the post by analysing the drawbacks. Where do we use Binary Search Tree? Trees... Continue Reading →

Java Basic Tutorials

Priyanshi and I  had conducted a series of three online lectures for those who want to learn Java. These presentation were made for a beginner with no prior knowledge of java. Lectures were supported by online tests and a small project to get hands on knowledge. Please find the presentations that will help in jumpstarting the... Continue Reading →

Optimizing MySQL Performance – An Introduction

What can a badly designed database do? Anyone whose bread and butter comes from database seldom underestimates database performance. But Paulo Cohelo said in veronica decides to die that, People never learn anything by being told, they have to find out for themselves. Echoing the similar sentiments, I was happily having breakfast, lunch and dinner until one... Continue Reading →

Apache Kafka Introductory Tutorial – Set up your first Kafka Producer and Consumer

PrerequisiteA basic understanding about Apache Kafka. Please go through the introduction once, should you need it.InstallationDownload the Kafka from here.Untar the tar file that is downloaded.tar -xzf kafka_2.11-2.1.0.tgzRun The Servercd kafka_2.11-2.1.0Start the zookeeper firstbin/zookeeper-server-start.sh config/zookeeper.propertiesZookeeper would be running at 2181 port. You can check that in the following log:[2018-12-25 14:32:23,634] INFO binding to port 0.0.0.0/0.0.0.0:2181... Continue Reading →

Introduction to Apache Kafka Concepts

What is Apache Kafka? Apache Kafka is a distributed streaming platform. This essentially means that Kafka has following capabilities: Publish and subscribe to the stream of records just like how message queue (e.g. RabbitMQ) works Store streams of records for specified time. Kakfa is not a replacement for database or a logging platform. However, kafka... Continue Reading →

REST API – 4 Best Practices

1. Statelessness In a very simple word, each request should be sufficient in itself to be understood by the server. In other words, the action to a request should not depend on information provided by any prior request. Each request should be an atomic operation. But why statelessness is a constraint? Because It enables us... Continue Reading →

Dropwizard Tutorial : HTML Page Using Freemarker

Prerequisite Before you start this, Its good to follow the following articles. Running Rest API using Dropwizard Reading From Database Using Dropwizard  Writing To Database Using Dropwizard I will assume that your dropwizard project is running. Dependency Add dependency of dropwizard-freemarker-views in your pom.xml Your pom.xml should look like this: https://gist.github.com/rohitsingh20122992/bc05fad912367fc094b3d86f0dbf1943 Freemarker Template Language Apache... Continue Reading →

Dropwizard : Write Data Into Database Using Hibernate

Please follow the first two part of the tutorial before starting this: Introduction To Dropwizard Read Data From Database Using Dropwizard Modify InfoDao To Persist Data Add a method to persist data https://gist.github.com/rohitsingh20122992/804fcb8d8278697b9bad67dc4d6eb596 Add POST API to store the info https://gist.github.com/rohitsingh20122992/ba92da47d24be1cbff32ea19106e92b9 Test Your API Run your project. Test using postman or any other rest client.... Continue Reading →

Blog at WordPress.com.

Up ↑