發表文章

目前顯示的是 7月, 2021的文章

美國西部灌溉農業區現怪圈,其實是高度發達的現代農業

圖片
美國西部灌溉農業區現怪圈,其實是高度發達的現代農業 由 地球趣談 發表于 農業 在美國西部地區高空中看你會發現一個個怪圈,這些怪圈其實體現了美國高度發達的農業機械化。 高空上看美國西部農業區 更接近一些 上圖圓形的就是美國的農場,一個圓形圖案就是一塊農田。國內恐怕沒有這種布局的農田,大多是長方形或長形狀的。這些圓形農田大大小小有很多規格的,比如上圖中4個大的中間就有一個小的。那這些圖案有多大呢?用軟體帶的標尺量了一下,上圖中最大的那個直徑為1600米!面積就有: S=3.14*800*800=200萬平方米=3017畝,所以美國農業人口雖然占總人口比例很低,但是高度的機械化和專業化也使得美國成為世界主要農業出口國。 為什麼要用圓形的農田呢?因為圓形的灌溉最有效率最均勻,那巨型的灌溉長臂有數百尺長,以圓中心為軸,像時針那樣轉,轉一圈,就全部灌溉了一遍。因為太大了轉一圈要好幾天,如果大家有機會到農場參觀,就會驚訝那機器實在太大了。 灌溉長臂 灌溉設施 美國的農業機械化和專業化也是值得我們學習的。

Using truncate to clear log files on UBUNTU

圖片
How to clear log files on UBUNTU? command: truncate -s 0 /var/log/*log the command means let log file's size = 0 truncate --help Usage: truncate OPTION... FILE... Shrink or extend the size of each FILE to the specified size A FILE argument that does not exist is created. If a FILE is larger than the specified size, the extra data is lost. If a FILE is shorter, it is extended and the extended part (hole) reads as zero bytes. Mandatory arguments to long options are mandatory for short options too.   -c, --no-create        do not create any files   -o, --io-blocks        treat SIZE as number of IO blocks instead of bytes   -r, --reference=RFILE  base size on RFILE   -s, --size=SIZE        set or adjust the file size by SIZE bytes       --help     display this help and exit       --version  output version information and exit The SIZE argument is an integer and optional unit (example: 10K is 10*1024). Units are K,M,G,T,P,E,Z,Y (powers of 1024) or KB,MB,... (powers of 1000). SIZE may a