g

丘海东

读书写字 热爱生活 ⌚️📖️🖋️🏀️🚲️🚉️🎼️🍵️🏞️📷️

windows10和Ubuntu双系统,时间不对

原博文

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中,更新:

简单来说,在Ubuntu24.04中,hwclock已经被淘汰了,并采用了timedatectl去代替它。 因此我们可以在联网状态中使用下列代码实现Ubuntu与Windows的时间同步。

sudo timedatectl set-local-rtc 1

Voltage Change

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

Failed When: Gem Install Therubyracer

运行

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.

Bad Night

Got a lot of nightmares on those days.
So many bad things,bad days.
Got to carry on.

config.yml

.# ———————– #
.# 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: “

Install Again

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.

Icon Display Error

控制面板,显示,更改大小,应用,注销,再把大小改回来。

解压 Extract

sudo apt-get install rar unrar p7zip-full p7zip-rar

SQL2000:某个程序安装已在安装计算机上创建挂起的文件操作

  1. 在添加/删除程序中彻底删除sql server
  2. 将没有删除的sql server目录也删除掉
  3. 打开注册表编辑器,在HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager中找到PendingFileRenameOperations项目,并删除它。这样就可以清除安装暂挂项目
  4. 删除注册表中跟sql server相关的键

或者使用:SQL安装挂起解决工具免安装版.exe
DG:在安装盘C或D,搜索sql,会看到一个关于sql的编辑注册表项——SQL2000安装挂起.reg

Be Health

2016-08-30 04:01 在贵州六盘水
这几天,没吃蔬菜,没定时定量,闹肚子了,凌晨3点多,在厕所蹲到脚麻,肚子痛到全身没力。 2016-08-30 04:01