0%

Mac Problems

WindowServer

  • 進程名稱“WindowS永遠“會讓我們想起”Windows 服務器“但他與這無關 Windows 由微軟。
  • 該 WindowServer屬於操作系統 macOS (系統進程)並處理一切 視覺方面 從 桌面, Dock Bar si 菜單欄。 這個過程使得管理在視覺方面(用戶看到的)和硬件方面。 所有 文件夾 si 檔 誰在 桌面, 透明度的影響 麥酒 碼頭 si 菜單欄 由…管理 WindowServer。

    降低方式

    1. 盡量減少桌面上文件夾和文件的數量.
  1. 關閉您不使用的Finder窗口 或者使用帶有多個選項卡的單個打開窗口。
  2. 禁用的透明效果 macOS.
  3. 禁用任務控制中的自動重排.
  4. 關閉您不使用的應用程序.
    閱讀全文 »

Regex search on webpage in Chrome

Using Javascript to match regular expressions

  • in console log
  • var p=/.*(regu).+?\ /gi; console.log( document.body.innerText.match(p) );
    閱讀全文 »

標點符號的英文

. dot
句號 period
逗號 comma
冒號 colon
分號 semicolon
驚嘆號 exclamation
小老鼠 at
問號 question mark
所有格號 apostrophe
* 星號 /米字 asterisk (or star)
§ 分節號 section ; division
箭號 arrow
- 破折號/中線 dash
斜線 virgule ; slash
反斜線 backslash
波浪號 tilde (or swung dash)
省略號 ellipsis
( ) 圓括號 parentheses
‘  ‘ 單引號 single quotation marks
“ ” 雙引號 double quotation marks
《》 法文引號或書名號 French quotes
[ ] 方括號 (square) brackets
{ } 大括號 braces
雙線號 parallel
閱讀全文 »

C++ Core Guidelines

SL.1: Use libraries wherever possible

  • Save time. Don’t re-invent the wheel

    SL.2: Prefer the standard library to other libraries

  • It is more likely to be stable, well-maintained, and widely available

    SL.3: Do not add non-standard entities to namespace std

  • Adding to std might change the meaning of otherwise standards conforming code. Additions to std might clash with future versions of the standard.
    • Possible, but messy and likely to cause problems with platforms.

      SL.4: Use the standard library in a type-safe manner

  • Because, obviously, breaking this rule can lead to undefined behavior, memory corruption, and all kinds of other bad errors.
    閱讀全文 »

Linux Signals

  • 信號機制是進程之間相互傳遞消息的一種方法,信號全稱為軟中斷信號,也有人稱作軟中斷。

  • 從它的命名可以看出,它的實質和使用很象中斷。所以,信號可以說是進程控制的一部分。

    閱讀全文 »

Terminal shortcut

CLI shortcut

move

Keyboard sequence Action
Ctrl+b Move the cursor back one character.
Esc+b or Alt+b Move the cursor back one word.
Ctrl+f Move the cursor forward one character.
Esc+f or Alt+f Move the cursor forward one word.
Ctrl+a Move the cursor to the beginning of the command line.
Ctrl+e Move the cursor to the end of the command line.
閱讀全文 »

Vim Shortcut

main

Shortcut Keys Function
Escape key Gets out of the current mode into the “command mode”. All keys are bound of commands.
i “Insert mode” for inserting text. Keys behave as expected.
: “Last-line mode” where Vim expects you to enter a command such as to save the document.
:ter[minal] Open a terminal window
閱讀全文 »

NMAP(Network Mapper)

  • Nmap 是一個開放原始碼的網路掃描與探測工具,可以讓網路管理者掃描整個子網域或主機的連接埠等

install

mv advice

網際網路上用來找尋設備的方法

  • 茲將網際網路上常用來找尋設備的方法整理如下:
    • WS-Discovery (ONVIF組織定義的方法)
    • SSDP  (DLNA組織定義的方法)
    • Multicast Domain Name Service(mDNS)
    • ADwin Config
    • Bonjour
      閱讀全文 »