<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Steve Yonkeu on Medium]]></title>
        <description><![CDATA[Stories by Steve Yonkeu on Medium]]></description>
        <link>https://medium.com/@yokwejuste?source=rss-5e3e47c9d7ca------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nnSoT2AxSbr3RHp4BA49iA.png</url>
            <title>Stories by Steve Yonkeu on Medium</title>
            <link>https://medium.com/@yokwejuste?source=rss-5e3e47c9d7ca------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 20:11:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yokwejuste/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Deploying A Django App: EC2 vs App Runner with External Celery]]></title>
            <link>https://yokwejuste.medium.com/deploying-a-django-app-ec2-vs-app-runner-with-external-celery-ef03096c0aa5?source=rss-5e3e47c9d7ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef03096c0aa5</guid>
            <dc:creator><![CDATA[Steve Yonkeu]]></dc:creator>
            <pubDate>Thu, 08 Aug 2024 13:32:55 GMT</pubDate>
            <atom:updated>2024-08-08T13:32:55.425Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MhdPjZctAM1Ne3kjGXO9sg.png" /></figure><p>Wait a minute…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*XgSl-HHcuq-7ePR8jvdXGw.png" /></figure><p>We have all encountered this situation where we are busy trying to go to production, but a lot of factors account for the choice of your platform of deployment. Emmmm YES, we will go with AWS. Usually after sticking to a platform, we can now rely on some factors such as: architecture, cost, reliability, scalability, availability and feasibility. Guess what!!! This will not be about reliability, scalability, availability and feasibility since AWS is trusted for all those. In this tutorial we will identify the ups and downs of some architecture for your Django App.</p><p>Before we proceed let’s understand a few prerequisites to perfectly understand what is going on.</p><blockquote><em>:) All the code involved in this tutorial will be available as opensource. Feel free to put your footprint into it.</em></blockquote><h3>Prerequisites</h3><p>Before moving ahead, you are required to:</p><ul><li>Have an AWS account</li><li>Have some Django knowledge</li><li>Understand what queueing, tasks, brokers are</li></ul><h3>What is Caching and Why do we Cache</h3><p>Caching is a technique used to temporarily store frequently accessed data in a fast-access location, reducing the time it takes to retrieve this data. In AWS, caching improves application performance and scalability by minimizing the load on primary databases and APIs, thereby speeding up response times for end-users.</p><p>We cache to enhance efficiency, reduce latency, and lower costs. By storing data closer to the application, caching decreases the frequency of database queries, network traffic, and computational load. This results in faster data retrieval, improved user experience, and optimized resource usage, which is crucial for high-traffic applications.</p><h3>Let’s be warming up</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*eDw71NUWzs7xD-ahBfkQ4A.gif" /></figure><ol><li><strong>EC2</strong>:<br>From its full meaning Elastic Compute Engine, EC2 are web servers found in AWS datacenters. In others words, EC2 are virtual which you can get from AWS. With all functionalities available you can get one at a very cheap monthly rate under a “pay-as-you-go plan”.</li><li><strong>AWS App Runner</strong>:<br>This is a fully managed service that simplifies running and scaling web applications and APIs, allowing developers to quickly deploy from code repositories or container images without infrastructure management.</li><li><strong>Celery and Django Celery</strong>:<br>Celery is an open-source distributed task queue for real-time processing in Python. Django Celery integrates Celery with the Django framework, enabling asynchronous task execution, periodic tasks, and background job management within Django applications. The use case of this technology varies. It can be communication services (SMS, emails), Scheduled Jobs (Crons), and background data processing tasks, such as data aggregation, machine learning model training, or file processing.</li><li><strong>Amazon RDS (Relational Database Service)</strong>:<br>It is a managed database service that simplifies setting up, operating, and scaling relational databases in the cloud. It supports various database engines like MySQL, PostgreSQL, Oracle, and SQL Server, providing automated backups, patching, and high availability, freeing users from database administration tasks.</li></ol><h3>Comparing the EC2 and App Runner in this context</h3><h3>Architectures</h3><p>Let’s study how the app is structured and how the deployment setup would behave.</p><p>1- Deployment setup with AWS App Runner (ECR)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*YUTy9c-gXoQ6ZAV76cO9eQ.png" /></figure><p>We push our code to GitHub, triggering a CodePipeline workflow. CodePipeline uses CodeBuild to create Docker images stored in Elastic Container Registry (ECR) for versioning releases. This tutorial skips Virtual Private Cloud (VPC) configuration. We ensure application health by constantly monitoring logs using CloudWatch. And a bonus is the quick configuration of the project to use Postgres provide by the AWS RDS and S3 for static files.</p><p>2- Deployment with AWS EC2 Instance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*9Lj-Aial9GE50Qtnfw1XEw.png" /></figure><p>Using a similar process, omitting versioning and ECR, we push our code to GitHub, triggering CodePipeline, which uses CodeBuild to create Docker images stored in ECR for versioning. EC2 instances pull these images to deploy the application within a VPC, making it accessible to end users. The application interacts with RDS for data storage and S3 for static files, monitored by CloudWatch. Optionally we can add an SSL configuration into this instance with options like certbot.</p><h3>Price Comparison Table</h3><p>Here’s a hypothetical price comparison between EC2 and App Runner based on typical usage scenarios</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bae6f9817d437fe1692a3835feeae331/href">https://medium.com/media/bae6f9817d437fe1692a3835feeae331/href</a></iframe><h3>Ease of Management</h3><p>Let’s have a quick summary about how managing these two resources go.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8b2e580eab553bd959a79b3ff6502b5c/href">https://medium.com/media/8b2e580eab553bd959a79b3ff6502b5c/href</a></iframe><h3>Scalability</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b4682404b8abcb9634883020a6085f7b/href">https://medium.com/media/b4682404b8abcb9634883020a6085f7b/href</a></iframe><h3>Deployment Speed</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1305e815f1967c5c06d6c1cecdaa6e30/href">https://medium.com/media/1305e815f1967c5c06d6c1cecdaa6e30/href</a></iframe><h3>Customization and Control</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/36cbd27b414c2f1c5e4b7117954ce498/href">https://medium.com/media/36cbd27b414c2f1c5e4b7117954ce498/href</a></iframe><h3>Security</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/73329595ed72ccaeb5a04d243e6c8b28/href">https://medium.com/media/73329595ed72ccaeb5a04d243e6c8b28/href</a></iframe><h3>Project Setup</h3><p>Given that the comparison of our project does not rely on the project setup itself. We will have a basic Django application with a celery configuration from AWS.<br>We will go with a basic project using Django.</p><h3>Installing Dependencies and Project Creation:</h3><p>The commands should be run in the order below:</p><pre># Project directory creation<br>mkdir MySchedular &amp;&amp; cd MySchedular<br><br># Creating an isolated space for the project dependencies<br>python -m venv venv &amp;&amp; source venv/bin/activate<br><br># Dependencies installation<br>pip install django celery redis python_dotenv<br><br># Creating project and app<br>django-admin startproject my_schedular . &amp;&amp; python manage.py startapp crons<br><br># Let&#39;s add a few files to the project skeleton<br>touch my_schedular/celery.py crons/urls.py crons/tasks.py</pre><p>At this point in time we can check our project skeleton with this:</p><pre>tree -I &quot;venv|__pycache__&quot; .</pre><p>And we should have this one at the moment</p><pre>    .<br>    ├── crons<br>    │   ├── __init__.py<br>    │   ├── admin.py<br>    │   ├── apps.py<br>    │   ├── migrations<br>    │   │   └── __init__.py<br>    │   ├── models.py<br>+   │   ├── tasks.py<br>    │   ├── tests.py<br>+   │   ├── urls.py<br>    │   └── views.py<br>    ├── manage.py<br>    └── my_schedular<br>        ├── __init__.py<br>        ├── asgi.py<br>+       ├── celery.py<br>        ├── settings.py<br>        ├── urls.py<br>        └── wsgi.py<br><br>    3 directories, 16 files</pre><h3>Code and Logic</h3><p>We can proceed now by adding a couple of lines for the logic of out app and covering another milestone for this project.</p><p>1- Setting up the celery</p><pre># my_schedular/celery.py<br><br>from __future__ import absolute_import, unicode_literals<br>import os<br>from celery import Celery<br><br>os.environ.setdefault(&#39;DJANGO_SETTINGS_MODULE&#39;, &#39;myproject.settings&#39;)<br><br>app = Celery(&#39;myproject&#39;)<br><br>app.config_from_object(&#39;django.conf:settings&#39;, namespace=&#39;CELERY&#39;)<br><br>app.autodiscover_tasks()<br><br>@app.task(bind=True)<br>def debug_task(self):<br>    print(f&#39;Request: {self.request!r}&#39;)</pre><p>2- Let’s overwrite the celery variables to set our broker</p><pre># my_schedular/settings.py<br><br>CELERY_BROKER_URL = os.getenv(&#39;CELERY_BROKER_URL &#39;)<br>CELERY_RESULT_BACKEND = os.getenv(&#39;CELERY_RESULT_BACKEND&#39;)</pre><p>3- Update <strong>init</strong>.py to ensure the app is loaded when Django starts:</p><pre># my_schedular/__init__.py<br>from __future__ import absolute_import, unicode_literals<br><br>from .celery import app as celery_app<br><br>__all__ = (&#39;celery_app&#39;,)</pre><p>4- We create our task</p><pre># crons/tasks.py<br>from celery import shared_task<br>import time<br><br>@shared_task<br>def add(x, y):<br>    time.sleep(10)<br>    return x + y</pre><p>5- Let’s add our view now, just a simple one with a simple Json response.</p><pre># crons/views.py<br>from django.http import JsonResponse<br>from crons.tasks import add<br><br>def index(request):<br>    return JsonResponse({&quot;message&quot;: &quot;Hello world, your Django App is Running&quot;})<br><br>def add_view(request):<br>    result = add.delay(4, 6)<br>    return JsonResponse({&#39;task_id&#39;: result.id})</pre><p>6- We cannot have a view, without an endpoint to make it possible to access it</p><pre># crons/urls.py<br>from django.urls import path<br><br>from crons.views import add_view, index<br><br>urlpatterns = [<br>    path(&#39;&#39;, index, name=&#39;index&#39;),<br>    path(&#39;add/&#39;, add_view, name=&#39;add&#39;),<br>]</pre><p>7- Adding our apps urls to the general urls.py of the whole project.</p><pre># my_schedular/urls.py<br>from django.contrib import admin<br>from django.urls import include, path<br><br>urlpatterns = [<br>    path(&#39;admin/&#39;, admin.site.urls),<br>    path(&#39;/&#39;, include(&#39;crons.urls&#39;)),<br>]</pre><p>Adding Environment Variables:</p><pre># .env<br>SECRET_KEY=<br>DEBUG=<br>CELERY_BROKER_URL=<br>CELERY_RESULT_BACKEND=</pre><p>After proper follow up of all these steps, we have this output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*A4cgnHqycUeelWxFyxTHpA.png" /></figure><h3>AWS Environment Setup</h3><p>Since we are shipping to AWS We need to configure a few resource to</p><h3>Creating a new VPC (Virtual Private Cloud)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*sKBgjBfKZi02HirQljPSLg.png" /></figure><p>We create an isolated environment and a network for a secure access and communication between our resources.</p><h4>Creating Security Groups</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*LdHDVVWPuy2F5ZMle-K0TQ.png" /></figure><p>We create a security group under the previously made VPC and together add inbound and outbound rules to the TCP port 6379 (the Redis Port).</p><h3>Creating the RedisOSS from ElasticCache</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*reRKcb4j3J1Lgil4YDBlCw.png" /></figure><p>Basically, AWS Elastic Cache offers us two varieties when it comes to caching, namely: RedisOSS and memCache. RedisOSS offers advanced data structures and persistence features, while Memcached is simpler, focusing on high-speed caching of key-value pairs. Redis also supports replication and clustering, unlike Memcached. Back to business, back to Redis.</p><h3>Elastic Container Registry (ECR) Setup</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*H4SMHCByYu9zFtlx4CoB5g.png" /></figure><p>The Creation of an ECR image will be very simple and straight forward.</p><h3>ONE: Updates to deploy the App Runner</h3><p>Follow the steps below to have your app runner running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*2s7XUBNXkoNIKZjM2_7hrQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*zx-j7xKla70g4Ft2jWFAcg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Q6fDJV0zbQus-7TE-QS_Vw.png" /></figure><p>Here we need to be very technical. A VPC is a secured network where most of our resources lie, since an App runner is not found into a VPC, we will need to provide a secured means for communication between those resources.</p><h3>Credentials user credentials</h3><p>For this tutorial we will need an authorization to connect our workflow to our ECR. Then we add the AmazonEC2ContainerRegistryFullAccess permission policy so it can push the image to our AWS ECR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*c-Jkp_u_UwIXXWEB.png" /></figure><h3>Results</h3><p>When all is done we have this tree structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/0*ICQ7VR-agS3ZL_6H.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*z3njak5QKFrL3s2o.png" /></figure><p>You can have the whole code base for this tutorial on <a href="https://github.com/yokwejuste/aws-django-redis">My GitHub</a>.</p><h3>TWO: Deploying to an EC2</h3><p>We will go with one the easiest EC2 to setup and the one having a free tier, an ubuntu EC2 instance. And The same code base that was used above is the same we are using here.</p><h3>Creating an EC2</h3><p>![EC2 1]<a href="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rk8waijxkthu1ule91fn.png">https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rk8waijxkthu1ule91fn.png</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*Jt-tgCUiCCNWnlki.png" /></figure><p>Alternatively, we can setup the security group separately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*BhR_epoy3QZ-sx5L.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*BJH7LMXfgOHnvtkk.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*z7jdPFKrf79_nUsk.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*RfP8LRao9LDnDkpc.png" /></figure><h3>Setting up the EC2</h3><p>Run this script to install necessary dependencies</p><pre>#!/bin/bash<br><br># Update the package list and upgrade existing packages<br>sudo apt-get update<br>sudo apt-get upgrade -y<br># Install Python3, pip, and other essentials<br>sudo apt-get install -y python3-pip python3-dev libpq-dev nginx curl<br># Install Redis<br>sudo apt-get install -y redis-server<br># Start and enable Redis<br>sudo systemctl start redis.service<br>sudo systemctl enable redis.service<br># Install Supervisor<br>sudo apt-get install -y supervisor<br># Install virtualenv<br>sudo pip3 install virtualenv<br># Setup your Django project directory (adjust the path as needed)<br>cd ~/aws-django-redis<br># Create a virtual environment<br>virtualenv venv<br># Activate the virtual environment<br>source venv/bin/activate<br># Install Gunicorn and other requirements<br>pip install gunicorn<br>pip install -r requirements.txt<br># Create directories for logs if they don&#39;t already exist<br>sudo mkdir -p /var/log/aws-django-redis<br>sudo chown -R ubuntu:ubuntu /var/log/aws-django-redis<br># Supervisor Configuration for Gunicorn<br>echo &quot;[program:aws-django-redis]<br>command=$(pwd)/venv/bin/gunicorn --workers 3 --bind 0.0.0.0:8000 my_schedular.wsgi:application<br>directory=$(pwd)<br>autostart=true<br>autorestart=true<br>stderr_logfile=/var/log/aws-django-redis/gunicorn.err.log<br>stdout_logfile=/var/log/aws-django-redis/gunicorn.out.log<br>user=ubuntu<br>&quot; | sudo tee /etc/supervisor/conf.d/aws-django-redis.conf<br># Supervisor Configuration for Celery<br>echo &quot;[program:celery]<br>command=$(pwd)/venv/bin/celery -A my_schedular worker --loglevel=info<br>directory=$(pwd)<br>autostart=true<br>autorestart=true<br>stderr_logfile=/var/log/aws-django-redis/celery.err.log<br>stdout_logfile=/var/log/aws-django-redis/celery.out.log<br>user=ubuntu<br>&quot; | sudo tee /etc/supervisor/conf.d/celery.conf<br># Reread and update Supervisor<br>sudo supervisorctl reread<br>sudo supervisorctl update<br>sudo supervisorctl restart all<br># Set up Nginx to proxy to Gunicorn<br>echo &quot;server {<br>    listen 80;<br>    server_name &lt;your_vm_ip&gt;;<br>    location / {<br>        proxy_pass http://127.0.01:8000;<br>        proxy_set_header Host \$host;<br>        proxy_set_header X-Real-IP \$remote_addr;<br>        proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;<br>        proxy_set_header X-Forwarded-Proto \$scheme;<br>    }<br>    error_log  /var/log/nginx/aws-django-redis_error.log;<br>    access_log /var/log/nginx/aws-django-redis_access.log;<br>}&quot; | sudo tee /etc/nginx/sites-available/aws-django-redis<br># Enable the Nginx site configuration<br>sudo ln -s /etc/nginx/sites-available/aws-django-redis /etc/nginx/sites-enabled/<br>sudo rm /etc/nginx/sites-enabled/default<br># Test Nginx configuration and restart Nginx<br>sudo nginx -t<br>sudo systemctl restart nginx</pre><h3>Results</h3><p>This setup is available on <a href="https://github.com/yokwejuste/aws-django-redis/tree/dev">GitHub on the dev branch</a>, have a look and open a PR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*rBMXpxQ0Y1oCJdK4.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ldXR1iXE_k9UQX5l.png" /></figure><h3>Pricing and Setup Comparison Table</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ee8ea03d3f88ed824b78f5ed7152fb4/href">https://medium.com/media/9ee8ea03d3f88ed824b78f5ed7152fb4/href</a></iframe><h3>Cost Summary</h3><ul><li><strong>Setup Using AWS Free Tier</strong>: Primarily free if staying within the free tier limits. Potential costs may arise if usage exceeds free tier allowances.</li><li><strong>Setup Using All Paid AWS Services</strong>: Estimated around $41.34 per month, assuming continuous operation of one t2.micro instance for EC2, Elasticache, and RDS, with additional costs for data transfer and storage.</li></ul><p><strong>Note</strong>: Prices are approximate and can vary based on region and specific AWS pricing changes. Always check the current <a href="https://aws.amazon.com/pricing/">AWS Pricing page</a> to get the most accurate cost estimates for your specific requirements.</p><h3>Analysis</h3><ul><li>Self-Managed on EC2: This approach is cost-effective, especially with the use of the AWS free tier. It requires more setup and manual maintenance but provides full control over the environment. Ideal for smaller scale or lower budget projects.</li><li>Fully Managed AWS Services: While this increases operational costs, it reduces the workload related to infrastructure management, scaling, and maintenance. It’s suitable for larger applications or when operational simplicity and scaling are priorities.</li></ul><h3>Summary</h3><p>Nahhhhhhhhhh!!! Unfortunately, there is no summary for this one. Yes, go back up for a better understanding.</p><h3>Conclusion</h3><p>The learning path is long and might seems difficult, but one resource at a time, continuously appending knowledge leads us to meet our objectives and goal.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef03096c0aa5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Emails Setup in Django Using AWS]]></title>
            <link>https://yokwejuste.medium.com/emails-setup-in-django-using-aws-3e50360743c1?source=rss-5e3e47c9d7ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e50360743c1</guid>
            <category><![CDATA[django]]></category>
            <category><![CDATA[aws-cloud]]></category>
            <category><![CDATA[aws-ses-account]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Steve Yonkeu]]></dc:creator>
            <pubDate>Mon, 29 Jul 2024 23:37:05 GMT</pubDate>
            <atom:updated>2024-07-29T23:43:31.570Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uXrjITv84OOrj-jvNXyINw.png" /><figcaption>Blog post header</figcaption></figure><p>In the early days, communication relied on letters that took days or weeks to deliver. The internet revolutionized this with the advent of emails, providing instantaneous and reliable messaging. From there businesses quickly adopted this tool for customer communication, transactional updates, and marketing, valuing the speed and direct connection it offered. For developers, integrating email functionality into applications has become essential. <a href="https://aws.amazon.com/">AWS (Amazon Web Services)</a> provides not only a robust but also a cheap solution for setting up email services, allowing developers to automate and streamline communication within their Django applications.</p><p>Let’s dive into a quick implementation of this using AWS and <a href="https://djangoproject.com/">Django</a>. We will be using a couple of ideas from the <a href="https://docs.aws.amazon.com/ses/latest/dg/send-an-email-using-sdk-programmatically.html">AWS Official Blog</a>.</p><ul><li>What is Django?<br>Django is a free, open-source Python web framework designed to simplify the creation of complex, database-driven websites. It emphasizes reusability, rapid development, and clean design. Django handles many common web development tasks, allowing developers to focus on unique features for their applications. Personally, I consider it quickest way to kickstart a web application.</li><li>What is AWS?<br>Amazon Web Services (AWS) is a comprehensive cloud computing platform offering over 200 services. It provides on-demand resources like computing power, storage, databases, and machine learning tools for individuals, businesses, and governments. AWS operates on a pay-as-you-go model, allowing users to scale resources based on their needs.</li></ul><h3>Why AWS?</h3><p>1 — Price:<br>After a few comparison I came to the conclusion that this will be our most cost effective option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*1Sd_kRJpzizUzBw69XQtTg.png" /></figure><p>2 — Scalability:<br>AWS SES is highly scalable, allowing you to send millions of emails per day. Its robust infrastructure ensures that you can handle increased email volumes seamlessly as your business grows. Base on your needs you can easily step up.</p><p>3 — Reliability:<br>AWS SES boasts high deliverability rates and strong security measures, ensuring that your emails reach their intended recipients reliably and safely. This reliability is critical for maintaining effective communication with your customers.</p><h3>Setting Amazon SES(Simple Email Service)</h3><ol><li>Let’s get started</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*6r161zE5fTtuuld-.png" /></figure><ol><li>Enter Email, domain/subdomain and proceed</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*quRGEglvXSanuzRB.png" /></figure><ol><li>Verify your email and domain</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*408t-21nsMqDrMLH.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*rW0VCQPdQjWevAYM.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*qa4VNIYIgzlVHsrR.png" /></figure><ol><li>By default the account is in Sandbox mode and needs to be in production to send emails to emails not under the verified domain. It usually takes a couple of hours, maximum 24 hours to verify but it’s worth it.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*gB_iEAp0G_tedfST.png" /></figure><h3>Setting the Django project</h3><p>This project being one tagged as beginner-friendly we need a few prerequisites for this. Already we need to have a Python environment properly setup. Also, a valid domain and email ready for use on this project. I got a random domain name and an email for this tutorial. Let&#39;s have a walk now...</p><ol><li>Creating Folder and Activating the virtual environment</li></ol><pre>mkdir DjangoSES &amp;&amp; cd DjangoSES</pre><pre>python -m venv venv</pre><pre># For Unix and Linux<br>source venv/bin/activate</pre><ol><li>Installing the necessary packages or dependencies</li></ol><pre>pip install django boto3 python-dotenv</pre><ol><li>Creating the Django Project and the Django app</li></ol><pre># Creating the Django project<br>django-admin startproject aws_ses .</pre><pre># We create an application for the project<br>python manage.py startapp emailer</pre><p>At this moment, the current project structure is using the command below:</p><pre>tree -I &quot;venv|__pycache__&quot; .</pre><p>The Output below:</p><pre>.<br>    ├── aws_ses<br>    │   ├── __init__.py<br>    │   ├── asgi.py<br>    │   ├── settings.py<br>    │   ├── urls.py<br>    │   └── wsgi.py<br>    ├── emailer<br>    │   ├── __init__.py<br>    │   ├── admin.py<br>    │   ├── apps.py<br>+   │   ├── forms.py<br>    │   ├── migrations<br>    │   │   └── __init__.py<br>    │   ├── models.py<br>    │   ├── tests.py<br>+   │   ├── urls.py<br>+   │   ├── utils.py<br>    │   └── views.py<br>    ├── manage.py<br>    └── requirements.txt<br>    ├── static<br>    └── templates<br>+   └── .env</pre><p>At this point you should have this display on your browser when you run the command:</p><pre>python manage.py runserver</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*5RcrQHkt1fLNiWfL.png" /></figure><h3>Writing some utils functions for the project</h3><ol><li>A function to send emails</li></ol><pre># .env<br>AWS_ACCESS_KEY_ID=your_access_key_id<br>AWS_SECRET_ACCESS_KEY=your_secret_access_key<br>AWS_REGION_NAME=your_aws_region</pre><pre># aws_ses/settings.py<br>import os<br>from dotenv import load_dotenv</pre><pre># aws_ses/settings.py<br>load_dotenv()<br>AWS_ACCESS_KEY_ID = os.getenv(&#39;AWS_ACCESS_KEY_ID&#39;)<br>AWS_SECRET_ACCESS_KEY = os.getenv(&#39;AWS_SECRET_ACCESS_KEY&#39;)<br>AWS_REGION_NAME = os.getenv(&#39;AWS_REGION_NAME&#39;)<br>DEFAULT_FROM_EMAIL = os.getenv(&#39;DEFAULT_FROM_EMAIL&#39;)</pre><pre># emailer/utils.py<br>import boto3<br>from botocore.exceptions import ClientError<br>from django.conf import settings</pre><pre>def send_ses_email(recipient, subject, body_text, body_html=None):<br>    client = boto3.client(&#39;ses&#39;, region_name=settings.AWS_REGION_NAME)<br>    try:<br>        response = client.send_email(<br>            Destination={<br>                &#39;ToAddresses&#39;: [recipient],<br>            },<br>            Message={<br>                &#39;Body&#39;: {<br>                    &#39;Text&#39;: {<br>                        &#39;Charset&#39;: &#39;UTF-8&#39;,<br>                        &#39;Data&#39;: body_text,<br>                    },<br>                    &#39;Html&#39;: {<br>                        &#39;Charset&#39;: &#39;UTF-8&#39;,<br>                        &#39;Data&#39;: body_html,<br>                    } if body_html else {},<br>                },<br>                &#39;Subject&#39;: {<br>                    &#39;Charset&#39;: &#39;UTF-8&#39;,<br>                    &#39;Data&#39;: subject,<br>                },<br>            },<br>            Source=settings.DEFAULT_FROM_EMAIL,<br>        )<br>    except ClientError as e:<br>        print(f&quot;An error occurred: {e.response[&#39;Error&#39;][&#39;Message&#39;]}&quot;)<br>        return False<br>    else:<br>        print(f&quot;Email sent! Message ID: {response[&#39;MessageId&#39;]}&quot;)<br>        return True</pre><h4>This project will be fully available on <a href="https://github.com/yokwejuste/django-aws-ses">GitHub here</a></h4><h3>Conclusion</h3><p>I thoroughly enjoyed working with AWS services to enhance the capabilities of Django applications. The versatility and robustness of AWS tools have made this project not only successful but also a great learning experience. As we continue to explore and integrate AWS services into our future projects, I am excited about the potential to innovate and optimize our applications further. For more insights and updates on upcoming projects utilizing AWS, please visit <a href="https://yokwejuste.me/">my website</a> and follow my social media channels. Let’s stay connected and push the boundaries of what we can achieve with AWS and Django. Stay tuned for more!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e50360743c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do you know about event driven architecture?]]></title>
            <link>https://yokwejuste.medium.com/do-you-know-about-event-driven-architecture-247646180177?source=rss-5e3e47c9d7ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/247646180177</guid>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[architectural-design]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Steve Yonkeu]]></dc:creator>
            <pubDate>Thu, 11 Apr 2024 08:02:44 GMT</pubDate>
            <atom:updated>2024-04-11T08:02:44.665Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vz4oa7_-W1Jg64EEg066ng.png" /><figcaption>understanding event driven architecture</figcaption></figure><p>Everyday a numerous number of applications are deployed, servers changed, architecture changes too. In this ever-evolving landscape of software development, architectures that support dynamic, real-time applications are increasingly in high demand. Among these, Event-Driven Architecture (EDA) stands out for its ability to facilitate highly responsive, scalable, and loosely coupled systems. This architecture style has gained prominence among world-leading companies, such as Netflix, Twitter, and Amazon, for its significant role in enabling real-time data processing, microservices communication, and the seamless handling of asynchronous events. Imagine a world where systems don’t wait around for instructions, but instead react dynamically to the ever-changing tide of events. This is the essence of Event-Driven Architecture (EDA), a paradigm shift that’s transforming software development.</p><h3>The Essence of Event-Driven Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*2gpJxiuTc3xEvcrOQfcl1Q.gif" /><figcaption>how event driven architecture works.</figcaption></figure><p>Event-Driven Architecture revolves around the production, detection, consumption, and reaction to events. An event is a significant change in state, or an update, that something of interest has occurred within the system. EDA is designed to respond to these events asynchronously, allowing systems to react in real time without waiting for a response. This architecture comprises three main components: event producers, event routers (or brokers), and event consumers. Together, they create a dynamic environment where services can operate independently, improving system resilience and flexibility.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*ejCZxKKcJblYn6sJ482cQg.gif" /><figcaption>traffic</figcaption></figure><p>Some of us might not be used to the jargon to above, but I got you on this. Let’s explore some life scenarios where an EDA can be experienced.</p><ol><li>Imagine you’re running a restaurant kitchen. Instead of the chefs constantly asking the waiter “Are there any orders?”, the waiter simply shouts, “Order up!” whenever a new order comes in. This is a simple example of how an EDA works. EDA mimics a busy kitchen where events (like “Order up!” shouts) signify important occurrences, such as user actions or system changes. Producers generate these events without awaiting responses, similar to waiters. Consumers, akin to chefs, react to these events, facilitated by a messaging system that distributes events, ensuring efficient communication and responsiveness across different parts of the system. This architecture enhances flexibility, scalability, and real-time processing capabilities.</li><li>Imagine a car-based EDA, cars on a highway act as producers, broadcasting signals like lane changes or sudden brakes as events. Other cars, traffic systems, and emergency vehicles serve as consumers, reacting to these signals through a messaging system akin to airwaves or the road itself. This setup enhances safety by enabling quick reactions to avoid accidents, improves efficiency and traffic flow, allows for scalability by accommodating more cars without disruption, and ensures flexibility with diverse vehicle interactions. This analogy exemplifies EDA’s dynamic and responsive nature in real-time situations.</li><li>In a tag game analogy for EDA, the person tagging acts as the event producer, announcing “tagged!” without awaiting a reply. The others, as event consumers, react by running away, with the air serving as the messaging system to broadcast the “tagged!” alert. This setup illustrates EDA’s benefits: fast reactions to keep the game lively, independent actions allowing players to strategize spontaneously, and adaptability to include new players at any time. This simple playground scenario captures EDA’s essence — responding to events in a flexible, dynamic system.</li></ol><h3>Success Stories of Event-Driven Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*_OI1q_NW40Cncruq7LktHA.gif" /><figcaption>dancing alien</figcaption></figure><p>Several global companies have successfully implemented EDA to enhance their operations and service offerings. For instance:</p><ul><li><strong>Netflix:</strong><br>Netflix has adeptly implemented Event-Driven Architecture (EDA) to orchestrate its vast, distributed microservices ecosystem. This architecture facilitates the seamless real-time processing of data crucial for personalizing user experiences across millions of devices worldwide. By leveraging EDA, Netflix can dynamically adjust its content recommendations, manage streaming quality in real-time, and swiftly handle changes in user preferences or system demands. This approach not only enhances user satisfaction through personalized viewing experiences but also optimizes resource utilization across Netflix’s global infrastructure.</li><li><strong>Twitter:</strong><br>Twitter employs an event-driven model to efficiently manage the massive flow of tweets and social interactions generated by its users every second. This model enables Twitter to ensure that updates, notifications, and tweets are delivered in a timely manner, despite the enormous volume of data. The use of EDA allows Twitter to filter, sort, and distribute this information effectively, ensuring that users receive relevant content and notifications instantaneously. This capability is crucial for maintaining the platform’s relevance and responsiveness, contributing significantly to its user engagement and satisfaction.</li><li><strong>Amazon:</strong><br>Amazon incorporates Event-Driven Architecture into its e-commerce platform to excel in real-time order processing, inventory management, and customer notifications. EDA enables Amazon to instantly update inventory levels, process orders as soon as they’re placed, and communicate with customers about their order status, all in real-time. This system is key to Amazon’s ability to provide a seamless shopping experience, from product discovery to delivery. By implementing EDA, Amazon can scale its operations efficiently, manage millions of products, and handle the dynamic nature of online shopping, ensuring customer satisfaction and operational excellence.</li></ul><h3>When to Use Event-Driven Architecture</h3><p>Event-Driven Architecture shines in scenarios where applications or systems require real-time responsiveness, flexibility, and scalability. Here are a few situations where EDA is particularly beneficial:</p><ul><li><strong>Real-time Data Processing</strong>: Applications that require immediate processing of data, such as financial trading platforms or online gaming systems, benefit from EDA’s capacity to handle data streams efficiently.</li><li><strong>Microservices Communication</strong>: EDA supports loosely coupled microservices, enabling them to communicate and function independently, which is crucial for complex, distributed applications.</li><li><strong>Asynchronous Workflows</strong>: Systems that involve long-running, asynchronous tasks can leverage EDA to improve performance and user experience by processing tasks in the background.</li><li><strong>Complex Event Processing</strong>: In scenarios involving the analysis of multiple events to detect patterns, EDA facilitates the aggregation, filtering, and analysis of event streams in real time.</li></ul><h3>When Not to Use Event-Driven Architecture</h3><p>While EDA offers significant advantages, it is not suitable for all scenarios. Here are situations where an alternative architecture might be more appropriate:</p><ul><li><strong>Simple, Monolithic Applications</strong>: For applications with straightforward workflows and minimal real-time data processing, a monolithic architecture might be simpler and more cost-effective.</li><li><strong>Low Latency Critical Systems</strong>: While EDA supports real-time processing, the inherent latency in propagating events through brokers might not meet the strict latency requirements of some systems.</li><li><strong>Limited Development Resources</strong>: Small teams or projects with limited expertise in asynchronous programming and distributed systems may struggle with the complexity of EDA.</li></ul><h3>Grab this</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*LFIcpkQMbBsGslmhrfTuNQ.gif" /><figcaption>Micheal Jackson with popcorn</figcaption></figure><p>Event-Driven Architecture (EDA) is a dynamic and responsive design paradigm embraced by leading companies like Netflix, Twitter, and Amazon to enhance real-time data processing, system flexibility, and user engagement. By leveraging events, producers, consumers, and messaging systems, EDA facilitates scalable, loosely coupled, and efficient systems. Despite its complexity and testing challenges, EDA’s benefits in scalability, real-time responsiveness, and flexibility make it a powerful choice for modern, distributed applications.</p><h3>Let’s wrap up</h3><p>GIF</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/0*CvuVrephvwzDSjDS.gif" /><figcaption>man falling in the swimming pool.</figcaption></figure><p>EDA offers a powerful paradigm for building responsive, scalable, and flexible systems. Its adoption by industry giants like Netflix, Twitter, and Amazon speaks volumes about its potential to handle complex, real-time data and operations. However, the decision to implement EDA should be weighed against the system’s requirements, organizational capabilities, and potential challenges. When appropriately applied, EDA can transform the way businesses operate, enabling them to thrive in the fast-paced, data-driven world of today.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=247646180177" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Atom Shutdown]]></title>
            <link>https://faun.pub/the-atom-shutdown-44a615a9ff28?source=rss-5e3e47c9d7ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/44a615a9ff28</guid>
            <category><![CDATA[shutdown]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[atom]]></category>
            <category><![CDATA[wrong]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Steve Yonkeu]]></dc:creator>
            <pubDate>Sat, 11 Jun 2022 12:28:18 GMT</pubDate>
            <atom:updated>2022-06-11T12:28:18.741Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*OFt9IQapN87wTstn.png" /></figure><p>Developers keep on doing it great and breaking through different levels everyday, with their logic , algorithm and code, all together with an IDE or text editor, miracles are performed. An IDE? Ouff! I guess you’ll ask me what is it? Stay back and don’t be scared.</p><h3>What is an IDE ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/0*rUAjcLtfWxDrdCjH.gif" /></figure><p>An IDE also known as An Integrated Developer Environment is a software suite that consolidates basic tools required to write and test software thus making work easy by providing facilities such as a source code editor, build automation tools and a debugger to programmers for software development. We might know of some few IDE. Below are some of the mostly used IDE in 2022:</p><ul><li>Eclipse: Supports C, C++, Perl, Python, Ruby, PHP, Java and others. …</li><li>NetBeans: Supports Java, PHP, JavaScript, C, C++, Python, Ruby, and more. …</li><li>Komodo IDE: Supports Perl, PHP, Python, Tcl, JavaScript, Ruby, and more. …</li><li>Aptana: Supports HTML, JavaScript, CSS, AJAX and others through plugins.</li><li>VScode: All in one</li><li>Atom: Best figuring when it comes to web.</li><li>JetBrains IDE: made for all.</li><li>Vim: Terminal text editor mostly for Unix and Linux base operating systems</li></ul><h3>What is a text editor</h3><p>As compare to an IDE, a text editor is simpler, we can define it as a software used to edit code with some restricted functions such as dynamic typing.</p><p>NOTE: As contrast to these two, text editor is limited as compare to IDE. but some text editors such as Atom or VSCode with the use of some good extension can be made IDEs.</p><p>OUPPS : Did I just mention <a href="https://atom.io/">Atom</a> ? Unfortunately this text editor is to be mourn now. Let&#39;s dicuss.</p><h3>The Atom Shutdown</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*-2A0HGzDZh27gfF9.gif" /></figure><p>As stated in this <a href="https://github.blog/2022-06-08-sunsetting-atom/">article</a> on github blog released on the 8th June 2022 justifying the shutdown of the Atom IDE and all projects linked to this organisation by December 15, 2022.</p><h4>Reasons</h4><p>GitHub, the company (now owned by Microsoft) behind Atom, announced the “sunsetting” of Atom today. “Atom has not had significant feature development for the past several years,” the company said, “though we’ve conducted maintenance and security updates during this period to ensure we’re being good stewards of the project and product. As new cloud-based tools have emerged and evolved over the years, Atom community involvement has declined significantly.” GitHub reason for Sunsetting atom is as follows:</p><pre>Atom has not had significant feature development for<br>the past several years, though we’ve conducted maintenance<br> and security updates during this period to ensure we’re being <br>good stewards of the project and product.<br> As new cloud-based tools have emerged and evolved <br>over the years, Atom community involvement has declined<br>significantly. As a result, we’ve decided to sunset Atom so we <br>can focus on enhancing the developer experience <br>in the cloud with GitHub Codespaces.</pre><h3>Conclusion</h3><p>The fact Atom is sunsetting doesn’t means it might not figure out in some months or year to come but after the shutdown it will be available at atom.io and since it is open source we can contribute to it and may be, be the one that will solve the issues linked to this.</p><p>To get more content from m blog you can subscribe to the mail list above just by inputting your email. Thanks for the attention!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*NRkIJuASyOsoXJq8.png" /></figure><h4>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇</h4><h4>🚀Developers: Learn and grow by keeping up with what matters, <a href="https://faun.to/8zxxd">JOIN FAUN.</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44a615a9ff28" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/the-atom-shutdown-44a615a9ff28">The Atom Shutdown</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Doing maths in CSS]]></title>
            <link>https://faun.pub/doing-maths-in-css-8e71a35882f6?source=rss-5e3e47c9d7ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e71a35882f6</guid>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[js]]></category>
            <dc:creator><![CDATA[Steve Yonkeu]]></dc:creator>
            <pubDate>Tue, 01 Mar 2022 11:15:32 GMT</pubDate>
            <atom:updated>2022-03-01T11:15:32.901Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e3X6L3SyVrY2LGef" /></figure><p>Going through the web dev journey is so awesome. I decided to do something new this time around! started a new series where I’ll be doing things in CSS and was previously done in javascript. Take a deep breath, and released all the stress. Chill now 🥲😂. Let’s dive in.</p><p>Introduction<br>From a zero to hero web dev journey, CSS in full is Cascading Style Sheets. Oh, that sounds great but this is not a cascade here we’re to talk about. CSS is basically made to give some prettiness to our old boring HTML by describing how the HTML tags can be displayed depending on phone sizes, events and triggers.</p><h3><strong>What is the use of CSS?</strong></h3><p>As said before, it names Cascading Style Sheets(CSS) brings more sense to our life which was boring with simple and normal HTML. Below are some points on which CSS makes it great.</p><p>- Height<br>- Font size<br>- Color<br>- Border<br>- Background Color</p><p>CSS is made up of 3 parts: A selector, A Property and A value<br>In case you feel bored using the old conventional self-identified CSS, give me your hand let’s have a walk.</p><h3><strong>CSS Frameworks</strong></h3><p>1. Bootstrap<br>2. Tailwind CSStailwindcss.com<br>3. Foundation<br>4. Bulma<br>5. Skeleton<br>6. UIkit.<br>7. Milligram.<br>8. Pure.<br>9. Tachyons.<br>The Calc function<br>The calc() CSS function lets you perform calculations when specifying CSS property values. It can be used anywhere a &lt;length&gt;, &lt;frequency&gt;, &lt;angle&gt;, &lt;time&gt;, &lt;percentage&gt;, &lt;number&gt;, or &lt;integer&gt; is allowed.<br>!<br>Using the basic math operators( +, /, — and x) and CSS variables, brings more taste to our journey. Below are some examples of its implementation.</p><p>Using addition width: calc(1px — 100%); Using subtraction width: calc(100% — 30px); Using multiplication width: calc(2em * 5); Using CSS variables width: calc(var( — variable-width) + 20px);<br>In real-life demo</p><p><strong>The min() function</strong><br>Takes an undefined number of arguments and makes choices between these to get the smallest value. In other words, it lets you set the smallest (most negative) value from a list of comma-separated expressions as the value of a CSS property value.</p><p>div {<br> background-color: yellow;<br> height: 100px;<br> width: min(50%, 300px, 500px, 80px, 120px);<br> }<br>The max() function<br>As the min() function, it also takes a list of arguments as values. But unlike the min() it targets the larger value of the list.</p><p>p {<br> fontsize: 24px;<br> width: max(50%, 300px, 500px, 80px, 120px);<br> }<br>Bonus: The CSS var() function<br>Ideal to set values of variables in CSS for later use and help in respecting the DRY principle which states Don’t Repeat Yourself.<br>CSS variables have access to the DOM, which means that you can create variables with local or global scope, change the variables with JavaScript, and change the variables based on media queries.</p><p>:root {<br> — main-color: #1e90ff;<br> — bg-color: #ffffff;<br>}<br>body { <br> background-color: var( — main-color); <br> }</p><p>h2 {<br> border-bottom: 2px solid green; <br> }</p><p>.container {<br> color: #1e90ff;<br> background-color: #ffffff;<br> padding: 15px;<br> }<br>#main{</p><p>}</p><p>button {<br> background-color: #ffffff;<br> color: #1e90ff;<br> border: 1px solid var( — bg-color);<br> padding: 5px;<br>}</p><h3><strong>Conclusion</strong></h3><p>For some small screen sizes to divide equally when style, the calc() can be ideal. In case comparison comes in, the min() and max() functions are the big guys who got our backs. <a href="https://yokwejuste.live/doing-maths-in-css">https://yokwejuste.live/doing-maths-in-css</a></p><figure><a href="https://faun.to/bP1m5"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BCiLLad3dvZLwBa-B5cAVQ.png" /></a></figure><p>Join FAUN: <a href="https://faun.to/i9Pt9"><strong>Website</strong></a><strong> </strong>💻<strong>|</strong><a href="https://faun.dev/podcast"><strong>Podcast</strong></a><strong> </strong>🎙️<strong>|</strong><a href="https://twitter.com/joinfaun"><strong>Twitter</strong></a><strong> </strong>🐦<strong>|</strong><a href="https://www.facebook.com/faun.dev/"><strong>Facebook</strong></a><strong> </strong>👥<strong>|</strong><a href="https://instagram.com/fauncommunity/"><strong>Instagram</strong></a><strong> </strong>📷|<a href="https://www.facebook.com/groups/364904580892967/"><strong>Facebook Group</strong></a><strong> </strong>🗣️<strong>|</strong><a href="https://www.linkedin.com/company/faundev"><strong>Linkedin Group</strong></a><strong> </strong>💬<strong>|</strong> <a href="https://faun.dev/chat"><strong>Slack</strong></a> 📱<strong>|</strong><a href="https://thechief.io/"><strong>Cloud Native</strong> <strong>News</strong></a><strong> </strong>📰<strong>|</strong><a href="https://linktr.ee/faun.dev/"><strong>More</strong></a><strong>.</strong></p><p><strong>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e71a35882f6" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/doing-maths-in-css-8e71a35882f6">Doing maths in CSS</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why does Chrome use so much RAM ?]]></title>
            <link>https://faun.pub/why-does-chrome-use-so-much-ram-6e9b8fa2668?source=rss-5e3e47c9d7ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e9b8fa2668</guid>
            <category><![CDATA[edge]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[chrome]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[chrome-extension]]></category>
            <dc:creator><![CDATA[Steve Yonkeu]]></dc:creator>
            <pubDate>Mon, 21 Feb 2022 10:55:07 GMT</pubDate>
            <atom:updated>2022-02-21T10:55:07.947Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M139WBYdbwTR3ADgoVlZMw.png" /></figure><h3>Introduction</h3><p>Browsers are the best way chosen to reach the World Wide Web nowadays. Following this, below is an illustration of people’s browser choices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*taf4czX9DnxeA08y" /></figure><p>Google, is one of the most appreciated and target institutes by the world developers community. The second most used browser after <a href="https://www.opera.com/download">Opera</a> chrome has been doing great with special features known by all. Before diving dip in our target, let’s take a step aside and know first where we are found.</p><p>It may sound confusing talking about such a topic when you don’t know what we are about to jump into.</p><h3>What’s is a browser?</h3><p>In simple terms, a browser is software that allows a computer user to find and view information on the Internet. Web browsers interpret the HTML tags in downloaded documents and format the displayed data according to a set of standard style rules.<br>For several years browsers have been created, updated and reinvented. Each of these with different from the other and each with a particular characteristic making it unique to the users.<br>Below is the most used browser in 2022:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jMiIMm_uy1zJzIqS" /></figure><h3>Why is chrome the people’s choice?</h3><p>Let’s talk and defend the fact that chrome is one of the most used browsers since and still trending in 2022. Let’s jump in and get more knowledge about it.</p><p>The second most chosen browser, chrome is special with its fast, simplicity, security, privacy, customization, SignIn methods and Auto password saving.<br>Chrome is designed to be the fastest web browser. With one click, it loads web pages, multiple tabs, and applications with lightning speed. Chrome is fitted with V8, a faster and more powerful JavaScript engine. Chrome also loads web pages faster by using the WebKit open-source rendering engine.<br>Chrome is clean, easy, keeps you safe, provides the ability to shape, ameliorate and change it in their own way, in other words, chrome gives a full customization option.<br>The so awaited question…</p><h3>Why is chrome this way slow?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*niLbmKdReW3yNeG1" /></figure><p>Using chrome can sometimes seems tedious, the reason behind this is as follows. Chrome splits every tab, plugin and extension into its own process. This leads to higher RAM usage since it has to duplicate some tasks for every tab. Also, chrome’s prerendering feature can cause higher memory usage. Certain extensions websites may also leak memory causing higher RAM usage. And, of course, the more tabs, extensions and plugins you have open, installed and running, the more memory Chrome is going to use.</p><h3>How Does Google Chrome Manage RAM?</h3><p>As said above chrome utilises memory and consumes a lot of it. Chrome should normally manage the memory in order to offer stability and a faster speed which it fails to do often. The reasons below this are as follows.<br>The main reason for running each process separately is stability. By running each process separately, if one crashes, the entire browser remains stable. Sometimes, a plugin or extension will fail, requiring you to refresh the tab. If every tab and extension was run in the same process, you might have to restart the whole browser instead of a single tab.<br>The downside is that some processes that single-process browsers can share between tabs must be replicated for each tab in Chrome. Splitting into multiple processes comes with security benefits, too, similar to sandboxing or using a virtual machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*pDYy9yvJlRs7Tc0v" /></figure><p>when Chrome runs on a device with fewer resources, Chrome will consolidate into single processes to reduce the overall memory footprint. Using a single process allows for a reduction in resources but comes at the risk of browser instability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*yP9w1gkx_anpi37k" /></figure><p>Chrome is aware of how much memory it is using. It isn’t mindlessly eating every bit of RAM it can find. Chrome limits the number of processes it can start depending on your system hardware. It is an internal limit, but when reached, Chrome switches to running tabs from the same site in a single process.</p><h3>How to speed up chrome?</h3><p>Upon all these memory misuses, chrome can be sped up to a higher level and optimise memory for this matter. And guess what, I compiled some different ways in which this can be accomplished. Stay tuned and follow me towards the end of this journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*zIRqxjJsXFOAMkTN" /></figure><p>This poor speed and memory utilisation with Chrome can be solved with some extensions and plugins as shown below.<br>Using the chrome task manager similar to the windows task manager, we can visualise the use of memory for each opened tab.<br>Plugins like SimpleExtManager add a small dropdown box alongside your extension tray. Then it is one click on and off for all extensions. Available in chrome store <a href="https://chrome.google.com/webstore/detail/simpleextmanager/kniehgiejgnnpgojkdhhjbgbllnfkfdk">here</a>.</p><p>The <a href="https://chrome.google.com/webstore/detail/the-great-discarder/jlipbpadkjcklpeiajndiijbeieicbdh">Great Discarder</a>, allows you to customize the frequency Chrome discards unused tabs. Chrome discards tabs when they’re not in use to save memory. With The Great Discarder, you can change the length of time, specify tabs not to discard, and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*roB2agRVoWhTNe18" /></figure><h3>Conclusion</h3><p>What we have to keep in mind now is, Chrome is the dominant browser globally. Alternative browsers like Firefox and Opera can use a similar amount of memory as Chrome, so switching isn’t always the best option. Also, each browser is unique and perfect in accomplishing the task it was made for.</p><p><a href="https://hashnode.com/n/chrome">#chrome</a> <a href="https://hashnode.com/n/chrome-extension">#chrome-extension</a> <a href="https://hashnode.com/n/browsers">#browsers</a> <a href="https://hashnode.com/n/opensource">#opensource</a> <a href="https://hashnode.com/n/microsoft-edge">#microsoft-edge</a></p><figure><a href="https://faun.to/bP1m5"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BCiLLad3dvZLwBa-B5cAVQ.png" /></a></figure><p>Join FAUN: <a href="https://faun.to/i9Pt9"><strong>Website</strong></a><strong> </strong>💻<strong>|</strong><a href="https://faun.dev/podcast"><strong>Podcast</strong></a><strong> </strong>🎙️<strong>|</strong><a href="https://twitter.com/joinfaun"><strong>Twitter</strong></a><strong> </strong>🐦<strong>|</strong><a href="https://www.facebook.com/faun.dev/"><strong>Facebook</strong></a><strong> </strong>👥<strong>|</strong><a href="https://instagram.com/fauncommunity/"><strong>Instagram</strong></a><strong> </strong>📷|<a href="https://www.facebook.com/groups/364904580892967/"><strong>Facebook Group</strong></a><strong> </strong>🗣️<strong>|</strong><a href="https://www.linkedin.com/company/faundev"><strong>Linkedin Group</strong></a><strong> </strong>💬<strong>|</strong> <a href="https://faun.dev/chat"><strong>Slack</strong></a> 📱<strong>|</strong><a href="https://thechief.io/"><strong>Cloud Native</strong> <strong>News</strong></a><strong> </strong>📰<strong>|</strong><a href="https://linktr.ee/faun.dev/"><strong>More</strong></a><strong>.</strong></p><p><strong>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e9b8fa2668" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/why-does-chrome-use-so-much-ram-6e9b8fa2668">Why does Chrome use so much RAM 😭?</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best way to break tag in HTML]]></title>
            <link>https://faun.pub/best-way-to-break-tag-in-html-9b573813f641?source=rss-5e3e47c9d7ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b573813f641</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[webdev]]></category>
            <dc:creator><![CDATA[Steve Yonkeu]]></dc:creator>
            <pubDate>Wed, 16 Feb 2022 19:28:24 GMT</pubDate>
            <atom:updated>2022-02-16T19:28:24.922Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction😀</h3><p>Once upon a time… 😂 No worry guys, I won’t narrate a boring story. For each and everyone going into the web development journey, the best roadmap should include HTML as the primary item.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*4BSsQa2f3nhGG5yJ.png" /></figure><h3>What is HTML?🤔</h3><p>HTML in its full form, Hypertext Markup Language is the basic language when it comes to web development. Officially released in the 90s and nowadays we are up to version 5 (HTML 5). HTML is mainly for web formating and creating pages that are displayed on the world wide web.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*2Vwn7va2eAwVsVm6.gif" /></figure><h3>Transitioning through HTML versions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sg0PhjX1McevwV2P.gif" /></figure><p>Going through Html versions we have versions 4 and 5 as trending nowadays.</p><h3><strong>Main differences between HTML 4 and 5</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iG0yGowBF6xr6rdD.png" /></figure><p>The main differences are as seen in the image above. Last but not least is the Doctype tag at the beginning of HTML5 pages.</p><p>HTML5 Structure</p><p>COPY</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>        &lt;head&gt;<br>             &lt;title&gt;HTML5 basic structure.&lt;/title&gt;<br>       &lt;/head&gt;<br>       &lt;body&gt;<br>             &lt;header&gt; &lt;/header&gt;<br>             &lt;/header&gt;<br>             &lt;nav&gt; &lt;/nav&gt;<br>             &lt;article&gt; &lt;/article&gt;<br>            &lt;footer&gt; &lt;/footer&gt;<br>      &lt;/body&gt;<br>&lt;/html&gt;</pre><p>HTML4 Structure</p><p>COPY</p><pre>&lt;html&gt;<br>       &lt;head&gt;<br>             &lt;title&gt;HTML5 basic structure.&lt;/title&gt;<br>       &lt;/head&gt;<br>       &lt;body&gt;<br>             &lt;div class=&quot;header&quot;&gt; &lt;/div&gt;<br>             &lt;div id=&quot;new&quot;&gt; &lt;/div&gt;<br>      &lt;/body&gt;<br> &lt;/html&gt;</pre><h3>Difference between &lt;br&gt;, &lt;br/&gt; or &lt;br /&gt;</h3><p>Let’s work on this to reduce our items to be differentiated to 2. As concerned with &lt;br/&gt; and &lt;br\&gt; they are the same representation just the gap which has a minor effect on the code output.</p><h3>&lt;br&gt; 🆚 &lt;br /&gt;</h3><ol><li>Main Language of use :<br>In XML(Extended Markup Language) all tags can be self-enclosed like this &lt;tag-name \&gt;. That being said &lt;br \&gt; is the syntax for break statements in XHTML and XML.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/0*cQwI9WVzedDZFkuC.png" /></figure><ol><li>HTML Versions:<br>In HTML earlier versions &lt;br&gt; was not used instead the break statement in use was the borrowed break &lt;br /&gt; from XML.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*sHgpp55D7DCDMtGn.png" /></figure><ol><li>Compatibility: Some browsers interpret the &lt;br&gt; and &lt;br /&gt; in different manners.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*zDZDW5nMjJJEBq3Y.png" /></figure><ul><li>Conclusion</li></ul><p>Before jumping into or going deeper into your web dev journey, revise all the new features and special tags that are always coming up.</p><figure><a href="https://faun.to/bP1m5"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BCiLLad3dvZLwBa-B5cAVQ.png" /></a></figure><p>Join FAUN: <a href="https://faun.to/i9Pt9"><strong>Website</strong></a><strong> </strong>💻<strong>|</strong><a href="https://faun.dev/podcast"><strong>Podcast</strong></a><strong> </strong>🎙️<strong>|</strong><a href="https://twitter.com/joinfaun"><strong>Twitter</strong></a><strong> </strong>🐦<strong>|</strong><a href="https://www.facebook.com/faun.dev/"><strong>Facebook</strong></a><strong> </strong>👥<strong>|</strong><a href="https://instagram.com/fauncommunity/"><strong>Instagram</strong></a><strong> </strong>📷|<a href="https://www.facebook.com/groups/364904580892967/"><strong>Facebook Group</strong></a><strong> </strong>🗣️<strong>|</strong><a href="https://www.linkedin.com/company/faundev"><strong>Linkedin Group</strong></a><strong> </strong>💬<strong>|</strong> <a href="https://faun.dev/chat"><strong>Slack</strong></a> 📱<strong>|</strong><a href="https://thechief.io/"><strong>Cloud Native</strong> <strong>News</strong></a><strong> </strong>📰<strong>|</strong><a href="https://linktr.ee/faun.dev/"><strong>More</strong></a><strong>.</strong></p><p><strong>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b573813f641" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/best-way-to-break-tag-in-html-9b573813f641">Best way to break tag in HTML</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter 2.10 Updates ]]></title>
            <link>https://yokwejuste.medium.com/flutter-2-10-updates-37b6d7c7a599?source=rss-5e3e47c9d7ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/37b6d7c7a599</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Steve Yonkeu]]></dc:creator>
            <pubDate>Mon, 07 Feb 2022 20:31:35 GMT</pubDate>
            <atom:updated>2022-02-07T20:31:35.287Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Let’s talk about the programmers’ bridge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*cAchZ4ufX4VlBWe6.png" /></figure><p>From the report of currently built projects, Flutter is chosen as the best tool to build multi cross platforms app. Flutter came in involving itself in every field from mobile app development both iOS and android going through web apps to desktop apps and more. Google team did great once more in building such an awesome product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*AOPh_XlpY0294K6b.jpeg" /></figure><h3>Getting deep 🍀</h3><p>From the Flutter site on the 3rd of February, a major update on flutter was made guess what it is?<br>numerous updates have been made such as on Android, iOS, Material 3 and the major thing made during this is the windows support and stability with minors like VSCode improvement on dynamic typing.<br>Permit me to hold your hand and take you through this journey from major to minor updates.</p><ul><li><strong>Windows and Flutter</strong></li></ul><p>Windows support arrives with Flutter 2.10 and in the coming months, you’ll hear more from Flutter on completing stable support for macOS and Linux, making the full set of desktop, web, and mobile platforms available for your production Flutter apps.<br>Google has been working on Flutter for desktop apps support but all(macOS, Linux and Windows) were in beta. Windows is the first to reach stability and it is of recent.<br>Even though this is the first time a desktop Flutter platform has been given the stable label, Flutter already has a foothold on desktop, especially on desktop Linux.</p><ul><li><strong>Performance improvements</strong></li></ul><p>This release of Flutter includes initial support for dirty region management provided by Flutter community member Knopp. He’s enabled partial repaints for a single dirty region on iOS/Metal. This change reduced 90th and 99th percentile rasterization times on a few benchmarks by an order of magnitude, and reduced GPU utilization on these benchmarks from more than 90% to less than 10%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*h2eR_AP8bpUPlqyJ.png" /></figure><p>We expect to bring the benefits of partial repaints to other platforms in future releases.<br>In the Flutter 2.8 release, we landed our own internal picture recording format. Now in Flutter 2.10, we’ve started building optimizations with it. As an example, one common case of opacity layers is now implemented much more efficiently. Even in the worst case, frame raster times in our benchmarks fell to under a third of their previous value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*0t2rhaSJb4ngkIoq.png" /></figure><p>We expect this optimization to expand to cover more cases as we continue developing the picture recording format.<br>In profile and release modes, Dart code is compiled ahead of time to native machine code. The key to the efficiency and small size of this code is a whole program type flow analysis that unlocks many compiler optimizations and aggressive tree-shaking. However, as the type flow analysis must cover the whole program, it can be somewhat expensive. This release includes a faster implementation of type flow analysis. Overall build time for the Flutter app in our benchmarks fell by ~10%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*_nmBOSAir5Ak4rXH.png" /></figure><p>As always, performance enhancements, reduced memory usage, and reduced latency are a priority for the Flutter team. Look forward to furthering improvements in future releases.</p><ul><li><strong>iOS updates</strong></li></ul><p>A few updates were made to the iOS part too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*rJzKxq7jxb48EbiO" /></figure><p>Stability has been brought to the camera plugin. The iOS 64-bit architecture has got a new feature to reduce memory usage.</p><ul><li><strong>Android updates</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*eqc8if6ptvlLlMvn.png" /></figure><p>A number of updates have been made though to the android parts. Flutter defaults to support the latest version of Android, version 12 (API level 31). In case you need to switch to flutter 2.10, then try considering changing the SDK version to 31.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/0*K9zO7pMyGcF0hkQ0.png" /></figure><p>much more updates are on their way! flutter will never stop surprising us.</p><ul><li><strong>Web Updates</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*L635K0zY-HPLokd4.gif" /></figure><p>This release contains some improvements on the web as well. For example, in previous releases, when scrolling to the edge of a multiline TextField on the web, it wouldn’t scroll properly. This release introduces edge scrolling for text selection: when the selection moves outside of the text field, the field scrolls to view the scroll extent. This new behaviour is available for both web and desktop apps.<br>In addition to that, improvements have been made to the link widget.</p><ul><li><strong>Material 3</strong> This release is the beginning of the transition to Material 3, which includes the ability to generate an entire colour scheme from a single seed colour. With any colour, you can construct an instance of the new ColorScheme type:</li></ul><pre>final lightScheme = ColorScheme.fromSeed(seedColor: Colors.green);<br>final darkScheme = ColorScheme.fromSeed(seedColor: Colors.green, brightness: Brightness.dark);</pre><p>There’s also a new colorSchemeSeed parameter to the ThemeData factory constructor that allows you to generate the theme’s colour scheme:</p><pre>final lightTheme = ThemeData(colorSchemeSeed: Colors.orange, …);<br>final darkTheme = ThemeData(colorSchemeSeed: Colors.orange, brightness: Brightness.dark, …);</pre><p>Last but not least, 1,028 new Material icons have been added to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*D0F3y-UeXEc97TBA" /></figure><ul><li><strong>VSCode improvements</strong> The Visual Studio Code extension for Flutter has also gotten a number of enhancements, including colour previews in more places in your code and a colour picker that updates your code for you.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/0*d6AjnAWhkiCtrs_C" /></figure><h3>Conclusion</h3><p>Flutter is the best when it comes to cross-app platform development. #flutterIsTheBest.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37b6d7c7a599" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why is Linux considered the best of all?]]></title>
            <link>https://faun.pub/why-is-linux-considered-the-best-of-all-895c6564c01e?source=rss-5e3e47c9d7ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/895c6564c01e</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[lastest-technology-update]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Steve Yonkeu]]></dc:creator>
            <pubDate>Mon, 07 Feb 2022 16:04:17 GMT</pubDate>
            <atom:updated>2022-02-07T16:04:17.778Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1nCX5nE4_ZBVw8NmBDCJ6A.png" /></figure><p>Nothing has ever wondered me like Linux. Ready to embark on this journey?</p><h3>Introduction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7L5IU1obxDn0tViI.png" /></figure><p>Linux® is an open-source operating system (OS). An operating system is a software that directly manages a system’s hardware and resources, like CPU, memory, and storage. The OS sits between applications and hardware and makes the connections between all of your software and the physical resources that do the work.</p><h3>The Scores of Linux</h3><ul><li><strong>Security</strong> 🔒 :<br>Linux is one of the most reliable operating systems(OS). Due to the fact that Linux and Unix-based OS code is reviewed by a huge number of developers constantly, it is obvious that it has fewer security flaws. On Linux, there is no need for an anti-virus since anyone has access to the source code. This is because it is open-source and thus bugs can be fixed rapidly and easily.</li><li><strong>Privacy</strong> 😋 :<br>Some other OS frequently collects data from users and contain spy software to collect the data often, a perfect example is Windows OS. When it comes to Linux, you can literally see everything that is transmitting from your system, if you’re tech-savvy enough. Even if you’re not, there are more than tens of thousands of eyes who are looking into the source code and looking for flaws that can cause any vulnerability to the system.</li><li><strong>Portability</strong> 🛄 :<br>Portability is the ability of an application to run properly in a different platform to the one it was designed for, with little or no modification. When it comes to Linux, it is a portable operating system that supports a wide range of computer architectures.</li><li><strong>Customization</strong> ✍ :<br>From ubuntu, pearOS, Kali, Zorin going through all Linux distros, customization has been done, some making replications of Android OS interface, windows or macOS for a distro like pearOS. Added to that Linux can be run with or without UI due to all this some companies serves are based on Linux operating systems.</li><li><strong>Free </strong>👌 :<br>Unlike other OS Linux doesn’t have a token as revenue to start using. In case you use an OS like Windows, you’ll need to buy the license or use a crack version which sucks a lot. It just doesn’t feel good after a certain age when you use something unethically when there is a free better OS is available for you.</li><li><strong>System Performance</strong> 🚖:<br>Linux powered PCs are way faster than Windows. The main reason for that Linux is a lightweight system and Windows is crammed with lots of unnecessary software. A lot of systems running in the background makes your windows PCs sluggish. Another reason is, file systems are pretty organized in Linux. Files are located in chunks that are closer to each other, which makes read-write operation way faster than Windows. That’s the reason, most cloud systems run on Linux. Even Microsoft runs Linux to run Azure.</li><li><strong>Error message</strong> ❌ :<br>Oops, something when wrong 😹.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*db1vpmkcMBL0y-Bl.png" /></figure><p>Oh, shi*t windows users are tired of this nonsense message I’m sure and worst of all no way to sort the problem out. Unlike Linux which is more organised and easy to solve a problem.</p><ul><li><strong>Linux is multiplatform </strong>😲:<br>From Super Computers to Game Consoles, Smart TVs, Smartwatches, Car infotainment systems, Flight entertainment systems, Self-driving cars, Nuclear Submarines and going through many more. Great institutions like NASA heavily relies on Linux for data transmission from satellites and telescopes.</li><li><strong>Hardware Support </strong>🤙:<br>As windows constantly make updates, it requires hardware of higher quality and your actual old PC can be incompatible with the latest windows. that’s annoying.</li></ul><h3><strong>Conclusion</strong></h3><p>Open-source is the real target, Linux is the best</p><figure><a href="https://faun.to/bP1m5"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BCiLLad3dvZLwBa-B5cAVQ.png" /></a></figure><p>Join FAUN: <a href="https://faun.to/i9Pt9"><strong>Website</strong></a><strong> </strong>💻<strong>|</strong><a href="https://faun.dev/podcast"><strong>Podcast</strong></a><strong> </strong>🎙️<strong>|</strong><a href="https://twitter.com/joinfaun"><strong>Twitter</strong></a><strong> </strong>🐦<strong>|</strong><a href="https://www.facebook.com/faun.dev/"><strong>Facebook</strong></a><strong> </strong>👥<strong>|</strong><a href="https://instagram.com/fauncommunity/"><strong>Instagram</strong></a><strong> </strong>📷|<a href="https://www.facebook.com/groups/364904580892967/"><strong>Facebook Group</strong></a><strong> </strong>🗣️<strong>|</strong><a href="https://www.linkedin.com/company/faundev"><strong>Linkedin Group</strong></a><strong> </strong>💬<strong>|</strong> <a href="https://faun.dev/chat"><strong>Slack</strong></a> 📱<strong>|</strong><a href="https://thechief.io/"><strong>Cloud Native</strong> <strong>News</strong></a><strong> </strong>📰<strong>|</strong><a href="https://linktr.ee/faun.dev/"><strong>More</strong></a><strong>.</strong></p><p><strong>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=895c6564c01e" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/why-is-linux-considered-the-best-of-all-895c6564c01e">Why is Linux considered the best of all?🤔</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The ultimate solution to typewriter animation ]]></title>
            <link>https://faun.pub/the-ultimate-solution-to-typewriter-animation-9708d607d428?source=rss-5e3e47c9d7ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/9708d607d428</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[newbie]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Steve Yonkeu]]></dc:creator>
            <pubDate>Thu, 27 Jan 2022 13:26:03 GMT</pubDate>
            <atom:updated>2022-01-27T13:26:03.181Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey buddy, for the web newbies I’ve something fun today. Let’s talk about something amazing, the Typewriter animation.</p><p>It looks like this: 👇</p><p>Happy to contribute to the OSS-Cameroon blog.</p><p>After long research, I found that it could be summarised into 4 steps:</p><h3>Step 1: Write the HTML code</h3><p>Write the HTML code to display the text.</p><pre>&lt;div class=&quot;writer&quot;&gt;<br>    &lt;div class=&quot;writer-text&quot;&gt;Happy to contribute for OSS-Cameroon blog&lt;/div&gt;<br>&lt;/div&gt;</pre><h3>Step 2: Choosing an appropriate font</h3><p>choose a monospace font type, like “Courier New”, something sans-serif too. This is to simply ensure that the animation property takes one character at a time since monospace fonts are always of equal width.</p><pre>.writer {<br>    font-family: Courier, monospace;<br>    display: inline-block;<br>}</pre><h3>Step 3: Using the CSS animation property</h3><p>This effect is being achieved by playing with the width property of our text varying it from 0 to 100% in a linear fashion.</p><p>The beautiful blinking cursor that wipes and or wipes away the text is achieved by border-color animated from solid to transparent.</p><h3>Step 4: Performing animation in a fixed number of steps and intervals</h3><p>Our focus here is the animation-timing-function property which seems like a realistic typing effect.</p><p>What am I doing here? :sweat_smile:</p><ul><li>Pushing the characters one at a time in a cool and realistic fashion.</li><li>Specifying the number of frames( steps by steps series of frames and the intervals between them).</li></ul><p>.writer-text { display: inline-block; overflow: hidden; letter-spacing: 2px; animation: typing 5s steps(30, end), blink .75s step-end infinite; white-space: nowrap; font-size: 30px; font-weight: 700; border-right: 4px solid orange; box-sizing: border-box; }</p><p>The keyframes 😅</p><pre>@keyframes typing {<br>    from { <br>        width: 0% <br>    }<br>    to { <br>        width: 100% <br>    }<br>}</pre><pre>@keyframes blink {<br>    from, to { <br>        border-color: transparent <br>    }<br>    50% { <br>        border-color: orange; <br>    }<br>}</pre><h3>Full code:</h3><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>    &lt;style&gt;<br>        .writer {<br>        font-family: Courier, monospace;<br>        display: inline-block;<br>        }<br>        .writer-text {<br>            display: inline-block;<br>            overflow: hidden;<br>            letter-spacing: 2px;<br>            animation: typing 5s steps(30, end), blink .75s step-end infinite;<br>            white-space: nowrap;<br>            font-size: 30px;<br>            font-weight: 700;<br>            border-right: 4px solid orange;<br>            box-sizing: border-box;<br>        }</pre><pre>        @keyframes typing {<br>            from { <br>                width: 0% <br>            }<br>            to { <br>                width: 100% <br>            }<br>        }</pre><pre>        @keyframes blink {<br>            from, to { <br>                border-color: transparent <br>            }<br>            50% { <br>                border-color: orange; <br>            }<br>        }<br>    &lt;/style&gt;<br>    &lt;body&gt;<br>        &lt;div class=&quot;typewriter&quot;&gt;<br>            &lt;div class=&quot;typewriter-text&quot;&gt;Twinkle, twinkle, little star.&lt;/div&gt;<br>        &lt;/div&gt;</pre><pre>    &lt;/body&gt;<br>&lt;/html&gt;</pre><h3>The result:</h3><p>Happy to contribute to the OSS-Cameroon blog.</p><h3>Conclusion 💗</h3><p>Open source is a great way to contribute to the community. Getting to know the community is a great way to contribute to the community and make things better.</p><figure><a href="https://faun.to/bP1m5"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BCiLLad3dvZLwBa-B5cAVQ.png" /></a></figure><p>Join FAUN: <a href="https://faun.to/i9Pt9"><strong>Website</strong></a><strong> </strong>💻<strong>|</strong><a href="https://faun.dev/podcast"><strong>Podcast</strong></a><strong> </strong>🎙️<strong>|</strong><a href="https://twitter.com/joinfaun"><strong>Twitter</strong></a><strong> </strong>🐦<strong>|</strong><a href="https://www.facebook.com/faun.dev/"><strong>Facebook</strong></a><strong> </strong>👥<strong>|</strong><a href="https://instagram.com/fauncommunity/"><strong>Instagram</strong></a><strong> </strong>📷|<a href="https://www.facebook.com/groups/364904580892967/"><strong>Facebook Group</strong></a><strong> </strong>🗣️<strong>|</strong><a href="https://www.linkedin.com/company/faundev"><strong>Linkedin Group</strong></a><strong> </strong>💬<strong>|</strong> <a href="https://faun.dev/chat"><strong>Slack</strong></a> 📱<strong>|</strong><a href="https://thechief.io/"><strong>Cloud Native</strong> <strong>News</strong></a><strong> </strong>📰<strong>|</strong><a href="https://linktr.ee/faun.dev/"><strong>More</strong></a><strong>.</strong></p><p><strong>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9708d607d428" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/the-ultimate-solution-to-typewriter-animation-9708d607d428">The ultimate solution to typewriter animation 💪</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>