Algorithms Note 9 - Hash List

Hash function Hash list based on zipper method Realization performance Hash List Based on Linear Detection Realization performance If all keys are small integers, you can use an array as an unordered symbol table and the key as an index of the array, where the value stored at the corresponding location is the value of the key.Th ...

Posted by thechris on Sat, 25 Jan 2020 17:00:30 -0800

Talk about confirmation windowenabled of artemis

order This paper mainly studies the confirmation window enabled of artemis confirmationWindowEnabled activemq-artemis-2.11.0/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientProducerImpl.java public class ClientProducerImpl implements ClientProducerInternal { //...... public void send(SimpleString add ...

Posted by heepofajeep on Thu, 23 Jan 2020 03:01:54 -0800

Nginx learning notes - basic data structure

Some features of Nginx High performance Event driven model can handle massive concurrent connections without blocking high stability Memory pool avoids the common resource leakage problem of c program Modular architecture makes all functional modules completely decoupled one master / mutil workers ...

Posted by ahmedkl on Tue, 21 Jan 2020 22:27:41 -0800

Move array elements from one array position to another

It's hard for me to figure out how to move array elements. For example, the following is given: var arr = [ 'a', 'b', 'c', 'd', 'e']; Why can I write 'b' before the mobile function 'd'? Or 'c' after 'a'? After the move, the indexes of the remaining elements should be updated. This means that in the first example, after moving, arr [ ...

Posted by wigz01 on Tue, 21 Jan 2020 22:05:18 -0800

Database for Go Web Programming

Summary A database is used to store data.As long as it's not a toy project, a database is needed for each project.MySQL is still the most used. PostgreSQL Use is also growing rapidly. In Web development, databases are also required.This article describes how to operate a database in Go Language based on MySQL.This article assumes that you alrea ...

Posted by sri.sjc on Tue, 21 Jan 2020 14:59:48 -0800

javaFX displays another form in the event of one button

Button event for the first form: @FXML protected void show2Action() throws IOException { Stage stage = new Stage(); AnchorPane pane = FXMLLoader.load(getClass().getResource("javafxcontroller2.fxml")); Scene scene = new Scene(pane,300,400); stage.setScene(scene); stage.show(); } The code ...

Posted by met0555 on Tue, 21 Jan 2020 09:09:10 -0800

Two weeks of self-made scripting language - day 9 Design of object-oriented language

Day 9 design object oriented language Objective: to add support for classes and objects for the Stone language. Single inheritance only 9.1 syntax designed to operate on classes and objects After the processing function of the added classes and objects, the following Stone language can be executed correctly class Position { x = y = 0 de ...

Posted by aspguy on Tue, 21 Jan 2020 07:18:38 -0800

Python learning diary 1 -- a simple Minecraft terminal fortress coordinate calculator

  I. brief introduction For Minecraft players, it is undoubtedly a more painful process to find the terminal fortress. The generation of the terminal fortress is usually a certain distance from the birth point of the player, so in general, it needs to consume a large number of rare terminal pearl t ...

Posted by isurgeon on Tue, 21 Jan 2020 04:37:14 -0800

One Python standard library per week

Technology blog: https://github.com/yongxinz/tech-blog At the same time, welcome to pay attention to my WeChat public number AlwaysBeta, more wonderful content waiting for you to come. In fact, in Python, multithreading is not recommended. Unless you explicitly do not support the scenario of using multi ...

Posted by Franko126 on Tue, 21 Jan 2020 03:20:23 -0800

Wallet development experience sharing: omniUSDT

omni USDT To understand the tokens of the omni protocol in depth, you must first understand the history of the omni protocol. Please refer to Understanding the omni protocol -- USDT . BTC itself is a cash system and does not support smart contracts. In order for BTC to support smart contracts, omni public chain is developed on top of BTC, so o ...

Posted by Vorotaev on Tue, 21 Jan 2020 01:48:18 -0800