beginners

Creating a home server with CasaOS on Debian from that old dusty PC in your closet.

Creating a home server with CasaOS on Debian from that old dusty PC in your closet.

Introduction Setting up a home server can be an exciting project, especially when you aim to centralize backups, file sharing, and possibly even media streaming. Recently, I decided to repurpose my old desktop as a home server using Debian as the base operating system. During the process, I encountered a black screen issue caused by my graphics card, but removing the GPU resolved it since a home server doesn't require a dedicated graphics card. In this guide, I will walk you through the steps to install Debian on an old PC and then install CasaOS on your Debian home server.…
Read More
Build Your Own YouTube Thumbnail Downloader! RoR+SerpApi – Part 1

Build Your Own YouTube Thumbnail Downloader! RoR+SerpApi – Part 1

Part 1 - Basic Working Example (Done) Part 2 - Refactor and Deployment In this short tutorial we'll build a simple YouTube thumbnail downloader in Ruby on Rails with SerpApi for finding video thumbnails. Prerequisites:- Ruby version 3.2.2Ruby on Rails version 7.1.3.4SerpApi access. You can get the api key by singing up here. The versions don't matter. You should have both ruby and rails installed in your system. Let's begin by scaffolding our rails app.$ rails new YT-Thumbnail-Downloader Go to the project directory $ cd YT-Thumbnail-Downloader. Type $ rails s in the terminal and open localhost:3000 in the browser. You…
Read More
How To Host A Static Website In Azure Blob Storage

How To Host A Static Website In Azure Blob Storage

Hosting a static website on Azure Blob Storage is a straightforward process. Here’s a step-by-step guide, Step 1: Create a Storage Account Login to Azure Portal: Go to the Azure Portal. Create a Storage Account: Navigate to "Storage accounts" and click "Create". Fill in the necessary details (Subscription, Resource Group, Storage account name, etc.). Choose the Performance and Replication options as per your needs. Click "Review + create" and then "Create". Step 2: Enable Static Website Hosting Navigate to the Storage Account: Once created, go to your storage account. Enable Static Website Hosting: In the left-hand menu, find the "Data…
Read More
How to Build a MySQL Admin Panel (Fast & Easy)

How to Build a MySQL Admin Panel (Fast & Easy)

How to Build a MySQL Admin Panel (4 Easy Steps) In this guide, we will walk you through the four steps required to build a MySQL admin panel: Creating a New Application with Five: Get started by setting up a new application in the Five environment. Setting Up a MySQL Database: Design and create tables and fields for your MySQL database, defining both data and display types. Developing Forms: Build user-friendly forms to enable CRUD (Create, Read, Update, Delete) operations on your MySQL database. Deploying the Application: Easily launch your admin panel to the cloud. By following these steps, you'll…
Read More
Wildcard Generic Types

Wildcard Generic Types

You can use unbounded wildcards, bounded wildcards, or lower-bound wildcards to specify a range for a generic type. What are wildcard generic types and why are they needed? The code below gives an example todemonstrate the needs. The example defines a generic max method for finding the maximum in a stack of numbers (lines 15–25). The main method creates a stack of integer objects, adds three integers to the stack, and invokes the max method to find the maximum number in the stack. The program above has a compile error in line 11 because intStack is not an instance of…
Read More
FOLLOWERS SPIKE IN 7 HOURS ON DEVTO

FOLLOWERS SPIKE IN 7 HOURS ON DEVTO

I have been on devto for a year and few months, my followers are barely up to 10, I've also written just one post. At midnight, I made a post about a cors issue I was facing and how it was resolved, nothing spectacular or serious. I woke up this morning to make some edits to the post, I realized I gained over a 100 followers. I was excited and checked if my post got some traffic but nothing serious, less than 25 readers.Don't get me wrong, I am happy with the followers but I'm just curious to know what…
Read More
Single Page Application: Authentication and Authorization in Angular

Single Page Application: Authentication and Authorization in Angular

Introduction In a Single Page Application (SPA), each element has its own existence and lifecycle, rather than being part of a global page state. Authentication and authorization can affect some or all elements on the screen. Authentication Process in an SPA User login: Obtain an access and refresh token. Client-side storage: Store tokens and minimal details in local storage. Login resolver: Redirect away from the login page if the user is authenticated. Router auth guard: Redirect to the login page if the user is unauthenticated. Logout: Remove stored data. Additional Considerations HTTP interceptor: Use the token for API calls. 401…
Read More
30 days of AWS – Part 3: AWS Well-Architected Framework

30 days of AWS – Part 3: AWS Well-Architected Framework

Definition To put it simply, the AWS well-architected framework is a collection of best practices and guidelines for designing and operating reliable, secure, efficient, and cost-effective systems in the cloud. It is built upon 6 pillars. Namely: Security Cost optimization Operational excellence Reliability Efficiency Sustainability Acronym to remember it by: S-C-O-R-E-S Operational Excellence Focus - Run and monitor systems to deliver business value. Continually improve and support processes and procedures. Key Topics Automating changes Responding to events Defining standards to maintain daily operations Design Principles Perform operations as code- Define the entire workload as code and update it with code.…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.