不知道什么时候再看


> "We also weren't sure if we would be able hire top talent if we chose Go, but we soon found out that we could get top talent because we chose Go."

I feel[1] that a smart/talented C/C++/anything developer can go from someone who has never seen or heard of golang to a proficient and productive Go developer in a matter of a few weeks, maybe even _days_, if not less.
That's how long it takes to go through the following materials (and fav some for later reference) and play with the language a bit.
http://golang.org/pkg/ - use as reference
And a some more similar things that you can mostly get to from golang.org site. The beauty of how concise the language and even its website are, is that you can literally just go through everything there one thing after another.
[1] This is my personal opinion based on playing with go the last few weeks/months. I'd love to verify this theory. It's not yet the primary language in which I do things in (I use C++11 atm), but for all my side tasks[2] it proved to be indispensable. And I found it very easy to pick up. I can't wait until I start doing all my work in Go, that will be a true test of its productivity efficiency.

l5g

l5g 的 官方地址是  l5g 以后都会把更新放到那里

寻找可用ip 或速度快的ip

现在网站都有很多服务器负载均衡,GFW封锁有时并没有block掉所有ip,可以通过

http://just-ping.com 这个网站找到网站的很多ip

格式如
 Location Result min. rrt avg. rrt max. rrt IP 
 Singapore, Singapore: Okay  2.0 2.7 4.3 125.56.219.136 
 Amsterdam2, Netherlands: Okay  0.8 0.9 1.0 92.123.66.226 
 Florida, U.S.A.: Okay  4.4 4.6 5.0 65.32.34.56 
 Amsterdam3, Netherlands: Okay  0.7 0.9 1.0 92.123.66.226 
 Hong Kong, China: Okay  2.7 2.9 3.1 63.150.131.147 
 Sydney, Australia: Okay  0.4 0.8 2.6 60.254.186.26 
 München, Germany: Okay  1.5 1.6 1.8 84.53.146.30 
 Cologne, Germany: Okay  4.8 5.0 5.5 92.122.212.67 
 New York, U.S.A.: Okay  4.0 4.2 4.4 96.17.156.16 
 Stockholm, Sweden: Okay  5.1 5.1 5.3 92.123.155.59 

awk ' {print $NF}' 1.txt  就可以把所有ip提取出来
然后批量ping一下,比较响应时间即可. 修改hosts


lvs 学习总结

lvs,(linux virtual server)

服务器集群系统, 透明性, 性能, 高可用性, 可管理性, 可编程性.

三种ip负载均衡技术
VS/NAT 网络地址转换
调度器进行地址重写

VS/TUN ip 隧道
隧道技术

VS/DR   直接路由
改写请求报文的MAC地址

lvs集群的通用体系结构
负载调度器
服务器池
共享存储

调度器是服务器集群的唯一入口点,它可以采用ip负载均衡技术,基于内容请求分发技术,或者两者相结合.

这里有篇文章介绍配置lvs http://os.51cto.com/art/200701/39205.htm


http://www.linuxvirtualserver.org/zh/index.html

几个常用的命令

banner
basename 获取脚本的名字不错
dd
du -sh / 查看整个系统占用了多少空间
egrep 与grep相比的缺点是?
nice
nohub
script usage.txt 记录操作
strings /bin/passwd
uuencode uudecode

vmware player + gentoo 安装笔记

现在尝试习惯记载软件安装笔记,免得以后重复做的时候麻烦.

虚拟机装习惯就用官方的minimal livecd,启动过程中会把加载的驱动高亮显示,比如
Mouse is ImPS/2 Generic Wheel Mouse
声卡 driver = snd_ens1371
videocard  VMware SVGA II Adapter
pcnet32

开启远程登录
cat /etc/motd
/etc/init.d/sshd start
passwd root

准备分区 文件系统
cfdisk fdisk
mkfs. mkswap swapon

支持中文
/etc/env.d/
环境变量

LANG="en_US.UTF-8"
LC_COLLATE="C"


教育网比较快的镜像
http://ftp.sjtu.edu.cn/sites/gentoo/

几个要注意的问题
按照handbook安装一般没什么问题,内核编译的时候选好驱动就可以了,scsi
livecd把硬盘识别为hda, 后来系统会识别成sda
vmware player 进入bios设置的快捷键是F2

虚拟机里装gentoo可以当cygwin用,所以,use 里 "-X" 算了.




http://en.gentoo-wiki.com/wiki/VMware_Guest

vmware player 与 virtual box

在win 7 系统里两个都装了后,vmware player的桥接模式就一直有问题了.
vmware player本来有个vmnetcfg.exe,用这个后就可以发现由于虚拟网卡被桥接了之类的所以就不能上网了,vmnetcfg.exe现在默认没有安装出来,要用 /e 选项 解压出来
VMware-player-3.1.0-261024.exe /e ./vmware

一般喜欢用桥接,双向访问都方便.putty上去,复制粘贴什么的都有了.

http://blog.csdn.net/leehq/archive/2009/12/25/5077654.aspx