coding

Linux Basic Commands III

Linux Basic Commands III

Process Management Commands: ps - It Display running processes.-aux: - It Show all processes.top - It Monitor system processes in real-time.It displays a dynamic view of system processes and their resource usage.kill - It helps to Terminate a process.** - 9*: Forcefully kill a process.**kill PID* -terminates the process with the specified process ID.pkill - Terminate processes based on their name. pkill **- terminates all processes with the specified name.**pgrep - It helps to List processes based on their name.grep - It used to search for specific patterns or regular expressions in text files or streams and display matching lines.-i:…
Read More
Step-by-Step Guide to an Angular Expandable and Collapsible Sidebar with Icons

Step-by-Step Guide to an Angular Expandable and Collapsible Sidebar with Icons

Creating an expandable and collapsible sidebar in Angular can significantly enhance the user experience of your application. This tutorial provides a step-by-step guide to building such a sidebar, complete with icons and smooth transitions. We’ll cover everything from setting up the component structure to applying styles and logic for toggling the sidebar. Why Use a Collapsible Sidebar? A collapsible sidebar improves the usability of an application by: Saving screen space. Providing easy navigation. Keeping the interface clean and organized. Step-by-Step Guide to Build the Sidebar 1. Set Up Your Angular Project First, ensure you have Angular CLI installed. If not,…
Read More
Java serialization: let’s dig it up

Java serialization: let’s dig it up

Java equips developers with convenient tools for serializing objects. Although they seem primitive at first glance, their internal implementation contains a wealth of interesting insights. In this article, we'll explore the essentials of serialization and its nuances. Let's see how it operates under the hood! Introduction Java serialization is treated as a straightforward mechanism: just implement the Serializable interface, and that's it. However, if we start digging a little deeper, it turns out that there are numerous subtleties and interesting points. In the article, we'll talk about the two built-in serialization mechanisms in Java, the Serializable and Externalizable interfaces. Let's…
Read More
AWS S3 Change Url, Proxy Url, Map to Domain in 2024

AWS S3 Change Url, Proxy Url, Map to Domain in 2024

It is not hard to map your ugly s3 url to your domain so you can have nice urls to share with your customers. I will take you to thishttps://files.utickets.co.za/media_wHIuV57H_i5XWqS3KN.jpg from thishttps://s3.eu-west-2.amazonaws.com/files.utickets.co.za/media_wHIuV57H_i5XWqS3KN.jpg https://files.utickets.co.za.s3.eu-west-2.amazonaws.com/media_wHIuV57H_i5XWqS3KN.jpg Its easy so dont stress. Get it working and then you can refine from there. I recommend you experiment with a new bucket. Steps Outline create a bucket with your domain in the name add the usual bucket policy to make your files accessible add the usual cors permissions to make your bucket files accessible add a cname dns entry into your domain manager Steps 1: Your…
Read More
Cross-database SQL Migration

Cross-database SQL Migration

BackgroundApplications may need to work based on different databases. Although the SQL syntax for various databases is generally consistent, differences still exist, which necessitates modifications to related SQL statements. Such modifications often require manual adjustments, which involve heavy workload and are error-prone. Fully automating the SQL transformation is nearly impossible due to the varying functionalities of different databases. However, upon closer examination, it becomes clear that most issues stem from differences in the syntax of SQL functions. Especially for functions related to dates and strings, there isn’t a standard in the field, and each database has its own approach. For…
Read More
Understanding Test Scenarios vs Test Cases: A Complete Guide for QA Engineers

Understanding Test Scenarios vs Test Cases: A Complete Guide for QA Engineers

Understanding Test Scenarios vs Test Cases: A Complete Guide for QA Engineers. As a QA engineer, understanding the distinction between test scenarios and test cases is crucial for effective testing. In this guide, we'll break down these concepts and help you understand when and how to use each one. What is a Test Scenario? A test scenario is like a high-level blueprint of what needs to be tested. Think of it as the "big picture" view of your testing strategy. Key Characteristics: High-level description Broader in scope Focuses on "what" to test Less detailed Used in early planning stages Example…
Read More
Idempotency in DynamoDB

Idempotency in DynamoDB

It shouldn't be any surprise that we rely on DynamoDB over at Authress for a variety of things. For context, we have a any number of databases of different types, and DynamoDB is just one of the ones we use. As we operate at significant scale, that means we are privileged with the opportunity to test the limits of our tools, of which DynamoDB is one. To get to the scale we are at, with the reliability we need for our customers, idempotency is table stakes. Failures will happen, and they will happen in every component. That means DynamoDB will…
Read More
Beyond Stream.distinct()

Beyond Stream.distinct()

A Stream of objects Starting with Java 8, you can use a Stream to process elements from a Collection (mostly classes derived from List or Set will be used for this) in an iterating way, defining filtering and mapping lazily, and then "consume" the Stream. You can transform the elements in a Stream for further processing by extracting values from objects (e.g. getting the city name from a person or calculating the length of a string) and filter elements (e.g. only persons older than x years or cities starting with "D") before consuming the resulting Stream of elements. What defines…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.