Category:Back-End

  • Modern native PHP development with mix/vega + mix/db

    Time:2022-12-7

    In recent years, I have been wandering in the javascript and golang ecology, and found many advantages of npm and go mod. recently developedMixPHPV3, I found that composer has always been a very good tool, but many phpers don’t use composer very deeply. Today I use composer to build a native project to help everyone […]

  • The strongest distributed lock tool: Redisson

    Time:2022-12-7

    1. Overview of Redisson What is Redisson? Redisson is a Java in-memory data grid (In-Memory Data Grid) implemented on the basis of Redis. It not only provides a series of distributed common Java objects, but also provides many distributed services. These include (BitSet, Set, Multimap, SortedSet, Map, List, Queue, BlockingQueue, Deque, BlockingDeque, Semaphore, Lock, AtomicLong, […]

  • Tomcat8 log path, garbled characters, automatic segmentation problem solving

    Time:2022-12-7

    log garbled vim catalina.sh Add -Dfile.encoding=UTF-8 as shown JAVA_OPTS=”$JAVA_OPTS -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dfile.encoding=UTF-8″ log path vim catalina.sh Modify CATALINA_OUT= as shown in the figure if [ -z “$CATALINA_OUT” ] ; then #CATALINA_OUT=”$CATALINA_BASE”/logs/catalina.out CATALINA_OUT=/data/WEBLOG/uat-ecommerce-app/catalina.out fi Log automatic segmentation [[email protected]_20 conf]# vim logging.properties 1catalina.org.apache.juli.AsyncFileHandler.level = FINE 1catalina.org.apache.juli.AsyncFileHandler.directory = /data/WEBLOG/uat-ecommerce-app 1catalina.org.apache.juli.AsyncFileHandler.prefix = catalina. 1catalina.org.apache.juli.AsyncFileHandler.encoding = UTF-8 2localhost.org.apache.juli.AsyncFileHandler.level = FINE 2localhost.org.apache.juli.AsyncFileHandler.directory […]

  • Talking about Spring Design (2)

    Time:2022-12-7

    The connection between AOP and IOC Then we will consider the expansion of the Bean of the previous IOC in conjunction with AOP. Then AOP actually needs to proxy the previous Bean, so it is necessary to choose a suitable entry point to integrate a whole set of processes of IOC. So it should be […]

  • phpspreadsheet memory overflow processing | memory optimization

    Time:2022-12-7

    phpspreadsheet memory overflow processing | memory optimization set cache save memory:https://phpspreadsheet.readth… Here we use use Symfony\Component\Cache\Adapter\FilesystemAdapter; use Symfony\Component\Cache\Psr16Cache; … $adapter = new FilesystemAdapter(‘excel’, 60*60*10, storage_path(‘framework/cache/data’)); $cache = new Psr16Cache($adapter); \PhpOffice\PhpSpreadsheet\Settings::setCache($cache); specify read worksheet Because we only need to read a certain worksheet by default, if you have multiple worksheets, but do not need to load […]

  • yii2-Ueditor Baidu editor

    Time:2022-12-7

    Today, I read a tutorial about uploading pictures on the Internet, and I debugged it after a setback. Now I will post the relevant code and its description for the reference of friends who are using it for the first time. Download yii2.0-ueditor download path: https://link.jianshu.com?t=https://github.com/org-yii-china/yii2-ueditor/archive/master.zip Effect demo: installation method: 1. Download yii2-ueditor2. Modify the […]

  • ASP.NET interface development new function mining – optimized Gantt chart control function

    Time:2022-12-7

    Click to get tools>> [DevExpress ASP.NET] Web Forms Controls has 110+ UI controls for Web forms (including reports), DevExpress ASP.NET MVC Extensions are server-side MVC extensions or client-side controls, powered by lightweight JavaScript widgets 70+ high-performance DevExpress ASP.NET Core Controls, including a full-featured reporting platform, DevExpress ASP.NET Web Forms Bootstrap Controls utilize lightweight rendering, responsive […]

  • The Go program is too big, can I have a lazy initialization?

    Time:2022-12-7

    Hello everyone, I am Fried Fish. In the continuous development of the company, most of them are large units at the beginning, and the transformation is slow. A warehouse will be used for decades, and the scale of the warehouse is basically a process of continuous increase. One of the impacts is that the size […]

  • .NET’s 20th Anniversary! Microsoft issued a message to celebrate

    Time:2022-12-7

    In the past “Valentine’s Day”, the .NET team held a grand event to celebrate the 20th anniversary of the birth of the .NET community. That’s right! .NET, which launched alongside Visual-Studio on February 13, 2002, finally celebrates its 20th anniversary this month. On February 13, Microsoft officially posted a post on the community blog to […]

  • loguru serialize reduce fields

    Time:2022-12-7

    loguru serialize has too many default fields, most of which are not needed at all, which greatly wastes the log storage space: from loguru import logger import sys logger.remove() logger.add(sys.stdout, serialize=’json’) logger.debug(f’haha’) output: {” text “, “the 2022-08-28 01:11:45. 258 | DEBUG | __main__ : < module > : 9 – ha ha \ n”, […]

  • How should APP adapt to the digital age?

    Time:2022-12-6

    ​The C-side app is dead, burn paper if something happens In our daily life, how many apps are opened and used every day? Most of the apps that fill the screen on our mobile phones are zombie apps; as consumers, we use super apps every day and the number of them will not exceed ten […]

  • No need to write a single line of code to realize the traffic protection capability of any method

    Time:2022-12-6

    Introduction: With the ability to limit and downgrade any method, we can quickly endow any microservice system with the ability to protect traffic, allowing us to have more time to focus on the rapid development of the business. About the system Stability is assured to MSE, let a professional team do professional things. Author: Ten […]