摘要: datetime to timespan:time.mktime(datetime.datetime.today().timetuple())string to timespan:since = '2010-1-1'time.mktime(time.strptime(since,"%Y-%m-%d")) 阅读全文
posted @ 2013-02-02 13:48 snowlueng 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 想写这东西很久了,之前因为真的事很多,几乎没有办法去思考问题,工作也不顺。 不顺的原因是,总觉得自己和这个team不合。 前几天CEO和每个IOS的engineer都说了话(感觉好阴险的样子),然后我也有一句说一句。但是,还是没有放开来说,我把这个归咎为中国式教育的恶果:不敢发表自己的意见(or总是埋藏自己的意见)。 在谈话结束后我就有点不甘了,因为这么好的机会,可以充分表达自己意见的机会,就这样放弃了。真心觉得机会是“稍纵即逝”的,也对自己说了,以后在合适的场合一定要展现自己! 好了,说完这些,其实,我感受最深的是在这个team中的冲突太多了。我之前有工作经验,所以接触过的软件组... 阅读全文
posted @ 2013-01-01 21:27 snowlueng 阅读(1183) 评论(0) 推荐(0) 编辑
摘要: iphone4火了之后,我一个冲动,买了个air,就想写ios 的app了。 结果可想而知。 然后,我还是能进到一个创业型公司。我把能找到工作的原因归咎在两点:一、市场对ios程序员需求很刚性。二、我不是毕业生。 第一点是至关重要的。然后我在公司的经历,让我觉得有点意外。 1、公司重视“用户体验”。 我接到的第一个任务就是写一个Twitter消息的个人展示,业务就是:如果你在我们的app上绑定了twitter账号,就可以在一个view上展示某个人的最新10条twitter,以及自己的一些可以公开的个人信息。 这次的开发我觉得难点就在UITableViewCell的动态高度上。但... 阅读全文
posted @ 2012-12-09 19:59 snowlueng 阅读(1662) 评论(3) 推荐(0) 编辑
摘要: http://cocoamanifest.net/articles/2011/12/running-your-ios-app-in-the-simulator-from-the-command-line.htmlabove is for debugupdate:here is for archiveuse xcrun and xcodebuild to package *ipa(show me the introdution) http://miraclei.net/?p=551(show me the app file path:build/.........)http://www.cnbl 阅读全文
posted @ 2012-12-05 02:31 snowlueng 阅读(283) 评论(0) 推荐(0) 编辑
摘要: -(CGSize)dynamicHeightForTextViewWithFont:(UIFont*)s_fontConstrainSize:(CGSize)s_size{//UItextView会有一个padding,为8//详情:http://www.1mima.com/uitextview使用-sizewithfontconstrainedtosizelinebreakmode计算高度不准确的解决方案///维护bmleung@weiwo.comCGSizeadapter_size=CGSizeMake(s_size.width-16,s_size.height);//宽度减去paddin 阅读全文
posted @ 2012-10-17 21:40 snowlueng 阅读(557) 评论(0) 推荐(0) 编辑
摘要: source:http://www.cocoanetics.com/2011/12/sub-projects-in-xcode/translation:http://www.xiaojiayi.com/2012/08/15/xcode中的子项目(译文)/is work! 阅读全文
posted @ 2012-09-26 00:32 snowlueng 阅读(361) 评论(0) 推荐(0) 编辑
摘要: link: http://www.appledoes.com/usb-zte-modem-will-crash-your-snow-leopard-here-is-how-to-fix-it.htmlcontent:Today, we have a customer who have installed the ZTE Modem 626 on her brand new Macbook.The thing is, when she installed it, everything went smooth and no problem found. But, after you reboot 阅读全文
posted @ 2012-09-10 11:47 snowlueng 阅读(287) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/speeding/archive/2012/07/01/2571706.html 阅读全文
posted @ 2012-09-03 18:48 snowlueng 阅读(137) 评论(0) 推荐(0) 编辑
摘要: http://web.student.tuwien.ac.at/~e0225855/linum/linum.html 阅读全文
posted @ 2012-08-26 11:02 snowlueng 阅读(132) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/ylucy/archive/2010/11/24/1886106.htmlhere i need!: 阅读全文
posted @ 2012-08-19 23:44 snowlueng 阅读(152) 评论(0) 推荐(0) 编辑