
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 26504 Articles for Server Side Programming

563 Views
MongoDB is a widely popular open-source database that stores data in a flexible JSON like format. It does not use the orthodox technique of storing data in rows and columns. Instead, it uses a more flexible approach which increases its scalability. This database is designed to handle large volumes of data and therefore, it is tailor made for modern applications. A MongoDB database consists of “collections” which is similar to a table in a RDBMS. A collection is a group of documents consisting of fields with different types of values. A database can contain numerous collections and each ... Read More

480 Views
The pandas library in python is widely popular for representing data in the form of tabular data structures. The dataset is arranged into a 2-D matrix consisting of rows and columns. Pandas library offers numerous functions that can help the programmer to analyze the dataset by providing valuable mathematical insights. The tabular data structure is known as a data frame that can be generated with the help of pandas DataFrame() function. In this article we will perform a simple operation of removing/dropping multiple rows from a pandas data frame. Firstly, we have to prepare a dataset and then ... Read More

301 Views
Generating random numbers is a common task in many programming applications. In Go, we can use the math/rand package to generate random numbers. In this article, we will explore how to get a random number of type float32 in Go. Using The Rand Package The math/rand package in Go provides a simple way to generate random numbers. We can use the Float32() function to generate a random number of type float32. Example Here's an example − package main import ( "fmt" "math/rand" "time" ) func main() { ... Read More

18K+ Views
Getting the current date and time is a common task in many programming applications, from logging events to scheduling tasks. In this article, we will explore how to get the current date and time in various formats in Golang. Using The Time Package The time package in Golang provides a simple way to work with dates and times. We can use the time.Now() function to get the current date and time in the local timezone. Example Here's an example − package main import ( "fmt" "time" ) func main() { ... Read More

7K+ Views
Generating random strings or characters is a common task in many programming applications, from generating random passwords to generating unique IDs. In this article, we will explore how to generate random strings or characters in Golang. Using the math/rand Package The math/rand package in Golang provides a simple way to generate random numbers and strings. To generate a random string, we can first generate a random number and then convert it to a string. Example Here's a simple approach − package main import ( "fmt" "math/rand" "time" ) const ... Read More

2K+ Views
In many programming applications, we need to generate an array of unique random numbers. This can be useful for tasks such as creating unique IDs or selecting random items from a list without repetition. In this article, we will explore how to generate an array of unique random numbers in Golang. Using The math/rand Package The math/rand package in Golang provides a simple way to generate random numbers. However, by default, the random numbers generated by the math/rand package are not guaranteed to be unique. To generate an array of unique random numbers, we need to add some extra logic. ... Read More

623 Views
Race conditions can be a serious problem for developers working with concurrent programming. When multiple threads or processes access a shared resource simultaneously, they can create unpredictable and potentially dangerous results. Fortunately, the Go programming language provides a number of tools for dealing with this issue, including atomic functions. In this article, we'll take a closer look at how to fix race conditions using atomic functions in Go. Understanding Race Conditions Before we dive into atomic functions, let's review what race conditions are and why they're a problem. A race condition occurs when two or more threads or processes access ... Read More

4K+ Views
In Golang, structs are a powerful and essential feature that helps in organizing data and improving code readability. A struct is a composite data type that groups together zero or more values of different types. It is a user-defined type that can be customized according to the programmer's needs. Sometimes, when working with large codebases, it can become difficult to keep track of the different types of structs being used. In this article, we will discuss how to find the type of struct in Golang. Using the "reflect" Package The "reflect" package in Golang provides a way to inspect types ... Read More

456 Views
In mathematical calculations, trigonometric functions such as sine (sin) and cosine (cos) are commonly used. In Go programming language, you can find the sin and cos values of a number using the math package. In this article, we will discuss how to find the sin and cos values of a number in Golang. Steps to Find the Sin and Cos Value of a Number in Golang Import The Math Package To use trigonometric functions in Go, you need to import the math package. You can do this by using the import statement − import "math" Define The Number Define ... Read More

875 Views
In Golang, pointers are used to hold the memory addresses of other variables. They are often used to pass a variable's memory address to a function or to create a reference to an object in memory. The length of a pointer is determined by the size of the data type it points to. In this article, we will explore how to find the length of a pointer in Golang. Understanding Pointers in Golang Before we dive into finding the length of a pointer in Golang, let's first understand what pointers are and how they work in Golang. In Golang, a ... Read More