从国内连接rubygems有时会有超时错误(由此可见为什么程序员不喜欢”长城”),淘宝为此建立了一个rubygems的镜像网站,经过以下设置可以让本地的rubygems使用该镜像站点。这次淘宝立功了,感谢huacnlee同学。
解决irb异常错误后无法使用的问题
Add Ant parameters in Eclipse
In some cases, when running ant build, some parameters of ant are needed. If we run ant from command line, we can add the parameters as “-Dproperty=value” within the ant command(from here).
Preview markdown
From here:
How to Query Gem Detail Information
Use the following command to query a gem’s detail information with the gem name as the query condition:
Enable the Editing Feature of Shutter
How to "highlight matching brackets" for your custom editor in Eclipse
This implementation comes from here. The code is:
RVM
“rvm(Ruby Version Manager)”是用于在一台机器上管理多个不同版本ruby实现的工具。这篇文章的内容主要参考了这里和[这里][rtrvm_url]。
Resolve the problem when installing virtualbox on Ubuntu
之前我在机器上安装virtualbox都是直接执行apt-get命令即可:
1 | sudo apt-get install virtualbox-ose |
但是今天执行之后启动virtualbox发现有如下错误:
1 | No suitable module for running kernel found |
使用VPN时发生server timeout问题的解决
最近忽然发现使用vpn的时候,原来可以访问的国外网站都发生了timeout错误,如twitter和facebook,而访问国内网站都没有问题。