Python Programming Exercises: Collections and Dictionaries

String Deduplication and Sorting Simple code to remove duplicate characters from a string and sort the characters: input_string = input() unique_chars = list(set(input_string)) unique_chars.sort() result = ''.join(unique_chars) print(result) List Deduplication Removes duplicate names from a comma-separated list while preserving order: name_inp ...

Posted on Wed, 14 Oct 2026 16:18:39 +0000 by sockit2em

Implementing UDP Communication with Pump Architecture in .NET

In the previous article, we discussed the concept of a "pump" in programming and its various applications, but without a practical demonstration. This article presents a UDP communication demo that implements text messaging and file transfer capabilities within a local network, similar to a LAN messenger. While the functionality isn't ...

Posted on Sun, 27 Sep 2026 16:25:05 +0000 by webspinner

MATLAB Data Processing: Reading TXT Files and Plotting Differences

Reading TXT File and Creating 2D Plot In MATLAB, you can accomplish this task with the following approach: % Load data from text file raw = load('datafile.txt'); % Remove header row raw(1, :) = []; % Separate columns into variables x_axis = raw(:, 1); series_a = raw(:, 2); series_b = raw(:, 3); % Create visualization figure; plot(x_axis, ser ...

Posted on Fri, 25 Sep 2026 16:31:30 +0000 by zeb

Parsing XML and HTML Data with Python ElementTree

Parsing XML XML Tree Structure and Elements XML is a hierarchical data format with inherited structure, best represented as a tree. The xml.etree.ElementTree module provides two key classes: ElementTree represents an entire XML document as a tree, while Element represents individual nodes within that tree. File-level read/write operations typic ...

Posted on Mon, 21 Sep 2026 16:33:56 +0000 by coellen

Parsing Excel Files to JSON with Node.js and node-xlsx

To handle Excel files in Node.js, install the node-xlsx package using npm. npm install node-xlsx The node-xlsx library proivdes two primary functions: parse() for reading Excel files and build() for creating them. The parse() method accepts a file path and returns an array of objects representing the workbook's sheets. To convert an Excel file ...

Posted on Fri, 04 Sep 2026 16:21:29 +0000 by bigfatpig

Exporting Data to Spreadsheets and Text Files Using MATLAB writematrix

Function: writematrixExports matrix data to a file.Syntaxwritematrix(A) writematrix(A, filename) writematrix(___, Name, Value) Descriptionwritematrix(A) writes the homogeneous array A to a comma-separated text file. The output filename defaults to the workspace variable name appended with .txt. If the variable name cannot be determined, it save ...

Posted on Wed, 19 Aug 2026 16:47:07 +0000 by simn_stv

Extracting Plain Text from HTML Files Using Java

Free Spire.Doc for Java is a library that can process HTML by loading it into a document object model and extracting its textual content. This approach is useful for data processing, text cleaning, and content parsing tasks where only the core text is needed, without HTML tags, styles, or scripts. Library Setup Add the following dependency to y ...

Posted on Wed, 19 Aug 2026 16:40:22 +0000 by Ton Wibier

Functional Programming Utilities in Python: lambda, map, filter, and reduce

Lambda Expressions The lambda construct enables inline definition of anonymous functions, eliminating boilerplate for simple operations. The syntax follows the pattern lambda arguments: expression. Unlike standard def blocks, lambda returns a function object directly tied to the expression evaluation. Traditional function definition versus inli ...

Posted on Thu, 13 Aug 2026 16:57:17 +0000 by miasma

Calculating Values Across Merged Excel Cells Using Java

Processing Merged Cell Values in Apache POIWhen working with spreadsheets, combining adjacent cells often requires aggregating their underlying data beforehand. Once a region is merged, only the top-left cell retains its original value, while the rest are erased. Therefore, any arithmetic operation must occur prior to applying the merge.Procedu ...

Posted on Mon, 10 Aug 2026 16:14:59 +0000 by supratwinturbo

Developing Custom Processors for Apache NiFi

Custom Processor Development Workflow Custom processor development in Apache NiFi follows a structured workflow: code implementation following NiFi conventions → packaging as NAR file → deployment and usage. Implementation Following NiFi Conventions NiFi provides extensible processor interfaces and abstract classes. Developers implement custom ...

Posted on Tue, 04 Aug 2026 16:25:31 +0000 by mikeatrpi