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,发现时间恢复正常了!
简单来说,在Ubuntu24.04中,hwclock已经被淘汰了,并采用了timedatectl去代替它。 因此我们可以在联网状态中使用下列代码实现Ubuntu与Windows的时间同步。
sudo timedatectl set-local-rtc 1
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 installits address has change,the latest version isRuby China,we could check it out from the origin official website.
控制面板,显示,更改大小,应用,注销,再把大小改回来。
sudo apt-get install rar unrar p7zip-full p7zip-rar
或者使用:SQL安装挂起解决工具免安装版.exe
DG:在安装盘C或D,搜索sql,会看到一个关于sql的编辑注册表项——SQL2000安装挂起.reg
2016-08-30 04:01 在贵州六盘水
这几天,没吃蔬菜,没定时定量,闹肚子了,凌晨3点多,在厕所蹲到脚麻,肚子痛到全身没力。
