Aprender Django https://myblog.clonbg.es/aprender-django/ #Programación #Python https://clonbg.es

Ever wondered how Netflix knows what you’ll binge next? Or how banks catch fraud within seconds? That’s the magic of Data Science—the art of turning raw data into powerful insights. 📊✨
In this blog, you’ll uncover the fundamentals of Data Science, and the latest trends shaping the future of AI & analytics. 🚀
https://drchetandhongade.com/technology/data-science-tech-guide/
#DataScience
#MachineLearning
#ArtificialIntelligence
#BigData
#TechTrends
#Analytics
#CareerInTech
#Python
#AI
#FutureOfWork
#DeepLearning
#DrChetanDhongade
الدرس (3)
أساسيات كتابة الكود
تعتمد كتابة أكواد لغات البرمجة على أساسيات يؤدّي تجاهلها إلى وقوع أخطاء في الصياغة (Syntax Error) التي تظهر في زمان ترجمة الكود المصدري (Source Code) وتحويله إلى كود الآلة (Machine Code)، ولذا فإنّ إجادة لغة ما يعتمد في الخطوة الأولى على التعرف على هذه الأساسيات والعمل على مراعاتها بحذافيرها. نعم، هناك أيضاً توصيات اختيارية غير إلزامية يأتي الحثّ على مراعاتها في إطار تحسين مقروئية الكود المصدري، وعدم مراعاة التوصيات لا يؤدّي إلى وقوع أخطاء صياغية.
ههنا سنذكر الأكثر أهمية من بين الأساسيات:
1- لغة بايثون تطبّق حساسية الأحرف (Case Sensitivity)، وهذا يعني أنّ كلمة average تختلف عن كلمة Average
2- تعتمد لغة بايثون على مبدأ التثليم (Indents) "أي وضع مسافة بادئة في أول السطر" وتستعملها في تعيين البلوكات البرمجية، لذا انتبه لاستعمالك (Tab) في بداية السطور.
3- لا نحتاج إلى ":" في آخر الأمر، ولكن إذا أردنا كتابة أكثر من أمر في سطر واحد وجب إفهام مفسّر لغة بايثون (Python Interpreter) ذلك بالفصل بينها بعلامة ":" بهذا الشكل: x = 1; y = 2; z = 3
4- إذا أردت أن تقسّم أمراً برمجياً وكتابته في أكثر من سطر، يجب عليك إدراج علامة "\" بين أجزائه عند نهاية كل سطر. ولكن يمكن تجاوز هذه القاعدة إذا كان الأمر البرمجي مما يشتمل على الرموز المزدوجة مثل: [] أو () أو {}.
total = item_1 + \
item_2 + \
item_3
5- لكل لغة برمجة طريقتها في إعلان المتغيرات، وقد سهّلت بايثون الأمر بعدم اشتراطها تعيين نوع المتغير حين إعلانه، ولكن يظلّ من الواجب أن يتمّ التصريح بالإعلان عن المتغير ولو بإعطائه قيمة قبل استعماله في البرنامج. فمثلاً الأوامر التالية صحيحة:
x=5
y=7
z=x+y
إذ إعلنت عن x وy بإعطائها قيم صريحة، وأما z فقد أعلنت عنه بإعطائه قيمة مستنبطة وهي ناتج الجمع.
7- تستخدم كل لغة برمجة مجموعة من الكلمات، فلا يُسمح باستخدامها كأسماء للمتغيّرات، وهذه الكلمات في لغة بايثون هي:
and, assert, break, class, continue, def, del, elif, else, except, exec, False, finally, for, from, global, if, import, in, is, lambda, None, nonlocal, not, or, pass, print, raise, return, True, try, while, with, yield.
#بايثون #لغات_برمجة #python #programming_languages

If I had to explain my job... @ioer FDZ.. I'd just show this workflow from the last two days. It's a great example of building reproducible, automated documentation. 🚀
1. Start: A project schema, drafted by colleagues in Excel.
2. Problem: Excel isn't reproducible and is hard to use as a single source of truth for a database.
Solution: I migrated the schema to the universal Protobuf format, making it version-controlled and language-neutral. [1]
3. Problem: Protobuf definitions aren't easy for everyone to read.
Solution: Using an existing #CI/#CD workflow from [3] (cheers @mcnesium), I put the schema on a documentation website. Now it's accessible and legible. [4]
4. Problem: Colleagues still needed a familiar template for data collection.
Solution: Two Python scripts using #pandas now auto-generates both `.xlsx` and open-source `.ods` schema [5] and templates [6] directly from the Protobuf single-point-of-truth, and make all of these available for download, too.
5. Problem: The text-based schema wasn't visual enough.
Solution: Added a script [7] to the CI that transforms the Protobuf files into a #MermaidJS class diagram, rendered directly on the docs site. [8]
6. Problem: The diagram was too narrow in the site's layout.
Solution: The script now generates a second, wide-format version of the diagram for a dedicated fullscreen view. [9]
7. Problem: The static diagram was hard to edit or restyle.
Solution: The CI now generates a shareable link to the Mermaid Live Editor [10]. It reads our latest diagram file, compresses it (using pako/zlib), and bakes it into the URL. Thanks to a code snippet from a friendly stranger on GitHub [11], anyone can now open the *latest* version of the schema in the editor with a single click.
From a static Excel file to version-controlled, multi-format, visual, and interactive documentation, all fully automated. That's the job.
#Automation #GitLab #Python #Protobuf #OpenData #Documentation
[1]: https://gitlab.vgiscience.de/casereports/rwlschema
[2]: https://docs.casereports.fdz.ioer.info/
[3]: https://lbsn.vgiscience.org
[4]: https://docs.casereports.fdz.ioer.info/protobuf/
[5]: https://gitlab.vgiscience.de/casereports/rwlschema/-/blob/main/resources/generate_schema.py?ref_type=heads
[6]: https://gitlab.vgiscience.de/casereports/rwlschema/-/blob/main/resources/generate_template.py?ref_type=heads
[7]: https://gitlab.vgiscience.de/casereports/rwlschema/-/blob/main/resources/generate_proto_uml.sh?ref_type=heads
[8]: https://docs.casereports.fdz.ioer.info/konzept/
[9]: https://docs.casereports.fdz.ioer.info/uml/fullscreen.html
[10]: https://mermaidlive.com/play
[11]: https://github.com/mermaid-js/mermaid-live-editor/discussions/1291#discussioncomment-6837936

#PyPI urges users to reset credentials after new #phishing attacks
Модуль datetime в Python для начинающих с домашним заданием
Работа с датами и временем в Python — базовая задача, которая часто вызывает трудности у начинающих. В этой статье мы с нуля разберем встроенный модуль datetime, который элегантно решает большинство проблем. Вы научитесь получать текущее время, выполнять операции с датами, а главное — парсить строки и форматировать вывод с помощью strptime и strftime. Это пошаговое руководство для новичков, с практическим заданием на GitHub в конце.
https://habr.com/ru/articles/950914/
#python #datetime #python_для_начинающих #программирование #strptime #strftime
Show HN: The Little Notebook for Learning Linear Algebra with Python
Link: https://little-book-of.github.io/linear-algebra/books/en-US/lab.html
Discussion: https://news.ycombinator.com/item?id=45384617
Have you seen our new venue for PyCon 2025 😍
Join us at the gorgeous O'Reilly Hall, University College Dublin on November 15-16th for 2 days of Python action!
Get your tickets now: https://python.ie/
#PyConIE #PythonIE #PyCon #Python

Meet Una Galyeva, one of the Hidden Figures of Python.
With over 19 years of experience in Data and AI, Una Galyeva held various positions, from hands-on Data and AI development to leading Data and AI teams and departments.
As a driving force behind PyLadies Amsterdam, a Microsoft MVP, AI4ALL Advisory board member, and Head of Artificial Intelligence, Una is passionate about challenging perspectives and inspiring others to see things differently.
#Python #HiddenFiguresOfPython #podcast
🧶

🌘 線性代數入門手冊: the LAB
➤ 用 Python 和 NumPy 動手玩轉線性代數
✤ https://little-book-of.github.io/linear-algebra/books/en-US/lab.html
這是一本名為「the LAB:線性代數入門手冊」的書籍介紹。該書以互動式實驗室(LAB)的形式,引導讀者透過 Python 和 NumPy 學習線性代數的核心概念。內容涵蓋從向量、矩陣的基本運算,到線性系統、向量空間、線性轉換,再到行列式、特徵值、特徵向量,直至奇異值分解、主成分分析等進階應用。全書共十章,輔以實際案例,旨在提供一個循序漸進、動手實踐的學習路徑,讓讀者掌握線性代數的理論與計算技巧。
+ 這本書看起來很有趣,特別是能透過程式碼實際操作,這對我這種需要實際動手才能學好的人來說太棒了!
+ 內容很紮實,從基礎到進階都有涵蓋,而且結構清晰,應該是學習線性代數的絕佳資源。
#線性代數 #Python #NumPy #向量 #標量
Show HN: The Little Notebook for Learning Linear Algebra with Python
https://little-book-of.github.io/linear-algebra/books/en-US/lab.html
The Little Notebook for Learning Linear Algebra with Python
https://little-book-of.github.io/linear-algebra/books/en-US/lab.html
#HackerNews #LearningLinearAlgebra #Python #Notebook #Education #DataScience