Fading Coder

One Final Commit for the Last Sprint

Weekly Technical Summary on Deep Learning Experiments and Model Debugging

Experiment Runs Encoder Integration with DenseNet and CBAM in Decoder Applied a DenseNet block within the encoder and inserted a CBAM module at the decoder's first layer. Training used the CurveVelA dataset (24,000 samples) with a learning rate of 0.001. Loss functions tested were Smooth L1 and LPIP...

btrfs Filesystem Administration in Linux

btrfs Filesystem Overview btrfs is a modern copy-on-write (CoW) filesystem designed for Linux that offers several advanced capabilities: Multi-Device Support: btrfs can span multiple underlying storage devices and supports various RAID configurations with online device addition, removal, and modific...

Binary Search Tree Operations: Trimming, Array Conversion, and Greater Sum Tree

Trimming a Binary Search Tree (LeetCode 669) The algorithm removes all nodes not within the range [low, high]. The key insight is the nested recursion: when the current node's value is outside the range, one entire subtree can be discarded, but the other subtree may still contain out-of-range nodes...

Solving Impartial Games Using Directed Acyclic Graphs and SG Functions

In competitive programming, many game theory problems fall under the category of impartial combinatorial games (ICG). These games involve two players who take turns making moves according to fixed rules. Crucially, both players have identical move options from any given state, and no randomness or h...

Binary Tree Algorithms: Maximum Binary Tree, Merge Trees, BST Search, and Validation

Constructing a Maximum Binary Tree Given a unique integer array nums, construct a maximum binary tree following these recursive steps: Create a root node with the maximum value in the array. Recursively build the left subtree from the elements before the maximum value. Recursive build the right subt...

Retrieving Saved Wi-Fi Profiles Using Windows Netsh Utility

The Windows Network Shell (netsh) incorporates a dedicated context for managing Wireless LAN (wlan) settings. Executing the profile display command within this context reveals all wireless network configurations currently persisted on the local machine. These records contain essential connection par...

Custom Authentication Implementation in C#

Custom Authorization Attribute The following implementation extends AuthorizeAttribute to manage custom authentication logic: public class CustomAuthAttribute : AuthorizeAttribute { public override void OnAuthorization(HttpActionContext actionContext) { if (SkipAuthorization(actionContext) || IsAuth...

Integrating MyBatis Generator with a Custom Mapper Plugin

Configuring MBG with Maven An example from the Mybatis-Spring project demonstrates this integration. Using the Maven plugin allows referencing Maven properties in generatorConfig.xml via the ${property} syntax. First, examine the relevant section of the pom.xml configuraton: <properties> <!...

Designing a STM32-Based BLDC Motor Drive: Schematics and Firmware

1. Core Architecture Driving a brushless DC (BLDC) motor with an STM32 microcontroller (e.g., STM32F103, STM32F407) relies on generating complementary PWM signals via advanced timers to control a three-phase inverter bridge. Rotor position is determined using Hall-effect sensors or back-EMF detectio...

Exploiting Samba Usermap_script Vulnerability with Metasploit

Vulnerability Analysis SMB vulnerabilities affect implementations of the Server Message Block protocol, commonly targeting Windows systems and Linux's Samba service. These flaws typically allow unauthorized access, remote code execution, or privilege escalation through ports 139/445. The Samba Userm...