<?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>Forem: Ahmed Shahmir Riddo</title>
    <description>The latest articles on Forem by Ahmed Shahmir Riddo (@shahmirriddo).</description>
    <link>https://forem.com/shahmirriddo</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%2F915664%2F1ca6fc9f-68e9-468b-82f2-4900fb96acdf.png</url>
      <title>Forem: Ahmed Shahmir Riddo</title>
      <link>https://forem.com/shahmirriddo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/shahmirriddo"/>
    <language>en</language>
    <item>
      <title>Demystifying Django Model Fields: Understanding the Different Types and Their Uses</title>
      <dc:creator>Ahmed Shahmir Riddo</dc:creator>
      <pubDate>Sat, 18 Mar 2023 08:24:30 +0000</pubDate>
      <link>https://forem.com/shahmirriddo/demystifying-django-model-fields-understanding-the-different-types-and-their-uses-1647</link>
      <guid>https://forem.com/shahmirriddo/demystifying-django-model-fields-understanding-the-different-types-and-their-uses-1647</guid>
      <description>&lt;p&gt;Django is a popular web framework for building web applications using the Python programming language. One of the key features of Django is its powerful Object-Relational Mapping (ORM) system, which allows developers to define their application's data models using Python code. In this blog post, we'll take a closer look at the different types of model fields available in Django and how they can be used.&lt;br&gt;
What are Model Fields in Django?&lt;/p&gt;

&lt;p&gt;Model fields in Django are Python classes that define the data types and validation rules for the fields in a Django model. Each field corresponds to a column in the database table that represents the model. Django provides a wide range of built-in model fields that cover common data types, such as strings, integers, dates, and times, as well as more specialized data types, such as email addresses, IP addresses, and file uploads.&lt;/p&gt;

&lt;p&gt;In addition to the built-in model fields, Django also allows developers to create custom model fields, which can be used to handle data types or validation rules that are not covered by the built-in fields.&lt;br&gt;
Common Django Model Fields&lt;/p&gt;

&lt;p&gt;Let's take a look at some of the most commonly used model fields in Django:&lt;br&gt;
CharField&lt;/p&gt;

&lt;p&gt;The CharField model field is used to store strings of a fixed or variable length. It takes a max_length parameter to specify the maximum length of the string. For example:&lt;/p&gt;

&lt;p&gt;cpp&lt;/p&gt;

&lt;p&gt;from django.db import models&lt;/p&gt;

&lt;p&gt;class User(models.Model):&lt;br&gt;
    name = models.CharField(max_length=100)&lt;br&gt;
    email = models.CharField(max_length=200)&lt;/p&gt;

&lt;p&gt;IntegerField&lt;/p&gt;

&lt;p&gt;The IntegerField model field is used to store integer values. It can take optional parameters to specify the minimum and maximum values that are allowed. For example:&lt;/p&gt;

&lt;p&gt;cpp&lt;/p&gt;

&lt;p&gt;from django.db import models&lt;/p&gt;

&lt;p&gt;class Book(models.Model):&lt;br&gt;
    title = models.CharField(max_length=200)&lt;br&gt;
    year_published = models.IntegerField(min_value=1900, max_value=2023)&lt;/p&gt;

&lt;p&gt;DateField and DateTimeField&lt;/p&gt;

&lt;p&gt;The DateField and DateTimeField model fields are used to store dates and date/time values, respectively. They take optional parameters to specify the format of the date/time value and whether the field should be auto-populated with the current date/time. For example:&lt;/p&gt;

&lt;p&gt;scss&lt;/p&gt;

&lt;p&gt;from django.db import models&lt;/p&gt;

&lt;p&gt;class Event(models.Model):&lt;br&gt;
    name = models.CharField(max_length=200)&lt;br&gt;
    date = models.DateField()&lt;br&gt;
    start_time = models.DateTimeField()&lt;/p&gt;

&lt;p&gt;TextField&lt;/p&gt;

&lt;p&gt;The TextField model field is used to store long text values, such as blog posts or comments. It does not have a maximum length limit like CharField. For example:&lt;/p&gt;

&lt;p&gt;cpp&lt;/p&gt;

&lt;p&gt;from django.db import models&lt;/p&gt;

&lt;p&gt;class BlogPost(models.Model):&lt;br&gt;
    title = models.CharField(max_length=200)&lt;br&gt;
    content = models.TextField()&lt;/p&gt;

&lt;p&gt;BooleanField&lt;/p&gt;

&lt;p&gt;The BooleanField model field is used to store boolean values (True or False). It can be used for fields such as a user's account status or whether a blog post is published or not. For example:&lt;/p&gt;

&lt;p&gt;cpp&lt;/p&gt;

&lt;p&gt;from django.db import models&lt;/p&gt;

&lt;p&gt;class User(models.Model):&lt;br&gt;
    name = models.CharField(max_length=100)&lt;br&gt;
    is_active = models.BooleanField(default=True)&lt;/p&gt;

&lt;p&gt;Custom Django Model Fields&lt;/p&gt;

&lt;p&gt;Django also allows developers to create custom model fields, which can be used to handle data types or validation rules that are not covered by the built-in fields. Custom model fields are defined by subclassing django.db.models.Field and providing implementations for the necessary methods.&lt;/p&gt;

&lt;p&gt;For example, let's say we want to create a custom model field to store IP addresses. We could define it like this:&lt;/p&gt;

&lt;p&gt;python&lt;/p&gt;

&lt;p&gt;import ipaddress&lt;br&gt;
from django.db import models&lt;/p&gt;

&lt;p&gt;class IPAddress&lt;/p&gt;

</description>
      <category>programming</category>
      <category>django</category>
      <category>python</category>
      <category>webdev</category>
    </item>
    <item>
      <title>When you should not use Wordpress</title>
      <dc:creator>Ahmed Shahmir Riddo</dc:creator>
      <pubDate>Mon, 13 Mar 2023 09:30:49 +0000</pubDate>
      <link>https://forem.com/shahmirriddo/when-you-should-not-use-wordpress-1jfb</link>
      <guid>https://forem.com/shahmirriddo/when-you-should-not-use-wordpress-1jfb</guid>
      <description>&lt;p&gt;When you should not use Wordpress&lt;/p&gt;

&lt;p&gt;Wordpress is a great platform for many things. But there are also some instances when it might not be the best option. Here are some examples:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;When you need a highly customized website&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you need a website that is very unique and custom-built, then Wordpress might not be the best option. While there are many themes and plugins available, they might not be enough to create the exact website you need. In this case, it might be better to hire a web developer to create a custom website for you.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;When you need a very simple website&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you just need a simple website with a few pages, then Wordpress might be more than you need. In this case, a static HTML website might be a better option. This will be much simpler to create and maintain, and will likely be faster and cheaper than using Wordpress.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;When you need a website that is easy to maintain&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you need a website that is easy to update and maintain, then Wordpress might be a good option. However, if you don't have much experience with website development, then you might find Wordpress to be confusing and difficult to use. In this case, you might want to hire a web developer or designer to help you with the maintenance of your Wordpress website.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;When you need a website that is easy to scale&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you need a website that you can easily add more content and features to as your needs grow, then Wordpress is a good option. However, if you need a website that is very basic and doesn't need to be changed much, then Wordpress might not be the best option.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;When you need a website that is secure&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you need a website that is secure from hacking and other security threats, then Wordpress might not be the best option. While there are many security plugins and features available, Wordpress websites are still often targeted by hackers. In this case, you might want to consider a more secure platform such asSquarespace or Wix.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>7 AI-powered Google Chrome extensions that can help you out</title>
      <dc:creator>Ahmed Shahmir Riddo</dc:creator>
      <pubDate>Sun, 05 Mar 2023 09:17:06 +0000</pubDate>
      <link>https://forem.com/shahmirriddo/7-ai-powered-google-chrome-extensions-that-can-help-you-out-1lo3</link>
      <guid>https://forem.com/shahmirriddo/7-ai-powered-google-chrome-extensions-that-can-help-you-out-1lo3</guid>
      <description>&lt;p&gt;There are so many things that we have to do in our everyday lives. between work, family, and social obligations, it can be hard to keep up. But what if there was a way to make your life just a little bit easier?&lt;/p&gt;

&lt;p&gt;Introducing 7 AI-powered Google Chrome extensions that can help you out!&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Chrometana &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you're tired of seeing the same old results every time you search on Google, then Chrometana is the extension for you. It allows you to redirected to a random search result, giving you a new and interesting experience each time.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Extension Automation &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;With Extension Automation, you can automate the process of installing and updating your extensions. This extension will make sure that all your extensions are always up-to-date and installed with just a few clicks.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Momentum &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Momentum is a great extension for anyone who wants to be more productive. It replaces your new tab page with a personalized dashboard that shows you the weather, your to-do list, and more. It's a great way to start your day on the right foot.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Tabsnooze &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Tabsnooze is a must-have for anyone who spends a lot of time browsing the web. It allows you to temporarily close tabs and have them automatically reopen at a later time. This is great for putting off things that you don't want to deal with right now, but still want to get back to later.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Earth View &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Earth View is a extension that shows you a beautiful satellite image of the Earth every time you open a new tab. It's a great way to take a break from the hustle and bustle of your day and appreciate the beauty of our planet.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Tab Explosion &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Tab Explosion is a great extension for anyone who likes to have a lot of tabs open at once. It allows you to open multiple tabs with just a single click. This is great for researching or finding new things to read or watch.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Data Saver &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Data Saver is a great extension for anyone who is worried about their data usage. It allows you to save data by compressing pages before you load them. This is great for anyone who wants to save money or has a data limit.&lt;/p&gt;

&lt;p&gt;These 7 AI-powered Google Chrome extensions are sure to make your life easier. So why not give them a try?&lt;/p&gt;

</description>
      <category>watercooler</category>
    </item>
    <item>
      <title>Best Medium Alternative Websites (2023)</title>
      <dc:creator>Ahmed Shahmir Riddo</dc:creator>
      <pubDate>Mon, 20 Feb 2023 11:34:07 +0000</pubDate>
      <link>https://forem.com/shahmirriddo/best-medium-alternative-websites-2023-15bc</link>
      <guid>https://forem.com/shahmirriddo/best-medium-alternative-websites-2023-15bc</guid>
      <description>&lt;p&gt;Are you looking for some medium alternative websites? Well, you've come to the right place! Here are 10 medium alternative websites that you can check out.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Ghost&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you're looking for a simple, clean, and modern blogging platform, then Ghost is a great option. It's a open source platform and has a great community of users and developers.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Quillings&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Quillings(quillings.site) is a vibrant and welcoming blogging community, providing a platform for writers of all levels to share their thoughts, stories, and perspectives. With a user-friendly interface, members can easily create and publish their own blog posts, as well as engage with other members through comments and discussions.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Tumblr&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Tumblr(tumblr.com) is a popular microblogging platform that is really easy to use. It's perfect for short form content and has a great community of users.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Medium&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Medium(medium.com) is a great platform for writing long-form articles and essays. It's perfect for those who want to share their stories and ideas with the world.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Squarespace&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Squarespace(squarespace.com) is a popular website builder that also has a great blogging platform. It's easy to use and has beautiful templates.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Wix&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Wix is another popular website builder that has a great blogging platform. It's easy to use and has lots of features.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Weebly&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Weebly is a popular website builder that is perfect for those who want to create a simple blog or website. It's easy to use and has lots of templates to choose from.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Jekyll&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Jekyll is a great option for those who want to create a static website or blog. It's free and open source, and there are tons of themes available.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Hugo&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Hugo is a popular static site generator that is perfect for those who want to create a fast and simple website. It's free and open source, and there are tons of themes available.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Ghostwriter&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Ghostwriter is a great option for those who want to create a blog with a focus on writing. It's a open source platform with a beautiful interface.&lt;/p&gt;

</description>
      <category>watercooler</category>
      <category>discuss</category>
    </item>
    <item>
      <title>How to start problem solving in Hackerrank.</title>
      <dc:creator>Ahmed Shahmir Riddo</dc:creator>
      <pubDate>Wed, 08 Feb 2023 06:21:29 +0000</pubDate>
      <link>https://forem.com/shahmirriddo/how-to-start-problem-solving-in-hackerrank-2i87</link>
      <guid>https://forem.com/shahmirriddo/how-to-start-problem-solving-in-hackerrank-2i87</guid>
      <description>&lt;p&gt;If you're anything like me, you love a good challenge. But sometimes, when you're stuck on a particularly difficult problem, it can be helpful to have a few tricks up your sleeve. In this blog post, I'm going to share with you some of my top tips for solving problems in Hackerrank.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Read the problem carefully.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This may sound like a no-brainer, but it's really important to make sure you understand the problem before you start coding. Sometimes the wording can be confusing, or you might misinterpret the instructions. If you're not sure what the problem is asking, it's better to ask for clarification than to start coding and get it wrong.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Break the problem down into smaller parts.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Once you've read and understood the problem, it can be helpful to break it down into smaller sub-problems. This will make it easier to see how to approach the problem and write the code.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Experiment with different approaches.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Hackerrank problems often have more than one correct solution. So if you're stuck, it can be helpful to try a different approach. Sometimes the brute-force approach will work, while other times you might need to get a bit more creative.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Don't be afraid to ask for help.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you're really stuck, don't be afraid to ask for help. There's no shame in admitting that you need some assistance. You can ask for help on the Hackerrank forums, or even reach out to the problem's author directly.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Keep at it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Solving Hackerrank problems can be tough, but it's important to persevere. If you get stuck on a problem, take a break and come back to it later. Sometimes all you need is a fresh perspective.&lt;/p&gt;

&lt;p&gt;I hope these tips have been helpful. Happy coding!&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>Incorrect Regex — HackerRank Problem Solution [Python3]</title>
      <dc:creator>Ahmed Shahmir Riddo</dc:creator>
      <pubDate>Wed, 08 Feb 2023 06:16:39 +0000</pubDate>
      <link>https://forem.com/shahmirriddo/incorrect-regex-hackerrank-problem-solution-python3-5430</link>
      <guid>https://forem.com/shahmirriddo/incorrect-regex-hackerrank-problem-solution-python3-5430</guid>
      <description>&lt;p&gt;Problem -&lt;/p&gt;

&lt;p&gt;You are given a string .&lt;br&gt;
Your task is to find out whether&lt;/p&gt;

&lt;p&gt;is a valid regex or not.&lt;/p&gt;

&lt;p&gt;Input Format&lt;/p&gt;

&lt;p&gt;The first line contains integer&lt;/p&gt;

&lt;p&gt;, the number of test cases.&lt;br&gt;
The next lines contains the string&lt;/p&gt;

&lt;p&gt;.&lt;/p&gt;

&lt;p&gt;Constraints&lt;/p&gt;

&lt;p&gt;Output Format&lt;/p&gt;

&lt;p&gt;Print “True” or “False” for each test case without quotes.&lt;/p&gt;

&lt;p&gt;Sample Input&lt;/p&gt;

&lt;p&gt;2&lt;br&gt;
.&lt;em&gt;+&lt;br&gt;
.&lt;/em&gt;+&lt;/p&gt;

&lt;p&gt;Sample Output&lt;/p&gt;

&lt;p&gt;True&lt;br&gt;
False&lt;/p&gt;

&lt;p&gt;Explanation&lt;/p&gt;

&lt;p&gt;.&lt;em&gt;+ : Valid regex.&lt;br&gt;
.&lt;/em&gt;+: Has the error multiple repeat. Hence, it is invalid.&lt;br&gt;
Solution:&lt;/p&gt;

&lt;h1&gt;
  
  
  Enter your code here. Read input from STDIN. Print output to STDOUT
&lt;/h1&gt;

&lt;p&gt;import re&lt;/p&gt;

&lt;p&gt;n = int(input())&lt;/p&gt;

&lt;p&gt;for i in range(n):&lt;/p&gt;

&lt;p&gt;a = input()&lt;/p&gt;

&lt;p&gt;try:&lt;/p&gt;

&lt;p&gt;re.compile(a)&lt;/p&gt;

&lt;p&gt;print(True)&lt;/p&gt;

&lt;p&gt;except re.error:&lt;/p&gt;

&lt;p&gt;print(False)&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>Map and Lambda Function — HackerRank Problem Solution in Python3</title>
      <dc:creator>Ahmed Shahmir Riddo</dc:creator>
      <pubDate>Wed, 08 Feb 2023 06:15:31 +0000</pubDate>
      <link>https://forem.com/shahmirriddo/map-and-lambda-function-hackerrank-problem-solution-in-python3-1bnb</link>
      <guid>https://forem.com/shahmirriddo/map-and-lambda-function-hackerrank-problem-solution-in-python3-1bnb</guid>
      <description>&lt;p&gt;Map and Lambda Function — HackerRank Problem Solution in Python3&lt;br&gt;
Problem -&lt;/p&gt;

&lt;p&gt;Let’s learn some new Python concepts! You have to generate a list of the first fibonacci numbers,&lt;/p&gt;

&lt;p&gt;being the first number. Then, apply the map function and a lambda expression to cube each fibonacci number and print the list.&lt;/p&gt;

&lt;p&gt;Concept&lt;/p&gt;

&lt;p&gt;The map() function applies a function to every member of an iterable and returns the result. It takes two parameters: first, the function that is to be applied and secondly, the iterables.&lt;br&gt;
Let's say you are given a list of names, and you have to print a list that contains the length of each name.&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;print (list(map(len, ['Tina', 'Raj', 'Tom'])))&lt;br&gt;&lt;br&gt;
[4, 3, 3]&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;p&gt;Lambda is a single expression anonymous function often used as an inline function. In simple words, it is a function that has only one line in its body. It proves very handy in functional and GUI programming.&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;sum = lambda a, b, c: a + b + c&lt;br&gt;
sum(1, 2, 3)&lt;br&gt;
6&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;p&gt;Note:&lt;/p&gt;

&lt;p&gt;Lambda functions cannot use the return statement and can only have a single expression. Unlike def, which creates a function and assigns it a name, lambda creates a function and returns the function itself. Lambda can be used inside lists and dictionaries.&lt;/p&gt;

&lt;p&gt;Input Format&lt;/p&gt;

&lt;p&gt;One line of input: an integer&lt;/p&gt;

&lt;p&gt;.&lt;/p&gt;

&lt;p&gt;Constraints&lt;/p&gt;

&lt;p&gt;Output Format&lt;/p&gt;

&lt;p&gt;A list on a single line containing the cubes of the first&lt;/p&gt;

&lt;p&gt;fibonacci numbers.&lt;/p&gt;

&lt;p&gt;Sample Input&lt;/p&gt;

&lt;p&gt;5&lt;/p&gt;

&lt;p&gt;Sample Output&lt;/p&gt;

&lt;p&gt;[0, 1, 1, 8, 27]&lt;/p&gt;

&lt;p&gt;Solution -&lt;/p&gt;

&lt;p&gt;cube = lambda x: x*x*x # complete the lambda function &lt;/p&gt;

&lt;p&gt;def fibonacci(n):&lt;br&gt;
    def fibonaccii(n):&lt;br&gt;
        if n == 1 or n == 2:&lt;br&gt;
            return 1&lt;br&gt;
        elif n == 0:&lt;br&gt;
            return 0&lt;br&gt;
        else:&lt;br&gt;
            return(fibonaccii(n-1) + fibonaccii(n-2))&lt;br&gt;
    l = []&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for i in range(n):
    ans = (fibonaccii(i))
    l.append(ans)


return l

# return a list of fibonacci numbers
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;if &lt;strong&gt;name&lt;/strong&gt; == '&lt;strong&gt;main&lt;/strong&gt;':&lt;br&gt;
    n = int(input())&lt;br&gt;
    print(list(map(cube, fibonacci(n))))&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Blogging with Django : Handle images media</title>
      <dc:creator>Ahmed Shahmir Riddo</dc:creator>
      <pubDate>Fri, 20 Jan 2023 06:45:34 +0000</pubDate>
      <link>https://forem.com/shahmirriddo/blogging-with-django-handle-images-media-1kgc</link>
      <guid>https://forem.com/shahmirriddo/blogging-with-django-handle-images-media-1kgc</guid>
      <description>&lt;p&gt;Liquid syntax error: Unknown tag 'static'&lt;/p&gt;
</description>
      <category>productivity</category>
      <category>discuss</category>
    </item>
    <item>
      <title>How to build a project in Django.</title>
      <dc:creator>Ahmed Shahmir Riddo</dc:creator>
      <pubDate>Thu, 19 Jan 2023 08:49:34 +0000</pubDate>
      <link>https://forem.com/shahmirriddo/how-to-build-a-project-in-django-3c44</link>
      <guid>https://forem.com/shahmirriddo/how-to-build-a-project-in-django-3c44</guid>
      <description>&lt;p&gt;Django is an open-source Python web framework that enables rapid development of applications and websites. It is the most popular web framework for Python and is widely used for developing robust, secure, and efficient applications. Django is a powerful and flexible framework that provides a range of features, including an object-relational mapper (ORM), an integrated template engine, an extensible authentication system, and a powerful URL routing system. In this blog, we will discuss how to build a project in Django.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install Django: Install the latest version of Django by running the following command in the terminal:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;pip install django&lt;/p&gt;

&lt;p&gt;This will install the latest version of Django on your system.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a New Project: Create a new project by running the following command in the terminal:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;django-admin startproject myproject&lt;/p&gt;

&lt;p&gt;This will create a new directory called myproject with the necessary files and folders for a Django project.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create an App: Create an app for your project by running the following command in the terminal:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;python manage.py startapp myapp&lt;/p&gt;

&lt;p&gt;This will create a new directory called myapp with the necessary files and folders for a Django app.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Configure Database: Configure the database by editing the file in the settings.py directory. This file contains the configuration for the database.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Configure URLs: Configure the URLs for the project by editing the file in the urls.py directory. This file contains the URL patterns for the project.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create Views: Create views for the project by editing the file in the views.py directory. This file contains the view functions for the project.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create Models: Create models for the project by editing the file in the models.py directory. This file contains the models for the project.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create Templates: Create templates for the project by editing the file in the templates directory. This directory contains the HTML templates for the project.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create Static Files: Create static files for the project by editing the file in the static directory. This directory contains the CSS, JavaScript, and other static files for the project.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Test the Project: Test the project by running the following command in the terminal:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;python manage.py runserver&lt;/p&gt;

&lt;p&gt;This will start the development server and you can access the project at &lt;a href="http://localhost:8000" rel="noopener noreferrer"&gt;http://localhost:8000&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnezo4ts94bx8vpbg31h6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnezo4ts94bx8vpbg31h6.png" alt="Image description" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>gratitude</category>
    </item>
    <item>
      <title>Django VS Flask</title>
      <dc:creator>Ahmed Shahmir Riddo</dc:creator>
      <pubDate>Tue, 17 Jan 2023 18:11:47 +0000</pubDate>
      <link>https://forem.com/shahmirriddo/django-vs-flask-1260</link>
      <guid>https://forem.com/shahmirriddo/django-vs-flask-1260</guid>
      <description>&lt;p&gt;Python is a programming language with many options for web development frameworks. Two of the most popular frameworks are Django and Flask. In this article, we’ll compare and contrast these two frameworks so you can make the best decision for your project.&lt;/p&gt;

&lt;p&gt;Django is a full-stack web framework for Python. It’s open source and released under the BSD license. Django was designed to help developers create complex, database-driven websites. It’s a comprehensive framework that includes everything you need to create a website, from the backend database and models to the frontend templates and views. Django also has a strong community that provides helpful resources and support.&lt;/p&gt;

&lt;p&gt;Flask is a micro-framework for Python. It’s open source and released under the BSD license. Flask was designed to be lightweight and easy to use. It’s a minimalistic framework that doesn’t include all the bells and whistles of a full-stack web framework. This makes Flask a good choice for small projects or projects that need more flexibility. Flask also has a strong community that provides helpful resources and support.&lt;/p&gt;

&lt;p&gt;Both Django and Flask are popular choices for web development with Python. They’re both open source and released under the BSD license. They both have strong communities that provide helpful resources and support. So, which one should you choose for your project?&lt;/p&gt;

&lt;p&gt;The answer depends on your project requirements. If you need a full-stack web framework with all the bells and whistles, Django is the best choice. If you need a lightweight micro-framework with more flexibility, Flask is the best choice.&lt;/p&gt;

</description>
      <category>motivation</category>
      <category>productivity</category>
      <category>career</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>What language you should learn after Python?</title>
      <dc:creator>Ahmed Shahmir Riddo</dc:creator>
      <pubDate>Mon, 16 Jan 2023 16:27:38 +0000</pubDate>
      <link>https://forem.com/shahmirriddo/what-language-you-should-learn-after-python-f7f</link>
      <guid>https://forem.com/shahmirriddo/what-language-you-should-learn-after-python-f7f</guid>
      <description>&lt;p&gt;Python has become one of the most popular programming languagesin the world. It’s easy to learn and is awesome, making it an excellent choice for beginners and experienced coders alike. But if you’re looking to expand your skillset and take your coding to the next level, what language should you learn next?&lt;/p&gt;

&lt;p&gt;The answer to this question depends on what you want to do with your coding skills.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;If you want to develop websites or apps, then JavaScript is a great choice. It’s the language of the web, and you can use it to create interactive websites and applications.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For game development, C# is a good option. It’s a powerful language for creating 3D graphics and simulations.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you’re interested in data science, then R is a great choice. It’s a powerful language for data analysis and machine learning.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you’re looking for something more general-purpose, then Java is a great choice. It’s an object-oriented language that’s used in a variety of applications, from enterprise software to mobile apps.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Similarly, C++ is another great choice for general-purpose programming. It’s a powerful language that’s often used for building operating systems and other low-level software.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No matter what language you choose to learn, you have to learn that language perfectly. write more code in that language and practice more to become a better coder. don’t shift to one language to other language very early.&lt;/p&gt;

&lt;p&gt;as a software engineer, you should have good command of one language and then you can shift to other language. When you’re choosing a language to learn, it’s important to think about what you want to do with it. Different languages are suited to different tasks, so it’s important to pick one that fits your needs. Once you’ve chosen a language, it’s time to get to work. Learning any language takes time and effort, so set yourself realistic goals and be patient. Start with the basics and gradually work your way up. Take your time to understand the language and write lots of code. As you gain more experience, you’ll be able to tackle more complex tasks. You’ll also need to stay up-to-date with the latest trends and developments in your chosen language. Keep up with blogs, books and online tutorials. This will help you stay ahead of the curve and take your coding skills to the next level.&lt;/p&gt;

</description>
      <category>gratitude</category>
    </item>
    <item>
      <title>Top 5 Programming Languages to learn in 2023.</title>
      <dc:creator>Ahmed Shahmir Riddo</dc:creator>
      <pubDate>Sat, 14 Jan 2023 06:25:49 +0000</pubDate>
      <link>https://forem.com/shahmirriddo/top-5-programming-languages-to-learn-in-2023-3hhe</link>
      <guid>https://forem.com/shahmirriddo/top-5-programming-languages-to-learn-in-2023-3hhe</guid>
      <description>&lt;p&gt;As technology advances, so do the programming languages used to create software applications. With the ever-changing technology landscape, it is important to stay up to date on the top programming languages to learn in 2023. &lt;/p&gt;

&lt;p&gt;The following is a list of the top 5 programming languages to learn in 2023: &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Python: Python is a general-purpose coding language that is used for web development, data analysis, machine learning, and artificial intelligence. It is a highly versatile language that can be used for a variety of tasks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Java: Java is one of the most popular programming languages used for web development and enterprise applications. It is an object-oriented language that is fast and reliable.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;JavaScript: JavaScript is a scripting language that is used to create dynamic web pages and applications. It is used to create interactive elements on websites and can be used to create mobile apps.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;C++: C++ is a powerful, object-oriented language used for system programming. It is used to create high-performance applications, such as games and operating systems.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Go: Go is a programming language created by Google. It is used to create web applications and microservices.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>productivity</category>
      <category>discuss</category>
      <category>workplace</category>
    </item>
  </channel>
</rss>
