How to cd to a Directory with a name containing space(s) in Command Prompt

In command prompt, in order to cd into a directory with a name containing spaces, you need to use the cd command, followed by the name of the directory (the directory containing spaces) in quotation marks. This is what I mean: cd "directory name with space(s)" where directory name with space(s): is the name of the directory you want to change to. Note: Please do not use the single quotes in this command....

April 6, 2023 路 1 min 路 Jima Victor

How to Shut down a Computer using Python

This is how you can shut down your computer using python. import os # Shutdown the computer os.system("shutdown /s /t 1") If you run the above code, your computer will be turned off in a second. Beautiful, isn鈥檛 it? I know. With only two lines of code, you can turn off your computer using python. I鈥檇 like to see java do that馃槤 Now let鈥檚 talk about how the code works:...

April 5, 2023 路 2 min 路 Jima Victor

How to add and remove Event Listeners with Parameters

Event listeners are a very important part of web development. From mouse clicks to keyboard presses and event touch events. These event listeners help make our applications interactive. And while it may be easy to add them in javascript, it isn鈥檛 exactly straightforward when it comes to removing them. Especially when parameters are involved. In this tutorial, I am going to be showing you how you can add and remove Event Listeners with Parameters in javascript....

March 24, 2023 路 3 min 路 Jima Victor

4 ways to remove click events from html elements

In this tutorial, we鈥檙e going to learn four ways in which we can remove a click event from an HTML element. There may be more ways than four, of which I am not aware of, so please do well to leave them in the comments below if I haven鈥檛 listed what you know. So for this tutorial, we are going to be using a button. Let鈥檚 get started. Removing pointer-events in CSS The first method on the list, is removing pointer-events in CSS....

February 26, 2023 路 3 min 路 Jima Victor

How to build a BMI calculator in python

If you want to have a better understanding of whatever you are learning, or improve your skills as a python developer, then you must build projects. That鈥檚 why in this tutorial, we鈥檙e going to be building a BMI calculator in python. What is a BMI Calculator BMI stands for Body Mass Index. It is a mathematical method invented by a Belgian statistician by the name of Lambert Adolphe Jacques Quetelet. The purpose of the BMI is to find out the status of a person鈥檚 weight....

February 8, 2023 路 3 min 路 Jima Victor