Tagged articles
Resize
12 articles · Page 1 of 1
This tutorial explains how to install the Pillow library, open an image file, resize it to desired dimensions, save the result, and encapsulate the process in a reusable Python function, providing complete code examples for practical image‑processing practice.
Code ExampleResizeimage-processing
0 likes · 5 min read

This article explains the recent correction in Alibaba's developer manual that replaces the ambiguous "expansion count" of HashMap with the precise "resize count", details the conditions under which HashMap triggers resize during the first put operation, and shows why storing 1024 elements in JDK 1.8 results in eight resize calls.
BackendJDK8Java
0 likes · 9 min read

This article explains how to create a Vue directive for element resizing, covering basic right‑side resizing, handling trigger zones, enforcing minimum dimensions, adding left/right multi‑direction support, and providing complete JavaScript and TypeScript implementations with usage examples and future enhancements.
DirectiveJavaScriptResize
0 likes · 16 min read


政采云技术Oct 11, 2023 · Frontend Development
This article introduces React Grid Layout, explains how to install and configure it, and provides detailed implementations of responsive breakpoint layouts, grid positioning, component rendering, drag‑and‑drop handling, and resizing logic, complete with code examples and performance considerations.
Drag-and-DropGrid LayoutReact
0 likes · 20 min read

This article explains how to resize images using OpenCV's cv2.resize function and how to scale multi‑dimensional tensors in PyTorch with torch.nn.functional.interpolate, providing detailed parameter descriptions and practical code examples for both single images and batch processing.
Computer VisionPyTorchResize
0 likes · 6 min read

This article explains the JDK 1.8 HashMap resize/re‑hash optimization, showing how the new algorithm splits buckets instead of re‑hashing every entry, and includes the full source code and visual illustrations for single nodes, linked lists, and red‑black trees.
HashMapJDK8Rehash
0 likes · 8 min read

This article dives deep into Java's ConcurrentHashMap, explaining how it uses CAS, volatile fields, lock‑striping and cooperative resizing to provide thread‑safe get, put and size operations while maximizing concurrency and performance.
CASConcurrentHashMapJava
0 likes · 33 min read

This article demonstrates how to use Python's OpenCV library to read an image, display its original dimensions, resize it to a specified size, save the resized image, and handle user input to close the display windows.
Computer VisionOpenCVPython
0 likes · 2 min read

This article explains the five Android soft‑input adjustment modes (RESIZE, PAN, UNSPECIFIED, NOTHING and the method to obtain the visible window frame), analyzes their underlying ViewRootImpl mechanisms with code examples, and demonstrates practical demos showing how each mode affects layout and scrolling behavior.
LayoutPANResize
0 likes · 20 min read

This article explains the internal design of Java's ConcurrentHashMap, covering its evolution from JDK7 to JDK8, the segment‑based locking mechanism, lock‑free reads, CAS operations, table resizing, treeification, and the key classes and methods that enable efficient concurrent access while maintaining thread safety.
CASConcurrentHashMapLock Splitting
0 likes · 42 min read

This guide explains how to safely reduce the /home partition size, free up space, and extend the root filesystem on a CentOS 7 server by unmounting /home, locating and terminating lingering processes, resizing the filesystem, installing required tools, and remounting the adjusted partitions.
CentOSLinuxResize
0 likes · 4 min read

This article explains the internal structure and behavior of Java's HashMap, covering its node and tree node classes, default parameters, hash calculation, resizing mechanism, and the conditions under which linked lists are transformed into red‑black trees, along with code examples and performance considerations.
HashMapJavaRed-Black Tree
0 likes · 22 min read
