「水が凍ると水分子の様子が変化し、水素結合を形成し、その配列は規則正しい構造となり水素結合に囲まれた部分に隙間が出来、体積が膨張する。」 とのこと。
水以外の多くの物質は、固体の方が液体よりも密度が大きく,その密度は温度上昇とともにしだいに減少していくそうです。
娘は小学1年生なので、分かる言葉で説明できるかな?
参考になったURL
- 第5回 水と氷
- 水が凍るメカニズムの解明
水が凍る過程の写真が掲載されていて勉強になる。
sudo aptitude install build-essential linux-kernel-devel linux-headers-generic xinetd
cd vmware-server-distribとりあえず、デフォルトでインストールした。
sudo ./vmware-install.pl
The configuration of VMware Server 2.0.1 build-156745 for Linux for thisと表示されたのでOK?
running kernel completed successfully.
cd vmware-server-distrib/bin
sudo ./vmware-uninstall.pl
sudo apt-get install linux-headers-`uname -r`
cd vmware-server-distrib
sudo patch ./bin/vmware-config.pl ~/vmware-config.pl.patch.txt
sudo ./vmware-install.pl
/*
* File Name :Chapter2_1.java
* Created on :2009/05/15, 22:13:25
* Copyright(c) Exacteye.com All Rights Reserved.
*/
package dbxml.chapter2;
import com.sleepycat.dbxml.XmlContainer;
import com.sleepycat.dbxml.XmlException;
import com.sleepycat.dbxml.XmlManager;
/**
DBXML 例外の処理
* @author obiwan
*/
public class Chapter2_1 {
public static void main(String[] args) throws Throwable{
XmlContainer myConatiner = null;
XmlManager myManager = null;
String theContainer = "container.dbxml";
// XmlConatiner と XmlManager のオープン
try {
myManager = new XmlManager();
myConatiner = myManager.openContainer(theContainer);
} catch (XmlException ex) {
// ここで例外処理を実装する。
ex.printStackTrace();
}
}
}
run:「java.lang.UnsatisfiedLinkError: no db_java-4.6 in java.library.path」って違うエラーが出た。検索したら、「Thread: java.lang.UnsatisfiedLinkError on Mac OS X with 2.4.16」が参考になった。
Exception in thread "main" java.lang.UnsatisfiedLinkError: no db_java-4.6 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at com.sleepycat.db.internal.db_javaJNI.(db_javaJNI.java:52)
at com.sleepycat.db.internal.DbEnv.(DbEnv.java:264)
at com.sleepycat.dbxml.XmlManager.(XmlManager.java:78)
at com.sleepycat.dbxml.XmlManager.(XmlManager.java:102)
at dbxml.chapter2.Chapter2_1.main(Chapter2_1.java:27)
Java Result: 1
構築成功 (合計時間: 1 秒)
run:
com.sleepycat.dbxml.XmlException: Error: container.dbxml: container file not found, or not a container, errcode = CONTAINER_NOT_FOUND
at com.sleepycat.dbxml.dbxml_javaJNI.XmlManager_openContainer__SWIG_2(Native Method)
at com.sleepycat.dbxml.XmlManager.openContainer(XmlManager.java:585)
at com.sleepycat.dbxml.XmlManager.openContainer(XmlManager.java:218)
at com.sleepycat.dbxml.XmlManager.openContainer(XmlManager.java:160)
at dbxml.chapter2.Chapter2_1.main(Chapter2_1.java:28)
構築成功 (合計時間: 1 秒)
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author dev
*/
public class NewClass {
}
<#if licenseFirst??>
${licenseFirst}
${licensePrefix}File Name :${name}.java
${licensePrefix}Created on :${date}, ${time}
${licensePrefix}Copyright(c) Exacteye.com All Rights Reserved.
<#if licenseLast??>
${licenseLast}
project.license=exacteye.com
Error reading included file Templates/Classes/../Licenses/license-exacteye.com.txt
/**
*
* @author dev
*/
public class NewClass1 {
}
/*
* File Name :NewClass3.java
* Created on :2009/05/15, 20:47:52
* Copyright(c) Exacteye.com All Rights Reserved.
*/
/**
*
* @author dev
*/
public class NewClass3 {
}
$ tar zxvf dbxml-2.4.16.tar.gz
$ cd dbxml-2.4.16/
$ ./buildall.sh
Start DB build: 2009年 5月 13日 水曜日 22:37:56 JST
Configuring Berkeley DB
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking if building in the top-level or dist directories... no
checking if --disable-cryptography option specified... no
checking if --disable-hash option specified... no
checking if --disable-mutexsupport option specified... no
checking if --disable-queue option specified... no
checking if --disable-replication option specified... no
checking if --disable-statistics option specified... no
checking if --disable-verify option specified... no
checking if --enable-compat185 option specified... no
checking if --enable-cxx option specified... yes
checking if --enable-debug option specified... no
checking if --enable-debug_rop option specified... no
checking if --enable-debug_wop option specified... no
checking if --enable-diagnostic option specified... no
checking if --enable-dump185 option specified... no
checking if --enable-java option specified... no
checking if --enable-mingw option specified... no
checking if --enable-fine_grained_lock_manager option specified... no
checking if --enable-o_direct option specified... no
checking if --enable-posixmutexes option specified... no
checking if --enable-pthread_api option specified... no
checking if --enable-rpc option specified... no
checking if --enable-smallbuild option specified... no
checking if --enable-tcl option specified... no
checking if --enable-test option specified... no
checking if --enable-uimutexes option specified... no
checking if --enable-umrw option specified... no
checking if --with-mutex=MUTEX option specified... no
checking if --with-tcl=DIR option specified... no
checking if --with-uniquename=NAME option specified... no
checking for chmod... chmod
checking for cp... cp
checking for ln... ln
checking for mkdir... mkdir
checking for rm... rm
checking for sh... /bin/sh
checking for a BSD-compatible install... /usr/bin/install -c
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
$ sudo apt-get install gcc g++
$ sudo ./buildall.sh --prefix=/opt/oracle/dbxml-2.4.16 --enable-java --enable-debug
$ vi ~/.bashrc
DBXML_HOME=/opt/oracle/dbxml-2.4.16
LD_LIBRARY_PATH=$DBXML_HOME/lib
LD_RUN_PATH=$DBXML_HOME/lib
PATH="$PATH":$DBXML_HOME/bin
$ source ~/.bashrc
$ dbxml
dbxml>
dbxml> createContainer sample.xmldb
Creating node storage container
dbxml> addDocument doc1 '<?xml version="1.0"?><foo>bar</foo>'
Document added, name = doc1
dbxml> getMetaData doc1
Metadata for document: doc1
http://www.sleepycat.com/2002/dbxml:name
dbxml> addDocument doc2 '<?xml version="1.0"?><foo>Hello,World!</foo>'
Document added, name = doc2
dbxml> query 'collection("sample.xmldb")/foo'
2 objects returned for eager expression 'collection("sample.xmldb")/foo'
dbxml> print
<foo>bar</foo>
<foo>Hello,World!</foo>
$ sudo apt-get install sun-java6-jdk
$ java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode)
$ sudo apt-get install sun-java6-demo
$ java -jar /usr/lib/jvm/java-6-sun/demo/jfc/SwingSet2/SwingSet2.jar
へー。もうちょっとエピソードとかあると思っていたんですけど。紅一点は、中国の王安石の詩『詠柘榴』の「万緑叢中紅一点(ばんりょくそうちゅうこういってん)」の句に由来する。
万緑は一面の緑、叢中は草むらの中、紅一点は紅色の一輪の花(ザクロ)の意味で、一面の緑の中に咲く一輪の紅色の花が本来の意味である。
日本では明治以降、沢山ある中で一つだけ異彩を放つものの意味として用いられた。
その後、「紅」という色や艶やかに咲く花の印象から連想され、紅一点は男性の中に混じる唯一の女性の意味で用いられるようになり、現代では特にその意味で用いられるようになった。
[client]
default-character-set=utf8
[mysqld]
skip-character-set-client-handshake
default-character-set=utf8
[mysqldump]
default-character-set=utf8
$ sudo /etc/init.d/mysql restart
mysql> statusとりあえず、終了。
...
Server characterset: utf8
Db characterset: utf8
Client characterset: utf8
Conn. characterset: utf8
...
$ sudo tasksel
[ ] Basic Ubuntu serverとりあえず、これでインストールは完了です。便利になりましたね。
[ ] DNS server
[ ] Edubuntu server
[ ] LAMP server
[ ] Mail server
[ ] OpenSSH server
[ ] PostgreSQL database
[*] Print server
[ ] Samba file server
[ ] Tomcat Java server
[ ] Virtual Machine host
[ ] 2D/3D creation and editing suite
[ ] Audio creation and editing suite
[ ] Edubuntu KDE desktop
[ ] Edubuntu desktop
[ ] Kubuntu desktop
[ ] LADSPA and DSSI audio plugins
[ ] Mythbuntu additional roles
[ ] Mythbuntu frontend
[ ] Mythbuntu master backend
[ ] Mythbuntu slave backend
[ ] Ubuntu MID edition
[ ] Ubuntu Netbook Remix
[*] Ubuntu desktop
[ ] Video creation and editing suite
[ ] Xubuntu desktop
[ ] Video creation and editing suite
[ ] Xubuntu desktop
[ ] Kubuntu live CD
[ ] Kubuntu live DVD
[ ] Mythbuntu live CD
[ ] Ubuntu MID live environment
[ ] Ubuntu live CD
[ ] Ubuntu live DVD
[ ] Xubuntu live CD
[ ] Manual package selection
$ gedit /usr/share/tasksel/ubuntu-tasks.desc
$ sudo tasksel --list-tasks
u server Basic Ubuntu server
u dns-server DNS server
u edubuntu-server Edubuntu server
i lamp-server LAMP server
u mail-server Mail server
u openssh-server OpenSSH server
u postgresql-server PostgreSQL database
i print-server Print server
u samba-server Samba file server
u tomcat-server Tomcat Java server
u virt-host Virtual Machine host
u ubuntustudio-graphics 2D/3D creation and editing suite
u ubuntustudio-audio Audio creation and editing suite
u edubuntu-desktop-kde Edubuntu KDE desktop
u edubuntu-desktop-gnome Edubuntu desktop
u kubuntu-desktop Kubuntu desktop
u ubuntustudio-audio-plugins LADSPA and DSSI audio plugins
u mythbuntu-desktop Mythbuntu additional roles
u mythbuntu-frontend Mythbuntu frontend
u mythbuntu-backend-master Mythbuntu master backend
u mythbuntu-backend-slave Mythbuntu slave backend
u mobile-mid Ubuntu MID edition
u mobile-netbook-remix Ubuntu Netbook Remix
i ubuntu-desktop Ubuntu desktop
u ubuntustudio-video Video creation and editing suite
u xubuntu-desktop Xubuntu desktop
u kubuntu-live Kubuntu live CD
u kubuntu-dvd-live Kubuntu live DVD
u mythbuntu-live Mythbuntu live CD
u mobile-live Ubuntu MID live environment
u ubuntu-live Ubuntu live CD
u ubuntu-dvd-live Ubuntu live DVD
u xubuntu-live Xubuntu live CD
u manual Manual package selection
$ sudo tasksel --task-packages lamp-server
mysql-server-core-5.0
libwrap0
apache2
mysql-client-5.0
tcpd
libapache2-mod-php5
apache2.2-common
apache2-utils
php5-common
libaprutil1
php5-mysql
libmysqlclient15off
libdbi-perl
libplrpc-perl
mysql-server
mysql-server-5.0
libdbd-mysql-perl
libhtml-template-perl
libnet-daemon-perl
libapr1
ssl-cert
libpq5
apache2-mpm-prefork
mysql-common