Fake Cake Cafe

YouTube 動画をダウンロードしてオフラインで観る方法。

「You厨房」 YouTubeの動画の保存/ダウンロードツール
http://gettube.satoru.net/
ダウンロードされる動画は .flv
参考URL:http://x-osuk.seesaa.net/article/13042644.html
05:23 : パソコントラックバック(0)  コメント(2)

OpenBabelとかOBRubyとか。

化学屋さんの OS X
http://www.geocities.jp/noburins_labyrinth/chemx/

Inline SVG
http://toshkish.exblog.jp/
http://wiki.svg.org/Inline_SVG

OpenBabel
http://openbabel.sourceforge.net/wiki/Main_Page
OBRuby
http://depth-first.com/articles/2006/10/31/obruby-a-ruby-interface-to-open-babel

% cd openbabel-2.0.2/
% configure ; make
% sudo make install
% sudo ldconfig
% cd obruby
% ruby build.rb
% make install



この手順でやればいいと思ったら

# ruby build.rb
can't find header files for ruby.
make: *** ターゲットが指定されておらず、makefile も見つかりません。中止。

build.rb は extconf.rb を使ってるのでこれを直に動かしてみると

can't find header files for ruby.



MacOSXでやってみる。ldconfigはないみたいなので無視して
ruby build.rb で以下のエラー。

In file included from /usr/local/include/openbabel-2.0/openbabel/obutil.h:23,
from openbabel.cpp:1696:
/usr/local/include/openbabel-2.0/openbabel/babelconfig.h:18:1: warning: "EXTERN" redefined
In file included from /usr/lib/ruby/1.8/powerpc-darwin8.0/ruby.h:22,
from openbabel.cpp:809:
/usr/lib/ruby/1.8/powerpc-darwin8.0/defines.h:207:1: warning: this is the location of the previous definition
openbabel.cpp: In function `VALUE _wrap_open_datafile(int, VALUE*, VALUE)':
openbabel.cpp:9180: error: ???OpenDatafile??? is not a member of ???OpenBabel???
openbabel.cpp: In function `VALUE _wrap_Vector3_is_approx(int, VALUE*, VALUE)':
openbabel.cpp:10422: error: ???const class OpenBabel::vector3??? has no member named ???IsApprox???
openbabel.cpp: In function `VALUE _wrap_Vector3_as_array(int, VALUE*, VALUE)':
openbabel.cpp:10446: error: ???class OpenBabel::vector3??? has no member named ???AsArray???
(中略。全文はこちら参照。)
make: *** [openbabel.o] Error 1


何がなんだかわからないけど、ruby extconf.rbしてみる。
$ ruby extconf.rb
checking for main() in -lopenbabel... yes
creating Makefile
んぉ?でけたか?と思ったけどmake installで長々とエラー

openbabel.cpp:1696:20: error: obutil.h: No such file or directory
openbabel.cpp:1697:26: error: math/vector3.h: No such file or directory
openbabel.cpp:1698:28: error: math/matrix3x3.h: No such file or directory
openbabel.cpp:1699:21: error: generic.h: No such file or directory
openbabel.cpp:1701:18: error: base.h: No such file or directory
openbabel.cpp:1702:17: error: mol.h: No such file or directory
openbabel.cpp:1703:18: error: ring.h: No such file or directory
openbabel.cpp:1704:26: error: obconversion.h: No such file or directory
openbabel.cpp:1705:21: error: oberror.h: No such file or directory
openbabel.cpp:1707:18: error: data.h: No such file or directory
openbabel.cpp:1708:22: error: parsmart.h: No such file or directory
openbabel.cpp:2010: error: `OpenBabel' has not been declared
openbabel.cpp:2010: error: ???vector3??? does not name a type
openbabel.cpp:2017: error: `OpenBabel' has not been declared
(後略。35,006行ものエラーメッセージが出たので、前1000行だけこちらにとっておいた)


どうやらbuild.rb内のextconf.rbはうまく動いてるけどmakeがいけないっぽいんだよなぁ。
ruby extconf.rb --with-openbabel-include='/usr/local/include/openbabel-2.0/openbabel' --with-openbabel-2.0-include='/usr/local/include/openbabel-2.0'
checking for main() in -lopenbabel... yes
creating Makefile
02:26 : パソコントラックバック(0)  コメント(0)

network-admin

Vine Linux がネットにつながらない。

アプリケーション "network-admin" (プロセス4564) が
致命的なエラーによってクラッシュしました。
(セグメンテーション違反です)

というエラーを解決するためにいろいろ探してみたら http://www.mars.dti.ne.jp/~tokoya/Diary0609.html に参考になる記事がありましたので、以下に引用させていただきます。
 ...続きを読む
23:02 : パソコントラックバック(0)  コメント(0)

ネットワーク復活。

先週木曜日に突然接続を止められて
お手上げ〜〜
な状態だったけど、復活しました。その原因といいますのは、
ルータでした。

何度か(というより、何度も)電源を落としたことがあるため、MACアドレスの設定が初期化されたことが原因。

もうちょい詳しく説明します。

うちの職場内でパソコンをネットにつなぎたかったら、自分のパソコンのMACアドレスをネットワーク管理者に届け出る必要があります。ネットワーク管理者はときどきネットワークの使用状況をチェックしていて、登録されていないMACアドレスが検出されたら、それの接続を止めてしまいます。

うちのオフィスにはイーサネットの接続ポイントが1つしかない。でも2つ以上接続したい。というわけで、2005年6月ごろにハブを買いました(過去記事参照)。しかしハブにもMACアドレスがあるようで、それがネットワーク管理者に検出されて9月に接続を止められました(過去記事参照)。それを解決するためにルータを注文し、届いたのだけど何故かプラグがフランス用だったのでまた注文し直し、最終的に機器が揃ったのが翌年1月(過去記事参照)。

なぜルータでこの問題が解決できるのか?それはMACアドレスを偽装(?)する能力があるから。ルータそのものにも固有のMACアドレスがあるのだけど、外部のネットワークに見せるためのMACアドレスを自分で設定する機能があるわけです。

これで無事解決っと、、、思ったらそうでもなかったわけで。このルータの調子が悪いのか、はたまた設定が間違っているのか、いろいろ不可解な動きをしてくれるのですよ(過去記事参照過去記事参照)。

そんなある日、ネットワーク管理者からメールが。曰く、「あなたは手動でプロキシ設定してるけど、そのプロキシはもうじき使えなくなります。自動構成スクリプトを使ってください」。でもその自動構成スクリプトが動かない。そこで、新しいプロキシを手動で設定した。しばらくは動いたが、木曜日に突然切断されたというわけ。

プロキシの設定が原因だと思ったのでいろいろいじったけどつながらず。別の部屋にパソコンを持っていくとつながった。別の部屋では、自動構成スクリプトも動いた。あれ?どういうこと?よく分からんけど、ネットワーク管理者に接続を止められたことはほぼ確実らしい。

火曜日、同僚に相談してみる。ひとつ確認し忘れていたことがあった。ルータを介せずに直接つないでみる。つながった。原因はプロキシの設定じゃなくてルータの設定だったのか、、、

というわけで、長くなったけど今回の結論。ルータの挙動がおかしいので日常的にルータの電源をつけたり消したりしていたため、MACアドレスがルータのアドレスになっていた。それをネットワーク管理者に検出され、接続が止められた。ルータのMACアドレスを設定することで解決。
ふぅ、長かった。
22:53 : パソコントラックバック(0)  コメント(2)

I'm alive and well.

I haven't updated this blog for several days, but it's not because I'm sick or anything. I've been unable to access to internet in my office since last Thursday, because of proxy problem. (It sometimes occurrs, but it seems more serious this time. I really hate this!!)

Our workplace has a really strict network security policy, and we have to obey their instruction. We are supposed to use an automatic configuration script, but it doesn't work! That was why I manually specify proxy server.

I had received an e-mail saying I should obey their instruction earlier. They were good to detect such things. But their instruction doesn't work!

I must do something to solve this problem. What a pain...
19:28 : パソコントラックバック(0)  コメント(2)