`
文章列表
引用http://ubuntuforums.org/showthread.php?t=239797 chmod +x ***.run
Installing sqlite3 (1.3.4) with native extensions /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/installer.rb:529:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /opt/ruby-enterprise-1.8.7-2011.03/bin/ruby extc ...
引用http://blog.csdn.net/kira8dao7/article/details/5809726 apt-get install python-setuptools python -m SimpleHTTPServer
Initialized empty Git repository in /home/***/***/ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '/home/***/.ssh/id_rsa' are too open. It is ...

启动 cron 日志

引用 http://forum.ubuntu.org.cn/viewtopic.php?f=54&t=218863 vi /etc/rsyslog.d/50-default.conf #cron.*前的#删掉 service rsyslog restart 或 sudo /etc/init.d/rsyslog restart service cron restart 或 sudo /etc/init.d/cron restart
引用 http://d.hatena.ne.jp/kano4/20110607/ruby_invalid_multibyte # encoding: utf-8 require 'tk' msg="你好!中国" root=TkRoot.new{title msg} label_msg=TkLabel.new(root){ text msg pack :padx=>2,:pady=>2,:side=>'top' font "arial 20 bold" } TkButton.new(roo ...
测view tag assert_select "a[href*=/users/id/lock]", :text => "禁用", :count => 0 assert_select "a[href*=/users/id/unlock]", '启用' assert_select "a[href*=/users/id/unlock]", :text => "启用", :count => 1
引用http://tom-cjp.iteye.com/blog/1075810 错误提示 TypeError: Cannot modify SafeBuffer in place activesupport (3.0.8) lib/active_support/core_ext/string/output_safety.rb:122:in `gsub!' 解决方案 vi Gemfile gem 'rails', '3.0.7'
引用 https://launchpad.net/ubuntu/lucid/i386/acpid/1.0.10-5ubuntu2 方案一 sudo apt-get install acpid 方案二 wget http://launchpadlibrarian.net/38543888/acpid_1.0.10-5ubuntu2_i386.deb sudo dpkg -i acpid_1.0.10-5ubuntu2_i386.deb sudo vi /etc/acpi/powerbtn.sh CHANGE #!/bin/sh TO #!/bin/bash sudo /e ...
[~/projects/agideo/chaoda_eip] (master) 216h30m $ ruby script/server /home/hp/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameError) from /home/hp/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/si ...
引用 http://pypi.python.org sudo apt-get install python-setuptools cd /tmp wget http://pypi.python.org/packages/source/g/gitserve/gitserve-0.2.0.tar.gz#md5=2ac758f65b5205bf57f25ffefae71c11 tar zxvf gitserve-0.2.0.tar.gz cd gitserve-0.2.0 sudo python setup.py install
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.3.0/build/cssreset/reset-min.css"> <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.3.0/build/cssfonts/fonts-min.css"> <link re ...
jQuery 加载运行 <script type="text/javascript"> $(document).ready(function(){ /*code*/ }); </script> 判断空字符串 if(/^\s*$/.test($(this).val())) { }else{ } 去两边空格 $.trim()
validates validates :code, :uniqueness => true, :presence => true validates :price, :numericality => true validates :status, :inclusion => {:in => STATUSES} validates :rate, :presence => true, :numericality => {:less_than => 1, :greater_than => 0} validate :valid_at ...
/home/agideo/.cruise/projects/mindaitong_dev/work agideo$ ruby -e "require 'rubygems' rescue nil; require 'rake'; load '/home/agideo/projects/cruisecontrol-1.4.0/tasks/cc_build.rake'; ARGV << '--nosearch' << 'cc:build'; Rake.application.run; ARGV.clear" rake aborted! Mysql2::E ...
Global site tag (gtag.js) - Google Analytics