<?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: Kojo Ben</title>
    <description>The latest articles on DEV Community by Kojo Ben (@kojo_ben1).</description>
    <link>https://dev.to/kojo_ben1</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%2F382267%2Fb6fdc713-26df-4740-abd7-b278b9468966.jpg</url>
      <title>DEV Community: Kojo Ben</title>
      <link>https://dev.to/kojo_ben1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kojo_ben1"/>
    <language>en</language>
    <item>
      <title>Networking - What it is and Why You Need to Know It?</title>
      <dc:creator>Kojo Ben</dc:creator>
      <pubDate>Wed, 10 Sep 2025 16:03:57 +0000</pubDate>
      <link>https://dev.to/kojo_ben1/networking-what-it-is-and-why-you-need-to-know-it-3k04</link>
      <guid>https://dev.to/kojo_ben1/networking-what-it-is-and-why-you-need-to-know-it-3k04</guid>
      <description>&lt;h2&gt;
  
  
  What is Networking?
&lt;/h2&gt;

&lt;p&gt;Networking can be understood in two main concepts: 1) the process of connecting or building relationships with people to exchange information and opportunities, and 2) the process of connecting computers to exchange data and resources. Both of these concepts sound very similar, even though one has to do with people and the other is concerned with computers or devices. This is because, in a network (be it person-to-person or computer-to-computer), there are two main actions we can't ignore: connection and exchange of information. Without these two actions in place, we can't have a network. The reason you can open YouTube on your phone and watch your favorite music videos is that a network has been established, which means there is a connection and there is an exchange of information between your phone, the router, the Internet Service Provider, and YouTube's server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why is networking important?
&lt;/h2&gt;

&lt;p&gt;Networking is important because we are not meant to exist alone. As humans, we are naturally wired to connect and exchange information with one another. Computer networking is the digital extension of that instinct. It allows us to send emails, WhatsApp messages, and share files instantly and globally. Without the connection and exchange of data among devices and servers, it would be practically impossible to make video calls with your long-time friend in Canada or send that important email to your supervisor explaining why you need more time to complete the project. In short, computer networking is important because it makes global communication possible.&lt;br&gt;
While it is great that you can communicate and share resources due to the power of networking, you must also understand how the network enables you to accomplish these tasks. Knowing networking basics helps you solve everyday issues like:  &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Why is my Wi-Fi not working?"&lt;br&gt;
"Why is my internet slow?" and so on.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Learning networking equips you with the knowledge to use, secure, and even build these systems that power your digital life. And in a world that runs on communication, that’s a skill worth having.&lt;/p&gt;

</description>
      <category>network</category>
      <category>cybersecurity</category>
      <category>cisco</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How to merge PDF files using the PyPDF2 module in python</title>
      <dc:creator>Kojo Ben</dc:creator>
      <pubDate>Sun, 17 Jan 2021 01:07:56 +0000</pubDate>
      <link>https://dev.to/kojo_ben1/how-to-merge-pdf-files-using-the-pypdf2-module-in-python-3lhl</link>
      <guid>https://dev.to/kojo_ben1/how-to-merge-pdf-files-using-the-pypdf2-module-in-python-3lhl</guid>
      <description>&lt;p&gt;Have you ever had multiple PDF files that you need to merge into one single document? It is easier than you might think to merge or combine two or more PDF's into one single file in python using the PyPDF2 module.&lt;/p&gt;

&lt;p&gt;PyPDF2 is a python library used to work with PDF files. You can use it to extract document information, split document page by page, merge multiple pages, encrypt and decrypt, etc. In this tutorial, you will learn how to merge multiple files using this module.  &lt;/p&gt;

&lt;h2&gt;
  
  
  A program to merge multiple PDF files
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;You first need to install the package using pip&lt;/strong&gt;:&lt;br&gt;
&lt;code&gt;pip install PyPDF2&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;Open any editor of your choice and create a new file "pdfMerger.py". Make sure the PDF files to be appended are in the same directory as the python file.&lt;/p&gt;

&lt;p&gt;The following block of code allows you to merge two or more PDF files:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import PyPDF2 

mergeFile = PyPDF2.PdfFileMerger()

mergeFile.append(PyPDF2.PdfFileReader('file1.pdf', 'rb'))

mergeFile.append(PyPDF2.PdfFileReader('file2.pdf', 'rb'))

mergeFile.write("NewMergedFile.pdf")

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

&lt;/div&gt;



&lt;p&gt;Line 1: Import the PdfFileReader class and PdfFileWriter class from the PyPDF2 module. &lt;/p&gt;

&lt;p&gt;Line 2: Created an object of the &lt;em&gt;PdfFileMerger&lt;/em&gt; class and assign it to &lt;em&gt;mergeFile&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Line 3 and 4: Used the append method to concatenate all pages onto the end of the file&lt;/p&gt;

&lt;p&gt;Line 5: Writes all data that has been merged to &lt;em&gt;NewMergedFile&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The code block above looks very simple but what if you would like to merge more than two files? You would have to repeat line 3 for each file you want to add and this will make your program very long. You can use a for loop in this situation. &lt;br&gt;
The following block of code is another way to merge mutliple PDF files&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import PyPDF2 

def merge_pdfs(_pdfs):

    mergeFile = PyPDF2.PdfFileMerger()

    for _pdf in _pdfs:

        mergeFile.append(PyPDF2.PdfFileReader(_pdf, 'rb'))

    mergeFile.write("New_Merged_File.pdf")

if __name__ == '__main__':

    _pdfs = ['file1.pdf', 'file2.pdf', 'file3.pdf']

    merge_pdfs(_pdfs)

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

&lt;/div&gt;



&lt;p&gt;Line 2: Define a function &lt;em&gt;merge_pdfs&lt;/em&gt; which takes a list &lt;em&gt;_pdfs&lt;/em&gt; as a parameter. &lt;/p&gt;

&lt;p&gt;Line 4: A for loop to loop through the list &lt;em&gt;_pdfs&lt;/em&gt; and concatenate the pages.&lt;/p&gt;

&lt;p&gt;Line 7: Check if the python file is the main module or it's been imported.&lt;/p&gt;

&lt;p&gt;Line 8: Specify the list of files&lt;/p&gt;

&lt;p&gt;Line 9: Call the function&lt;/p&gt;

&lt;p&gt;I hope you enjoyed this short and simple tutorial! 😎&lt;/p&gt;

</description>
      <category>python</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
