Found 27104 Articles for Server Side Programming

Golang program to compute all prime numbers up to a given number using concurrency

Akhil Sharma
Updated on 04-Aug-2023 16:22:28

204 Views

In this Go language article, we will write programs to compute all prime numbers up to a given number using concurrent execution. Concurrent execution is the process of executing multiple tasks simultaneously. In Golang, go routines and channels are used to create concurrent programs. Go routines are lightweight threads which are managed by the Go runtime and channels help in the communication between Go routines without any conflicts. Syntax func make ([] type, size, capacity) The make function in go language is used to create an array/map it accepts the type of variable to be created, its size ... Read More

Golang program to return the nth number in fibonacci sequence using dynamic programming

Akhil Sharma
Updated on 04-Aug-2023 14:57:49

924 Views

In this article, we will write Go language programs to return the nth number in Fibonacci sequence using dynamic programming. It is a technique used to solve complex problems by breaking them into smaller sub problems. Memoization is the process of storing the output of the function calls in some data structure by which the next time call is made it need not calculate the output again, it can use that value to make the computation which in return lessens the execution time. Syntax func make ([] type, size, capacity) The make function in go language is used to ... Read More

How to simulate mouse movements using Python?

S Vijay Balaji
Updated on 24-Aug-2023 12:21:04

4K+ Views

When it comes to automation, be it to setup your computer on start-up or to farm coins on a clicker game, it becomes essential to simulate mouse movements and clicks. And what better way to do this than use Python! For performing this particular task of automating or simulating your mouse movement, we will be using Python’s mouse library that has various methods and functionalities to help simulate your mouse on your computer. Now that you know what we will be working with, let us get started! Getting Started Firstly, we need to install the mouse library. Since this library ... Read More

How to schedule simple alarms in Python?

S Vijay Balaji
Updated on 24-Aug-2023 12:20:22

168 Views

Creating a simple alarm clock is one of the basic projects that can help you understand the basics of time manipulation, running system commands, playing audio files and other such essential topics. And, in this tutorial, we will be learning how to build one. For this, we will be working with the PyGame module to play the audio file and the datetime module to get the current system time. Alright, let us get started then! Getting Started For playing the audio file, we will be using the PyGame module. This module does not come pre-packaged with Python. So, we’ll be ... Read More

Creating Snow Effect using the Arcade Module in Python

S Vijay Balaji
Updated on 04-Aug-2023 13:11:24

122 Views

We’ve all wanted to add additional effects to our presentation or to a video. These effects help us in better present our product or helps increase user experience. And in this tutorial, you will learn how to implement the snow effect using the arcade module. You can use this in your games to create a snow drizzle or a rain drop effect. You can even go ahead and set it up as a screen timeout effect. That being said, let us get started! Getting Started Throughout this tutorial, we will be using the arcade module that helps users create game ... Read More

Automate GUI Interactions in Python using the PyAutoGUI Library

S Vijay Balaji
Updated on 04-Aug-2023 12:50:02

511 Views

PyAutoGUI is a fantastic module for automating graphical user interface interactions in Python applications. It enables developers to imitate user input and automate repetitive operations, making it a good choice for testing, data entry, and other jobs that require interacting with GUIs. PyAutoGUI is a cross-platform library that supports all major operating systems such as Windows, Linux, and macOS. In this tutorial, we'll understand how to use Python's PyAutoGUI package to automate GUI interactions. We'll start by installing PyAutoGUI and learning how to use it. Then, we'll delve further into the library's features, such as keyboard and mouse control and ... Read More

Build a Simple Chatbot in Python using Errbot

S Vijay Balaji
Updated on 04-Aug-2023 12:45:36

139 Views

You can use Errbot (a chatbot) to start scripts interactively from your chatrooms. The most important feature of errbot is that it connects to any chat server you want it to and has a range of features. It can even connect to your slack and discord channels and interact with users. Now that you know what we are dealing with, let us get started. Getting Started It’s better to download errbot in a virtual environment rather than directly installing it. Firstly, we have to download and install the errbot library. We’ll be using the pip package manger to do this. ... Read More

How to Control a PC from anywhere using Python?

Mukul Latiyan
Updated on 03-Aug-2023 18:15:09

4K+ Views

Remote access to computers has become increasingly important, especially in today's work from home environment. While there are many commercial tools available for remote access, Python provides a simple yet effective way to remotely control your PC from anywhere using the Python programming language. In this article, we will explore how to control your PC from anywhere using Python. We will discuss how to establish a remote connection between two computers, how to use Python to execute commands on the remote PC, and how to transfer files between the local and remote computers. With this knowledge, you can remotely access ... Read More

How to connect WiFi using Python?

Mukul Latiyan
Updated on 03-Aug-2023 18:13:51

5K+ Views

Python is a popular programming language used in a wide range of applications, including network programming. In this article, we will explore how to connect to a WiFi network using Python. Connecting to a WiFi network using Python can be useful in situations where you need to automate the process of joining a network, such as in a headless system or in a situation where manual intervention is not possible. Python provides several libraries that can be used to interact with WiFi networks, and we will explore some of them in this article. We will start by looking at the ... Read More

How to Create a COVID19 Data Representation GUI in Python?

Mukul Latiyan
Updated on 03-Aug-2023 18:11:13

94 Views

The COVID−19 pandemic has disrupted daily life around the world, with numerous countries implementing lockdowns and other restrictions to control the spread of the virus. As a result, there is a great deal of interest in tracking the spread of the virus, including the number of active cases and confirmed cases. With the help of technology, it is now possible to access this data and visualize it in real−time using graphical user interfaces (GUIs). This tutorial will provide an overview of a Python program that creates a GUI for displaying COVID−19 data. Creating a Tkinter GUI to Show COVID19 Data ... Read More

Advertisements