<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Joseph Abu</title>
    <description>The latest articles on DEV Community by Joseph Abu (@abuj68663).</description>
    <link>https://dev.to/abuj68663</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1033706%2F46027987-ad82-48b4-b6bd-a64d2bc19c15.png</url>
      <title>DEV Community: Joseph Abu</title>
      <link>https://dev.to/abuj68663</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abuj68663"/>
    <language>en</language>
    <item>
      <title>python code to verify emails</title>
      <dc:creator>Joseph Abu</dc:creator>
      <pubDate>Thu, 11 May 2023 02:40:08 +0000</pubDate>
      <link>https://dev.to/abuj68663/python-code-to-verify-emails-3no8</link>
      <guid>https://dev.to/abuj68663/python-code-to-verify-emails-3no8</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import re

def is_valid_email(email):
    # regular expression pattern for email validation
    pattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'

    # match the email pattern with regular expression
    match = re.match(pattern, email)

    # if match found, return True else False
    if match:
        return True
    else:
        return False
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To use this code, simply call the is_valid_email function with the email address as a string argument. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;email = "example@email.com"
result = is_valid_email(email)

if result:
    print("Email is valid.")
else:
    print("Email is not valid.")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This code uses regular expressions to match the pattern of a valid email address. The regular expression pattern includes the following rules:&lt;/p&gt;

&lt;p&gt;The email address must start with one or more alphanumeric characters, followed by a dot, underscore, percent sign, plus sign, or hyphen. This can be repeated one or more times.&lt;br&gt;
The email address must contain the at symbol (@).&lt;br&gt;
The email address must contain one or more alphanumeric characters or hyphens, followed by a dot and two or more alphabetic characters. This can be repeated one or more times.&lt;br&gt;
By using regular expressions, this code provides a simple and efficient way to validate email addresses in Python.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to create API in django</title>
      <dc:creator>Joseph Abu</dc:creator>
      <pubDate>Wed, 10 May 2023 12:34:50 +0000</pubDate>
      <link>https://dev.to/abuj68663/how-to-create-api-in-django-26pe</link>
      <guid>https://dev.to/abuj68663/how-to-create-api-in-django-26pe</guid>
      <description>&lt;p&gt;To create an API in Django, you can follow these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Define your API endpoints: Decide what functionality your API will provide and define the endpoints accordingly. For example, you might have endpoints for retrieving data, creating new records, updating existing records, and deleting records.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Django Rest Framework: Django Rest Framework is a powerful toolkit for building APIs in Django. You can install it using pip by running the command "pip install djangorestframework".&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create serializers: Serializers are used to convert complex data types, such as models, into JSON or XML format that can be easily transmitted over the web. Create a serializer for each model that you want to expose via your API.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Define views: Views are the functions that handle incoming requests and return responses. Define a view for each endpoint in your API. Use the serializers to convert model instances into JSON or XML format.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Define URLs: URLs map incoming requests to specific views. Define a URL for each endpoint in your API. Use the Django Rest Framework's router to automatically generate URLs for your views.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Test your API: Use a tool such as Postman or curl to test your API endpoints. Make sure that they are returning the expected data and that error handling is working correctly.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Secure your API: Depending on the sensitivity of your data, you may need to secure your API using authentication and/or authorization. Django Rest Framework provides built-in support for various authentication methods, such as token-based authentication and OAuth2.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Document your API: Documenting your API is important for making it easy for other developers to use. Use tools such as Swagger or Django Rest Swagger to automatically generate API documentation from your code.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;By following these steps, you can create a powerful and flexible API in Django that can be easily consumed by other applications.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Javascript logo animation</title>
      <dc:creator>Joseph Abu</dc:creator>
      <pubDate>Sat, 25 Feb 2023 13:38:16 +0000</pubDate>
      <link>https://dev.to/abuj68663/javascript-logo-animation-1ih7</link>
      <guid>https://dev.to/abuj68663/javascript-logo-animation-1ih7</guid>
      <description>&lt;p&gt;Creating logo animation is not hard, in this content i will be helping you to simplify logo animation.&lt;/p&gt;

&lt;p&gt;This is the code below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; &amp;lt;div id="logoContainer"&amp;gt;
  &amp;lt;img id="logo" src="your-logo.png" alt="Your Logo"&amp;gt;
&amp;lt;/div&amp;gt;

&amp;lt;style&amp;gt;
  #logoContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
  }

  #logo {
    width: 100px;
    height: 100px;
    animation: logoSpin 2s linear infinite;
  }

  @keyframes logoSpin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
&amp;lt;/style&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>featurerequest</category>
      <category>privacy</category>
      <category>userresearch</category>
    </item>
  </channel>
</rss>
