Skip to main content

Posts

Handling multiple git accounts in local PC

 మీకు 2 GitHub Accounts ఉన్నాయి: siddhuphp (Personal Account) Siddhartha-Esunuri_mmsrx (Office/Work Account) ఇప్పుడు Git SSH ద్వారా connect అవుతున్నప్పుడు GitHub కి: నేను Siddhartha-Esunuri_mmsrx account ని అని చెబుతోంది. అందుకే siddhuphp/bhoomatha private repo access చేయలేక: Repository not found అని వస్తోంది. Visual Understanding మీ దగ్గర రెండు ఇళ్ళు ఉన్నాయని అనుకోండి: 🏠 House A = siddhuphp 🔑 Key A 🏢 House B = Siddhartha-Esunuri_mmsrx 🔑 Key B ప్రస్తుతం Git దగ్గర: 🔑 Key B మాత్రమే ఉంది. కానీ మీరు open చేయాలనుకుంటున్నది: 🏠 House A (siddhuphp) అందుకే door open అవ్వడం లేదు. Step 1: రెండు SSH Keys ఉండాలి ప్రస్తుతం check చేయండి: ls ~/.ssh ఉదాహరణ: id_ed25519 id_ed25519.pub ఇది ప్రస్తుతం Office account key అయి ఉండవచ్చు. Step 2: Personal Account కోసం కొత్త Key Create చేయండి ssh-keygen -t ed25519 -C "siddhu.php@gmail.com" -f ~/.ssh/id_ed25519_siddhuphp తర్వాత: ~/.ssh/id_ed25519_siddhuphp ~/.ssh/id_ed25519_siddhuphp.pub create అవుతాయి. Step 3: GitHub లో Add చేయండి Public key ...
Recent posts

NumPy Basics

 మీరు AI Engineer/Data Scientist వైపు వెళ్లాలనుకుంటే NumPyలో ఈ టాపిక్స్‌ను క్రమంగా నేర్చుకోవడం చాలా ఉపయోగకరం. 1. NumPy Basics NumPy అంటే ఏమిటి? Installation import numpy as np Arrays సృష్టించడం np . array() np . zeros() np . ones() np . arange() np . linspace() 2. Array Attributes Array గురించి సమాచారం తెలుసుకోవడం arr . shape arr . ndim arr . size arr . dtype ఉదాహరణ: arr = np . array([[ 1 , 2 , 3 ],[ 4 , 5 , 6 ]]) print ( arr . shape) print ( arr . ndim) 3. Indexing & Slicing ఇది చాలా ముఖ్యమైన టాపిక్. arr [ 0 ] arr [ 1 : 4 ] arr [:, 1 ] arr [ 1 ,:] 4. Reshaping Arrays arr . reshape() arr . flatten() arr . ravel() ఉదాహరణ: arr = np . arange( 12 ) arr . reshape( 3 , 4 ) 5. Array Operations + - * / ** % ఉదాహరణ: a + b a * b 6. Broadcasting ⭐ NumPyలో అత్యంత ముఖ్యమైన కాన్సెప్ట్. arr = np . array([ 1 , 2 , 3 ]) arr + 10 Output: [ 11 12 13 ] 7. Mathematical Functions np . sum() np . mean() np . max() np . min() np . std() np . medi...

Laravel Sail

 Laravel Sail అంటే ఏమిటి? Laravel Sail అనేది Docker Compose wrapper. సాధారణ Dockerలో: docker run ... docker compose up ... docker compose down ... ఇలా commands ఇవ్వాలి. కానీ Sailలో: ./vendor/bin/sail up ./vendor/bin/sail down ./vendor/bin/sail artisan migrate అంటే Docker commands ని simplify చేస్తుంది. 📋 Prerequisites Windowsలో: ✅ Docker Desktop Installed Check: docker --version docker compose version Expected: Docker version 28 .x Docker Compose version v2.x 🚀 Existing Laravel Project Run చేయడం నీ project folder కి వెళ్ళు. ఉదాహరణ: cd C:\xampp\htdocs\myproject Step 1: .env Configure DB_CONNECTION=mysql DB_HOST=mysql DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=sail DB_PASSWORD=password ⚠️ ముఖ్యమైన విషయం: Dockerలో MySQL container name mysql అందుకే: ❌ DB_HOST=127.0.0.1 కాదు ✅ DB_HOST=mysql Step 2: Check docker-compose.yml Laravel Sail install అయితే ఇలా ఉంటుంది: services: laravel.test: build: context: './vendor/laravel/sail/runtimes/8.3' ports: ...

Docker Setup

 I'm using windows, so download docker desktop for windows After successful installation if you notice below error then run CMD in administrator and paste this CMD and run it. and now click on restart, That's it all set to run docker

Natural intelligence == Artificial Intelligence

  Natural intelligence == Artificial Intelligence Whatever the data AI understood as numbers, For an example lets take an example  Lets compare two hotels reviews Hotel A has good 5 star reviews Hotel B has bad reviews. here based on percentage will decide the best Hotel. Similarly AI also decide.  Another example: Lets decide best doctor. Doctor A received 9 rating out of 10 from 100 patients. Doctor B received 3-2 rating from 100 Patients. Here we are converting data into some numbers. Based on this point we are deciding the best doctor as Natural way. Similarly AI also worked. To clarify how AI algorithms or Models are work  Example I have Math problem like X        Y 1          1 2          4 3          9 4          ? Y= x * x? Step1: We are loading past data in our brain, Here past data means (1,1)(2,2)(3,3) as our brain bring data or und...