A Schrödinger-like Python Program This program runs and it doesn't run at the same time, can you spot the error? (This is the only reason why Python shouldn't be used in any kind of production code. Linux Mint installer (and perhaps any Linux installer derived from Ubuntu) includes this kind of mistake.)
Xavier Rodríguez’s Post
More Relevant Posts
-
🐍🐋 Python Docker Tutorials — Docker is a containerization tool used for spinning up isolated, reproducible application environments. This page lists all of our #Python Docker tutorials. https://lnkd.in/gY9nhPX
To view or add a comment, sign in
-
Today I gained an interesting insight into Docker image sizes. When I use python:3.12, the image size is around 1.82GB. But when I switch to python:3.12-alpine, it’s amazing to see that the size drops to just 293.42MB. This happens because python:3.12 is based on a Debian image, whereas Alpine is built on Alpine Linux, which uses a minimal operating system. Of course, there are some trade-offs, such as missing pre-installed packages. As a beginner learning Docker, I’ve realized that Docker is not just about containers, tools, or commands. It’s about understanding the core concepts of operating systems how cgroups and namespaces work in Linux, and why tools like Docker Desktop are needed. It’s truly about understanding the underlying system and its architecture. I’m grateful to be learning this through Habib vai’s tutorial. #Happy_Learning #Docker #DevOps
To view or add a comment, sign in
-
-
An AI found a Linux kernel zero-day that roots every distribution since 2017. The exploit fits in 732 bytes of Python. Patch your kernel ASAP. The vulnerability is CVE-2026-31431, nicknamed "Copy Fail," disclosed today by Theori. It has been sitting quietly in the Linux kernel for nine years. https://copy.fail
To view or add a comment, sign in
-
-
⚠️ Skipping virtual environments is one of the most common mistakes new Python developers make. Here is why it matters and how to do it right. A virtual environment keeps your project dependencies isolated. Without one, every package you install goes into your global Python installation and things break fast when projects need different versions of the same library. Here is how to set one up for your FastAPI project: 🔧 Step 1: Create the virtual environment python -m venv environmentfoldername ⚡ Step 2: Activate it On Windows PowerShell: .\environmentfoldername\Scripts\Activate.ps1 On Mac, Linux, or Git Bash: source environmentfoldername/Scripts/activate Once activated, your terminal will show the environment name. That is your green light to start installing packages safely. ✅ 🙅 One more thing: always add your environment folder to .gitignore. You do not want to push hundreds of dependency files to GitHub. Virtual environments are a small habit that save enormous headaches. Start doing this from day one. #Python #FastAPI #DeveloperTips #CleanCode #PythonDevelopment
To view or add a comment, sign in
-
In Linux everything is a file, in Bash everything is a command, in Python everything is an object, and in JavaScript everything is f***ed. I don't know if this is professionally appropriate, but I've abandoned all other social media so here you go.
To view or add a comment, sign in
-
final material with Ms. Toni which explains about programming languages and various supporting materials for other programming languages such as Linux, SQL, and Python and various other programming languages 🤩🚀
To view or add a comment, sign in
-
-
At first glance, reports of a critical vulnerability in almost every conceivable Linux distribution looked overblown. But CVE-2026-31431, aka Copy Fail, is indeed a Big Problem. A very stable and straightforward exploit" confirms Costin Raiu. The key takeaway? Local privilege escalation (LPE) to Root on almost every Linux distribution since 2017, using a simple Python script. Most distros are still exposed. Found by Theori's Xint Code using an LLM pointed at the Linux kernel "for about an hour." 👉 https://lnkd.in/e8upAdWG
To view or add a comment, sign in
-
💻 I Spent 2 Hours Debugging… for a 2-Minute Fix While practicing Python on Linux, I ran into a simple issue: My script just wouldn’t run. No output. No clear error. After trying multiple things, I finally found the problem 👇 👉 I was running the file incorrectly in the terminal 👉 And missed checking the Python version. Fix: ✔️ Used python3 file.py instead of python file.py ✔️ Verified with python3 --version Simple mistake. But it cost me 2 hours. What I learned: Small details matter a lot in tech Always check basics before overthinking Debugging is where real understanding happens Moments like these can feel frustrating, but they’re also the ones that stick the most. Curious—what’s a “simple mistake” that cost you hours? #Python #Linux #Debugging #DevOps #LearningJourney #TechLearning #Beginners
To view or add a comment, sign in
-
More from this author
-
Writing Scalable Firmware: Implementing the Command Pattern in C++
Xavier Rodríguez 4mo -
uTaskerr, un nano kernel cooperativo, en C++, y ligero para programadores de sistemas embebidos
Xavier Rodríguez 9mo -
How does an Arduino program written from the very main() function looks like?
Xavier Rodríguez 1y
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development