逸思杂陈

things that cross domains

Original link: http://ponder.work/2023/08/15/cross-domain-things/ What is cross domain? That is, the current domain accesses resources in non-local domains. For http, url represents a resource, that is, a url that is not in this domain is accessed. What is the definition of domain? The domain here is the source in the same-origin policy. Two URLs are of …

things that cross domains Read More »

HomeBrew and package management for rootless Linux environments

Original link: http://ponder.work/2023/05/28/homebrew-as-non-root-package-manager/ For maintenance and security reasons, some public Linux servers generally only provide users with normal privileges. The permissions of ordinary users are enough for daily use, but it is difficult to configure your own development environment and install some packages you need. If you compile and install software from source code, the …

HomeBrew and package management for rootless Linux environments Read More »

Close file descriptors opened by the child process

Original link: http://ponder.work/2022/08/30/close-subprocess-opened-fd/ When we test the code, because we need to restart the service frequently, we often find that the service port is occupied. Generally, killing the background process is ok, but if the service starts some resident background programs, the port may not be released. In UNIX-like systems, all open files and ports …

Close file descriptors opened by the child process Read More »