Posts

Showing posts from 2022

Featured Posts

Start Your Journey with Linux Command Line

Image
Start Your Journey with the Linux Command Line: A Comprehensive Guide Whether you are a software developer, system administrator, analytics engineer, or cybersecurity enthusiast, mastering the Linux command line (terminal) is one of the single most effective skills you can acquire. While graphical user interfaces (GUIs) offer visual convenience, the command line interface (CLI) delivers unmatched speed, fine-grained system control, and seamless automation capabilities. Linux Command Line This tutorial breaks down more than 35 core Linux commands into structured, practical modules complete with real-world examples, flags, and command-chaining techniques. By building muscle memory around these fundamentals, you will elevate your daily technical workflow from basic navigation to advanced command orchestration. Why Learn the Command Line? The Linux CLI is not merely a legacy tool—it remains the foundation of modern cloud architecture, server maintenance, DevOps pipelines, and enterp...

Parts of Speech - Pronouns

Image
 What is a Pronoun? Pronouns Definition of a Pronoun: A pronoun is a word that replaces a noun (single word)  or replaces  anything functioning as a noun (noun clause , noun phrase) . Pronouns do the same job of nouns in the sentence. Examples on Pronouns I have a car . It is white. It is 2021 model.      (We used "it" in the second and third sentence to avoid repeating the noun "car".) My daughter's cat's name is " Candy ". She is white and she keeps playing all day long.      (We used "she" to replace "My daughter's cat".) What are Antecedents of Pronouns?  She likes blue color more than red . --> Who is She ? What if we did not mention the noun first? If we started with the pronoun, we will not know what does this pronoun refer to, right? Most of the time, yes, that's why we need to start with nouns and we call them Antecedents . Sometimes we don't need to start with nouns (if you start by "I"...

cs50 Week 2 Problem Set 2 Readability Solution

Image
CS50 Week 2 Problem Set 2 Readability Problem Set 2 - Readability In coding, problems have different ways to get to the solution. Below code is one way. Soon, we will be posting different codes. ** Remember: Try to change some things in the code before submitting it in order to avoid being rejected as Harvard academic honesty. The Solution: #include <cs50.h> #include <stdio.h> #include <string.h> #include <math.h> #include <ctype.h> int main(void) {     // inintiate needed variables     string text = get_string("TEXT: ");     int letters = 0;     int words = 1;     int sentences = 0;     for (int i = 0; i < strlen(text); i++)     {         if (isalpha(text[i]))         {             letters++;         }         else if (text[i] == ' ')         {   ...

How to Open a Folder in VSC with CMD

Image
Visual Studio Code (VS Code) Environment Visual Studio Code (VS Code) has established itself as an indispensable code editor for developers worldwide due to its lightweight build, robust ecosystem of extensions, customizability, and deep terminal integration. When working on complex web applications, backend scripts, or data pipelines, efficiency is paramount. While many developers rely on the right-click context menu ( "Open with Code" ) in Windows File Explorer, this option is not always checked during installation or can frequently break after Windows system updates and reinstallations. Fortunately, you can bypass the Graphical User Interface (GUI) entirely and launch any project folder directly into VS Code via the Windows Command Prompt (CMD) or Windows PowerShell. This step-by-step guide covers multiple ways to open directories using terminal commands, advanced command-line arguments, and h...

A Holding Company?

Image
What is a Holding Company? Definition, Operations, and Key Benefits In modern corporate structure and corporate finance, a holding company plays a central role in risk management, asset protection, and organizational management. Understanding how holding companies function helps entrepreneurs and investors structure ventures for tax efficiency, operational security, and long-term scalability. Understanding Holding Company Architecture Definition of a "Holding Company" As per the Merriam-Webster Dictionary , a holding company is a business entity whose primary operation is owning more than half of another company's (subsidiary) voting stock. Similarly, Dictionary.com defines it as a company that controls other enterprises through stock ownership without engaging directly in their productive operations. In simple terms, a holding company—often formed as a Corporation or Limited Liability Company (LLC)—does not manufacture products, sell services, or conduct day-t...

None, is it Singular or Plural?

Image
 "None" .. How to deal with it? Does None mean Nothing? H ave you ever wondered whether to choose "none is" or "none are"? Maybe you would like to say "It's none of your business? What is "None"? "None" as a word is defined as "an indefinite Pronoun", and it means "not one", "not any", or "nothing". It can be used as "an adverb", and it means "not at all". None .. Singular or Plural? The final result of a debate between grammarians is that "none" can be both Singular and Plural depending on what the speaker means. This is the general but I will help you differentiate: "None" as an indefinite Pronoun should agree with the noun / Pronoun to which it refers. Plural None of your words ARE carefully chosen. ("words" is plural, so it takes a plural verb) None of my friends ARE going to the movies . Three people WERE in the bar. None of them w...

How to use Python Virtual Environment - venv

Image
 Virtual Environment python virtual environment -venv What is Virtual Environment? Virtual Environment - we will call it (Virtualenv) - is an isolated environment where you can download packages away from python system packages. This article is about venv which is a built-in python package, and for windows users. How to simply use virtual environment? * To create a virtual Environment folder: >> python -m venv folder_name -> It's a good practice/common convention to add venv to the folder name to differentiate it from other folders. OR: >> python -m venv Exsisting_folder_name\new_venv_folder_name * To activate/move inside the Virual Envirnment folder: >> folder_name\Scripts\activate.bat OR: >> Exsisting_folder_name\new_venv_folder_name\Scripts\activate.bat - You will notice the name of the Virtual Environment folder in the beginning of the folder path.  - Now, you're working on an isolated folder which has only the default python global version ins...

Parts of Speech - Verbs

Image
What is a Verb? Parts of Speech - Verbs A Verb (v) is a word that shows action, occurrence, or state of being. The Verb describes what the subject (Noun) is doing. I run everyday because I love to be in a good shape. She works at a factory My car needs an oil change. The wealthy man bought a mansion. He apologized to her many times. How many types of Verbs and what are they? There are 11 common types of verbs - some people say they are 7. The main 7 Types of Verbs: 1- Action Verbs: Words that describe actions. Action verbs can also be called Dynamic or Physical Verbs. Action Verbs Examples of Action Verbs: work - chase - run - play - help - swim - jump - write - ignore - try Please open the door. I always laugh when I hear his jokes. 2- Stative Verbs: Stative or state verbs are words which describe thoughts, emotions, feelings, opinions, senses, possessions, perceptions, measurement,.. . stative verbs in English Examples of Stative Verbs: want - own - have - be - need - love 🔔...

Python LAB 2.8.1.4 Reading ints safely

Image
 Reading ints safely Reading ints safely The Challenge improving the student's skills in defining functions; using exceptions in order to provide a safe input environment. Scenario Your task is to write a function able to input integer values and to check if they are within a specified range. LAB Sandbox The function should: accept three arguments: a prompt, a low acceptable limit, and a high acceptable limit; if the user enters a string that is not an integer value, the function should emit the message Error: wrong input, and ask the user to input the value again; if the user enters a number which falls outside the specified range, the function should emit the message Error: the value is not within permitted range (min..max) and ask the user to input the value again; if the input value is valid, return it as a result. Test data Test your code carefully. This is how the function should react to the user's input: Enter a number from -10 to 10: 100 Error: the value is not within ...

يوم التأسيس - يوم بدينا

Image
 يوم التأسيس يوم التأسيس السعودى - 300 عام تحتفل المملكة الهربية السعودية اليوم الموافق الثلاثاء 22 فبراير 2022 بكرى "يوم التأسيس" تحت شعار "يوم بدينا " , والذى يصادف ذكرى تأسيس الدولة السعودية الأولى قبل 3 قرون (300 عام) على يد الإمام محمد بن سعود يوم التأسيس السعودى ويأتي الاحتفاء بهذه الذكرى، بعد أن أصدر الملك سلمان بن عبدالعزيز آل سعود   أمرا ملكيا في يناير الماضي يقضي باعتبار 22 فبراير من كل عام يوماَ للتأسيس، ليتم الاحتفاء بهذه المناسبة لأول مرة وسط احتفالات وفعاليات تعم المملكة وتؤكد على الجذور التاريخية للبلاد. وكان الإمام محمد بن سعود قد أسس الدولة السعودية الأولى في منتصف عام 1139هـ (1727م) والتي استمرت إلى عام 1233هـ (1818م)، وعاصمتها "الدرعية". وأصبحت هذه مدينة  عاصمة لدولة مترامية الأطراف، ومصدر جذب اقتصادي واجتماعي وفكري وثقافي، وتحتضن على ترابها معالم أثرية، إضافة إلى أن النظام المالي للدولة وصف بأنه من الأنظمة المتميزة من حيث الموازنة بين الموارد والمصروفات. وقد هاجر كثير من العلماء إلى "الدرعية" لتلقي التعليم والتأليف الذي كان سا...

Python 2.5.1.10 LAB: Find a word!

Image
 Find a Word in a Combination of Characters Find a word game Objectives improving the student's skills in operating with strings; using the find() method for searching strings. Scenario Let's play a game. We will give you two strings: one being a word (e.g., "dog") and the second being a combination of any characters. Your task is to write a program which answers the following question: are the characters comprising the first string hidden inside the second string? For example: if the second string is given as "vcxzxduybfdsobywuefgas", the answer is yes; if the second string is "vcxzxdcybfdstbywuefsas", the answer is no (as there are neither the letters "d", "o", or "g", in this order) Hints: you should use the two-argument variants of the pos() functions inside your code; don't worry about case sensitivity. Test your code using the data we've provided. Test data Sample input: donor Nabucodonosor Sample output:...

Popular Posts

PROJECT MAVEN | The Architecture of Algorithmic Warfare

Open Source: The Invisible Engine of Your Daily Life

Data Analysis Roadmap 2026: From Excel Lover to Python-Powered Analyst

Python 4.3.1.10 LAB: Converting fuel consumption

Python for Windows Beginners: Build Your First Automated Workflow in 10 Minutes