团队官网上线

基于Wordpress,在小内存的VPS上搭了一个团队官网(http://PermaLab.nanzt.info),然后花了点时间选了一个合适的模板,前后大概花了一个周末时间。基本内容都有了,想着把这个学期的工作回溯补充进去。我起名叫PermaLab,一方面工作的一大部分是关于多年冻土(Permafrost),所以我们这个团队就是多年冻土的一个研究团队(Lab)。另一个Perma也是Permanent前部分,希望小队伍可以长久壮大,扎根在这些很挑战的领域。这个新网站作为团队整体工作的一个对外口子。后期想着把一些我们工作介绍出来,把一些产生的数据和代码共享出来。

group-website-screenshot-180624

小空间VPS安装Apache和MariaDB (MySQL)内存不够的问题

我的是Linode 1G空间的VPS,CentOS 7系统。上面目前安装了SS、Web(Apache)、MariaDb(MySQL)、PHP、Wordpress等服务。前两天在安装一个WP插件时,突然发现WP提示连接不上数据库。还以为是插件把WP弄掉了,看了一下日志,发现MySQL down了。

所以ssh上去,systemctl start mariadb.service,没成功,查看其log,发现InnoDB out of memory字样的提示。 Continue reading

别急着回家

南昭瑾

不喜欢上学,每天在学校很煎熬,一放学就立刻奔回家,从来不跟同学多呆一秒,也没有什么朋友。10170111.jpg.238

下雨了,没带伞,顶雨往家走,忽然后面有人叫我,转头一看是一个女同学,正拿着伞朝我跑来,说,”干嘛一个人冒雨啊?一起走吧!别淋感冒了。”

一路上,我跟她聊了很多,大到关于梦想,小到关于烦恼。通过谈话,我第一次体会到原来我离同学们那么遥远;第一次了解到原来班级中发生了那么多有趣的事;第一次感受到原来把心事说出那么痛快……

渐渐地,我开始和大集体融为一体。

别急着回家,学会发现家外生活中的快乐。

一个批量将MODIS LST HDF转换为GeoTIFF的工具 v1.02

功能:

  1. 批量转换MODIS地表温度数据(LST)的HDF到GeoTIFF格式
  2. 支持多tiles的mosaic
  3. 支持剪裁(目前只支持指定矩形范围)
  4. 输出指定变量(白天晚上的LST、质量控制、观测时间共6个变量中的若干个)

当前版本 1.02

下载地址见文末。任何问题请向giscn(at)msn.com 报告。 Continue reading

Words to Cindy’s youth 青春寄语

时光如白驹之过隙,我的小宝贝已经长成婷婷少女。

青春充满无限活力和希望,是人生最美好的一个阶段,明确志向,发展兴趣,向前努力,尽情追逐你的梦想。

爱护你的家人和朋友,爱护自己,活出你的快乐,活出你的精彩。

youth1

我目前的vpn方案

VyprVPN用了一年,可访问性和速度都不让我满意,因此没有再续。

Linode买了月费$5 的VPS (购买前搜索一下往往可以找到一些优惠代码,有$10、20不等的优惠码),选用的是Tokyo 2机房,ping的延迟大概是200ms左右,每月1TB的流量,够用了。

在之上安装了CentOS 7,并安装了shadowsocks服务。

Windows上安装了Shadowsocks for win;

IOS上安装的是SsrConnectPro;目前使用情况基本让人满意。

A paper on an application of GRACE gravity data

Cao Y, Nan Z, Cheng G, Zhang L. Hydrological variability in the arid lands of northwest China during 2002-2013. Advances in Meteorology. 2018, 2018(1502472): 1-13. DOI:10.1155/2018/1502472.

Abstract:

The arid region of Northwest China (ANC) has a distinct and fragile inland water cycle. This study examined the hydrological variations in ANC and its three subregions from August 2002 to December 2013 by integrating terrestrial water storage (TWS) anomaly data derived from the Gravity Recovery and Climate Experiment (GRACE) satellite, soil moisture data modeled by the Global Land Data Assimilation System, and passive microwave snow water equivalent data. The results show that the TWS in ANC increased at a rate of 1.7mm/a over the past decade, which consisted of an increasing trend of precipitation (0.12mm/a). Spatially, in the northern ANC, TWS exhibited a significant decreasing trend of −3.64 mm/a ( < 0.05) as a result of reduced rainfall, increased glacial meltwater draining away from the mountains, and intensified human activities. The TWS in southern and eastern ANC increased at a rate of 2.14 ( = 0.10) and 1.63 ( < 0.01)mm/a, respectively. In addition to increasing precipitation and temperature, decreasing potential evapotranspiration in Southern Xinjiang and expanding human activities in Hexi-Alashan together led to an overall increase in TWS. Increased glacier meltwater and permafrost degradation in response to climate warming may also affect the regional TWS balance. The variations in soil moisture, groundwater, and surface water accounted for the majority of the TWS anomalies in southern and easternANC.The proposed remote sensing approach combiningmultiple data sources proved applicable and useful to understand the spatiotemporal characteristics of hydrological variability in a large area of arid land without the need for field observations.

Links: Baidu, Official,

一些win下无法删除的长路径

这些路径在资源管理器里一路点下去,最终提示找不到路径,在cmd下提示 system cannot find the specified path;此外雪上加霜的是这些路径可能还有权限的问题,通过资源管理器里的security下的advance将安全传播到子目录,会提示 cannot enumerate objects in the container类似的提示,cmd下的takeown等也类似有找不到specified path的问题而无法起作用。用我此前开发的removelongpath也无法删除,会提示 access is denied (因为权限不对)。

我天才的试了一下rsync里的sync功能,居然可行!通过 rsync (如deltac)里的sync (即client上没有的server端文件要被删除)来实现删除这些长路径。长路径放到server端。为了解决windows下的权限问题,把deltas的服务设为管理员权限。在客户端使用 –perms选项。

原因大概是因为rsync是个mingw的仿win环境,可以绕过win本身设置的一些限制,比如max path这些。

如何从zcom的zmaker电子杂志中提取图片

需求大概是这么来的:一个毕业照相册用zmaker做成电子的了,看起来很cool,有动画,有同学们的靓照,年轻时也许不知道离别苦,二十年后某天听说某同学不在了,而手头只有这个电子杂志里的有唯一一张其照片,问遍能问的同学,居然都没有其他照片(那个海鸥相机象征身份的年代)。截图当然可行,但说实话分辨率很不理想,尤其原照片还是以前扫描的。所以有了这个需求。

环境:win 10,ZCOM互动杂志 1.0.1.2 (通过查看相册exe文件的属性信息)

方法:

  1. 打开zmaker的exe程序,不关,到 C:\Sandbox\<你的用户名>\test\user\current\AppData\Local\Temp\{一串数字和横线}\,注意时间戳(最新生成的),慢慢可以找到。
  2. 里面有很多文件夹,把这些文件夹拷贝出来,这些文件夹下面是一些main.swf,这个是flash动画,对应着电子杂志里的每一页。
  3. 到百度里搜索 swf extractor 的某个绿色版,打开,将需要的那个main.swf 打开,就可以看到里面的照片,提取出来,保存即可。

Done!

参考 http://blog.sina.com.cn/s/blog_3d8405d50100fplh.html,win10下有所不同。