Django 5 By Example book
Endi Django loyihalar qilishni boshlaganlar va resume uchun loyiha qilayotganlar uchun ajoyib kitob.
Menga yoqan mavzular:
- eLearning Platform (chapters 12-17)
- Ecommerce Application (chapters 8-11)
.
.
ads) Kitobni PDF varyantini olishπ π
More: https://github.com/firdavsDev/Django-5-By-Example
Endi Django loyihalar qilishni boshlaganlar va resume uchun loyiha qilayotganlar uchun ajoyib kitob.
Menga yoqan mavzular:
- eLearning Platform (chapters 12-17)
- Ecommerce Application (chapters 8-11)
.
.
ads) Kitobni PDF varyantini olish
More: https://github.com/firdavsDev/Django-5-By-Example
Please open Telegram to view this post
VIEW IN TELEGRAM
Xavfsizlik next level. π€¦ββοΈ
Yaqinda Nest.Js(ts) da qilingan loyha topshirishgan edi. Undagi oddiy login qismi biroz hayron qoldirdi π
Frontend foydalanuvchi kiritgan passwordβni sha256'da hashβlab backendβga yuborar edi va backend uni bazada bcryt.hash() da hashlanib saqlangan parol bilan compare qilib tekshirar edi.
Savol. Frontend nega parolni sha256 da yuborgan va uni backenda bcryt.hash() lab tekshirgan deb uylaysiz ?! π (erkin fikrlar)
Yaqinda Nest.Js(ts) da qilingan loyha topshirishgan edi. Undagi oddiy login qismi biroz hayron qoldirdi π
Frontend foydalanuvchi kiritgan passwordβni sha256'da hashβlab backendβga yuborar edi va backend uni bazada bcryt.hash() da hashlanib saqlangan parol bilan compare qilib tekshirar edi.
Savol. Frontend nega parolni sha256 da yuborgan va uni backenda bcryt.hash() lab tekshirgan deb uylaysiz ?! π (erkin fikrlar)
Yangi hobby topdim. #Flutter
Qiziqarli narsa ekan )
Negadir Mobile Programming ga qiziqishim ortdi! (hh.uz π°)
Hozirchalik shunchaki sample projectla. Oldinlar Sketchware degan dastur orqali qiziqishga 2, 3 da mobile apk yozib kurilgan edi:
- https://t.me/davron_coder/104
- https://t.me/davron_coder/101
- https://t.me/davron_coder/67
- https://t.me/davron_coder/14
- https://t.me/davron_coder/13
- https://t.me/davron_coder/12
- https://t.me/davron_coder/11
Bekorchilik)
Qiziqarli narsa ekan )
Negadir Mobile Programming ga qiziqishim ortdi! (hh.uz π°)
Hozirchalik shunchaki sample projectla. Oldinlar Sketchware degan dastur orqali qiziqishga 2, 3 da mobile apk yozib kurilgan edi:
- https://t.me/davron_coder/104
- https://t.me/davron_coder/101
- https://t.me/davron_coder/67
- https://t.me/davron_coder/14
- https://t.me/davron_coder/13
- https://t.me/davron_coder/12
- https://t.me/davron_coder/11
Bekorchilik)
#Savol
- Qanday qilib bajaralayotgan taskni realtime'da progress foizlarda kursatib turish mumkin?π€―
Example:
- [2 - 3 000 000] gacha bulgan sonlar orasida nechta tub sonlar mavjudligini hisoblavchi web task'ni necha foizi bajarilgani qanday qilib realtime'da userga ko'rsatib turish mumkin?
p.s: Bu file upload progress'ga uxshashroq bo'ladi.π
Erkin fikr idea'lar ?π
- Qanday qilib bajaralayotgan taskni realtime'da progress foizlarda kursatib turish mumkin?
Example:
- [2 - 3 000 000] gacha bulgan sonlar orasida nechta tub sonlar mavjudligini hisoblavchi web task'ni necha foizi bajarilgani qanday qilib realtime'da userga ko'rsatib turish mumkin?
p.s: Bu file upload progress'ga uxshashroq bo'ladi.
Erkin fikr idea'lar ?
Please open Telegram to view this post
VIEW IN TELEGRAM
chmod vs chown
p.s) Bilib quysa ziyon qilmaydi. (takrorlab olish hamπ )
More: https://askubuntu.com/questions/918379/what-is-the-main-difference-between-chmod-and-chown
VideoπΊπΏ : https://youtu.be/PcoP1mykdEs?si=08uOI-O4fKa8JENi&t=2369
p.s) Bilib quysa ziyon qilmaydi. (takrorlab olish ham
More: https://askubuntu.com/questions/918379/what-is-the-main-difference-between-chmod-and-chown
Video
Please open Telegram to view this post
VIEW IN TELEGRAM
Letβs Build A Web Server.
p.s) Texnalogiyalarni 0 dan qurishga harakat qilganizda, ko'plab savolarizga javob topib boraverasiz ekan )
* BUILD YOUR OWN X
More: https://ruslanspivak.com/lsbaws-part1/
p.s) Texnalogiyalarni 0 dan qurishga harakat qilganizda, ko'plab savolarizga javob topib boraverasiz ekan )
* BUILD YOUR OWN X
More: https://ruslanspivak.com/lsbaws-part1/
Django'dagi N+1 haqida ko'p eshitganmiz π₯Ί
Masalan:
1 - rasmda Option'ga references bog'liq bo'lgan question title'ga olishda bu sodir bulmoqda deyishimiz mumkin.
π‘ Prefetch_related / select_related django ORM'dagi mu methodlarni chuquroq o'rganib chiqish ham tavsiya etiladi
p.s) Prefetch_related / select_related shunchalik yaxshi narsami? Bularda kamchilik, minuslari bormi ?π€ (https://chatgpt.com/share/30eb7a6e-fcab-4751-b110-ce6bac6d5cd1)
Fikr, idealar ππ
More: https://dev.to/mubtadaali/tips-and-tricks-for-optimizing-the-performance-of-django-orm-8pg
Masalan:
1 - rasmda Option'ga references bog'liq bo'lgan question title'ga olishda bu sodir bulmoqda deyishimiz mumkin.
p.s) Prefetch_related / select_related shunchalik yaxshi narsami? Bularda kamchilik, minuslari bormi ?
Fikr, idealar π
More: https://dev.to/mubtadaali/tips-and-tricks-for-optimizing-the-performance-of-django-orm-8pg
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Developing an Asynchronous Task Queue in Python
How to implement several asynchronous task queues using Python's multiprocessing library and Redis.β
p.s) Tasklar bilan ishlashda ham Queue'lar ancha foydali bo'la oladi.π
More: https://testdriven.io/blog/developing-an-asynchronous-task-queue-in-python/
How to implement several asynchronous task queues using Python's multiprocessing library and Redis.
p.s) Tasklar bilan ishlashda ham Queue'lar ancha foydali bo'la oladi.
More: https://testdriven.io/blog/developing-an-asynchronous-task-queue-in-python/
Please open Telegram to view this post
VIEW IN TELEGRAM
#django #pdf #qrcode
Bazi loyhalarda saqlangan .PDF fayl ichiga usha .PDF fayl turgan linkni QRCode qilib joylashtirish zarur bo'ladi. π
Bunda odatda:
1) .PDF fayl generate qilish.
2) Generate bo'lib saqlangan .PDF fayl path'dan QrCode generate qilish
3) Yaratilgan QrCode faylni berilgan cordinatalar asosida .PDF filega joylsahtirib, .PDF faylni qayta saqlab
4) PDF faylni path'ni file model field'ga berib saqlash ham zuru buladi ππ€§
β οΈ Bazi loyhalarimda oldin ishlatgan hard coding varyantim bilan ulashaman, bu borada sizga foydasi tegib qolishi mumkin:
* https://gist.github.com/firdavsDev/873c71a44546c8630060f232ece3f367
p.s) Siz qanday varyantlarni qulagansiz bu borada? ππ
Β» @davron_coder
Bazi loyhalarda saqlangan .PDF fayl ichiga usha .PDF fayl turgan linkni QRCode qilib joylashtirish zarur bo'ladi. π
Bunda odatda:
1) .PDF fayl generate qilish.
2) Generate bo'lib saqlangan .PDF fayl path'dan QrCode generate qilish
3) Yaratilgan QrCode faylni berilgan cordinatalar asosida .PDF filega joylsahtirib, .PDF faylni qayta saqlab
4) PDF faylni path'ni file model field'ga berib saqlash ham zuru buladi ππ€§
* https://gist.github.com/firdavsDev/873c71a44546c8630060f232ece3f367
p.s) Siz qanday varyantlarni qulagansiz bu borada? π
Β» @davron_coder
Please open Telegram to view this post
VIEW IN TELEGRAM
Davronbek SWE πͺ
#django #pdf #qrcode Bazi loyhalarda saqlangan .PDF fayl ichiga usha .PDF fayl turgan linkni QRCode qilib joylashtirish zarur bo'ladi. π Bunda odatda: 1) .PDF fayl generate qilish. 2) Generate bo'lib saqlangan .PDF fayl path'dan QrCode generate qilish 3)β¦
1chi varyant unchalik ham effectiniy emas. Bu ko'p vaqt talab qiladigan task hisoblanadi va CPU/RAM da sezilari joy ham egalaydi. (pdf yaratish + va yana faylni read qilib ochib ichiga qrcode png joylash + va pdf'ni qayta saqlash) βοΈ
2 - varyant: FrontSide'da hal qilish.π»
Bunda:
- FrontEnd'da ham bir nechta foydali package'lar mavjud (PDFKit, jsPDF ...)
- Backendga surov yuborib, kelgan response data'ni A4 page sifatida userga kursatish va user hohlasa chop etish tugmasi orqali sahifani PRINT qilib yuklab olishi mumkin bo'ladi.
* Bunda pdf generate qilish Browser'ga (CTRL + P) yuklatiladi holos )π» βοΈ
βοΈ Shaxsiy fikr (client imkon qadar BAZIDA dumb bolishi kerak)π
2 - varyant: FrontSide'da hal qilish.
Bunda:
- FrontEnd'da ham bir nechta foydali package'lar mavjud (PDFKit, jsPDF ...)
- Backendga surov yuborib, kelgan response data'ni A4 page sifatida userga kursatish va user hohlasa chop etish tugmasi orqali sahifani PRINT qilib yuklab olishi mumkin bo'ladi.
* Bunda pdf generate qilish Browser'ga (CTRL + P) yuklatiladi holos )
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from murodalidev /> (Murodali)
Django_5_by_example_build_powerful_and_reliable.pdf
27.9 MB
π Django 5 By example
ps: Bo'pti barbir kitobni ulashishga qaror qildim.
#book #django
@murodalidevβ
ps: Bo'pti barbir kitobni ulashishga qaror qildim.
#book #django
@murodalidev
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from @Rustam-Z | IT, Europe π©πͺ, MAANGβ‘οΈ (Rustam-Z)
Cracking the Google Interview Part #2: Interview Preparation Roadmap
This article will guide you through my steps for preparing for my Google interviews. Overall, it took me 2 years to crack the MAANG interview and almost 500 solved LeetCode problems: including learning algorithms and data structures, practicing coding & problem-solving, and applying and passing all interviews.
My General Roadmap for Preparing for the Interview:
1. Learning algorithms and data structures.
2. Solving algorithms, and learning patterns and concepts.
3. Practicing coding & problem-solving questions together with friends on the whiteboard.
4. Learning System Design.
5. Writing a resume. Applying to jobs.
6. Preparing for a behavioral interview.
7. Getting an interview invitation, passing all interviews, and getting an offer! πΎ
How Did I Learn Data Structures and Algorithms? Here are the Resources I Used:
1. I had a Data Structures class at university. Here are the notes from the class.
2. Naso Academy DS playlist
3. Jenny's DSA playlist
4. Programiz.com
5. Data Structures by a Google Software Engineer
6. NeetCode videos: hereβs one of them
7. AlgoExpert Data Structures course
8. Extra:
β’ *Tech Interview Handbook Algorithms Cheat Sheet
β’ The Last Algorithms Course You'll Need
Practicing Coding & Problem Solving Questions:
1. InterviewBit
2. LeetCode Explore (only data structures cards)
3. LeetCode Study Plan β Data Structure 1, Algorithm 1, Programming Skills 1
4. "Cracking the Coding Interview" + CTCI problems in LeetCode
5. LeetCode Study Plan β Data Structure 2, Algorithm 2, Programming Skills 2
6. AlgoExpert video solutions
7. Neetcode.io & NeetCode playlist
8. LeetCode company-tagged questions
Problem-Solving Approach (Constraints, Ideas, Complexities, Code, and Tests):
1. Read the problem. Donβt immediately jump into coding!
2. Understand inputs and outputs. Draw some examples on paper.
3. Clarify requirements, ask questions, and find constraints (edge cases). Example questions: Is it ASCII or Unicode? What is the max value? Is there a difference between capital letters and small letters?
4. Think about the solution in your mind. Divide problems into sub-problems. Come up with different ideas (ask whys, think about trade-offs, solve simpler versions, imagine helper functions - go from high level to low level).
5. Evaluate the complexity and trade-offs.
6. Think of a better alternative solution.
7. Write code on paper.
8. Debug your code on paper and test with new corner case inputs.
9. Write code. Write clean code.
10. Write tests. Positive, negative, with edge-cases.
11. More to read:
β’ HiredInTech Algorithm Design Canvas
β’ Cracking the Coding Skills
*My List of Clarifying Questions: Questions, Corner Cases, and Constraints
General Tips:
Interviews are not only about evaluating your technical knowledge. Explain your thought process and show how you approach problem-solving in a structured way step by step. Many questions asked by interviewers are open-ended, so ask good questions to clarify a full set of criteria to solve the problem and clarify requirements. Always, always, always ask clarifying questions before jumping to a solution. Try thinking of different solutions to a given problem and explain why you came up with this solution or this code. Compare your solutions, compare complexities, and think about their trade-offs. Overall, the interview should be like a dialogue β show how it is to work with you, how collaborative you are.
Must Watch and Must Read Resources:
β’ Interview Cake Coding Interview Tips
β’ Prepare for Your Google Interview: Coding
β’ Interview tips from Google Software Engineers
β’ Coding Mock Interview
Extra resources to Watch and Read:
β’ Tech Interview Process
β’ Preparing for a Technical Interview
β’ Prepare for your Google Interview: General Cognitive Ability
β’ Prepare for your Google Interview: Leadership
β’ "100ta Intervyu Nima O'rgatdi?" by Azimjon Pulatov
β’ Mock interview with Vohid Karimov and Azimjon Pulatov
#google #faang #maang #coding #google_interview #faang_interview
This article will guide you through my steps for preparing for my Google interviews. Overall, it took me 2 years to crack the MAANG interview and almost 500 solved LeetCode problems: including learning algorithms and data structures, practicing coding & problem-solving, and applying and passing all interviews.
My General Roadmap for Preparing for the Interview:
1. Learning algorithms and data structures.
2. Solving algorithms, and learning patterns and concepts.
3. Practicing coding & problem-solving questions together with friends on the whiteboard.
4. Learning System Design.
5. Writing a resume. Applying to jobs.
6. Preparing for a behavioral interview.
7. Getting an interview invitation, passing all interviews, and getting an offer! πΎ
How Did I Learn Data Structures and Algorithms? Here are the Resources I Used:
1. I had a Data Structures class at university. Here are the notes from the class.
2. Naso Academy DS playlist
3. Jenny's DSA playlist
4. Programiz.com
5. Data Structures by a Google Software Engineer
6. NeetCode videos: hereβs one of them
7. AlgoExpert Data Structures course
8. Extra:
β’ *Tech Interview Handbook Algorithms Cheat Sheet
β’ The Last Algorithms Course You'll Need
Practicing Coding & Problem Solving Questions:
1. InterviewBit
2. LeetCode Explore (only data structures cards)
3. LeetCode Study Plan β Data Structure 1, Algorithm 1, Programming Skills 1
4. "Cracking the Coding Interview" + CTCI problems in LeetCode
5. LeetCode Study Plan β Data Structure 2, Algorithm 2, Programming Skills 2
6. AlgoExpert video solutions
7. Neetcode.io & NeetCode playlist
8. LeetCode company-tagged questions
Problem-Solving Approach (Constraints, Ideas, Complexities, Code, and Tests):
1. Read the problem. Donβt immediately jump into coding!
2. Understand inputs and outputs. Draw some examples on paper.
3. Clarify requirements, ask questions, and find constraints (edge cases). Example questions: Is it ASCII or Unicode? What is the max value? Is there a difference between capital letters and small letters?
4. Think about the solution in your mind. Divide problems into sub-problems. Come up with different ideas (ask whys, think about trade-offs, solve simpler versions, imagine helper functions - go from high level to low level).
5. Evaluate the complexity and trade-offs.
6. Think of a better alternative solution.
7. Write code on paper.
8. Debug your code on paper and test with new corner case inputs.
9. Write code. Write clean code.
10. Write tests. Positive, negative, with edge-cases.
11. More to read:
β’ HiredInTech Algorithm Design Canvas
β’ Cracking the Coding Skills
*My List of Clarifying Questions: Questions, Corner Cases, and Constraints
General Tips:
Interviews are not only about evaluating your technical knowledge. Explain your thought process and show how you approach problem-solving in a structured way step by step. Many questions asked by interviewers are open-ended, so ask good questions to clarify a full set of criteria to solve the problem and clarify requirements. Always, always, always ask clarifying questions before jumping to a solution. Try thinking of different solutions to a given problem and explain why you came up with this solution or this code. Compare your solutions, compare complexities, and think about their trade-offs. Overall, the interview should be like a dialogue β show how it is to work with you, how collaborative you are.
Must Watch and Must Read Resources:
β’ Interview Cake Coding Interview Tips
β’ Prepare for Your Google Interview: Coding
β’ Interview tips from Google Software Engineers
β’ Coding Mock Interview
Extra resources to Watch and Read:
β’ Tech Interview Process
β’ Preparing for a Technical Interview
β’ Prepare for your Google Interview: General Cognitive Ability
β’ Prepare for your Google Interview: Leadership
β’ "100ta Intervyu Nima O'rgatdi?" by Azimjon Pulatov
β’ Mock interview with Vohid Karimov and Azimjon Pulatov
#google #faang #maang #coding #google_interview #faang_interview
Forwarded from AlgoExpert & SystemsExpert Videos
Sharing with you the channel with AlgoExpert and SystemsExpert videos. Please use only for learning purposes.
Join the channel via the link: https://t.me/+Oyz0o8Ho9EVjYmFi
Shorts links:
Algorithms and Data Structures
0. Data Structures Crash Course
1. Easy
2. Medium
3. Hard
4. Very hard
5. Extremely hard
System Design
1. Systems Design Fundamentals
2. Systems Design Interview Questions
Interview Tips Tricks
Behavioral Interview Preparation
#algorithms #data_structures #system_design #behavioral #algoexpert
Join the channel via the link: https://t.me/+Oyz0o8Ho9EVjYmFi
Shorts links:
Algorithms and Data Structures
0. Data Structures Crash Course
1. Easy
2. Medium
3. Hard
4. Very hard
5. Extremely hard
System Design
1. Systems Design Fundamentals
2. Systems Design Interview Questions
Interview Tips Tricks
Behavioral Interview Preparation
#algorithms #data_structures #system_design #behavioral #algoexpert
Forwarded from Mustafoyev M.IπΊπΏπ»
#leetcode
Leetcode.com saytida ma'lumot tuzilmalarini o'rganish uchun bir nechta card'lar
1. Array
2. Queue & Stack
3. Tree
4. Recursion & Memoization
5. D&C(Divide and Conquer) & Backtracking
6. Binary search
7. N-ary tree
8. Trie
9. Hash table
bepul va yaxshi tushuntirilgan. O'rgatilganlarni amaliyotda qo'llash uchun masalalar ham berilgan.
Leetcode.com saytida ma'lumot tuzilmalarini o'rganish uchun bir nechta card'lar
1. Array
2. Queue & Stack
3. Tree
4. Recursion & Memoization
5. D&C(Divide and Conquer) & Backtracking
6. Binary search
7. N-ary tree
8. Trie
9. Hash table
bepul va yaxshi tushuntirilgan. O'rgatilganlarni amaliyotda qo'llash uchun masalalar ham berilgan.
#django #orm #interview
- Ushbu tablelar'da foydalangan holatda request.user'ni barcha chat ma'lumotlarini shu holatda bazadan ORM level'da (iloji boricha 1ta surovda) olishga harakat qiling.π€―
- Ushbu tablelar'da foydalangan holatda request.user'ni barcha chat ma'lumotlarini shu holatda bazadan ORM level'da (iloji boricha 1ta surovda) olishga harakat qiling.
[
{
"chat_title": "Chat 1",
"preparations": [
{
"id": 1,
"name": "Preparation 1",
"status": "done"
}
// ...
],
"messages_count": 100,
"unread_messages_count": 4,
"last_message_id": 2
},
// ...
]
Please open Telegram to view this post
VIEW IN TELEGRAM