Persisting Custom Attributes During Fabric.js Canvas Serialization
Fabric.js automaticaly filters out non-standard properties when exporting canvas data via built-in serialization methods. By default, attributes appended directly to shape instances are stripped during the conversion process to prevent bloating the resulting payload with unsupported fields.
When instantiating a drawing object, developers often ...
Posted on Wed, 17 Jun 2026 17:20:16 +0000 by marknt
Converting Java Objects to JSON Strings with Gson: Formatting and Field Extraction
JSON Format
JSON (JavaScript Object Notation) is a lightweight data interchange format that follows these structural rules:
Data consists of key-value pairs where keys must be strings, and values can be one of several data types:
Numbers (integers or floating-point values)
Strings (enclosed in double quotes)
Booleans (true or false)
null
Objec ...
Posted on Sun, 14 Jun 2026 18:03:09 +0000 by furious5
Utilizing RandomAccessFile for File-based CRUD Operations
The RandomAccessFile class enables both reading and writing to files, offering the capability to jump directly to any location within a file for data access. This feature makes it ideal for scenarios where only specific parts of a file need to be acecssed rather than reading the entire file sequentially.
Different from standard output streams l ...
Posted on Wed, 10 Jun 2026 18:34:32 +0000 by spartan7
Accessing Extension Data in Protocol Buffers Using C#
Understanding Protobuf Extensions in C#
When working with Protocol Buffers (protobuf) in C#, especial when interoperating between different platforms such as Java and .NET, handling extension fields correctly is crucial. While the generated classes include infrastructure for extensions, accessing them requires using specific utility methods fro ...
Posted on Sun, 07 Jun 2026 17:01:39 +0000 by trock74
Implementing File Input and Output Operations in C++
Data generated during program execution typically resides in volatile memory and is lost when the application terminates. To preserve this data, programmers must implement file handling mechanisms to persist information to the hard drive. In C++, this functionality is provided by the standard library header <fstream>.
Files are generaly c ...
Posted on Sat, 06 Jun 2026 18:33:18 +0000 by HokieTracks
Object Cloning in Java: Shallow, Deep, and Serialization Strategies
Primitive assignments in Java duplicate the actual value:
int count = 10;
int tally = count;
This behavior applies to all eight primitive types. Object variables, however, store memory addresses rather than the objects themselves. Direct assignment therefore creates an alias, not an independent entity:
class Employee {
private int badgeId; ...
Posted on Fri, 05 Jun 2026 18:12:29 +0000 by hand
Getting Started with Protocol Buffers in Java
Protocol Buffers (protobuf) is a language-neutral and platform-agnostic mechanism for serializing structured data, originally developed by Google. Unlike XML, which is text-based and verbose, protobuf provides a binary format that is significantly more compact and efficient, leading to faster serialization and network transmission. While it lac ...
Posted on Mon, 01 Jun 2026 17:32:02 +0000 by leequalls
MySQL JDBC CRUD Operations and Java Object Serialization
Sequential Data Reading
public static void authenticateUser(String username, String password) throws Exception {
Class.forName("com.mysql.cj.jdbc.Driver");
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/mydb", "root", "password");
Statement statement = conn.createSt ...
Posted on Sat, 23 May 2026 19:03:47 +0000 by Jiin
Extensible Serialization Algorithms and Network Parameter Configuration in Netty
Serialization Requirements
A serialization algorithm must enable bidirectional conversion: Object → Byte Array → Object. During serialization, Java objects transform into transmissible data (byte[] or JSON), which ultimately converts to byte[]. Deserialization reverses this process, converting inbound data back to Java objects for processing.
I ...
Posted on Tue, 19 May 2026 09:51:23 +0000 by iijb
Generate C# Classes from .proto Files Using Protocol Buffers
Protocol Buffers (protobuf) is a language-neutral, platform-independent binary serialization format developed by Google. It offers superior performance over text-based formats like XML or JSON and is widely used in network communication, configuration storage, and cross-platform data exchange.
To generate C# classes from a .proto definition, yo ...
Posted on Sun, 17 May 2026 23:03:23 +0000 by rachelkoh