A wave of coquettish operations, no more fear of recursive stack overflow

1. Background In the daily development process, it is inevitable to use recursive operation sometimes. But we all know that in recursive functions, we will call ourselves. If the level is large enough to exceed the depth of the stack, it will lead to stack overflow. Therefore, many companies have an iron rule to avoid using recursive functions ...

Added by nickcwj on Sat, 09 May 2020 07:58:20 +0300

Python co programming practice

On Synergetic process   a collaboration is simply a more lightweight thread that is not managed by the operating system kernel and is completely controlled by the program (executed in user mode). A co program is interruptible within a subroutine, and then switches to other subroutines, returning when appropriate to continue execution. Ad ...

Added by Justin L H on Fri, 08 May 2020 20:28:18 +0300

Using Java to realize Joseph problem

Using Java to realize Joseph problem Introduction: Joseph problem (sometimes called Josephus replacement) is a problem in computer science and mathematics. In the algorithm of computer programming, the similar problem is also called Josephus ring. Also known as "the problem of losing handkerchief." example: len makes a circle an ...

Added by premracer on Thu, 07 May 2020 18:56:50 +0300

C ා basic knowledge series - 17 practical writing a small tool

0. Preface This is a summary of the C ා Foundation Series. Now we use the knowledge we learned before to make a small tool for us to use. If you have read the IO article, you should have an impression. At that time, I mentioned a scenario description. When we use the system, we often worry about finding the location of a file. Now let's try to ...

Added by bampot on Thu, 07 May 2020 08:46:29 +0300

Spring Security automatically kicks off the previous logged-in user, a configuration is complete!

After successful login, automatically kick off the previous login user. Songge first saw this feature inside the button. It was fun at that time. Once you've done your own development, you've met the same requirements. Just as the recent Spring Security series is being serialized, you can use Spring Security to talk about how this function work ...

Added by bl00dshooter on Thu, 07 May 2020 04:01:23 +0300

Python and Nose realize automatic test of mobile application

Today I'm talking with you about Python and Nose's automatic testing of mobile applications. I hope it can help you. There's something bad to say. Please give me more advice! The coolest thing about automated functional testing with Appium is that you can write your test code in any language that has the best testing tools for you. Python is t ...

Added by sottwell on Wed, 06 May 2020 15:13:20 +0300

How to quickly view the IP address and other information of the login user in Spring Security?

Last article I've talked about how to use a more elegant way to customize Spring Security login logic. A more elegant way can effectively avoid the inefficiency brought by custom filters. I suggest you read it and understand the authentication logic in Spring Security by the way. Based on the above, this paper will continue to discuss with you ...

Added by jimjack145 on Wed, 06 May 2020 11:21:22 +0300

18 examples take you to master Java 8 date time processing!

Author: Pang xiansen https://juejin.im/post/5a795bad6fb9a0634f407ae5 Java 8 introduces a new date time API. In the tutorial, we will learn how to use the new API through some simple examples. The way Java deals with date, calendar and time has always been criticized by the community. Setting java.util.Date as a variable type and the non thre ...

Added by matthewc on Wed, 06 May 2020 08:54:37 +0300

International multilingual configuration

The static multilingual configuration file is placed in the Resource Bundle under the resources directory and configured in the form of key=value For example, in Chinese: messages ABCD cn.properties Property1 = property1 Property2 = property2 English: property1=property one property2=property two Configuration Internationalization: @Con ...

Added by ron814 on Tue, 05 May 2020 22:44:36 +0300

Spring transaction management [Focus]

Spring transaction management Commit and rollback transactions to spring   1, Brief introduction In Java EE development, transactions are in the Service layer, Judged by the program: in case of abnormal transaction rollback, no abnormal transaction commit occurs. Spring uses AOP technology for transaction control, and helps developers t ...

Added by fredroines on Tue, 05 May 2020 21:50:16 +0300