Web
Notes for web-related content, including but not limited to research and notes on web development language such as PHP, HTML, JavaScript and CSS.
Latest
-
Mac Suddenly Slow on Local Network (SMB, NFS, SCP, SSH, Ping, etc. Are All Slow)
2025-06-21 | #Words: 1132
Today, SMB suddenly got slow again—only about 8-9 MB/s. It’s well-known that Apple’s SMB is prone to sudden slowdowns. I tried installing NFS, but it was still slow. I was frustrated. I checked other scenarios like `scp`, and they were all slow too—yet my internet download speed was still fast.
-
How to use Java like script (How to run single Java file like script)
2023-01-10 | #Words: 400
Java supports running a single Java code file like a script on Unix like systems. But at the bottom, it unlikes the real scripts, it still needs to be compiled. You can run it as script under Linux, macOS, WSL and cannot be used under Windows PowerShell or CommandLine.
-
How to install and use Nginx and PHP7 on Ubuntu server
2022-08-14 | #Words: 1228
Recently I need to study PHP, but I found PHP unlikes scripting languages like Python and JavaScript can be viewed directly in local, PHP needs run on the server. This requires setting up an environment to learn. Although many websites that also provide already built websites, but I think I should learn how to prepare when I learn how to use PHP. Otherwise, when I still don't know how to start by myself. It would be extremely embarrassing.
-
How to get query of URLs in PHP
2022-07-10 | #Words: 232
PHP, like Python, provides the function `parse_url(string $url, int $component = -1)`, which is very convenient.
-
What are the query of URL? How to parse and obtain them?
2022-07-10 | #Words: 460
This article is to introduce the common parameter parts in URLs and how to use common Python, JavaScript, and PHP to parse and obtain parameters. (You can click on the table of contents on the left to jump directly to the part you want to see)
-
How to get query of URLs in Javascript
2022-06-12 | #Words: 735
It is a little troublesome to get URL parameters with JS, because JS can only get a certain part of the URL, but it cannot be subdivided. If you want to get a certain parameter, you also need to use string interception. So it’s divided into two steps:
-
How Python parses and obtains URL parameters and uses
2022-06-09 | #Words: 461
ZhongUncle will introduce how to parse and obtains the URL parameters in Python, and how to use them
-
How output data in Python
2022-06-03 | #Words: 1565
There are two types of output data formats: formatted output and direct output. For example, the `f` of `printf` function in C language means formatted. Different data types can be printed through conversions such as `%d`. Python also has two types.