Posts

Featured post

Logging in ASP.NET Core 3.1 Using NLog

Image
  NLog          NLog is an open source logging framework that provides a great flexibility and configurable options to log the insights of your application. It allows to select multiple targets like database, files, console, etc. at the same time so that user don’t have to maintain different configurations in code. This is the most widely used logging framework out there.  For more details :  https://nlog-project.org/    It is easy to implement in your Asp.Net core application. We'll see step by step with image.    1.     Open Visual Studio and Create new project 2.    Choose ASP.Net Core Web Application 3. Enter Name of project 4.  Choose Web Application  5.  Right Click on your project name and choose Manage Nudget packages.         Search these two nudget packages and install.            1. NLog.Config         2. NLog.Web.AspNetCore                   6.  Open Nlog.config file and paste the code.   <?xml version= "1.0" encoding= "utf-8" ?> < nlog

Indexing and Searching Elasticsearch 6.3.1 | 2020

Image
  1. Download Elasticsearch 6.3.1 from link below    https://www.elastic.co/downloads/past-releases/elasticsearch-6-3-1 2. Download Kibana 6.3.1 from link below  https://www.elastic.co/downloads/past-releases/kibana-6-3-1 3. for start elastic in your pc double click on elasticsearch.bat    -  Go your download destination where you download elastic zip file and extract zip   -  Go to bin folder there is bat file 4. for start kibana in your pc double click on kibana.bat   -  Go your download destination where you download kibana zip file and extract zip   -  Go to bin folder there is bat file 5. Open browser and type    - http://localhost:9200   for elasticsearch    - http://localhost:5601   for kibana dashboard 6. Go to kibana  dashboard and go to dev tools 7. In dev console you can create index,add docs and searching. 8. Check the Code below // Create Index PUT test {   "settings": {     "blocks.read_o

What is JVM, JDK and JRE

Image
JVM JVM (Java Virtual Machine) is an abstract machine. It is called a virtual machine because it doesn't physically exist. It is a specification that provides a runtime environment in which Java bytecode can be executed. It can also run those programs which are written in other languages and compiled to Java bytecode. JDK JDK is an acronym for Java Development Kit. The Java Development Kit (JDK) is a software development environment which is used to develop Java applications and applets. It physically exists. It contains JRE + development tools. The JDK contains a private Java Virtual Machine (JVM) and a few other resources such as an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (Javadoc), etc. to complete the development of a Java Application. JRE JRE is an acronym for Java Runtime Environment. It is also written as Java RTE. The Java Runtime Environment is a set of software tools which are used for developing

How to create Transparent Dropdown Menu in HTML and CSS in HINDI | 2018

Image
How to create transparent dropdown menu Download : click on the file name to be download their code.   index.html style.css transparent_image.jpg Step:1 Create an  index.html file 1 .  index.html <!DOCTYPE html> <html> <head> <title>Transparent Dropdown Menu</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <ul> <li><a>Home</a></li> <li><a>About Us</a> <ul> <li><a>Our Team</a></li> <li><a>Why Us</a></li> </ul> </li> <li><a>Contact Us</a> <ul> <li><a>Get In touch </a></li> <li><a>Direction</a></li> </ul> </li> <li><a>Blog</a></li>

Hello World Program

In this page, we will learn how to write the simple program of java. We can write a simple hello java program easily after installing the JDK. To create a simple java program, you need to create a class that contains main method. Let's understand the requirement first.

Installation of JDK

Image
Downloading the Java Software Development Kit              1.  Navigate to  http://www.oracle.com/technetwork/java/javase/downloads/index.html .  You can download a simple Java Software Development Kit (JDK) installer for Windows, macOS, or Linux directly from Oracle.      2 . Scroll to the latest version of Java SE Development Kit.  You should always use the latest stable version of the toolkit. There may be more than one version listed, so look closely at the release number. For example, if you are presented with JDK 8u101 and 8u102, choose 8u102. 3. Next step is to run the downloaded java installer exe file. Just double click on it and follow the steps. Most of the time you don’t need to check anything and go with default selection, below are images from my installation screens. They might differ little bit based on your java version installation but mostly it’s same as usual. 4.  Java on Windows 10 Version Check Finally, we have to chec

Features of Java

The prime reason behind creation of Java was to bring portability and security feature into a computer language. Beside these two major features, there were many other features that played an important role in moulding out the final form of this outstanding language. Those features are : 1) Simple Java is easy to learn and its syntax is quite simple, clean and easy to understand.The confusing and ambiguous concepts of C++ are either left out in Java or they have been re-implemented in a cleaner way. Eg :  Pointers and Operator Overloading are not there in java but were an important part of C++. 2) Object Oriented In java everything is Object which has some data and behaviour. Java can be easily extended as it is based on Object Model. 3) Robust Java makes an effort to eliminate error prone codes by emphasizing mainly on compile time error checking and runtime checking. But the main areas which Java improved were Memory Management and mishandled Exceptions by intro