ACM week 3
When the trees are withered, they are no longer flourishing. They are young and cherish the people beside the mirror
This week's question is a little difficult, I adjusted several of them to do it;
1
Define a 2D array:
int maze[5][5] = {
0, 1, 0, 0, 0,
0, 1, 0, 1, 0,
0, 0, 0, 0, 0,
0, 1, 1, 1, 0,
...
Posted by Merdok on Sat, 15 Feb 2020 18:23:21 -0800
Thread eight basic core seven (exception handling)
1. Introduction
There are eight basic cores in java multithreaded concurrent programming.
What are the eight core foundations?They are:
1. How threads are created
2. Thread Start
3. Thread Stop
4. Thread life cycle
5. Thread-related methods
6. Thread-related properties
7. Thread exception handling
8. Thread Security
Today w ...
Posted by PHPThorsten on Sat, 15 Feb 2020 18:02:23 -0800
Python - iterators and generators
Wedge
If I have a list l=['a','b','c','d','e '], how can I get the contents of the list?
First of all, I can use index value l[0]. Second, can we still use for loop to get value?
Have you ever thought about it carefully? There is a subtle difference between index value and for loop value.
If you use the index value, you can get the value at any ...
Posted by talor123 on Sat, 15 Feb 2020 12:00:24 -0800
Python - Object Oriented Advancement
isinstance and issubclass
isinstance(obj,cls) checks if obj is an object of class CLS
class Foo(object):
pass
obj = Foo()
isinstance(obj, Foo)
issubclass(sub, super) Checks if the subclass is a derived class of the super class
class Foo(object):
pass
class Bar(Foo):
pass
issubclass(Bar, Foo)
reflex
1 What is reflecti ...
Posted by m!tCh on Sat, 15 Feb 2020 11:46:35 -0800
Talk about artemis' ha Manager
order
This paper mainly studies the HAManager of artemis
HAManager
activemq-artemis-2.11.0/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/ha/HAManager.java
public interface HAManager extends ActiveMQComponent {
/**
* return the current backup servers
*
* @return the backups
*/
Map<String, ...
Posted by datamodeler on Sat, 15 Feb 2020 09:19:02 -0800
Go Language Self-Study 18: Process Control Paper
There are so many process control methods in Go:
if - else conditional statement
switch - case selection statement
for - range loop statement
goto unconditional jump statement
Defer defer execution
if-else conditional statement
if condition 1 {
Branch 1
} else if conditio ...
Posted by nologin666 on Fri, 14 Feb 2020 23:13:08 -0800
Fourth article on concurrent programming
Fourth article on concurrent programming
4.11 More locks
4.12 Activeness
hunger
4.13 ReentrantLock
Sequence control of synchronization mode
Alternate Output
4.11 More locks
A large house has two functions: sleeping, learning and being irrelevant.Now Xiao Nan has to learn and the little girl has to sleep, but if she only uses one ro ...
Posted by greencoin on Fri, 14 Feb 2020 18:56:44 -0800
MyBatis is that simple
0. Introduction to MyBatis
1) MyBatis is an open source Apache project iBatis, which was migrated to Google Code by Apache Software Foundation in June 2010. As the development team moved to Google Code, iBatis 3.x was officially renamed MyBatis and the code was migrated to Github in November 2013
2) The term iBatis comes from a combination of ...
Posted by nsantos on Fri, 14 Feb 2020 10:12:52 -0800
Talk about the FederatedQueue of artemis
order
This paper mainly studies the FederatedQueue of artemis
FederatedQueue
activemq-artemis-2.11.0/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/federation/queue/FederatedQueue.java
public class FederatedQueue extends FederatedAbstract implements ActiveMQServerConsumerPlugin, Serializable {
private static final Logg ...
Posted by sachavdk on Fri, 14 Feb 2020 09:32:43 -0800
java AES encryption and decryption
AES encryption and decryption tool class
package com.yan.demo;
import org.apache.commons.lang3.StringUtils;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.security.MessageDigest;
/**
* @ClassName AES
* @D ...
Posted by kam_uoc on Fri, 14 Feb 2020 08:17:13 -0800