Monday, 14 January 2019

C# Interview Questions

It is C# basic interview question for beginners level.

1.       What is Class?
Ans: Collection of objects is called class. It is a logical entity.
A class can also be defined as a blueprint from which you can create an individual object. Class doesn't consume any space.

2.       Difference between Class and Objects?
Ans: Any entity that has state and behavior is known as an object. An Object can be defined as an instance of a class. An object contains an address and takes up some space in memory.

3.       What is Oops concept?
a.       What is inheritance?
Ans: When one object acquires all the properties and behaviors of a parent object, it is known as inheritance. It provides code reusability. It is used to achieve runtime polymorphism.

b.       What is Encapsulation?
Ans: Binding (or wrapping) code and data together into a single unit are known as encapsulation.

c.       What is Polymorphism?
Ans: If one task is performed by different ways, it is known as polymorphism.

d.       What is Abstract?
Ans: Hiding internal details and showing functionality is known as abstraction

Sunday, 13 January 2019

Generate the Signed key for apache cordova

You can generate the sign key for your apache application by the given procedure.

1.       Open the command promt, it is windows command prompt.

2.       Get the  Keystore path
C:\Program Files\Java\jdk1.8.0_111\bin\keystore
Go to that above path in the command window.

3.       Give the Below command

keytool -genkey -v -keystore NAME-mobileapps.keystore -alias NAMEmobileapps -keyalg RSA -keysize 2048 -validity 10000

Tuesday, 8 January 2019

compilesdkversion 'android-26' requires jdk 1.8 or later to compile visual studio

You are getting the build error in the Android Apache Cordova.

>compilesdkversion 'android-26' requires jdk 1.8 or later to compile visual studio

You  are getting this error as your application is not pointing to the valid version of the  java SDK (JDK) 

You need to set the JAVA SDK version from below screen in visual Studio.

Tools > Option > Tools for Apache Cordova  > Environment Variable Override

failed to find target with hash string 'android-26' in: C:\ProgramData\Microsoft\AndroidSDK\25

You are getting the below issue, which is build error from android cordova application

* What went wrong:
> failed to find target with hash string 'android-26' in: C:\ProgramData\Microsoft\AndroidSDK\25

It is happening as you have not installed the particular image which your application is pointing to. You are missing the image where your android SDK is present as 

You are having the android SDK version mentioned in Build.Gradle as like below.
ext {
    apply from: 'cordova.gradle'
    cdvCompileSdkVersion = 26 //privateHelpers.getProjectTarget()
    cdvBuildToolsVersion = privateHelpers.findLatestInstalledBuildTools()

Read PDF Table texts in Python

It will read the text from PDF in python.  Read Tables of PDF and place the data to XLSX file and read the XLSX file to one by one.

Suppose you are having the PDF file like below.

It’s a PDF file for Home loan, using the pdftables_api it will use to convert the PDF File into the form of xlsx file.

Now it will convert the PDF file into XSLX.

Tuesday, 25 December 2018

Arduino : Sending Data from ESP8266 to thingSpeak

Setting of ThingSpeak
1.       Create account in Think speak. And complete the validation

2.       Create a new Channel in thingSpeak.

Then click on save channel. By default it will show the empty chart as like below.

Sunday, 16 December 2018

Arduino : Connecting speaker

Simple application to check that the Speaker is connected to the  Arduino or not and how it will produce sound.

Required Items.
1. Speakar
2. Arduino
3. 5V

Follow the below code and upload into arduino for speaker connection

void setup()

void loop()
  tone(8,33, 500);

   tone(8,37, 500);

   tone(8,41, 500);
Circuit for Arduino Connecting speaker 

for more info you can see the below link. for creating melody Arduino Connecting speaker

Saturday, 15 December 2018

Arduino : Blinking LED

Simple and first program of Arduino  for blinking of LED. [ This program is look like "Hello World"  for arduino.

Required Items.
1. LED
2. Arduino
3. 5V

Program for blinking of LED in Arduino.

Saturday, 8 December 2018

Issues on Python configurations

Register the python in environment variable if Python command in Giving error in your terminal.
To see the Environment variable in command Terminals as
Echo %path%

To set the environment variable in the terminal.
setx path "%path%;C:\Python27;"

If above one will not work then set environment using the below path.
Control Panel à View Advance System setting à Go to Advance Tab à Envinoment Variable à Edit

Chat bot in Python using Chatterbot

Here is the sample code demonstration for how to create simple chatbot using chatterbot  in python.
Chatbot will answer the question based on training data that you have provided.