56. (android Development) file read / write operations OpenFileOutput and OpenFileInput

In addition to saving key value data, content can also be saved directly in the form of files in android. Data format can be at will, are in the form of strings in the file. Take the longest txt text file you can see as an example. To read and write files, you need to open them. There are two methods: OpenFileOutput and OpenFileInput The storag ...

Posted by apenster on Sat, 02 May 2020 19:08:17 -0700

Mycat's database primary key self growth (local timestamp) - yellow Tong

In the local time mode, the policy ID automatically generated by ID= 64 bit binary (42 (MS) + 5 (machine ID) + 5 (business code) + 12 (repeated accumulation). The local time stamp mode is mycat's default, so when you configure it, you need to confirm whether the sequnceHandlerType configuration in your server.xml is 2. To realize the local ...

Posted by amitkrathi on Sat, 02 May 2020 13:08:23 -0700

Struts 2 notes -- File Download

Struts 2 provides the stream result type, which is specifically used to support the file download function. The following four properties are required to configure the result of stream type. contentType: Specifies the file type of the downloaded file inputName: Specifies the entry input stream of the downloaded file contentDispositio ...

Posted by greeneel on Fri, 01 May 2020 21:03:00 -0700

2.1 mybatis? Helloworld01 (native programming)

To learn mybatis, you can follow the official website to learn http://www.mybatis.org/mybatis-3/configuration.html ා properties There are two ways to write mybatis? HelloWorld 2.2 Mybatis? Helloworld02 (interface programming) Now, the second way is commonly used: interface programming Let's look at the first way: Step: Import jar packa ...

Posted by areid on Fri, 01 May 2020 18:08:20 -0700

Summary of 8 Android Dialog usage methods

Author: @ gzdaijie This article is original by the author. Please indicate the source of Reprint: https://www.cnblogs.com/gzdaijie/p/5222191.html Catalog 1. Write in front 2. Code example 2.1 General Dialog (Figure 1 and Figure 2) 2.2 list Dialog (Figure 3) 2.3 radio Dialog (Figure 4) 2.4 multi select Dialog (Figure 5) 2.5 wait for Di ...

Posted by netbros on Fri, 01 May 2020 15:18:07 -0700

New features of C × 9: code generator, compile time reflection

Preface Today, the official blog of. NET announced the release of the first preview version of C 񖓿 9 source generators, a feature that users have been shouting for nearly 5 years, and finally released today. brief introduction Source Generators, as the name implies, allows developers to get and view user code during code compilation and generat ...

Posted by businessman332211 on Fri, 01 May 2020 14:48:51 -0700

main start Jetty Server web project

main start Jetty Server mode 1, web engineering starts jetty server through main 1.JettyServerLauncher import org.eclipse.jetty.server.Server; import org.eclipse.jetty.webapp.WebAppContext; public class JettyServerLauncher { private static final int DEFAULT_PORT = 8080; private static final String DEFAULT_WEBAPP = "WebRoot"; priv ...

Posted by orionellis on Fri, 01 May 2020 14:22:37 -0700

Let hql support bitwise and operation

Absrtact: at present, hibernate does not support bitwise and operation, and recent projects need such operation again. Fortunately, hibernate provides related extension functions and can realize relevant operation by itself 1, Background In the work, MySQL is used as the database, java is used as the language of the p ...

Posted by goldages05 on Fri, 01 May 2020 13:39:48 -0700

php development example of wechat payment enterprise payment

The application scenario of enterprise payment: official account pays to concerned users, such as refund, settlement, etc. Material Science: Wechat public platform development document Explain 1. The certificate must use the certificate in its own merchant (Note: the certificate path must be an absolute path. If the relative path is use ...

Posted by I WanT To Code PHP on Fri, 01 May 2020 05:22:31 -0700

A doodle board control

This time, it brings a doodle control. In the previous project, a function needs to be done: the user signs on the screen, and then saves the signature as a picture. So I wrote this Control, named DrawView, here to share with you. First of all, let's talk about the principle. The principle is actually very simple. The one we draw on the scr ...

Posted by Hexxx on Thu, 30 Apr 2020 23:49:42 -0700