w3m ---- Web Browser

安装

linux

  • 系统

    • 直接安装 w3m
  • emacs

    • 安装 emacs-w3m

Windows

  • 系统

    • wsl 安装 w3m –> wsl w3m
    • msys2 安装 w3m
  • w3m 命令配置

    • 制作 w3m.cmd

      1
      2
      3
      
        @echo off
        E:\soft\msys64\usr\bin\w3m.exe %*
        rem wsl w3m %*
  • emacs

    • 安装 emacs-w3m
    • 配置 emacs

      1
      2
      3
      4
      5
      6
      
        (use-package w3m
          :config
          (if (eq system-type 'windows-nt)
              ;; (setq w3m-command "E:/soft/msys64/usr/bin/w3m.exe")
              (setq w3m-command "d:/soft/bin/w3m.cmd")
            ))

使用

  • M-x w3m

移动光标

图片遍历

  • {
  • }

form 表单遍历

输入框、选择框、按钮遍历

cairo

用途

绘制 2D 矢量图

Cairo backend

即输出端,eg: X window system, SVG, PDF, Win32 GDI

隶属

version >= 2.8, 包含于 GTK system

概念

drawing context

作用:存储所有图形参数(状态参数和如何绘制)

awesomewm ---- Awesome Window Manager

标题栏 titlebars

  • 修改方法

    1
    2
    3
    4
    
      -- Add title bars to normal clients and dialogs
      { rule_any = {type = { "normal", "dialog" }
        }, properties = { titlebars_enabled = true }
      },
  • 修改 titlebars_enabled

    • true: 显示
    • false: 隐藏

4k 屏处理

通过 .Xresources 配置文件修复

参考:

步骤:

  1. 通过 xrandr 设置正确的分辨率,如 3840x2160
  2. 配置 .Xresources 文件

NLP Articles Read Notes

论文:The interdependence of common ground and context

概念

缩写名词语义
Sspeaker[, writer, signer]发出表述的人
Haudience听和理解表述的人
C1uttering thing(v)发出的表述
C2world and time when S spoken in; situation of SS 的表述环境;时间和空间环境(历史世界状态)
C3H's situation of interpretation; H's point of viewH 的理解环境;时间和空间环境
CGCommon Ground共享环境背景

自然语言处理与计算语言学

作者:巴格夫·斯里尼瓦萨-德西坎(Bhargav Srinivasa-Desikan)

six ---- Python2 and Python3 coding helper library

metaclass

参考:

两种方法:

  1. six.with_metaclass

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    
    import six
    
    
    class MyMeta:
        def __new__(self, cls, name, bases, attrs):
            pass
    
    
    class MyBase:
        pass
    
    
    class MyClass(six.with_metaclass(MyMeta, MyBase)):
        pass
    • 接口说明

      • six.with_metaclass(MetaClass, *otherBases)
  2. six.add_metaclass

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    
    import six
    
    
    class MyMeta:
        def __new__(self, cls, name, bases, attrs):
            pass
    
    
    class MyBase:
        pass
    
    @six.add_metaclass(MyMeta)
    class MyClass(myBase):
        pass

字符串类型 str

six.text_type