zc0000

  • when forcibly ctrl+z to quit a vim session

    E325: ATTENTION Found a swap file by the name "/run/resolvconf/.resolv.conf.swp" owned by: root dated: Wed Sep 02 01:23:59 2020 file name: /etc/resolv.conf modified: YES user name: root host name: DESKTOP-DENBHPV process ID: 672 (STILL RUNNING) While opening file "/etc/resolv.conf" dated: Wed Sep 02 01:10:30 2020 (1) Another program may be editing the same file. If this is the case, be careful not to end up with two different instances of the same file when making changes. Quit, or continue with caution. (2) An edit session for this file crashed. If this is the case, use ":recover" or "vim -r /etc/resolv.conf" to recover the changes (see ":help recovery"). If you did this already, delete the swap file "/run/resolvconf/.resolv.conf.swp" to avoid this message.

  • apt-get install

    root@DESKTOP-DENBHPV:/etc# apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following additional packages will be installed:
    libcurl4 python3-software-properties
    The following NEW packages will be installed:
    apt-transport-https gnupg-agent
    The following packages will be upgraded:
    ca-certificates curl libcurl4 python3-software-properties software-properties-common
    5 upgraded, 2 newly installed, 0 to remove and 110 not upgraded.
    Need to get 582 kB of archives.
    After this operation, 204 kB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 ca-certificates all 20190110ubuntu1.1 [145 kB]
    Get:2 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 apt-transport-https all 2.0.2ubuntu0.1 [1708 B]
    Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.2 [161 kB]
    Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl4 amd64 7.68.0-1ubuntu2.2 [233 kB]
    Get:5 http://archive.ubuntu.com/ubuntu focal/universe amd64 gnupg-agent all 2.2.19-3ubuntu2 [5236 B]
    Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 software-properties-common all 0.98.9.2 [10.6 kB]
    Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-software-properties all 0.98.9.2 [25.2 kB]
    Fetched 582 kB in 5s (114 kB/s)
    Preconfiguring packages ...
    (Reading database ... 31836 files and directories currently installed.)
    Preparing to unpack .../0-ca-certificates_20190110ubuntu1.1_all.deb ...
    Unpacking ca-certificates (20190110ubuntu1.1) over (20190110ubuntu1) ...
    Selecting previously unselected package apt-transport-https.
    Preparing to unpack .../1-apt-transport-https_2.0.2ubuntu0.1_all.deb ...
    Unpacking apt-transport-https (2.0.2ubuntu0.1) ...
    Preparing to unpack .../2-curl_7.68.0-1ubuntu2.2_amd64.deb ...
    Unpacking curl (7.68.0-1ubuntu2.2) over (7.68.0-1ubuntu2) ...
    Preparing to unpack .../3-libcurl4_7.68.0-1ubuntu2.2_amd64.deb ...
    Unpacking libcurl4:amd64 (7.68.0-1ubuntu2.2) over (7.68.0-1ubuntu2) ...
    Selecting previously unselected package gnupg-agent.
    Preparing to unpack .../4-gnupg-agent_2.2.19-3ubuntu2_all.deb ...
    Unpacking gnupg-agent (2.2.19-3ubuntu2) ...
    Preparing to unpack .../5-software-properties-common_0.98.9.2_all.deb ...
    Unpacking software-properties-common (0.98.9.2) over (0.98.9) ...
    Preparing to unpack .../6-python3-software-properties_0.98.9.2_all.deb ...
    Unpacking python3-software-properties (0.98.9.2) over (0.98.9) ...
    Setting up apt-transport-https (2.0.2ubuntu0.1) ...
    Setting up ca-certificates (20190110ubuntu1.1) ...
    Updating certificates in /etc/ssl/certs...
    0 added, 1 removed; done.
    Setting up python3-software-properties (0.98.9.2) ...
    Setting up gnupg-agent (2.2.19-3ubuntu2) ...
    Setting up libcurl4:amd64 (7.68.0-1ubuntu2.2) ...
    Setting up curl (7.68.0-1ubuntu2.2) ...
    Setting up software-properties-common (0.98.9.2) ...
    Processing triggers for libc-bin (2.31-0ubuntu9) ...
    Processing triggers for man-db (2.9.1-1) ...
    Processing triggers for dbus (1.12.16-2ubuntu2) ...
    Processing triggers for ca-certificates (20190110ubuntu1.1) ...
    Updating certificates in /etc/ssl/certs...
    0 added, 0 removed; done.
    Running hooks in /etc/ca-certificates/update.d...
    done.

  • About offsetParent ....

    Assume we have a "div" in body: if the div 's position is absolute / relative / static , its offsetParent is body; if its position is fixed , then its offsetParent is null !

  • NOTE: Use 64bit editor ( Notepad2 x64 ) to change 64bit asp.net application's "applicationHost.config" !!

    1. If current windows OS is 64bit ( win7 x64 or windows server 2008 ) , then 32bit editors ( notepad++ , visual studio ) can't actually change C:\Windows\System32\inetsrv\Config\applicationHost.config ; changing this file is actually changing C:\Windows\SystemWOW64\inetsrv\Config\applicationHost.config, which is configured for 32bit asp.net applications on 64bit OS platform ! 2. So, to serve 64bit asp.net application we need access real "C:\Windows\System32\inetsrv\Config\applicationHost.config" , then we need a 64bit editor. "Notepad2 x64" is an ideal choice.

  • Again: how to configure XDebug

    1. download from xdebug.org ( use the 32bit ntf version , eg : php_xdebug-2.2.0-5.4-vc9-nts.dll ) 2. put dll in "ext" folder 3. add the extension config to php.ini : ;[zend_extension] zend_extension = ext\php_xdebug-2.2.0-5.4-vc9-nts.dll 4. NOTE: to enable site debuggable , should switch on the setting for target site ( could put in separate "user.ini" files ) xdebug.remote_enable = On