Fading Coder

One Final Commit for the Last Sprint

Unity StateMachineBehaviour: Adding State Logic in Animator

Unity StateMachineBehaviour: Adding State Logic in Animator
Unity StateMachineBehaviour Overview In Unity's Animator, you can add custom behavior to individual animation clips by clicking Add Behaviour. This attaches scripted logic that executes during that specific animation state. Once created, the default script structure looks like this: using System.Col...

CMU 15-445/645 Project 2: B+Tree Index Implementation

Checkpoint #1 Task #1 – B+Tree Pages Implement three page classes that represent the data storage units of a B+Tree. B+Tree Parent Page Files: src/include/storage/page/b_plus_tree_page.h and src/storage/page/b_plus_tree_page.cpp. This is a base class containing fields shared by its two subclasses. F...

Optimizing Frontend Performance with Webpack Code Splitting and Lazy Loading

Understanding Code Splitting Code splitting is a bundling strategy that breaks down a large application codebase into smaller, manageable chunks. Instead of delivering one massive file to the browser, the application loads only the necessary code initially, deferring the rest until it is explicitly...

Basic SQL Injection Vulnerability Analysis in PHP

Basic Injection SQL parameters are concatenated without any filtering. <?php $con = mysql_connect("localhost","root","root"); if (!$con){die('Could not connect: ' . mysql_error());} mysql_select_db("test", $con); $id = stripcslashes($_REQUEST[ 'id' ]); $que...

Implementing RabbitMQ Topic Exchange with Wildcard Routing

Topic exchanges enable flexible messsage routing using wildcard patterns. The binding keys support two special chaarcters: * matches exactly one word, while # matches zero or more words. Publishing Messages with Topic Exchange public void PublishTopicMessages() { var connectionHelper = new MQHelper(...

Analysis of Codeforces Round 919 Division 2 Problems B and C

Problem B: Summation Game This problem involves a game between two players, Alice and Bob, operating on an array of integers. Alice aims to maximize the final sum of the array elements, while Bob aims to minimize it. Alice moves first by removing up to k elements from the array. Subsequently, Bob se...

Core Docker Operations: Images, Containers, and Runtime Management

Docker is a platform for developing, shipping, and running applications inside lightweight, isolated environments called containers. Built on Linux kernel primitives—primarily namespaces and cgroups—it enables process-level isolation without the overhead of full virtualization. Key Architectural Fou...

Implementation and Analysis of Heap Sort, Quick Sort, and Merge Sort

Heap Sort Heap sort operates on a heap data structure. The key steps involve heap construction and sorting. Heap Construction Heap construction involves building either a max-heap (for ascending order) or min-heap (for descending order). The process uses a downward adjustment method starting from th...

Implementing the Prototype Pattern in C++: Shallow vs. Deep Copying

The Prototype patern is a creational design pattern used to create new objects by copying an existing instance, known as the prototype. In C++, this is typically achieved through copy constructors. When dealing with classes that manage dynamic memory, it is crucial to understand the distinction betw...

Depth-First and Breadth-First Search Algorithmic Patterns

Permutation Generation Generating permutations is a foundational DFS application. By treating each selection step as a level in a tree, we can explore all possible orderings. import java.util.Scanner; public class Permutations { private static int[] sequence = new int[12]; private static boolean[] s...