A tutorial for MNIST – Digit Recognition Using scikit learn

Introduction This is again a note to myself. This code has been prepared following different tutorials and SO answers. I have tried to cover many of them in reference below. The notebook is commented to the best of my ability. Starting with 11% in first trial, the final model is able to achieve accuracy of... Continue Reading →


Hello World Tutorial App Using React Native For Android/ios

Installation Please install node.js if you haven't already done. You can check if you have node already installed by using following command: node -v brew install node Use brew commands given above to install node. Create First App npm install -g create-react-native-app Create React Native App makes it significantly easier to get started with a... 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 →

Dropwizard – Tutorial to write APIs to read/write from database using hibernate

Please go through the first part of this tutorial to set up your dropwizard project. For this project, we will assume you have a working dropwizard project. Add dependency to your pom.xml Please add dependency of hibernate and mySQL-connector to your pom.xml https://gist.github.com/rohitsingh20122992/b4256af30b3cecaf64e0454460c41d72 Create Info Table in MySql https://gist.github.com/rohitsingh20122992/eda65377e68f280758cea3ab54347486 Add some content to your table.... Continue Reading →

Design Pattern – The Singleton Pattern

Definition Sorry about that whisky image. I, too, love click baits 😉 The singleton pattern is a software design pattern that restricts the instantiation of a class to one object. Singleton pattern is a convention for ensuring one and only one object is instantiated for a given class. Usage Places where only one object is... Continue Reading →

Blog at WordPress.com.

Up ↑