2019年5月29日水曜日

GRUB2の設定ファイルの中身

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

【起動時のシステムプログラムの問題について】(ubuntu18.04.1)

起動時に「システムプログラムの問題が見つかりました。」とのエラーメッセージが出る。
ネット上の情報(http://pc.casey.jp/archives/153902330)では、

$ sudo rm /var/crash/*
$ sudo sed -i 's/enabled=1/enabled=0/g' /etc/default/apport

となっている。

/var/crashフォルダ内のファイルをすべて消しただけでも、エラーメッセージは表示されなくなった。

2019年5月8日水曜日

歯医者

左上側、奥から3番目の詰め物が取れたので、5/4(土)に歯医者に行った。X線検査をした。

2019年4月23日火曜日

給油(アウトバック)

レギュラーガソリン52.22L給油。135円/L。ODO:62765km, Trip:443.3km。8.49km/L

2019年3月12日火曜日

給油(アウトバック)

レギュラーガソリン54.39L給油。131円/L。ODO:62322km, Trip:430.9km。7.92km/L

2019年3月11日月曜日

歯医者

左一番奥の上の歯の詰め物が取れたので、歯医者に行く(3/4、3/11)。詰め物が取れたというよりは、詰め物が薄くて割れた状態。X線検査はしなかった。

2019年1月16日水曜日

給油(アウトバック)

レギュラーガソリン49.79L給油。128円/L。ODO:61895km, Trip:414.5km。8.32km/L

2019年1月15日火曜日

材料系の機械学習環境の構築

Pymatgenを使うための環境構築。

1. Python 3.6 windows版をインストールする

2.Pycharm community版をインストールする

3.pymatgenをインストールする。

anacondaを入れてしまうと、condaとpipがコンフリクトを起こすことがあるので、よくない。さらに、anacondaではpython3.7がインストールされてしまうが、その場合、pymatgenを追加しようとするとpipのopen SSLに関するエラーメッセージがでる。

また、pymatgenをインストールするには、「Microsoft Visual C++ build tool」が必要と言われることがあるのでダウンロードしてインストールする。



2019年1月3日木曜日

Pymatgen

【入力】 
import pymatgen as mg

atm=mg.Element("Ti")

print(atm.long_name)
print("atomic number:",atm.number)
print("mass:", atm.atomic_mass)
print("valence number",atm.oxidation_states)
print("Pauling electronegativity",atm.X)
print("Electronic structure:",atm.electronic_structure)
print("Atomic orbitals:",atm.atomic_orbitals)
print("Melting Point:",atm.melting_point)
print("Boiling Point",atm.boiling_point)
print(atm.liquid_range)
print("Ave.cationic radius",atm.average_cationic_radius)
print("Ave.anionic radius",atm.average_anionic_radius)
 
【出力】 
Titanium
atomic number: 22
mass: 47.867 amu
valence number (-1, 2, 3, 4)
Pauling electronegativity 1.54
Electronic structure: [Ar].3d<sup>2</sup>.4s<sup>2</sup>
Atomic orbitals: {'1s': -177.276643, '2p': -16.285339, '2s': -19.457901, '3d': -0.17001, '3p': -1.422947, '3s': -2.258007, '4s': -0.167106}
Melting Point: 1941.0 K
Boiling Point 3560.0 K
1619.0 K
Ave.cationic radius 0.8516666666666667 ang
Ave.anionic radius 0.0 ang

Process finished with exit code 0

2019年1月1日火曜日

Tensorboardの使い方

1.起動方法(Pycharmを使っているとして)
PyCharmで[View] - [Tool Windows] - [Terminal]を選択し、以下のコマンドを入力。

tensorboard --logdir=logs

2.次にブラウザを立ち上げて「http://localhost:6006」と入力。

補足:tensorboardは機械学習プログラムの中のlogを読みにいくので、計算プログラム中に以下の記述を入れておく必要がある。

writer = tf.summary.FileWriter('logs', graph=sess.graph)

更にtensorboardを立ち上げても、エラーが出る、もしくは自分が見たい計算モデルが表示されていない場合、logフォルダ内のlogファイルを全部削除して、もう一度計算させる、つまり、新しいログファイルを作ると計算結果がうまく表示される場合がある。