Tôi đã xây dựng uAPI để chuyển đổi các trang web hỗn loạn thành hợp đồng JSON nhất quán mà bạn có thể tin cậy. uAPI cung cấp giao diện đọc ổn định cho web, trả về-envelope JSON nhất quán cho bất kỳ trang công khai nào được phép. #uAPI #JSON #HợpĐống #TrìnhDuyệt #WebScrapping #DataEngineering #MachineLearning #TrìnhXửLýDữLiệu #HọcMáy #CôngNghệ #TinHọc #TrangWeb #DữLiệu #KhoaHọcDữLiệu

https://www.reddit.com/r/SideProject/comments/1oo3yah/i_built_uapi_to_turn_chaotic_pages_into/

TIL on Linux you cannot rely on the timestamps of files in /proc/<pid> to give you information about a process start time: those might be reset on suspend of if a process gets a SIGSTOP.
Instead, one should look at the 22nd field of /proc/pid/stat: starttime.
But it gives you the process start time in system clock ticks, not seconds. So you must divide it by sysconf(_SC_CLK_TCK) to get seconds.
But wait, it gives you the start time in ticks since boot. So you must use clock_gettime(CLOCK_BOOTTIME, ...) to get a usable comparison to the current time.

Anyway, now progressrm should be more accurate at guessing the file arguments progression (and remaining time) of rm commands.

#Linux #ProcPid #uapi #JustLinuxThings

🌘 尋找檔案系統階層標準 (FHS) 的接班者
➤ 從 FHS 3.0 的停滯到 UAPI 的潛力,Linux 檔案系統標準化的新篇章
https://lwn.net/SubscriberLink/1032947/67e23ce1a3f9f129/
Linux 檔案系統階層標準 (FHS) 自 2015 年定案後已停滯不前,而 Linux 生態系卻持續演進。這篇文章探討了為 FHS 尋找繼任者的討論,特別是 Fedora 開發者提出的採用 systemd 的檔案階層文件,該文件現已整合至 Linux 使用者空間 API (UAPI) 羣組的規格中。文章回顧了 FSSTND 到 FHS 3.0 的歷史演變,並分析了 FHS 4.0 的緩慢進展,以及 systemd 檔案階層作為潛在替代方案的優劣。最終,Fedora 考慮採納 UAPI 規範,期望能帶動其他發行版跟進,為 Linux 檔案系統結構的未來發展奠定基礎。
+ 終於有人要解決 FHS 過時的問題了!systemd 的方案聽起來不錯,但希望 UAP
#Linux #檔案系統 #標準化 #FHS #systemd #UAPI
Finding a successor to the FHS

The purpose of the Filesystem Hierarchy Standard (FHS) is to provide a specification for filesy [...]

LWN.net

@rl_dane the systemd crowd is also working on replacing the #FHS with their idea of how a GNU/Linux filesysten should look like 🤮 according to LWN.

They’re good at appropriating general-sounding names (first freedesktop.org now "Linux #UAPI group") for themselves to be able to say (from the systemd side) that "an independent standards group" (staffed with their people) is doing the change.

"But it’s not just people from #systemd but also from […], Debian, […]" they say. Yes, strictly speaking the systemd maintainers in Debian, who are responsible for lots and lots of breakage on users’ systems hy forcing through their stuff, are "people from Debian".

Oh, and they also have a token subgroup where someone not from the systemd/gnome/fdo crowd is working on somethi g totally unrelated to be able to say they’re not an sd/g/fdo-only ship, even if both in practice and for this specific project fully they are.

🤮

I built a tool for image based linux / discoverable disk images:
https://github.com/malt3/ddi-tool

For now, it can update the embedded kernel cmdline of a UKI.
More features are in the pipeline.

#systemd #uapi #linux

GitHub - malt3/ddi-tool: Tool for manipulating discoverable disk images (DDIs) in-place.

Tool for manipulating discoverable disk images (DDIs) in-place. - GitHub - malt3/ddi-tool: Tool for manipulating discoverable disk images (DDIs) in-place.

GitHub
Doing some work on #uapi lately. Interestingly, Django, Flask and Quart set the response `content-type` header to `text/html` by default, even when the status code is 204 and there's no actual response body. Starlette and Aiohttp leave it unset, as expected.
I need to toot the #cattrs and #uapi hashtags so they spring into existence and I can add them to my filters. Will be using them in the future ;)