xbox360がまた壊れた

前回リングランプが3つ点灯して画面がフリーズするという故障で修理をして、マザーを交換して帰ってきた私のxbox360がまた故障した。故障は前回と同じくリングランプ3つ点灯してフリーズ、以降なにも入力操作を受け付けない状態となる。修理以来、ほとんど起動してなったのに、たまにゲームしようかと起動してみると同じ故障とは如何に。あと、故障とは関係ないことだけれど、修理から帰ってきたときの電源の差込み位置が微妙にずれていた。しかも電源を本体に差し込むのにかなり強引に差し込む必要になった。ぐだぐだな感じがいっぱいなxbox360だけれど、2回目の修理に出すことにした。リングランプ3つ点灯の故障は修理費用がいらないとのことなのでその点だけは救いがある。

vb2005のカスタムコントロールの初期表示イベント

UserControl イベント
http://msdn.microsoft.com/ja-jp/library/system.windows.forms.usercontrol_events.aspx

一覧を見渡してみたが、shownイベントは存在しない模様。loadイベントはあるが、その次に起こるイベントのshownイベント、つまりコントロールの部品が描画されてから起こるイベントはないようだ。独自のカスタムコントロールを作って公開して配布をするというような場合には、結構重要なイベントなのだが・・・。

windows formにはshownイベントは存在するが、そこでform上に配置した独自カスタムの描画後の処理もやれということなのだろうか。しかし他に描画後に処理をするイベントが存在しないため、面倒でも親のフォームのshownイベントを使うしかないのか。できればカスタムコントロール(ユーザコントロールとも言うかな?あるいはクラスライブラリ?)だけで完結したかったのだけれども。

テーブルの列の型を変える(列属性の変更)

mysqlの場合。
ケース1:テーブルのある列の型をtext型で作成してシステムを運用してみたところ、実際にはせいぜい8000文字程度しか使用されていないことがわかったためvarchar型の可変長10000文字に変更する、というような場合。

sql文。targetRowの列属性をvarchar(10000)に変えるというもの。これを実行すると既存のtargetRowの列のデータをすべてvarchar(10000)に変更する。

  • alter table targetTable modify targetRow varchar(10000);

VirtualHost *:80 — mixing * ports and non-* ports with a NameVirtualHost

cdn-project:/etc/apache2# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...[Fri Oct 03 21:16:08 2008] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Fri Oct 03 21:16:08 2008] [warn] NameVirtualHost *:80 has no VirtualHosts
 waiting [Fri Oct 03 21:16:10 2008] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Fri Oct 03 21:16:10 2008] [warn] NameVirtualHost *:80 has no VirtualHosts

debianのapache2.2を起動しようとしたら上記のエラーが発生するようになった。設定ファイルの内容は何度も確認したので間違いはないはず。


ServerName 127.0.0.1
Listen 80
NameVirtualHost *:80


(省略)


エラーの内容がよくわからなかったが、”VirtualHost *:80 — mixing * ports and non-* ports”という部分、この部分の意味は、VirtualHost *:80 とポートの設定をしている箇所と、VirtualHost *とポートが設定されてない箇所があり、重複していると指摘している。はて?他にVirtualHost *というような記述はapache2のconfファイル内にはないはずだが・・・と思っていたら、設定前バックアップをとっていたことを忘れていた。

cdn-project:/etc/apache2# cp ./sites-enabled/000-default ./sites-enabled/000-default.org

というような感じで。どうも/etc/apache2以下にある記述は全て起動時に読まれることをしらなかった。このバックアップファイルを別の場所へ移動させてapacheの起動を試してみると問題なく起動できるようになった。

debianにsambaをインストール

root@cdn-project:/# apt-get install samba

途中で選択するステップが現れるので、ネットワークのグループ名を入力して、dhcpは今のところ私の環境ではつかっていないのでいいえを選択して、インストール完了。

sambaユーザの作成

root@cdn-project:/usr/local/src# smbpasswd -a nakahira
New SMB password:
Retype new SMB password:

debianのglibcのバージョン

atk-1.10.3をインストールしようとしていたらconfigure時にエラーが発生した。

checking for GLIB - version >= 2.5.7...
*** 'pkg-config --modversion glib-2.0' returned 2.8.6, but GLIB (2.12.4)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
checking for pkg-config... (cached) /usr/local/bin/pkg-config
checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.8.6, but GLIB (2.12.4)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.0.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.

ざっと見た感じでは、’pkg-config –modversion glib-2.0’としたらreturned 2.8.6,となったが、but GLIB (2.12.4)
was found!なのでふるいglibを削除しろということなのだろう。