总觉得应该写些什么,但总是无处下笔
file:/etc/network/interface
auto eth0
auto eth0:1
auto eth0:2
iface eth0 inet static
address 192.168.1.201
netmask 255.255.255.0
gateway 192.168.1.1
network 192.168.1.0
broadcast 192.168.1.255
iface eth0:1 inet static
address 192.168.83.201
netmask 255.255.255.0
gateway 192.168.83.1
network 192.168.83.0
broadcast 192.168.83.255
iface eth0:2 inet static
address 192.168.115.201
netmask 255.255.255.0
gateway 192.168.115.1
network 192.168.115.0
broadcast 192.168.115.255
当然还可以用ifconfig设置,不过reboot后会失效。
以后不用连上Lan,也可以方便地和vmware里的linux通信了:)
function objectClone(obj,preventName){
if((typeof obj)==’object’){
var res=(!obj.sort)?{}:[];
for(var i in obj){
if(i!=preventName)
res[i]=objectClone(obj[i],preventName);
}
return res;
}else if((typeof obj)==’function’){
return (new obj()).constructor;
}
return obj;
}
同事的作品:)
生成messages.po
xgettext *.php
生成messages.mo
msgfmt messages.po
po是文本文件,保存了两种文件的映射关系,格式为:
msgid “English”
msgstr “英文”
mo是二进制文件,应该是用来提升检索速度的
参考:
http://man.chinaunix.net/linux/lfs/htmlbook/appendixa/gettext.html
近期评论