engineering

Struggling with Node.js

Struggling with Node.js

I am trying to get my first Node.js server to work with React Front-end for a site I am building for a client. I have mostly dealt with Django REST when I need a server but I heard Node.js was simpler and maybe more appropriate for this cause, I am also more comfortable with Javascript. Basic structure of the website: - Form for uploading large amounts of PDF documents, images, power point presentations. - Search functionality for the database to find certain PDFs by author, country, upload date and other values. - I am using React DocViewer to display the…
Read More
Apple Website

Apple Website

Creating an Engaging Apple Product Showcase with TailwindCSS, GSAP, and Three.js In the realm of web development, creating visually stunning and interactive websites has become a hallmark of innovation and creativity. If you are looking to elevate your skillset and captivate users with a state-of-the-art Apple product showcase, then this step-by-step guide is tailor-made for you. By harnessing the power of TailwindCSS, GSAP, and Three.js, you can embark on a journey to craft a modern and sleek website that showcases the latest Apple products with dynamic animations and immersive 3D models. Whether you are a seasoned developer or a budding…
Read More
Build your own DI Container in JavaScript.

Build your own DI Container in JavaScript.

What we will build In this chapter we will implement our own DI Container in JavaScript. We will create a checkout simulation and we are going to use our DI Container to handle the dependency injection. The services Here is the service classes and the flow of our application. We have a credit card, a shipping bag and then a class that handles the transaction and one that sends the order. // Independent service class CreditCard { owner; address; number; cvc; set(owner, address, number, cvc) { this.owner = owner; this.address = address; this.number = number; this.cvc = cvc; } }…
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
Understanding Adapters in Java for Android Development

Understanding Adapters in Java for Android Development

Adapters are a crucial part of Android development, especially when dealing with user interfaces. They act as a bridge between a data source and a user interface component, enabling the display of dynamic content in views like ListView, GridView, and RecyclerView. This article explores the concept of adapters in Java for Android Studio, illustrating their importance and usage with practical examples. Why Are Adapters Important in Android? Data Binding: Adapters facilitate the binding of data from data sources (like arrays, databases, or web services) to UI components.Dynamic Content: They allow for the dynamic display of content, making it easy to…
Read More
System Design Basics – Caching

System Design Basics – Caching

Disclosure: This post includes affiliate links; I may receive compensation if you purchase products or services from the different links provided in this article. image_credit - DesignGuru.io Hello friends, Caching is not just an important topic for System design interviews, its also technique in software development, enabling faster data retrieval, reducing load times, and enhancing user experience. For developers, mastering caching concepts is crucial as it can significantly optimize application performance and scalability. In the past, I have talked about common system design questions like API Gateway vs Load Balancer and Horizontal vs Vertical Scaling, Forward proxy vs reverse proxy…
Read More
Automating User and Group Management using Bash Script

Automating User and Group Management using Bash Script

[*] Creating users and groups manually particularly in a large environment can be time consuming and tedious. Automating this task with a bash script saves time and errors.This script create_users.sh streamline the process, automates the creation of users and groups, sets up home directories, generates random passwords, and logs all actions. This article explains each step of the script and provides insights into its implementation. Script OverviewThe script reads a input file containing usernames and group names, creates users and groups as specified, sets up home directories with appropriate permissions and ownership, generates random passwords, and logs all actions. Additionally,…
Read More
manual testing

manual testing

Functional Testing:It focuses on testing the functionality of the software or system.Verifies whether the software meets the functional requirements.It involves testing the features and functionalities of the software, such as input/output, error handling, and user interface.Tests are typically conducted using test cases or scenarios that validate the functional requirements.It can be performed manually or using automated testing tools.It was done after unit testing and integration testing and before system testing.Non-Functional Testing:It focuses on testing the system's or software's non-functional components.Checks to see if the software satisfies the non-functional requirements, including performance, security, usability, reliability, and compatibility.It involves putting the software's…
Read More
How to Connect Your GitHub Project to Sonar

How to Connect Your GitHub Project to Sonar

This guide will walk you through setting up SonarCloud for a GitHub project to automatically inspect code for bugs and vulnerabilities. Additionally, it covers common errors encountered during the setup process. You can check out the GitHub repository used for this project here: github-workflow-demo. Sonar comes in two flavours - SonarCloud and SonarQube. SonarCloud is a cloud-based service provided by SonarSource for continuous code quality and security inspection, ideal for projects hosted on GitHub, Bitbucket, or Azure DevOps. SonarQube, on the other hand, is a self-hosted solution that requires you to install and manage the server infrastructure, offering greater control…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.