Multi-level actions of laravel-admin

The framework of laravel-admin has been defined for multi-level actions that can be viewed on the official website. It will not be repeated here. However, when using it, it is found that the function is slightly different from what you want. It is not useful when you first enter the default, so you change it and add ...

Posted by gabaod on Sun, 19 Jul 2020 07:24:26 -0700

python selenium+beautifulSoup crawl lottery network data

I've always been particularly interested in python, and now I'm learning python. Here's how to use the library selenium and beautifulSoup from Python to crawl 360 lottery net winners: First open the page you want to crawl to see its content structure: Web address is http://chart.cp.360.cn/kaijiang/ssq?sb_spm=b5d6e27c6 ...

Posted by mash on Sat, 18 Jul 2020 09:23:12 -0700

Use of the base class of RAC

RACSignal,RACSubject,RACReplaySubject RACSignal // **1. Create Signal** RACSignal *signal = [RACSignal createSignal:^RACDisposable * _Nullable(id<RACSubscriber> _Nonnull subscriber) { // The block, which is called whenever the signal is subscribed to; used primarily to send data // * ...

Posted by yalag on Sat, 18 Jul 2020 09:16:29 -0700

Use of the base class of RAC

RACSignal,RACSubject,RACReplaySubject RACSignal // **1. Create Signal** RACSignal *signal = [RACSignal createSignal:^RACDisposable * _Nullable(id<RACSubscriber> _Nonnull subscriber) { // The block, which is called whenever the signal is subscribed to; used primarily to send data // * ...

Posted by Permutant on Sat, 18 Jul 2020 09:17:09 -0700

Shake like WeChat

Shake function 1. Get Sensor Management Classes SensorManager sensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 2. Inherit the SensorEventListener interface and override sensor listening methods @Override public void onSensorChanged(SensorEvent event) { /** * 1,Get the sensor type ( ...

Posted by thomasadam83 on Sat, 18 Jul 2020 09:06:41 -0700

Hiberante reverse-generates database tables

1,hibernate.cfg.xml Comment out this section of configuration <!--Update database level automatically--> <!--<property name="hbm2ddl.auto">create</property>--> 2. New Generate Database Table Tool Class public class HibernateSchemaExport { static Session session; static Configuration ...

Posted by rigi2 on Sat, 18 Jul 2020 08:49:13 -0700

MySQL Database Event Timer Execution Task

1. Background Because the business of the project is constantly moving forward, it is unavoidable that the number of tables in the database will become larger and larger, constantly squeezing hard disk space.Business growth cannot be sustained even with the greatest amount of space, so it is necessary to regularly delete unnecessary data.A tab ...

Posted by squizz on Sat, 18 Jul 2020 08:15:03 -0700

Thread Synchronization--Synchronization Lock--A more typical example

In the previous post, a simple example of using shared locks was given.This post introduces a slightly more complex example. There is a global variable array out containing 100 elements, all initialized to zero.Then open two sub-threads to assign the array out at the same time.In this process, shared locks should be enabled to synchronize the ...

Posted by yacahuma on Sat, 18 Jul 2020 08:14:38 -0700

Picture deletion for laravel-admin

There is a deep doubt about laravel-admin's picture upload mechanism. Deleting avatar pictures on the user information page will cause an error. It was 1.4 at that time, and later updated 1.5 found that the delete button disappeared directly. If you use image normally in the form during the process of use, the slight ...

Posted by Permutant on Sat, 18 Jul 2020 07:40:26 -0700

java ajax instantly verifies that the same classification exists in the database

When I do the project again, the customer needs me to implement a function, probably when adding classifications, if the database has the same classifications, the jsp interface will prompt for information and cannot be added successfully.The results are as follows:   Below is the idea for implementation: 1. First implement an onblur event in ...

Posted by BLeez on Fri, 17 Jul 2020 09:02:47 -0700