Focus on Web2.0, Business, Architecture, Agile, Technic and beyond…
Published on 2010-3-6 16:00:00

Published on 2010-3-4 16:00:00

Published on 2010-3-3 16:00:00

Published on 2010-3-2 16:00:00

Published on 2010-2-26 16:00:00

Published on 2010-2-25 16:00:00
- Mac Terminal Shortcuts - ie.brokethe.net
Ctrl-A Move the cursor to the beginning of the command line. Ctrl-E Move the cursor to the end of the command line. Ctrl-E Move the cursor to the end of the command line. Ctrl-B Move the cursor back one character.

Published on 2010-2-23 16:00:00

Published on 2010-2-6 12:59:00 by noreply@blogger.com (Caiwangqin)
Read more: http://chinaonrails.com/topic/view/3671.html

Published on 2009-12-30 11:09:00 by noreply@blogger.com (Caiwangqin)
新版本 P1.cn (ROR + PHP)。
难忘的经历:
1. Beta 技术沙龙 at 奇遇花园咖啡馆
2. Beijing open party at Thoughtworks Beijing Office
3. BeijingonRails at Seravia Beijing Office
生活状况:
朝外SOHO,生活和工作基本在北京东三环京广桥的东西两侧。
走过的城市:
北京,深圳,武汉,浠水
游过的景点:
恭王府,颐和园,深圳大梅沙
最常用的网站:
1. Gmail
2. P1.cn
4. Google Search(Not 谷歌)
5. Google Reader
6. Google Docs
读过的书:
《把时间当朋友》,《藏地密码》,《盗墓笔记》,《股票基础知识》,《货币长城》...
最爱的音乐:
这一年基本没有更新我的音乐库,偶乐听一下还都是老歌。
印象深刻的影视:
深圳益田假日广场:博物馆奇妙夜2(Night at the Museum 2)
北京万达国际电影城:2012
使用的手机:
Google G1 (CyanogenMod v4.2.10.1),准备入手Nexus.

Published on 2009-12-28 14:33:00 by noreply@blogger.com (Caiwangqin)
Marketing/sales planner:
Good communication skill, copywriting skill in Chinese and English
Good on PPT design
Experience in digital marketing or social media marketing is a plus
Sales Manager广告销售经理
Marketing communication/sales background
Good communication skill
Responsible, fast-learner, team worker
English skill and experience in online community ad sales is a plus
Sales Director Shanghai 广告销售总监(上海)
5-6 years experience in online community ad sales, 2-3 years in director level position
Good communication skill in Chinese and English
User Interface Designer(北京)
We are looking for an experienced designer with an eye for perfection.
You need to have a profound understanding about brand image, and how to communicate it through your designs.
We prefer if you have previous experience in doing luxury or fashion related work.
You also need a strong understanding of usability and user experience.
You are highly proficient in Photoshop and preferably also in Illustrator.
Good verbal communication skills in both Chinese and English is heavily appreciated.
If you are interested don't hesitate to contact our HR department at +86 10 5820 1090 or send your CV to hr@p1.cn for more information and book time for an interview.

Published on 2009-12-24 11:35:00 by noreply@blogger.com (Caiwangqin)

Published on 2009-12-21 16:11:00 by noreply@blogger.com (Caiwangqin)

Published on 2009-12-16 17:26:00 by noreply@blogger.com (Caiwangqin)
Ruby encrypt decrypt
http://coderay.rubychan.de/rays/show/6287
require 'openssl'
require 'base64'
def encipher(data_to_encode)
cipher = OpenSSL::Cipher::Cipher.new("des-ede3-cbc")
key = "secretkey"
cipher.encrypt(key)
encoded_data = cipher.update(data_to_encode)
encoded_data cipher.final
return Base64.encode64(encoded_data)
end
def decipher(encoded)
encoded = Base64.decode64(encoded)
cipher = OpenSSL::Cipher::Cipher.new("des-ede3-cbc")
key = "secretkey"
cipher.decrypt(key)
encoded_data = cipher.update(encoded)
encoded_data cipher.final
return encoded_data
end
PHP encrypt decrypt
http://coderay.rubychan.de/rays/show/6288
function getkeyiv($key_size, $iv_size, $key, $iv='') {
if ($iv == '') {
$iv = 'OpenSSL for Ruby rulez!';
}
$iv = substr($iv,0,$iv_size);
$gen = '';
do {
$gen = $gen.md5($gen.$key.$iv,true);
} while (strlen($gen)($iv_size+$key_size));
$o[0] = substr($gen,0,$key_size);
$o[1] = $iv; //this is not the generated IV,
//just the original "salt" cut to the required size
return $o;
}
function trimpadding($str) {
if (ord($str[strlen($str)-1]) 9) {
return rtrim($str,$str[strlen($str)-1]);
} else {
return $str;
}
}
function encipher($data_to_encode){
$key = 'secretkey';
$td = mcrypt_module_open(MCRYPT_TRIPLEDES, '', MCRYPT_MODE_CBC, '');
$iv_size = mcrypt_enc_get_iv_size($td);
$key_size = mcrypt_enc_get_key_size($td);
$genkey = getkeyiv($key_size, $iv_size,$key);
if (mcrypt_generic_init($td,$genkey[0],$genkey[1]) != -1) {
$encoded_data = mcrypt_generic($td, $data_to_encode);
}
mcrypt_generic_deinit($td);
mcrypt_module_close($td);
return base64_encode($encoded_data);
}
function decipher($encoded) {
$key = 'secretkey';
$decrypted='';
$enc = base64_decode($encoded);
$td = mcrypt_module_open(MCRYPT_TRIPLEDES, '', MCRYPT_MODE_CBC, '');
$iv_size = mcrypt_enc_get_iv_size($td);
$key_size = mcrypt_enc_get_key_size($td);
$genkey = getkeyiv($key_size, $iv_size,$key);
if (mcrypt_generic_init($td,$genkey[0],$genkey[1]) != -1) {
$decrypted = mdecrypt_generic($td, $enc);
}
mcrypt_generic_deinit($td);
mcrypt_module_close($td);
return trimpadding($decrypted);
}
?>

Published on 2009-12-7 11:54:00 by noreply@blogger.com (Caiwangqin)

Published on 2009-12-2 16:48:00 by noreply@blogger.com (Caiwangqin)

Published on 2009-11-30 17:34:00 by noreply@blogger.com (Caiwangqin)
Today, we launched new splash screen page for P1.cn .

Published on 2009-11-27 16:20:00 by noreply@blogger.com (Caiwangqin)
http://www.p1.cn/market/yahoo/,
之前我们还上线了 淘宝 男人http://www.p1.cn/taobao/man/

Published on 2009-11-8 19:42:00 by noreply@blogger.com (Caiwangqin)

Published on 2009-9-1 10:57:00 by noreply@blogger.com (Caiwangqin)
受此启发,我准备对中国 Ruby / Rails 优秀人物使用同样的问答对话方式,看看他们是怎样做到的。
以下是问题,如果你希望分享你的经验,请回答以下问题,发布到ChinaonRails社区,或我的Email(jesse.cai(at)gmail.com)中,同时也非常欢迎参与者邀请中国 Ruby / Rails 优秀人物参与。
1. 请简单介绍一下你自己,你目前的状态及对短期目标的打算,留下Blog、Twitter等。
2. 你是怎样找到你的第一个Ruby相关的工作的?
3. 你是在哪里和怎样搜索工作机会?你能给我一些最好的方法找到Ruby相关工作的建议吗?
4. 你能给一个没有完整项目展示的Ruby新手一些建议吗?
5. 你可以说说怎样做可以让现在比过去更好的吗?主要是关于使用Ruby工作、客户、如何寻找好的客户方面。很多人梦想着现在比过去好,将来比现在好,所以请写下任何你关于超越过去的想法。
6. 你可以推荐一些你认为将帮助一个程序员生活得更好的书籍、网站、秘诀吗?
7. 你一周工作多长时间?你怎样保持工作效率和精力集中呢?
8. 你怎样管理你的工作空间?你在工作时使用哪些工具?
9. 怎样成为一个成功和有用的程序员?
10. 什么是一个程序员应该知道的?
官方邀请链接:http://chinaonrails.com/topic/view/3337/1.html
已经回复的人有:
中国 Ruby / Rails 群英谱 - gigix
中国 Ruby / Rails 群英谱 - Robin Lu
中国 Ruby / Rails 群英谱 - Eric Sun
中国 Ruby / Rails 群英谱 - IceskYsl
中国 Ruby / Rails 群英谱 - saberma
中国 Ruby / Rails 群英谱 - Dave Liu
中国 Ruby / Rails 群英谱 - dongbin
中国 Ruby / Rails 群英谱 - Cai Li
中国 Ruby / Rails 群英谱 - Daniel Lv
中国 Ruby / Rails 群英谱 - 404
中国 Ruby / Rails 群英谱 - zhangxue
中国 Ruby / Rails 群英谱 - Rui Ma

Published on 2009-7-31 17:24:00 by noreply@blogger.com (Caiwangqin)
以下是我记录的刘建国先生回答提问的内容:
创业团队怎样留住人才?
关键是要让团队成员相信这个产品是有价值的,百度当年是在大家都认为Web search已经Game over的情况下开始做的,但团队相信越来越多的互联网内容,一定需要一个好的搜索工具。一个创业项目要成功,需要团队成员有很深的Believe. 另外团队建设中的“选,育,用,留”中的留人,有一个很重要的一点是要清除不合适的团队成员,清除不合适的团队成员,是对团队其他成员的保护。
爱帮网的竞争对手是谁?
刘建国回答说,爱帮网的竞争对手是Google, 还分别根据Google的三个战略重点:Integrated search, Map,Android. 和Bing的四个垂直搜索:Product, Health, Local, Travel.分析本地搜索是大家都关注的重点市场。(但我觉得可能酷讯,大众点评等才是爱帮更直接的竞争对手,虽然挑战Google会显得更有抱负。)
团队绩效和QA如何做?
对于Engineer的Performance评估的确是有一定难度,一般按Project进行,还有季度KPI.QA主要是两个方面,一是产品测试,二是对过程的QA,主要体现在对过程的定义和执行,不管是选择XP还是Scrum都是为了让团队产出更有质量和高效。因为互联网软件有更高的对Bug的容忍度,在开发人员和测试人员的配比上一般是1:5,或1:3.而传统软件开发会更高,微软是1:1.

Published on 2009-7-30 16:22:00 by noreply@blogger.com (Caiwangqin)
我们在P1页面右上角增加了"在线好友"功能,无论你正在浏览哪个页面都可以轻松知晓哪些好友在线。而且,给好友发线上消息也变得更容易了!欢迎体验。

Published on 2009-7-28 11:48:00 by noreply@blogger.com (Caiwangqin)

Published on 2009-7-23 10:22:00 by noreply@blogger.com (Caiwangqin)

Published on 2009-7-21 13:30:00 by noreply@blogger.com (Caiwangqin)

Published on 2009-7-15 16:11:00 by noreply@blogger.com (Caiwangqin)
发布这篇Blog所使用到的工具:Blogger, IntenseDebate, FTP Server, Firefox + Tor.

Published on 2009-7-14 10:15:00 by noreply@blogger.com (Caiwangqin)
Resources:
http://www.infoq.com/news/2009/06/Twitter-Architecture
http://blog.evanweaver.com/articles/2009/03/13/qcon-presentation/
http://highscalability.com/scaling-twitter-making-twitter-10000-percent-faster?page=1

Published on 2009-7-2 11:18:00 by noreply@blogger.com (Caiwangqin)

Published on 2009-6-29 11:39:00 by noreply@blogger.com (Caiwangqin)

Published on 2009-5-25 11:54:00 by noreply@blogger.com (Caiwangqin)

这是第四期Beta技术沙龙交流会,也是人到的最多的一次,抓虾的徐易容也到了,他说他现在感兴趣的领域是3G.
tinyfool 讲的 iPhone OS 开发简介,是很好的入门指导,尤其是Interface Builder要把对象和动作拖拉关联起来,这点很诡异,看书上没有这么直观,黄冬是这么认为的。所以如果要开发iPhone软件,一定要把官方的所有开发视频都看一遍,一个也不要拉。
robinlu @ IN-SRC Studio 是有 iPhone 软件在卖钱的,他分享的 iPhone开发经验谈 重点讲了软件人员要保证发布的程序有质量,一定要注重内存管理,移动设备必竟然是PC,内存资源是相当有限的,如果内存管理不好,当发生Memory leak时就会被系统kill掉,软件就crash。另外,以中国程序员的身份,使国内信用卡发布iPhone程序,卖得的钱是一定可以拿到手的,这是robinlu说的。(有参会者提醒:最好是招商银行,把作者位置设为香港)
我上周末为gPhone做的简单的Countdown Board发布到Android Market上去后,24小时内也有超过200次下载,80%人保留使用。可见移动设备上的软件是非常受欢迎的,按统计显示,目前iPhone+iPod的用户基数是gPhone的10倍,iPhone的软件将会更有市场。
当然,如果在未来Android手机市场规模扩大,相信也会有很多的iPhone开发作者,转到gPhone开发。从Objective-C转移到Java, 对于有经验的程序开发人员,不是很困难。而J2ME之类的跨平台,因为要实现跨越,它要牺牲很多平台本身的特性。
顺便提一下,Android Market发布程序现在是没有审核的,我注册开发者账号,付款,上传程序,然后使用gPhone打开Market下载安装,30分钟之内就完成了。而iPhone注册开发者账号要审核,发布程序也要审核,如果要开发iPhone软件盈利,要提前注册好账号。Android开发者账号是$25, iPhone开发者账号分为个人和公司两种,个人是99$/年,公司是$399/年。
移动开发不是很复杂,祝大家发财。
本期的演讲文稿已经发布:http://twitter.com/betasalon
@tinyfool 的"iPhone OS开发简介" http://tinyurl.com/pztuge
@robinlu 的iPhone开发经验谈 http://bit.ly/gXnTA ,尤其是 @robinlu 的文稿,后面有丰富的参考资料.

Published on 2009-5-23 23:16:00 by noreply@blogger.com (Caiwangqin)
Widget support: you can add Countdown board widget to your desktop, then you can click the icon to see detail.
this application already in Android Market, you can install it through Market for your Gphone.

Published on 2009-4-27 21:58:00 by noreply@blogger.com (Caiwangqin)
关于沙龙:blogbeta技术沙龙由一群技术人员发起并参与,旨在以技术的视角看待社会、互联网和未来,以务实精神深化交流,促进创新。
参与人员:最大的前提是技术出身,第二个要求是写blog。需要成员积极参加现场沙龙聊天;如有可能对话题通过blog保持跟进关注。
参与方式:http://club.blogbeta.com/ (用代理可以打开)网上报名或直接现身沙龙,参与免费,点单另付。

Published on 2009-3-29 22:03:00 by noreply@blogger.com (Caiwangqin)
我在OpenParty的随意调侃5分钟上向大家推荐了P1卡,就反应情况来看,技术圈里的朋友好像对此没多大兴趣,虽然技术人员也过夜生活,但大多在电脑前,不在夜店。以下是手机之家新平台介绍及架构分享的PPT, 感觉设计上比较山寨,但可能实用。
jackyz 在介绍实时web应用(game)中间件时提到启动两个memcached服务,可以将其中一个配置成备份,这个好像memcached配置还不支持,有这样使用memcached的朋友吗?








Caiwangqin








