CentOS からネットワークストレージをマウントする。
# mount -t cifs -o user=xxxxxxxx,password=xxxxxxxx //192.168.x.x/[path] /mnt/[dir]
reboot時に自動マウントするように /etc/fstab に以下のように記述する。
Continue reading »
CentOS からネットワークストレージをマウントする。
# mount -t cifs -o user=xxxxxxxx,password=xxxxxxxx //192.168.x.x/[path] /mnt/[dir]
reboot時に自動マウントするように /etc/fstab に以下のように記述する。
Continue reading »
自宅サーバの32bitマシンにOpenVZをインストール作業中、以下のようなエラーが出た。
[root@Triton ~]# yum install gcc There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named cElementTree Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.4.3 (#1, Sep 3 2009, 15:37:12) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq
yumコマンドのバージョンが不整合を起こしているらしい。
仕方がないので、再インストールしてみる。
いつものようにPHPでコーディングしていたら以下のエラーが出た。
Parse error: syntax error, unexpected ‘)’, expecting T_PAAMAYIM_NEKUDOTAYIM in /var/www/html/~~
こんなの見たことないんだけど・・・。
ということでググってみると
スコープ定義演算子 (::)
スコープ定義演算子 (またの名を Paamayim Nekudotayim)、 平たく言うと「ダブルコロン」は、トークンのひとつです。 static, 定数 およびオーバーライドされたクラスのプロパティやメソッドにアクセスすることができます。
これらの要素をクラス定義の外から参照する際には、 クラスの名前を使用してください。
PHP 5.3.0 以降では、変数を用いてクラスを参照することも可能です。 変数の値に (self や parent、 static といった) キーワードを指定することはできません。
なぜダブルコロンに Paamayim Nekudotayim という名前をつけたのか、 ちょっと奇妙に感じられるかもしれません。 しかし、Zend Engine 0.5 (PHP 3のエンジン) を 書いている時に、Zend チームはこう呼ぶと決めたのです。 この奇妙な名前は、実はダブルコロンを意味するヘブライ語なのです!