<?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 Shayan zahid on Medium]]></title>
        <description><![CDATA[Stories by Shayan zahid on Medium]]></description>
        <link>https://medium.com/@shayanzahid.official?source=rss-2c47486406df------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5i-YxPIOas_KbOmBMjol_g@2x.jpeg</url>
            <title>Stories by Shayan zahid on Medium</title>
            <link>https://medium.com/@shayanzahid.official?source=rss-2c47486406df------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 18:32:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shayanzahid.official/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[House of the Dragon — The Missing Essence]]></title>
            <link>https://medium.com/@shayanzahid.official/house-of-the-dragon-the-missing-essence-26999e8cb40c?source=rss-2c47486406df------2</link>
            <guid isPermaLink="false">https://medium.com/p/26999e8cb40c</guid>
            <category><![CDATA[game-of-thrones]]></category>
            <category><![CDATA[house-of-the-dragon]]></category>
            <category><![CDATA[hbo]]></category>
            <category><![CDATA[dragon]]></category>
            <category><![CDATA[hbo-max]]></category>
            <dc:creator><![CDATA[Shayan zahid]]></dc:creator>
            <pubDate>Fri, 24 Jul 2026 00:58:29 GMT</pubDate>
            <atom:updated>2026-07-24T01:01:30.873Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Heads up: This article was not written or modified by AI (Despite my unshattering appreciation for Claude; I limit its use to office work — some things should stay novel to humans)</em></p><p>If you are reading this, chances are that you have probably watched <em>House of the Dragon</em>, HBO’s adaptation of George R. R. Martin’s book called <em>Fire and Blood</em>. I don’t have much to say to you if you haven’t watched the show yet. You should probably watch it (it has its good moments).</p><p>The show delivers… It’s not boring, it’s not tiresome. It’s something I look forward to watching every week… maybe the only thing that helps me get up at 6 am on a Monday (that’s when it releases in Pakistan), but it fails to satisfy my deep love for the most exciting part about the franchise, and might I dare to add the <em>Game of Thrones</em> books and series to this rant! And that would be DRAGONS!!</p><p>The show only showcases dragons as props and accessories for war for the Targaryens, but they are SO much more in the books! Whether somebody is going to war or coming back from war. Also, when the producers have to increase the dragon screen time, there they are in the background, just standing still. No sign of life from a majestic beast that you can ride and take anywhere to fly and buzz off.</p><p>The first episode came out in 2022. I always hated how little personality the dragons had in the show, but what compelled me to write this article was realizing I was not alone. When Caraxes was shown drinking out of what seemed to be a lake or pond, everyone on Twitter (yes, I still stick to calling it Twitter) had their takes on how cute Caraxes looked. And then my favourite scene took place, and that was when Caraxes disobeyed Daemon and took him to see Sheepstealer. That was f**king brilliant (exactly what I pay my subscription for… to have my dragons have a personality).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*JObMslpiyPZRvk-f5-5gaw.png" /></figure><p>The sad part is realising that it’s not really the producers’ or directors’ fault. Considering the budgetary constraints, I know it’s not really possible to cater to fanatics like me, but hey! If this reaches someone important, they might get some ideas.</p><p>George, to some extent, could also be held liable for this charge, as the books were basically his playground to write anything, but he kept it minimal while describing his dragons. Skin colours and fire colours were mentioned for some, at best, not more than that. But there were hints of life throughout, for example… Silverwing refusing to take Alysanne beyond the Wall.</p><p>If you have read till here, you have already got my point, so I don’t need to continue this anymore… but one day I shall see my dragons drinking, sleeping, and possibly playing.</p><p>We cannot forget our OG boi Drogon while talking about personality… shoutout to the world’s last dragon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cqsrUqZ3hakTtAhfSgvh1Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26999e8cb40c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Train a Model for Computer Vision (Beginner’s Guide)]]></title>
            <link>https://medium.com/@shayanzahid.official/how-to-train-a-model-for-computer-vision-beginners-guide-4df74f5459d4?source=rss-2c47486406df------2</link>
            <guid isPermaLink="false">https://medium.com/p/4df74f5459d4</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[model]]></category>
            <dc:creator><![CDATA[Shayan zahid]]></dc:creator>
            <pubDate>Sun, 11 May 2025 16:05:22 GMT</pubDate>
            <atom:updated>2025-05-11T16:05:22.406Z</atom:updated>
            <content:encoded><![CDATA[<p>Computer vision is at the heart of powerful technologies — from facial recognition to self-driving cars. But before a machine can “see,” we need to teach it how. That’s where model training comes in.</p><p>This article walks you through the key steps to train a computer vision model, from data preparation to evaluation.</p><h3>🖼️ 1. Define the Task</h3><p>First, identify the <strong>type of vision problem</strong> you’re solving:</p><ul><li><strong>Image Classification</strong>: What’s in the image? (e.g., cat or dog)</li><li><strong>Object Detection</strong>: Where is the object? (bounding boxes)</li><li><strong>Segmentation</strong>: Which pixels belong to what? (pixel-level)</li><li><strong>Pose Estimation</strong>, <strong>OCR</strong>, and more…</li></ul><p>Your choice determines the model architecture and dataset format.</p><h3>📁 2. Collect &amp; Annotate Data</h3><p>You need a <strong>large and labeled dataset</strong>. You can:</p><ul><li>Use open-source datasets (like COCO, ImageNet, Pascal VOC)</li><li>Collect your own data using cameras or web scraping</li><li>Annotate images using tools like:</li></ul><p><strong>Roboflow</strong></p><p><strong>Labeling</strong></p><p><strong>CVAT</strong></p><p><strong>Tip</strong>: More diverse, balanced, and clean your dataset = better results.</p><h3>🧹 3. Prepare Your Dataset</h3><p>Organize your data into:</p><ul><li><strong>Training set</strong> (e.g., 80%)</li><li><strong>Validation set</strong> (e.g., 10%)</li><li><strong>Test set</strong> (e.g., 10%)</li></ul><p>Also apply <strong>image augmentations</strong> (rotate, flip, blur) to increase dataset variety and prevent overfitting. Use libraries like:</p><ul><li>Albumentations</li><li>TensorFlow ImageDataGenerator</li><li>PyTorch transforms</li></ul><h3>🧠 4. Choose a Model Architecture</h3><p>Based on your task:</p><ul><li><strong>Classification</strong>: ResNet, MobileNet, EfficientNet</li><li><strong>Object Detection</strong>: YOLOv5, YOLOv8, SSD, Faster R-CNN</li><li><strong>Segmentation</strong>: U-Net, DeepLabV3</li></ul><p>You can start with <strong>pre-trained models</strong> (transfer learning) to save time and get better results on small datasets.</p><h3>🏋️ 5. Train the Model</h3><p>Use frameworks like:</p><ul><li><strong>TensorFlow / Keras</strong></li><li><strong>PyTorch</strong></li><li><strong>YOLO (Ultralytics for YOLOv5/YOLOv8)</strong></li></ul><p>Set key training parameters:</p><ul><li>Learning rate</li><li>Batch size</li><li>Number of epochs</li><li>Loss function (e.g., cross-entropy, IoU)</li></ul><p>Example (PyTorch):</p><pre>for epoch in range(epochs):<br>    model.train()<br>    for images, labels in train_loader:<br>        optimizer.zero_grad()<br>        outputs = model(images)<br>        loss = criterion(outputs, labels)<br>        loss.backward()<br>        optimizer.step()</pre><h3>📊 6. Evaluate Performance</h3><p>After training:</p><ul><li>Check <strong>accuracy</strong>, <strong>IoU</strong>, <strong>precision</strong>, <strong>recall</strong>, or <strong>mAP</strong> depending on your task.</li><li>Use the <strong>validation set</strong> to tune hyperparameters.</li><li>Use the <strong>test set</strong> for final performance evaluation.</li></ul><h3>🚀 7. Deploy Your Model</h3><p>Once you’re satisfied:</p><ul><li>Convert it to ONNX, TFLite, or TensorRT for optimization</li><li>Deploy on web, mobile, or edge devices</li><li>Or expose it via an API using Flask, FastAPI, or cloud platforms (AWS, GCP, etc.)</li></ul><h3>🧠 Final Thoughts</h3><p>Training a computer vision model isn’t just about deep learning — it’s about the quality of your data, thoughtful model selection, and consistent tuning. Start simple, iterate fast, and always test your model in real-world conditions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4df74f5459d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Annotate Images with Roboflow (Quick Guide)]]></title>
            <link>https://medium.com/@shayanzahid.official/how-to-annotate-images-with-roboflow-quick-guide-b4486814a1bc?source=rss-2c47486406df------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4486814a1bc</guid>
            <category><![CDATA[annotations]]></category>
            <category><![CDATA[cv]]></category>
            <category><![CDATA[roboflow]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Shayan zahid]]></dc:creator>
            <pubDate>Sun, 11 May 2025 15:53:24 GMT</pubDate>
            <atom:updated>2025-05-11T15:53:24.356Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re working on a computer vision project, image annotation is step one — and Roboflow makes it easy. Here’s a quick guide to get started.</p><h3>✅ Step 1: Sign Up &amp; Create a Project</h3><p>Go to <a href="https://roboflow.com/">roboflow.com</a>, sign up, and click <strong>“Create New Project.”</strong><br> Choose your project type: Object Detection, Classification, or Segmentation.</p><h3>📤 Step 2: Upload Images</h3><p>Upload images from your computer, Google Drive, or a ZIP file. Roboflow will process and prepare them for labeling.</p><h3>✍️ Step 3: Annotate</h3><ul><li>Click an image.</li><li>Draw bounding boxes around objects.</li><li>Assign labels (e.g., <em>helmet</em>, <em>dog</em>, <em>plate</em>).</li><li>Use shortcuts like N for next and B to draw.</li></ul><p>Want to save time? Annotate a few, train a model, and use Roboflow’s <em>auto-labeling suggestions</em>.</p><h3>⚙️ Step 4: Generate Dataset</h3><p>Once labeled, click <strong>“Generate New Version.”</strong><br> Choose image size, augmentations, and data split. Roboflow prepares your dataset.</p><h3>⬇️ Step 5: Export or Train</h3><p>Download your dataset in formats like YOLO, COCO, or TFRecord — or train a model directly in Roboflow and deploy via API.</p><p><strong>That’s it!</strong> Roboflow simplifies annotation so you can focus on building and training your models. Give it a try and speed up your computer vision workflow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4486814a1bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the Effects of Noise on Digital Images]]></title>
            <link>https://medium.com/@shayanzahid.official/understanding-the-effects-of-noise-on-digital-images-7ce04c4b5e29?source=rss-2c47486406df------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ce04c4b5e29</guid>
            <category><![CDATA[noise]]></category>
            <category><![CDATA[i̇mages]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Shayan zahid]]></dc:creator>
            <pubDate>Sun, 26 Jan 2025 15:28:07 GMT</pubDate>
            <atom:updated>2025-01-26T15:28:07.364Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e7MmH9ojIsJhRwm6zRjGlQ.png" /></figure><p>Noise is a common barrier in image and signal processing. It refers to random signal variations that deviatefrom its true value. These variations are caused by internal or external factors in the image-processing pipeline. Mathematically, noise can be modeled as:</p><p>I′(x,y)=I(x,y)+n(x,y)</p><p>Where I′(x,y) is the noisy image, I(x,y) is the original image, and n(x,y) represents the noise function.</p><p>In this article, we will explore noise sources, noise characterization, and practical applications in MATLAB for understanding and experimenting with noise effects on images.</p><h3>Sources of Noise in Digital Images</h3><p>Noise in digital images can originate from multiple sources:</p><ol><li><strong>Capture Noise:</strong> This arises from variations in lighting, sensor temperature, electrical sensor noise, and environmental factors like dust and vibration. Issues like focus limitations, sensor saturation, and overexposure (too much light) or underexposure (too little light) also contribute.</li><li><strong>Sampling Noise:</strong> Limitations in sampling and intensity quantization introduce representational aliasing. Here, the sampled digital image is not a true representation of the analog image but rather an alias.</li><li><strong>Processing Noise:</strong> Errors in numerical precision (e.g., floating-point numbers), integer overflow, and approximations (e.g., using 3.14 for π\pi) lead to processing noise.</li><li><strong>Image-encoding Noise:</strong> Lossy compression techniques like JPEG remove visual details, introducing compression artifacts. Formats like PNG use lossless compression to avoid such issues.</li></ol><h3>Characterization of Noise</h3><p>The two main noise types encountered in image processing are:</p><ol><li><strong>Salt and Pepper Noise:</strong> Randomly introduces pure white or black pixels into the image. It is commonly associated with camera sensor faults.</li><li><strong>Gaussian Noise:</strong> Represents random variations following a Gaussian distribution. This is the most frequently used model in image processing to describe random noise.</li></ol><h3>Practical Exercises in MATLAB</h3><p>This section provides exercises to help you understand noise effects. You can choose any image of your choice (e.g., a photo from your computer or built-in MATLAB images like peppers.png or cameraman.tif) and apply the code provided.</p><h3>Exercise 1: Adding Salt and Pepper Noise</h3><p><strong>Objective:</strong> Add salt and pepper noise to color and grayscale images.</p><ol><li>Load the image:</li></ol><pre>img_color = imread(&#39;your_image.jpg&#39;); % Replace with your image<br>img_gray = rgb2gray(img_color);</pre><ol><li>Add salt and pepper noise:</li></ol><pre>noisy_color = imnoise(img_color, &#39;salt &amp; pepper&#39;, 0.02);<br>noisy_gray = imnoise(img_gray, &#39;salt &amp; pepper&#39;, 0.02);</pre><ol><li>Display results:</li></ol><pre>subplot(2, 2, 1); imshow(img_color); title(&#39;Original Color Image&#39;);<br>subplot(2, 2, 2); imshow(noisy_color); title(&#39;Noisy Color Image&#39;);<br>subplot(2, 2, 3); imshow(img_gray); title(&#39;Original Grayscale Image&#39;);<br>subplot(2, 2, 4); imshow(noisy_gray); title(&#39;Noisy Grayscale Image&#39;);</pre><p><strong>What to Observe:</strong></p><ul><li>The color image will display random black and white pixels scattered throughout.</li><li>The grayscale image will show noise patterns disrupting smooth intensity transitions.</li></ul><h3>Exercise 2: Adding Gaussian Noise</h3><p><strong>Objective:</strong> Add Gaussian noise to color and grayscale images.</p><ol><li>Add Gaussian noise:</li></ol><pre>noisy_color_gaussian = imnoise(img_color, &#39;gaussian&#39;, 0, 0.01);<br>noisy_gray_gaussian = imnoise(img_gray, &#39;gaussian&#39;, 0, 0.01);</pre><ol><li>Display results:</li></ol><pre>subplot(2, 2, 1); imshow(img_color); title(&#39;Original Color Image&#39;);<br>subplot(2, 2, 2); imshow(noisy_color_gaussian); title(&#39;Gaussian Noise (Color)&#39;);<br>subplot(2, 2, 3); imshow(img_gray); title(&#39;Original Grayscale Image&#39;);<br>subplot(2, 2, 4); imshow(noisy_gray_gaussian); title(&#39;Gaussian Noise (Grayscale)&#39;);</pre><p><strong>What to Observe:</strong></p><ul><li>Gaussian noise will add a smooth, grainy texture to the color image, resembling photographic film grain.</li><li>The grayscale image will show random intensity fluctuations, with no abrupt black or white pixels like salt and pepper noise.</li></ul><p><strong>Discussion:</strong> Vary the mean and variance in imnoise() to see how the noise pattern changes. For example:</p><pre>noisy_color = imnoise(img_color, &#39;gaussian&#39;, 0.1, 0.05);</pre><h3>Investigating Other Noise Types</h3><p>MATLAB’s imnoise() supports additional noise types:</p><p><strong>Speckle Noise:</strong> Multiplies the image by random values following a uniform distribution. Example:</p><pre>noisy_speckle = imnoise(img_gray, &#39;speckle&#39;, 0.04); <br>imshow(noisy_speckle); title(&#39;Speckle Noise&#39;);</pre><p><strong>Poisson Noise:</strong> Generates noise based on the Poisson distribution. This noise depends on pixel intensity values.</p><h3>Differences from Gaussian and Salt &amp; Pepper Noise:</h3><ul><li><strong>Speckle Noise</strong> introduces multiplicative noise, appearing like grainy patterns.</li><li><strong>Poisson Noise</strong> is dependent on the intensity of the image, unlike additive Gaussian noise.</li></ul><h3>Conclusion</h3><p>Understanding noise types and their effects on images is crucial in image processing. MATLAB’s imnoise() function provides a versatile way to simulate these effects, enabling experiments that reveal how noise impacts image quality. This knowledge is valuable for designing filters and techniques to mitigate noise, ensuring better image processing outcomes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ce04c4b5e29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Host a Static Website on AWS & Implement a CI/CD pipeline]]></title>
            <link>https://medium.com/@shayanzahid.official/host-a-static-website-on-aws-implement-a-ci-cd-pipeline-329a9ffe732b?source=rss-2c47486406df------2</link>
            <guid isPermaLink="false">https://medium.com/p/329a9ffe732b</guid>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Shayan zahid]]></dc:creator>
            <pubDate>Mon, 19 Aug 2024 17:33:45 GMT</pubDate>
            <atom:updated>2024-08-19T17:33:45.975Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*c1zQUinAyr49UG5dY95LJg.png" /></figure><p>In today’s digital world, having a reliable, fast, and secure website is crucial for businesses and personal projects alike. If you’re looking to host a static website with minimal cost and hassle, Amazon Web Services (AWS) offers a powerful solution. Leveraging AWS services like S3, CloudFront, Route 53, and ACM, you can easily set up a high-performance static website with your custom domain.</p><p>In this guide, we’ll walk you through the process of hosting a static website on AWS, using your domain name. We’ll cover how to use Amazon S3 for storage, configure Amazon CloudFront for content delivery, and set up AWS Certificate Manager (ACM) for secure connections. Whether you’re a developer looking to deploy a portfolio, a business owner setting up an online presence, or just someone wanting to learn about AWS, this tutorial will provide you with a clear, step-by-step approach to getting your static site up and running.</p><p><strong>The working flow is as follows:</strong></p><p>the user will hit your DNS in a web browser and a DNS service will activate(I will be using GO DADDY)</p><p>the CNAME record will redirect DNS to the CloudFront distribution</p><p>Cloudfront will be accessing the content from the S3 bucket(which will contain static contents like index.html)</p><p>the static bucket can only accessed by CloudFront using an OAI(origin access identity) — user cannot directly access the S3 bucket</p><p>ACM will used in frontof CloudFront to make the connection secure and the user will be able to access the website over https.</p><p><strong>Automating the Process:</strong></p><p>we will also automate the process using the AWS code pipeline which means that whenever the developer updates or edits the code it will be automatically deployed to the S3 bucket</p><h3><strong>Creating an S3 bucket</strong></h3><p>we will start by creating a S3 bucket. Go to your AWS management console select S3 and then select “Create a bucket”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*jVLYoA_vd8ZClYl3X5JR6A.png" /></figure><p>choose the bucket name as same as your custom domain name(i will be using the shayandevops.site for the entire process)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*HVcYo0PC8KPUbw5BeYEccw.png" /></figure><p>make sure to block all public access. this is done to make sure that the S3 bucket is not publicly accessible to anyone</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*L_fHCIc_z6YEj4bC52v8ew.png" /></figure><p>once your S3 bucket has been created, go to Properties and scroll down to Static website hosting</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*nvl9MezUnzZCdhOj9nCp8w.png" /></figure><p>click the edit button and then enable the static website hosting</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*QZ7H6NRKdGf1r05Pc1lH1A.png" /></figure><p>fill the index document with index.html and error.html</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*NbSpD0Z-koP34rXZTv2OCg.png" /></figure><p>Now that we have enabled the static website hosting for our S3 bucket we will upload the file for our website content which will be the HTML and CSS file.</p><p>I have provided the demo code for the HTML and CSS</p><h4>HTML code</h4><pre>w&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br> &lt;title&gt;My Static Site&lt;/title&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;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br> &lt;header&gt;<br>  &lt;h1&gt;My Static Website!&lt;/h1&gt;<br>  &lt;nav&gt;<br>   &lt;ul&gt;<br>    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;<br>    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;About&lt;/a&gt;&lt;/li&gt;<br>    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;<br>   &lt;/ul&gt;<br>  &lt;/nav&gt;<br> &lt;/header&gt;<br> <br> &lt;main&gt;<br>  &lt;h2&gt;PRACTICE&lt;/h2&gt;<br>  &lt;p&gt;This is a simple static site built for practice&lt;/p&gt;<br> &lt;/main&gt;<br> <br> &lt;footer&gt;<br>  &lt;p&gt;Copyright © 2023&lt;/p&gt;<br> &lt;/footer&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><h4>CSS code</h4><pre>/* Reset the default browser styles */<br>* {<br> margin: 0;<br> padding: 0;<br> box-sizing: border-box;<br>}<br><br>/* Set a default font family */<br>body {<br> font-family: Arial, sans-serif;<br>}<br><br>/* Style the header */<br>header {<br> background-color: #333;<br> color: #fff;<br> padding: 20px;<br>}<br><br>header h1 {<br> margin: 0;<br>}<br><br>nav ul {<br> list-style: none;<br> margin: 0;<br> padding: 0;<br> display: flex;<br>}<br><br>nav li {<br> margin-right: 20px;<br>}<br><br>nav li:last-child {<br> margin-right: 0;<br>}<br><br>nav a {<br> color: #fff;<br> text-decoration: none;<br>}<br><br>nav a:hover {<br> text-decoration: underline;<br>}<br><br>/* Style the main content */<br>main {<br> max-width: 800px;<br> margin: 0 auto;<br> padding: 20px;<br>}<br><br>/* Style the footer */<br>footer {<br> background-color: #333;<br> color: #fff;<br> padding: 20px;<br> text-align: center;<br>}</pre><p>after uploading the code files. We have successfully created an S3 bucket with static website hosting enabled</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*kW1rNEHS_Xqf_lN-BeB-BQ.png" /></figure><h3><strong>Creating a Cloud distribution</strong></h3><p>go to your aws management console search for “Cloudfront” and then click on “create a distribution</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*uz84iGn7C85hJz45o4tu2w.png" /></figure><p>fill out all the steps as shown in the image and make sure to click on “Create an OAI” so that a new OAI is created for you and accessible for use.</p><p>this is done so to create an identity for your bucket and to make sure that your bucket is not accessible from anywhere else.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*H4UufsMxIuT2GFP65FuZDA.png" /></figure><p>make sure to select “Redirect HTTP to HTTPS” under the Viewer protocol policy and also select the third option under the Allowed Http methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*BRbwzn47fRf34MjNp60vbA.png" /></figure><p>add the alternate domain name to your Cloudfront distribution</p><p>now click the Request certificate option under the Custom SSL certificate option</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*VAb0VMeZ4Re2RHbaqYh3vg.png" /></figure><p>fill out the qualified domain name beginning with an *.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5cJsrDIKaN_UdPTBy6klRg.png" /></figure><p>Now your custom certificate has been created for your domain</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*unyzpwC4wGuXm3jrFqlMHQ.png" /></figure><p>now you have to add your custom certificate to your DNS records from where you leased your domain. (I got my domain from Go Daddy)</p><p>you can do this by putting the CNAME and CNAME values provided to you in the certificate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*8r3zZhYKiJsfYR0COIq4Bg.png" /></figure><p>add your SSL certificate which you have just created</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*L2Oc7YlZqgjyIgrxLHcLBQ.png" /></figure><p>make sure to enter the root object which will be the index.html in our case.</p><p>Also choose the Enable Security protections option under the “Web application Firewall” interface</p><p>Now click on “Create Distribution”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dIftxiQ0NRG78kL8xMcR5w.png" /></figure><p>You will see that Your CloudFront distribution has been created.</p><p>Now that your CloudFront distribution has been created your website can be accessed by using the domain provided by Cloudfront.</p><p>but we want to add our custom domain and access it using that so we will now add two more custom CNAME values</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4wQFoHvt14jE1Iz_2Vt4IQ.png" /></figure><p>now wait a few minutes after that put your custom domain on the internet you will see that your website is now accessible under your custom domain</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OT6-3ybFYIMBDBJcrdSo2Q.png" /></figure><p>We have successfully hosted a Static website on AWS</p><h3><strong>Implementing a CI/CD pipeline</strong></h3><p>Now we not only want to host a website we aim to automate it using pipelining by AWS code pipeline so whenever we update the code in our GitHub the website is also updated maintaining the concept of continuous integration and continuous deployment.</p><p>first go to AWS code pipelineand select “create a pipeline”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*wXPXigyu3L-SaNo2IbXheg.png" /></figure><p>give your pipeline a name and select Queued Execution mode</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*EuY8f3HZBEIN42sY02O3qQ.png" /></figure><p>in second step connect your github account to AWS.</p><p>Make sure to upload the index.html and style.css to your github account</p><p>enter the repository and branch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*5a5AVbg1gPRId6U2jSGlEg.png" /></figure><p>we can skip the third step</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*KPpv1JrD_CJ0kG6L9dN1mQ.png" /></figure><p>now for the fourth step choose the S3 bucket for your pipeline and choose Amazon S3 as the provider and then click next</p><p>in the fifth step you will be asked to review everything. when done reviewing choose done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*yU0imnX-s0Noynrvz_vTwA.png" /></figure><p>Now we have successfully created an AWS pipeline. we can update our code on GitHub and it will update our website in real time.</p><p>Using a deployment pipeline for your static website on AWS simplifies updates and ensures consistency. Automated builds and deployments reduce errors, save time, and make managing your site easier. Embrace pipelines to keep your website reliable and up-to-date with minimal manual effort.</p><p>Special thanks to <a href="https://medium.com/u/8cfc26ed02a6">Piyush Sachdeva</a> for the insightful guidance and instructions that made this setup possible. Your expertise greatly contributed to the creation of this blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=329a9ffe732b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Visualize your data using Amazon Quicksight and S3 buckets]]></title>
            <link>https://medium.com/@shayanzahid.official/visualize-your-data-using-amazon-quicksight-and-s3-buckets-aa98163248d7?source=rss-2c47486406df------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa98163248d7</guid>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-cloud]]></category>
            <category><![CDATA[s3-bucket]]></category>
            <category><![CDATA[quicksight]]></category>
            <dc:creator><![CDATA[Shayan zahid]]></dc:creator>
            <pubDate>Sat, 11 May 2024 14:43:54 GMT</pubDate>
            <atom:updated>2024-05-11T14:43:54.402Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*0E_zcTsoK7tPboKvexKErQ.jpeg" /></figure><p>Dashboards are essential for transforming complex data into actionable insights at a glance. Amazon offers QuickSight, a powerful service that allows users to visualize and analyze data stored in Amazon S3 efficiently. With QuickSight, users can create interactive dashboards that drive informed decision-making and enhance data-driven strategies. I followed a tutorial by @techwithlucy(YouTube) to learn about this mini-project.</p><p>This project of visualizing data using Amazon QuickSight and S3 is surprisingly straightforward and user-friendly.</p><p>Let’s get started!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GgVYvGhV8iQIMkKtxVcGmw.jpeg" /></figure><p>The first step in this project is to obtain a dataset that you want to visualize. Additionally, you’ll need to create a manifest file.</p><p>make sure to change the URI to match your dataset. You can find the URI for your dataset after creating an S3 bucket(don’t worry, everything is mentioned in the blog)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*HEOCTmx7eelVjscsN1z4dw.jpeg" /></figure><p>you can also copy the code from here</p><pre>{<br>   &quot;fileLocations&quot;: [<br>       {<br>           &quot;URIs&quot;: [<br>               &quot;enter your URL here&quot;<br>           ]<br>       }<br>   ],<br>   &quot;globalUploadSettings&quot;: {<br>       &quot;format&quot;: &quot;CSV&quot;,<br>       &quot;delimiter&quot;: &quot;,&quot;,<br>       &quot;textqualifier&quot;: &quot;\&quot;&quot;,<br>       &quot;containsHeader&quot;: &quot;true&quot;<br>   }<br>}</pre><p>Now you have to make a S3 bucket. Go to your AWS management console and search for S3 and click on it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bQAnDr7LPbPW9NcnyFPXGQ.jpeg" /></figure><p>click on the “Create bucket” option to make a bucket</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9bb439fofk7HoL5AIwZPJg.jpeg" /></figure><p>give some name to your bucket</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3FXZkwH93E0Y9ENzKg9ulw.jpeg" /></figure><p>make sure to mark check on the “block all public access” option and then click on the “Create bucket” option present at the very bottom of the page. Your S3 bucket has been created.</p><p>Now go to your just created S3 bucket and click on the upload button to upload your dataset and manifest file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bK535EwBqHcQBdIJr28ELA.jpeg" /></figure><p>after you have uploaded the files, your S3 dashboard will look like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ClMyhc2ZB5MNYUTe6w6goA.jpeg" /></figure><p>now go ahead click on the newly uploaded CSV file and click on the copy S3 URI option. This URI will be used in your manifest file code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TEvvMHLnTJSlfc8a3vhJ3Q.jpeg" /></figure><p>now go to your manifest file and also copy the S3 URI. This URI will be used in Amazon Quicksight</p><p>we have successfully created an S3 bucket and uploaded our files. now it’s time to go to amazon quicksight</p><p>first step is to create an amazon quicksight account. Search on the AWS management console for Quicksight and click on it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iOdy7FS5Tm_zoMix2liEDA.jpeg" /></figure><p>if you already have an AWS account, click on the “sign up for quicksight”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*lbMUzdE3h3JNPiU8yN_Mxw.jpeg" /></figure><p>now click on “go to quicksight” You will be inside the QuickSight dashboard</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W3zRyEdFgtc2Gl_JYR2akA.jpeg" /></figure><p>click on “new dataset” and then click on S3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZJzXVaSB8KViOo2W43gStA.jpeg" /></figure><p>now give a name to your dataset, paste the S3 URI copied from the manifest.json file, and click on the “connect” option</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*ftbSXf0W9AxBXB7WzJleVA.jpeg" /></figure><p>click on “visualize”</p><p>If you get an option to create a new sheet, click on the Create option and your dashboard is now set for creating the charts you need</p><p>From the list on the left, you can always do a drag-and-drop to create your visualizations. I selected availability, just to see how the visual looks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zshfRSluBjvo43_pEsvGsw.jpeg" /></figure><p>Once you’ve completed your demo or visualization project using Amazon QuickSight and S3, it’s important to remember to delete all the resources to avoid incurring unnecessary charges. This includes deleting the dataset, manifest file, and any related configurations or dashboards that were created during the demo. By cleaning up these resources properly, you can ensure that you won’t be billed for unused or temporary assets.</p><p>This was all about how you can visualize data using Amazon quicksight with the help of S3 buckets. thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa98163248d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>