<?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 KodeHauz Solutions Planet on Medium]]></title>
        <description><![CDATA[Stories by KodeHauz Solutions Planet on Medium]]></description>
        <link>https://medium.com/@KodeHauzTeam?source=rss-a231dd2234cb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SVqa_JO_Zf7vdV2IUDXxVA.png</url>
            <title>Stories by KodeHauz Solutions Planet on Medium</title>
            <link>https://medium.com/@KodeHauzTeam?source=rss-a231dd2234cb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 22:52:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@KodeHauzTeam/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[Deploying a Fullstack Application on EKS Cluster using Helm]]></title>
            <link>https://medium.com/@KodeHauzTeam/deploying-a-fullstack-application-on-eks-cluster-using-helm-2306cd59fe99?source=rss-a231dd2234cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/2306cd59fe99</guid>
            <dc:creator><![CDATA[KodeHauz Solutions Planet]]></dc:creator>
            <pubDate>Wed, 19 Jun 2024 14:35:17 GMT</pubDate>
            <atom:updated>2024-06-19T14:35:17.769Z</atom:updated>
            <content:encoded><![CDATA[<p>As DevOps practices and cultures evolve, the need for cloud computing and containerization becomes more paramount for increased efficiency, and reliability. Currently, Kubernetes has shown to be a market leader in container orchestration providing a robust framework for managing containerized applications at scale.</p><p>In this article, we will go deeper into the world of Kubernetes by deploying a Full-stack application on an EKS Cluster using Helm. Helm is a package management tool for installing and managing Kubernetes applications by employing charts and helping developers improve their workflow.</p><p>In this four part guide, we will explore the key components of considerations involved in deploying full stack applications and a cluster, and by the end of this article, you will have a comprehensive knowledge of how to implement EKS and Helm Charts to manage full stack applications effectively.</p><h3>Project Overview</h3><p>In this project, we will cover the following aspects</p><ol><li>IAM user Setup: This means creating an IAM user on AWS with the necessary permissions to facilitate deployment and management activities.</li><li>Infrastructure as Code (IaC): Use Terraform and AWS credentials to set up the Jenkins Server (EC2 instance) on AWS.</li></ol><p>3. Jenkins Server COnfiguration: We will install and configure essentials on the server. These tools include Jenkins, Docker, Terraform, Kubectl, AWS CLI, Trivy,and Sonarqube</p><p>4. EKS Cluster Deployment: We will use eksctl to create a Kubernetes Cluster on AWS.</p><p>5. EKS Cluster Deployment: We will use eksctl to create a Kubernetes Cluster on AWS</p><p>6. Amazon ECR Repositories: We will use Amazon ECR instead of Dockerhub for our project.</p><p>7. GitOps with ArgoCD: Install ArgoCD for continuous delivery on Kubernetes. Deploy the Frontend, Backend, Database, and Ingress.</p><p>8. Sonarqube and Trivy for Code coverage, and code Analysis.</p><p>9. Monitoring Setup: Implement Prometheus, and Grafana for Monitoring on the Cluster.</p><h3>Prerequisites.</h3><ul><li>An Active AWS account</li><li>Terraform installed on your Local Machine.</li><li>Basic Familiarity with Jenkins, Kubernetes, Docker, and DevOps principles.</li></ul><h3>Steps to Create AWS Credentials</h3><ol><li>Log in to your AWS Console:</li><li>Navigate to IAM:</li><li>Create a New IAM User:</li></ol><ul><li>Set up a new IAM user to configure the necessary permissions for your AWS projects.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*H4lU0Pf_Ok9zMojg" /></figure><p>In the IAM dashboard, select “Users”.</p><ol><li>Create User:</li><li>Provide User Details:</li></ol><ul><li>a. Enter a username for the new user.</li><li>b. Click on “Next”.</li></ul><p>3. Select the Attach Policies directly option, and search for AdministratorAccess then select it.</p><p>4. Click “Next”, then “Create user”.</p><p>5. In the newly created user’s details, navigate to the “Security credentials” tab.</p><ul><li>a. Click on “Create access key”.</li></ul><p>6. Select “Command Line Interface (CLI)”.</p><p>7. Check the confirmation box and click “Yes”.</p><p>8. The credentials will be generated and available for download as a .csv file. Save this file securely on your personal computer.</p><h3>Use Terraform to Install Jenkins</h3><p>To install Terraform and AWS CLI, execute the following commands:</p><h4>Terraform</h4><p>```bash</p><p>wget -O- <a href="https://apt.releases.hashicorp.com/gpg">https://apt.releases.hashicorp.com/gpg</a> | sudo gpg — dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg</p><p>echo “deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] <a href="https://apt.releases.hashicorp.com/">https://apt.releases.hashicorp.com</a> $(lsb_release -cs) main” | sudo tee /etc/apt/sources.list.d/hashicorp.list</p><p>sudo apt update</p><p>sudo apt install terraform -y</p><p>```</p><h4>AWS CLI</h4><p>```</p><p>curl “https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip&quot; -o “awscliv2.zip”</p><p>sudo apt install unzip -y</p><p>unzip awscliv2.zip</p><p>sudo ./aws/install</p><p>```</p><p>Configure AWS CLI</p><p>Run the command below to add your keys</p><p>aws configure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KH5oHUFLJRvhBtbD" /></figure><p>Ensure that both your Frontend and Backend applications are located within the same directory (folder). You can name this directory the “Project Folder</p><h3>Step 3: Deploy the Jenkins Server using Terraform.</h3><ol><li>Within your project folder, create a new directory named Jenkins-Terraform.</li></ol><p>write the backend.tf file. see image below:</p><p>```</p><p>terraform {</p><p>backend “s3” {</p><p>bucket = “ezekiel-bucket-terraform”</p><p>region = “us-east-1”</p><p>key = “Jenkins-Server-TF/terraform.tfstate”</p><p>}</p><p>required_version = “&gt;=0.13.0”</p><p>required_providers {</p><p>aws = {</p><p>version = “&gt;= 4.0.0”</p><p>source = “hashicorp/aws”</p><p>}</p><p>}</p><p>}</p><p>```</p><p>2. Update the bucket name and key with the values configured in your AWS Cloud.</p><p>3. In the provider.tf file, add the AWS provider configuration to specify that the provider you want to work with is AWS. Here’s an example of what your provider. tf file might look like:</p><p>provider “aws” {</p><p>region = “us-east-1”</p><p>}</p><p>4. When it has been configured, Initialize the Terraform folder using the command terraform init- see image below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FXVklBa6PPePzEod" /></figure><p>Once the Terraform folder has been initialized, proceed to add other resources necessary.</p><p>First, we create our iam-role.tf</p><p>resource “aws_iam_role” “iam-role” {</p><p>name = var.iam-role</p><p>assume_role_policy = &lt;&lt;EOF</p><p>{</p><p>“Version”: “2012–10–17”,</p><p>“Statement”: [</p><p>{</p><p>“Effect”: “Allow”,</p><p>“Principal”: {</p><p>“Service”: “ec2.amazonaws.com”</p><p>},</p><p>“Action”: “sts:AssumeRole”</p><p>}</p><p>]</p><p>}</p><p>EOF</p><p>}</p><p><strong>5. Next, we will set up the Instance Profile, which the EC2 instance will use.</strong></p><p>Stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2306cd59fe99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[15 Most Important Features to consider in choosing a Web Host]]></title>
            <link>https://medium.com/kodehauz/15-most-important-features-to-consider-in-choosing-a-web-host-77e1a22d6883?source=rss-a231dd2234cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/77e1a22d6883</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[bandwidth]]></category>
            <category><![CDATA[web-hosting]]></category>
            <category><![CDATA[data-storage]]></category>
            <category><![CDATA[domains]]></category>
            <dc:creator><![CDATA[KodeHauz Solutions Planet]]></dc:creator>
            <pubDate>Wed, 14 Feb 2018 02:24:43 GMT</pubDate>
            <atom:updated>2018-02-14T02:24:43.057Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*PVUb-6YmRgq7yOpl." /></figure><p>As a web designer, we don’t just design a site to stay permanently in our own computers: we push them up to the web for public accessibility and traffic. Choosing a web host could be confusing and difficult if you don’t know features to look out for. As such, I decided to share what i consider as the most vital features to look for while considering choosing a web host.</p><p><strong>1.AMOUNT OF STORAGE</strong><br> When choosing a web host, the storage capacity for site files and database is primary. The storage space for a professional organization will not be the same for a news agency because of the amount of content they will be uploading on daily basis. Small and medium scale websites can be satisfied with 10GB. Analyzing your needs will guide you in choosing the webhost that better satisfies it.</p><p><strong>2. AMOUNT OF BANDWIDTH</strong><br> Bandwidth and storage goes hand in hand. Bandwidth is the amount of data that your host will allow to be uploaded and downloaded (cumulatively) in a given month. For instance, if your monthly allowance is 10MB and you use 2MB to upload your site, you have used up two MB of your bandwidth and you’ll be left with 8MB and supposing your site visitors uses 1MB each to either upload or download from your site, then only 8 visitors will be interacting with your site and your host might decide to either bar the rest or charge you for the extra bandwidth used.</p><p><strong>3. NUMBER OF DOMAINS AND SUBDOMAINS</strong><br> Once you have a site running, there is a tendency that you’ll launch a second and a third and much more… managing these hostings with different account could be boring and stressful. Therefore, choosing a web host that allows multiple domains is recommended. Also ensure that their limits satisfies your needs. You should be able to add domains and sub-domains from your administrative dashboard.</p><p><strong>4. EMAIL ACCOUNTS AND FEATURES</strong><br> Email account is a necessary feature in modern web interactions. Your site will need a site-based email service. Depending on the number of email addresses you will want to set up, your host should accommodate that. You should consider their selections for receiving the mail, apps integration, webmail interface, email client: IMAP or POP.</p><p><strong>5. DATABASE SUPPORT</strong><br> Content Management Systems are popular tools in modern web systems and it works with a database. It is ideal to choose a database that you are conversant with or that best suits your program. Most hosts offers MySQL and that suits popular demands but if you’d prefer Oracle, SQL Server, PostsgreSQL or another, don’t settle for less.</p><p><strong>6. FRAMEWORK SUPPORT AND SITE-BUILDERS</strong><br> Support for popular frameworks and easy to install feature should be provided by your host. Moreso, you web host should provide the tools such as templates and site-builders drag and drop functionality to help you create a professional-looking website without the need to hire a professional designer.</p><p><strong>7. UP-TIME</strong><br> uptime is a factor not to joke with. You have to ensure that your visitors access your site whenever they try. Find our how reliable your prospective host is. You can do a background check on them, google and see what reviewers and users say about them.</p><p><strong>8. TECHNICAL SUPPORT</strong><br> It is very important to know your web host technical support effectiveness and efficiency. What medium is available to reach them? Phone, email, others? At what times of the day can they be reached? How long would it take to be responded? Do they have a live chat? Do they have a blog or library or how-to articles/tutorials?<br> The modern platforms also offer educational tools like video tutorials to help you get started if you’re new to the service, and user forums where you can seek help for specific problems once your website is up and running.<br> When choosing a web host, make sure you can easily and conveniently access the technical team.</p><p><strong>9. SHELL ACCESS/CRON JOBS</strong><br> For professional web developers, shell access is an essential feature. The ability to log into the server from the command line over ssh, copying files, changing permissions, installing plugins and other tasks. If you need this feature, you have to have it. Cron is a time-based job scheduler used to perform tasks on the server at given times. Cron jobs are great feature to have on your web host and its mostly follows shell access.</p><p><strong>10. .HTACCESS FILES</strong><br> .htaccess file is a configuration file used by Apache server. It is used to password protect directories, re-write URLs, redirect pages and more. The ability to add your own .htaccess files to your directories should be sought for.</p><p><strong>11. PROGRAMMING LANGUAGE SUPPORT</strong><br> Support for server-side languages you want to use. If you have plans to pick up Ruby on Rails, ensure its on the list of supported frameworks. Python support and others gives you flexibility on your installations.</p><p><strong>12. SITE BACKUP</strong><br> No web host is less susceptible to data loss. Servers are just big computers that everyone can read files from. Your site files and databases has to be backed-up. You have to know the backup options your host provide. If there is no back-up option from your host, you have to figure out how to backup your files.</p><p><strong>13. CHOICE OF OPERATING SYSTEM</strong><br> For most site builders, OS won’t be an issue. But say you are developing in ASP.NET, you’ll need windows hosting which is a little harder to find and could be a bit more expensive. However, if you are using open source language, you won’t need worry about which Linux/Unix distribution you’ll get though your host may give you the option of choosing.</p><p><strong>14. UP-TO-DATENESS</strong><br> Inquire about the software versions your hosting company offers. Some host will give you the option of choosing which version to use while others may not have the latest versions of the softwares. For instance you want to upgrade your site from Drupal 7 to 8 and 8 requires PHP 5.6 or higher and your host hasn’t upgraded, you’ll be stucked.</p><p><strong>15. SITE STATISTICS</strong><br> Your web host should provide statistical tools to help you keep tabs on your site’s current status and performance. Details of how much traffic your website is generating, how much disk space is used up, the number of active subdomains, the number of databases you have set up etc should be available at a glance. Before you choose a host, ensure that it provides information you need.</p><p><strong>EXTRA APPLICATIONS</strong><br> Compare the extra applications and functionality of different web host and see what makes them different before deciding the one to go for. Flexibility in their options and following industrial trends is a good choice for functioning and growing investment.</p><p>First published in <a href="http://kodehauz.com/blog/15-most-important-features-consider-choosing-web-host">kodehauz</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77e1a22d6883" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kodehauz/15-most-important-features-to-consider-in-choosing-a-web-host-77e1a22d6883">15 Most Important Features to consider in choosing a Web Host</a> was originally published in <a href="https://medium.com/kodehauz">kodehauz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 reasons to have a professional company website]]></title>
            <link>https://medium.com/kodehauz/10-reasons-to-have-a-professional-company-website-20751f898509?source=rss-a231dd2234cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/20751f898509</guid>
            <category><![CDATA[website]]></category>
            <category><![CDATA[marketing-strategies]]></category>
            <category><![CDATA[professional-development]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[KodeHauz Solutions Planet]]></dc:creator>
            <pubDate>Wed, 14 Feb 2018 02:20:36 GMT</pubDate>
            <atom:updated>2018-02-14T02:20:36.005Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*hgx0ZllbgWJwiw3I." /></figure><p>In this Information age and advanced technologies, undermining the relevance of a company website with excuses such as: ‘A website is not necessary, a website isn’t within my budget, my company don’t use computers for operation neither do my potential clients/customers’ are all misconceptions. No matter the size or status of your business, it is greatly beneficial to own a professional website. With the growing number of smartphone users in the World, imagine the audience and publicity your products/services will gain. here i present you with 10 reasons to have a professional company website .</p><h3>Below are 10(ten) useful reasons and benefits of having a professional website:</h3><h4>1. Makes your company accessible:</h4><p>A website is available to your regular customers as well as potential customers at any moment of the day providing them with the convenience of reviewing your products and services when your office or store is closed. In today’s business nature, it aids in making a purchase decision.</p><h4>2. Exposes your business to a wider market:</h4><p>Irrespective of the nature of your business, your professional website will provide an alternative location to sell them. As a retailer, an eCommerce website is a great platform to sell your products to a wider market. Services can be made available globally too. Everything and anything is marketable in an online platform.</p><h4>3. Improved customer service:</h4><p>You may have tips to share on how to recycle some products, the dos and don’ts of new arrivals etc. By creating a FAQ page on your site, adding articles or publishing newsletters to answer all your customers’ questions can keep your customers up-to-date.</p><h4>4. Increased confidence in your services:</h4><p>Creating an interactive page for reviews and comments on your products will enhance and improve your customers’ confidence in your products/services.</p><h4>5. Saves time in disseminating information:</h4><p>Providing information to your customers could take time whether it’s on-phone conversation, face-to-face interaction, publishing in a brochure or by email. With an online catalogue, information about your products and services will be accessible by your customers and prospective customers faster.</p><h4>6. Keeps your customers and prospective customers Informed:</h4><p>Your website will serve as an online brochure or catalogue. It’s much easier and quicker to update information about your products and services on your website than in print material, making it very effective in informing your customers about the latest arrivals, special promotions, new services, upcoming events etc. unlike print media which is quickly outdated, your website provides most current information and news about your product and services.</p><h4>7. A website saves your company money on adverts:</h4><p>Small business owners may think they can’t afford a professional website but it necessary to have one. The cost of designing a website varies. It depends on the complexity of the design, software, skill level, company and other factors. Compared with the cost of newspaper Ad and considering the benefit of reaching of owning a website, it is very cost effective to promote your business with a website. Small business owners can afford a simple, less complex professional website.</p><h4>8. Gives credibility to your company:</h4><p>In this information age, the massive availability of smartphones and affordable internet subscription has boosted the relevance of professional website for companies. Consumers uses the internet to search for the products or services they need. With a company website, your business will gain credibility. Without a website, potential customers will go to your competitors available online.</p><h4>9. Promotes your brand</h4><p>With a professional looking website, your products/services will be modelled to look more interesting and appealing to your customers and prospective clients and will aid in promoting your brand.</p><h4>10. Increase Sales and Profit:</h4><p>Wider coverage implies more customers and prospective customers. And that will increase sales and profit. In a competitive market, owning a professional business website keeps you ahead of your competitors.</p><p>Having a professional business website is very essential and beneficial in this technological age. If you already have a “home-made” business website, having it professionally redesigned will provide your business with a professional image which will inspire even greater confidence.</p><p>First published in <a href="http://kodehauz.com/blog/10-reasons-have-professional-company-website">kodehauz</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20751f898509" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kodehauz/10-reasons-to-have-a-professional-company-website-20751f898509">10 reasons to have a professional company website</a> was originally published in <a href="https://medium.com/kodehauz">kodehauz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Drupal 8: How to hide upcoming events in views after event or specific date]]></title>
            <link>https://medium.com/kodehauz/drupal-8-how-to-hide-upcoming-events-in-views-after-event-or-specific-date-e45b45bf6e11?source=rss-a231dd2234cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/e45b45bf6e11</guid>
            <category><![CDATA[drupal-modules]]></category>
            <category><![CDATA[modules]]></category>
            <category><![CDATA[drupal-8]]></category>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[cms]]></category>
            <dc:creator><![CDATA[KodeHauz Solutions Planet]]></dc:creator>
            <pubDate>Wed, 14 Feb 2018 02:16:38 GMT</pubDate>
            <atom:updated>2018-02-14T02:16:38.384Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*gGJ02EnLP8VZ0gX2." /></figure><p>Best use cases to hide upcoming events in views after event or specific date in Drupal 8 would be creating an upcoming event views block and page without the Calendar module. After the event has passed, it’s necessary for the event to be unpublished from views display.</p><p>I want to assume you know how to create content types, add fields and create views blocks and pages.</p><p>Views Module in Drupal CMS is one of the most popular and powerful tool in building website with Drupal.</p><p>Requirement:</p><ol><li>Views Module (in core)</li><li>Date Module (in core)</li></ol><h4>To make event post automatically hide in views display after event date or specified date:</h4><ol><li>Create a <strong>date field</strong> in your upcoming event content type.</li><li>In your views settings, click <strong>add </strong>on the <strong>filter criteria</strong> option</li><li>Search for <strong>event date</strong> (or whatever you named your date field in content type)</li><li>Click <strong>apply </strong>(leave for all displays to be applied to all views display)</li><li>In the <em>operator region</em>, select <strong>is greater than</strong>, value type: <strong>now</strong>.</li><li>Click <strong>Save</strong>.</li></ol><p>First published in<a href="http://kodehauz.com/blog/drupal-8-how-hide-upcoming-events-views-after-event-or-specific-date"> kodehauz</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e45b45bf6e11" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kodehauz/drupal-8-how-to-hide-upcoming-events-in-views-after-event-or-specific-date-e45b45bf6e11">Drupal 8: How to hide upcoming events in views after event or specific date</a> was originally published in <a href="https://medium.com/kodehauz">kodehauz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laravel 5.4 error: Specified key was too long]]></title>
            <link>https://medium.com/kodehauz/laravel-5-4-error-specified-key-was-too-long-f9464633212b?source=rss-a231dd2234cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9464633212b</guid>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[error-handling]]></category>
            <category><![CDATA[mariadb]]></category>
            <category><![CDATA[laravel-5]]></category>
            <dc:creator><![CDATA[KodeHauz Solutions Planet]]></dc:creator>
            <pubDate>Wed, 14 Feb 2018 02:13:00 GMT</pubDate>
            <atom:updated>2018-02-14T02:13:00.717Z</atom:updated>
            <content:encoded><![CDATA[<p>Laravel 5.4 made a change to the default database character set, and it’s now utf8mb4 which includes support for storing emojis (ideagrams and smileys used in electronic messages and web pages). This only affects new applications and as long as you are running MySQL v5.7.7 and higher you do not need to do anything.</p><p>But for those running MariaDB or older versions of MySQL you may hit this error when trying to run migrations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BWWX5yFE5kkh5BUC.jpg" /></figure><p>As outlined in the Migrations guide, to fix this all you have to do is edit the <strong>“<em>AppServiceProvider.php”</em></strong> file.</p><p><strong>Step 1:</strong> Locate the file by browsing through the directory as thus <strong>app/Providers/AppServiceProvider.php</strong></p><p><strong>Step 2: </strong>Locate the <strong>boot</strong> method and set a default string length to any preferred value, but the value shouldn’t exceed 255 which is the maximum character value for varchar data type.</p><p><strong>Below shows a sample code</strong></p><pre><strong>use</strong> <strong>Illuminate</strong>\<strong>Support</strong>\<strong>Facades</strong>\<strong>Schema</strong>;<br><strong>public</strong> <strong>function</strong> <strong>boot</strong>()</pre><pre>{<br>    Schema::defaultStringLength(200);<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/0*xG9qRvPScWKyfWM1.jpg" /></figure><p>After that everything should work perfectly.</p><p><strong>Method 2, will be discussed in our next blog post.</strong></p><p>First published in <a href="http://kodehauz.com/blog/laravel-54-error-specified-key-was-too-long">kodehauz</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9464633212b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kodehauz/laravel-5-4-error-specified-key-was-too-long-f9464633212b">Laravel 5.4 error: Specified key was too long</a> was originally published in <a href="https://medium.com/kodehauz">kodehauz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using the Superfish dropdown menu in Drupal 8]]></title>
            <link>https://medium.com/kodehauz/using-the-superfish-dropdown-menu-in-drupal-8-bbbe4b1f9a83?source=rss-a231dd2234cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbbe4b1f9a83</guid>
            <category><![CDATA[drupal-8]]></category>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[configuration]]></category>
            <category><![CDATA[drupal-development]]></category>
            <dc:creator><![CDATA[KodeHauz Solutions Planet]]></dc:creator>
            <pubDate>Wed, 14 Feb 2018 02:09:29 GMT</pubDate>
            <atom:updated>2018-02-14T02:09:29.991Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*cX89x8b1sLf23jPl." /></figure><p>Superfish is a smart and flexible module for creating nice, responsive and flexible dropdown menus. With just a few clicks, you can get everything set up.</p><p>Alright, let’s see how we can get this done and set it up to work just the way we want it by following these steps:</p><ul><li>Go to the ‘<strong><em>Superfish’</em></strong> project page on drupal.org (https://www.drupal.org/project/superfish), and download both the Drupal module and the javascript library from the links on the page.</li><li>Unzip the downloaded JS library and rename the top-level directory to ‘<strong>superfish’</strong>. Then move the folder to your Drupal 8 /<strong>libraries</strong> directory.</li><li>Extract the superfish Drupal module into D8 <strong>/libraries</strong> directory.</li><li>Proceed to your Drupal site and enable superfish. From the admin menu, click <strong><em>Extend</em></strong>, search for ‘<strong>superfish’</strong>, click the checkbox to enable, then press the <strong><em>Install</em></strong> button.</li></ul><p>To create a superfish menu, you must create a superfish block instance in the region where you want the menu to appear.</p><ul><li>Go to <strong>block layout<em> (Structure</em></strong> &gt; <strong><em>Block layout)</em></strong>. Click <strong><em>place block</em></strong> in any of the desired regions to add a <strong>superfish</strong> block.</li><li>From the pop-up window, locate blocks with category ‘<strong>superfish’</strong>.</li><li>Click <strong><em>place block</em></strong> next to the desired block.</li><li>Adjust settings in the <strong>Configure block window</strong>. Most times the default settings are adequate.</li><li>Click <strong><em>Save block </em></strong>to apply block settings</li></ul><p>You can now browse to your front page and confirm that your superfish menu is fully functional.</p><p>If it doesn’t work properly, ensure that the JS library is located in the correct folder and is correctly named.</p><p>First published in <a href="http://kodehauz.com/blog/using-superfish-dropdown-menu-drupal-8">kodehauz</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbbe4b1f9a83" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kodehauz/using-the-superfish-dropdown-menu-in-drupal-8-bbbe4b1f9a83">Using the Superfish dropdown menu in Drupal 8</a> was originally published in <a href="https://medium.com/kodehauz">kodehauz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Dusk Till Dawn]]></title>
            <link>https://medium.com/kodehauz/from-dusk-till-dawn-5d9c4f7772c6?source=rss-a231dd2234cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d9c4f7772c6</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[laravel-dusk]]></category>
            <category><![CDATA[assertiveness]]></category>
            <dc:creator><![CDATA[KodeHauz Solutions Planet]]></dc:creator>
            <pubDate>Wed, 14 Feb 2018 02:03:35 GMT</pubDate>
            <atom:updated>2018-02-14T02:03:35.276Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*VbYvKXCh24r3iEBC." /></figure><p>Writing website tests in Laravel could generally follow a simple algorithm: Write tests -&gt; Run tests (kudos to phpunit) -&gt; evaluate the output message -&gt; Repair or restructure the main code. Generally, while doing unit tests, everything is close to perfect. However, browser tests (feature tests) are a different ball game.</p><p>Previously Laravel used the Symfony BrowserKit component to simulate the behaviour of a web browser. This enabled programmers to test their code interactively, by clicking on links, filling forms, asserting that some entity is present on the webpage or not, filling forms etc.</p><p>WHAT DOES LARAVEL DUSK DO?</p><p>Overtime, with more programmers using JavaScript and AJAX to load their webpages, the BrowserKit became limited. Something had to be done. With the introduction of Laravel 5.4 came the Dusk… the solution to this problem.</p><p>Laravel Dusk offers browser automation and testing API at a different level. It is easy to use and highly redolent in its applications while solving the challenge of end-to-end testing of JavaScript applications.</p><p>Dusk utilizes ChromeDriver and Facebook PHP-Webdriver for doing end-to-end tests. It can work with any Selenium browser, but it comes with ChromeDriver by default which will save you from installing JDK or Selenium. An additional feature of Dusk is that it saves screenshots of failed tests automatically! You can see what the page looked like and what went wrong.</p><p>RUNNING LARAVEL DUSK</p><p>Laravel Dusk is installed by adding the Composer dependency “laravel/dusk” to your project. Underneath are screenshots on the processes for Dusk installation.</p><p>Installation: Step 1</p><p>To get started, you should add the laravel/dusk Composer dependency to your project:</p><pre>composer <strong>require</strong> --dev laravel/dusk</pre><p>Once Dusk is installed, you should register the Laravel\Dusk\DuskServiceProvider service provider. You should register the provider within the register method of your AppServiceProvider in order to limit the environments in which Dusk is available, since it exposes the ability to log in as other users:</p><pre>use Laravel\Dusk\DuskServiceProvider;</pre><pre><em>/**<br> * Register any application services.<br> *<br> * @return void<br> */</em><br><strong>public</strong> function <strong>register</strong>()<br>{<br>    <strong>if</strong> ($<strong>this</strong>-&gt;app-&gt;environment(&#39;local&#39;, &#39;testing&#39;)) {<br>        $<strong>this</strong>-&gt;app-&gt;register(DuskServiceProvider::class);<br>    }<br>}</pre><p>Installation Step 2</p><p>Next, run the dusk:install Artisan command:</p><pre>php artisan dusk:install</pre><p>A Browser directory will be created within your tests directory and will contain an example test. Next, set the APP_URL environment variable in your .env file. This value should match the URL you use to access your application in a browser.</p><p>To run your tests, use the dusk Artisan command. The dusk command accepts any argument that is also accepted by the phpunit command:</p><pre>php artisan dusk</pre><p>To run your Dusk test, you will not use PHPUnit directly. Instead, you will call a Dusk artisan command (artisan dusk) which will proxy down to PHPUnit and backup your <strong>.env</strong> file. Then, it will move the <strong>.env.dusk</strong> file to be the environment being used for your Dusk test. When finished, it will restore your real <strong>.env</strong> file back to its place.</p><p>Below, we have a test code snippet for a website I was testing:</p><pre><strong>&lt;?php</strong></pre><pre><strong>namespace</strong> <strong>Tests</strong>\<strong>Browser</strong>;</pre><pre><strong>use</strong> <strong>Tests</strong>\<strong>DuskTestCase</strong>;<br><strong>use</strong> <strong>Laravel</strong>\<strong>Dusk</strong>\<strong>Browser</strong>;<br><strong>use</strong> <strong>Illuminate</strong>\<strong>Foundation</strong>\<strong>Testing</strong>\<strong>DatabaseMigrations</strong>;</pre><pre><strong>class</strong> <strong>ExampleTest</strong> <strong>extends</strong> <strong>DuskTestCase</strong><br>{<br>    <strong>use</strong> <strong>DatabaseMigrations</strong>;<br>    <em>/**<br>     * A basic browser test example.<br>     *<br>     * @return void<br>     */</em><br>    <strong>public</strong> <strong>function</strong> <strong>testBasicExample</strong>()<br>    {</pre><pre>        $this-&gt;browse(<strong>function</strong> (Browser $browser)  {<br>        $browser<br>            -&gt;visit(&#39;/&#39;)<br>            -&gt;assertSee(&#39;IIRS&#39;)<br>            <em>//Tests for visual sightings on the IIRS homepage</em><br>            -&gt;assertSee(&#39;How it works&#39;)<br>            -&gt;assertSee(&#39;HOME&#39;)<br>            -&gt;assertSee(&#39;DOCUMENTATION&#39;)<br>            -&gt;assertSee(&#39;CONTACT&#39;)<br>            -&gt;assertSee(&#39;LOGIN&#39;)<br>            -&gt;assertSee(&#39;SIGN UP&#39;)<br>            -&gt;assertSee(&#39;CONTACT US&#39;);</pre><p>More info from</p><p><a href="https://laravel.com/docs/5.4/dusk">https://laravel.com/docs/5.4/dusk</a></p><p><a href="https://laravel-news.com/">https://laravel-news.com</a></p><p>First published in <a href="http://kodehauz.com/blog/dusk-till-dawn-0">kodehauz</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d9c4f7772c6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kodehauz/from-dusk-till-dawn-5d9c4f7772c6">From Dusk Till Dawn</a> was originally published in <a href="https://medium.com/kodehauz">kodehauz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Loads of Stuff]]></title>
            <link>https://medium.com/kodehauz/loads-of-stuff-c6a2fb52dd9a?source=rss-a231dd2234cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6a2fb52dd9a</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[asynchronous]]></category>
            <dc:creator><![CDATA[KodeHauz Solutions Planet]]></dc:creator>
            <pubDate>Wed, 14 Feb 2018 01:58:17 GMT</pubDate>
            <atom:updated>2018-02-14T01:58:17.905Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*ND5cGGujHbimh7rP." /></figure><p>While using my android phone in the past, I have been skeptical about using some features initially there to make me more comfortable. One of these features was the Auto Rotation feature. While this feature is on, my smartphone usage is the bomb because by rotating the screen, I can easily view a picture from a different dimension, watch YouTube videos in full screen, and maximize the UI of various mobile applications.</p><p>So why do I toggle the Auto rotation off? Apart from the convenience I get when I press my phone while lying down, some Apps just seemed to load forever (or reload when the screen rotates) and the phone becomes slower. A few weeks into my Android course, I came to the conclusion that those were just poorly programmed mobile apps.</p><p><strong>AsyncTask</strong></p><p>Without being too technical, let us discuss AsyncTask. AsyncTask is a class that allows you to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers. AsyncTask is majorly used for performing operations that last only a few seconds. Operations in this category could include connecting to a website and uploading or downloading content. An asynchronous task has four main steps: onPreExecute, doInBackground, onProgressUpdate and onPostExecute. When an asynchronous task is executed, the task goes through 4 steps:</p><ol><li>onPreExecute(), is invoked on the UI thread before the task is executed. This step is normally used to setup the task.</li><li>doInBackground(Params…), is invoked on the background thread immediately after onPreExecute() finishes executing. This step is used to perform background computation that can take a long time. (Params… is one of the three generic types of the AsyncTask class). The parameters of the asynchronous task are passed to this step. The result of the computation must be returned by this step and will be passed back to the last step. This step can also use publishProgress(Progress…) to publish one or more units of progress (Progress is the second generic type associated with the AsyncTask).</li><li>onProgressUpdate(Progress…), invoked on the UI thread after a call to publishProgress(Progress…). The timing of the execution is undefined. This method is used to display any form of progress in the user interface while the background computation is still executing. For instance, it can be used to animate a progress bar or show logs in a text field.</li><li>onPostExecute(Result), is invoked on the UI thread after the background computation finishes (Result is the third generic type of the AsyncTask class). The result of the background computation is passed to this step as a parameter.</li></ol><p>Consider an app that is opened, the AsyncTask class with its method are called, say, to download information from a website. Whenever the phone is rotated, a new activity gets created from the scratch, so does a new AsyncTask method. This means that the activity that was being loaded prior to that will be kept in the memory till the activity finally ends (Rotating the phone is akin to sending data requests). This means that the activity starts loading again when the phone is rotated and the updates from the initial loading action are no longer useful. This is a major memory leak (I‘ll write more on that soon). Imagine a case where the phone is rotated multiple times, the memory used up will be massive (Little wonder!).</p><p><strong>Why use Loaders?</strong></p><p>Loaders play a major role in the efficiency and sustainability of android mobile applications. When using loaders, no matter how many times data is requested from a loader, the loader fetches data only once. When an activity shuts down, the loaders will quit as the data will not be used. Loaders also monitor the source of their data and deliver new results when contents change. Loaders, alongside the LoadManager, provide an abstract class called AsyncTaskLoader to perform the background tasks more efficiently. A simple implementation of the AsyncTaskLoader is given below:</p><p><strong>AsyncTaskLoader Implementation</strong></p><pre><strong>public</strong> <strong>class</strong> <strong>EarthquakeLoader</strong> <strong>extends</strong> <strong>AsyncTaskLoader</strong>&lt;<strong>List</strong>&lt;<strong>Quake</strong>&gt;&gt; {<br>    <strong>private</strong> String murl;<br>    <em>/** Tag for log messages */</em><br>    <strong>private</strong> <strong>static</strong> <strong>final</strong> String LOG_TAG = EarthquakeLoader.class.getName();</pre><pre>    <strong>public</strong> EarthquakeLoader (Context context, String url) {<br>        super(context);<br>        murl = url;<br>    }<br><em>//Start loading method</em><br>    @Override<br>    <strong>protected</strong> void onStartLoading(){<br>        forceLoad();<br>    }<br><em>//Load in background method</em><br>    @Override<br>    <strong>public</strong> <strong>List</strong>&lt;Quake&gt; loadInBackground() {<br>        <em>// Don&#39;t perform the request if there are no URLs, or the first URL is null.</em><br>        <strong>if</strong> (murl == <strong>null</strong>) {<br>            <strong>return</strong> <strong>null</strong>;<br>        }</pre><pre>        <strong>List</strong>&lt;Quake&gt; earthquakes = Query.fetchEarthquakeData(murl);<br>        <strong>return</strong> earthquakes;<br>    }<br>}</pre><p>Generally, Loaders prevent apps from crashing due to multiple screen orientation changes. Loaders also helps the programmer to exercise better control mechanism over the app by managing the lifecycle of the activities.</p><p>Finally, while an AsyncTask lives as long as the Task exists even if the activity dies, the loaders are tied to the Activity Lifecycle.</p><p>First published in <a href="http://kodehauz.com/blog/loads-stuff">kodehauz</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6a2fb52dd9a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kodehauz/loads-of-stuff-c6a2fb52dd9a">Loads of Stuff</a> was originally published in <a href="https://medium.com/kodehauz">kodehauz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic GIT commands with examples]]></title>
            <link>https://medium.com/kodehauz/basic-git-commands-with-examples-8c145949b1bd?source=rss-a231dd2234cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c145949b1bd</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[repositories]]></category>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[cli]]></category>
            <dc:creator><![CDATA[KodeHauz Solutions Planet]]></dc:creator>
            <pubDate>Wed, 14 Feb 2018 01:52:22 GMT</pubDate>
            <atom:updated>2018-02-14T01:52:22.504Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*KBTkW_YdVY6GbXdP." /></figure><p>Git is an essential revision control system for programmers because it aids in managing changes as well as enhance collaborative work. For beginner level programmers, learning to using git on the command line could be a necessary first step but memorizing every command isn’t quite simple.</p><p>Although there are Git GUI software for the Windows and Mac OS such as <a href="http://www.syntevo.com/smartgit/">SmartGit</a>, learning to use the command line is recommended. On the git bash command line, every git command must start with the keyword “git”.</p><p><strong>Here are some basic Git commands with examples.</strong> <em>For full list of git command,</em> <a href="https://www.kernel.org/pub/software/scm/git/docs/">click here</a>.</p><p><strong>git config:</strong> is used to configure your username, email, file format, etc.</p><pre>git config --global user.name &quot;Name&quot; <br>git config --global user.email &quot;user@example.com&quot;</pre><p><strong>git init:</strong> when you create a new project, you have to initialize it on git before you can add and commit it. This will create the “.git” directory in your project folder. To initialize a git repository:</p><pre>git init</pre><p><strong>git clone:</strong> to replicate a repo from the remote source on your local machine, you use the clone command. When you clone a repository, it allows you to update your local files from it as well as push your changes to the repo if you have the permissions.</p><pre>git clone git@bitbucket.com:owner/opensource.git</pre><p><strong>git add:</strong> is used to add your new file or changes to your git index so that it can be tracked.</p><pre>git add .</pre><p><strong>git rm:</strong> removes files from your index and your working directory so they will not be tracked.</p><pre>git rm filename</pre><p><strong>git status:</strong> compares the status of files in the index and the working directory and display the differences. It gives you the current status of your project files by showing you files that are untracked (only in your working directory), modified (tracked but not yet updated in your index), and staged (added to your index and ready for committing).</p><pre>git status</pre><p><strong>git commit:</strong> creates a new commit object pointing to changes written in the index and sets the branch to point to that new commit. Git commit requires a short descriptive message of your changes. Unlike the command, the message must be in quote.</p><pre>git commit -m &quot;php code changes commit&quot;</pre><p>To add and commit your changes in git with one command, use:</p><pre>git commit -a -m &quot;adding and committing changes with a single command&quot;</pre><p><strong>git fetch:</strong> fetches and downloads all the files from the remote repository that are not present in the local one.</p><pre>git fetch origin</pre><p><strong>git pull:</strong> is used to update the local folder with the changes on the remote repository. The command fetches the files from remote server and merges with the local one.</p><pre>git pull origin</pre><p><strong>git push:</strong> pushes all the changes made on the local working environment to the remote repository and advances its branches.</p><pre>git push origin master</pre><p><strong>git remote:</strong> shows all the remote versions of your repository.</p><pre>git remote origin</pre><p><strong>git branch:</strong> lists all existing branches, including remote branches if ‘-a’ is provided. To create a new branch add the name to the command.</p><pre>git branch -a</pre><pre>git branch newbranch</pre><p><strong>git checkout:</strong> is used to switch between available working branches. You can as well use this command to create a new branch and switch to it with one command.</p><pre>git checkout</pre><pre>git checkout newbranch</pre><p><strong>git diff:</strong> generates statistical differences between paths or files in your git repository, or your index or your working directory. The details can be saved as a file in your repo.</p><pre>git diff</pre><pre>git diff&gt;filename.extension</pre><pre>git diff compare-branch&gt;filename.ext</pre><p><strong>git merge:</strong> merges one or more branches into your current branch and automatically creates a new commit if there are no conflicts.</p><pre>git merge branch</pre><p><strong>git reset:</strong> resets your index and working directory to the state of your last commit.</p><pre>git reset --hard</pre><p><strong>git log:</strong> shows list of commits on a branch with corresponding details.</p><pre>git log commit </pre><pre>76f241e8a0d768fb37ff4ad40e294b61a99a0iko Author: User &lt;user@example.com&gt; <br>Date: Wed August 23 07:30:10 2017 +0300 first commit</pre><p><strong>git stash:</strong> is used to temporarily save changes without committing it immediately. The changes can be applied later.</p><pre>git stash working-directory</pre><pre>(To restore stashed files)<br>git stash apply</pre><p><strong>git tag:</strong> tags a specific commit with a simple, human readable handle that never moves.</p><pre>git tag -a v8.x -m &#39;this is a special tag&#39;</pre><p><strong>git show:</strong> shows information about a git object.</p><pre>git show commit 84f241e8a0d768fb37ff7ad40e294b61a99a0abe Author: User &lt;user@example.com&gt; Date: Wed Aug 23 07:30:10 2017 +0300 first commit diff --git a/README b/README new file mode 100644 index 0000000..e69de29</pre><p><em>For full list of git commands,</em> <a href="https://www.kernel.org/pub/software/scm/git/docs/">check the official git documentation</a>.</p><p>First published in <a href="http://kodehauz.com/blog/basic-git-commands-examples">kodehauz.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c145949b1bd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kodehauz/basic-git-commands-with-examples-8c145949b1bd">Basic GIT commands with examples</a> was originally published in <a href="https://medium.com/kodehauz">kodehauz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unravelling the Matrix Display]]></title>
            <link>https://medium.com/kodehauz/unravelling-the-matrix-display-fd48467beb2b?source=rss-a231dd2234cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd48467beb2b</guid>
            <category><![CDATA[led]]></category>
            <category><![CDATA[display]]></category>
            <category><![CDATA[3d-scanner]]></category>
            <category><![CDATA[matrix]]></category>
            <category><![CDATA[electronics]]></category>
            <dc:creator><![CDATA[KodeHauz Solutions Planet]]></dc:creator>
            <pubDate>Wed, 14 Feb 2018 01:45:18 GMT</pubDate>
            <atom:updated>2018-02-14T02:32:53.858Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/412/0*74_2hogVQ9jB1y1f." /></figure><p>Building a text display using Light Emitting Diodes (LEDs) is quite interesting. There are different configurations which these LEDs could be arranged to form a matrix. It could be a 5 x 7 matrix (i.e. 5 columns by 7 rows per character) or an 8 x 8 matrix or a 16 x 16 matrix etc. depending on how detailed or how large you prefer each character to be (pixel density).</p><p>For the initial testing, we built a 5 by 7 display matrix by simply laying them on a vero board. All anodes were connected vertically and all the cathodes horizontally. Below is a circuit schematic showing the 5 x 7 configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/0*gkTRnExYqK5eTp42.jpg" /></figure><p><em>Figure 1: Showing a 5 x 7 configuration on Proteus design software</em></p><p>The LEDs were placed and soldered onto a Vero board. Later on, it was increased to an 8 x 8 single character display.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*0sDxImpmjh55Q1zp.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*NKpUX_bDNme4rW65.jpg" /></figure><p><em>Figure 2 (a) and (b): Showing the LED 8 x 8 Matrix on a Vero board.</em></p><p>Next, the LEDs have to display lights individually which sum up to make up a particular character of the alphabet or number in a pixelated format.</p><p><strong>Understanding the logic</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/0*YIZ6nQQ9gbAEn5cZ.png" /></figure><p><em>Figure 3: Circuit schematic of an 8 x 8 LED matrix</em></p><p>All the anodes are connected horizontally to form the rows (R1 to R8) while the cathodes are connected vertically to form the columns (C1 to C8). The reason is to allow for individual addressing of each LED while minimizing the number of input/output pins from what would have summed up to 128 (i.e. 2 pins from each of the 64 LED’s) to just 16 pins (i.e. 8 rows and 8 columns). Each LED is addressed by its row and column number. If R1 is pulled high and C1 is pulled low, it would turn on the topmost left LED. That same logic applies to the other LEDs.</p><p>Characters are displayed by fast scanning of either rows or columns. For instance, if we want to display the alphabet A using a 5x7 font as shown in figure 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/0*sTXfcvU_3mV_pH1g.png" /></figure><p><em>Figure 4: Displaying the alphabet A on a 5 x 7 display matrix.</em></p><p>Suppose, we want to display the alphabet A. We will first select the column C1 (which means C1 is pulled low in this case), and deselect other columns by blocking their ground paths (one way of doing that is by pulling C2 through C5 pins to logic high). Now, the first column is active, and you need to turn on the LEDs in the rows R2 through R7 of this column, which can be done by applying forward bias voltages to these rows. Next, select the column C2 (and deselect all other columns), and apply forward bias to R1 and R5, and so on. Therefore, by scanning across the column quickly (&gt; 100 times per second), and turning on the respective LEDs in each row of that column, the persistence of vision comes in to play, and we perceive the display image as still.</p><p>This rapid scanning is achievable using a decade counter (4017) or shift register (74HC595) and a microcontroller that performs the logic (e.g. Atmega328p).</p><p>Generally, LED displays are used to scroll text e.g. at the gas/filing station or to display images as well as videos but at a much higher pixel density for clarity.</p><p>In our next blog, we will look at the wiring of the 4017 and the programming of the Atmega328p to achieve the scanning effect.</p><p>First published in <a href="http://kodehauz.com/blog/unravelling-matrix-display"><strong>kodehauz.</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd48467beb2b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kodehauz/unravelling-the-matrix-display-fd48467beb2b">Unravelling the Matrix Display</a> was originally published in <a href="https://medium.com/kodehauz">kodehauz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>