之前就想要给博客加个黑客帝国字幕雨做背景,奈何没搞定元素定位的问题,这次花一个多小时折腾了一下算是基本搞定了。
google一下发现大部分实现都是基于html5的canvas绘图,一个例子.
关键就是调整定位的问题,canvas用relative,header和content部分的div元素要用absolute方式定位,top按像素,content的left按5%窗口,效果还不错,如果有不希望发生的覆盖,可以通过z-index调整。
Updated 2018-08-05
这段时间忙忙乱乱,一直没有将财务系统迁移过来,已经一个多月没有更新资产负债表了,趁着得闲,尽快处理下,记录下迁移过程。话说突然觉得有钱还是好啊,如果不在乎每月十几二十刀,也用不着每年迁移一次AWS吧,重新调配环境确实还是很蛋疼的事情。
首先尝试直接运行routine_balance_sheet.py
,按提示安装所需库
sudo pip install httplib2
sudo pip install quandl
安装quandl出错,提示requests不能够卸载:
Cannot uninstall 'requests'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解决办法,保留原有安全装包的情况下安装:
sudo -H pip install --ignore-installed -U ipython
pip install --upgrade google-api-python-client oauth2client
可以执行,但是执行中存在numpy警告。随后发现quandl将所有的exchange rate的数据做了premium权限设定,这下没法用免费的了,查了下发现免费的echange rate API.更换后可用。
Updated 2018-08-03
When I tried to use the realtime SST update in WRF runtime, I met the problem:
None of the following are allowed to be TRUE :
( internal_time_loop .EQ. 1 ) F
( config_flags%grid_fdda .NE. 0 ) F
( config_flags%sst_update .EQ. 1 ) T
( config_flags%all_ic_times ) F
( config_flags%smooth_cg_topo ) F
( config_flags%polar ) F
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: <stdin> LINE: 431
Problems, we cannot have excluded middle data from WPS
delete namelist variable in namelist.wps
process_only_bdy = 5
and rebuild the met_em*
files.
Updated 2018-07-18