这是一个 Alfred 的 Workflow,是小插件的官方说法。它可以方便地通过股票名称的拼音首字母或代码查询一只在上海或深圳上市的公司股票的最新信息。另外,还可以将一只股票加入到自选列表,方便一次查询多只股票。对于长时间面对电脑,需要关注价格但不能明目张胆地切行情器看盘,又嫌总低头看手机很麻烦的同学来说,这个工具是太合适不过了。当然你需要 MacOSX 来运行 Alfred。
这里记录的是一个门外汉解决使用 urllib2 抓取网页时遇到乱码、崩溃、求助、解决和涨经验的过程。这类问题,事后看来只是个极小极小的坑,不过竟然花去很多时间,也值得记录一下。过程如下:目标:
抓取 http://sports.sina.com.cn/g/premierleague/index.shtml
功能
根据输入的内容框请求数据,并将结果显示在下拉列表中。演示 | Github
截图
这两天收拾屋子翻出了一些老物件儿,自己用不到了,丢了可惜,又不知道谁会需要。以前每每这种时候大概就出于麻烦的考虑一狠心扔掉了,可这次一下子面对这么多东西,总也下不了手。自己附近并没有跳蚤市场这样实体的存在,只得尝试在一些LBS的二手物品交易平台上发布信息,效果并不理想。
[caption id=”” align=”aligncenter” width=”570"]
文章源于经历,始于思绪,落于文字,不提笔则不成文。虽然想要写好文,就像要做好任何事一样,没有捷径,唯有多写,但了解一些经验也能多少在这个过程中起到些辅助作用。下面我从五个方面说说我的体会。
理由
给自己一个写的理由,这将会是坚持不懈的动力。可以是写作带给自己的好处,例如:有些人为了梳理新学的知识;有些人为了去影响他人;有些人只是喜欢写作,因为写作就想写码。而我更多则是为记录和分享。
王淮曾是一个 C++ 方向的后台工程师,在 Facebook 晋升为技术经理。他近几年的中转站是浙大、斯坦福、 Yahoo 及 Facebook。他于 2011 年回国创业至今,目前身为 PE。在浙大期间,他为提高英语成绩和申请学校投入大量精力;在斯坦福时又要为就业而广泛了解行业信息并参与实践、活动和聚会;进入 Yahoo 是为了感受大公司成熟的管理及运作;而来到 Facebook…
难以起笔的 2013 总结早晚还是要起笔的,不过在此之前我一定要大声吼出:“用一生去学习!”对比 2012,可喜的是自己在控制情绪方面又向前迈进了一步,悲剧的是工作上经历了非常大的波折,失意流离了一整年。
年底了,当大家都忙着抢票和置办年货一派回家的喜气,而我还在为证明自己不是废柴写码;当大家计算着自己的年终奖,满意地计划通过怎样的方式犒劳自己一年的辛苦,而我连旁人提到绩效二字时羞得抬不起头唯恐被人问到;当大家展望着来年的事业更上层楼时,我却心里嘀咕着自己会不会又折在这个或下一个项目上最后只能报着箱子离开这个本也没几个人认识的部门。回忆着自己未入公司时的预期和现在的窘迫,回忆着不久…