MacBookが起動しない問題。¶
liloからgrub2, grub-pcに変更することで解決。ただ最近、kernelをビルド、インストールしても自動でinitrdが作成されないので、インストール後に自分で下記を実行しないとダメ。/etc/kernel/postinst.d/initramfs-toolsがちゃんと機能してないのか?
$ sudo update-initramfs -c -k 2.6.xx.x
$ sudo update-grub2
$ sudo grub-install /dev/sda3
grub-installは毎回実行しないで良いのか。
インストールしなおすと、Xが上がらない現象でハマったが、 Debian Wikiのxorg.conf を一部変更してやったらちゃんと起動できる。ヨメのMacBookではModuleセクションのfreetype, type1と、DeviceセクションのDriver “i810”をコメントアウトして、InputDeviceセクションのXkbModelをpc104に変更してやった。この設定だと、初代の黒MacBookでもマルチタッチが有効になるのか。
Today’s Erlang #2¶
float.
1> 7/4.
1.75
2> 4/7.
0.5714285714285714
3> 7 div 4.
1
4> 7 rem 4.
3
5> 8 div 4.
2
6> Pi = 3.14159.
3.14159
7> R = 9.
9
8> Pi * R * R.
254.46879
11> 8 div 4.0.
** exception error: bad argument in an arithmetic expression
in operator div/2
called as 8 div 4.0
12> 8 div 4.
2
13> 8.0 div 4.
** exception error: bad argument in an arithmetic expression
in operator div/2
called as 8.0 div 4
file name changed that UPPER to lower.¶
The file name should be a small letter of Hatena Fotolife. However, Canon Inc. IXY DIGITAL 820 IS as my digicam generates the file name of the capital letter. Then, I wrote the script that converted the file name.
#!/bin/sh
for i in *
do
mv $i `echo $i | tr '[:upper:]' '[:lower:]'`
done
exit 0
http://github.com/mkouhei/scripts/blob/2037b5a8da1b0b03a9adcd1a438cc4419869b384/u2l.sh