• js animate

    backgroundPosition borderWidth borderBottomWidth borderLeftWidth borderRightWidth borderTopWidth borderSpacing margin marginBottom marginLeft marginRight marginTop outlineWidth padding paddingBottom p…

    study 2024-01-08 fifty

  • Introduction to WordPress Filter

    Chapter 1 WordPress Filter Introduction In the first chapter of this series of tutorials, we entered the wonderful world of WordPress filter hooks, and learned the concept, working mechanism, when and how to use filter hooks. We have learned the following: What is a WordPress filter hook: a filter hook is a function between a database and a browser that reacts to data before outputting WordPress. WordPress has hundreds of filter hooks. As we learned in the tutorial, you can also use it in development (such as plug-ins

    WordPress 2024-01-08 fifty-seven

  • WordPress Action Hook

    Part I: WordPress Action Hook Introduction We entered the world of WordPress action through a simple introduction. Since the whole system is really simple, it is not difficult to introduce it. We have learned the following seven key functions: add_action() allows us to add our own function remove_action() to an existing action hook. You can remove a function remove_all_actions() from an existing hook function and remove all the functions from an action hook

    WordPress 2024-01-08 fifty-two

  • Javascript (js) escaping html code

    Var HtmlUtil={/* 1. Use the browser's internal converter to implement html encoding (escape) */htmlEncode: function (html) {//1. First, dynamically create a container label element, such as DIV var temp=document. createElement ("div");//2. Then set the string to be converted to the innerText or textContent (temp. textContext

    study 2023-12-15 ninety-three

  • WordPress allows archive pages such as categories and tags to display top articles

    Wordpress only displays the specified articles on the home page by default. The following code allows archive pages such as category page, tab page, author page and date page to display the top articles in their range on the top just like the home page. Put the following code in functions. php under the current topic: add_filter ('the_posts','putStickyOnTop '); function putStickyOnTop( $posts ) { if(is_home…

    WordPress 2023-12-13 eighty-five

  • Dropzone.js+php block upload

    js Document php

    study 2023-12-12 one hundred

  • Php file_put_contents Append content

    File_put_contents ('filenameThe file name of the data to be written. ','data The data to be written', FILE_APPEND); The following third parameter, FILE_USE_INCLUDE_PATH, has different values. Search for filename in the include directory. See include_path for more information. FILE_APPEND If the file filename already exists, append the data instead of overwriting it. LOCK_EX in

    study 2023-12-11 ninety

  • How to exclude sub category articles from WordPress category page

    By default, WordPress will display sub classified articles on the classification page. If you want to display only the classified articles, but not the articles in the sub classification, you can use the following code. In the main cycle of theme article archiving template, add: above: below:

    WordPress 2023-12-04 ninety-eight

  • StableDiffusion Installation Tutorial

    StableDiffusion github download address https://github.com/AUTOMATIC1111/stable-diffusion-webui First, the necessary software on the computer, python and git, needs to be used to download resources. Finally, depending on the network speed, individual resources may need to run webui.bat through magic, and the required resources will be automatically installed. After the required resources are successfully installed, a web page will automatically open, and the Chinese language will be changed because they are all in English. If you need a Chinese package

    study 2023-12-04 one hundred and twenty-one

  • Python changes the internal source of the country

    For example, change the cmd execution to an Alibaba Cloud source, a separate pip install package name - i https://mirrors.aliyun.com/pypi/simple/ All pip config set global.index-urls once and for all https://mirrors.aliyun.com/pypi/simple/ The following different source addresses 1 Tsinghua University (both completeness and speed are very good, and it is an excellent pip image source

    study 2023-12-04 one hundred and seven

  • StableDiffusion webui ERROR: Ignored the following versions that require a different python version

    ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,=3.7,=3.7,=3.7,

    study 2023-12-04 eighty-five

  • The StableDiffusion webui opens and reports an error AsyncConnectionPool__ init__() got an unexpected keyword argument ‘socket_options

    Find requirements_versions.txt, add httpx==0.24.1, then save and restart

    study 2023-12-04 one hundred and twelve

  • Wodpress wp_list_bookmarks Output Friendly Links

    Use the parameter parameter name to describe the order ascending ASC or descending DESC. The default is ASC. Limit - 1 indicates all, and 1+integer indicates the number to be displayed. Category A comma separated list of category IDs containing links from. Category_name The category to retrieve the link by name. Hide_invisible Whether to show or hide links marked as invisible. Accept 1 | true or 0 | false. The default value is 1 | true. show_u…

    WordPress 2023-12-01 one hundred and seven

  • Linux Debian Common Commands

    1. Update the source sudo apt get update - y 2. Update the installed package sudo apt get upgrade - y 3. Upgrade the system sudo apt get dist upgrade - y 4. Use dselect to upgrade sudo apt get dselect upgrade - y 5. Learn which packages depend on sudo apt cache dependencies package 6. View which packages depend on this package

    study 2023-11-27 one hundred and eleven

  • Linux Replace cmake Version

    Go to the official website first http://www.cmake.org/files Check the required version. For example, I want to change to version 3.27.8 mv/usr/bin/cmake/usr/bin/cmake.backup wget http://www.cmake.org/files/v3.27/cmake-3.27.8.tar.gz tar zxf cmake-3.27.8.tar.gz cd cmake-3.27.8 ./…

    study 2023-11-27 one hundred and thirty-two