Java.zip

Java Variant Type

207

Overview of Variant Types in JavaIn type theory,a Variant Type (also known as a Sum Type,Tagged Union,or Discriminated Union) represents a data structure that can hold a value of one of several distinct,pre-defined types at any given time. Unlike languages...

Java Kafka on CentOS 7: Install, Configure, & Run with Examples

Java Kafka on CentOS 7: Install, Configure, & Run with Examples

427

This guide will walk you through installing Java and Apache Kafka on a CentOS 7 system,followed by providing three simple Java examples to interact with Kafka. 1.System Setup and PrerequisitesBefore installing Java and Kafka,ensure your system is up-to-dat...

Architectural Diagram Gallery for Amazon MSK

Architectural Diagram Gallery for Amazon MSK

504

Amazon Managed Streaming for Apache Kafka (Amazon MSK) is a fully managed service that makes it easy for you to build and run applications that use Apache Kafka as a data store.Apache Kafka is an open-source platform for building real-time streaming data p...

Real-time Data Streaming Solutions - Kafka vs. Kinesis Comparison

Real-time Data Streaming Solutions - Kafka vs. Kinesis Comparison

854

Both Apache Kafka and Amazon Kinesis are powerful,highly scalable distributed streaming platforms designed to handle high-throughput,low-latency real-time data feeds.They serve as central nervous systems for data,enabling the collection,processing,and anal...

Creating a serverless Apache Kafka publisher using AWS Lambda

Creating a serverless Apache Kafka publisher using AWS Lambda

567

Apache Kafka is a distributed,fault-tolerant,high-throughput streaming platform designed for building real-time data pipelines and streaming applications.Essentially,it acts as a central nervous system for an organization's data,enabling different applicat...

MLOps Explained: Spark, Flink, and Reference Architecture Deep Dive

MLOps Explained: Spark, Flink, and Reference Architecture Deep Dive

245

MLOps (Machine Learning Operations)MLOps is a set of practices that aims to deploy and maintain machine learning models in production reliably and efficiently.It bridges the gap between machine learning development (ML Dev) and operations (Ops),similar to ...

Apache Kafka Explained: Powering Netflix, Building with PHP

Apache Kafka Explained: Powering Netflix, Building with PHP

494

What is Apache Kafka?Apache Kafka is a distributed streaming platform designed for building real-time data pipelines and streaming applications.It's a publish-subscribe messaging system that enables applications to publish and subscribe to streams of recor...

Multi-AZ Kafka Architecture

Multi-AZ Kafka Architecture

153

Deploying Apache Kafka across multiple Availability Zones (Multi-AZ) ensures high availability,fault tolerance,and disaster recovery.If an entire data center (AZ) goes down,Kafka continues to operate without data loss. 1.Architecture DiagramBelow is the co...

Enterprise-Scale 100k+ TPS Order Processing System Architecture

Enterprise-Scale 100k+ TPS Order Processing System Architecture

181

This architecture is designed to handle ultra-high concurrency (100,000+ Transactions Per Second) during peak events (e.g.flash sales,limited-edition drops) while ensuring zero data loss,strict transactional integrity,and sub-second response times. 1.High-...

How To Check If Your Printer Is Connected Using C#

1,027

This code will test whether a printer is connected to your system or not. It works with USB and network printers (haven't tested LPT printers yet). Some printers (like my HP DeskJet 930c) is detected online even though I press the OFF b...

How to get process id in C# like windows task manager ?

870

Following is simple example to get process name and add process name to listbox control.As you can see below, you can get working process by Process control. But most of the properties are supported on windows platform. If you want to access the similar pr...

How to convert integer to text string ?

700

C# provides an excellerent static instance can convert various types. You can easily get the wanted reult by Convert Class. Because It's a static instance, you don't need to declare instance.Following is the example to example to convert from integer to te...

How to convert text string to integer ?

612

C# provides an excellerent static instance can convert various types. You can easily get the wanted reult by Convert Class. Because It's a static instance, you don't need to declare instance.Following is the example to example to convert from text string t...

How to resize and save PNG or Jpeg Image file ?

635

The PictureBox control in C# is a visual element that allows you to display images within your application's user interface.It's a versatile tool for displaying images,icons,graphics,and other visual content,and it can be easily manipulated using propertie...

How to convert bitmap image to jpeg image ?

357

C# provides easy interface to convert image.Following is the simple example.using System.Drawing.Imaging;...Image image = Image.FromFile("test.bmp");image.Save("test.jpg", ImageFormat.Jpeg);Above is PNG to jpeg. You can convert Jpeg to PNG as following.usi...

To load image from file

454

The `Image.FromFile` method in C# is used to load an image from a specified file path into an `Image` object.It takes a string argument representing the full path to the image file and returns a new `Image` object containing the loaded image data.This meth...

How to speed up access to the RichTextBox Lines property

832

Using a foreach loop will be substantially faster than a for loop when accessing the items in a RichTextBox's Lines property. For example, the following code loads a RichTextBox with 1000 lines of text and accesses each line from the Lines property. On a 3...

How to restrict a program to a single instance

730

In the program's Main method,call ProcessUtils.ThisProcessIsAlreadyRunning() to determine if another instance of the program is already running.ThisProcessIsAlreadyRunning attempts to create a Mutex object with the same name as the program (Application.Pro...

Graphics in C# - Irregular Forms

912

Quite frankly, I think this topic is a lot of fun...the thought of making an app look completely different from the usual rectangular-formed layout really appeals to me.Drawing an irregular form, like drawing anything, requires four things : a surface, a s...

Extracting the Country from IP Address

470

Notes: If you want to run this sample,you should copy the Ip address to driver c:. Using the codePart 1.using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows....

How To Print Text In C#

456

If you want to use MultipadPrintDocument in your own code,it's best to rename the class and its constructor to something more appropriate.Then add a variable of type XXXPrintDocument to your form and implement the menu items as follows: .

How to send binary data through C# CGI app?

997

Following example implemented binary data downloading. If you are using Apache and wanna test it just put the EXE in the cgi-bin folder under Apache's directory.Also note that the parameters are static just for this example.