hg abort: error: Name or service not known错误解决

把目标域名绑定到 hosts。

 

失望?它的确有效。

Posted in 工作, 杯具 | Tagged , | Leave a comment

jQuery.each break & continue

We can break the $.each() loop at a particular iteration by making the callback function return false. Returning non-false is the same as a continue statement in a for loop; it will skip immediately to the next iteration. via

Posted in jquery | Tagged , , | Leave a comment

当mbp无法自动连接隐藏的SSID时

System Preference -> Network -> Advance

将隐藏的SSID移到最上面。bing!

Posted in 杯具 | Tagged , | Leave a comment

10X 员工

我要成为10X员工。
10X 员工的效率,所创造的价值,是普通员工的10倍。

Posted in Uncategorized | Leave a comment

deleted

deleted by GGGG

Posted in Uncategorized | Leave a comment

config vsftpd On Amazon EC2

最近amazon提供了free tier.鄙人注册一个玩玩。期间遇到ftp的问题,通过万能的god,不,万能的google找到了答案。嗯,也许是万能的god指引下完成的google。记一下,以备忘。

环境:ami-c2a255ab ,ubuntu 10.04 server 32bit ,带Elastic IP

$sudo apt-get install vsftpd

$sudo vim /etc/vsftpd

在 listen =YES 下面加

  1. pasv_address=x.x.x.x (你的Elastic IP)
  2. pasv_min_port=2048
  3. pasv_max_port=2070

添加防火墙端口

20-21 0.0.0.0/0

2048-2070 0.0.0.0/0

Posted in aws | Tagged | Leave a comment

鸟文学习:人民网:中国人民是不会上当的

人民网:中国人民是不会上当的

意见如下:

1.政府是应该关在笼子里的。

2.不可以收税又收费,还他×的不告诉我怎么花的。

3.请问如果一定要你当中国人,你愿意出生在台湾呢?还是台湾呢?

PS:该发生的还是会发生。

Posted in Uncategorized | Leave a comment

Django 0.96 错误TemplateDoesNotExist at /admin/ 的处理

It seems the Django installation (pre0.97) on Windows does not copy all the required files into the Python site-packages directory.
好像是因为django安装过程没有把所有需要的文件复制过到Python的 site-packages目录。
To correct this, just copy the following directories from the django source into their corresponding Python directories.
要纠正这个,只要手工把这些文件从django安装包复制到相应的目录就可以了。
For example on my computer with Python 2.5
<Django sources from subversion or tar archive>\django\contrib\admin\media to C:\Python25\Lib\site-packages\django\contrib\admin\media
and
<Django sources from subversion or tar archive>\django\contrib\admin\templates to C:\Python25\Lib\site-packages\django\contrib\admin\templates

Posted in Uncategorized | Tagged , | Leave a comment

mac 特殊字符快捷键

Symbols With the “Option / ALT” Key Pressed

Option and ` = `
Option and 1 = ¡
Option and 2 = ™
Option and 3 = £
Option and 4 = ¢
Option and 5 = ∞
Option and 6 = §
Option and 7 = ¶
Option and 8 = •
Option and 9 = a
Option and 0 = o
Option and – = –
Option and = = ≠
Option and q = œ
Option and w = ∑
Option and e = ′
Option and r = ®
Option and t = †
Option and y = ¥
Option and u = ¨
Option and i = ˆ
Option and o = ø
Option and p = π
Option and [ = “
Option and ] = ‘
Option and \ = «
Option and a = å
Option and s = ß
Option and d = ∂
Option and f = ƒ
Option and g = ©
Option and h = ˙
Option and j = ∆
Option and k = ˚
Option and l = ¬
Option and ; = …
Option and ‘ = æ
Option and z = Ω
Option and x = ≈
Option and c = ç
Option and v = √
Option and b = ∫
Option and n = ˜
Option and m = μ
Option and , = ≤
Option and . = ≥
Option and / = ÷

Posted in Uncategorized | Tagged | Leave a comment

周报的意义-摘自网易相册负责人的blog

周报是 上级了解你的一个主要的通道,避开同事,直接让boss了解你的想法.boss很忙,一般没空和你单独聊.而开会的时候你总不好意思报道你心里细腻的想法.
周报的格式一般三部分,完成的工作进度,计划,感慨.

在职场中,有一条冷酷定律,叫做“如果主管不知道你做了某件事情,相当于你就没有做过这件事情。”听上去不近人情,其实完全符合实用逻辑。

Posted in 工作 | Leave a comment