Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

666 lines (307 sloc) 17.09 kb
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>程序猎人的博客</title>
<meta name="author" content="程序猎人">
<meta name="description" content="东京玩具展(東京おもちゃショー)是一年一度的日本玩具界活动,本年度的玩具展是2012-06-14到2012-06-17,前两天是商家活动,后两天是对民众开放。 昨天,我跟妻子一起去看了一下,总的感觉是眼睛不够、时间不够、体力不够、钱不够…… ">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="http://programus.github.com">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="/javascripts/ender.js"></script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
<link href="/atom.xml" rel="alternate" title="程序猎人的博客" type="application/atom+xml">
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-10843258-3']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body >
<header role="banner"><hgroup>
<h1><a href="/">程序猎人的博客</a></h1>
<h2>程序、小说、视频、机器人……今后还会有什么?</h2>
</hgroup>
</header>
<nav role="navigation"><ul class="subscription" data-subscription="rss">
<li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
</ul>
<form action="http://google.com/search" method="get">
<fieldset role="search">
<input type="hidden" name="q" value="site:programus.github.com" />
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
</form>
<ul class="main-navigation">
<li><a href="/">Blog</a></li>
<li><a href="/about/" title="程序猎人是谁,不是谁/什么">About</a></li>
<li><a href="/blog/archives">Archives</a></li>
</ul>
</nav>
<div id="main">
<div id="content">
<div class="blog-index">
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/06/17/tokyo-toys-show/">东京玩具展2012</a></h1>
<p class="meta">
<time datetime="2012-06-17T14:38:00+09:00" pubdate data-updated="true">2012-06-17</time>
</p>
</header>
<div class="entry-content"><p>东京玩具展(東京おもちゃショー)是一年一度的日本玩具界活动,本年度的玩具展是2012-06-14到2012-06-17,前两天是商家活动,后两天是对民众开放。</p>
<p>昨天,我跟妻子一起去看了一下,总的感觉是眼睛不够、时间不够、体力不够、钱不够……</p>
</div>
<footer>
<a rel="full-article" href="/blog/2012/06/17/tokyo-toys-show/">Read on &rarr;</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/05/26/coffee-mocha-coverage-node-under-windows/">在Windows上使用mocha对基于Node.JS的服务器端CoffeeScript进行测试并通过jscoverage生成覆盖率报告</a></h1>
<p class="meta">
<time datetime="2012-05-26T22:00:00+09:00" pubdate data-updated="true">2012-05-26</time>
</p>
</header>
<div class="entry-content"><p>最近在捣鼓一个基于<a href="http://nodejs.org" title="Node.JS">Node.JS</a>的东西,语言自然是JavaScript了。但后来发现了<a href="http://coffeescript.org/" title="CoffeeScript">CoffeeScript</a>,发现确实简便很多,于是变节到了<a href="http://coffeescript.org/" title="CoffeeScript">Coffee</a>阵营。</p>
<p>写了两个小模块,忽然想到要测试。最初找到了<a href="http://pivotal.github.com/jasmine/" title="Jasmine">Jasmine</a>,后来又发现了<a href="http://visionmedia.github.com/mocha/" title="mocha">mocha</a>。经过一番比较斟酌,觉得既然配咖啡(<a href="http://coffeescript.org/" title="CoffeeScript">Coffee</a>),自然还是得摩卡(<a href="http://visionmedia.github.com/mocha/" title="mocha">mocha</a>)。所以最终决定使用<a href="http://visionmedia.github.com/mocha/" title="mocha">mocha</a>来做测试工具。</p>
<p>好吧,实际原因是在<a href="http://visionmedia.github.com/mocha/" title="mocha">mocha</a>的主页上看到它支持代码覆盖率检查。后来经过各种折腾才总算搞定了这个覆盖率检查以及报告的查看问题。</p>
<p>其实,这一切在Linux上应该是非常简单的,但我手上只有Windows,所以一波三折。介于网上相关的信息有些零散,并且不够傻瓜,这里做个总结,也算给自己留个笔记吧。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2012/05/26/coffee-mocha-coverage-node-under-windows/">Read on &rarr;</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/03/26/draw-something/">Draw Something</a></h1>
<p class="meta">
<time datetime="2012-03-26T21:11:00+09:00" pubdate data-updated="true">2012-03-26</time>
</p>
</header>
<div class="entry-content"><p>昨天晚上经介绍,认识了一个新游戏——Draw Something。当时就迷上了。现在还在玩……</p>
</div>
<footer>
<a rel="full-article" href="/blog/2012/03/26/draw-something/">Read on &rarr;</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/03/25/js-game-memory/">Javascript游戏——Memory</a></h1>
<p class="meta">
<time datetime="2012-03-25T17:47:00+09:00" pubdate data-updated="true">2012-03-25</time>
</p>
</header>
<div class="entry-content"><p>前段时间看了《JavaScript语言精粹》,一直想实践一下。于是利用了3、4天的时间做了一个记忆力游戏——<a href="http://programus.appinn.me/jsgames/memory-single.html">Memory</a>。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2012/03/25/js-game-memory/">Read on &rarr;</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/03/14/put-two-softwares-onto-appinn-dot-me/">在programus.appinn.me上放了两个软件</a></h1>
<p class="meta">
<time datetime="2012-03-14T22:57:00+09:00" pubdate data-updated="true">2012-03-14</time>
</p>
</header>
<div class="entry-content"><p>大概两个星期前,跟<a href="http://appinn.com" title="小众软件">小众软件</a>申请了<a href="http://appinn.me">appinn.me</a>的域名——<a href="http://programus.appinn.me">programus.appinn.me</a>。</p>
<p>说起来有点对不住<a href="http://appinn.com" title="小众软件">小众</a>,因为各种原因,一直没腾出时间去打点。今天终于抽出了点时间,去放了两个以前做的软件——</p>
</div>
<footer>
<a rel="full-article" href="/blog/2012/03/14/put-two-softwares-onto-appinn-dot-me/">Read on &rarr;</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/03/07/add-table-data-css-for-octopress/">为Octopress追加数据表格的CSS</a></h1>
<p class="meta">
<time datetime="2012-03-07T21:56:00+09:00" pubdate data-updated="true">2012-03-07</time>
</p>
</header>
<div class="entry-content"><p>昨天恢复了一个<a href="/blog/2010/11/15/tiny-countdown/">旧博客</a>,里面包含了一个数据表格。</p>
<p>但<a href="http://octopress.org" title="Octopress">Octopress</a>的默认表格是不具有边框的,在看数据表格时会很难看。</p>
<p>于是,对<a href="http://octopress.org" title="Octopress">Octopress</a>做了一番剖析,追加了针对数据表格的CSS格式,并允许在博客的内容文件中选择是否使用数据表格。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2012/03/07/add-table-data-css-for-octopress/">Read on &rarr;</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/03/04/share-weibo-button/">为Octopress追加[分享到微博]按钮</a></h1>
<p class="meta">
<time datetime="2012-03-04T20:11:00+09:00" pubdate data-updated="true">2012-03-04</time>
</p>
</header>
<div class="entry-content"><p>昨天加上了<a href="http://weibo.com" title="新浪微博">微博</a>的侧边栏。今天发现每篇微博下面还有一个<code>Tweet</code>按钮。还是那句话,在<a href="http://zh.wikipedia.org/wiki/%E9%98%B2%E7%81%AB%E9%95%BF%E5%9F%8E" title="叹息之墙">墙</a>后面,<a href="http://twitter.com/" title="Twitter">Twitter</a>用不到,所以<a href="http://weibo.com" title="新浪微博">微博</a>的分享按钮不可缺少。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2012/03/04/share-weibo-button/">Read on &rarr;</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/03/03/add-weibo-sidebar-into-octopress/">为Octopress博客追加新浪微博侧栏</a></h1>
<p class="meta">
<time datetime="2012-03-03T21:43:00+09:00" pubdate data-updated="true">2012-03-03</time>
</p>
</header>
<div class="entry-content"><p>配置好了基于Octopress的博客后,发现其右侧边栏(位置自然根据主题会有不同)上有<a href="http://twitter.com/" title="Twitter">Twitter</a>等内容。因为<a href="http://zh.wikipedia.org/wiki/%E9%98%B2%E7%81%AB%E9%95%BF%E5%9F%8E" title="叹息之墙">墙</a>的原因,<a href="http://twitter.com/" title="Twitter">Twitter</a>始终使用起来不够方便,所以还是<a href="http://weibo.com" title="新浪微博">新浪微博</a>用的更多。于是,就想在博客里弄一个<a href="http://weibo.com" title="新浪微博">微博</a>的侧边栏。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2012/03/03/add-weibo-sidebar-into-octopress/">Read on &rarr;</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/03/01/first-post-by-octopress/">第一篇用Octopress生成的日志</a></h1>
<p class="meta">
<time datetime="2012-03-01T21:31:00+09:00" pubdate data-updated="true">2012-03-01</time>
</p>
</header>
<div class="entry-content"><p>先是在知乎上发现了一个叫<a href="http://www.zhihu.com/people/lv-kun" title="吕坤的知乎主页">吕坤</a>的人,顺着简介发现了<a href="http://lvkun.github.com/" title="吕坤的github博客">他的博客</a>。然后了解到可以使用github来写博客,觉得很好玩,就打算试一试。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2012/03/01/first-post-by-octopress/">Read on &rarr;</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2011/01/24/what-is-this-machine/">这是什么机器?</a></h1>
<p class="meta">
<time datetime="2011-01-24T21:32:00+09:00" pubdate data-updated="true">2011-01-24</time>
</p>
</header>
<div class="entry-content"><p>请看视频(记得开声音):</p>
</div>
<footer>
<a rel="full-article" href="/blog/2011/01/24/what-is-this-machine/">Read on &rarr;</a>
</footer>
</article>
<div class="pagination">
<a class="prev" href="/blog/page/2/">&larr; Older</a>
<a href="/blog/archives">Blog Archives</a>
</div>
</div>
<aside class="sidebar">
<section>
<h1>Recent Posts</h1>
<ul id="recent_posts">
<li class="post">
<a href="/blog/2012/06/17/tokyo-toys-show/">东京玩具展2012</a>
</li>
<li class="post">
<a href="/blog/2012/05/26/coffee-mocha-coverage-node-under-windows/">在Windows上使用mocha对基于Node.JS的服务器端CoffeeScript进行测试并通过jscoverage生成覆盖率报告</a>
</li>
<li class="post">
<a href="/blog/2012/03/26/draw-something/">Draw Something</a>
</li>
<li class="post">
<a href="/blog/2012/03/25/js-game-memory/">Javascript游戏——Memory</a>
</li>
<li class="post">
<a href="/blog/2012/03/14/put-two-softwares-onto-appinn-dot-me/">在programus.appinn.me上放了两个软件</a>
</li>
</ul>
</section>
<section>
<h1>新浪微博</h1>
<ul id="weibo">
<li>
<iframe
width="100%"
height="550"
class="share_self"
frameborder="0"
scrolling="no"
src="http://widget.weibo.com/weiboshow/index.php?width=0&height=550&ptype=1&speed=0&skin=&isTitle=0&noborder=1&isWeibo=1&isFans=&uid=1098907490&verifier=abd54ad9">
</iframe>
</li>
</ul>
</section>
<section>
<h1>GitHub Repos</h1>
<ul id="gh_repos">
<li class="loading">Status updating&#8230;</li>
</ul>
<a href="https://github.com/programus">@programus</a> on GitHub
<script type="text/javascript">
$.domReady(function(){
if (!window.jXHR){
var jxhr = document.createElement('script');
jxhr.type = 'text/javascript';
jxhr.src = '/javascripts/libs/jXHR.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(jxhr, s);
}
github.showRepos({
user: 'programus',
count: 0,
skip_forks: true,
target: '#gh_repos'
});
});
</script>
<script src="/javascripts/github.js" type="text/javascript"> </script>
</section>
<section>
<p>Follow <a href="http://twitter.com/programus">@programus</a></p>
</section>
<section class="googleplus">
<h1>
<a href="https://plus.google.com/programus?rel=author">
<img src="http://www.google.com/images/icons/ui/gprofile_button-32.png" width="32" height="32">
Google+
</a>
</h1>
</section>
</aside>
</div>
</div>
<footer role="contentinfo"><p>
Copyright &copy; 2012 - 程序猎人 -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
</footer>
<script type="text/javascript">
var disqus_shortname = 'pgithub';
var disqus_script = 'count.js';
(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}());
</script>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
<script type="text/javascript">
(function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.