`
斌-黄
  • 浏览: 41742 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
今天重装 Ubuntu 12.04 后安装 mysql server 5.5 时诡异发现下面的问题: $ whereis mysql mysql: /usr/bin/mysql /etc/mysql /usr/lib/mysql /usr/bin/X11/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.g $ which mysql mysql: aliased to nocorrect mysql $ whereis mysql mysql: /usr/bin/mysql /etc/mysql /usr/lib/m ...
刚把系统升级到 Ubuntu 12.04 LTS。哦,错了,应该是重装。Ubuntu 这一点非常让人无奈。或许在下次我可以考虑下 Arch Linux 或者 Gentoo。 -------------------- 发现新 clone 的 oh-my-zsh 有点烦人,常常会自作主张提示是否要 correct。比如我输入 $ sudo aptitude install emacs23 它会提示我是否要把 aptitude 修改为 .aptitude... 所以干脆把它禁用得了,在 .zshrc 最末加上一句话就可以: unsetopt correct_all ---------- ...
昨天在 Emacs 上装上 Desktop。Restart 出现如下 Warning Warning: ad-Orig-kill-region called with 3 arguments, but accepts only 2 在 StackOverFlow 上发贴求助,很快得到回复,执行如下命令: (ad-deactivate 'kill-region) --------------- ad-Orig-kill-region 是说 kill-region 是一个 advise,并且少了一个参数。
如果已经 Commit 到服务器上后,就不要再用 $ git commit --amend ------------ 这样服务器会 reject 新的 push 的。 这次手贱了,只能强制解决: $ git push --force origin master
真是一个好东西: http://www.delorie.com/gnu/docs/elisp-manual-21/elisp_213.html
https://gitorious.org/evil/pages/Home Evil is an extensible vi layer for Emacs. It emulates the main features of Vim, and provides facilities for writing custom extensions.

Yari With Helm

;;;###autoload (defun yari-helm (&optional rehash) (interactive (list current-prefix-arg)) (when current-prefix-arg (yari-ruby-obarray rehash)) (helm 'yari-source-ri-pages (yari-symbol-at-point)))
1. Place the following code in config/initializers/quiet_assets.rb b Rails.application.assets.logger = Logger.new('/dev/null') Rails::Rack::Logger.class_eval do def call_with_quiet_assets(env) previous_level = Rails.logger.level Rails.logger.level = Logger::ERROR if env['PATH_INFO'].in ...

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 a web browser such as Firefox or Safari) and a server (typically running a web server such as Apache ...
Emacs 24 下使用 nxhtml 貌似问题蛮多的: 1. 全文高亮 BUG 2. 报 warning 用以下代码可以解决: (setq mumamo-background-colors nil) (eval-after-load "bytecomp" '(add-to-list 'byte-compile-not-obsolete-vars 'font-lock-beginning-of-syntax-function)) (eval-after-load "bytecomp" ...

Ubuntu 安装 Node.js

https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager Ubuntu Example install: sudo apt-get install python-software-properties sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs

我的 Emacs 24

我一般使用下面的非官方源安装 Emacs 24 http://emacs.naquadah.org/ 下面是我的 Emacs 配置 BTW:同样感谢那些分享 Emacs 配置的朋友。 https://github.com/hbin/dotfiles-for-emacs
Sublime Text 2 --------------- 非常好用的文本编辑器,虽是收费的,但是现在可以免费不限时间试用。 sudo add-apt-repository ppa:webupd8team/sublime-text-2 sudo apt-get update sudo apt-get install sublime-text-2 将 sublime 作为默认的文本编辑器 sudo subl / ...
我在终端下运行 emacs 的时候出现错误: Gtk-WARNING **: 无法在模块路径中找到主题引擎 pixmap 虽然 emacs 打开了,但是看到终端出现这种信息还是很不爽。 google 到方法,如下: sudo apt-get install gtk2-engines-pixbuf 只是之其然,不知其所以然。 感谢 macewan.org 的分享。
style "compact-toolbar" {     GtkToolbar::internal-padding = 0     xthickness = 1     ythickness = 1 } style "compact-button" {     xthickness = 0     ythickness = 0 } class "GtkToolbar"   style "compact-toolbar" widget_class "*<GtkToolbar>*&l ...
Global site tag (gtag.js) - Google Analytics