0%

我最近在看《攻壳机动队》,这是一部赛博朋克动漫系列作品,探讨各种社会、政治、哲学话题。我今晚看了TV版第二季第2话“饱食的我”,是我认为最好的剧集之一。除了这集以外,第一季第13话也很精彩。

《攻壳》TV版的剧集一般都分主线剧集或独立故事剧集,主线之间穿插着独立的故事。第二季第2话就是一集独立故事,总时长也不到半小时,因此如果感兴趣不妨去看一看,b站上就有。《攻壳机动队》TV版第二季第2话

梗概

正义的基诺

这一话有关一个参与过“第二次越南战争”的退伍军人基诺(Gino)。背景设定在未来,科技高度发达。由于战争的需要以及战后的损伤修复,这位退伍军人的全身受到了义体化改装(即把全身各种器官替换成电子器件),并被植入了电子脑。(电子脑可以连接网络,可以与他人连通,当然也可以被入侵。)

基诺退伍后,凭着优异的直升机驾驶技术,被某媒体集团会长(片仓)看中,聘为私人直升机驾驶员。但他一心憎恨虚伪的媒体,并一心想杀死这位会长。这出于他心中充满的正义的愤怒:战争是各个资本集团为了攫取利益展开的“实验场”,政府与资本勾结起来作恶,而媒体一边让民众相信自己是正义的,一边背地里与政府勾结,掩瞒真相,是真正的敌人。

阅读全文 »

Today I installed a window layout manager on MacOS -- Amethyst. It allows to use shortcuts to swich windows into different layouts. Because I am using 2 monitors, and always work with lots of windows together, I really need one to smoothly set up the layouts.

In fact, I wanted an app to help me remember the layouts and automatically recover it at the beginning. And I've downloaded the Layouts. But I don't wanna learn to use 2 apps together. I hope I'll make use both of them one day.

Shortcuts for me

Here I comment on the default shortcuts. I myself has only 2 monitors, so I don't need some of the functions.

Amethyst uses two modifier combinations.

Default Shortcut Description
mod1 option + shift
mod2 ctrl + option + shift
阅读全文 »

reference:

廖雪峰 - Git教程

Coursera - Server-side Development with NodeJS, Express and MongoDB

0. Git Diagram

工作区(Working Directory) --add--> 暂存区(Staging area) --commit--> Master

HEAD refers to master

1. Global Configuration for Git

  • Check to make sure that Git is installed and available on the command line, by typing the following at the command prompt:
阅读全文 »

最近总在担心我的网站哪天就没了。因为搭载网站的阿里云服务器不到一个月就要过期了。接下来的续租费用惊人,一年几千块钱,谁能承受得起?我还没有想好下一步网站要搭在哪里。悬而未决,很难呀。

难得来保持更新。先记录一下我的个人状况吧:本科毕业,美签被拒,Purdue CS PhD成为遗憾,转而来了新加坡,读NUS Master of Computing。我的人生目标也从「读博-科研-永葆好奇」迅而转为了「读硕-找工-好好生活」。既然如此,就为本科没选毕业设计而选了毕业论文而稍稍遗憾。另外,觉得我对AI的好奇在此受阻,software可能是最保险选择。如此这般,前功半弃,挑战重重。

这是我刚来新加坡的第三天。第一次出国,口语很烂,Singlish又比较难懂,生活好比踽踽独行。两位合租室友都已经开始工作,她们会做饭,我搭伙吃,故挑食的毛病并不敢声张,容易吃到不爱吃的东西,半饱不饱。这里的外卖配送费惊人,上喜茶看中了一杯豆乳波波,他妈的,加上配送费要80人民币。没舍得点。正式的学生签证还没下来,因之还没办信用卡,揣着值两千多块钱的现金,是我全身上下的积蓄。出门采购,艰难沟通,慢悠悠掏出来给钱,慢悠悠等着找钱。楼下的泳池令我觊觎万分,但是一来疫情期间不是很放心,二来我并不会游泳😅,遂三过泳池而不入,惜哉。

受的委屈也就这么点,但也让我时不时偷偷哭一下。只敢跟女票说,跟家人报喜不报忧。

我记日记的习惯已经完全丢了。与之相应的记录、梳理、反思的习惯也都丢了,怪可惜的,一直可惜着。对接下来的日子该怎么憧憬?挺憧憬的,自己也感觉到了,但是到底该怎样面对这些散漫、荒废、漫长但一去不复返的时光?

阅读全文 »

要出发去新加坡了。临行前啥也没收拾,就把一柜子书码整齐了…从来没抗拒过电子书,但很多书还是习惯读纸质的,莫名其妙买了一柜子书📖📖📖📖📖 达成自定义成就:「小有藏书」👏

shelf
shelf

今天外公出院了,搬到我们小区里,明天他就能见到我弟弟了。弟弟两个多月了,每天都很爱睡觉,也很爱笑。我带女朋友回家旅游,妈妈接我们的第一晚,轻松地跟我说,外公之前病得很重,武汉的医院只让火化,所以才接回恩施,可以入土。医院的医生都没想到,外公奇迹般地转好了,出院了,只要好好照顾,别感冒。外公的肺很衰弱了,妈妈说,这八成是新冠的后遗症。新冠爆发期间,外公外婆在武汉家中得了重感冒,封锁了多久,就双双卧床了多久。一年后带外公体检,查抗体才意外发现,两位老人属于感染新冠后已痊愈的状态。那真的是新冠。妈妈和舅舅错愣良久,没敢告诉他们。妈妈说,以外婆的性子,只会后怕。唉,妈妈说,新冠影响了我们家太多,我说大家都这样。唉,愿家人平安。

Yi Sun, Xingzhi Wang, Jiayin Zhu, Liangjian Chen, Yuhang Jia, Jean M. Lawrence, Luo-hua Jiang, Xiaohui Xie, Jun Wu, Using machine learning to examine street green space types at a high spatial resolution: Application in Los Angeles County on socioeconomic disparities in exposure, Science of The Total Environment, Volume 787, 2021, 147653, ISSN 0048-9697, https://doi.org/10.1016/j.scitotenv.2021.147653. (https://www.sciencedirect.com/science/article/pii/S0048969721027248)

PDF

Abstract:

Background Compared to commonly-used green space indicators from downward-facing satellite imagery, street view-based green space may capture different types of green space and represent how environments are perceived and experienced by people on the ground, which is important to elucidate the underlying mechanisms linking green space and health. Objectives This study aimed to evaluate machine learning models that can classify the type of vegetation (i.e., tree, low-lying vegetation, grass) from street view images; and to investigate the associations between street green space and socioeconomic (SES) factors, in Los Angeles County, California. Methods SES variables were obtained from the CalEnviroScreen3.0 dataset. Microsoft Bing Maps images in conjunction with deep learning were used to measure total and types of street view green space, which were compared to normalized difference vegetation index (NDVI) as commonly-used satellite-based green space measure. Generalized linear mixed model was used to examine associations between green space and census tract SES, adjusting for population density and rural/urban status. Results The accuracy of the deep learning model was high with 92.5% mean intersection over union. NDVI were moderately correlated with total street view-based green space and tree, and weakly correlated with low-lying vegetation and grass. Total and three types of green space showed significant negative associations with neighborhood SES. The percentage of total green space decreased by 2.62 [95% confidence interval (CI): −3.02, −2.21, p < 0.001] with each interquartile range increase in CalEnviroScreen3.0 score. Disadvantaged communities contained approximately 5% less average street green space than other communities. Conclusion Street view imagery coupled with deep learning approach can accurately and efficiently measure eye-level street green space and distinguish vegetation types. In Los Angeles County, disadvantaged communities had substantively less street green space. Governments and urban planners need to consider the type and visibility of street green space from pedestrian's perspective.

Keywords: Green space; Street view image; Machine learning; Socioeconomic status; Environmental health disparity

tmd,用惯了r,开始用Python pandas,每一步我都知道要干啥,就是不知道要怎么做,太烦了!!我来把最基础的操作系统学习一下,记在这里备忘:

0. 创建df:

1
2
3
4
5
6
7
>>> df = pd.DataFrame(np.arange(16).reshape(4, 4), columns=list('ABCD'), index=list('1234'))
>>> df
A B C D
1 0 1 2 3
2 4 5 6 7
3 8 9 10 11
4 12 13 14 15

1. 删除行列

1.1. drop删除行列

inplace=True 表示就地修改,如果不设置,则会创建副本返回

阅读全文 »

在这个目的、功利、简历至上的时代(这无可指摘),我所信奉的一种生活方式(懒惰主义/浪漫主义)是:在某些上不了台面/不足为外人道的兴致上持续投入精力。例如在自己建的小破网站写狗屁诗,读对本专业毫无用处的书,喝酒,玩单机游戏,等等。

2020.10.19


做人好难,人真的有连贯性和完整性吗,午睡前后心态会有重大变化,在客厅里和在卧室里觉得人生目标都不一样,支离破碎的一个人怎样勠力同心?

2021.1.28


阅读全文 »

Well!!!! I had thought my website was closed down and had no energy to recover it. But now I find it still accessible from a network outside CN. It's banned just because... I hadn't set up the website Bei'an asked by CN gov on time. I'm just lazy and busy.

So, now, I can still post something.


结构

views.py 视图:把变量传给网页模板

urls.py 路由:指定url地址对应的view

阅读全文 »