Git – Cheatsheet and All Interview question answers

Git

Download PDF What is GIT? GIT is a distributed version control system and source code management (SCM) system with an emphasis to handle small and large projects. GIT track changes in computer files or any kind of files and coordinate work on those files among multiple people anywhere. As a distributed revision control system, it is aimed at speed, data integrity, and support for distributed,…


String – Delete adjacent similar characters in string and return count

Given a sorted string str of lowercase characters. The task is to count the number of deletions required to reduce the string to its shortest length which does not contain any repetitive characters. We will delete all adjacent repetitive letters except the one. The task is to print the count of deletions done. Examples:

  Approach and solution – I will update tomorrow. Tag us on Instagram  @coders.blog with…


HTML5 Frontend Interview Questions and Answers

HTML5

  Download PDF file View on Google docs HTML5 What is doctype? Why we need it? Doctype is an instruction to the browser to inform about the version of html document and how browser should render it. It ensures how element should be displayed on the page by most of the browser. And it also makes browser’s life easier. otherwise, browser will guess and will…


Integration issue-Testlink and Jenkins

As we know we can connect Jenkins with Testlink based on “Personal API access key” and “Custom field” defined in testlink. Recently I faced an issue with Testlink  Version 1.9.15, that user is not able to connect with jenkins. Error was as below: FATAL: Error verifying developer key: Failed to parse server’s response: Content is not allowed in prolog. br.eti.kinoshita.testlinkjavaapi.util.TestLinkAPIException: Error verifying developer key: Failed to…


Protractor setup in eclipse for angular js testing

Prerequisites: Install Chrome browser – https://www.google.com/chrome/browser/desktop/ Install Java JDK  and setup Java_Home and path – http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Download Selenium stand alone server – http://www.seleniumhq.org/download/ nodejs – https://nodejs.org/en/download/ (use default setup) Download Eclipse IDE Angular JS Eclipse from Eclipse Market place. (Help>Eclipse Marketplace) Cross check setup: Open cmd window and run below commands: java -version  node –version npm –version These commands will return the respective versions. Folders: Create Three…


ETL Testing Basics

Before getting into details of ETL testing lets understand how business works and why ETL is needed. All organization do the documentation for storing the track record of their work details,business details, financial details etc. From very long time people are store data in different forms and formats. Excel, CSV, TSV, flat files , databases etc are different mode of saving data in electronic mode.Saving…


Jenkins Setup on Windows

Go to https://jenkins.io ( Jenkins official site). Go to downloads and select the war as per your requirement. As here we are setting up jenkins on Windows platform. Hence we are selecting war for windows. Jenkins zip file will be downloaded. Extract the .msi file (For windows). Run .msi file and it will install the jenkins on default ports: 8080. Go to the folder where jenkins…


Angular2 ng2 bootstrap datepicker directive daterangepicker

In this article, we will discuss how to add daterangepicker in Angular2 app. Last week in the project there was a requirement to use daterangepicker. But after hell lot of research, I was not able to get any single lib in angular2 but it was available in jquery. So after searching on how to use jquery in angular 2 I came across this git example, using which I was…


Angular2 disable page, conditionally add dynamic css

In this article, we will disable a page or div on clicking a button or till the method is completely executed. Use case: While downloading a content we want to disable a page or div and on completion of download we will give access to page/div. This is Github link of this project: Disable div/page What we will learn Dynamically adding-removing css in Angular2 Disabling div/page Using Timeout’s in…


Angular 2 PDF Viewer and thumbnail creation

In this article, we will create a thumbnail of PDF and on clicking that thumbnail we will view that PDF in HTML5’s iframe tag. We can think like a pdf file is just a collections of images and based upon the viewport we can scale that image so to create a thumbnail we will select the first page/image of pdf and scale it to thumbnail…