pip freeze > requirement.txt
Time.
Wednesday, 4 March 2026
Tuesday, 3 March 2026
java command u may want to remember
1. String str = "I love Java";
System.out.println(str.startsWith("love", 2)); // true
Kyuki index 2 se "love" start ho raha hai.
2. i = code.indexOf("]]>", j);
Iska matlab:
👉 String code ke andar " ]]> " substring ko search karo
👉 Searching index j se start karo
👉 Jo index mile, use variable i mein store karo
Monday, 2 March 2026
If in column tranformer and pipeline you wnat to pass function
https://chatgpt.com/share/69a58819-bcd4-800a-a84b-4ce5d8e68f50
Friday, 27 February 2026
what to do in march 2026 holidays
1. gen ai camsux
2. react
3. gpt 2 from scratch
4. leetcode 500 questiona and 1 question for everyday
5. nodejs express js
6. dbms
7. cn
8. os
9. system design
10. computer vision
11. aptitude
12. flask and alag cheeeze alag sikhni hai
Thursday, 26 February 2026
if remote github mein kuch khud se add ab local se remote mein add toh errro toh rebase karr
git log --oneline --graph --all ye commit graph de dega and mere wale case mein main main se hat gaya tha ye niche wali summary but puri chat toh iske nich wale ver se satrt kar le
: https://chatgpt.com/share/69a13b3d-392c-800a-980e-1799e911408e
Bhai Keshav 🔥
Ab main tujhe pure issue ka full story + concept + fix flow aise samjhaunga ki tujhe life bhar yaad rahe 😎
🧠 Problem Ka Root Cause
Tu ne ye kiya:
GitHub pe ek
.ipynbfile add ki (remote change)Codespace me alag commits kiye (local change)
Push karne gaya
Git bola:
non-fast-forward
🔥 Git ka Golden Rule
Git tabhi push karne deta hai jab history straight line me ho.
🧩 Situation Diagram
🔹 Remote (GitHub)
A --- B --- C (C = ipynb file commit)
🔹 Local (Codespace)
A --- B --- D
D = tera lecture 10 commit
🚨 Problem Kya Tha?
Remote me C hai
Local me D hai
But local ko C ka pata nahi
So history diverge ho gayi:
C (remote)
/
A --- B
\
D (local)
Isko bolte hain:
👉 Divergent branches
👉 Non-fast-forward error
❓ Fast-forward kya hota hai?
Fast-forward tab hota hai jab:
A --- B --- C
Aur tu C ke baad D add karta hai:
A --- B --- C --- D
Ye simple extension hai → push allowed ✅
🔥 Rebase Ne Kya Kiya?
Tu ne run kiya:
git pull origin main --rebase
Rebase ka matlab:
Mere commits ko remote ke latest commit ke upar shift kar do.
So Git ne ye kiya:
Tera commit D temporarily hata diya
Remote ka C add kiya
D ko C ke upar dubara laga diya
Result:
A --- B --- C --- D
Ab straight line ban gayi.
😭 Fir Problem Kyu Aayi?
Tu interactive rebase me enter ho gaya.
Terminal bola:
(no branch, rebasing main)
Matlab:
👉 Rebase process complete nahi hua tha
👉 Git wait kar raha tha confirmation ka
Tab solution tha:
git rebase --continue
Ye bola:
Haan bhai complete karo rebase.
Uske baad history clean ho gayi.
🚀 Final Push Kaam Kyu Kar Gaya?
Kyuki ab structure ye ho gaya:
A --- B --- C --- D
Ab push fast-forward tha → allowed.
🧠 Complete Mental Model (Yaad Karne Layak)
💡 Rule 1
Push fail ho → pehle pull karo.
💡 Rule 2
Clean history chahiye → use:
git pull --rebase origin main
💡 Rule 3
Rebase me atak jao → check status:
git status
Agar bole rebase in progress:
git rebase --continue
🧨 Kab Force Push Use Kare?
Only when:
Tu 100% sure hai
Remote overwrite karna hai
Safe version:
git push --force-with-lease
🎯 Complete Safe Workflow (Production Style)
Har baar push se pehle:
git pull origin main --rebase
git push origin main
Ye habit bana le.
🔥 Tera Case Summary
| Step | Kya Hua | Solution |
|---|---|---|
| Remote me ipynb add ki | Divergence hua | Pull required |
| Push fail hua | Non-fast-forward | Rebase |
| Rebase incomplete tha | Detached state | git rebase --continue |
| History clean ho gayi | Straight line | Push successful |
🧠 Ek Line Me Yaad Kar
Push fail = Pull + Rebase
Rebase stuck = rebase --continue
Bhai honestly 🔥
Aaj tu Git ka real concept samajh gaya.
Ye beginner level nahi tha — ye intermediate dev situation thi.
Agar chahe toh main tujhe:
Rebase vs Merge difference
Git ka complete mental model
Branching strategy for ML projects
Ek baar me crystal clear kara doon 😎
Monday, 23 February 2026
how to create devlop and feature feature in github
https://chatgpt.com/share/699ca36e-4808-800a-81e1-12f8a9178433
Hello
conda env
pip freeze > requirement.txt
-
1. Deep learning specilization deeplearning.ai link- link (do a research what is transfer learning) 2. machine learning ka youtube ka cou...
-
kaise use karna Bhai .apply() Pandas ka most used aur most powerful function hai — ye tab use hota hai jab: Tum har row ya har col...
-
1: PriorityQueue<long[]> occ = new PriorityQueue<>((a, b) -> { if(a[2] != b[2]) { ...