09 2012 档案
摘要:一个数据库是一个模式的集合,而模式包含表,函数等等。 因此完整的层次是这样的:服务器,数据库,模式,表;创建数据库CREATE DATABASE dbname OWNER username; 要通过拷贝 template0 的方法创建一个数据库, 使用CREATE DATABASE dbname T...
阅读全文
摘要:今天在论坛上看到一个卸载linux的好方法,推荐给大家。已在虚拟机上试过,此方法可行。1.首先检查一下/usr/lib/syslinux下是否有mbr.bin这个文件,若有则可行!2.sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda(此步骤之后需要输入超级用户密码)3.sudo reboot
阅读全文
摘要:当一个灵魂在空虚无聊中度过一段时间之后,如果他有自己的向往,那么爆发随之降临。未来的世界,创造软件 & 使用软件。
阅读全文
摘要:1 . 重复最后一个修改命令 2 u 撤销最后命令 3 U 恢复该行最初状态 4 5 ++++++++++++++++++++++++++++++++++++++++++++ 6 x 删除字符 7 X 删除光标左边字符 8 D 删除至行尾 9 C 修改至行尾 10 s 修改字符 11 S 修改行 12 dfxxx 搜索+删除 13 J 删除两行之间换行符 14 dw 删除到下一个单词开头 15 db 删除到前一个单词开头 16 diw 删除单词(不包括空白) 17 daw 删除单词(包括空白) ...
阅读全文
摘要:win7:C:\Documents and Settings\Administrator\AppData\Roaming\.emacs1 (load-file "e:/emacs-etc/basic")2 (load-file "e:/emacs-etc/nt")3 (load-file "e:/emacs-etc/plugin")4 (load-file "e:/emacs-etc/program")
阅读全文
摘要:;;;for programming 1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2 ;; c mode indentation 3 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 4 (setq c-default-style '((c-mode . "k&r") (other . "gnu"))) 5 (setq c-basic-offset 4) 6 7 (setq-default c-electric-flag t) 8 ;;tab设置4个
阅读全文
摘要:;;;plugin 1 (add-to-list 'load-path "e:/emacs-plugin/") 2 3 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 4 ;auto-complete plugin 5 (require 'auto-complete-config) 6 (add-to-list 'ac-dictionary-directories "e:/emacs-plugin//ac-dict") 7 (ac-config-default) 8 (setq auto-
阅读全文
摘要:;;;nt for windows;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;window-os;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;max-frame;(defun w32-restore-fra me (); "Restore a minimized frame"; (interactive) ; (w32-send-sys-command 61728));;(defun w32-maximize-frame (); "Maximi...
阅读全文
摘要:;;;basic 1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2 ;;光标为竖线;方块为box 3 ;;(setq-default cursor-type 'bar) 4 (setq-default blink-matching-delay 0.5) 5 6 ;;关闭起动时的那个“开机画面” 7 (setq inhibit-startup-message t) 8 9 (setq echo-keystrokes 0.1) 10 11 (line-number-mode t) ;;...
阅读全文
摘要:capslock<---spacespace<---ctrlctrl<---capslockthat's a better way to better your emacs life i think.1.windows--->keytweak,reboot required.2.*nix--->so many tools...http://emacswiki.org/emacs/MovingTheCtrlKeyhttp://emacser.com/capslock.htm3.this is not for a pro gamer...(because th
阅读全文

浙公网安备 33010602011771号