Chisel Tutorial - 08.Chisel parameterized generator (from Scala)

Chisel parameterized generator (from Scala) motivation To make the Chisel module a code generator, there must be something that tells the generator how to do this. This section describes the parameterization of modules, covering a variety of methods and Scala language features. The enrichment of the parameter transfer implementation is direct ...

Posted by dfownz on Thu, 12 May 2022 20:15:19 +0300

Use Elasticsearch 7.9.1 to realize the full-text content retrieval of word, pdf and txt files

Briefly introduce the requirements It can support file upload and download It is required to be able to search out documents according to keywords. It is required to be able to search the text in the document. The document type should support word, pdf and txt File upload and download are relatively simple. You should be able to retrieve the ...

Posted by undertaker16 on Thu, 12 May 2022 15:48:57 +0300

Shell command execution visualization and alerting tools

Sampler is a tool for shell command execution, visualization and alerting. Its configuration uses a simple YAML file. 1. Why do I need it? You can sample any dynamic process directly from the terminal - watch for changes in the database, monitor MQ in-flight messages, trigger deployment scripts and get notified when it's done. If there is a wa ...

Posted by jarriola on Thu, 12 May 2022 10:38:39 +0300

Don't build wheels again. This open source tool class library is easy to use!

Hutool is a small and comprehensive Java tool class library, which helps us simplify every line of code and avoid repeated wheel building. If you need to use some tools, you might as well look in hutool. This paper summarizes 16 commonly used tool classes, hoping to help you! SpringBoot e-commerce project mall (40k+star) address: https://github ...

Posted by arjay_comsci on Wed, 11 May 2022 19:17:28 +0300

Surprise concurrent programming JUC series - Locksupport and Condition

Surprise concurrent programming JUC series demonstration code address:https://github.com/mtcarpenter/JavaTutorial Locksupport LockSupport in rt.jar package in JDK is a tool class. When a thread needs to be blocked or awakened, you can use LockSupport tool class to complete the corresponding work. LockSupport defines a set of public static metho ...

Posted by thinsoldier on Wed, 11 May 2022 11:56:19 +0300

Using enums in Java is really not that simple

1. Overview In this article, we will see what Java enums are, what problems they solve and how to implement some design patterns using Java enums in practice. The enum keyword was introduced in java5, indicating a special type of class, which always inherits the java.lang.Enum class. For more information, you can view its own official documen ...

Posted by Celauran on Mon, 09 May 2022 23:00:40 +0300

BaseServlet - servlet optimization

BaseServlet - servlet optimizationservlet role​ Generally speaking, servlet is specially used to receive the client's request, specifically to receive the client's request data, and then call the underlying service to process the data and generate the resultThe traditional way of writing servlet s​ As you can see from the picture, we only have ...

Posted by yobo on Mon, 09 May 2022 19:01:25 +0300

Linux network status tool ss command usage details

The SS command is used to display the socket status It can display PACKET sockets, TCP sockets, UDP sockets, DCCP sockets, RAW sockets, Unix domain sockets and other statistics It displays more tcp and state information than other tools It is a very practical, fast and effective new tool to track IP connections and sockets SS command The follo ...

Posted by mackevin on Sun, 08 May 2022 06:57:12 +0300

A necessary skill (algorithm) for contemporary programmers: recursive explanation

preface Recursion is a very important algorithm idea. You need to master it whether you are front-end development or back-end development. In daily work, recursive algorithms are needed to count the size of folders, parse xml files and so on. It's too basic and important, which is why interviewers often ask us to write recursive algorithms. In ...

Posted by NoMansLand on Sun, 08 May 2022 06:34:17 +0300

spring boot2.x back end parameter verification + unified exception handling + back end custom global unified interface return response data format

1, Foreword This blog mainly introduces the following aspects: Use Validator to check parameters conveniently and quickly; Specification of completing exception operation through global exception handling; Complete the specification of response data through unified data response; Through user-defined annotation, filter whether the returned r ...

Posted by elementaluk on Sat, 07 May 2022 23:46:54 +0300