Articles on Trending Technologies

Technical articles with clear explanations and examples

Design a Vertical and Horizontal menu using Pure CSS

Yaswanth Varma
Yaswanth Varma
Updated on 09-Oct-2023 544 Views

The menu is a crucial component of any website. It helps visitors find your quality material and directs them to the key portions of your website. Of course, CSS is the best language for creating stunning navigation menus. It is incredibly adaptable and can be used for any kind of website. It can be shown either horizontally or vertically before the primary content of the webpage or header. The task we are going to perform in this article is to design a vertical and horizontal menu using Pure CSS. That can be done by using the and tags. ...

Read More

How to use Hashmap in TypeScript?

Shubham Vora
Shubham Vora
Updated on 07-Oct-2023 45K+ Views

The Hashmap is the one kind of data structure that stores the key-value pairs of the different data.  Like other programming languages, TypeScript also contains a built-in map data structure. In JavaScript, we can't define the key or value type that needs to be stored in the map. So, we need to create a map of the generic type. In TypeScript, we can define the type of the key and value to be stored in the map. Syntax Following is the syntax create the map in TypeScript − let hashMap = new Map(); Parameters key_Type − It is ...

Read More

C program to detect tokens in a C program

sudhir sharma
sudhir sharma
Updated on 07-Oct-2023 31K+ Views

Here, we will create a c program to detect tokens in a C program. This is called the lexical analysis phase of the compiler. The lexical analyzer is the part of the compiler that detects the token of the program and sends it to the syntax analyzer.Token is the smallest entity of the code, it is either a keyword, identifier, constant, string literal, symbol.Examples of different types of tokens in C.ExampleKeywords: for, if, include, etc Identifier: variables, functions, etc separators: ‘, ’, ‘;’, etc operators: ‘-’, ‘=’, ‘++’, etcProgram to detect tokens in a C program−Example Live Demo#include #include ...

Read More

How to change the color of the axis, ticks and labels for a plot in matplotlib?

Rishikesh Kumar Rishi
Rishikesh Kumar Rishi
Updated on 07-Oct-2023 42K+ Views

We can change the color of the axis, ticks and labels, using ax.spines['left'].set_color('red') and ax.spines['top'].set_color('red') statements. To change the color of the axis, ticks, and labels for a plot in matplotlib, we can take the following steps −Create a new figure, or activate an existing figure, using plt.figure().Add an axis to the figure as part of a subplot arrangement, using plt.add_subplot(xyz) where x is nrows, y is ncols and z is the index. Here taking x = 1(rows), y = 2(columns) and z = 1(position).Set up X-axis and Y-axis labels using set_xlabel and set_ylabel method for creating ax using add_subplot().To ...

Read More

8085 Program to Add two 8 Bit numbers

Arjun Thakur
Arjun Thakur
Updated on 07-Oct-2023 40K+ Views

In this program, we will see how to add two 8-bit numbers using 8085 microprocessor.Problem StatementWrite 8085 Assembly language program to add two 8-bit numbers and store the result at locations 8050H and 8051H.DiscussionTo perform this task, we are using the ADD operation of 8085 Microprocessor. When the result of the addition is the 1-byte result, then the carry flag will not be enabled. When the result is exceeding the 1-byte range, then the carry flag will be 1We are using two numbers at location 8000H and 8001H. When the numbers are 6CH and 24H, then the result will be ...

Read More

How to find Min/Max numbers in a java array?

Samual Sam
Samual Sam
Updated on 07-Oct-2023 32K+ Views

You can find the minimum and maximum values of an array using for loops −ExampleLive Demopublic class MinAndMax {    public int max(int [] array) {       int max = 0;             for(int i=0; imax) {             max = array[i];          }       }       return max;    }    public int min(int [] array) {       int min = array[0];             for(int i=0; i

Read More

Explain the characteristics of DBMS?

Bhanu Priya
Bhanu Priya
Updated on 07-Oct-2023 39K+ Views

There are so many characteristics of a database management system, which are as follows − A database management system is able to store any kind of data in a database. The database management system has to support ACID (atomicity, consistency, isolation, durability) properties. The Database management system allows so many users to access databases at the same time. Backup and recovery are ...

Read More

How to find the vowels in a given string using Java?

Arushi
Arushi
Updated on 07-Oct-2023 39K+ Views

You can read a character in a String using the charAt() method. To find the vowels in a given String you need to compare every character in it with the vowel letters. Example Live Demo public class FindingVowels {    public static void main(String args[]) {       String str = new String("Hi Welcome to Tutorialspoint");       for(int i=0; i

Read More

Protection and Security in Operating System

Kristi Castro
Kristi Castro
Updated on 07-Oct-2023 34K+ Views

Protection and security requires that computer resources such as CPU, softwares, memory etc. are protected. This extends to the operating system as well as the data in the system. This can be done by ensuring integrity, confidentiality and availability in the operating system. The system must be protect against unauthorized access, viruses, worms etc. Threats to Protection and Security A threat is a program that is malicious in nature and leads to harmful effects for the system. Some of the common threats that occur in a system are − Virus Viruses are generally small snippets of code embedded in a ...

Read More

Golang Program to Convert String Value to Byte Value

Akhil Sharma
Akhil Sharma
Updated on 07-Oct-2023 33K+ Views

In this tutorial, we will learn how to convert string values to byte values using golang programming language. String Value − A string value is just a sequence of characters, like "abc". A string value is always enclosed in quotes. All types of characters are allowed (even digits, as in "abc123"). Strings can contain any number of characters. Byte value − The byte data type is an 8-bit signed two's complement integer. It has a minimum value of -128 and a maximum value of 127 (inclusive). The byte data type can be useful for saving memory in large arrays, where ...

Read More
Showing 5221–5230 of 61,248 articles
« Prev 1 521 522 523 524 525 6125 Next »
Advertisements