49 Three.js use THREE.TextGeometry to create three-dimensional text to solve the problem of Chinese scrambling
Solution
If only a pile of Chinese characters is found???? It is proved that the font currently imported does not support Chinese characters. Our solution is to introduce json files that can support Chinese characters. So the question is, how do we get this json file?
-We can use ttf format file for conversion. There is an address for onli ...
Added by S A N T A on Mon, 04 May 2020 02:24:37 +0300
The process of integrating ActiveMQ with Spring Boot
Install the ActiveMQ server, (or not, if not, use memory mq)
To build a Spring boot project and add dependencies, just add this one
<!-- Add to acitivemq rely on -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-activemq</artifactId>
</dependency>
A ...
Added by dspeer on Sun, 03 May 2020 07:28:24 +0300
Understanding the differences between HashMap and LinkedHashMap
Understanding the differences between HashMap and LinkedHashMap
brief introduction
We know that the variable order of HashMap is unpredictable, which means that the convenient output order is not necessarily the same as the insertion order of HashMap.This feature is often confusing to our work.To do this, we can use LinkedHashMap.
LinkedHashMap ...
Added by fubowl on Sun, 03 May 2020 05:49:24 +0300
computed -- real time calculation attribute
Project: https://github.com/ccyinghua/vue-node-mongodb-project/blob/master/07-shoppingCart.md
The calculated function of real-time calculation attributes, real-time calculation attributes, is just the function writing method, and there is no need to declare in data. Some business logic codes can be placed in computed. Remember to return.
exampl ...
Added by Blob on Sun, 03 May 2020 01:11:13 +0300
Custom sprinkled beans
First on the renderings
The effect of sprinkling beans, a whim, thought the animation was very interesting, so I took the time to write a play
Drawing process:
Define 6 "beans". Each bean has its own attributes, size, throwing speed, etc. then control the direction and state of each bean. The rebound effect uses the differencing devi ...
Added by klaibert26 on Fri, 01 May 2020 20:33:28 +0300
Custom View - draw a moving Tai Chi diagram
Effect
Taiji.gif
Step breakdown
Regular figures like Taiji are usually decomposed into basic figures by mathematical knowledge, such as line segment, circle, rectangle, sector, polygon, etc., and then drawn step by step.
Decomposing Taiji diagram
@Override
protected void onDraw(Canvas canvas) {
int width = getWidt ...
Added by sasikumar81 on Fri, 01 May 2020 02:44:01 +0300
java car rental system code
Sketch
The first year of college. java car rental system code
Operation result:
Console:
The above is the overall implementation effect.
Analysis
I store the car as an array:
public class Car {
String[ ] name = new String[50];
int[ ] state = new int[50];
String[ ] date=new String[50];
...
Added by adrianl on Thu, 30 Apr 2020 22:58:10 +0300
Using PhotoView to view pictures
The project needs to realize the function of picture viewing. Using ImageView can't scale, using the system's picture viewer can't meet their own customized needs, so I used Viewpager + PhotoView to realize it.
Introducing PhotoView
Github link for PhotoView , PhotoView is designed to help developers easily scale Android ImageView.
1. Conf ...
Added by yanisdon on Thu, 30 Apr 2020 17:22:01 +0300
Fastlane automated packaging notes
Install fastlane
github warehouse: https://github.com/fastlane/fastlane
fastlane official website: https://docs.fastlane.tools/
fastlane actions: https://docs.fastlane.tools/actions/
A configuration document: https://www.jianshu.com/p/0a113f754c09
Upload to dandelion: https://www.pgyer.com/doc/view/fastlane
An example of a custom lanes group: h ...
Added by stc7outlaw on Thu, 30 Apr 2020 12:03:09 +0300
A good paging plug-in of Mybatis com.github.pagehelper
1. Need to import the jar package of PageHelper
If maven is not used, just import the jar package into the lib folder. The PageHelper plug-in has open source on github,
Address: https://github.com/pagehelper/Mybatis-PageHelper/tree/master/src/main/java/com/github/pagehelper.
If maven is used, the plug-in can be introduced in pom.xml as fol ...
Added by Arnerd on Wed, 29 Apr 2020 18:57:15 +0300