Basic manual paging

The servlet code is as follows:[Java] plain text view copy code? @WebServlet(urlPatterns = "/pageServlet")public class pageServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } @Override protected void doPost ...

Posted on Fri, 29 Nov 2019 15:03:42 -0500 by tamayo

spark custom function

Classification of custom functions UDF: enter a parameter and return a parameter UDTF: enter a parameter and return multiple parameters (found in hive, not in sparkSQL, because flatMap can be used in spark to realize this function) UDAF inputs multiple parameters and returns one parameter, aggregate count and sum, which are a ...

Posted on Fri, 29 Nov 2019 12:48:26 -0500 by iijb

python pymongo+networkx to visualize the blood relationship of mongo data

Data consanguinity usually refers to the link of data generation. Its collection is mainly realized by automatic analysis (stored procedure, SQL, ETL process and other files) combined with manual collection. This paper does not involve how to obtain data consanguinity, but only provides some ideas on how to operate mongodb through python and vi ...

Posted on Fri, 29 Nov 2019 10:20:18 -0500 by gdrums

Big talk design, no mode - universal rights design and Implementation

When you write a lot of code, there is always some experience, but what is it?if...else uses it more often than others?Obviously not.Some great designs can be called experience! Functional PermissionsThe classic permission design popular on the network is the design idea of "subject" - "domain" - "permission" (who ...

Posted on Thu, 28 Nov 2019 22:11:40 -0500 by clarky08

PostgreSQL PostGIS spatial data constraint usage

Label PostgreSQL, PostGIS, spatial data constraints background There are certain specifications for spatial data, such as SRID. The space type geometry is all inclusive. It can store not only points, but also polygons, line segments, etc. This brings an interesting worry. When our business is not standardized enough, you can store any SRID d ...

Posted on Thu, 28 Nov 2019 17:32:33 -0500 by dschreck

Beginners of Sqlite3 in C + +

I. Introduction to sqlite3 1. Personal opinions sqlite3(Official documents )It is a kind of lightweight and widely used relational database. sqlite3 database can run on Unix like and window like systems. Most Unix like systems (such as Linux) have sqlite3 database installed by default, and Ubuntu 16.04 is the system for personal use. By default ...

Posted on Thu, 28 Nov 2019 04:02:41 -0500 by unreal128

Regular full backup of mysql database with mysql dump in windows Environment

Create a text document in windows and change. txt to. Bat. After creating the bat file, copy the command line of the bat file below to modify the variable configuration. Then add a scheduled task to the windows scheduled task program   The command line of bat file is as follows: rem ========================MySQL backup start ...

Posted on Wed, 27 Nov 2019 16:57:05 -0500 by pedroz

Model layer of django

Catalog Configure test scripts ORM single table operation Previous operation Create data Modifying data QuerySet object characteristics Difference between get and filter Delete data Must know must know 13 operations 1. all() query all 2. filter() filtering ...

Posted on Wed, 27 Nov 2019 09:54:00 -0500 by sunnyside

Record user login information, how do you implement it in PHP

For beginners of PHP, there may be some difficulties. It is suggested that you take a look at the basic meaning of session in PHP. You can choose to refer to it if you need. Next, we will introduce the specific method of session recording user login information in PHP in detail through specific code examples. 1. Simple login interface code ex ...

Posted on Wed, 27 Nov 2019 08:42:07 -0500 by Eugene

Summary of the use of associated query (one-to-one) in mybatis

When using mybatis, associated queries are often used. Here is a summary of the use of associated queries (one-to-one) (2) First, let's talk about one-to-one association query. It is recommended to use tags to complete one-to-one association query 1. The first way to use labels is to be straightforward. Look at the code: 1.1 cre ...

Posted on Tue, 26 Nov 2019 14:27:23 -0500 by patrick99e99