2016-11-19
ruby version:2.2.6
ctrl+A,格式,更改大小写
全角or半角
维基百科关于全角半角的介绍
原帖
DG works:
打开系统组策略编辑器就是gpedit.msc,找到“用户配置”——“Windows设置”项——脚本(注销与登录)——登录(添加,将脚本路径改为Explorer.exe的路径,如:C:\windows\Explorer.exe)即可。这样在登录时系统会再加载一次Explorer.exe就可以显示出桌面了。但也有如我的状况,gpedit.msc打不开。
工具,选项,SQL Server 对象资源管理器,命令……
windows10和ubuntu16.04双系统,仍然出现了喜闻乐见的老问题,装完后,在windows下时区不对,之前的老办法是:
sudo gedit /etc/default/rcS
utc=yes 改成 utc=no
然而并没有什么效果,ubuntu16.04里面根本就没有utc这一项!
后来谷歌了半天找到了一个完美解决办法:
先在ubuntu下更新一下时间,确保时间无误:
sudo apt-get install ntpdate
sudo ntpdate time.windows.com
然后将时间更新到硬件上:
sudo hwclock --localtime --systohc
重新进入windows10,发现时间恢复正常了!
MACHINE: fish hunting
black pan: GND
red pan:
A: co1
press 100
voltage change from 3.36V to almost 0V,and then come back to 3.36V
PRESS 10
3.36V,0.9V,3.36V
B: HP
press coin return
3.2V, 1.8V,3.2V
C: SSR
press coin return
5.0V, 0.48V, 5.0V
D: TF
press coin return
3.2V, 0V, 3.2V
运行
dong@ubuntu:~/octopress$ gem install therubyracer
报错
ERROR: Error installing therubyracer:
invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError) in /home/dong/.rvm/gems/ruby-2.3.1/cache/libv8-3.16.14.15-x86_64-linux.gem
corrupt:broken
the package is broken
so remove /home/dong/.rvm/gems/ruby-2.3.1/cache/libv8-3.16.14.15-x86_64-linux.gem
then redownload and reinstall
successed.
Got a lot of nightmares on those days.
So many bad things,bad days.
Got to carry on.
.# ———————– #
.# Main Configs #
.# ———————– #
url: https://qiuhaidong.github.io
title: Haydn Yau
subtitle:
author: 丘海东
simple_search: https://www.google.com/search
description:
.# Default date format is “ordinal” (resulting in “July 22nd 2007”)
.# You can customize the format as defined in
.# http://www.ruby-doc.org/core-1.9.2/Time.html#method-i-strftime
.# Additionally, %o will give you the ordinal representation of the day
date_format: “ordinal”
.# RSS / Email (optional) subscription links (change if using something like Feedburner)
subscribe_rss: /atom.xml
subscribe_email:
.# RSS feeds can list your email address if you like
email:
.# ———————– #
.# Jekyll & Plugins #
.# ———————– #
.# If publishing to a subdirectory as in http://site.com/project set ‘root: /project’
root: /
permalink: /blog/:year/:month/:day/:title/
source: source
destination: public
plugins: plugins
code_dir: downloads/code
category_dir: blog/categories
markdown: rdiscount
rdiscount:
extensions:
- autolink
- footnotes
- smart
highlighter: pygments # default python pygments have been replaced by pygments.rb
paginate: 5 # Posts per page on the blog index
paginate_path: “posts/:num” # Directory base for pagination URLs eg. /posts/2/
recent_posts: 5 # Posts in the sidebar Recent Posts section
excerpt_link: “Read on →” # “Continue reading” link text at the bottom of excerpted articles
excerpt_separator: “”
titlecase: true # Converts page and post titles to titlecase
.# list each of the sidebar modules you want to include, in the order you want them to appear.
.# To add custom asides, create files in /source/_includes/custom/asides/ and add them to the list like ‘custom/asides/custom_aside_name.html’
default_asides: [asides/recent_posts.html, asides/category_list.html, asides/github.html]
.#default_asides: [asides/recent_posts.html, asides/github.html, asides/delicious.html, asides/pinboard.html, asides/googleplus.html]
.# Each layout uses the default asides, but they can have their own asides instead. Simply uncomment the lines below
.# and add an array with the asides you want to use.
.# blog_index_asides:
.# post_asides:
.# page_asides:
.# ———————– #
.# 3rd Party Settings #
.# ———————– #
.# Github repositories
github_user: qiuhaidong
github_repo_count: 0
github_show_profile_link: true
github_skip_forks: true
something new:
install git:
sudo apt-get install git
don’t install from ppa anymore.
install rvm: run the command from official website,the latest version,maybe not the stable version.
install ruby:we don’t use version 1.9.3 anymore,search the official website,the latest version,for exemple:2.3.1 the old version may got some problem when install the gem package.
rubygems bundle install
its address has change,the latest version isRuby China,we could check it out from the origin official website.