Category:Program Language

  • How to use PHP time function

    Time:2020-7-13

    In the development of PHP, the use of time function can be said to be everywhere, and there are many ways to operate time in PHP, such as PHP timestamp, conversion between date and timestamp, obtaining the current date, time before or after the current time, and so on. Let’s talk about the use of […]

  • Analysis of JavaBean usage in JSP learning

    Time:2020-7-13

    This article describes the JavaBean usage of JSP learning. Share with you for your reference. The details are as follows: JavaBean is a Java class that conforms to some naming methods and design specificationsJavaBeans can be used to perform complex computing tasks, encapsulate transaction logic, database and other operationsJavaBeans are divided into visual JavaBeans, such […]

  • Super powerful VBS timing alert script Remind.vbs

    Time:2020-7-13

    ‘/*=========================================================================    ‘* intro timing reminder, format: time | prompt, specific use method can refer to examples‘ * FileName    Remind.vbs    ‘ * Author      yongfa365    ‘ * Version     v1.0    ‘ * WEB         http://www.yongfa365.com    ‘ * Email       yongfa365[at]qq.com    ‘ * FirstWrite  http://www.yongfa365.com/Item/Remind.vbs.html    ‘ * MadeTime    2008-06-18 19:26:32    ‘ * LastModify  2008-06-18 19:26:32    ‘ *==========================================================================*/        tx = True   used = “”   t = “”   The beginning of modifiable regionT = t – “|” & “10:00:00” Hello, hi, it’s a beautiful womanT = t – “|” & “11:30:00” beauty, it’s time to eat! […]

  • Python: a detailed explanation of the example of vortex color control

    Time:2020-7-13

    turtle.pencolor(* args ) Returns or sets pencolor. Four input formats are allowed: pencolor() Returns the current pencolor as a color specification string or tuple (see example). Can be used as another input color of pencolor / fillcolor. pencolor(colorstring) Set pencolor to colorstring, which is a string specified by the color of TK, such as “red”, […]

  • How to deal with long and short links and save running parameters by go program on server side

    Time:2020-7-13

    Processing strategy for long and short connections (simulated heartbeat) As a server that may communicate with many clients, the first thing to ensure is the stability of the whole server running state. Therefore, it is very important to ensure that the connection is disconnected in time when establishing connection and communication with the client. Otherwise, […]

  • Spring security implements authentication code login function

    Time:2020-7-13

    This article mainly introduces the spring security to achieve the verification code login function, the article through the example code introduction is very detailed, to everybody’s study or the work has the certain reference study value, the need friend may refer to Based on the function of login and logout in spring security, the development […]

  • The method of realizing recursive function in C + +

    Time:2020-7-13

    Generally speaking, recursive functions call themselves. This has great advantages, code is very convenient and concise, the complex regular operation to the computer to do. 1. First, define the problem. Recursion needs to set a function, and then it can be executed repeatedly. 2. Change the problem to a formula. If the sum of factorials […]

  • The most complete and detailed PHP interview questions (with answers)

    Time:2020-7-13

    The content of this article is about the most complete and detailed PHP interview questions (with answers), which has a certain reference value. Now I would like to share it with you. If you need help, you can refer to it Related recommendations: Share a wave of Tencent PHP interview questions The latest PHP interview […]

  • Constructors in Java child parent classes

    Time:2020-7-13

    When the subclass object is initialized, the constructor of the parent class also runs, That’s because the default first line of the subclass constructor has an implicit statement: super(); Super (): will access the null parameter constructor in the parent class. Moreover, the default first line of all constructors in the subclass is: super(); Why […]

  • Python three ways to calculate the specified date is the day of the year

    Time:2020-7-13

    This morning, I had a video interview with Tencent’s interviewers. Due to the volume, network and my junk computer, I felt yellow Finally, the interviewer gave me a simple calculation question: which year of this year is the designated date As the computer card could not be typed, I managed to write a little, although […]

  • Printf print color

    Time:2020-7-13

    int main(void) { printf(“\033[31;1m haha\n”); printf(“\033[32;1m haha\n”); printf(“\033[33;1m haha\n”); printf(“\033[34;1m haha\n”); printf(“\033[35;1m haha\n”); printf(“\033[36;1m haha\n”); printf(“\033[37;1m haha\n”); return 0; } result  

  • Gin series – file upload

    Time:2020-7-13

    Single file upload front end File upload //Upload jump control //File and formC are consistent back-end #main.go package main import ( “github.com/gin-gonic/gin” “net/http” “path” ) func main() { r := gin.Default() //The default memory limit for multipart forms submissions is 32 MIB r.MaxMultipartMemory = 8 //router.MaxMultipartMemory = 8 << 20 // 8 MiB r.LoadHTMLFiles(“./index.html”) r.GET(“/index”, […]