2026-06-30
2026-06-29
新想了一个笔试题目,欢迎大家提交代码
please write a javascript code that can crash the broswer tab.
2026-06-28
键盘里的scancode是?用来确定唯一的按键?
Broadly speaking, a scancode (or scan code) is either a number[a] or bit array[b] that is used by a keyboard protocol to uniquely identify[c] a keyboard key. Keyboards normally[d] send scancodes to the computer to update the computer’s internal keyboard state (which tracks what keys are being held down). The exact mechanism how, when and what scancodes are sent depends on the protocol.
https://en.wikipedia.org/wiki/Scancode
2026-06-27
mac 的键盘都是有 fn 按键的吗?
The Fn key, short form for function, is a modifier key on many keyboards. It is generally used for the purpose of rapidly changing display or audio settings, such as brightness, contrast, or volume. When included on laptop keyboards, it is often combined with the Alt key due to restricted keyboard size. It is also found on many full-sized “multimedia” keyboards as the F-Lock key.
https://en.wikipedia.org/wiki/Fn_key
2026-06-20
What is inside xlsx file原来是一个套路
Rename it to .zip, and then you can open it. You can see everything; directory structures, XML, etc… Same thing for powerpoint (.pptx) files as well.
https://www.reddit.com/r/excel/comments/r5o0ko/what_is_inside_an_xlsx_file/
2026-06-18
react 的受控和非受控组件,一直不得其义
It is common to call a component with some local state “uncontrolled”.
In contrast, you might say a component is “controlled” when the important information in it is driven by props rather than its own local state. This lets the parent component fully specify its behavior.
https://react.dev/learn/sharing-state-between-components
2026-06-17
想到一句话,走过时没有想到这么暗流涌动:
走过危机四伏的成长,我们每一个人都是青春的幸存者
https://book.douban.com/review/17575890/
2026-06-15
控制台乱码用指令 chcp,也不知道真的假的
Changes the active console code page. If used without parameters, chcp displays the number of the active console code page.
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/chcp
2026-06-12
peerDependencies 是什么
In some cases, you want to express the compatibility of your package with a host tool or library, while not necessarily doing a require of this host. This is usually referred to as a plugin. Notably, your module may be exposing a specific interface, expected and specified by the host documentation.
https://docs.npmjs.com/cli/v11/configuring-npm/package-json#peerdependencies
2026-06-05
自己的网站不想维护了,维护起来太累了
The scp (Secure Copy Protocol) command is used to securely transfer files and directories between systems over a network. It works over SSH, which means all transferred data is encrypted. It is commonly used by system administrators to move backup files, fetch logs, copy configuration files, and transfer data between servers safely and quickly.
Transfers files securely using SSH encryption
Supports copying between local and remote systems
Allows directory transfer using recursive mode
Provides options for custom ports, metadata preservation, and quiet mode
https://www.geeksforgeeks.org/linux-unix/scp-command-in-linux-with-examples/
scp file.txt [email protected]:/home/username/
2026-06-04
其实在Virtual Texture之前,已经出现过一些解决方案,这些方案中的思想直接促成了Virtural Texture的诞生。由于mesh的LOD,导致了一种将texture bake到不同LOD的解决方案,与之相类似的,在运行时动态决定要加载的texture,给不同的LOD mesh。一个叫Jonathan Blow的程序员在2000年提出了基于后者的方案,对,就是那个吹哥。1998年Tanner发表了一篇《The Clipmap: A Virtual Mipmap》的论文,这篇论文中提到的Clipmap的技术本来是用于地图渲染的,后被id Software用到了游戏中,提出了一个叫MegaTexture的技术。Clipmap的基本思想是,设置一个mipmap大小的上限,超过这个上限的mipmap会被clip掉,也就是不会加载到内存中:
