Friday, 30 January 2026

how to create conda enviroment

 

✅ EXACT FIX (2 minute ka kaam)

🔹 Step 1: Check current channels

conda config --show channels

Tumhe kuch aisa dikhega:

channels:

(empty)


🔹 Step 2: Add conda-forge channel (IMPORTANT)

conda config --add channels conda-forge conda config --set channel_priority strict

Verify:

conda config --show channels

Output hona chahiye:

channels: - conda-forge

🔹 Step 3: NOW create environment (this will work)

conda create -n ml-env python=3.10

Activate:

conda activate ml-env

Check:

python --version

Friday, 16 January 2026

chagpt link for tranformer model

1. isme like text data ko proces karne ke liy diff model de rakhe hai  link

2. bert ko full scratch se built krne ka code :  link

3. llama model ko colab mein use :  link

Friday, 9 January 2026

binary search code -:

 void insertInterval(List<int[]> intervals, int left, int right) {

    int lo = 0, hi = intervals.size();


    while (lo < hi) {

        int mid = (lo + hi) / 2;

        if (intervals.get(mid)[0] < left) {

            lo = mid + 1;

        } else {

            hi = mid;

        }






    }


    intervals.add(lo, new int[]{left, right});

}



import java.util.*;

class Solution{
public int bi(int []arr,int tar){
int low=0;
int high=arr.length-1;
while (low<=high){
int mid=(low+high)/2;
if(arr[mid]<tar){
low=mid+1;
}else{
high=mid-1;
}
}
return low;
}



public static void main(String[] args) {
Solution sol=new Solution();
int []st={1,1,4,4,5};
System.out.println(sol.bi(st,3));


}
}


so ye upar wala if duplicate 1,2,2,2  and target=2 so isme 1 return and if maan le 1,2,4,5 aisa kuch toh if target =3 toh 2 return 











Tuesday, 6 January 2026

7 jan 2026

 Humare sath ab dadi ni hai kya hi bolu yaar bahut dard hai 


1. 

Hello

page bana jisse har section pe naya page aa jaye

 Samajh gaya bhai — tu “scroll pe next section / page jaisa feel” wali website banana chahta hai (like Apple, landing pages, etc.). Isko bo...