MATLAB connects to the MYSQL database and performs addition and deletion operations

I recently built an experiment management system. The new UI interface of matlab is relatively interactive and user-friendly. I am new to mysql and have never touched a database before, so I will make a record. 1. Environment installation 1. Make sure that matlab has database toolbox installed, which can be queried through the ver […]

Custom annotations prevent forms from submitting code repeatedly

/** * Custom annotations to prevent repeated submission of forms * * @author LZJ */ @Inherited @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface RepeatSubmit { /** * Interval time (ms), less than this time is considered a repeated submission */ int interval() default 3000; /** * Interval time unit (milliseconds) */ TimeUnit timeUnit() default TimeUnit.MILLISECONDS; /** * […]

[Spring Practice – Building Spring Web Applications] 1.10 Processing forms

Introduction Web application function ○ Provide content ○ User fills in the form ○ Submit data Spring MVC controller provided ○ Process form display ○ Support for user submitted data In the Spittr app, a registration form is required for new users. SpitterController is a new controller that currently only has one request handling method […]

Dataworks API: Call all forms under the MC project

Article directory Preface Dataworks API documentation interpretation GetMetaDBTableList interface documentation API debugging Online debugging local debugging Operating environment Account secret issue Request data further processing summary Foreword Recently, I need to sort out the company’s data assets, which includes forms under various Dataworks projects. These forms, as one of the company’s important data assets, also […]

C++ Qt/VTK assembly forms a linkage connecting rod

Effect Key code #include “View3D.h” #include “Axis.h” #include <vtkActor.h> #include <vtkAppendPolyData.h > #include <vtkAreaPicker.h> #include <vtkAxesActor.h> #include <vtkBox.h> #include <vtkCamera.h> #include <vtkCaptionActor2D.h> #include <vtkCellArray.h> #include <vtkCleanPolyData.h> #include <vtkContourFilter.h> #include <vtkCubeSource.h> #include <vtkCylinder.h> #include <vtkCylinderSource.h> #include <vtkDataSet.h> #include <vtkGenericOpenGLRenderWindow.h> #include <vtkImplicitBoolean.h> #include <vtkInteractorStyleTrackballCamera.h> #include <vtkLine.h> #include <vtkMinimalStandardRandomSequence.h> #include <vtkNamedColors.h> #include <vtkObjectFactory.h> #include <vtkOrientationMarkerWidget.h> #include <vtkPlane.h> #include […]

python+requests+unittest performs automated interface testing!

1. Install requests, xlrd, json, unittest libraries pip command installation: pip install requests pip install xlrd pip install json pip install unittest Install in pycharm 2. Use the Page Object Model design concept to create six types of Python Packages (can also be implemented according to project requirements) 3. First create a Base_Page.py in the […]

python+requests+unittest performs automated interface testing!

1. Install requests, xlrd, json, unittest libraries pip command installation: pip install requests pip install xlrd pip install json pip install unittest Install in pycharm 2. Use the Page Object Model design concept to create six types of Python Packages (can also be implemented according to project requirements) 3. First create a Base_Page.py in the […]

Ubuntu18.4 (later changed to 20.4) deploys chatglm2 and performs fine-tuning based on P-Tuning v2

Ubuntu18.4 supports cuda11 but not cuda12, ubuntu20.4 supports cuda12! ! Download driver NVIDIA graphics card driver official download address Download the corresponding driver and place it in a certain directory. Before installing the NVIDIA graphics driver in a Linux system, it is recommended to uninstall the graphics driver nouveau that comes with the Linux system. […]