Alt+F2
: 快速打开搜索栏。
Alt+Tab
: 不同应用之间的切换,选中某一个,再Alt+~
即可放大当前栏目。
下载了Sublime Text 之后,我们需要建立一个快捷命令
sudo mv Sublime\ Text\ 2 /opt/
sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime
fork 了某个开源项目,发了PR后,需要更新master的代码的做法: | |
git remote add --track master upstream git://github.com/upstreamname/projectname.git | |
git fetch upstream | |
git merge upstream/master | |
注意:upstream 是定义名称。 |
class ApplicationController < ActionController::Base | |
... | |
#Problem: | |
#In rails 3.0.1+ it is no longer possible to do this anymore; | |
# rescue_from ActionController::RoutingError, :with => :render_not_found | |
# | |
#The ActionController::RoutingError thrown is not caught by rescue_from. | |
#The alternative is to to set a catch-all route to catch all unmatched routes and send them to a method which renders an error | |
#As in http://techoctave.com/c7/posts/36-rails-3-0-rescue-from-routing-error-solution |
Alt+F2
: 快速打开搜索栏。
Alt+Tab
: 不同应用之间的切换,选中某一个,再Alt+~
即可放大当前栏目。
下载了Sublime Text 之后,我们需要建立一个快捷命令
sudo mv Sublime\ Text\ 2 /opt/
sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime
1,下载 http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
2.下载好以后解压,并移动文件的位置
sudo tarzxvf ./jdk-7-linux-i586.tar.gz -C /usr/lib/jvm
cd/usr/lib/jvm
将jvm 下的文件夹名称改为 java-7-sun
mysql>use mysql
mysql>update user set password=password("new_pass") where user="root";
mysql>flush privileges;
http://blog.csdn.net/guaikai/article/details/6905781
1:首先安装apache:打开终端(ctrl+Alt+t),
输入命令:sudo apt-get install apache2即可安装,
安装完后,打开浏览器,在地址栏输入:localhost或者http://127.0.0.1
看到It works,表示安装成功!
摘自 multi_xml 适配器模式的实现,加载某个gem正常,则相应的使用某个解释器来解释XML。
# Get the current parser class.
def parser
return @parser if defined?(@parser)
self.parser = self.default_parser
@parser
end
1, 有些项目里包含另外一个子git项目(Submodule),那么按照常用的 git clone是不可能顺带把子git项目一起接下来的,所以可以考虑:
git clone --recursive git@xxxx.git
git clone --recursive git@github.com:cloudfoundry/cf-release.git
详细使用文章:
scp是有Security的文件copy,基于ssh登录。操作起来比较方便,比如要把当前一个文件copy到远程另外一台主机上,可以如下命令。
scp / home / daisy / full . tar . gz root@ 172.19 . 2.75 : / home / root
然后会提示你输入另外那台172.19.2.75主机的root用户的登录密码,接着就开始copy了。
如果想反过来操作,把文件从远程主机copy到当前系统,也很简单。