Skip to main content


Bye Bye Docker Desktop, Welcome Docker CLI

We are using docker desktop which has been licensed and this is really annoying for all developers. Good news is that, there is way to get rid of docker desktop and continue doing our great engineering work with docker CLI. Here is the step by step guide to install Docker CLI on MAC - Uninstall Docker Desktop > brew uninstall docker Also check Docker Desktop is removed from MAC as well. If not, delete the Docker desktop app from Applications folder.   Install Hyperkit > brew install hyperkit If you are receiving any issue while installing hyperkit like below, it is because, sometime deletion of docker gives error, if it is not able to find the required folder.  >  Error: Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins Lets fix this issue by creating the folder once and running cleanup command -  >  mkdir -p /Applications/ > brew cleanup Try installing hyperkit again, > brew install hyperkit It should be ins
Recent posts

Nutch crawler and integration with Solr

Before moving ahead with this article, I assume you have Solr installed and running. If you would like to install Solr on windows, mac or via docker, please read Setup a Solr instance . There are several ways to install nutch which you can read from Nutch tutorial , however I have written this article for those who would like to install nutch using docker. I tried finding help on google but could not find any help for nutch installation using docker and spent good amount of time fixing issues specific to it. Therefore I have written this article to help and save time of other developers. Install nutch using docker- 1. Pull docker image of nutch using below command,      > docker pull apache/nutch 2. Once image is pulled, run the container,      > docker run -t -i -d --name nutchcontainer apache/nutch /bin/bash 3. You should be able to enter in the container and see bash prompt,      > bash-5.1#  Let's setup few important settings now- 1. Goto bin folder,       > bash-5.

Identify security leaks in code

  We will be using Gitleaks software to find security leaks. Here are the steps to identify leaks in your code repo - Install gitleaks on your local machine. Click here to install . Check if it is installed successfully on your local machine.  Website> gitleaks --version If its installed, it should show version of gitleaks. Download sample.config file( see attachment ) and copy on your local machine( this is the sample file with configuration/rules, you may change it as per your requirements ). Now git clone the repo on your local machine and goto your code folder. Once you are in code folder, run gitleaks command. Website> gitleaks --path=./ --config-path=../sample.config --verbose where, --path=./ => path of .git folder --config-path=../sample.config => path of sample.config file You can also download the report of leaks for sharing it with your team - Website> gitleaks -v --pretty --path [RepoPath] --config-path=../sample.config --report= [PathtosaveReport] wher

Interview Questions for experienced professionals: Part 1

This article is for those who are prepaing for any technical job interview. Different organisation have different interview process and here I am sharing the interview of one of the consulting firms. Interview was categorised into multiple sections to understand T shaped skills. T shaped skills accesses a candidate on core expertise(depth of understanding) and other technical skills(breadth of concepts).  I have catagorised the interview into sections which includes, Algorithms, SQL Server, Innovative Ideas, Technical Knowledge and so on. You may check your knowledge as well. Try it once. Algorithms Q: How to swap the values of two integers with using additional memory?  Ans:  public static void SwapInt () { int a = 25 ; int b = 35 ; a = a + b ; b = a - b ; a = a - b ; Console . WriteLine ( "a=> " + a + " b=> " + b ); } Q: How to find duplicate i

Dockerize a dotnet core application with SQL connectivity

Before reading this article, I am assuming that you know Docker, Dotnet core and have a dotnet core application which is trying to connect to SQL server. Read how to build aspnet core app, docker and run the docker container. If docker container is running and you are not able to connect to database, this blog should help you fix it.  Prerequisite -  Make sure code is working via running aspnet core locally via visual studio or command line. Port 1433 is opened for connecting to SQL server. Solution If you have Docker file ready, it should somewhat look like below file -  FROM AS build-env WORKDIR /app # Copy csproj and restore as distinct layers COPY /SampleAPI/*.csproj ./ RUN dotnet restore # Copy everything else and build COPY . . WORKDIR /app/SampleAPI RUN dotnet publish -c Production -o publish # Build runtime image FROM WORKDIR /app/SampleAPI COPY --from=build-env /app/SampleAPI . WORK

Know the rasa ecosystem and train your model effectively

Hope you have read the previous blog to create chatbot using Rasa. I would recommend to read it before starting this blog. This blog will help you understand insights of rasa ecosystem and explain how to train your model effectively. Rasa is an open source framework for creating chatbot with natural language undertsanding. There are few important files of rasa project - ✪ domain.yml This file contain information about intent and respective actions . For instance- basis on intent of a user, appropriate action gets triggered and response is sent back to user. '-utter' is plain text without any logic behind it, however we can create custom action which we will discuss further in the blog. intents : - greet - goodbye - affirm actions : - utter_greet - utter_cheer_up - utter_did_that_help responses : utter_greet : - text : Hey! How are you? utter_cheer_up : - text : 'Great, carry on!' utter_did_that_help : - text : Did that help yo

Create chatbot in 20 minutes using RASA

This blog will help you create a working chatbot with in 20 minutes. For creating chatbot we need following libraries to be installed- >> Python3 >> Pip3 >> Rasa Lets start installing all libraries & dependencies which are need for creating chatbot. Note: I have used MAC, therefore sharing commands related to it. You can install it on Windows, Linux or any other operating system using respective commands. 1. Install Python3 > brew install python3 > python --version #make sure you have python3 installed 2. Install Pip3 > curl -O > sudo python3 If you get issue related to Frameoworks while installing pip, follow below steps -  > cd /usr/local/lib > mkdir Frameworks > sudo chown -R $(whoami) $(brew --prefix)/* Once installed check pip3 version > pip3 --version After python3 and pip3 is succeffully installed, proceed to next steps. 3. Install Rasa > pip