Summary of JSP scrambling

Specify the encoding format on the jsp page to ensure that it is consistent with the character set of mysql: <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> Step 1: make sure the project code is UTF-8 Step 2: ma ...

Posted by gigabyt3r on Sun, 03 May 2020 21:19:25 -0700

Cookie of Java Web session Technology

Conversational Technology Session: multiple requests and responses in one session One session: the browser sends a request to the server for the first time, and the session is established until one party disconnects Function: share data among multiple requests within the scope of one session Method: Client session Technology: Cookie Sessio ...

Posted by nakkaya on Sun, 03 May 2020 20:03:23 -0700

Python learning notes NO.1 variables, comments and simple input and output

Python variables Variables are used to store some intermediate results in the computation of programs. In order to facilitate future calls, variables must be descriptive. Variable can be regarded as a container for information, marked and stored in memory, which can be used in the whole program. student_number=30 studentNumber=30 ...

Posted by karenn1 on Sun, 03 May 2020 17:54:11 -0700

(4) -- color matrix for Android image processing

We know that adjusting the color matrix can change the color effect of an image. Image processing is largely looking for the color matrix of an image. We can not only process the image through ColorMatrix, but also modify the value of the matrix accurately to achieve color effect processing. The color matrix of 4X5 is ...

Posted by kath421 on Sun, 03 May 2020 06:03:59 -0700

New Python day 4 (appliance)

Python generator Generators and build expressions a=[i*2 for i in range(10)] generate expressionb=(i*2 for i in range(10)) (generator) Features of generator: advantages (no memory space, fast generation speed), disadvantages (can't slice, can only save the current value, can't get the previous value) Python create generator #1.generator b=(i* ...

Posted by Warptweet on Sun, 03 May 2020 03:04:45 -0700

Recycle view of android Development Notes

reference material 1.Android RecyclerView uses full resolution to experience artistic controls http://blog.csdn.net/lmj623565791/article/details/45059587 2.RecyclerViewItemAnimators https://github.com/gabrielemariotti/RecyclerViewItemAnimators Explain Recently, I was working on projects for other departments, and ...

Posted by Visualant on Sun, 03 May 2020 01:20:18 -0700

A standard ajax

A standard ajax Reader's words: after summarizing the past work, I found that I have made a lot of progress. In order to thank the fans for their support, I will strive to build a boutique blog, change the habit of making comments for myself. Again, I hope you can criticize and correct me. If you have solved your problem, remember to pay a ...

Posted by SoberDude on Sat, 02 May 2020 23:35:41 -0700

Custom control -- composite control

First look at the renderings The practicability of this control is not considered here, mainly to learn the method of composition control. 1. The first thing to do is to create a layout file testtest.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/an ...

Posted by somo on Sat, 02 May 2020 22:21:12 -0700

Java Implementation of AES ECP PKCS5Padding Encryption and Decryption Tool Class

Java implements an AES/ECB/PKCS5Padding encryption and decryption algorithm tool class Encryption algorithm: AES Mode: ECB Complement method: PKCS5Padding <!-- more --> 1. Tool Classes import lombok.Getter; import lombok.Setter; import lombok.extern.slf4j.Slf4j; import org.springframework.util.Base64Utils; import javax.crypto.Cipher; i ...

Posted by sundawg on Sat, 02 May 2020 22:16:45 -0700

Multiline radio group

demand Implementation method If it is single row or single column, use RadioGroup+RadioButton directly But often the plan can't catch up with the change. The graph given by ui is this kind of multi line single choice One of the ways to think about it is gridview Here we use RecyclerView to encapsulate Finish all the processing, so t ...

Posted by rockroka on Sat, 02 May 2020 19:11:34 -0700