Tagged articles
219 articles
Page 3 of 3
FunTester
FunTester
Aug 19, 2019 · Frontend Development

Counting UI Elements in Android UiAutomator with a Custom Java Method

The article describes a problem encountered while learning Android UiAutomator—determining the number of assignment items on a screen—and presents a Java solution that iterates over UI elements using a custom getCountByResourceId() method, similar to Selenium's findElements(), with a code example illustrating the approach.

AndroidCode ExampleUI testing
0 likes · 2 min read
Counting UI Elements in Android UiAutomator with a Custom Java Method
FunTester
FunTester
Aug 6, 2019 · Databases

How to Build a Reusable MongoDB Utility Class in Java

This article presents a Java MongoDB utility comprising a static helper class and a MongoObject wrapper, explains methods for server and credential handling, client creation, collection access, and demonstrates usage with a sample main program and its output.

Code ExampleDatabase UtilityMongoDB
0 likes · 7 min read
How to Build a Reusable MongoDB Utility Class in Java
FunTester
FunTester
Jul 30, 2019 · Fundamentals

Exploring Python Lambdas: Prime Filtering and a Heart‑Shaped Print

The author revisits a prime‑number filter using Python's lambda syntax, then refactors a one‑line heart‑shape printer into clearer loops, showcasing how lambda expressions and list comprehensions can simplify mathematical visualizations while deepening understanding of Python's expressive power.

ASCII artCode ExampleHeart Shape
0 likes · 3 min read
Exploring Python Lambdas: Prime Filtering and a Heart‑Shaped Print
FunTester
FunTester
Jul 14, 2019 · Fundamentals

Create a Simple Groovy TimeWatch for Accurate Performance Timing

This article introduces a lightweight Groovy TimeWatch utility that lets developers record execution times with customizable markers, offering both millisecond and nanosecond precision, and explains its implementation, usage, and future multithreading considerations.

Code ExampleGroovyPerformance Testing
0 likes · 6 min read
Create a Simple Groovy TimeWatch for Accurate Performance Timing
Test Development Learning Exchange
Test Development Learning Exchange
Jan 21, 2019 · Fundamentals

Draw the ‘What Is Peiqi?’ Mascot with Python Turtle – Full Code Walkthrough

This tutorial provides a complete Python‑turtle script that recreates the popular “What Is Peiqi?” movie mascot, explains each drawing step—from nose and eyes to body and tail—shows how to run the program, and displays the final illustration, all without any promotional content.

Code Exampledrawing tutorialgraphics programming
0 likes · 7 min read
Draw the ‘What Is Peiqi?’ Mascot with Python Turtle – Full Code Walkthrough
Java Captain
Java Captain
Dec 28, 2018 · Backend Development

Introducing Hutool: A Comprehensive Java Utility Library

This article introduces the open‑source Chinese Java utility library Hutool, explains how to add it via Maven, demonstrates practical code examples such as HTTP form submission, HTML escaping, and scheduled tasks, and encourages developers to explore its extensive, well‑documented APIs.

BackendCode ExampleTutorial
0 likes · 6 min read
Introducing Hutool: A Comprehensive Java Utility Library
Test Development Learning Exchange
Test Development Learning Exchange
Aug 17, 2018 · Fundamentals

Using Python's str.format() for Advanced String Formatting

This article explains Python's str.format() method introduced in Python 2.6, covering its basic syntax, positional and named arguments, object formatting, numeric formatting options, alignment, fill characters, type specifiers, brace escaping, and custom template usage with clear code examples.

Code Exampleformat-specifiersstr.format
0 likes · 4 min read
Using Python's str.format() for Advanced String Formatting
Java Captain
Java Captain
Dec 6, 2017 · Backend Development

Understanding Java Reflection Mechanism and Its Practical Applications

This article explains Java's reflection mechanism, outlines its capabilities such as runtime class inspection, object instantiation, method invocation, and dynamic proxy creation, and provides numerous code examples demonstrating how to retrieve class information, manipulate fields, invoke methods, and apply reflection in patterns like factories.

Code ExampleDynamic ProxyReflection
0 likes · 17 min read
Understanding Java Reflection Mechanism and Its Practical Applications
MaGe Linux Operations
MaGe Linux Operations
Oct 5, 2017 · Fundamentals

Master Python Decorators: Concepts, Usage, and Design Patterns

This article explains what Python decorators are, their key characteristics, how to pass arguments, stack multiple decorators, use built‑in decorators from the standard library such as @property and @wraps, and relates decorator functions to the classic decorator design pattern, all illustrated with clear code examples.

Code Exampledesign patternfunctools
0 likes · 7 min read
Master Python Decorators: Concepts, Usage, and Design Patterns
ITPUB
ITPUB
Jul 6, 2016 · Databases

How to Update a Single Field in MongoDB Without Overwriting the Whole Document

The article shares a practical learning workflow for quickly mastering new technologies, illustrates a real‑world Ruby China case where a user‑verification flag must be updated, and demonstrates the correct MongoDB $set syntax to modify only one field without replacing the entire document.

Code ExampleDatabase UpdateLearning Methodology
0 likes · 6 min read
How to Update a Single Field in MongoDB Without Overwriting the Whole Document
Qunar Tech Salon
Qunar Tech Salon
Feb 17, 2015 · Backend Development

Generating QR Codes in Java with QRGen and ZXing

This tutorial explains the basics of QR codes and provides step‑by‑step Java examples—including a Hello World program, URL encoding, image customization, and a servlet implementation—showing how to generate and serve QR codes using the ZXing and QRGen libraries.

Code ExampleQR codeQRGen
0 likes · 9 min read
Generating QR Codes in Java with QRGen and ZXing