Google announced Kotlin as the official Android and development language at the I/O conference in 2017, and Android Studio also provides full support for Kotlin.
How do I run kotlin's code?adopt https://try.kotlinlang.org Or IDEA and other IDEs that support Kotlin write directly on top of it, and then run away. Here's the main record of how to ...
Posted by gazolinia on Sat, 06 Jun 2020 19:57:34 +0200
A simple small salary management system, JavaFX + front-end Spring Boot, has few functions. It focuses on the UI and some logic of the front-end. The back-end is very simple.
User registration / login
Verification code retrieve password
Users modify information, modify Avatar
Display salary in bar cha ...
Posted by poknam on Sat, 06 Jun 2020 12:10:57 +0200
Recently, I want to simulate the implementation of a framework involving with. Let's study it!
Here is a common way to write
Automatically release file handle after running
with open("./abc.txt","r") as f:
data = f.read()
#Automatically release resources after running
with tf.Session() as sess:
result = sess.run([product])
Posted by talor123 on Fri, 05 Jun 2020 10:40:52 +0200
Convert DOM corresponding to mybatis global configuration file to XNODE object
In the above, we have completed the construction of XmlConfigBuilder object and prepared the basic environment for parsing XML files.
So the next step is to call the parse() method exposed by XmlConfigBuilder to complete the parsing of mybatis configuration file.
Posted by lupus2k5 on Fri, 05 Jun 2020 08:15:43 +0200
For Java multithreading, in fact, it has been some scattered learning. Multithreading is often asked in the interview. I really want to summarize this certification this time, and I really don't want to fall in this field. According to "Java high concurrent programming details" a boo ...
Posted by coolbeansdude51 on Thu, 04 Jun 2020 15:32:41 +0200
Collect a lot of anti - Crawler sites, there is a very good tool: Octopus... Directly through the browser access, a force to break ten thousand methods
Preparatory work: money, spend money to buy members of Octopus website for a month or more, so that you can do Cloud Collection
Next, grab the data by yourself. After the grab, set the timing ...
Posted by christillis on Tue, 02 Jun 2020 17:02:35 +0200
1, Service provider and service consumer
Using microservices to build distributed system, microservices communicate with each other through network. We use service providers and service consumers to describe the invocation relationship between microservices.
The callee of the s ...
Posted by PromaneX on Mon, 01 Jun 2020 05:04:19 +0200
Visitor pattern is a behavior pattern, which is not commonly used. It can separate the algorithmic logic acting on the object from the object itself.
2 visitor mode
When we need to operate on a group of similar types of objects, we can maintain the operation logic within each object separately, but this violates the principle of singl ...
Posted by markl999 on Sun, 31 May 2020 11:54:48 +0200
Chain of Responsibility Pattern
It gives multiple objects the opportunity to process the request, thus avoiding the coupling between the sender and the receiver of the request. Connect these objects into a chain, and pass the request along the chain until there is an object to handle it.
Each processing object determines which com ...
Posted by KCAstroTech on Sun, 31 May 2020 09:37:16 +0200
namespace HelloWorldApplication // Namespace Declarations
/* Class name is HelloWorld */
class HelloWorld // A class
/* main function */
static void Main(string args)
/* My First C#Program */
Posted by roneill on Sat, 30 May 2020 18:44:39 +0200