Monday, August 25, 2025

Quarter Planner in Draw.io

 

✅ Steps to Create a Quarter Planner in Draw.io

  1. Open Draw.io
    Go to https://app.diagrams.net

  2. Start a New Diagram

    • Choose "Blank Diagram" or import the template I provided earlier.
    • Name your diagram (e.g., “Support Project Quarter Planner”).
  3. Add Shapes for Each Quarter

    • Use rounded rectangles or containers for Q1, Q2, Q3, and Q4.
    • Drag them from the left sidebar (under “General” or “Flowchart”).
  4. Label Each Quarter

    • Double-click each shape to add text:
      • Q1 – Customer Onboarding
      • Q2 – Issue Resolution
      • Q3 – Performance Tracking
      • Q4 – Client Satisfaction
  5. Add Icons or Images (Optional)

    • Use the “+” icon or drag-and-drop to insert icons like:
      • Headset (support)
      • Graph (performance)
      • Handshake (client success)
      • Tools (issue resolution)
  6. Customize Colors and Layout

    • Right-click shapes to change fill colorborder, or text style.
    • Use alignment tools to keep everything neat.
  7. Save or Export

    • Save as .drawio or export as PDFPNG, or SVG for presentations.

Thursday, August 21, 2025

Wednesday, August 20, 2025

🔄 Flow of Git Architecture

 

Git is a distributed version control system, and its architecture revolves around four main areas:


1. Working Directory (Workspace)

  • This is where you work with files on your local machine.

  • You create, edit, delete files here.

  • These changes are not yet tracked by Git until you add them.


2. Staging Area (Index / Cache)

  • Think of it like a "draft box."

  • When you run git add <file>, the changes go into the staging area.

  • Git prepares these changes for the next commit.


3. Local Repository (.git folder)

  • When you run git commit, changes from the staging area are stored in the local repository (inside the hidden .git directory).

  • This repository contains commits (snapshots), branches, and history.

  • Even without internet, your full project history is here.


4. Remote Repository (e.g., GitHub, GitLab, Bitbucket)

  • This is the shared repository where teams collaborate.

  • You push commits (git push) to send changes to remote.

  • You pull changes (git pull) to bring updates from remote to local.





Friday, August 1, 2025

Steps to Increase Timeout in PuTTY

 

🔧 Steps to Increase Timeout in PuTTY

  1. Open PuTTY.

  2. In the left sidebar, go to:

    Connection
    
  3. On the right side, look for:

    • Seconds between keepalives: Set this to a non-zero value (e.g., 60 seconds).
      • This sends a null packet every 60 seconds to keep the session alive.
    • Enable TCP keepalives: Make sure this is checked.
  4. (Optional) To save these settings:

    • Go back to the Session category.
    • Enter a name under Saved Sessions.
    • Click Save.

Monday, July 28, 2025

Orchestration In coding

In coding, orchestration means coordinating and managing multiple components, services, or steps in a process so that they work together in the correct order.


🔧 Coding Context Example:

Imagine you’re building an online order system. Here's what happens in sequence:

  1. User places an order

  2. Payment is processed

  3. Inventory is updated

  4. Shipping is initiated

  5. Notification is sent to user

Each of these steps might be handled by a different function, microservice, or API.

➡️ Orchestration means writing the code (or using tools) that controls when and how each step runs, handles failures, and ensures they happen in the right order.


🛠 Example in Python:


def process_order(order_id): if charge_payment(order_id): if update_inventory(order_id): ship_order(order_id) send_notification(order_id) else: refund_payment(order_id) else: log_error("Payment failed")

Here, the function process_order is orchestrating multiple smaller tasks.


Tools for Orchestration in Coding:

  • Airflow (for data workflows)

  • Kubernetes (for containers)

  • Temporal / Cadence (for microservice orchestration)

  • Step Functions (AWS)


Let me know if you want an example in a specific language or use case (e.g., web app, microservices, cloud, etc.).


 

Wednesday, March 5, 2025

Load the updated GitHub code to your local machine

 To load the updated GitHub code to your local machine, you can follow these steps:

1. Install Git (if not already installed):

  • You can check if Git is installed by running the command:

    git --version
  • If it's not installed, you can download and install Git from here.

2. Clone the Repository:

  • Open a terminal (or Command Prompt on Windows).
  • Navigate to the directory where you want to store the code on your local machine.
  • Run the following command to clone the repository:

    git clone https://github.com/username/repository.git
    Replace username/repository with the appropriate repository URL.

3. Pull the Latest Updates:

If you already have the repository cloned, you can update it with the latest code by pulling the changes:

  • Navigate to the cloned repository directory:

    cd repository
  • Run the following command to pull the latest changes:

    git pull origin main
    Replace main with the default branch of the repository if it's different (e.g., master).

4. Verify the Updates:

  • After pulling the updates, you can check the status to ensure everything is up-to-date by running:

    git status

Note:

If you didn't switch to the master (or main) branch on your local machine and ran the git pull command, it might have tried to pull updates for the current branch you're on. If that branch isn't the master or main branch, you might not get the latest code from the default branch.

Here’s how to fix that:

1. Check the current branch:

First, check which branch you're currently on by running:


git branch

The branch with an asterisk (*) next to it is your current branch.

2. Switch to the master (or main) branch:

If you want to switch to the master (or main) branch, run the following command:


git checkout master

Or, if the default branch is main, run:


git checkout main

3. Pull the latest changes:

Once you're on the correct branch, pull the latest changes from the remote repository:


git pull origin master

Or, if you're on the main branch:


git pull origin main

4. Verify the updates:

After pulling, you can check the status to confirm that your local copy is up to date:


git status

Friday, September 27, 2024

Git Bash commands

 To change directories in Git Bash, you use the cd command, which stands for "change directory." Here's how you can do it:

Basic Syntax


cd [directory_path]

Examples

  1. Change to a Specific Directory:


    cd /c/Users/YourUsername/Documents

    This command navigates to the Documents folder in your user directory.

  2. Move Up One Directory:


    cd ..

    This command takes you up one level in the directory hierarchy.

  3. Change to Home Directory:


    cd ~

    This command brings you back to your home directory.

  4. Change to Previous Directory:


    cd -

    This command switches back to the last directory you were in.

  5. Using Relative Paths: If you're in /c/Users/YourUsername/ and want to go to Documents, you can simply do:


    cd Documents

Tips

  • Use Tab for autocompletion. Start typing a directory name and press Tab to autocomplete.
  • To see the current directory, use:

    pwd

Remove the Existing Directory

If you don’t need the existing odm-ops directory, you can remove it. Be careful with this command, as it will delete all contents within that directory:


rm -rf test


Monday, September 23, 2024

Pomodoro Technique

To follow the "25-minute work, 5-minute break" pattern, often called the Pomodoro Technique, you can set up simple notifications using various methods:

1. Phone Timer or Alarm App:

Set a timer for 25 minutes.

Once it rings, reset it for 5 minutes for your break.

Repeat this cycle as needed.



2. Pomodoro Apps:

Focus To-Do or Be Focused (iOS/Android): These apps are designed for the Pomodoro technique. They automatically manage work and break intervals and send you notifications.



3. Browser Extensions:

If you're working on your computer, try Pomodoro extensions like Marinara or Tide for Chrome or Firefox, which will send notifications when it's time for a break or to resume work.



4. Smart Assistants:

Use Siri, Google Assistant, or Alexa. You can say, "Set a timer for 25 minutes," followed by "Set a timer for 5 minutes" for breaks, and your device will notify you accordingly.



5. Calendar Reminders:

Set recurring 30-minute events (25 minutes work + 5 minutes break) with notification reminders on your calendar app (Google Calendar, Outlook, etc.).


Saturday, September 21, 2024

Import a dataset into a Jupyter Notebook

To import a dataset into a Jupyter Notebook, you can follow these general steps, depending on the format of your dataset (CSV, Excel, JSON, etc.). Here are examples for some common formats:

1. CSV Files

If your dataset is in CSV format, you can use the pandas library:


2. Excel Files

For Excel files, you'll also use pandas, but make sure you have openpyxl or xlrd installed for .xlsx and .xls files, respectively:



3. JSON Files

If your dataset is in JSON format:



4. SQLite Database

If your dataset is in an SQLite database:


5. Loading Data from URLs

You can also load datasets directly from a URL:


To read a CSV file from a directory in a Jupyter Notebook using pandas, follow these steps:

1. Import the Pandas Library

Make sure you have pandas installed. If not, you can install it via pip:


pip install pandas

2. Use the Correct File Path

You'll need to specify the path to your CSV file. Here’s how to do it:


import pandas as pd # Replace 'path/to/your/directory/your_dataset.csv' with path to your CSV file file_path = 'path/to/your/directory/your_dataset.csv' # Read the CSV file df = pd.read_csv(file_path) # Display the first few rows of the dataframe print(df.head())

Example

Assuming your CSV file is in a folder named "data" within the current directory:


import pandas as pd # Specify the path to your CSV file file_path = './data/your_dataset.csv' # Read the CSV file df = pd.read_csv(file_path) # Display the first few rows of the dataframe print(df.head())