`
文章列表
delete

Erlang Tips

odbc           : ODBC library - link check failed unixodbc unixodbc-dev
cat /proc/cpuinfo
Rmagick checking for Magick-config... no sudo apt-get install libmagick9-dev

sinatra

request.path_info request.url env["HTTP_REFERER"] Sinatra#register extension.registered(self) if extension.respond_to?(:registered)   Views / Templates Templates are assumed to be located directly under the ./views directory. To use a different views directory:   set :views, File.dirna ...

minitest

require 'minitest/spec' MiniTest::Unit.autorun describe MiniTest::Spec do   before do     @assertion_count = 4   end   after do     self._assertions.must_equal @assertion_count   end   it "needs to have all methods named well" do     @assertion_count = 2     methods = Object.public_ins ...

VIM Tips

    博客分类:
  • vim
http://vimcdoc.sourceforge.net/doc/usr_toc.html#usr_toc.txt Vim居中光标所在行 曾经用Emacs的时候发现那个Ctrl-L特别好用,看到光标在下面了按一下就把那行提到屏幕中间来了,于是想在vim中找类似的功能,想想也该有嘛,所以就找到了,而且有三条~ zz: 将当前行置于屏幕中间(不是转载…) zt: 将当前行置于屏幕顶端(不是猪头~) zb:底端啦~ z-return 将当前行置为屏幕的顶行 还有一条就是移动光标所在行的位置,就是说,比如我光标在第10行,我想光标不动,但是所在行向上移,ctrl-e啦,然后向下的话, ...

RVM

首先安裝一些lib,讓rvm的ruby安裝順利 複製內容到剪貼板 代碼: sudo apt-get install curl build-essential zlib1g-dev libssl-dev libreadline5-dev sudo apt-get install libxslt-dev libxml2-dev rvm install 1.9.2 --with-openssl sudo apt-get install libsqlite3-dev build-essential  sudo gem install sqlite3-ruby checking for p ...
sudo apt-get install scim scim-gtk2-immodule scim-modules-socket scim-modules-table scim-pinyin scim-tables-zh sudo sh -c " echo 'export XMODIFIERS=@im=SCIM ; export GTK_IM_MODULE="scim" ; scim -d ' > /etc/X11/Xsession.d/95xinput " sudo chmod 755 /etc/X11/Xsession.d/95xinpu ...

第一pian

python limodou
(1..5).inject([], :<<)
apt-get install libreadline5-dev ruby ruby/ext/readline/extconf.rb make && make install 加载当前目录下的.irbrc可这样做: export IRBRC="./.irbrc"
http://happy-coding.com/install-sun-java6-jdk-on-ubuntu-10-04-lucid/ I just had trouble to install the Sun Java6 JDK after updating to Ubuntu 10.04. The problem was that the system couldn’t find the package sun-java6-sdk and apt-get gave me the message: Package sun-java6-jdk is not available, but is ...
.globl指示告诉汇编器,_start这个符号要被链接器用到,所以要在目标文件的符号表中标记它是一个全局符号(在第 5.1 节 “目标文件”详细解释)。_start就像C程序的main函数一样特殊,是整个程序的入口,链接器在链接时会查找目标文件中的_start符号代表的地址,把它设置为整个程序的入口地址,所以每个汇编程序都要提供一个_start符号并且用.globl声明。如果一个符号没有用.globl声明,就表示这个符号不会被链接器用到。

gdb 命令行

$ gdb main (gdb) start (gdb) n (gdb) start (gdb) s (gdb) bt (gdb) i locals (gdb) f 1 (gdb) p sum (gdb) finish 表 10.1. gdb基本命令1 命令 描述 backtrace(或bt) 查看各级函数调用及参数 finish 连续运行到当前函数返回为止,然后停下来等待命令 frame(或f) 帧编号 选择栈帧 info(或i) locals 查看当前栈帧局部变量的值 list(或l) 列出源代码,接着上次的位置往下列,每次列10行 list 行号 列出从第几行开始的源代码 list 函数名 ...
Global site tag (gtag.js) - Google Analytics