阿瑟•克拉克《星》
星
作者:[英]阿瑟•克拉克
译者:杨霞
原发表于《科幻世界》1998.10
重校/修正/补完:黑小喵 & Ent
https://www.douban.com/note/225498768/
http://emp.byui.edu/davisr/202/TheStar.htm
这里距离梵蒂冈三千光年。
yun test
[翻譯] 改觀(Change My View):反 delta 舉措(緩慢更新中)
- 反 delta 舉措
- 採取強硬的態度、完全對立的證據、好鬥的語調
- 羞辱對方的智商
- 使用敵對性的譏諷
- 說對方傻
- 讓對方自殺 / 希望對方遭遇暴力
- Compete to see who can out-pity the other
- Speak on the audience’s behalf
- Pretend that you are intellectually amused by their continuing responses
- Declare that you’re finished responding, several times
- Say the person’s persistence or attitude “proves” something about the topic
- “Find it interesting” that someone is having an argument with you
- Pick on the use or definition of “irony”
- Use the term “reading comprehension” anywhere
- Dismiss their education
- Spontaneously ask them how old they are
- Link with “Let Me Google That For You” (lmgtfy.com)
- Inform them of their inherent cognitive limitations
- Whine about goalposts
- Project your feelings
- The “if you think X, then you’re an idiot” trap
- Imply a lack of experience when they don’t agree with you
- Portray Atlas as Joe Schmoe
- “Tough Love” or “shocking them into sanity” is the only way to change their view
- Be verbally astonished
- Accuse them of being shills
- If you’d read X, you’d know Y
Ubuntu Disable Man Pages
(只是个簡单的筆記)
原文地址:uninstall - Remove documentation to save hard drive space - Ask Ubuntu
因為 VPS 上實在不需要 man pages 等的文档,但是安裝时又費时間,所以想永遠把它關掉。摘錄如下:
# Create /etc/dpkg/dpkg.cfg.d/01_nodoc
path-exclude /usr/share/doc/*
# we need to keep copyright files for legal reasons
path-include /usr/share/doc/*/copyright
# if you also want to remove the man pages uncomment the next line
#path-exclude /usr/share/man/*
path-exclude /usr/share/groff/*
path-exclude /usr/share/info/*
# lintian stuff is small, but really unnecessary
path-exclude /usr/share/lintian/*
path-exclude /usr/share/linda/*
find /usr/share/doc -depth -type f ! -name copyright|xargs rm || true
find /usr/share/doc -empty|xargs rmdir || true
rm -rf /usr/share/groff/* /usr/share/info/*
rm -rf /usr/share/lintian/* /usr/share/linda/* /var/cache/man/*
# If you also want to remove the man pages do:
rm -rf /usr/share/man/*
Pleroma 使用 gup.pe 的权宜之计
本文是这个嘟文 Pleroma 使用 gup.pe 的权宜之计,可能之后的一些改动会在这里更新。
现在 pleroma 帐号还是关注不上 gup.pe 的群组号,原因似乎是 [1] 中 umonaca 提到的 http 头的问题。刚刚测试了一下,这个问题可以通过使用 nginx 来手动设置 http 头来解决: 首先,打开 pleroma 的 nginx 配置文件(按官方教程安装的是 /etc/nginx/sites-enabled/pleroma.conf); 文件里有一段类似这样的内容:
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
......
}
把这段内容全部复制(复制的内容里应只有一个“}”),粘贴到这一段的那个“}”花括号后面,现在这部分大概看起来像是这样:
location / {
......
}
location / {
......
}
将其中一个 location 行修改:
location / {
......
}
location ~ inbox$ {
......
}
在“location ~ inbox$ {”对应的那一块的里找到 proxy_pass_request_headers on;
这一行,在这行下面插入:
proxy_set_header Accept "application/activity+json";
现在这一部分应该看起来像:
location / {
......
}
location ~ inbox$ {
......
proxy_pass_request_headers on;
proxy_set_header Accept "application/activity+json";
......
}
保存退出,用 sudo nginx -s reload
或者 sudo systemctl restart nginx
重新加载配置。这个时候应该就可以正常关注 gup.pe 帐号了。
(但是不知道会不会有什么副作用。 :blobcatnotlikethis: ) (不知道什么时候 gup.pe 会把 header 改过来。) (还有顺便安利一下 QOTO 推出了群组服务器 https://groups.qoto.org ,和 gup.pe 差不多,但是需要手动创建群组,创建人可以编辑群组的简介并对关注者正常进行 block 等操作,也可以像正常帐号一样上锁来手动批准关注。)
[1]: https://github.com/wmurphyrd/guppe/issues/21#issuecomment-716452245
ActivityPub 协议笔记(又一新坑)
词汇 Activity Vocabulary
英文 | 本文翻译 |
---|---|
vocabulary | 词汇 |
activity | 活动 |
Activity Streams 2.0 词汇有两部分定义: 1. 描述一个 Activity 的普遍结构的一组核心性质; 2. 醚诶喔数 Activity 的特定类型以及常见 Artifact 的扩展的一组性质;
实现必须至少支持 [Activity Streams 2.0 Core Syntax](https://www.w3.org/TR/activitystreams-core/) 里的扩展性质集。
核心类型 Core Types
类型 | 说明 | 属性 |
---|---|---|
Object |
基本类型,与 Link 属并列关系 |
attachment \| attributedTo \| audience \| content \| context \| name \| endTime \| generator \| icon \| image \| inReplyTo \| location \| preview \| published \| replies \| startTime \| summary \| tag \| updated \| url \| to \| bto \| cc \| bcc \| mediaType \| duration |
Link |
基本类型,与 Object 属并列关系 |
href \| rel \| mediaType \| name \| hreflang \| height \| width \| preview |
Activity |
扩展 Object
|
新增 actor \| object \| target \| result \| origin \| instrument
|
IntransitiveActivity |
扩展 Activity
|
除去了 object 属性 |
Collection |
扩展 Object
|
新增 totalItems \| current \| first \| last \| items
|
OrderedCollection |
扩展 Collection
|
将 items 属性换为了 orderedItems
|
CollectionPage |
扩展 Collection
|
新增 partOf \| next \| prev
|
OrderedCollectionPage |
扩展 OrderedCollection \| CollectionPage
|
新增 startIndex
|
Json 格式:
{
"@context": "https://www.w3.org/ns/activitystreams",
"type": "<类型>",
<类型对应的属性>...
}
扩展类型 Extended Types
Activity 类型
Activity
-
Accept
-
TentativeAccept
-
Add
Create
Delete
Follow
-
Ignore
Block
Join
Leave
Like
-
Offer
Invite
-
Reject
TentativeReject
Remove
Undo
Update
View
Listen
Read
Move
Announce
Flag
-
Dislike
-
IntransitiveActivity
Arrive
Travel
-
Question
: 增加了oneOf | anyOf | closed
属性
Actor 类型
Actor 类型是能够执行 Activity 的 Object 类型,包括:
Application
Group
Organization
Person
Service
Object 以及 Link 类型
Object 类型有:
Ariticle
Document
Audio
Image
Video
Page
Event
Note
-
Place
: 新增属性accuracy | altitude | latitude | longitude | radius | units
-
Profile
: 新增属性describes
-
Relationship
: 新增属性subject | object | relationship
-
Tombstone
: 新增属性formerType | deleted
Link 类型有:
Mention
属性汇总
属性非常之多。请参见 activitystreams-vocabulary/#properties。