<?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: haytam_7</title>
    <description>The latest articles on DEV Community by haytam_7 (@haytamkh7).</description>
    <link>https://dev.to/haytamkh7</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%2F545505%2F0e2025c6-7646-4e2f-9f78-35eb1e9ec6b3.png</url>
      <title>DEV Community: haytam_7</title>
      <link>https://dev.to/haytamkh7</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/haytamkh7"/>
    <language>en</language>
    <item>
      <title>The Rise of 5G Technology</title>
      <dc:creator>haytam_7</dc:creator>
      <pubDate>Thu, 15 Jun 2023 14:23:12 +0000</pubDate>
      <link>https://dev.to/haytamkh7/the-rise-of-5g-technology-397m</link>
      <guid>https://dev.to/haytamkh7/the-rise-of-5g-technology-397m</guid>
      <description>&lt;h2&gt;
  
  
  What is 5G technology?
&lt;/h2&gt;

&lt;p&gt;5G technology represents the pinnacle of wireless communication, offering unparalleled speeds, immence capacity and lower latency. At its core, 5G leverages cutting-edge technologies like millemeter waves, small cells, and beamforming to revolutionize connectivity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Enhanced Speed and Bandwidth
&lt;/h2&gt;

&lt;p&gt;One of the most remarkable features of 5G is its ability to deliver lightning-fast speeds. With download speeds reaching up to 10 gigabits per second, 5G sets the stage for a new era of seamless streaming, rapid downloads, and unparalleled user experiences. Imagine downloading an entire HD movie in seconds or enjoying buffer-free 4K video streaming—this is the power of 5G.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lower Latency and Improved Responsiveness
&lt;/h2&gt;

&lt;p&gt;Latency, the time it takes for data to travel between devices, has always been a limiting factor in previous wireless technologies. However, 5G drastically reduces latency to mere milliseconds, unlocking a realm of possibilities. From real-time cloud gaming and immersive virtual reality experiences to remote surgeries and autonomous vehicles, the improved responsiveness of 5G is set to transform multiple industries.&lt;/p&gt;

&lt;h2&gt;
  
  
  Increased Capacity and Scalability
&lt;/h2&gt;

&lt;p&gt;As our world becomes more connected, the demand for data and connectivity is reaching unprecedented levels. Thankfully, 5G technology rises to the occasion by offering greater capacity and scalability. It allows for a significantly higher number of connected devices per unit area, paving the way for the expansion of the Internet of Things (IoT) ecosystem. Smart cities, smart homes, and industrial automation are just a few examples of the incredible opportunities that arise from 5G’s increased capacity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Transforming Industries
&lt;/h2&gt;

&lt;p&gt;The impact of 5G extends far beyond just faster internet speeds—it has the potential to revolutionize entire industries. In healthcare, 5G enables telemedicine, remote patient monitoring, and real-time data analysis, leading to enhanced patient care and improved access to medical services. The transportation sector stands to benefit from 5G-powered autonomous vehicles and traffic management systems, ushering in a new era of safe and efficient transportation. Moreover, 5G’s high-speed, low-latency capabilities empower industries like manufacturing, entertainment, and retail, fueling innovation and transforming the way we live, work, and play.&lt;/p&gt;

&lt;h2&gt;
  
  
  Potential Challenges and Considerations
&lt;/h2&gt;

&lt;p&gt;As with any new technology, the adoption of 5G does come with its own set of challenges and considerations. Infrastructure requirements, including the need for a dense network of small cells and fiber-optic cables, pose logistical challenges for widespread deployment. Security and privacy concerns surrounding the vast amounts of data transmitted through 5G networks also require careful consideration. Additionally, while extensive research indicates that 5G is safe for human health and the environment, public perception and understanding remain important topics for discussion.&lt;/p&gt;

</description>
      <category>5g</category>
      <category>connectivity</category>
      <category>mobile</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>Image to ASCII Characters in Java</title>
      <dc:creator>haytam_7</dc:creator>
      <pubDate>Thu, 10 Feb 2022 16:00:36 +0000</pubDate>
      <link>https://dev.to/haytamkh7/image-to-ascii-characters-in-java-1dm5</link>
      <guid>https://dev.to/haytamkh7/image-to-ascii-characters-in-java-1dm5</guid>
      <description>&lt;p&gt;For the past couple of days I've been working on this mini project called Ascii Art which is inspired by Robert Heaton.&lt;/p&gt;

&lt;p&gt;Robert is a great mentor and he explains each step very well and lets you do it by yourself in whichever programming language you choose.&lt;/p&gt;

&lt;p&gt;The project is all about printing out an input image as ASCII characters depending on the brightness of each pixel.&lt;br&gt;
It was my first time working with image processing in Java, reading documentations here and there, connecting all the dots and coding this.&lt;/p&gt;

&lt;p&gt;Soruce code:&lt;br&gt;
&lt;a href="https://lnkd.in/dpH_wkrw"&gt;https://lnkd.in/dpH_wkrw&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--y2y2P72o--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/efsirokn5afnyws0c9ni.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--y2y2P72o--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/efsirokn5afnyws0c9ni.png" alt="Image description" width="880" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and if we zoom in we can see the ASCII characters:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vmLneXz6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4rka5rh00wy7sl9ll5pv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vmLneXz6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4rka5rh00wy7sl9ll5pv.png" alt="Image description" width="880" height="406"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>java</category>
      <category>programming</category>
      <category>imageprocessing</category>
    </item>
    <item>
      <title>Garbage Collector: The Desirable Aspect of Java</title>
      <dc:creator>haytam_7</dc:creator>
      <pubDate>Tue, 18 Jan 2022 11:53:17 +0000</pubDate>
      <link>https://dev.to/haytamkh7/garbage-collector-the-desirable-aspect-of-java-24jn</link>
      <guid>https://dev.to/haytamkh7/garbage-collector-the-desirable-aspect-of-java-24jn</guid>
      <description>&lt;p&gt;So what is a garbage collector? 🚮&lt;br&gt;
Each time we declare an object we use a system resource known as memory.&lt;br&gt;
And here are some questions that spring to mind:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;What happens to the objects that we no longer need?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Do we have to care about freeing up the space we are using?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Fortunately, Java programmers need not to care about objects that are no longer in use, that's because Java automatically frees up this space and destroys these unreachable objects and this reduces the chances of having memory leaks (which are common in other languages)&lt;/p&gt;

</description>
      <category>java</category>
      <category>programming</category>
      <category>computerscience</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Binary Search in other words</title>
      <dc:creator>haytam_7</dc:creator>
      <pubDate>Thu, 30 Sep 2021 18:28:22 +0000</pubDate>
      <link>https://dev.to/haytamkh7/binary-search-in-other-words-1n0e</link>
      <guid>https://dev.to/haytamkh7/binary-search-in-other-words-1n0e</guid>
      <description>&lt;p&gt;Imagine yourself holding a flashlight against a list of sorted numbers searching for your lottery number.&lt;/p&gt;

&lt;p&gt;Each time you turn on the flashlight it will automatically point to the &lt;strong&gt;middle of the list&lt;/strong&gt; and you can't change it.&lt;br&gt;
If at this point you see your lottery number then BOOM! you won the lottery.&lt;/p&gt;

&lt;p&gt;Otherwise you need to compare your lottery number with that number in the middle of the list and you will face one of two situations:&lt;/p&gt;

&lt;p&gt;Either your number is bigger, then you have to cut the lower part of the list and continue working with the upper part.&lt;/p&gt;

&lt;p&gt;Or your number is smaller, then you have to cut the upper part of the list and continue working with the lower part.&lt;/p&gt;

&lt;p&gt;Now let's try to translate this to a code (in Java):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public static int myLotteryNumber(int[] list, int lotteryNumber) {
        int left = 0;
        int right = list.length - 1;
        while(left &amp;lt;= right){
            int mid = (left + right) / 2;
            if(list[mid] == lotteryNumber)
                return list[mid];
            else if(lotteryNumber &amp;gt; list[mid])
                left = mid + 1; //cut the lower part of the list
            else if(lotteryNumber &amp;lt; list[mid])
                right = mid - 1; //cut the upper part of the list
        }
        return -1;
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The great thing about this algorithm is that at each iteration you &lt;strong&gt;cut down half of the list&lt;/strong&gt; and at the worst case this will cost you &lt;strong&gt;&lt;em&gt;O(Log n)&lt;/em&gt;&lt;/strong&gt; of time complexity and &lt;strong&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/strong&gt; of space complexity!&lt;/p&gt;

</description>
      <category>java</category>
      <category>programming</category>
      <category>coding</category>
      <category>binarysearch</category>
    </item>
    <item>
      <title>Java: Convert String to a Number</title>
      <dc:creator>haytam_7</dc:creator>
      <pubDate>Wed, 29 Sep 2021 19:21:50 +0000</pubDate>
      <link>https://dev.to/haytamkh7/java-convert-string-to-a-number-28jn</link>
      <guid>https://dev.to/haytamkh7/java-convert-string-to-a-number-28jn</guid>
      <description>&lt;p&gt;When it comes to converting a string of numbers, like: "1234" into a number the first question that jumps to your mind is:&lt;br&gt;
"They look like a number! why do I need to convert a number to a number?!"&lt;/p&gt;

&lt;p&gt;Well, the computer doesn't see things the way we see them, a &lt;strong&gt;&lt;em&gt;string&lt;/em&gt;&lt;/strong&gt; consists of numbers is not a number! or at least according to the computer.&lt;/p&gt;

&lt;p&gt;A string of numbers is a bunch of characters and they do not present a numeric value.&lt;/p&gt;

&lt;p&gt;So in Java we have two ways to convert a string of 'numbers' to a real number, and here is how this could be done:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;In this post I'm going to talk about converting string to int&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;
  
  
  Using Integer.parseInt()
&lt;/h3&gt;

&lt;p&gt;This method will return the primitive numeric value of a string that contains &lt;strong&gt;only&lt;/strong&gt; numbers, otherwise it will throw an error (NumberFormatException)&lt;/p&gt;

&lt;p&gt;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;String testStr = "150";
        try{
            System.out.println(Integer.parseInt(testStr));
        } catch (NumberFormatException e) {
            System.out.print("Error: String doesn't contain a valid integer. " + e.getMessage());
        }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Using Integer.valueOf()
&lt;/h3&gt;

&lt;p&gt;This method will return an integer object of the passed parameter,&lt;br&gt;
if the passed parameter isn't valid it will throw an error.&lt;br&gt;
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;String testStr = "200";
        try{
            System.out.println(Integer.valueOf(testStr));
        } catch (NumberFormatException e) {
            System.out.print("Error: String doesn't contain a valid integer. " + e.getMessage());
        }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>java</category>
      <category>programming</category>
      <category>coding</category>
      <category>oop</category>
    </item>
    <item>
      <title>Key and Value</title>
      <dc:creator>haytam_7</dc:creator>
      <pubDate>Thu, 24 Dec 2020 22:21:30 +0000</pubDate>
      <link>https://dev.to/haytamkh7/ask-for-the-key-to-get-the-value-4p3d</link>
      <guid>https://dev.to/haytamkh7/ask-for-the-key-to-get-the-value-4p3d</guid>
      <description>&lt;h3&gt;
  
  
  &lt;code&gt;dictionary_data = {'Changeable': 'Yes', 'Unordered': 'Yes', 'Duplicates': 'No'}&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;And as simplicity continues while learning Python, it's time to talk about a unique way of saving data in Python using something called &lt;em&gt;DICTIONARY&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Dictionary is based on the principle of &lt;em&gt;&lt;strong&gt;key-value&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Like when you want to search for a word definition in the dictionary, you search for the word, in Python dictionaries you search for the KEY to get the VALUE.&lt;/p&gt;

&lt;p&gt;Let's take a look at a basic syntax of a dictionary which represents a stored data for names and ages of two people:&lt;/p&gt;

&lt;p&gt;names_ages = {'Oliver': 20, 'George': 23}&lt;/p&gt;

&lt;p&gt;Oliver and George are the keys, 20 and 23 are the values.&lt;/p&gt;

&lt;p&gt;Getting a value:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;names_ages['Oliver'] 
will return 20.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Adding a new key and value:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;names_ages['Michael'] = 24

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

&lt;/div&gt;



&lt;p&gt;Updating a value:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;names_ages['Oliver'] = 30
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Removing an entire element:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;del names_ages['Oliver']
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Now Oliver the key and its value are removed)&lt;/p&gt;

&lt;p&gt;If you want to print each pair separated by a comma you can use the items() method:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print(names_ages.items())
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
