• On JS resource subcontracting


    background After the iteration of version update and the launch of new code, if the user needs to reload all resources (JS and CSS) from the server, it will certainly slow down the opening of the page, which is actually unnecessary. In order to optimize the user experience and improve the page opening speed, JS […]

  • AcWing-1022


    The problem solution draws lessons from the analysis of two big menDye ink empty && Wild pencil This question is a question01 BackpackExtended questions——Two dimensional knapsack problem holdWild baokemengAs an object, capture what he needsFairy BallThe number isFirst cost, fightThe blood of the skin GodnamelySecond cost In the knapsack problem, volume W and value V […]

  • Android uses gradle to print So library address


    reference resources:[Android development] how to quickly know which library a so comes from Recently, I’m doing package volume optimization. I want to find each Which third-party library does the so file come from, so it is convenient to exclude it. Finally found the following method: Under app, build Add the following code to the gradle […]

  • Compress the JPG / PNG / GIF image to the specified size without cropping the image


    Boss made a request to compress the icon to less than 30KB. The premise is not to change the width and height of the picture, but to compress the volume. This demand forjpg/jpegThis lossy compression type of picture is simple. Call GD library circularlyimagejpegFunction to set the image quality. Until the picture volume is less […]

  • Some rust tips records


    Command to print Mir cargo +nightly rustc — -Z unpretty=mir Command to print the volume of enum variables reference resourceshttps://nnethercote.github.io… rustc +nightly -Zprint-type-sizes input.rs Run test Limit the use of single threads only: cargo test — –test-threads 1 Can be used during running testprintln: cargo test — –nocapture TODO

  • [HMC core 6.0 launched globally] a new plug-in for graphics computing services, which helps the innovation of high-quality 3D mobile games


    HMS core 6.0 was launched globally on July 15. This new version opens many new capabilities and technologies to developers. amongHuawei graphics computing service (CG Kit)Open upVolume fog plug-in and fluid plug-in, which provides a solid technical foundation for the improvement of 3D mobile game pictures. CG kit volume fog plug-in is the first mobile […]

  • [IOS] monitor volume changes, monitor volume buttons and hide system volume UI


    Monitor volume changes There seems to be no formal way to monitor and override system volume button behavior. What we can use is an event monitor for system volume changes. Just follow the following code to add listening. func someInit() { NotificationCenter.default.addObserver(self, selector: #selector(onVolumnChanged), name: Notification.Name(rawValue: “AVSystemController_SystemVolumeDidChangeNotification”), object: nil) } func onVolumnChanged(noti: Notification) { // […]

  • I counted the relationship between the size of the company and the front-end technology stack


    Hello, I’m Carson. Yesterday, I sent a questionnaire in the circle of friends to investigate the size of the company and the front-end technology stack. As of 1:00 this afternoon, a total of 844 front-end students have participated. The following is the conclusion of the survey. I wonder if it is the same as you […]

  • Failed to update IOS 15. What if the iPhone becomes a white apple?


    The official version of IOS 15 was released two days ago. Although the system of the official version is relatively stable, there are still problems in the upgrade process. If the update cannot be verified during the upgrade, many people will choose to restart the iPhone. As a result, they are stuck in white apple. […]

  • Packaging electron program with electron builder


    preface After the development of electron code, if you want to put it into production environment, you must go through a key step – packaging. Use it on MacOS todayelectron-builderMake a record of the process of packaging electron application. Why pack My last article《Debugging electron main process code with vscode》This paper introduces the method of […]

  • How to gracefully test NPM packages locally


    How to gracefully test NPM packages locally Need to publishmy-npm, I want tomy-projectIn project testingmy-npm my-npmIt is the name of NPM, not necessarily the same as the project name. For convenience, the project name of developing my NPM is also called my NPM. Three methods Yalc simulation warehouse Global installationnpm i yalc -g After my […]

  • 10000 star! Open source Linux terminal simulator based on Android platform


    < section id = “nice” data tool = “mdnice editor” data website=“ https://www.mdnice.com ” style=”font-size: 16px; color: black; padding: 0 10px; line-height: 1.6; word-spacing: 0px; letter-spacing: 0px; word-break: break-word; word-wrap: break-word; text-align: left; font-family: Helvetica; “> < P data tool =” mdnice editor “style =” padding top: 8px; padding-bottom: 8px; margin: 0; line-height: 26px; color: […]