Posts

kotlin springboot热部署

Image
build gradle file import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { id("org.springframework.boot") version "3.1.4" id("io.spring.dependency-management") version "1.1.3" kotlin("jvm") version "1.8.22" kotlin("plugin.spring") version "1.8.22" } group = "com.example" version = "0.0.1-SNAPSHOT" java { sourceCompatibility = JavaVersion.VERSION_17 } repositories { mavenCentral() } dependencies { implementation("org.springframework.boot:spring-boot-starter-data-jdbc") implementation("org.springframework.boot:spring-boot-starter-web") implementation("com.fasterxml.jackson.module:jackson-module-kotlin") implementation("org.jetbrains.kotlin:kotlin-reflect") runtimeOnly("com.mysql:mysql-connector-j") testImplementation("org.sprin...

mysql的常见问题

1.忘记mysql密码 vi /etc/mysql/my.cnf: 在[mysqld]中添加 skip- grant - tables mysql > use mysql ; Database changed mysql > select * from user ; Empty set ( 0.00 sec ) mysql > truncate table user ; Query OK , 0 rows affected ( 0.00 sec ) mysql > flush privileges ; Query OK , 0 rows affected ( 0.01 sec ) mysql > grant all privileges on *.* to root @ localhost identified by 'YourNewPassword' with grant option ; Query OK , 0 rows affected ( 0.01 sec ) [ root ~]# mysql - u root - pYourNewPassword 2.远程访问 ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.0.202' (111 "Connection refused") 修改sudo vi mariadb.conf.d/50-server.cnf 注释掉bind_address 127.0.0.1

python的串口通信(pyserial)

1 使用用硬件 树莓派,CH340串口转USB两个,PC 2 环境安装 树莓派我使用的是自带系统,环境都已经配好了,PC这边我安装了的ubunt子系统,有python环境,那么就需要安装pyserial库和CH340的驱动 sudo apt - get update sudo apt install python - pip pip install -- upgrade pip pip install pyserial 可以使用命令查看本机的串口 python -m serial.tools.list_ports python3 -m serial.tools.list_ports PC的话将会列举一堆,需要取设备管理器中找到对应的COM口号,例如我串口是COM8,则是用的/dev/ttyS5 树莓派的话将会显示两个,/dev/ttyAMA0是GPIO处的串口,/dev/ttyUSB0则是我插入的串口转USB模块 pi @raspberrypi : ~ $ python - m serial . tools . list_ports / dev / ttyAMA0 / dev / ttyUSB0 3 收发测试 PC lissettecarlr @lissettecarlr ~ % python Python 2.7 .12 ( default , Nov 12 2018 , 14 : 36 : 49 ) [ GCC 5.4 .0 20160609 ] on linux2 Type "help" , "copyright" , "credits" or "license" for more information . > > > import serial > > > com = serial . Serial ( '/dev/ttyS8' , 115200 , timeout = 0.2 ) > > > com . isOpen ( ) True > > > com . write ( '123...

Blender Common Shortcuts

Common Shortcuts Conventions Keyboards Hotkey letters are shown in this manual like they appear on a keyboard; for example: G refers to the lowercase  g . Shift ,  Ctrl ,  Alt are specified as modifier keys. Ctrl-W ,  Shift-Alt-A , … indicates that these keys should be pressed simultaneously. Numpad0  to  Numpad9 ,  NumpadPlus refer to the keys on the separate numeric keypad. Other keys are referred to by their names, such as  Esc ,  Tab ,  F1  to  F12 . Of special note are the arrow keys,  Left ,  Right  and so on. Mice This manual refers to mouse buttons as: LMB Left Mouse Button RMB Right Mouse Button MMB Middle Mouse Button Wheel Scrolling the wheel. Mouse Blender’s default keymap has two main interaction modes: Right- and left-click-select. In the past, Blender has used right-click-select to have a more clear distinction between selection and action. In this mode, ...

GIMP快捷键

S代表Shift,C代表CTRL。 table B.1: The Toolbox Functions Tool name Keystroke Full Path airbrush   a Image:Tools/airbrush Bezier Select   b Image:Tools/Bezier Select Blend   l Image:Tools/Blend Bucket Fill   S-b Image:Tools/Bucket Fill Clone   c Image:Tools/Clone Color Picker   o Image:Tools/Color Picker Convolve   v Image:Tools/Convolve Crop & Resize   S-c Image:Tools/Crop & Resize Default Colors   d Image:Tools/Default Colors Dodge & Burn   S-d Image:Tools/DodgeBurn Ellipse Select   e Image:Tools/Ellipse Select Eraser   S-e Image:Tools/Eraser Flip   S-f Image:Tools/Flip Free Select (Lasso)     f Image:Tools/Free Select Fuzzy Select (Magic Wand)     z Image:Tools/Fuzzy Select Ink   k Image:Tools/Ink Intelligent Scissors   i Image:Tools/Intelligent Scissors Magnify   S-m Image:Tools/Magnify Move   m Image:Tools/Move Paintbrush   p Image:Tools/Paint...