- 博客(19)
- 收藏
- 关注
原创 use `which` on an aliased command
今天重装 Ubuntu 12.04 后安装 mysql server 5.5 时诡异发现下面的问题:[code="zsh"]$ whereis mysqlmysql: /usr/bin/mysql /etc/mysql /usr/lib/mysql /usr/bin/X11/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.g...
2012-05-04 15:47:49
165
Disable auto-correct in oh-my-zsh
刚把系统升级到 Ubuntu 12.04 LTS。哦,错了,应该是重装。Ubuntu 这一点非常让人无奈。或许在下次我可以考虑下 Arch Linux 或者 Gentoo。--------------------发现新 clone 的 oh-my-zsh 有点烦人,常常会自作主张提示是否要 correct。比如我输入[code="shell"]$ sudo aptitude ins...
2012-05-03 15:39:42
269
Emacs - ad-Orig-kill-region warning
昨天在 Emacs 上装上 Desktop。Restart 出现如下 Warning[code="lisp"]Warning: ad-Orig-kill-region called with 3 arguments, but accepts only 2[/code]在 StackOverFlow 上发贴求助,很快得到回复,执行如下命令:[code="lisp"](ad-d...
2012-05-02 13:18:02
134
原创 git commit --amend - 以后还是少用了
如果已经 Commit 到服务器上后,就不要再用[code="shell"]$ git commit --amend[/code]------------这样服务器会 reject 新的 push 的。这次手贱了,只能强制解决:[code="shell"]$ git push --force origin master[/code]...
2012-05-01 22:15:23
301
原创 Emacs Lisp - Advising Emacs Lisp Functions
真是一个好东西:http://www.delorie.com/gnu/docs/elisp-manual-21/elisp_213.html
2012-05-01 14:21:21
116
原创 Emacs 里用 Vim ? - Evil - It's crazy!!
https://gitorious.org/evil/pages/HomeEvil is an extensible vi layer for Emacs. It emulates the main features of Vim, and provides facilities for writing custom extensions.
2012-04-30 11:22:12
121
原创 Yari With Helm
[code="lisp"];;;###autoload(defun yari-helm (&optional rehash) (interactive (list current-prefix-arg)) (when current-prefix-arg (yari-ruby-obarray rehash)) (helm 'yari-source-ri-pages (ya...
2012-04-15 15:13:03
91
原创 Rails 3.2 运行 Warning
1. Place the following code in config/initializers/quiet_assets.rb[code="ruby"]bRails.application.assets.logger = Logger.new('/dev/null')Rails::Rack::Logger.class_eval do def call_with_quiet_...
2012-04-14 17:28:53
100
原创 GET, et cet.
The hypertext transfer protocol (HTTP) defines four basic operations, corresponding to the four verbs get, post, put, and delete. These refer to operations between a client computer (typically running...
2012-04-09 23:06:24
117
Emacs nxhtml-mode for erb document
Emacs 24 下使用 nxhtml 貌似问题蛮多的:1. 全文高亮 BUG2. 报 warning用以下代码可以解决:[code="lisp"] (setq mumamo-background-colors nil)(eval-after-load "bytecomp" '(add-to-list 'byte-compile-not-obs...
2012-04-08 16:53:58
131
Ubuntu 安装 Node.js
[url]https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager[/url][size=medium][b]Ubuntu[/b]Example install:[/size][code="bash"]sudo apt-get install python-software-proper...
2012-04-06 18:25:01
146
我的 Emacs 24
我一般使用下面的非官方源安装 Emacs 24http://emacs.naquadah.org/下面是我的 Emacs 配置BTW:同样感谢那些分享 Emacs 配置的朋友。[url]https://github.com/hbin/dotfiles-for-emacs[/url]...
2012-02-13 23:22:00
96
整理几个好用的 Ubuntu 工具(Sublime Text, Jupiter, Tweak, MyUnity, Guake, Fish, dnsmasq)
Sublime Text 2---------------非常好用的文本编辑器,虽是收费的,但是现在可以免费不限时间试用。[code="shell"]sudo add-apt-repository ppa:webupd8team/sublime-text-2 sudo apt-get updatesudo apt-get install sublime-text-2...
2012-01-13 00:24:09
278
解决 Gtk-WARNING **: 无法在模块路径中找到主题引擎 pixmap
我在终端下运行 emacs 的时候出现错误:Gtk-WARNING **: 无法在模块路径中找到主题引擎 pixmap虽然 emacs 打开了,但是看到终端出现这种信息还是很不爽。google 到方法,如下:[code="java"] sudo apt-get install gtk2-engines-pixbuf[/code]只是之其然,不知其所以然。 ...
2011-10-16 18:29:25
1284
原创 让Eclipse在Ubuntu下看起来更舒服
style "compact-toolbar" { GtkToolbar::internal-padding = 0 xthickness = 1 ythickness = 1}style "compact-button" { xthickness = 0 ythickness = 0}class "GtkToolbar" ...
2011-10-15 04:25:44
121
解决 visualmark.vim 碰到的一个BUG(E197)
安装 visualmark.vim 后,如果是在 Ubuntu 下做标记,会报一个“E197 不能设定语言为'en_US'"的错误,但是在 Windows 下却不会。在网上找了一下,发现修复方法。只要将exec ":lan mes en_US" 修改为 exec ":lan POSIX" 即可,为了能够在两个系统中都能使用,于是修改了一下 visualmark.vim 源码,就是在 exec ...
2011-08-13 23:51:19
186
Ubuntu 11.04 安装 JDK 7
装了双系统,但也是几乎很少使用,以至于面试时被 CitiBank 的 Ricky Li 问得只有惭愧的份。但是不要紧,知错能改,善莫大焉。继前天在 Ubuntu 11.04 上搭建好了 ROR 环境,今天试着来搭建 Java 的开发环境。在网上关于 Ubuntu 11.04 安装 JDK 7 的文章比较少,所以写下这篇留作自己的笔记,也作为给其它初学的朋友参考的资料吧。--------...
2011-08-13 18:40:55
135
在 Ubuntu 11.04 顺利搭建 Ruby On Rails 环境
因为自己也是新手,所以这次环境搭建费了九牛二虎之力才最终成功。Mark 一下,和各位分享经验,也为自己留点笔记。首先,感谢 Linux.cn 社区的 wxy,此次安装也是按照他写的教程一步一步做才成功的。原文地址:http://linux.cn/forum.php?mod=viewthread&tid=7566(图文并茂,写的非常详细)。我想大部分朋友按照他写的方法应该就能成功,本人在...
2011-08-11 18:16:20
121
To Be A Vimer!
先发一篇最近学习和研究的成果吧。自从打算学习 RoR 后就一直在寻找适合自己的开发工具,网上也确实比较多用于 Ruby 开发的工具。这里也就大致列几个:1、TextMate - 号称是 Ruby 开发最好的工具。据说连 rails 开发者都推荐使用,不过因为这个编辑器是 Mac 系统下的,所以我也只能打消这个念头。好像现在已经有 Windows 版本的 TextMate了,但是是收...
2011-08-11 00:20:47
109
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人