19

总觉得应该写些什么,但总是无处下笔

08

99% mispelling

08

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通信了:)

07


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;
}

同事的作品:)

06

似乎世上的东西都是要用代价换取的,
而对个人来说,最常用的代价就是时间。

每次翻看那些接近1000页的计算机书籍的时候,
我就有这样的感觉。

05

生成messages.po
xgettext *.php

生成messages.mo
msgfmt messages.po

po是文本文件,保存了两种文件的映射关系,格式为:
msgid “English”
msgstr “英文”

mo是二进制文件,应该是用来提升检索速度的

参考:

http://man.chinaunix.net/linux/lfs/htmlbook/appendixa/gettext.html

preload preload preload

无觅相关文章插件,快速提升流量