Simple Is Powerful.
2012-05-18PC&网络

没有评论
17 阅读

网易评论一则

网易图集:美国空军公开F-22A猛禽部队空中加油训练酷照

热门评论一条:

拆迁队陆政委 [网易福建省泉州市网友]:2012-05-18 10:03:38 发表

★★★★★★★★★★=============================
★★★★★★★★★★=============================
★★★★★★★★★★=============================
★★★★★★★★★★=============================
★★★★★★★★★★=============================
=============================================
=============================================
=============================================
=============================================

为Amazon EC2 Instance 设置允许ping

Amazon EC2 的instance 默认是不允许ping 的,要想允许ping,简单几步就可以了——

  1. 登录AWS Management Console, 选择EC2选项卡;
  2. 在左侧导航条中选择NETWORK & SECURITY – Security Groups;
  3. 点选你的Security Groups,下方切换到Inbound 选项卡;
  4. Create a new rule 选择: Custom ICMP rule
    Type选择: Echo request
    Source默认: 0.0.0.0/0  (这样允许所有的ip,也可以指定ip或ip段)
2012-04-03程序猿

没有评论
99 阅读

github 杂乱笔记

创建你的 Blog 仓库 username(请确保跟你的账号名相同).github.com:

$ mkdir username.github.com
$ cd username.github.com

初始化仓库、提交并push到Github:

$ git init
$ git add .
$ git commit -a -m 'init commit.'
$ git remote add origin git@github.com:username/username.github.com
$ git push origin master

继续阅读 »

2012-03-29程序猿

没有评论
84 阅读

[转]java split(“.”);注意事项

如字符串:http://www.vvcc.abc.com:8080/ ,以“.”分割为字符串数组时,方法如下:

String domainNam="http://elgoog.info/";
String[] splitStr = domainNam.split("\\.");

必须经过转义后才能分割,单纯的以domainNam.split(“.”);分割时,结构字符串数组长度为0。

返回顶部