• Solutions to JSP Chinese problems


    In JSP, Chinese garbled code often makes people feel confused.For the common Countermeasures of Chinese processing, the following two kinds are often seen on the Internet: <%@ page contentType=”text/html;charset=gb2312″ %>   Or: <% String hi = “hello”;byte[] tmpbyte=Hi.getBytes(“ISO8859_1”); Hi=new String(tmpbyte); out.print(Hi); %>   The virtual Dragon Pavilion has also been modified by the above two methods, which […]

  • JSP/JAVABEAN+TOMCAT4. Summary of 0.5 + MySQL combined station construction


    System configuration: WIN2000 English + jdk1 4.1+TOMCAT4. 0.5+APACHE2. 043Development cycle: make every effort and last nearly 15 days.Realize the following functions:1. Gallery:Submission, pagination and deletion of pictures and related text.2. Photo Album:New creation of album theme, submission of photos and related text, sub theme, pagination display and deletion.3. Article / press release system:New creation of […]

  • Repo sync error under Windows: cannot initialize work tree


    1. Problem description This error occurs when downloading Android source code Traceback (most recent call last): File “E:\LocalProject\Oreo\.repo\repo/main.py”, line 538, in <module> _Main(sys.argv[1:]) File “E:\LocalProject\Oreo\.repo\repo/main.py”, line 512, in _Main result = repo._Run(argv) or 0 File “E:\LocalProject\Oreo\.repo\repo/main.py”, line 185, in _Run result = cmd.Execute(copts, cargs) File “E:\LocalProject\Oreo\.repo\repo\subcmds\sync.py”, line 823, in Execute project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync) File “E:\LocalProject\Oreo\.repo\repo\project.py”, line […]

  • . npmrc configuration of verdaccio


    background If you encounter: Multiple requiredregitstryFor example: Taobao source + verdaccio private warehouse There is a problem logging in. Mingming logs in to verdaccio, but NPM doesn’t recognize it The NPM version changes and the login URL exposed by verdaccio changes, resulting in the login failure npm who am iAsk youadd user Here’s how to […]

  • E: Unable to locate package nvidia-container-toolkit


    Error installing NVIDIA container Toolkit Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate package nvidia-container-toolkit Solution (sequential execution) $ distribution=$(. /etc/os-release;echo $ID$VERSION_ID) $ curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add – $ curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list $ sudo apt-get update && sudo apt-get […]

  • Remember an online MySQL deadlock


    problem: yesterday, an error was reported on the line, which made a function unable to execute. Looking up the log found that it was a MySQL deadlock problem. Analyze problems: in fact, the biggest difficulty in solving the problem is to analyze the problem and find out where the problem occurs. This process takes the […]

  • Why do many people think web front-end self-study is better than training


    When recruiting front-end candidates, for non subject candidates, they will really prefer self-study rather than training. The reason is that the front-end really needs to strengthen the ability, and most training courses are basically not taught. Personally, for the front-end, the following are important capabilities: First, basic programming and bugfix ability. This is the same […]

  • Use of elementui tree tree control (addition and deletion)


    Recently, when developing and using El tree tree tree control, we encountered many problems, and the problems are commonly used. Here are records for reference only. The tree page is as follows: Screenshot 9.16.09 am, November 22, 2021 png The code is as follows: <el-tree ref=”tree” :load=”loadNode” :props=”props” node-key=”id” :show-checkbox=”false” lazy :highlight-current=”true” @node-click=”handleNodeClick”> </el-tree> Question […]

  • About the configuration problem that user-defined fonts cannot be recognized in IE browser


    Problem description Today, the customer reported that his computer couldn’t see the Font Icon on the web page in IE browser, but Google browser could. He was confused because this bug didn’t appear in the computers of colleagues around us or her colleagues, so he immediately concluded that it was the configuration problem of her […]

  • IOS linkage view – yulinkagetableview


    YULinkageTableView introduce Yulinkagetableview is a tableview with multiple scrollviews sharing the same header. View of linkage use pod ‘YULinkageTableView’ https://github.com/CombingMemory/YULinkageTableView Effect display RPReplay_Final1624278837.gif RPReplay_Final1624278882.gif characteristic Easy to use, code 0 intrusion When in use, you can add a Scrollview that needs linkage There is no need to set any proxy of Scrollview, set any property […]

  • Uicollectionview uses the estimatetimesize layout, with adaptive height and fixed width


    explain: Set the estimatetimesize of flowlayout Override preferredlayoutattributesfitting in a custom cell 3. There is no need to implement sizeforitematindexpath proxy method to use estimatetimesize 4. The above methods are only valid for item, but not headerlayout. Headerreferencesize setting this method will not be adaptive. Take the initial value set 5. Estimatetimesize is for all […]

  • [design mode] singleton pattern


    Lazy style public class Singleton { private static Singleton instance; private Singleton() {}; public static synchronized Singleton getInstance() { if (instance == null) { instance = new Singleton(); } return instance; } } Initialize when calling for the first time;Synchronized locking ensures thread safety; Hungry Han style public class Singleton { private static Singleton instance […]