<?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 Oteri Eyenike on Medium]]></title>
        <description><![CDATA[Stories by Oteri Eyenike on Medium]]></description>
        <link>https://medium.com/@terieyenike?source=rss-1f1ca6e70af5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TlPQMTeNE9SzV9i1by2DAA.png</url>
            <title>Stories by Oteri Eyenike on Medium</title>
            <link>https://medium.com/@terieyenike?source=rss-1f1ca6e70af5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 02:01:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@terieyenike/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[The Secret Weapon of Successful Companies: How Bright Data Can Revolutionize Your Market Research]]></title>
            <link>https://terieyenike.medium.com/the-secret-weapon-of-successful-companies-how-bright-data-can-revolutionize-your-market-research-991025f53dba?source=rss-1f1ca6e70af5------2</link>
            <guid isPermaLink="false">https://medium.com/p/991025f53dba</guid>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[bright-data]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[marketing-strategies]]></category>
            <dc:creator><![CDATA[Oteri Eyenike]]></dc:creator>
            <pubDate>Thu, 21 Dec 2023 00:20:28 GMT</pubDate>
            <atom:updated>2023-12-21T00:20:28.705Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vh6H3BmMbQz10GN1Idh1Iw.png" /></figure><p>Market research is the secret weapon that successful companies deploy before, during, or after product launches. It is essential to stay in touch with your direct competitors to be ahead of the competition, which can happen when you leverage Bright Data’s tools to resonate with customers, capitalize on emerging trends, and maintain a competitive edge in the market.</p><p>In this article, the focus will be on understanding competitor benchmarking (customer feedback), feature enhancement (positioning a product in the market through its strengths and weaknesses), and harnessing the full potential of Bright Data for competitive intelligence.</p><blockquote><em>In a world with tens of thousands of online resellers, only web data can help identify market trends.</em></blockquote><p>Let’s get started.</p><h3>The Evolution of Market Research</h3><p>The first market research study was created by Daniel Starch in 1920 and geared towards advertising. Market research is a branch of marketing, is used for the following:</p><ul><li>Promote brand reputation</li><li>Make informed decisions</li><li>Understanding your target audience</li></ul><p><strong>Traditional methods and their limitations</strong></p><p>Some of the shortcomings of using traditional methods for market research are ineffective, and the following suggest this:</p><ol><li><strong>Manual data collection</strong>: This is the collection of data manually, which is time-consuming and prone to errors because surveys and polls can result in inconsistent results without yielding a holistic view of the market.</li><li><strong>Limited geographical reach</strong>: Using this method can’t be compared with running experiments with social media or via the internet as computed data is constrained within the defined location of the business, making it difficult to sample a broader market and understand the different consumer behavior of your product.</li><li><strong>Delayed results</strong>: In the business world, time is an essential factor for implementing business strategies, and delayed results from collecting, processing, and analyzing data hinder the ability to make timely business decisions. Also, due to the changing market dynamics, information becomes outdated quickly.</li><li><strong>Inability to handle big data</strong>: Manually extracting insights from a vast amount of data at any time can lead to the loss of opportunities and the challenges of tracking market trends.</li><li><strong>Subjective bias:</strong> Influencing insights based on the researcher’s interpretation can be challenging in interviews and focus groups as the gathering of information is not accurate</li></ol><h3>Future Trends in Market Research</h3><p>To build better products for market research with the number one web data platform Bright Data, you need to understand your target audience and anticipate market trend analysis.</p><p>Here are some ways in which you can make this happen:</p><ol><li><strong>Create an ideal customer profile</strong>: It is possible to detect and monitor your target audience by collecting data.</li><li>To remain relevant and stay on top of trends, you must collect data from review articles, social media hashtags and influencers, search keywords, comments, and more.</li><li>With Bright Data’s large datasets, you can target your competition and generate new leads by smartly filtering through people, jobs, and companies.</li></ol><p>The other ways to elevate your brand and improve your customer’s journey are:</p><ol><li><strong>Customer feedback</strong>: Feedback is vital to success. Collecting feedback and reviews from social media platforms is essential to understand your brand and competitors’ image.</li><li><strong>Personalize experiences</strong>: To craft the best solutions for customers, study their preferences and behavior data from any platform.</li><li>Monitor the social media space for brand mentions, suitable for optimized marketing efforts.</li></ol><h3>Conclusion</h3><p>Product development and innovation are the secret weapons most successful companies use for the first stages of product market fit. These steps can revolutionize market research and lead to better product-specialized customer offerings.</p><p>No matter how fast you want your product out there, you need <strong>data</strong> as this guides you in understanding your market strengths and weaknesses.</p><p><a href="https://brightdata.com/">Bright Data</a>, as a web data platform, gives you the tools, and there are studies from other <a href="https://brightdata.com/use-cases">business use cases</a> to start and learn from to get a better position.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=991025f53dba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use Bash]]></title>
            <link>https://terieyenike.medium.com/how-to-use-bash-5a2ee92d939f?source=rss-1f1ca6e70af5------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a2ee92d939f</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[terminal]]></category>
            <dc:creator><![CDATA[Oteri Eyenike]]></dc:creator>
            <pubDate>Wed, 20 Dec 2023 13:31:01 GMT</pubDate>
            <atom:updated>2023-12-21T00:09:35.157Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever been daunted by writing Bash scripts or using the terminal? Many developers prefer to use the graphical user interface (GUI) to navigate their files and applications on their computers. With Bash, developers on macOS and Linux operating systems (OS) can do many computer processes right from the terminal without ever having to use their mouse or keyboard for interaction.</p><p>In this lesson, you’ll learn how to write simple Bash scripts and how you can 10X your productivity efficiently.</p><h3>What is Bash?</h3><p>Bash, also known as Bourne Again Shell, is an interactive shell or command line interpreter popular with UNIX users. Therefore, what is a shell? A shell (command interpreter) interfaces the user and the kernel. It is an executable text file that contains shell commands and other specific programming structures.</p><p>Some examples of shells include:</p><ul><li>Bourne</li><li>Bash (Bourne Again Shell)</li><li>Z Shell</li><li>C Shell</li></ul><p>Now, when do you use a Shell?<br>Bash scripting gives the user the power and control over the OS in the following ways:</p><ul><li>Monitoring the system</li><li>Data backup and restoring</li><li>Creating an alert system</li><li>User administration and many more</li></ul><p>Another use case of the CLIs is that they can edit, create, and delete multiple files with one command. It is also possible to automate everyday task and fetch web pages from the internet using the curl command.</p><p>If you do a task repeatedly, Bash can make such a task over within the shortest timeframe. Let’s get started.</p><h3>Creating Variables in Bash</h3><p>Like in any other programming language, the Linux environment variables are constants for a memory location where a value is stored for the configuration and manipulation of the system and displaying additional system information based on the stored value.</p><p>Also, remember that Bash is a weakly typed programming language that doesn’t allow you to define any data type in the variable declaration.</p><p>An example of the format of a variable is &lt;NAME&gt;=&lt;VALUE&gt;</p><p><strong>Declare variables in Bash</strong><br>To begin, let’s start with writing some essential variables.</p><pre>web_url=&quot;https://github.com/the-collab-lab&quot;<br>distro=&quot;Kali Linux&quot;</pre><p><strong>Call a variable</strong><br>Call a declared variable in Bash by using the echo command to print out the variable as an output. Run this command:</p><pre># referencing the value of the variable<br>echo $blog_post_url</pre><pre># OR </pre><pre>echo ${blog_post_url}</pre><p>If you decide you no longer need or want to remove the variable, run this command:</p><pre>unset &lt;name-of-the-variable&gt;</pre><pre># for example</pre><pre>unset blog_post_url</pre><h3>Environment Variables</h3><p>These are standard global environment variables present in a UNIX Shell. Sometimes, environment variables are regarded as exported variables.</p><ul><li><strong>env</strong> : Listing all environment variables</li><li><strong>export</strong>: creating a new variable for the user</li><li><strong>printenv</strong>: Viewing the environment variables using the print command</li><li><strong>read</strong>: getting user input</li></ul><h3>View the Environment Variables</h3><p>The env and <em>printenv</em> commands do similar things as they are responsible for allowing us to see the list or print all environment variables present. Type this in your terminal:</p><pre>env</pre><pre># OR</pre><pre>printenv</pre><p><strong>Result</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*szGiSdq6D7MBYE69.png" /></figure><p>To view each of the environment variables using the print command, run:</p><pre>printenv HOME // the env for HOME user directory</pre><pre>printenv SHELL PWD SESSION_MANAGER // print more than one environment variable</pre><h3>Create an Environment Variable</h3><p>We can set a variable for the Linux environment variable using the export command. The rule of thumb when setting an environment variable is it is temporary.</p><pre>export IP=&quot;80.0.0.1&quot;</pre><pre># Changing the path<br>export PATH=$PATH:~/script</pre><p>To make this permanent, open and modify the .bashrc file. It is a hidden file; create one if it is not in your home directory. Add the previous export command.</p><p>Run this command:</p><pre>vim ~/.bashrc</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*9qgSnhXKx4x75ZY2.png" /></figure><p>Edit this file and add the variable. Doing this will ensure the command is available for use by the system.</p><p>Since we are using Vim to edit the file, to exit and save the file, type:wq</p><p>To save the changes in the .bashrc file, run this command:</p><pre>source ~/.bashrc</pre><h3>How to Read User Input</h3><p>Getting user input in Bash is possible, like in JavaScript, Python, and other programming languages, using the read command to get the value from the user and print the output.</p><p>In your terminal, run this command:</p><pre>read name</pre><p>The command waits for the user to type their name in the terminal.</p><p>Afterward, type this command to get the user input:</p><pre>echo $name // teri</pre><p>Also, you can pass in multiple variable names with the read command like this:</p><pre>read name age city</pre><p>Like the previous, you need to enter the result of the variable with spaces in between them:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*gi_nY2wnDGgiK75K.png" /></figure><p>Not supplying the read command with a variable name, the stored command read is stored as a pre-defined variable called $REPLY. Run this command:</p><pre>read</pre><pre>// type your message as the program waits for you</pre><pre>echo $REPLY // result of the message</pre><p><strong>Displaying a message with the read command</strong><br>To display a message to the user, include the -p flag with the read command, including the variable name after the display message:</p><pre>read -p &quot;Enter your IP address: &quot; ip<br>echo $ip</pre><p><strong>Hide sensitive information</strong><br>The read command is versatile as it can also hide sensitive information from displaying in the terminal as you type. To achieve this, run this command with the -s command:</p><pre>read -s -p &quot;Enter password: &quot; passwd<br>echo $passwd</pre><h3>Creating Your First Script with Bash</h3><p>Running bash script helps with automation and makes the life of developers easier.</p><p>For this example, we will create bash scripts that create a new folder, print out a message within the file, list the folder structure, and ultimately read the file by displaying the message in the file.</p><p>Create a folder in your home directory using the terminal and navigate into the folder.</p><pre>mkdir scripts</pre><pre>cd scripts</pre><p>Using Vim, run this command to create the file for the script with the .sh extension:</p><pre>vim file_script.sh</pre><p>To enable the insert mode, press the i button.</p><p>Copy and paste these lines of code:</p><pre>#!/bin/bash</pre><pre>mkdir -p dir1<br>echo &quot;hello, bash world! writing my first script&quot; &gt; dir1/file.txt<br>tree .<br>cat dir1/file.txt</pre><p>At the top of the file, the “shebang” denoted by #! instructs the operating system to run the script with the /bin/bash executable.</p><p>Save and exit the interactive shell with this command<strong>:wq</strong>. Before then, ensure to press the <strong><em>esc</em></strong> key.</p><p>Since shell scripts are executable files, you need permission to run this file from the owner with this command:</p><pre>chmod 700 name-of-file</pre><pre>chmod 700 file_script.sh</pre><p>Also, you can use this command as well to enable all users to run the script:</p><pre>chmod +x file_script.sh</pre><p>Before running the script and seeing the action, install the tree command:</p><pre>// on macOS using brew<br>brew install tree</pre><pre>// on Ubuntu<br>sudo apt install tree</pre><p>The tree installation will display directories as trees.</p><p>Now, let’s run the script using the path:</p><pre># relative path<br>./file_script.sh</pre><p>Alternatively, you can use the absolute path to run the bash script from the specified folder:</p><pre>/home/teri/Desktop/scripts/file_script.sh</pre><p>Also, you can run it with the bash keyword:</p><pre>bash file_script.sh</pre><p>If you run it with the absolute path or the bash keyword, you do not need to grant permission to the executable script.</p><p>Finally, to make the script executable from any path and folder in the terminal, edit the .bashrc file and include this:</p><pre>export PATH=&quot;$PATH:~/Desktop/scripts&quot;</pre><p>Save and quit the .bashrc file by pressing the esc key and using the :wq. Also, save the changes of the .bashrc file with source ~/.bashrc.</p><p>Run only the file name from anywhere in the home directory, and the script file will execute.</p><p>The result of the program should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*HQymqxHBYcFvY8LD.png" /></figure><h3>Conclusion</h3><p>The Bash CLI is a tool every developer, regardless of expertise or experience, should use daily to make you productive and do fun things only with the terminal. Think of using Bash as a way to use your computer without the beautiful graphical user interface.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a2ee92d939f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bright Data Success Stories: Realizing the Impact of Ethical Web Scraping]]></title>
            <link>https://terieyenike.medium.com/impact-of-ethical-web-scraping-9760a7c2c9a6?source=rss-1f1ca6e70af5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9760a7c2c9a6</guid>
            <category><![CDATA[bright-data]]></category>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[proxy]]></category>
            <dc:creator><![CDATA[Oteri Eyenike]]></dc:creator>
            <pubDate>Mon, 18 Dec 2023 08:00:27 GMT</pubDate>
            <atom:updated>2023-12-18T08:00:27.191Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NlyfR8ca6-g34kse0D_twA.jpeg" /><figcaption>impact of web scraping</figcaption></figure><p>Data exists everywhere, and companies are looking for alternatives to make sense of the volumes of data at their disposal.</p><p>Data collection ethically benefits businesses as it plays a significant role in the company’s success.</p><p>The relevance of web scraping deals with the rights to publicly access or extract data strictly from websites with the primary purpose of not breaching privacy set out by businesses or companies. These guidelines are laws or rules that protect customers’ data, and Bright Data is a GDPR and CCPA complaint.</p><blockquote><em>Bright Data is fully committed to being an ethical and legally compliant data collection network, so we are fully committed to complying with all relevant data protection legal requirements.</em></blockquote><h3>Understanding Ethical Web Scraping</h3><p>As earlier stated, the principles guiding ethical web scraping are all about protecting user data and not misusing data. It is also noteworthy that before you start scraping, you need to know these key definitions and principles associated with ethical web scraping:</p><ol><li>Transparency</li></ol><p>With the help of Bright Data services, it is essential to communicate to users what is permitted and not permitted on company datasets, thereby maintaining the platform’s integrity.</p><p>Additionally, enabling information transparency can help fight crime, social injustice, and hate speech more effectively.</p><p>2. Respect for terms of service (ToS)</p><p>Like every website that takes its data seriously, it needs a <a href="https://brightdata.com/license">service agreement</a> or license that makes scrapers adhere to the terms and conditions set by the website. For any web scraping activities to be limited, users must comply with the website’s regulations, including restrictions and automated access.</p><p>3. Data privacy</p><p>Large datasets must be secured with industry-standard information, security tools, measures, procedures, and strict guidelines to prevent information misuse and data leakage. Data privacy is a strategy any company deploys upon data collection and safeguarding.</p><p>Data privacy entails seeking permission and consent, and there is no privacy if the data of individuals are not anonymized.</p><p>Learn more about <a href="https://brightdata.com/privacy">Bright Data privacy policy</a>.</p><p>In addition, here are some other principles that contribute to the development and practice of ethical web scraping:</p><ul><li>Legal compliance</li><li>Security</li><li>Attribution — giving credit to the source of the scraped data</li><li>Robots.txt compliance — a file on a website that specifies endpoints that cannot be scanned or processed</li></ul><p>A sample of a <em>robots.txt</em> file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*teA7rDFHKGh3pIV1CdJHjw.jpeg" /><figcaption>robots.txt</figcaption></figure><p>Read the 2023 impact report <a href="https://brightdata.com/static/impact_report_2023.pdf?md5=12614685-a2f1304d">on the official Bright Data website</a>.</p><p><strong>Differentiating Ethical and Unethical Practices</strong></p><p>One way to identify unethical practices is by doing the exact opposite of the ethical practices like:</p><ul><li>Security neglect</li><li>No attribution</li><li>Data privacy violations</li><li>Lack of transparency</li><li>Violation of ToS (Terms of Service)</li></ul><h3>How Bright Data Ensures Ethical Practices</h3><p>Bright Data priority is to maintain its frameworks to meet the best legal and regulatory standards based on deterrence, prevention, and enforcement.</p><p>This three-tiered process built around Bright Data core value executive arms ensures the network’s capacity remains safe.</p><p>As the world’s #1 web data platform, Bright Data has a thorough assessment of user compliance and adherence, where every new residential/mobile customer undergoes a rigorous vetting process and requires approval from a compliance officer to ensure alignment with the stringent standards.</p><p>Additionally, Bright Data model is not interested in collecting end-user data as it focuses only on the IP addresses upon opting in or during the entire time a peer is part of the Bright Data Network.</p><h3>Success Stories</h3><p>Telling success stories is based on customer satisfaction and how well-suited the impact has been on the business, leading to substantial results to back it up.</p><p>The real impact of these success stories lies in how different sectors or industries in the world have benefitted, ranging from E-commerce, travel, financial services, security, real estate, and more.</p><p>These stories are like a boost of confidence on why you should <a href="https://brightdata.com/testimonials">get started</a>.</p><ol><li>A company like ClickBus, which deals with bus ticket sales, harnesses the power of web data from Bright Data to keep track of market trends, understand competitor strategies, and determine customer preferences, which resulted in ClickBus offering superior prices and services as well as ensuring customer satisfaction and loyalty.</li><li>According to the marketing analyst of McDonald’s Canada, Amir Yazdi, Bright Data allows it to leverage its tools to gain access to competitor insights from pricing, menu offerings, and distributions, which are all available online.</li></ol><p>Read the <a href="https://brightdata.com/testimonials">comprehensive success stories</a> of Bright Data impact.</p><h3>Final Thoughts</h3><p>Ethical web scraping entails utilizing resources responsibly to avoid harm.</p><p>The impact of Bright Data in the web scraping space is one of the best because of its relevance to making the best business decision and meeting your requirements without worrying about getting denied or blocked, as it does all the heavy lifting for you in an ethical way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9760a7c2c9a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unleash the Power of Bright Data: Boost Your Business with Actionable Insights]]></title>
            <link>https://terieyenike.medium.com/unleash-the-power-of-bright-data-385f91271e81?source=rss-1f1ca6e70af5------2</link>
            <guid isPermaLink="false">https://medium.com/p/385f91271e81</guid>
            <category><![CDATA[bright-data]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[insights]]></category>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[proxy]]></category>
            <dc:creator><![CDATA[Oteri Eyenike]]></dc:creator>
            <pubDate>Sun, 17 Dec 2023 17:49:16 GMT</pubDate>
            <atom:updated>2023-12-17T17:49:16.648Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*90p6jjLXoKRvr3ZA9gdu7Q.png" /></figure><p>Bright Data, as a web data collection platform, offers many exciting features that make web scraping a breeze without worrying about getting blocked by bots. For developers, the platform allows you to use its SDKs to interact and build web scrapers.</p><p>Data is a catalyst for growth and sustainability that has become necessary for businesses, making them valuable because organizations serve customers with accurate and up-to-date information. It boosts performance by identifying market trends, predictive analysis during reports, and understanding the strategy deployed for market entry.</p><blockquote><em>He who rules the data rules the world.</em></blockquote><p>Therefore, actionable insights lead organizations to unparalleled achievements when their solutions are matched with exemplary architecture like Bright Data to boost business performance and give you a competitive edge in the market.</p><p>This article explores the world of transformative data and how it shapes and boosts business with insights like competitive analysis, such as tracking and analyzing competitor performance by product, category, and brand across eCommerce platforms. In addition, this article introduces how businesses operate and make business decisions with the correct data.</p><h3>The power of Bright Data</h3><p>Bright Data is one of the leading proxy networks that is efficient with its robust web scrapers and ready-to-use datasets for download. Here are some reasons to understand the role of Bright Data in providing access to real-time data:</p><ul><li>Real-time decision making</li><li>Enhanced customer understanding</li><li>Competitive advantage</li></ul><p><strong>Real-time decision making</strong></p><p>This process involves the immediate and timely response to publicly available data to the end-user (customers) and the organization. Making good decisions leads to opportunities and identifying trends that improve results. One use case in which <a href="https://brightdata.com/use-cases/healthcare">real-time decision-making applies is in healthcare</a>, where gathering data to track a disease’s spread or monitor the effective distribution of vaccines is crucial to the sustenance and well-being of individuals.</p><p><strong>Enhanced customer understanding</strong></p><p>As a company that offers lots of bespoke services to its numerous clients, especially companies across the world, ranging from E-Commerce, HR tech, financial services, and more, it means only one thing that their customer relations and service are top-notch as they cater to downtime responses and feedback to satisfy customers at all times. Discover Bright Data with many <a href="https://brightdata.com/contact">channels</a> to get to them and offer <a href="https://brightdata.com/blog/why-brightdata/know-your-client">user compliance evaluation</a>.</p><p><strong>Competitive advantage</strong></p><p>In business, competitive advantage varies from company to company depending on many factors like customer reviews, pricing, sales volume, point of sale (PoS), shipping, and many more. Navigating through the Bright Data platform, you are at an advantage to use their performing residential proxies to target hard-to-reach websites and get the information you need, which offers benefits like business intelligence, competitor analysis, and ads verification.</p><p>To get started, check out the <a href="https://help.brightdata.com/hc/en-us/articles/12566880516753">residential proxies guide</a>. Useful for market research and competitive analysis</p><p><em>Bright Data has an </em><a href="https://brightdata.com/products/datasets"><em>extensive template dataset</em></a><em> in its dataset marketplace</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Aa5DvNZycg1YKb6xw-FASw.png" /><figcaption>dataset marketplace</figcaption></figure><h3>Leveraging actionable insights</h3><p>The recent advancement of technology with AI has proven to have many capabilities to learn and make informed data analysis to drive positive outcomes, which means that a business can leverage many of the tools available to improve performance, using trends to make sound business decisions.</p><p>An example of how businesses can leverage actionable insights using Bright Data is understanding customers’ patterns using a website during peak periods of the day. Gathering data is essential as you can turn them into implementing successful campaigns and align your product offerings with market trends and demand.</p><blockquote><a href="https://www.forbes.com/sites/forbestechcouncil/2023/03/27/how-to-make-use-of-the-new-gold-data/?sh=2bc2743a2bbf"><em>According to Forbes</em></a><em>, data is the new gold and is a critical raw material for many digital products and services.</em></blockquote><p>The Bright Data team can guide you<a href="https://brightdata.com/products/insights#popup-184098"> depending on your business goals</a>, as the platform powers the world’s top brands to grow the business and provide secure, scalable, and flexible data management.</p><p>To further understand the impact of Bright Data in the web scraping space, more <a href="https://terieyenike.hashnode.dev/ethical-web-scraping">customer success stories prove the platform’s reliability</a>.</p><h3>Summing it up</h3><p>The world relies on data, which is instrumental to all facets of the economy, no matter how you view it. This is because data drives innovation and creativity when in possession of it.</p><p>The responsibility and control of data should fall in the right hands to build trust, and for the right reasons, it boosts insightful business decisions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=385f91271e81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Living in a Shared Apartment in Lagos: A Six-Month Journey with Liveable and the Reality Check That…]]></title>
            <link>https://terieyenike.medium.com/from-solo-to-shared-adapting-to-a-new-living-experience-in-lagos-13c62e9e0daf?source=rss-1f1ca6e70af5------2</link>
            <guid isPermaLink="false">https://medium.com/p/13c62e9e0daf</guid>
            <category><![CDATA[lagos]]></category>
            <category><![CDATA[shared]]></category>
            <category><![CDATA[apartment-for-rent]]></category>
            <category><![CDATA[living]]></category>
            <category><![CDATA[experience]]></category>
            <dc:creator><![CDATA[Oteri Eyenike]]></dc:creator>
            <pubDate>Mon, 13 Nov 2023 16:15:33 GMT</pubDate>
            <atom:updated>2023-12-17T07:17:01.755Z</atom:updated>
            <content:encoded><![CDATA[<h3>Living in a Shared Apartment in Lagos: A Six-Month Journey with Liveable and the Reality Check That Followed</h3><p>Finally, I left after six months, renting a shared apartment in Lagos with <a href="https://liveable.ng/">Liveable</a>. It operates because the company manages the house for the landlord, so you don’t have any contact with the landlord but with Liveable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*FVCVr1hFZH7Dyi3UGuXt9Q.jpeg" /><figcaption>Maryland, Lagos</figcaption></figure><p>For context, the duration of my rent is supposed to expire in April 2024, but I had to cut it short in October 2023.</p><p>Why?</p><h4>My experience</h4><p>I have heard a lot about this new style of living and wanted to try it, and some companies do it, like <a href="https://spleet.africa/">Spleet</a> and Liveable. In April 2023, I went to inspect the place, which was a studio apartment, and I liked it. A studio apartment is just a room ensuite with a toilet and bathroom.</p><p>I moved to the apartment in June 2023, and what I saw on the ground differed from the excitement I got on my inspection. Reality quickly hit me.</p><p>After two weeks of living there, I quickly thought about why I chose this place on my evening stroll out of the estate. Looking at what I was paying in service charges and monthly power base, calculating annually was just too much for a room with zero value or benefits.</p><blockquote>A rough estimate would amount to the equivalent of more than 1.2m NGN or more than $1k annually just for service charge and power base, plus your room light bill.</blockquote><p>After paying for the power base, which provides light to the general areas like the public parlor, kitchen, and the rest of the house, as well as the powering of the generator, you would still be responsible for recharging your room light bill through a vendor website using a prepaid meter.</p><blockquote>There is a cap to recharge your light units, which is 20,000 NGN every month. In other cases, I could recharge any amount from my bank app when I lived in my former apartment, but it is impossible when you choose to live here.</blockquote><p>The summary of the service charge had unnecessary charges attached to it, which are paid for every month. When you think of it deeply, you will realize that it is not meant to be so because why would I be paying for landscaping of the compound when there are no flowers and other charges like a common area television without a paid cable subscription? The TV is practically switched off, and nobody uses it at all.</p><p>An example of what the service charge entails is below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jPZqkERx-tUA9uj4-frPzQ.jpeg" /><figcaption>The service charge in the Maryland community</figcaption></figure><h4>The kitchen</h4><p>I wouldn&#39;t say I liked living in this converted duplex with two floors because I didn’t have a kitchen in my secluded room. Every day for six months, I went down the stairs from my room to the kitchen to cook my food, and it became tiring at one point. Another thing to note is the movement of people through the kitchen when cooking, as you do not have control over who passes through it. Both workers of the company, contractors, cleaner, and security all use the kitchen as an entrance, making it difficult to leave your food when cooking and stay put till when you are done. This is not the case if you rent your accommodation and you know you can leave the kitchen to do other things, but this can never be the case in the shared apartment.</p><blockquote>The only items present in the kitchen are a burner and a microwave. It looks bare and doesn’t look modern with the well-equipped kitchen you find in a proper home.</blockquote><h4>Controlling what you use</h4><p>You have control of your space if you live in a space like your own 2-bedroom flat with everything within that space. Imagine a situation in this community, as the company calls it: you can’t put anything that belongs to you outside your room. Otherwise, management will call you to order to remove it.</p><p>If you want to set up a workstation as a remote worker outside of your room, the management won’t allow it. You can’t have many properties or run out of space in your small cubicle.</p><h4>Recommendation</h4><p>What can work is having the company build its own house with different units of flats or studio apartments where I do not have to walk through a staircase in the duplex to access my room.</p><p>Most people who came to inspect my place when I wanted to vacate raised issues like they love their kitchen within the space, and the privacy concern is of utmost importance to them. That is where control plays a significant role, as you do not have to go down the stairs to cook a meal. It is a distance.</p><h4>Conclusion</h4><p>The housing situation in Lagos would make people desperate to go for this style of living without critically analyzing the situation of having to pay so much for very little value.</p><p>It was an experience that I wouldn’t recommend to someone I know as the bond is not there, even if they call it a community. Even up to organizing events, people don’t show up, making the experience not exciting and worthwhile.</p><p>I wish you good luck if you decide to take it.</p><p>I have tasted that experience, and lightning won’t strike twice in doing it all over again. Never.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13c62e9e0daf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pre-Generated SDK Libraries That Help You Build Apps Faster]]></title>
            <link>https://medium.com/techtrument/pre-generated-sdk-libraries-that-help-you-build-apps-faster-70ac955e4816?source=rss-1f1ca6e70af5------2</link>
            <guid isPermaLink="false">https://medium.com/p/70ac955e4816</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[sdk]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[appwrite]]></category>
            <dc:creator><![CDATA[Oteri Eyenike]]></dc:creator>
            <pubDate>Thu, 08 Dec 2022 13:36:19 GMT</pubDate>
            <atom:updated>2022-12-08T13:36:19.230Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kHGGVyAQccmeSqJ2CFBQzw.jpeg" /></figure><p>With the advancement of technology, companies are constantly working to create platforms and libraries that would speed the development and deployment of applications through effective systems and efficient testing purposes for developers. Technology companies are adopting pre-generated software development kit (SDK) libraries to make it easier and smoother for developers to integrate and interact with a company’s pre-generated SDK libraries, which takes away the stress from developers building a product from scratch.</p><p>Every product owner wants to ensure that the development of applications is faster using the best methods where clean code is top-notch and meets the requirements of both the stakeholders and users.</p><p>This article will explain the use of pre-generated SDK libraries for building apps faster with reference to <a href="https://appwrite.io/?utm_source=hackmamba&amp;utm_medium=hackmamba-blog">Appwrite</a> as a tool for developers.</p><h3>What is Software Development Kit?</h3><p>According to <a href="https://developerexperience.io/practices/software-development-kit">Developer Experience</a>, SDKs are tools for developers to get the job done. Therefore, SDKs are a set of software tools composed of pre-built code samples provided by software vendors that include libraries that integrate with other platforms from the client side to server applications using the services from the SDK. Most developers have used one SDK or the other without even knowing, tremendously improving the developer experience through its multi-faceted approach with different programming languages.</p><p>SDKs are popular among the developer community as it includes documentation that contains guides on the setup that developers can use to integrate into their apps, code samples, and libraries to suit different programming languages ranging from web and mobile applications to server-side integrations, which make for the acceptance with developers. SDKs also contain testing and debugging tools to help developers identify errors that account for fewer mistakes during development.</p><p>Next, let’s explore the benefits of SDKs and their purpose in meeting the needs of developers.</p><h3>Why are SDKs Beneficial?</h3><p>The benefit of SDKs is that they drastically reduce the development time compared to building a solution from scratch. Without SDKs in the picture, the release of new features takes longer, especially for integrations. That is one reason organizations encourage developers to use what they produce internally to create their apps.</p><h3>SDKs and APIs</h3><p>Several questions arise when the terms SDK and application programming interface (API) are discussed, which needs clarification.</p><ul><li>Is there a connection between an SDK and an API?</li><li>Do they perform the same functions or are they entirely different in providing developers services they can use to speed development?</li></ul><p>APIs are codes that function to connect two software programs. Applications require using APIs, a primary gateway for backend services to communicate to the client-side (frontend) of the web or mobile application, making seamless end-to-end user experience using hypertext transfer protocol (HTTP) protocols to facilitate communication.</p><p>Most SDKs contain HTTP APIs that provide systems to build applications comprised of tools and components of code with the specific purpose of building apps faster.</p><h3>Appwrite and Open-source</h3><p>Appwrite is a secure open-source backend server that allows developers to build applications with its set of API tools and services which is cross-platform and language agnostic, which means it is designed to work with both frontend and backend technologies.</p><p><a href="https://discord.gg/GSeTUeA">The community</a> is a great way to get started. Developers are encouraged to share their work with the community by using the Appwrite set of tools and SDKs to build on top of other platforms and release their app to the community, thereby making the projects known and showcasing the endless possibilities of Appwrite making for more contributors and maintainers to appreciate how SDKs perform optimally with a chosen programming language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4JyVeU07SgKTw6prnJUaUw.png" /><figcaption>Appwrite compatibility</figcaption></figure><p>Furthermore, showcasing these applications by more developers building with <a href="https://appwrite.io/docs/sdks">Appwrite’s SDKs</a> will make the adoption of Appwrite gain popularity with particular attention to businesses wanting to migrate to a better backend-as-a-service which Appwrite will provide, thereby reaching more industry experts with the awareness around the product to grow. It is a win-win for everyone.</p><h3>Conclusion</h3><p>This article covered the benefit of SDKs and how they can act as the building blocks for software products by leveraging their tools to ensure products are built with the provisions to make them widely accepted amongst the developer community.</p><p><a href="https://appwrite.io/?utm_source=hackmamba&amp;utm_medium=hackmamba-blog">The Backend as a Service Platform</a> makes it endearing to many developers as you can get started with the <a href="https://appwrite.io/docs/sdks">SDKs</a>.</p><p>Want to get started quickly building custom applications? SDK is suitable for any developer out there.</p><h3>Learn More</h3><ul><li><a href="https://appwrite.io/docs/getting-started-for-web">Build with Appwrite Web SDK</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70ac955e4816" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techtrument/pre-generated-sdk-libraries-that-help-you-build-apps-faster-70ac955e4816">Pre-Generated SDK Libraries That Help You Build Apps Faster</a> was originally published in <a href="https://medium.com/techtrument">Hackmamba</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Deploy React Apps to Github]]></title>
            <link>https://terieyenike.medium.com/how-to-deploy-react-apps-to-github-16830823a9fa?source=rss-1f1ca6e70af5------2</link>
            <guid isPermaLink="false">https://medium.com/p/16830823a9fa</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Oteri Eyenike]]></dc:creator>
            <pubDate>Mon, 28 Dec 2020 13:06:07 GMT</pubDate>
            <atom:updated>2020-12-28T13:23:19.870Z</atom:updated>
            <content:encoded><![CDATA[<p>Building a React application on your localhost or machine is one of those things we do as developers. After creating that wonderful app on your laptop, you would want the world to see that amazing application live on the world wide web. We are going to use the Create React App (CRA) process to build and deploy our app using Github pages (gh-pages).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zeTp4sCp3cZN1OtXwkd-CQ.png" /></figure><p>Before we begin, you should have a basic understanding of using CRA in setting up the boilerplate for our application.</p><h3><strong>Prerequisite</strong></h3><p>These are some of the nice to have before we start.</p><p><a href="https://github.com/">Github</a> account</p><p>Install <a href="https://git-scm.com/">Git</a> for Mac and Windows PC and <a href="https://support.atlassian.com/bitbucket-cloud/docs/install-and-set-up-git/">set it up</a></p><p>Also make sure that <a href="https://nodejs.org/en/">Node</a> and npm are installed on your PC for installing the dependency, <strong>gh-pages</strong> for deployment.</p><h3>Goals</h3><p>In this tutorial, we will go over the steps of getting your project live on the internet. Here are the links to the demo and source code of the hosted Rolodex page.</p><p>* <a href="https://github.com/Terieyenike/rolodex/blob/master/package.json">Source</a></p><p>* <a href="https://terieyenike.github.io/rolodex">Demo</a></p><h3>Getting started</h3><p><strong>Step 1</strong>:</p><p>For ease of getting started quickly, we would make use of <a href="https://reactjs.org/docs/create-a-new-react-app.html">Create React App</a> to set up the environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FjgfaAwKRmOGcexnZNFHlQ.png" /><figcaption>set up your environment</figcaption></figure><p><strong>Note</strong>: Rolodex is just a name I decided to use for my React app, you can use any name of your choice.</p><p><strong>Step 2</strong>:</p><p>Install the <strong>Github pages</strong> package. This package helps to create a branch (gh-pages) on the created repository on Github to handle the building of our application to its live URL when we are ready to deploy to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6ufnFdrh7c1r_9N0s-rodg.png" /><figcaption>install Github pages</figcaption></figure><p><strong>Step 3</strong></p><p>Add the following properties to the `package.json` file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MDWnD_Xjo2apgiR3_RwuOA.png" /><figcaption>homepage property</figcaption></figure><p>For the <strong>scripts</strong> section of the package.json file, add the following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PVNGX0aPTP0ysp2gpFsCMg.png" /><figcaption>predeploy and deploy properties</figcaption></figure><p><strong>Step 4</strong></p><p>Run the <em>npm run deploy</em> command which creates a build folder and our app for us with all the files necessary for deployments such as HTML, JavaScript, and CSS files.</p><h3>Change the default branch to gh-pages in the repository settings</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/0*Kg7k4LaGALgS8ACv.png" /><figcaption>Change branch to gh-pages</figcaption></figure><p>One very important point to note in the above steps is to commit and push your changes to Github on the same created repository name you used in deploying this application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IKPL5Ba492_PEUfe7bOY2Q.png" /><figcaption>Commit and push your code</figcaption></figure><h3>Conclusion</h3><p>To summarize, we went through the steps in deploying our React application with gh-pages. And with these steps, you can use this method with all your React application you build and simply show the world what you are made of.</p><p>If this helped you in any way, kindly leave feedback. It is always welcome. Reach out to me on <a href="https://twitter.com/terieyenike">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16830823a9fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Process Images with Python PIL]]></title>
            <link>https://medium.com/analytics-vidhya/process-images-with-python-pil-584d5c74e3fb?source=rss-1f1ca6e70af5------2</link>
            <guid isPermaLink="false">https://medium.com/p/584d5c74e3fb</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Oteri Eyenike]]></dc:creator>
            <pubDate>Mon, 28 Sep 2020 14:04:34 GMT</pubDate>
            <atom:updated>2020-12-05T13:34:28.860Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FsHA7QDP1lHoMohR" /><figcaption>Photo by <a href="https://unsplash.com/@szolkin?utm_source=medium&amp;utm_medium=referral">Sergey Zolkin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Have you ever felt stuck trying to convert, resize, apply a filter to images with the aid of a design tool like Photoshop or Illustrator? With Python, we can achieve this with just basic script written in our favourite code editors or IDEs.</p><p>Python is one of the most popular programming languages and it is favoured amongst beginners trying to experiment with their first language. Python provides lots of libraries for image processing but we would focus our attention with Python Imaging Library (PIL). PIL helps to perform basic operations on images like resizing, rotation, creating thumbnails, convert between different file formats etc.</p><p>In this tutorial, we are going to assume you have a basic understanding of Python and its syntax to be able to follow. Before we begin the installation of PIL, ensure you have the latest Python installed on your system python3.</p><h3>Installation</h3><p>The first step in working with image processing is to install the required library, Pillow. We can use pip to install the required library.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*UflyFgJi4a_wT0xIoYjq4Q.png" /><figcaption>In terminal or command line on Windows</figcaption></figure><p>That’s it. Now we can begin.</p><h3>Open, rotate and display and image</h3><p>The following script loads an image, rotate it 90 degrees, and display an image on the default system image viewer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*ETldBDUdIUJ3WpQIh5oiow.png" /></figure><h3>Create thumbnails</h3><p>The thumbnail method, thumbnail() helps to maintain the aspect ratio of images especially when you want it to scale it down/up proportionally. In between the method, enter the dimension you want.</p><p>Something you should take note of is that the thumbnail method doesn’t return a new image, it just modifies the current one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*APQ6YgQ4dO4xPqVVhAJCmg.png" /></figure><h3>Apply filter to images.</h3><p>Here we would sharpen, blur, and smoothen an image based on our preference. With this process, we have to import another module, ImageFilter to the pre-existing Image module used to represent a PIL image.</p><p>Replace BLUR attribute with SHARPEN and SMOOTH to see the changes to the processed image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*POOnlJX4kuppiEK6fZZFtA.png" /></figure><h3>Convert and save</h3><p>We can change the format of an image from one form to another.</p><p>You can either create a new folder or save the image in the same folder where you want to apply the save() method to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*wLv0H_hpEoIdUqKqzsTsJw.png" /></figure><h3>Convert image to grayscale</h3><p>We would be making use of the convert() method to apply changes to an image from its original coloured image to grey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*4otktPAlcUkKuXuoix61YQ.png" /><figcaption>The “L” stands for ‘luminous’</figcaption></figure><h3>Resize image</h3><p>With this method, resize(), you can resize your image with the following script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*AnNCDiSNCRtwywuYY631tQ.png" /></figure><h3>Crop image</h3><p>The crop() method returns a rectangular region from the cropped image. The box is a tuple of the crop rectangle which takes in four input as coordinates, (left, upper, right, lower) represented as figures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*v6qc4VJrS4KypY2gj4r2Dg.png" /></figure><h3>Read the image</h3><p>You can read the image through its various attributes such as mode, size, and format. We can use the Python Print() function.</p><p>Replace the `size` attribute with `filter` and `mode` attributes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*xxinaiZaJby6-SlHRRnUXA.png" /></figure><p>Resources</p><p><a href="https://pillow.readthedocs.io/en/stable/reference/ImageFilter.html">Image effects with PIL(Python Image Library)</a></p><p>That’s it from my end! Remember you can do more exciting things with reading the Pillow documentation and we have barely scratched the surface of endless possibilities we can achieve using this Python library.</p><p>If this helped you in any way, kindly leave a feedback or comment below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=584d5c74e3fb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/process-images-with-python-pil-584d5c74e3fb">Process Images with Python PIL</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build a responsive responsive menu with CSS flexbox and JavaScript]]></title>
            <link>https://terieyenike.medium.com/how-to-build-a-responsive-responsive-menu-with-css-flexbox-and-javascript-5b2860172ee?source=rss-1f1ca6e70af5------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b2860172ee</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[flexbox]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[responsive-web-design]]></category>
            <dc:creator><![CDATA[Oteri Eyenike]]></dc:creator>
            <pubDate>Wed, 29 Apr 2020 18:08:01 GMT</pubDate>
            <atom:updated>2020-04-29T18:11:25.270Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, we would take a deep dive into creating a responsive navigation bar menu using vanilla JavaScript with some basic styling and flexbox. So I would assume you have basic knowledge of HTML, CSS, and little bit of JavaScript. There are lots of tutorials out there on the web teaching you about responsive navigation menu, but I have found this process a lot simpler and faster integrating it to your already existing page.</p><p>This tutorial won’t be focused on media queries for all screen sizes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I_97jB_BiMsoK5DSisN9_w.jpeg" /><figcaption>Photo by Caspar Camille Rubin from Unsplash</figcaption></figure><h3><strong>Getting Started</strong></h3><p>Here’s is the HTML layout</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2c71196e353db2375ee6cfb48298d7ee/href">https://medium.com/media/2c71196e353db2375ee6cfb48298d7ee/href</a></iframe><p>For our HTML, we would be styling our hamburger menu which is the button using pseudo-classes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*8LgIhJf4ITUo9PMKSug35w.png" /></figure><p>You can see that our markup looks so ugly right now but we would be changing that with CSS.</p><p>Let’s add some basic styling to make look nice.</p><pre>*,</pre><pre>*:before,</pre><pre>*:after {</pre><pre>    padding: 0;</pre><pre>    margin: 0;</pre><pre>    box-sizing: border-box;</pre><pre>}</pre><pre>:root {</pre><pre><em>    --darkbg</em>: #222222;</pre><pre><em>    --darklight</em>: #ffeaff;</pre><pre><em>    --red001</em>: #ec0e0e;</pre><pre>}</pre><pre>html {</pre><pre>   height: 100%;</pre><pre>}</pre><pre>body {</pre><pre>    font-size: 16px;</pre><pre>    font-family: Nunito, sans-serif;</pre><pre>}</pre><pre>.hamburger {</pre><pre>    display: flex;</pre><pre>    flex-direction: column;</pre><pre>    justify-content: center;</pre><pre>    align-items: center;</pre><pre>    position: absolute;</pre><pre>    cursor: pointer;</pre><pre>    display: flex;</pre><pre>    height: 50px;</pre><pre>    width: 50px;</pre><pre>    background: var(<em>--darkbg</em>);</pre><pre>    border: 1px solid transparent;</pre><pre>    top: 16px;</pre><pre>    right: 16px;</pre><pre>    z-index: 10;</pre><pre>    transition: border 0.3s ease;</pre><pre>}</pre><pre>.hamburger:active {</pre><pre>    outline: 5px solid var(<em>--red001</em>);</pre><pre>}</pre><pre>.main__nav {</pre><pre>    display: flex;</pre><pre>    flex-direction: column;</pre><pre>    position: absolute;</pre><pre>    justify-content: center;</pre><pre>    align-items: center;</pre><pre>    height: 100vh;</pre><pre>    width: 100vw;</pre><pre>    transition: transform 0.5s ease;</pre><pre>}</pre><pre>.main__nav a {</pre><pre>    color: var(<em>--darkbg</em>);</pre><pre>    font-size: 3rem;</pre><pre>    padding: 0.2em 0;</pre><pre>    margin: 0.6em;</pre><pre>    text-decoration: none;</pre><pre>    border-bottom: 1px solid transparent;</pre><pre>    transition: border-bottom 1s ease;</pre><pre>}</pre><pre>.main__nav a:hover {</pre><pre>    border-bottom: 1px solid var(<em>--darklight</em>);</pre><pre>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nuMdCtkCF6vYyyTnf-Ky6Q.png" /></figure><p>This certainly looks better.</p><p>With the help of CSS, we can strip off the default browser margin and padding using the universal selector(*) and setting box-sizing to border-box which helps the elements on the page to retain its size. I am using CSS variables. They are simply custom variables that contain specific values that can be reused throughout a document. Declaring a variable begins with a double dash( — ).</p><p>For the hamburger menu, it is making use of the absolute positioning to dictate where it should be on the page while declaring its width and height for the size of the menu. CSS transition provides a way to control animation speed when changing CSS properties.</p><p>For accessibility purpose, the <strong>.hamburger:active</strong> just enables us to give the user the ability to know exactly what is being selected.</p><pre>.hamburger::after,</pre><pre>.hamburger::before {</pre><pre>    content: &#39;&#39;;</pre><pre>    height: 20px;</pre><pre>    border-left: 1px solid var(<em>--darklight</em>);</pre><pre>    transform: rotate(90deg);</pre><pre>    margin: -3px;</pre><pre>    transition: transform 0.3s ease;</pre><pre>}</pre><pre>.hamburger--active::after {</pre><pre>    transform: rotate(-135deg);</pre><pre>}</pre><pre>.hamburger--active::before {</pre><pre>    transform: rotate(-45deg);</pre><pre>}</pre><pre>.main__nav {</pre><pre>display: flex;</pre><pre>flex-direction: column;</pre><pre>position: absolute;</pre><pre>justify-content: center;</pre><pre>align-items: center;</pre><pre>height: 100vh;</pre><pre>width: 100vw;</pre><pre>background: var(<em>--darkbg</em>);</pre><pre>transform: translateX(100%);</pre><pre>transition: transform 0.5s ease;</pre><pre>}</pre><pre>.main__nav {</pre><pre>    display: flex;</pre><pre>    flex-direction: column;</pre><pre>    position: absolute;</pre><pre>    justify-content: center;</pre><pre>    align-items: center;</pre><pre>    height: 100vh;</pre><pre>    width: 100vw;</pre><pre>    background: var(<em>--darkbg</em>);</pre><h3><strong>transform: translateX(100%);</strong></h3><pre>    transition: transform 0.5s ease;</pre><pre>}</pre><pre>.main__nav--active {</pre><pre>    transform: translateX(0);</pre><pre>}</pre><p>The pseudo-elements(::before, :: after) for the hamburger menu just helps to transform the border(the two line in between the box) and gives it the ability to rotate to the right-hand side of the page with a transition effect.</p><p>The transform property added to the <strong>.main__nav</strong> helps to push off the navigation links off the page and added back with a transform set to translateX(0) to help reposition the element horizontally on the 2D plane.</p><p>style.css</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e4a982e6a52a3fad68a2d04cbe921edd/href">https://medium.com/media/e4a982e6a52a3fad68a2d04cbe921edd/href</a></iframe><p>Now to the interesting part, JavaScript.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/24fdcee084f78233b7c477df1992d5bd/href">https://medium.com/media/24fdcee084f78233b7c477df1992d5bd/href</a></iframe><p>We would declare our variables and target it element using its id and adding an addEventListener to listen to both the hamburger menu and clicking on any part of the background closes the navbar. After this, invoke the handleNav() function. We are going to use the conditional flow if-else statement in how the menu responds to clicks.</p><p>The first statement simply states that if the nav contains the class name .main__nav — active and are there, they will either add or remove those class names negating it with the is not a (!) symbol or else remove the class name.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Feyenike%2Fembed%2Fpreview%2FdyYzzjW%3Fheight%3D600%26slug-hash%3DdyYzzjW%26default-tabs%3Dcss%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Feyenike%2Fpen%2FdyYzzjW&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fm.cdpn.io%2Fscreenshot-coming-soon-small.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/520a0a67ea17a696646dd78a3d008f5d/href">https://medium.com/media/520a0a67ea17a696646dd78a3d008f5d/href</a></iframe><p>I hope that wasn’t too much to grasp at once. With this process, you can take on any existing and add a navigation menu.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b2860172ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dog App: Using Javascript with an API]]></title>
            <link>https://medium.com/swlh/dog-app-using-javascript-with-an-api-72d944af6773?source=rss-1f1ca6e70af5------2</link>
            <guid isPermaLink="false">https://medium.com/p/72d944af6773</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Oteri Eyenike]]></dc:creator>
            <pubDate>Wed, 29 Jan 2020 09:06:01 GMT</pubDate>
            <atom:updated>2020-09-06T11:02:49.372Z</atom:updated>
            <content:encoded><![CDATA[<p>A very important aspect of working as a developer is connecting to an API to fetch data from a resource called JSON which stands for <strong>Javascript Object Notation</strong>. Some common use cases of JSON include:</p><ul><li>Storing data</li><li>Generating data structures for user input on your app</li><li>Transferring data from server to client. It primarily a back and forth connection. client to server and server to server.</li><li>Configuring and verifying data (GET, POST, PATCH, PUT, DELETE)</li></ul><p>In this tutorial, we are going to make a very simple web app with plain javascript that will retrieve information from an API and display it on the page, client-side.</p><p><a href="https://codepen.io/eyenike/full/PowPVKN">view demo</a></p><p><a href="https://github.com/Terieyenike/dogs-app">source code, Github</a></p><h3>What you need to know</h3><ul><li>Basic knowledge of HTML/CSS.</li><li>Basic knowledge of JavaScript.</li><li>Working with the DOM API.</li><li>Basic knowledge of working with JSON and JavaScript objects from the API.</li></ul><h3>What we would achieve from this tutorial</h3><ul><li>Build a working app that would display various breeds of dogs.</li><li>Show a loading spinner before fetching a new dog image from its API.</li><li>fetch data from the API.</li></ul><p>It will look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FjMrL0aPtoZIppH3HydkAQ.png" /><figcaption>view your favourite dog breed</figcaption></figure><p>Let’s get started.</p><h3>Introduction</h3><p>To begin we would be making use of the HTTP requests to communicate to a publicly available URL endpoint. And the HTTP method we would be using is GET which retrieves a resource. Since our objective is to create a simple web app without the installation of any framework or library boilerplate such as React, Vue etc, we would be using HTML, CSS, and JavaScript.</p><h3>Setting up our working environment</h3><p>We would create this web app with my editor of choice which is vs code. You can use any other IDE which you are comfortable using. Open up editor and in the new directory create index.html and put in the following code below.</p><p>index.html</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>  &lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;<br>    &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;ie=edge&quot; /&gt;<br>    &lt;title&gt;Dogs API&lt;/title&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;main&gt;<br>      &lt;div class=&quot;container&quot;&gt;<br>        &lt;header&gt;<br>          &lt;h1&gt;Dog Viewer&lt;/h1&gt;<br>          &lt;select class=&quot;breeds&quot;&gt;&lt;/select&gt;<br>        &lt;/header&gt;<br>      &lt;/div&gt;<br>      &lt;div class=&quot;img-container&quot;&gt;<br>        &lt;div class=&quot;container&quot;&gt;<br>          &lt;div class=&quot;spinner&quot;&gt;<br>            🐶<br>          &lt;/div&gt;<br>          &lt;img<br>            src=&quot;http://placecorgi.com/260/180&quot;<br>            class=&quot;dog-img show&quot;<br>            alt=&quot;friendly and intimate - man&#39;s best friend&quot;<br>          /&gt;<br>        &lt;/div&gt;<br>      &lt;/div&gt;<br>    &lt;/main&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>From the above code, our app would be focused more on JavaScript and API in connection to making it work with the DOM. To beautify with structural CSS, understanding of CSS flexbox is important as you can copy the code.</p><p>style.css</p><pre>img {<br>  max-width: 100%;<br>  height: auto;<br>}<br><br>a {<br>  text-decoration: none;<br>}<br><br>main {<br>  height: 100vh;<br>  width: 100%;<br>}<br><br>header {<br>  display: flex;<br>  justify-content: space-between;<br>  align-items: center;<br>  position: fixed;<br>  width: 100%;<br>  top: 0;<br>  right: 0;<br>  left: 0;<br>  padding: 5px 40px 0;<br>}<br><br>main .container header h1 {<br>  font-family: Nunito;<br>  font-size: 1.5rem;<br>}<br><br>main .container header select {<br>  font-size: 1.2rem;<br>  padding: 5px;<br>  font-family: Poppins;<br>  text-transform: capitalize;<br>}<br><br>main .img-container {<br>  width: 100%;<br>  margin-top: 5%;<br>  padding: 2em 0;<br>}<br><br>/* animation for the dog spinner */<br>main .img-container .spinner {<br>  font-size: 50px;<br>  animation: spin 2s linear infinite;<br>  display: none;<br>}<br><br>main .img-container .dog-img {<br>  display: none;<br>  width: 80%;<br>  margin: 1em auto;<br>}<br><br>main .img-container .show {<br>  display: block;<br>}<br><br><br>/* rotate the dog spinner 360deg - keyframes */<br>@keyframes spin {<br>  to {<br>    -webkit-transform: rotateZ(360deg);<br>            transform: rotateZ(360deg);<br>  }<br>}<br><br><br>/ * media query */<br><br>@media only screen and (min-width: 320px) {<br>  .container header {<br>    display: flex;<br>    flex-direction: column;<br>  }<br>  .container header h1 {<br>    margin-bottom: 20px;<br>  }<br>}<br><br>@media only screen and (min-width: 650px) {<br>  .container header {<br>    display: -webkit-box;<br>    display: -ms-flexbox;<br>    display: flex;<br>    flex-direction: row;<br>  }<br>}<br><br>@media only screen and (min-width: 875px) {<br>  .container {<br>    max-width: 80%;<br>    margin: 0 auto;<br>  }<br>}<br><br>@media only screen and (min-width: 1600px) {<br>  .container {<br>    max-width: 70%;<br>    margin: 0 auto;<br>  }<br>}</pre><p>Now that we have our HTML and CSS setup, it is time to set up our app.js in the directory of our project.</p><h3>Connecting to the actual API</h3><p>Let’s talk a look at the <a href="https://dog.ceo/api/breeds/list/all">dogs ceo</a> API and explore what it got to offer us as developers to enable us to retrieve its data and use it on the client-side of our app.<br>To get started, go to the <a href="https://dog.ceo/dog-api/documentation/">list all breeds</a> on the website documentation. It will show us the URL of our API endpoint. Clicking on the link will display the object of the dog types.</p><p>app.js</p><pre>const BREEDS_URL = &#39;https://dog.ceo/api/breeds/list/all&#39;;<br><br>const select = document.querySelector(&#39;.breeds&#39;);<br><br>fetch(BREEDS_URL)<br>  .then(res =&gt; {<br>    return res.json();<br>  })<br>  .then(data =&gt; {<br>    const breedsObject = data.message;<br>    const breedsArray = Object.keys(breedsObject);<br>    for (let i = 0; i &lt; breedsArray.length; i++) {<br>      const option = document.createElement(&#39;option&#39;);<br>      option.value = breedsArray[i];<br>      option.innerText = breedsArray[i];<br>      select.appendChild(option);<br>    }<br>    console.log(breedsArray);<br>  });<br><br>select.addEventListener(&#39;change&#39;, event =&gt; {<br>  let url = `https://dog.ceo/api/breed/${event.target.value}/images/random`;<br>  getDoggo(url);<br>});<br><br>const img = document.querySelector(&#39;.dog-img&#39;);<br>const spinner = document.querySelector(&#39;.spinner&#39;);<br><br>const getDoggo = url =&gt; {<br>  spinner.classList.add(&#39;show&#39;);<br>  img.classList.remove(&#39;show&#39;);<br>  fetch(url)<br>    .then(res =&gt; {<br>      return res.json();<br>    })<br>    .then(data =&gt; {<br>      img.src = data.message;<br>    });<br>};<br><br>img.addEventListener(&#39;load&#39;, () =&gt; {<br>  spinner.classList.remove(&#39;show&#39;);<br>  img.classList.add(&#39;show&#39;);<br>});</pre><p>The first thing we did here is to declare a variable to the API endpoint URL which is a constant because we don’t want it to change throughout the development.</p><p>Going back to our index.html, remember our select tag with the class of breeds. Here we would make sure we create a dropdown menu for users to select to change the current image with another.</p><p>Next thing to do is to extract the JSON body content from the response, we use the JSON() method which returns us a promise that resolves to the Response to that request with data from the endpoint.</p><p>A look at the endpoint from the list of breeds API</p><figure><img alt="A look at the API" src="https://cdn-images-1.medium.com/max/556/1*uG4u5UuuE9pwA_Qe4dLUsA.png" /></figure><p>To make it easier working with the object, we can convert it into an array using <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys">Object.keys()</a> to loop it starting at index 0.</p><p>Within the for loop, we can then create an <strong>option</strong> tag that would list out all the dog breeds from the API and then use the innerText and finally append it to the select tag to display results from the API.</p><p>To be able to change each image from the dropdown to display a new image, we need to add an event listener to the select tag from our index.html to individually change our option from the dropdown.</p><p>The last step of this tutorial is to create a function that when you select a name from the dropdown, it first has to load the spinner and remove the image displayed on the screen from our declaration in style.css. From here, it fetches the new image and removes the spinner and displays the new image as a block element in our web app.</p><h3>Conclusion</h3><p>Congratulations on going through this tutorial on using plain JavaScript to connect to an API using HTTP requests. Hopefully, you should have a better understanding and with this method, you can easily fetch and communicates with any public API to fetch its data to display on a website. We did all this without having to worry about anything like Node.js, installing a package(npm), webpack and so on.</p><p>This tutorial is just an easy step by step guide to follow and I hope to you found this useful. I am open to correction and feel free to share.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72d944af6773" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/dog-app-using-javascript-with-an-api-72d944af6773">Dog App: Using Javascript with an API</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>