• [PHP] compile and install swoole


    I don’t know why, the home network can’t be accessed pecl.php.net There is no way to directly use PECL install spool to install swoole, or compile and install it directly Download source code in Git repository https://github.com/swoole/swoole-src After entering the source code directory Phpize (APT get install PHP dev without this command) ./configure make make […]

  • Develop express WinForm quickly select layout control item


    I want to select a small container outside the new control Method 1: select the space between the container and the new control by mouse. If the margin is not more than 3, it is very difficult. Method 2: through the drop-down selection in the attribute, more than one container can be seen, which is […]

  • Explanation and use of C ා queue


    There is a scene: for a rush purchase project, if there are five products, who can buy them first? But if at this moment (the moment here is assumed to be the same time), there are 100 people to grab this product. What will happen if we use ordinary methods? You know, this is about […]

  • Install the pyinstaller Library


    CMD command: PIP install pyinstaller   The following situations occur:   Well, failure! ~~~~ After Baidu said: Python – M PIP install – U pip Problem solving Okay, fail again~~~   The final solution!!! Download from domestic sources:python -m pip install –upgrade pip -i https://pypi.douban.com/simple     Ha ha, installation successful! (well, although I still don’t […]

  • IntelliJ prompt java-numbers.iml does not exist


    IntelliJ prompts java-numbers.iml does not exist please correct the file content. How to solve this problem? The easiest way is to delete the. Idea and target files and import them again.

  • Python uses the environment settings of face recognition package


    When using face recognition package for face recognition, the environment is very important, but the online methods are very complex. Today, I introduce a particularly simple method, hoping to help you, and less holes.   1. First, you should download the Dlib installation package (for example: dlib-19.8.1-cp36-cp36m-win_amd64. WHL) You can download the corresponding Dlib package […]

  • Learning notes of classic examples of C ා concurrent programming-2.9 handling exceptions of async void method


    problem Exceptions passed from the async void method need to be handled. Solution In the book, it is recommended not to write async void. If you have to, try to catch all the code inside the method, that is, handle all the possible exceptions inside the method. Of course, there is another way to deal […]

  • BSD system allows a user to log in and shut down


    cd  /usr/ports/security/sudo make install clean; visudo jxtm    ALL=(ALL)       NOPASSWD:/sbin/halt -pThis way jxtm can be added before the commandsudoTo executehalt– p, and no password is required. Add the last line to the user‘s. SHRC sudo /sbin/halt -p In this way, the jxtm account is automatically logged inShutdown了  

  • Ruby defines two ways of private methods


    # Define Private Approach 1: class C def public_method private_method end def private_method end Private: private_method Defines the method as private end # Define Private Approach 2: class C def public_method private_method end private Def private_method Defines private methods end end C.new.public_method

  • FreeBSD Data Transfer Method


    1. Shut down, install the new hard disk and restart it. 2. Check if the system has identified a new hard disk after booting: hpserver dmesg grep ad2 will display ad2: 9765MB if it succeeds[19841/16/63] at ata1-master UDMA33 and other information, otherwise you need to check whether there is a wrong connection or hardware compatibility. […]

  • Solutions for switching from FreeBSD to root su: Sorry


    Under FreeBSD, connect to FreeBSD through SSH client, log in with ordinary user, and execute the following commands to report errors: $ su root su: Sorry $ su su: Sorry $ In order to use Su command to become root user on FreeBSD, you need to know the password of root, but also need special […]