`
ddl1st
  • 浏览: 99006 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

系统字体

Anglo text Apollyon Ardenwood Argor flahm scaqh Argor got scaqh Argor man scaqh Barlos-random Bastarda k Bayreuth Benecryptine Benegraphic Benighted Bill hicks Bionique
1、备份 备份一个数据库     mysqldump -uxxxx -pxxxx --opt dbname > filename.sql  备份整个数据库     mysqldump -uxxxx -pxxxx --opt --all_database > filename.sql  2、恢复 恢复一个数据库     mysql -uxxxx -pxxxx dbname < filename.sql  恢复整个数据库     mysql -uxxxx -pxxxx < filename.sql
echo "GSSAPIAuthentication no" >> ~/.ssh/config
https://gist.github.com/784445 rails new example -d=mysql cd example Gemfile 添加 gem 'paperclip' bundle install 新建文件/lib/paperclip_processors/watermark.rb module Paperclip class Watermark < Thumbnail def initialize(file, options = {}, attachment = nil) super @watermark_pa ...
sudo apt-get install samba sudo vi /etc/samba/smb.conf ;[homes] ; comment = Home Directories ; browseable = no 改为 [homes] comment = Home Directories browseable = no writable = yes valid users = %S sudo smbpasswd -a [username] New SMB password: Retype ...
puts (1.337).round_with_precision(2)  #=> 1.34 puts 3.ordinalize #=> 3rd puts 321.ordinalize #=> 321st
application.html http://docs.jquery.com/Plugins/autocomplete <!DOCTYPE html> <html> <head> <title>AotoComplete</title> <%= stylesheet_link_tag :all %> <%= javascript_include_tag 'AutoComplete/jquery','AutoComplete/jquery.autocomplete','AutoComplete/jq ...
sudo apt-get install openssl libssl-dev cd ~/.rvm/src/ruby-1.9.2...../ext/openssl ruby extconf.rb cd ../.. make && make install rvm remove 1.9.2 rvm install 1.9.2
可能是缺少两个包 sudo apt-get install libncurses5-dev sudo apt-get install libreadline5-dev cd .rvm/src/ruby-1.9.2-p180/ext/readline # 反正就是在ruby的 ext/redline 目录下 ruby extconf.rb make sudo make installcd /home/demon/hello 如果还是不行 rvm remove 1.9.2 rvm install 1.9.2
ERROR: Cloning from git://github.com/wayneeseguin/rvm.git failed, trying via https now (https://github.com/wayneeseguin/rvm.git). fatal: destination path 'rvm' already exists and is not an empty directory. ERROR: Cloning from https://github.com/wayneeseguin/rvm.git failed, perhaps your git version d ...
rvm 安装 curl -L get.rvm.io | bash -s stable source ~/.rvm/scripts/'rvm' 查看ruby依赖包 rvm requirements 引用# For Ruby / Ruby HEAD (MRI, Rubinius, & REE), install the following:   ruby: /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl- ...
sudo apt-get install samba sudo vi /etc/samba/smb.conf ;[homes] ; comment = Home Directories ; browseable = no 改为 [homes] comment = Home Directories browseable = no writable = yes valid users = %S sudo smbpasswd -a [username] New SMB password: Retype new SMB password: 重启s ...
bar=25;1.upto(bar){|b| puts "#{(' *'*b).center(bar*2)}"}
<style type="text/css"> .miao{width:170px;height:100px;display:table;text-align:center;border:solid 1px red;} .miao span{display:table-cell;vertical-align:middle;border:solid 1px blue;} .miao span img{border:dashed 1px green;} </style> <style type="text/css"& ...
require 'rubygems' rescue nil require 'wirble' require 'pp' # load wirble Wirble.init Wirble.colorize IRB.conf[:AUTO_INDENT] = true ## method tracing # enable tracing def enable_trace( event_regex = /^(call|return)/, class_regex = /IRB|Wirble|RubyLex|RubyToken/ ) puts "Enab ...
Global site tag (gtag.js) - Google Analytics