lay-tech
104 subscribers
64 photos
5 files
23 links
Lay Tech is an educational technology channel based in Ethiopia, dedicated to explaining tech concepts in a simple and practical way.
Download Telegram
😁3πŸ‘1
πŸ‘1
lay-tech
Photo
CSS flex box align-items and jusyify-content
πŸ‘1
Forwarded from Big Habesha Tech
αŠ₯αŠ•α‹΄α‰΅ α‹¨αˆ‹α•α‰Άα“α‰½αŠ•αŠ• የባቡαˆͺ α‹­α‹žα‰³ αˆ›α‹ˆα‰… αŠ₯αŠ•α‰½αˆ‹αˆˆαŠ•?

αˆ‹α•α‰Άα• α‰ αˆα‰΅αŒˆα‹™α‰ α‰΅ αŒŠα‹œ α‹¨αˆ‹α•α‰Άα“α‰½αˆ ባቡαˆͺ αˆ²αˆ˜αˆ¨α‰΅ α‹¨αŠα‰ αˆ¨α‹ αŠ₯αŠ“ αŠ αˆαŠ• αˆ‹α‹­ α‹«αˆˆα‹αŠ• የባቡαˆͺ α‹­α‹žα‰³/αˆ˜αŒ αŠ• α‰ΌαŠ­ αˆ›α‹΅αˆ¨αŒ αŠ αˆ΅αˆαˆ‹αŒŠ αŠα‹α’

α‹­αˆ…αŠ•αŠ•αˆ αˆˆαˆ›α‹΅αˆ¨αŒ α‰ αˆ˜αŒ€αˆ˜αˆͺα‹« windows+R α‰°αŒ­αŠαŠ• α‹¨αˆšαˆ˜αŒ£αˆαŠ• textbox αˆ‹α‹­ cmd α‰₯αˆˆαŠ• αŠ₯αŠ•α…α‹αˆˆαŠ•α’ α‰ αˆ˜α‰€αŒ αˆαˆα¦
powercfg /batteryreport

α‰₯αˆˆαŠ• α‰ αˆ˜αƒα enter αŠ₯αŠ•αŠαŠ«αˆˆαŠ•α’ αŠ¨α‹šα‹«αˆ αŠ₯αŠ•α‹°α‹šαˆ… αŠ α‹­αŠα‰΅/α‰°α‰€αˆ«αˆ«α‰’/ α…αˆα α‹­αˆ˜αŒ£αˆαŠ“αˆα’ battery life report saved to file path C:\Users\yourname\battery-report.html .

α‰ αˆ˜αŒ¨αˆ¨αˆ»αˆ start α‰₯αˆˆαŠ• α…αˆαŠ• αŠ¨αŒŽαŠ‘ α‹¨α‹α‹­αˆ‰αŠ• path α‰₯ቻ copy αŠ α‹΅αˆ­αŒˆαŠ• paste αŠ₯αŠ“α‹°αˆ­αŒ‹αˆˆαŠ•α’ ለምሳሌ፦
start C:\Users\yourname\battery-report.html


αŠ αˆαŠ• ሡለ αˆ‹α•α‰Άα“α‰½αŠ• α‹¨α‰°αˆˆα‹«α‹© αˆ˜αˆ¨αŒƒα‹Žα‰½αŠ• αŠ₯αŠ“αŒˆαŠ›αˆˆαŠ•α’ α‰΅αŠ•αˆ½ ዝቅ αŠ₯αŠ•α‹³α‹°αˆ¨αŒαŠ• DESIGN CAPACITY αŠ₯αŠ“ FULL CHARGE CAPACITY α‹¨αˆšαˆ‰ αˆαˆ­αŒ«α‹Žα‰½ α‹¨αˆαŠ“αŒˆαŠ αˆ²αˆ†αŠ• DESIGN CAPACITY αŠ¨αˆšαˆˆα‹ አጠገα‰₯ α‹«αˆˆα‹ ባቡαˆͺው αˆ²αˆ˜αˆ¨α‰΅ α‹«αˆˆα‹ αŠ α‰…αˆ α‰ mWh αˆ²αˆ†αŠ• ከFULL CHARGE CAPACITY አጠገα‰₯ α‹«αˆˆα‹ α‹°αŒαˆž αŠ αˆαŠ• αˆ‹α‹­ α‹«αˆˆα‹ የባቡαˆͺው α‹¨αˆ˜α‹«α‹ αŠ α‰…αˆ α‰ mWh αŠα‹α’

Β©bighabesha_softwares
lay-tech
Photo
πŸ‘‰πŸ‘‰For real time communication like telegram, Facebook... We can use socket io. This week I have built flutter mobile app for wisdom academy
πŸ‘4
🧠 1. What Is Cursor AI?

Cursor is an AI-powered code editor built on top of VS Code, but enhanced with:

Deep AI code completion

Inline chat (like ChatGPT inside your editor)

Codebase-aware reasoning

Refactoring and explanation tools

Auto test, documentation, and debugging assistance

It integrates directly with OpenAI models (like GPT-4 or Claude) to understand your entire project context, not just a single file.

βš™οΈ 2. What You Should Understand Before Using It

Before diving in, you should know these foundational ideas:

🧩 a) Context Awareness

Cursor doesn’t just look at your current file β€” it can analyze:

Linked imports

Related files

Entire function calls

Even docs and configuration files

πŸ‘‰ This means you must organize your project clearly β€” file naming, structure, and comments matter.
Good project hygiene = better AI output.

🧩 b) Prompting Matters

Cursor’s inline chat and /ask command depend on your prompt quality:

Be specific: β€œRefactor this React component to use useMemo” is better than β€œmake it better.”

Include context: β€œThis function is called in userController.js, update both.”

Limit scope: β€œFix this function only” helps Cursor avoid unnecessary edits.

🧩 c) Model Selection

Cursor lets you choose between models:

GPT-4 / GPT-4-turbo β†’ best accuracy, context understanding.

Claude 3.5 / Sonnet β†’ excellent for long documents.

Small models (GPT-3.5, etc.) β†’ faster but less accurate.

πŸ‘‰ For serious code work, always use GPT-4-turbo or Claude Sonnet if available.

🧩 d) Privacy & Security

By default, Cursor may send parts of your code to the model provider (OpenAI or Anthropic) for analysis.
So before using it:

Avoid pasting confidential keys, credentials, or private data.

Configure .env to ignore sensitive files from being read by AI (cursor.ignore works similar to .gitignore).

πŸš€ 3. Main Features You Should Learn to Use

Here are Cursor’s most useful features and when to use them:

🧠 Inline Chat (⌘ + K or Ctrl + K)

Highlight a code section and type a command like:

β€œExplain this function.”

β€œRefactor this to use async/await.”

β€œAdd error handling and logging.”

Cursor will rewrite the code directly inline β€” you can accept or reject changes.
4. Best Practices When Using Cursor

βœ… Keep commits small β€” don’t let AI refactor your entire project at once.
βœ… Always review changes before committing.
βœ… Structure code clearly (good naming = better AI understanding).
βœ… Write comments to help Cursor understand function intent.
βœ… Use version control β€” never apply big changes without Git.
βœ… Use .cursorignore to exclude sensitive files or large data.
πŸ‘3❀1
αˆ˜αŒ¨αˆ¨αˆ»α‹αŠ• αˆ³α‰³α‹­ αˆ΅αˆ«αŠ• αˆˆαˆ˜αˆ΅αˆ«α‰΅ መሞከር ααˆαŠ• αˆˆαˆ˜αŒ¨α‰ αŒ₯ መሞከር αŠα‹
πŸ‘4
Like Database life should be normalized‼️
πŸ‘2
πŸ™The Code is Write-Once, Read-Many: Your past actions are immutableβ€”you can't change the execution. But you can change the compiler. Stop compiling old memories with negativity. Recompile them with growth, resilience, and wisdom.
πŸ‘3
πŸ‘3
🧠 How to Understand Logic Easily (Real Truth)
1. Think Like a Human, Not a Programmer
Before writing code, ask:
πŸ‘‰ β€œHow would I solve this in real life?”
Logic always comes before syntax.
2. One Problem = One Small Step
Don’t try to solve everything at once.
Break it into:
β€’ What is given?
β€’ What is needed?
β€’ What changes step by step?
Small thinking β†’ Big clarity.

3. Mistakes Mean You’re Learning
If your code fails:
βœ” Your brain is growing
βœ” Your logic is improving
βœ” You’re on the right path
No errors = no learning.

πŸ”Ή 4. Compare Yourself Only With Yesterday

Every developer once:
β€’ Didn’t understand loops
β€’ Didn’t understand logic
β€’ Googled basic questions
Consistency beats talent.

🎯 Golden Rule of Programming

β€œUnderstand the problem first. Code comes later.”
πŸ‘3