Using fastDFS client to transform file upload

java client Mr. Yu Qing provides a java client, but as a C programmer, the Java code written can be imagined. And it's been a long time since maintenance. Here we recommend an open source FastDFS client that supports the latest spring boot 2.0. It is very simple to configure and use. It supports c ...

Posted by changeback on Tue, 04 Feb 2020 04:55:40 -0800

python less than 100 lines of code to complete face recognition

1. Preparation environment python 3.5 opencv 2. Configuration environment pip install opencv-python pip install numpy pip install opencv-contrib-python 3. Prepare training data 20 photos of Tong Liya, stored under folder 0 20 photos of Dong Xuan, stored under folder 1 4. Prepare test data ...

Posted by phence on Mon, 03 Feb 2020 09:58:46 -0800

Solving jar package dependency: Spring IO platform launches bom

Spring IO Platform Origin: at first, spring only focuses on ioc and aop, and now it has developed into a huge system. For example, security, mvc, etc. In this way, when different modules or external integration, the dependency processing needs corresponding version numbers. For example, the integration of the newer spring and the older quartz ...

Posted by msimonds on Mon, 03 Feb 2020 09:39:55 -0800

Troubleshooting of namenode in HDFS

After NameNode fails, you can use the following two methods to recover data: 1. Copy data in SecondaryNameNode to the directory where NameNode stores data (1) kill -9 NameNode process [test@hadoop151 ~]$ jps 3764 DataNode 4069 NodeManager 3654 NameNode 7738 Jps [test@hadoop151 ~]$ kill -9 3654 [test@h ...

Posted by webtechatlantic on Mon, 03 Feb 2020 08:51:44 -0800

Print < div id = "printarea" >?

How do I print the indicated div (without manually disabling all other content on the page)? I want to avoid using the new preview dialog, so it's useless to create a new window with this content. The page contains several tables, one of which contains the div s I want to print - the table has a visual style for the network and should no ...

Posted by delxy on Mon, 03 Feb 2020 07:21:09 -0800

ROS navigation -- building a map with Gmapping

Building a map with Gmapping Introduction to Gmapping function package Some preparations for using the Gmapping function package /tf Radar and robot base coordinates Odometer /scan Using the gamma Ping Feature Pack Map obtained Introduction to Gmapping function package See the wiki website G ...

Posted by Dracolas on Mon, 03 Feb 2020 02:31:41 -0800

Get color int from color resource

Is there any way to get color information from color resources? I'm trying to get the red, blue, and green components of the colors defined in the resource (R.color.myColor) so that I can set the values of the three search bars to a specific level. #1 building Define your color Value / color.xml <?xml version="1.0" encoding="utf ...

Posted by Serpent7 on Mon, 03 Feb 2020 01:50:53 -0800

mybatis notes (open)

Development environment jdk1.8 maven mysql8.0 1, guide package 2. Configure config (including write db.properties) db.properties: driver=com.mysql.cj.jdbc.Driver url=jdbc:mysql://localhost:3306/mybatis?useSSL=false&serverTimezone=UTC mybatis-config.xml: <?xml version="1.0" encoding="UT ...

Posted by Sa177ir on Sun, 02 Feb 2020 10:15:51 -0800

How to make the corner circle of the button?

I want to round the corner of the button. Is there an easy way to do this in Android? #1 building Create an xml file in the drawable folder as follows <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" android:padding="10dp"> <!-- you ...

Posted by dejvos on Sat, 01 Feb 2020 07:47:12 -0800

android gesture recognition

No more details Gesture recognition code http://download.csdn.net/detail/zhupengqq/9578532 After running the above project, it will generate such a gesture recognition library, gestures, and create a new project, Under res, create a raw folder, and then import the library   Here is an exampl ...

Posted by elToro on Sat, 01 Feb 2020 07:47:21 -0800