MetaPost Previewer by Troy Henderson

来源: MetaPost Previewer by Troy Henderson

path pat[];
pair p[];
u=10pt;
h=4u; w=8u;
pat.0=(0,0)–(w,0)–(w,h)–(0,h)–cycle;
pat.1=(w/2,0)–(w/2,h);
z1=(.1w,h); z2=(.4w,h); z3=(.7w,h); z4=(.9w,h);
z5=z1-h*up; z6=z2-h*up; z7=z3-h*up; z8=z4-h*up;

pat.2=z2{dir -90}..z3{dir 90};
pat.3=z5{dir 85} .. tension 2 .. z7{dir -90};
pat.4=z1–z6;
pat.5=z4–z8;

pickup pencircle scaled 3pt;
dotlabels.top(1,2,3,4);
drawdot(z5); drawdot(z6);drawdot(z7);drawdot(z8);
pickup pencircle scaled 1pt;
draw pat.0;
draw pat.1  dashed evenly;
draw pat.2; draw pat.3; draw pat.4; draw pat.5;

Raspiberry Pi安装minidlna1.1.4并支持rmvb

首选参考1编译安装1.1.4.
1. 卸载掉1.0.24

2. 添加源:echo "deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free" | sudo tee -a /etc/apt/sources.list, 并更新源:sudo apt-get update
3. 安装编译环境依赖包:sudo apt-get build-dep minidlna -y, 你也可以手动安装:
sudo apt-get install libjpeg-dev libsqlite3-dev libexif-dev libid3tag0-dev libvorbis-dev libflac-dev -y
4. 下载minidlna1.1.4源码:wget http://sourceforge.net/projects/minidlna/files/minidlna/1.1.4/minidlna-1.1.4.tar.gz并解压:tar -xvf minidlna-1.1.4.tar.gz, 然后切换到目录:cd minidlna-1.1.4
Continue Reading