<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Python on tinega</title><link>https://tin3ga.netlify.app/tags/python/</link><description>Recent content in Python on tinega</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Fri, 09 Feb 2024 10:29:08 +0300</lastBuildDate><atom:link href="https://tin3ga.netlify.app/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Backend Developer / DevOps Engineer</title><link>https://tin3ga.netlify.app/experience/interintel/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tin3ga.netlify.app/experience/interintel/</guid><description>InterIntel Technologies Limited | Nairobi, Kenya | Dec 2023 - Dec 2024</description></item><item><title>A Docker Compose Example (FlaskAPP + PostgreSQL + Traefik)</title><link>https://tin3ga.netlify.app/posts/a-docker-compose-example-flaskapp-+-postgresql-+-traefik/</link><pubDate>Fri, 09 Feb 2024 10:29:08 +0300</pubDate><guid>https://tin3ga.netlify.app/posts/a-docker-compose-example-flaskapp-+-postgresql-+-traefik/</guid><description>Introduction Docker Compose is a tool used for defining and running multi-container Docker applications. It allows developers to describe all the services that make up an application in a single YAML file, defining the relationships and configurations between them. Docker Compose then uses this YAML configuration to deploy and manage the application&amp;rsquo;s containers as a single unit. Docker Compose is particularly useful for development environments, testing, and deploying multi-container applications in a consistent and reproducible manner.</description></item><item><title>Crafting a Docker Image for Your Flask Web App</title><link>https://tin3ga.netlify.app/posts/crafting-a-docker-image-for-your-flask-web-app/</link><pubDate>Sat, 13 Jan 2024 12:21:10 +0300</pubDate><guid>https://tin3ga.netlify.app/posts/crafting-a-docker-image-for-your-flask-web-app/</guid><description>Introduction🐋 Docker is a revolutionary containerization platform that streamlines software development and deployment. It encapsulates applications and their dependencies, ensuring consistency across different environments. Docker eliminates the &amp;ldquo;it works on my machine&amp;rdquo; problem, promoting collaboration and scalability. Its efficient resource utilization and isolation capabilities make it a vital tool for modern software development.
Prerequisites 📋 Flask Application. Docker Follow these steps to install docker to your computer. Docker Hub Account create a free account.</description></item><item><title>Python One Liners</title><link>https://tin3ga.netlify.app/posts/python-one-liners/</link><pubDate>Thu, 23 Nov 2023 16:58:18 +0300</pubDate><guid>https://tin3ga.netlify.app/posts/python-one-liners/</guid><description>Multiple variable assignments name, age, occupation = &amp;#34;fatma&amp;#34;, 30, &amp;#34;cook&amp;#34; print(name, age, occupation) # fatma 30 cook HTTP server python -m http.server Swap variables a = &amp;#34;a&amp;#34; b = &amp;#34;b&amp;#34; a, b = b, a print(a, b) # b a Ternary operator yob = 1997 print(&amp;#34;hey kid(gen alpha)&amp;#34; if yob &amp;gt;= 2013 else &amp;#34;wassup gen z&amp;#34; if yob &amp;gt;= 1995 else&amp;#34;hello future grandma(millennials)&amp;#34; if yob &amp;gt;= 1980 else &amp;#34;hey grandma(gen x)&amp;#34; if yob &amp;gt;= 1965 else &amp;#34;hello ancestor (baby boomer)&amp;#34;) # wassup gen z Variable unpacking users = [&amp;#39;kalama&amp;#39;, &amp;#39;kairetu&amp;#39;,&amp;#39;munga&amp;#39;,&amp;#39;mwanaisha&amp;#39;] print(*users) #kalama kairetu munga mwanaisha user1, user2 , *other_users= users print(other_users) #[&amp;#39;munga&amp;#39;, &amp;#39;mwanaisha&amp;#39;] Reverse a list z = [10,20,30,40] print(z[::-1]) #[40, 30, 20, 10] Sort a list numbers = [1000000, -500000, 999999999, -1000000000, 123456789] print(sorted(numbers)) # [-1000000000, -500000, 1000000, 123456789, 999999999] Sort a list - reversed numbers = [1000000, -500000, 999999999, -1000000000, 123456789] print(sorted(numbers, reverse=True)) #[999999999, 123456789, 1000000, -500000, -1000000000] Filter from a list numbers = [1,2,3,4,5,6,7,8,9,10] odd = list(filter(lambda x: x%2!</description></item><item><title>Web Scraping Using Selenium</title><link>https://tin3ga.netlify.app/posts/web-scraping-using-selenium/</link><pubDate>Mon, 09 Oct 2023 17:20:55 +0300</pubDate><guid>https://tin3ga.netlify.app/posts/web-scraping-using-selenium/</guid><description>Introduction Selenium is a framework that many developers use to automate web browsers. It&amp;rsquo;s an open source tool that offers compatibility, with web browsers and supports programming languages. While its commonly used for testing web applications it&amp;rsquo;s also handy for tasks like web scraping and automating browser actions. WebDriver, which is a part of Selenium allows developers to control web browsers programmatically.
Using Selenium to scrape data Task: Scraping the latest news posts from a popular blog post Please note that to follow along you must have an understanding of basic HTML elements and CSS classes and id selectors as well as python</description></item><item><title>List &amp; Dictionary Comprehension in Python</title><link>https://tin3ga.netlify.app/posts/list--dictionary-comprehension-in-python/</link><pubDate>Fri, 08 Sep 2023 12:02:19 +0300</pubDate><guid>https://tin3ga.netlify.app/posts/list--dictionary-comprehension-in-python/</guid><description>List Comprehension Python lists are a fundamental data structure for storing and managing data collections. Lists are adaptable, flexible, and may store a variety of data kinds, including integers, strings, and even other lists. List comprehension lets you make a new list by applying an expression to each item in an existing iterable (such as a list, tuple, or range) and optionally filtering the items depending on a condition. List comprehensions are a more compact and readable means of creating lists than typical for loops.</description></item><item><title>Python Script Automation in Windows</title><link>https://tin3ga.netlify.app/posts/python-script-automation-in-windows/</link><pubDate>Fri, 29 Sep 2023 12:46:04 +0300</pubDate><guid>https://tin3ga.netlify.app/posts/python-script-automation-in-windows/</guid><description>Introduction Sometimes, we need to run Python scripts at regular intervals to complete specific tasks. However, as humans, we often forget or remember too late. Operating systems offer built-in capabilities to schedule the execution of commands or programs when needed. While Linux simplifies task automation through the &amp;lsquo;crontab&amp;rsquo; utility, Windows also offers similar functionality. With the right know-how, you can effectively automate tasks in Windows,
Windows Task Scheduler Task Scheduler is a built-in utility in Microsoft Windows operating systems that allows users to automate various tasks and processes on their computer.</description></item><item><title>Combine Iterables Together Using Zip Function</title><link>https://tin3ga.netlify.app/posts/combine-iterables-together-using-zip-function/</link><pubDate>Tue, 03 Oct 2023 12:05:16 +0300</pubDate><guid>https://tin3ga.netlify.app/posts/combine-iterables-together-using-zip-function/</guid><description>Introduction The zip() function in Python is a built-in function that allows you to combine two or more iterables (such as lists, tuples, or other sequences) element-wise. It creates an iterator that generates tuples, where each tuple contains one element from each of the input iterables. The resulting iterator stops when the shortest input iterable is exhausted. This is particularly useful when you want to work with multiple sequences simultaneously.</description></item></channel></rss>