突然想到能否有什么方法知道发出去的某封邮件是否被别人查阅,查了下,有人提到图片挂参的方法可以办到,回想之前IP验证和php自动发邮件,突然想到可以做这么一套东西,每天固定时间统计一下今天发出去的邮件多少被查阅了,然后做个报告发到邮箱。将来撒海网套磁的时候,绝对是利器啊。LOL
说搞就搞:
首先,测试一下php返回图片
参照这个帖子,bingo,原来是改一下http的header就可以。
然后引入访问IP的检测,直接抄13年检测服务器访问沿海自动站IP的程序,调用IP138结果记录。
居然就可以了~给php文件挂个参数标志是哪一个邮件,嗯嗯
最后设置下crontab,每天固定时间把log发到邮箱,bingo~再写一个可以随时访问的查看页面,done~
Some points to be aware:
2D fields, not same by binary output and netcdf (high efficiency) output, one point value missing, might be the polar point. Therefore, *.bin control and *.nc sensitive is not under the same structure.
2D fields work fine under v1.9 of grads. However, 3D fields might meet some trouble. Try to use the “standard” attribution, dimention to tackle this problem. An example from NCEP-DOE dataset:
float level(level) ; level:units = “millibar” ; level:long_name = “Level” ; level:positive = “down” ; level:GRIB_id = 100s ; level:GRIB_name = “hPa” ; level:actual_range = 1000.f, 10.f ; level:axis = “Z” ;
Now we try to setup GFDL dycore model on our Neptune platform. Following steps has been used:
L35: $mkmf -p fms.x -t $template -c "-Duse_libMPI -Duse_netCDF -DUSE_LIMA -DSPMD -DLAND_BND_TRACERS" -a $sourcedir $pathnames /usr/local/include $sourcedir/shared/mpp/include $sourcedir/shared/include /home/yangsong3/soft/mpich314-intel/include /usr/netcdf-4331/include
And mkmf.template.ia64 file
LDFLAGS = -L/usr/local/lib -L/usr/netcdf-4331/lib -L/home/yangsong3/soft/mpich314-intel/lib #-lsma
We comment the “-lsma” flag because it is a flag specific to Cray machine.
Next, we compile again, frequently got this
ifort: '-i_dynamic' not supported
google it, got this
https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/486830
Regarding 1: -i_dynamic (the underscore form) was a option spelling used many many releases ago that was later mapped to -i-dynamic (the hyphen form) and then that form was depreciated in more current releases and it now maps to -shared-intel
So, we change it to -shared-intel, no more warning.
However, when it compiles for a long time (5min), we got error again, lots of:
/home/yangsong3/soft/GFDL_atm_dycores/exp/fv/../../src/shared/mpp/include/mpp_transmit_mpi.h:79: undefined reference to `mpi_recv_'
Then we change the ifort compile flag into mpif90, we got this
/home/yangsong3/soft/GFDL_atm_dycores/exp/fv/../../src/shared/mpp/include/mpp_io_misc.inc:116: undefined reference to `nf_inq_libvers_'
It really sucks.
#Last Edited on 20151004#
We finally stop trying and turn to CAM dynamical core simulation and it works really smooth over the CESM construction.
#Last Edited on 20151114#